diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml index 184bdfc03..ab3444f9b 100644 --- a/.github/workflows/openapi.yml +++ b/.github/workflows/openapi.yml @@ -23,10 +23,20 @@ jobs: args: >- generate -i https://developers.lilt.com/redocusaurus/plugin-redoc-0.yaml + -p apiPackage=com.lilt.client.api + -p artifactId=lilt-java + -p artifactUrl=https://github.com/lilt/lilt-java + -p developerEmail=nicholas.chiu@lilt.com + -p developerName="Nicholas Chiu" + -p developerOrganization="Lilt" + -p developerOrganizationUrl=https://lilt.com + -p groupId=com.lilt.client -g java + -p licenseName="Lilt Client Library License" + -p licenseUrl=license.md -p modelPackage=com.lilt.client.model - -p apiPackage=com.lilt.client.api -p packageVersion=${{ github.event.client_payload.version }} + --package-name lilt --git-host github.com --git-user-id lilt @@ -36,6 +46,7 @@ jobs: - name: Create Pull Request uses: peter-evans/create-pull-request@v6.1.0 with: + token: ${{ secrets.GHA_REPO_DISPATCH_TOKEN }} commit-message: Regenerates API Bindings title: "OpenAPI: Regenerates API Bindings" body: | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index dc349bd77..49c2b7a44 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -34,11 +34,6 @@ jobs: server-username: MAVEN_USERNAME server-password: MAVEN_CENTRAL_TOKEN - - name: Set up Maven - uses: stCarolas/setup-maven@v5 - with: - maven-version: 3.8.1 - - name: Build run: mvn -B package --file pom.xml diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index eb0111800..2f094e86e 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -27,6 +27,7 @@ docs/LanguagesApi.md docs/LanguagesResponse.md docs/LiltCreateContent.md docs/LiltCreateContentPreferences.md +docs/LiltCreateContentRequest.md docs/LiltCreateContentTemplateParams.md docs/MemoriesApi.md docs/Memory.md @@ -103,6 +104,7 @@ src/main/java/com/lilt/client/model/LanguagePair.java src/main/java/com/lilt/client/model/LanguagesResponse.java src/main/java/com/lilt/client/model/LiltCreateContent.java src/main/java/com/lilt/client/model/LiltCreateContentPreferences.java +src/main/java/com/lilt/client/model/LiltCreateContentRequest.java src/main/java/com/lilt/client/model/LiltCreateContentTemplateParams.java src/main/java/com/lilt/client/model/Memory.java src/main/java/com/lilt/client/model/MemoryCreateParameters.java diff --git a/README.md b/README.md index 4eb75db0d..7870828cd 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # openapi-java-client Lilt REST API -- API version: v3.0 - - Build date: 2024-10-14T17:01:14.551Z[GMT] +- API version: 3.0.0 + - Build date: 2024-11-14T22:57:19.235Z[GMT] Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: @@ -162,7 +162,7 @@ Class | Method | HTTP request | Description *JobsApi* | [**createJob**](docs/JobsApi.md#createJob) | **POST** /v2/jobs | Create a Job *JobsApi* | [**deleteJob**](docs/JobsApi.md#deleteJob) | **DELETE** /v2/jobs/{jobId} | Delete a Job *JobsApi* | [**deliverJob**](docs/JobsApi.md#deliverJob) | **POST** /v2/jobs/{jobId}/deliver | Deliver a Job -*JobsApi* | [**downloadJob**](docs/JobsApi.md#downloadJob) | **GET** /v2/jobs/{jobId}/downlod | Download a Job +*JobsApi* | [**downloadJob**](docs/JobsApi.md#downloadJob) | **GET** /v2/jobs/{jobId}/download | Download a Job *JobsApi* | [**exportJob**](docs/JobsApi.md#exportJob) | **GET** /v2/jobs/{jobId}/export | Export a Job *JobsApi* | [**getJob**](docs/JobsApi.md#getJob) | **GET** /v2/jobs/{jobId} | Retrieve a Job *JobsApi* | [**getJobLeverageStats**](docs/JobsApi.md#getJobLeverageStats) | **POST** /v2/jobs/{jobId}/stats | Retrieve Job Leverage Stats @@ -213,6 +213,7 @@ Class | Method | HTTP request | Description - [LanguagesResponse](docs/LanguagesResponse.md) - [LiltCreateContent](docs/LiltCreateContent.md) - [LiltCreateContentPreferences](docs/LiltCreateContentPreferences.md) + - [LiltCreateContentRequest](docs/LiltCreateContentRequest.md) - [LiltCreateContentTemplateParams](docs/LiltCreateContentTemplateParams.md) - [Memory](docs/Memory.md) - [MemoryCreateParameters](docs/MemoryCreateParameters.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index e783a5baf..5507ebca3 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -16,8 +16,11 @@ info: ## Quotas\n\nOur services have a general quota of 4000 requests per minute. Should\ \ you hit the maximum requests per minute, you will need to wait 60 seconds before\ \ you can send another request.\n" + license: + name: Lilt Platform Terms and Conditions + url: https://lilt.com/lilt-platform-terms-and-conditions title: Lilt REST API - version: v3.0 + version: 3.0.0 servers: - url: https://api.lilt.com security: @@ -38,6 +41,15 @@ paths: $ref: '#/components/schemas/LanguagesResponse' description: An object listing supported languages and their corresponding locales. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -69,6 +81,15 @@ paths: schema: $ref: '#/components/schemas/MemoryDeleteResponse' description: A status object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -103,6 +124,21 @@ paths: title: MemoryResponse type: array description: A list of Memory objects. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Memory not found. default: content: application/json: @@ -173,6 +209,15 @@ paths: schema: $ref: '#/components/schemas/Memory' description: A Memory object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -220,6 +265,15 @@ paths: schema: $ref: '#/components/schemas/Memory' description: A Memory object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -234,9 +288,8 @@ paths: x-accepts: application/json /v2/memories/query: get: - description: |+ + description: | Perform a translation memory query. - operationId: queryMemory parameters: - description: A unique Memory identifier. @@ -274,6 +327,15 @@ paths: title: MemoryQueryResponse type: array description: A list of TranslationMemoryEntry objects. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -369,6 +431,15 @@ paths: schema: $ref: '#/components/schemas/MemoryImportResponse' description: A status object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -411,6 +482,15 @@ paths: schema: $ref: '#/components/schemas/TermbaseExportResponse' description: A status object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -451,6 +531,15 @@ paths: title: TermbaseDownloadResponse type: string description: A file. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -494,6 +583,15 @@ paths: schema: $ref: '#/components/schemas/DeleteSegmentFromMemoryResponse' description: A success resposne. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -585,6 +683,15 @@ paths: schema: $ref: '#/components/schemas/TranslationList' description: A TranslationList object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -655,6 +762,15 @@ paths: title: monitorFileTranslationResponse type: array description: Translation Info + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -721,6 +837,15 @@ paths: title: batchTranslateFileResponse type: array description: Translation Info + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -760,10 +885,25 @@ paths: title: DocumentDownloadResponse type: string description: A file. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Download translated file tags: - Translate - x-accepts: application/octet-stream + x-accepts: application/json /v2/create/terms-and-conditions: post: description: |+ @@ -805,6 +945,21 @@ paths: $ref: '#/components/schemas/signLiltCreateTermsResponse' description: | An object indicating whether the agreement has been signed or not. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Sign the Lilt Create terms and conditions tags: - Create @@ -829,6 +984,21 @@ paths: schema: $ref: '#/components/schemas/getLiltCreateContentResponse' description: An object with a documents next task Workflow metadata. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Get Lilt Create content tags: - Create @@ -859,7 +1029,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/LiltCreateContent' + $ref: '#/components/schemas/LiltCreateContentRequest' description: | Input parameters that determine what content will be generated. required: true @@ -872,6 +1042,21 @@ paths: - message: an object with the newly generated text (e.g. {"text": "hello"}) - message: upon completion of events the string "[DONE]" will be emitted - fullcontent: an object containing the full response + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Generate new Lilt Create content tags: - Create @@ -893,6 +1078,21 @@ paths: "200": content: {} description: An object describing the stored preferences. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Get Lilt Create preferences tags: - Create @@ -921,6 +1121,21 @@ paths: "200": content: {} description: The updated Lilt Create preferences. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Update Lilt Create preferences tags: - Create @@ -954,6 +1169,21 @@ paths: schema: $ref: '#/components/schemas/inline_response_200' description: The Delete Lilt Create Content Response. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Delete Lilt Create content tags: - Create @@ -984,6 +1214,21 @@ paths: schema: $ref: '#/components/schemas/LiltCreateContent' description: The Lilt Create content. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Get Lilt Create content by ID. tags: - Create @@ -1022,6 +1267,21 @@ paths: schema: $ref: '#/components/schemas/LiltCreateContent' description: The updated Lilt Create content. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Update Lilt Create content tags: - Create @@ -1057,6 +1317,21 @@ paths: - message: an object with the newly generated text (e.g. {"text": "hello"}) - message: upon completion of events the string "[DONE]" will be emitted - fullcontent: an object containing the full response + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Regenerate Lilt Create content tags: - Create @@ -1077,6 +1352,21 @@ paths: $ref: '#/components/schemas/WorkflowTemplate' type: array description: An array with a team's available WorkflowTemplates. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Retrieve workflow templates tags: - Workflows @@ -1139,6 +1429,15 @@ paths: title: JobsResponse type: array description: A list of Job objects. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1289,6 +1588,15 @@ paths: schema: $ref: '#/components/schemas/Job' description: A Job object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1328,6 +1636,15 @@ paths: schema: $ref: '#/components/schemas/JobDeleteResponse' description: A status object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1364,6 +1681,15 @@ paths: schema: $ref: '#/components/schemas/Job' description: A job object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1448,6 +1774,15 @@ paths: schema: $ref: '#/components/schemas/Job' description: A job object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1487,6 +1822,15 @@ paths: schema: $ref: '#/components/schemas/JobLeverageStats' description: A job leverage stats object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1526,6 +1870,15 @@ paths: schema: $ref: '#/components/schemas/Job' description: A job object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1563,6 +1916,15 @@ paths: schema: $ref: '#/components/schemas/Job' description: A job object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1602,6 +1964,15 @@ paths: schema: $ref: '#/components/schemas/Job' description: A job object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1641,6 +2012,15 @@ paths: schema: $ref: '#/components/schemas/Job' description: A job object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1689,6 +2069,15 @@ paths: "200": content: {} description: 200 status. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1699,7 +2088,7 @@ paths: tags: - Jobs x-accepts: application/json - /v2/jobs/{jobId}/downlod: + /v2/jobs/{jobId}/download: get: description: |- Make sure you have exported a job with the same id before using this api. @@ -1723,8 +2112,21 @@ paths: style: simple responses: "200": - content: {} + content: + application/octet-stream: + schema: + format: byte + type: string description: zipped file + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1756,6 +2158,15 @@ paths: schema: $ref: '#/components/schemas/ProjectDeleteResponse' description: A status object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1851,6 +2262,15 @@ paths: title: ProjectResponse type: array description: A list of Project objects. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1933,6 +2353,15 @@ paths: schema: $ref: '#/components/schemas/Project' description: A Project object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -1984,6 +2413,15 @@ paths: title: DocumentDownloadResponse type: string description: A file. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized "502": content: {} description: File in pretranslation. @@ -1996,7 +2434,7 @@ paths: summary: Download a Document tags: - Documents - x-accepts: application/octet-stream + x-accepts: application/octet-stream,text/plain post: description: |+ Create a Document from a file in any of the formats [documented in our knowledge base](https://support.lilt.com/hc/en-us/articles/360020816253-File-Formats). @@ -2103,6 +2541,15 @@ paths: schema: $ref: '#/components/schemas/DocumentWithSegments' description: A Document object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -2136,6 +2583,15 @@ paths: schema: $ref: '#/components/schemas/FileDeleteResponse' description: A status object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -2188,6 +2644,15 @@ paths: title: FilesList type: array description: A list of files. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized "403": content: {} description: User does not have permission for provided file. @@ -2293,6 +2758,15 @@ paths: schema: $ref: '#/components/schemas/SourceFile' description: A SourceFile object. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized default: content: application/json: @@ -2333,10 +2807,25 @@ paths: title: DocumentDownloadResponse type: string description: A file. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Download file tags: - Files - x-accepts: application/octet-stream + x-accepts: application/json /v2/files/labels: delete: description: | @@ -2368,6 +2857,21 @@ paths: "204": content: {} description: A success response. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Remove Label from File tags: - Files @@ -2414,6 +2918,21 @@ paths: "204": content: {} description: A success response. + "401": + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error summary: Add Label to File tags: - Files @@ -2470,6 +2989,16 @@ components: schema: $ref: '#/components/schemas/AddFileLabelRequest' required: true + responses: + UnauthorizedError: + content: + application/octet-stream: + schema: + type: string + text/plain: + schema: + type: string + description: Unauthorized schemas: Error: description: | @@ -2479,7 +3008,7 @@ components: properties: message: description: A human-readable message describing the error. - type: object + type: string type: object Memory: description: | @@ -2795,16 +3324,61 @@ components: preferences: styleguide: styleguide tone: tone + name: name templateParams: summary: summary - contentLength: 0 + contentLength: 6 language: language - memoryId: 6 + memoryId: 1 sections: - sections - sections language: language + id: 0 properties: + name: + description: A name for the request content. + type: string + id: + description: A unique identifier for the generated content. + type: integer + language: + description: The language of the content. + type: string + template: + description: The template of the content. + type: string + templateParams: + $ref: '#/components/schemas/LiltCreateContent_templateParams' + preferences: + $ref: '#/components/schemas/LiltCreateContent_preferences' + required: + - language + - template + - templateParams + type: object + LiltCreateContentRequest: + description: | + Content Parameters for LiltCreate. + example: + template: template + preferences: + styleguide: styleguide + tone: tone + name: name + templateParams: + summary: summary + contentLength: 6 + language: language + memoryId: 1 + sections: + - sections + - sections + language: language + properties: + name: + description: A name for the request content. + type: string language: description: The language of the content. type: string @@ -4066,28 +4640,32 @@ components: preferences: styleguide: styleguide tone: tone + name: name templateParams: summary: summary - contentLength: 0 + contentLength: 6 language: language - memoryId: 6 + memoryId: 1 sections: - sections - sections language: language + id: 0 - template: template preferences: styleguide: styleguide tone: tone + name: name templateParams: summary: summary - contentLength: 0 + contentLength: 6 language: language - memoryId: 6 + memoryId: 1 sections: - sections - sections language: language + id: 0 properties: contents: description: List of LiltCreateContent objects @@ -4340,9 +4918,9 @@ components: description: The template parameters of the content. example: summary: summary - contentLength: 0 + contentLength: 6 language: language - memoryId: 6 + memoryId: 1 sections: - sections - sections diff --git a/docs/CreateApi.md b/docs/CreateApi.md index c07e7973d..3102c6c20 100644 --- a/docs/CreateApi.md +++ b/docs/CreateApi.md @@ -82,12 +82,14 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The Delete Lilt Create Content Response. | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | # **generateLiltCreateContent** @@ -124,7 +126,7 @@ public class Example { BasicAuth.setPassword("YOUR PASSWORD"); CreateApi apiInstance = new CreateApi(defaultClient); - LiltCreateContent templateParams = new LiltCreateContent(); // LiltCreateContent | Input parameters that determine what content will be generated. + LiltCreateContentRequest templateParams = new LiltCreateContentRequest(); // LiltCreateContentRequest | Input parameters that determine what content will be generated. try { apiInstance.generateLiltCreateContent(templateParams); } catch (ApiException e) { @@ -142,7 +144,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **templateParams** | [**LiltCreateContent**](LiltCreateContent.md)| Input parameters that determine what content will be generated. | + **templateParams** | [**LiltCreateContentRequest**](LiltCreateContentRequest.md)| Input parameters that determine what content will be generated. | ### Return type @@ -155,12 +157,14 @@ null (empty response body) ### HTTP request headers - **Content-Type**: application/json - - **Accept**: Not defined + - **Accept**: application/octet-stream, text/plain, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | An event stream produced by Server Side Events. The following events are supported. - message: an object with the newly generated text (e.g. {\"text\": \"hello\"}) - message: upon completion of events the string \"[DONE]\" will be emitted - fullcontent: an object containing the full response | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | # **getLiltCreateById** @@ -229,12 +233,14 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The Lilt Create content. | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | # **getLiltCreateContent** @@ -299,12 +305,14 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | An object with a documents next task Workflow metadata. | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | # **getLiltCreatePreferences** @@ -368,12 +376,14 @@ null (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: Not defined + - **Accept**: application/octet-stream, text/plain, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | An object describing the stored preferences. | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | # **regenerateLiltCreateContent** @@ -441,12 +451,14 @@ null (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: Not defined + - **Accept**: application/octet-stream, text/plain, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | An event stream produced by Server Side Events. The following events are supported. - message: an object with the newly generated text (e.g. {\"text\": \"hello\"}) - message: upon completion of events the string \"[DONE]\" will be emitted - fullcontent: an object containing the full response | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | # **signLiltCreateTerms** @@ -515,12 +527,14 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | An object indicating whether the agreement has been signed or not. | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | # **updateLiltCreateContent** @@ -591,12 +605,14 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The updated Lilt Create content. | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | # **updateLiltCreatePreferences** @@ -664,10 +680,12 @@ null (empty response body) ### HTTP request headers - **Content-Type**: application/json - - **Accept**: Not defined + - **Accept**: application/octet-stream, text/plain, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | The updated Lilt Create preferences. | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | diff --git a/docs/DocumentsApi.md b/docs/DocumentsApi.md index c52d07f15..0edfd2435 100644 --- a/docs/DocumentsApi.md +++ b/docs/DocumentsApi.md @@ -77,12 +77,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/octet-stream + - **Accept**: application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A file. | - | +**401** | Unauthorized | - | **502** | File in pretranslation. | - | **0** | Unexpected error | - | @@ -167,11 +168,12 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/octet-stream - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A Document object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | diff --git a/docs/Error.md b/docs/Error.md index b02dfb43f..7e3f9ccb3 100644 --- a/docs/Error.md +++ b/docs/Error.md @@ -7,7 +7,7 @@ Response in the event of an unexpected error. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**message** | **Object** | A human-readable message describing the error. | [optional] +**message** | **String** | A human-readable message describing the error. | [optional] diff --git a/docs/FilesApi.md b/docs/FilesApi.md index e4706cf75..e2f798f69 100644 --- a/docs/FilesApi.md +++ b/docs/FilesApi.md @@ -80,12 +80,14 @@ null (empty response body) ### HTTP request headers - **Content-Type**: application/json - - **Accept**: Not defined + - **Accept**: application/octet-stream, text/plain, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **204** | A success response. | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | # **deleteFile** @@ -154,12 +156,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **204** | A status object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -229,12 +232,14 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/octet-stream + - **Accept**: application/octet-stream, text/plain, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A file. | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | # **getFiles** @@ -305,12 +310,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A list of files. | - | +**401** | Unauthorized | - | **403** | User does not have permission for provided file. | - | **410** | File deleted. | - | **0** | Unexpected error. | - | @@ -383,12 +389,14 @@ null (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: Not defined + - **Accept**: application/octet-stream, text/plain, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **204** | A success response. | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | # **uploadFile** @@ -469,11 +477,12 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/octet-stream - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **201** | A SourceFile object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | diff --git a/docs/JobsApi.md b/docs/JobsApi.md index 3f0b075d7..05e716b13 100644 --- a/docs/JobsApi.md +++ b/docs/JobsApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description [**createJob**](JobsApi.md#createJob) | **POST** /v2/jobs | Create a Job [**deleteJob**](JobsApi.md#deleteJob) | **DELETE** /v2/jobs/{jobId} | Delete a Job [**deliverJob**](JobsApi.md#deliverJob) | **POST** /v2/jobs/{jobId}/deliver | Deliver a Job -[**downloadJob**](JobsApi.md#downloadJob) | **GET** /v2/jobs/{jobId}/downlod | Download a Job +[**downloadJob**](JobsApi.md#downloadJob) | **GET** /v2/jobs/{jobId}/download | Download a Job [**exportJob**](JobsApi.md#exportJob) | **GET** /v2/jobs/{jobId}/export | Export a Job [**getJob**](JobsApi.md#getJob) | **GET** /v2/jobs/{jobId} | Retrieve a Job [**getJobLeverageStats**](JobsApi.md#getJobLeverageStats) | **POST** /v2/jobs/{jobId}/stats | Retrieve Job Leverage Stats @@ -85,12 +85,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A job object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -160,12 +161,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A Job object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -235,12 +237,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A status object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -310,17 +313,18 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A job object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | # **downloadJob** -> downloadJob(jobId) +> byte[] downloadJob(jobId) Download a Job @@ -355,7 +359,8 @@ public class Example { JobsApi apiInstance = new JobsApi(defaultClient); Integer jobId = 56; // Integer | A job id. try { - apiInstance.downloadJob(jobId); + byte[] result = apiInstance.downloadJob(jobId); + System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling JobsApi#downloadJob"); System.err.println("Status code: " + e.getCode()); @@ -375,7 +380,7 @@ Name | Type | Description | Notes ### Return type -null (empty response body) +**byte[]** ### Authorization @@ -384,12 +389,13 @@ null (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/octet-stream, text/plain, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | zipped file | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -460,12 +466,13 @@ null (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/octet-stream, text/plain, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | 200 status. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -535,12 +542,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A job object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -610,12 +618,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A job leverage stats object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -685,12 +694,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A job object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -766,12 +776,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A list of Job objects. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -841,12 +852,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A job object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -918,11 +930,12 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A job object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | diff --git a/docs/LanguagesApi.md b/docs/LanguagesApi.md index 102469c5d..6883a0881 100644 --- a/docs/LanguagesApi.md +++ b/docs/LanguagesApi.md @@ -70,11 +70,12 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | An object listing supported languages and their corresponding locales. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | diff --git a/docs/LiltCreateContent.md b/docs/LiltCreateContent.md index fb3804ce9..fc0d8471a 100644 --- a/docs/LiltCreateContent.md +++ b/docs/LiltCreateContent.md @@ -7,6 +7,8 @@ Content Parameters for LiltCreate. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**name** | **String** | A name for the request content. | [optional] +**id** | **Integer** | A unique identifier for the generated content. | [optional] **language** | **String** | The language of the content. | **template** | **String** | The template of the content. | **templateParams** | [**LiltCreateContentTemplateParams**](LiltCreateContentTemplateParams.md) | | diff --git a/docs/LiltCreateContentRequest.md b/docs/LiltCreateContentRequest.md new file mode 100644 index 000000000..d15fb1c1b --- /dev/null +++ b/docs/LiltCreateContentRequest.md @@ -0,0 +1,17 @@ + + +# LiltCreateContentRequest + +Content Parameters for LiltCreate. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | A name for the request content. | [optional] +**language** | **String** | The language of the content. | +**template** | **String** | The template of the content. | +**templateParams** | [**LiltCreateContentTemplateParams**](LiltCreateContentTemplateParams.md) | | +**preferences** | [**LiltCreateContentPreferences**](LiltCreateContentPreferences.md) | | [optional] + + + diff --git a/docs/MemoriesApi.md b/docs/MemoriesApi.md index 3b9d43313..13cd5f268 100644 --- a/docs/MemoriesApi.md +++ b/docs/MemoriesApi.md @@ -82,12 +82,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A Memory object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -157,12 +158,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A status object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -234,12 +236,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A success resposne. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -309,12 +312,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A file. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -384,12 +388,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A status object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -459,12 +464,14 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A list of Memory objects. | - | +**401** | Unauthorized | - | +**404** | Memory not found. | - | **0** | Unexpected error | - | @@ -544,12 +551,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/octet-stream - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A status object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -558,7 +566,7 @@ Name | Type | Description | Notes Query a Memory -Perform a translation memory query. +Perform a translation memory query. ### Example ```java @@ -623,12 +631,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A list of TranslationMemoryEntry objects. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -698,11 +707,12 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A Memory object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | diff --git a/docs/ProjectsApi.md b/docs/ProjectsApi.md index 759990c1b..e81853335 100644 --- a/docs/ProjectsApi.md +++ b/docs/ProjectsApi.md @@ -76,12 +76,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A Project object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -151,12 +152,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A status object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -240,11 +242,12 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A list of Project objects. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | diff --git a/docs/TranslateApi.md b/docs/TranslateApi.md index 8be12f991..88285011b 100644 --- a/docs/TranslateApi.md +++ b/docs/TranslateApi.md @@ -83,12 +83,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Translation Info | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -158,12 +159,14 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/octet-stream + - **Accept**: application/octet-stream, text/plain, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A file. | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | # **monitorFileTranslation** @@ -238,12 +241,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Translation Info | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | @@ -313,11 +317,12 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A TranslationList object. | - | +**401** | Unauthorized | - | **0** | Unexpected error | - | diff --git a/docs/WorkflowsApi.md b/docs/WorkflowsApi.md index 2da831e86..02b873127 100644 --- a/docs/WorkflowsApi.md +++ b/docs/WorkflowsApi.md @@ -70,10 +70,12 @@ This endpoint does not need any parameter. ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/json, application/octet-stream, text/plain ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | An array with a team's available WorkflowTemplates. | - | +**401** | Unauthorized | - | +**0** | Unexpected error | - | diff --git a/pom.xml b/pom.xml index 5b2734299..b55c1006a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.lilt.client lilt-java - 0.6.5 + 3.0.0 jar @@ -43,7 +43,7 @@ https://maven.pkg.github.com/lilt/lilt-java - + @@ -309,6 +309,11 @@ commons-lang3 ${commons-lang3-version} + + commons-io + commons-io + 2.5 + org.threeten threetenbp diff --git a/src/main/java/com/lilt/client/ApiCallback.java b/src/main/java/com/lilt/client/ApiCallback.java index 327ee86ce..a81e71017 100644 --- a/src/main/java/com/lilt/client/ApiCallback.java +++ b/src/main/java/com/lilt/client/ApiCallback.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/lilt/client/ApiClient.java b/src/main/java/com/lilt/client/ApiClient.java index 7f6e82bc8..9fb479b58 100644 --- a/src/main/java/com/lilt/client/ApiClient.java +++ b/src/main/java/com/lilt/client/ApiClient.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/lilt/client/ApiException.java b/src/main/java/com/lilt/client/ApiException.java index c38112d53..5f36bf454 100644 --- a/src/main/java/com/lilt/client/ApiException.java +++ b/src/main/java/com/lilt/client/ApiException.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/src/main/java/com/lilt/client/ApiResponse.java b/src/main/java/com/lilt/client/ApiResponse.java index 297d18c5a..519cc71bf 100644 --- a/src/main/java/com/lilt/client/ApiResponse.java +++ b/src/main/java/com/lilt/client/ApiResponse.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/lilt/client/Configuration.java b/src/main/java/com/lilt/client/Configuration.java index c60c9d408..d51b6f572 100644 --- a/src/main/java/com/lilt/client/Configuration.java +++ b/src/main/java/com/lilt/client/Configuration.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,7 +13,7 @@ package com.lilt.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); diff --git a/src/main/java/com/lilt/client/GzipRequestInterceptor.java b/src/main/java/com/lilt/client/GzipRequestInterceptor.java index f1f53e540..75cef4d4f 100644 --- a/src/main/java/com/lilt/client/GzipRequestInterceptor.java +++ b/src/main/java/com/lilt/client/GzipRequestInterceptor.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/lilt/client/JSON.java b/src/main/java/com/lilt/client/JSON.java index 53249545a..dc8b3e245 100644 --- a/src/main/java/com/lilt/client/JSON.java +++ b/src/main/java/com/lilt/client/JSON.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/lilt/client/Pair.java b/src/main/java/com/lilt/client/Pair.java index 3412280c5..d4cb3a629 100644 --- a/src/main/java/com/lilt/client/Pair.java +++ b/src/main/java/com/lilt/client/Pair.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,7 +13,7 @@ package com.lilt.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/com/lilt/client/ProgressRequestBody.java b/src/main/java/com/lilt/client/ProgressRequestBody.java index f4c41ed56..b0c11f371 100644 --- a/src/main/java/com/lilt/client/ProgressRequestBody.java +++ b/src/main/java/com/lilt/client/ProgressRequestBody.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/lilt/client/ProgressResponseBody.java b/src/main/java/com/lilt/client/ProgressResponseBody.java index 23ebe729c..5054a37a3 100644 --- a/src/main/java/com/lilt/client/ProgressResponseBody.java +++ b/src/main/java/com/lilt/client/ProgressResponseBody.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/lilt/client/StringUtil.java b/src/main/java/com/lilt/client/StringUtil.java index 2e9c2174a..932bb663c 100644 --- a/src/main/java/com/lilt/client/StringUtil.java +++ b/src/main/java/com/lilt/client/StringUtil.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/com/lilt/client/api/CreateApi.java b/src/main/java/com/lilt/client/api/CreateApi.java index b4e16e1bd..92a3a0773 100644 --- a/src/main/java/com/lilt/client/api/CreateApi.java +++ b/src/main/java/com/lilt/client/api/CreateApi.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,9 +28,11 @@ import com.lilt.client.model.CreateConverterConfigParameters; +import com.lilt.client.model.Error; import com.lilt.client.model.GetLiltCreateContentResponse; import com.lilt.client.model.InlineResponse200; import com.lilt.client.model.LiltCreateContent; +import com.lilt.client.model.LiltCreateContentRequest; import com.lilt.client.model.SignLiltCreateTermsResponse; import java.lang.reflect.Type; @@ -68,6 +70,8 @@ public void setApiClient(ApiClient apiClient) { + +
Status Code Description Response Headers
200 The Delete Lilt Create Content Response. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call deleteLiltCreateContentCall(Integer contentId, final ApiCallback _callback) throws ApiException { @@ -84,7 +88,7 @@ public okhttp3.Call deleteLiltCreateContentCall(Integer contentId, final ApiCall Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -125,6 +129,8 @@ private okhttp3.Call deleteLiltCreateContentValidateBeforeCall(Integer contentId + +
Status Code Description Response Headers
200 The Delete Lilt Create Content Response. -
401 Unauthorized -
0 Unexpected error -
*/ public InlineResponse200 deleteLiltCreateContent(Integer contentId) throws ApiException { @@ -142,6 +148,8 @@ public InlineResponse200 deleteLiltCreateContent(Integer contentId) throws ApiEx + +
Status Code Description Response Headers
200 The Delete Lilt Create Content Response. -
401 Unauthorized -
0 Unexpected error -
*/ public ApiResponse deleteLiltCreateContentWithHttpInfo(Integer contentId) throws ApiException { @@ -161,6 +169,8 @@ public ApiResponse deleteLiltCreateContentWithHttpInfo(Intege + +
Status Code Description Response Headers
200 The Delete Lilt Create Content Response. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call deleteLiltCreateContentAsync(Integer contentId, final ApiCallback _callback) throws ApiException { @@ -180,9 +190,11 @@ public okhttp3.Call deleteLiltCreateContentAsync(Integer contentId, final ApiCal + +
Status Code Description Response Headers
200 An event stream produced by Server Side Events. The following events are supported. - message: an object with the newly generated text (e.g. {\"text\": \"hello\"}) - message: upon completion of events the string \"[DONE]\" will be emitted - fullcontent: an object containing the full response -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call generateLiltCreateContentCall(LiltCreateContent templateParams, final ApiCallback _callback) throws ApiException { + public okhttp3.Call generateLiltCreateContentCall(LiltCreateContentRequest templateParams, final ApiCallback _callback) throws ApiException { Object localVarPostBody = templateParams; // create path and map variables @@ -195,7 +207,7 @@ public okhttp3.Call generateLiltCreateContentCall(LiltCreateContent templatePara Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - + "application/octet-stream", "text/plain", "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -213,7 +225,7 @@ public okhttp3.Call generateLiltCreateContentCall(LiltCreateContent templatePara } @SuppressWarnings("rawtypes") - private okhttp3.Call generateLiltCreateContentValidateBeforeCall(LiltCreateContent templateParams, final ApiCallback _callback) throws ApiException { + private okhttp3.Call generateLiltCreateContentValidateBeforeCall(LiltCreateContentRequest templateParams, final ApiCallback _callback) throws ApiException { // verify the required parameter 'templateParams' is set if (templateParams == null) { @@ -235,9 +247,11 @@ private okhttp3.Call generateLiltCreateContentValidateBeforeCall(LiltCreateConte + +
Status Code Description Response Headers
200 An event stream produced by Server Side Events. The following events are supported. - message: an object with the newly generated text (e.g. {\"text\": \"hello\"}) - message: upon completion of events the string \"[DONE]\" will be emitted - fullcontent: an object containing the full response -
401 Unauthorized -
0 Unexpected error -
*/ - public void generateLiltCreateContent(LiltCreateContent templateParams) throws ApiException { + public void generateLiltCreateContent(LiltCreateContentRequest templateParams) throws ApiException { generateLiltCreateContentWithHttpInfo(templateParams); } @@ -251,9 +265,11 @@ public void generateLiltCreateContent(LiltCreateContent templateParams) throws A + +
Status Code Description Response Headers
200 An event stream produced by Server Side Events. The following events are supported. - message: an object with the newly generated text (e.g. {\"text\": \"hello\"}) - message: upon completion of events the string \"[DONE]\" will be emitted - fullcontent: an object containing the full response -
401 Unauthorized -
0 Unexpected error -
*/ - public ApiResponse generateLiltCreateContentWithHttpInfo(LiltCreateContent templateParams) throws ApiException { + public ApiResponse generateLiltCreateContentWithHttpInfo(LiltCreateContentRequest templateParams) throws ApiException { okhttp3.Call localVarCall = generateLiltCreateContentValidateBeforeCall(templateParams, null); return localVarApiClient.execute(localVarCall); } @@ -269,9 +285,11 @@ public ApiResponse generateLiltCreateContentWithHttpInfo(LiltCreateContent + +
Status Code Description Response Headers
200 An event stream produced by Server Side Events. The following events are supported. - message: an object with the newly generated text (e.g. {\"text\": \"hello\"}) - message: upon completion of events the string \"[DONE]\" will be emitted - fullcontent: an object containing the full response -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call generateLiltCreateContentAsync(LiltCreateContent templateParams, final ApiCallback _callback) throws ApiException { + public okhttp3.Call generateLiltCreateContentAsync(LiltCreateContentRequest templateParams, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = generateLiltCreateContentValidateBeforeCall(templateParams, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -287,6 +305,8 @@ public okhttp3.Call generateLiltCreateContentAsync(LiltCreateContent templatePar + +
Status Code Description Response Headers
200 The Lilt Create content. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call getLiltCreateByIdCall(Integer contentId, final ApiCallback _callback) throws ApiException { @@ -303,7 +323,7 @@ public okhttp3.Call getLiltCreateByIdCall(Integer contentId, final ApiCallback _ Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -344,6 +364,8 @@ private okhttp3.Call getLiltCreateByIdValidateBeforeCall(Integer contentId, fina + +
Status Code Description Response Headers
200 The Lilt Create content. -
401 Unauthorized -
0 Unexpected error -
*/ public LiltCreateContent getLiltCreateById(Integer contentId) throws ApiException { @@ -361,6 +383,8 @@ public LiltCreateContent getLiltCreateById(Integer contentId) throws ApiExceptio + +
Status Code Description Response Headers
200 The Lilt Create content. -
401 Unauthorized -
0 Unexpected error -
*/ public ApiResponse getLiltCreateByIdWithHttpInfo(Integer contentId) throws ApiException { @@ -380,6 +404,8 @@ public ApiResponse getLiltCreateByIdWithHttpInfo(Integer cont + +
Status Code Description Response Headers
200 The Lilt Create content. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call getLiltCreateByIdAsync(Integer contentId, final ApiCallback _callback) throws ApiException { @@ -398,6 +424,8 @@ public okhttp3.Call getLiltCreateByIdAsync(Integer contentId, final ApiCallback< + +
Status Code Description Response Headers
200 An object with a documents next task Workflow metadata. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call getLiltCreateContentCall(final ApiCallback _callback) throws ApiException { @@ -413,7 +441,7 @@ public okhttp3.Call getLiltCreateContentCall(final ApiCallback _callback) throws Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -448,6 +476,8 @@ private okhttp3.Call getLiltCreateContentValidateBeforeCall(final ApiCallback _c + +
Status Code Description Response Headers
200 An object with a documents next task Workflow metadata. -
401 Unauthorized -
0 Unexpected error -
*/ public GetLiltCreateContentResponse getLiltCreateContent() throws ApiException { @@ -464,6 +494,8 @@ public GetLiltCreateContentResponse getLiltCreateContent() throws ApiException { + +
Status Code Description Response Headers
200 An object with a documents next task Workflow metadata. -
401 Unauthorized -
0 Unexpected error -
*/ public ApiResponse getLiltCreateContentWithHttpInfo() throws ApiException { @@ -482,6 +514,8 @@ public ApiResponse getLiltCreateContentWithHttpInf + +
Status Code Description Response Headers
200 An object with a documents next task Workflow metadata. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call getLiltCreateContentAsync(final ApiCallback _callback) throws ApiException { @@ -500,6 +534,8 @@ public okhttp3.Call getLiltCreateContentAsync(final ApiCallback Status Code Description Response Headers 200 An object describing the stored preferences. - + 401 Unauthorized - + 0 Unexpected error - */ public okhttp3.Call getLiltCreatePreferencesCall(final ApiCallback _callback) throws ApiException { @@ -515,7 +551,7 @@ public okhttp3.Call getLiltCreatePreferencesCall(final ApiCallback _callback) th Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - + "application/octet-stream", "text/plain", "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -549,6 +585,8 @@ private okhttp3.Call getLiltCreatePreferencesValidateBeforeCall(final ApiCallbac + +
Status Code Description Response Headers
200 An object describing the stored preferences. -
401 Unauthorized -
0 Unexpected error -
*/ public void getLiltCreatePreferences() throws ApiException { @@ -564,6 +602,8 @@ public void getLiltCreatePreferences() throws ApiException { + +
Status Code Description Response Headers
200 An object describing the stored preferences. -
401 Unauthorized -
0 Unexpected error -
*/ public ApiResponse getLiltCreatePreferencesWithHttpInfo() throws ApiException { @@ -581,6 +621,8 @@ public ApiResponse getLiltCreatePreferencesWithHttpInfo() throws ApiExcept + +
Status Code Description Response Headers
200 An object describing the stored preferences. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call getLiltCreatePreferencesAsync(final ApiCallback _callback) throws ApiException { @@ -599,6 +641,8 @@ public okhttp3.Call getLiltCreatePreferencesAsync(final ApiCallback _callb + +
Status Code Description Response Headers
200 An event stream produced by Server Side Events. The following events are supported. - message: an object with the newly generated text (e.g. {\"text\": \"hello\"}) - message: upon completion of events the string \"[DONE]\" will be emitted - fullcontent: an object containing the full response -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call regenerateLiltCreateContentCall(Integer contentId, final ApiCallback _callback) throws ApiException { @@ -615,7 +659,7 @@ public okhttp3.Call regenerateLiltCreateContentCall(Integer contentId, final Api Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - + "application/octet-stream", "text/plain", "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -655,6 +699,8 @@ private okhttp3.Call regenerateLiltCreateContentValidateBeforeCall(Integer conte + +
Status Code Description Response Headers
200 An event stream produced by Server Side Events. The following events are supported. - message: an object with the newly generated text (e.g. {\"text\": \"hello\"}) - message: upon completion of events the string \"[DONE]\" will be emitted - fullcontent: an object containing the full response -
401 Unauthorized -
0 Unexpected error -
*/ public void regenerateLiltCreateContent(Integer contentId) throws ApiException { @@ -671,6 +717,8 @@ public void regenerateLiltCreateContent(Integer contentId) throws ApiException { + +
Status Code Description Response Headers
200 An event stream produced by Server Side Events. The following events are supported. - message: an object with the newly generated text (e.g. {\"text\": \"hello\"}) - message: upon completion of events the string \"[DONE]\" will be emitted - fullcontent: an object containing the full response -
401 Unauthorized -
0 Unexpected error -
*/ public ApiResponse regenerateLiltCreateContentWithHttpInfo(Integer contentId) throws ApiException { @@ -689,6 +737,8 @@ public ApiResponse regenerateLiltCreateContentWithHttpInfo(Integer content + +
Status Code Description Response Headers
200 An event stream produced by Server Side Events. The following events are supported. - message: an object with the newly generated text (e.g. {\"text\": \"hello\"}) - message: upon completion of events the string \"[DONE]\" will be emitted - fullcontent: an object containing the full response -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call regenerateLiltCreateContentAsync(Integer contentId, final ApiCallback _callback) throws ApiException { @@ -707,6 +757,8 @@ public okhttp3.Call regenerateLiltCreateContentAsync(Integer contentId, final Ap + +
Status Code Description Response Headers
200 An object indicating whether the agreement has been signed or not. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call signLiltCreateTermsCall(CreateConverterConfigParameters signedAgreement, final ApiCallback _callback) throws ApiException { @@ -722,7 +774,7 @@ public okhttp3.Call signLiltCreateTermsCall(CreateConverterConfigParameters sign Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -763,6 +815,8 @@ private okhttp3.Call signLiltCreateTermsValidateBeforeCall(CreateConverterConfig + +
Status Code Description Response Headers
200 An object indicating whether the agreement has been signed or not. -
401 Unauthorized -
0 Unexpected error -
*/ public SignLiltCreateTermsResponse signLiltCreateTerms(CreateConverterConfigParameters signedAgreement) throws ApiException { @@ -780,6 +834,8 @@ public SignLiltCreateTermsResponse signLiltCreateTerms(CreateConverterConfigPara + +
Status Code Description Response Headers
200 An object indicating whether the agreement has been signed or not. -
401 Unauthorized -
0 Unexpected error -
*/ public ApiResponse signLiltCreateTermsWithHttpInfo(CreateConverterConfigParameters signedAgreement) throws ApiException { @@ -799,6 +855,8 @@ public ApiResponse signLiltCreateTermsWithHttpInfo( + +
Status Code Description Response Headers
200 An object indicating whether the agreement has been signed or not. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call signLiltCreateTermsAsync(CreateConverterConfigParameters signedAgreement, final ApiCallback _callback) throws ApiException { @@ -819,6 +877,8 @@ public okhttp3.Call signLiltCreateTermsAsync(CreateConverterConfigParameters sig + +
Status Code Description Response Headers
200 The updated Lilt Create content. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call updateLiltCreateContentCall(Integer contentId, LiltCreateContent body, final ApiCallback _callback) throws ApiException { @@ -835,7 +895,7 @@ public okhttp3.Call updateLiltCreateContentCall(Integer contentId, LiltCreateCon Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -877,6 +937,8 @@ private okhttp3.Call updateLiltCreateContentValidateBeforeCall(Integer contentId + +
Status Code Description Response Headers
200 The updated Lilt Create content. -
401 Unauthorized -
0 Unexpected error -
*/ public LiltCreateContent updateLiltCreateContent(Integer contentId, LiltCreateContent body) throws ApiException { @@ -895,6 +957,8 @@ public LiltCreateContent updateLiltCreateContent(Integer contentId, LiltCreateCo + +
Status Code Description Response Headers
200 The updated Lilt Create content. -
401 Unauthorized -
0 Unexpected error -
*/ public ApiResponse updateLiltCreateContentWithHttpInfo(Integer contentId, LiltCreateContent body) throws ApiException { @@ -915,6 +979,8 @@ public ApiResponse updateLiltCreateContentWithHttpInfo(Intege + +
Status Code Description Response Headers
200 The updated Lilt Create content. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call updateLiltCreateContentAsync(Integer contentId, LiltCreateContent body, final ApiCallback _callback) throws ApiException { @@ -934,6 +1000,8 @@ public okhttp3.Call updateLiltCreateContentAsync(Integer contentId, LiltCreateCo + +
Status Code Description Response Headers
200 The updated Lilt Create preferences. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call updateLiltCreatePreferencesCall(LiltCreateContent styleguide, final ApiCallback _callback) throws ApiException { @@ -949,7 +1017,7 @@ public okhttp3.Call updateLiltCreatePreferencesCall(LiltCreateContent styleguide Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - + "application/octet-stream", "text/plain", "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -984,6 +1052,8 @@ private okhttp3.Call updateLiltCreatePreferencesValidateBeforeCall(LiltCreateCon + +
Status Code Description Response Headers
200 The updated Lilt Create preferences. -
401 Unauthorized -
0 Unexpected error -
*/ public void updateLiltCreatePreferences(LiltCreateContent styleguide) throws ApiException { @@ -1000,6 +1070,8 @@ public void updateLiltCreatePreferences(LiltCreateContent styleguide) throws Api + +
Status Code Description Response Headers
200 The updated Lilt Create preferences. -
401 Unauthorized -
0 Unexpected error -
*/ public ApiResponse updateLiltCreatePreferencesWithHttpInfo(LiltCreateContent styleguide) throws ApiException { @@ -1018,6 +1090,8 @@ public ApiResponse updateLiltCreatePreferencesWithHttpInfo(LiltCreateConte + +
Status Code Description Response Headers
200 The updated Lilt Create preferences. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call updateLiltCreatePreferencesAsync(LiltCreateContent styleguide, final ApiCallback _callback) throws ApiException { diff --git a/src/main/java/com/lilt/client/api/DocumentsApi.java b/src/main/java/com/lilt/client/api/DocumentsApi.java index 68f10d162..af8bca5c5 100644 --- a/src/main/java/com/lilt/client/api/DocumentsApi.java +++ b/src/main/java/com/lilt/client/api/DocumentsApi.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -67,6 +67,7 @@ public void setApiClient(ApiClient apiClient) { +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
502 File in pretranslation. -
0 Unexpected error -
@@ -92,7 +93,7 @@ public okhttp3.Call downloadDocumentCall(Integer id, Boolean isXliff, final ApiC } final String[] localVarAccepts = { - "application/octet-stream" + "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -134,6 +135,7 @@ private okhttp3.Call downloadDocumentValidateBeforeCall(Integer id, Boolean isXl +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
502 File in pretranslation. -
0 Unexpected error -
@@ -154,6 +156,7 @@ public byte[] downloadDocument(Integer id, Boolean isXliff) throws ApiException +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
502 File in pretranslation. -
0 Unexpected error -
@@ -176,6 +179,7 @@ public ApiResponse downloadDocumentWithHttpInfo(Integer id, Boolean isXl +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
502 File in pretranslation. -
0 Unexpected error -
@@ -204,6 +208,7 @@ public okhttp3.Call downloadDocumentAsync(Integer id, Boolean isXliff, final Api +
Status Code Description Response Headers
200 A Document object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -248,7 +253,7 @@ public okhttp3.Call uploadDocumentCall(String name, Integer projectId, File body } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -306,6 +311,7 @@ private okhttp3.Call uploadDocumentValidateBeforeCall(String name, Integer proje +
Status Code Description Response Headers
200 A Document object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -331,6 +337,7 @@ public DocumentWithSegments uploadDocument(String name, Integer projectId, File +
Status Code Description Response Headers
200 A Document object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -358,6 +365,7 @@ public ApiResponse uploadDocumentWithHttpInfo(String name, +
Status Code Description Response Headers
200 A Document object. -
401 Unauthorized -
0 Unexpected error -
*/ diff --git a/src/main/java/com/lilt/client/api/FilesApi.java b/src/main/java/com/lilt/client/api/FilesApi.java index c4c9961e4..22bf0851c 100644 --- a/src/main/java/com/lilt/client/api/FilesApi.java +++ b/src/main/java/com/lilt/client/api/FilesApi.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -69,6 +69,8 @@ public void setApiClient(ApiClient apiClient) { + +
Status Code Description Response Headers
204 A success response. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call addLabelCall(String id, AddFileLabelRequest name, final ApiCallback _callback) throws ApiException { @@ -88,7 +90,7 @@ public okhttp3.Call addLabelCall(String id, AddFileLabelRequest name, final ApiC } final String[] localVarAccepts = { - + "application/octet-stream", "text/plain", "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -134,6 +136,8 @@ private okhttp3.Call addLabelValidateBeforeCall(String id, AddFileLabelRequest n + +
Status Code Description Response Headers
204 A success response. -
401 Unauthorized -
0 Unexpected error -
*/ public void addLabel(String id, AddFileLabelRequest name) throws ApiException { @@ -151,6 +155,8 @@ public void addLabel(String id, AddFileLabelRequest name) throws ApiException { + +
Status Code Description Response Headers
204 A success response. -
401 Unauthorized -
0 Unexpected error -
*/ public ApiResponse addLabelWithHttpInfo(String id, AddFileLabelRequest name) throws ApiException { @@ -170,6 +176,8 @@ public ApiResponse addLabelWithHttpInfo(String id, AddFileLabelRequest nam + +
Status Code Description Response Headers
204 A success response. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call addLabelAsync(String id, AddFileLabelRequest name, final ApiCallback _callback) throws ApiException { @@ -188,6 +196,7 @@ public okhttp3.Call addLabelAsync(String id, AddFileLabelRequest name, final Api +
Status Code Description Response Headers
204 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -208,7 +217,7 @@ public okhttp3.Call deleteFileCall(Integer id, final ApiCallback _callback) thro } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -249,6 +258,7 @@ private okhttp3.Call deleteFileValidateBeforeCall(Integer id, final ApiCallback +
Status Code Description Response Headers
204 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -267,6 +277,7 @@ public FileDeleteResponse deleteFile(Integer id) throws ApiException { +
Status Code Description Response Headers
204 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -287,6 +298,7 @@ public ApiResponse deleteFileWithHttpInfo(Integer id) throws +
Status Code Description Response Headers
204 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -307,6 +319,8 @@ public okhttp3.Call deleteFileAsync(Integer id, final ApiCallback Status Code Description Response Headers 200 A file. - + 401 Unauthorized - + 0 Unexpected error - */ public okhttp3.Call downloadCall(String id, final ApiCallback _callback) throws ApiException { @@ -326,7 +340,7 @@ public okhttp3.Call downloadCall(String id, final ApiCallback _callback) throws } final String[] localVarAccepts = { - "application/octet-stream" + "application/octet-stream", "text/plain", "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -367,6 +381,8 @@ private okhttp3.Call downloadValidateBeforeCall(String id, final ApiCallback _ca + +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
0 Unexpected error -
*/ public byte[] download(String id) throws ApiException { @@ -384,6 +400,8 @@ public byte[] download(String id) throws ApiException { + +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
0 Unexpected error -
*/ public ApiResponse downloadWithHttpInfo(String id) throws ApiException { @@ -403,6 +421,8 @@ public ApiResponse downloadWithHttpInfo(String id) throws ApiException { + +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call downloadAsync(String id, final ApiCallback _callback) throws ApiException { @@ -423,6 +443,7 @@ public okhttp3.Call downloadAsync(String id, final ApiCallback _callback + @@ -449,7 +470,7 @@ public okhttp3.Call getFilesCall(Integer id, List labels, final ApiCallb } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -486,6 +507,7 @@ private okhttp3.Call getFilesValidateBeforeCall(Integer id, List labels,
Status Code Description Response Headers
200 A list of files. -
401 Unauthorized -
403 User does not have permission for provided file. -
410 File deleted. -
0 Unexpected error. -
+ @@ -507,6 +529,7 @@ public List getFiles(Integer id, List labels) throws ApiExce
Status Code Description Response Headers
200 A list of files. -
401 Unauthorized -
403 User does not have permission for provided file. -
410 File deleted. -
0 Unexpected error. -
+ @@ -530,6 +553,7 @@ public ApiResponse> getFilesWithHttpInfo(Integer id, List + @@ -553,6 +577,8 @@ public okhttp3.Call getFilesAsync(Integer id, List labels, final ApiCall
Status Code Description Response Headers
200 A list of files. -
401 Unauthorized -
403 User does not have permission for provided file. -
410 File deleted. -
0 Unexpected error. -
Status Code Description Response Headers
200 A list of files. -
401 Unauthorized -
403 User does not have permission for provided file. -
410 File deleted. -
0 Unexpected error. -
+ +
Status Code Description Response Headers
204 A success response. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call removeLabelCall(String id, String name, final ApiCallback _callback) throws ApiException { @@ -576,7 +602,7 @@ public okhttp3.Call removeLabelCall(String id, String name, final ApiCallback _c } final String[] localVarAccepts = { - + "application/octet-stream", "text/plain", "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -622,6 +648,8 @@ private okhttp3.Call removeLabelValidateBeforeCall(String id, String name, final + +
Status Code Description Response Headers
204 A success response. -
401 Unauthorized -
0 Unexpected error -
*/ public void removeLabel(String id, String name) throws ApiException { @@ -639,6 +667,8 @@ public void removeLabel(String id, String name) throws ApiException { + +
Status Code Description Response Headers
204 A success response. -
401 Unauthorized -
0 Unexpected error -
*/ public ApiResponse removeLabelWithHttpInfo(String id, String name) throws ApiException { @@ -658,6 +688,8 @@ public ApiResponse removeLabelWithHttpInfo(String id, String name) throws + +
Status Code Description Response Headers
204 A success response. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call removeLabelAsync(String id, String name, final ApiCallback _callback) throws ApiException { @@ -682,6 +714,7 @@ public okhttp3.Call removeLabelAsync(String id, String name, final ApiCallback Status Code Description Response Headers 201 A SourceFile object. - + 401 Unauthorized - 0 Unexpected error - */ @@ -722,7 +755,7 @@ public okhttp3.Call uploadFileCall(String name, File body, String fileHash, Bool } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -774,6 +807,7 @@ private okhttp3.Call uploadFileValidateBeforeCall(String name, File body, String +
Status Code Description Response Headers
201 A SourceFile object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -798,6 +832,7 @@ public SourceFile uploadFile(String name, File body, String fileHash, Boolean la +
Status Code Description Response Headers
201 A SourceFile object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -824,6 +859,7 @@ public ApiResponse uploadFileWithHttpInfo(String name, File body, St +
Status Code Description Response Headers
201 A SourceFile object. -
401 Unauthorized -
0 Unexpected error -
*/ diff --git a/src/main/java/com/lilt/client/api/JobsApi.java b/src/main/java/com/lilt/client/api/JobsApi.java index bd56ce9a2..b627af0bf 100644 --- a/src/main/java/com/lilt/client/api/JobsApi.java +++ b/src/main/java/com/lilt/client/api/JobsApi.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -69,6 +69,7 @@ public void setApiClient(ApiClient apiClient) { +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -86,7 +87,7 @@ public okhttp3.Call archiveJobCall(Integer jobId, final ApiCallback _callback) t Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -127,6 +128,7 @@ private okhttp3.Call archiveJobValidateBeforeCall(Integer jobId, final ApiCallba +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -145,6 +147,7 @@ public Job archiveJob(Integer jobId) throws ApiException { +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -165,6 +168,7 @@ public ApiResponse archiveJobWithHttpInfo(Integer jobId) throws ApiExceptio +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -185,6 +189,7 @@ public okhttp3.Call archiveJobAsync(Integer jobId, final ApiCallback _callb +
Status Code Description Response Headers
200 A Job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -201,7 +206,7 @@ public okhttp3.Call createJobCall(JobCreateParameters body, final ApiCallback _c Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -242,6 +247,7 @@ private okhttp3.Call createJobValidateBeforeCall(JobCreateParameters body, final +
Status Code Description Response Headers
200 A Job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -260,6 +266,7 @@ public Job createJob(JobCreateParameters body) throws ApiException { +
Status Code Description Response Headers
200 A Job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -280,6 +287,7 @@ public ApiResponse createJobWithHttpInfo(JobCreateParameters body) throws A +
Status Code Description Response Headers
200 A Job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -300,6 +308,7 @@ public okhttp3.Call createJobAsync(JobCreateParameters body, final ApiCallback Status Code Description Response Headers 200 A status object. - + 401 Unauthorized - 0 Unexpected error - */ @@ -317,7 +326,7 @@ public okhttp3.Call deleteJobCall(Integer jobId, final ApiCallback _callback) th Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -358,6 +367,7 @@ private okhttp3.Call deleteJobValidateBeforeCall(Integer jobId, final ApiCallbac +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -376,6 +386,7 @@ public JobDeleteResponse deleteJob(Integer jobId) throws ApiException { +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -396,6 +407,7 @@ public ApiResponse deleteJobWithHttpInfo(Integer jobId) throw +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -416,6 +428,7 @@ public okhttp3.Call deleteJobAsync(Integer jobId, final ApiCallback Status Code Description Response Headers 200 A job object. - + 401 Unauthorized - 0 Unexpected error - */ @@ -433,7 +446,7 @@ public okhttp3.Call deliverJobCall(Integer jobId, final ApiCallback _callback) t Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -474,6 +487,7 @@ private okhttp3.Call deliverJobValidateBeforeCall(Integer jobId, final ApiCallba +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -492,6 +506,7 @@ public Job deliverJob(Integer jobId) throws ApiException { +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -512,6 +527,7 @@ public ApiResponse deliverJobWithHttpInfo(Integer jobId) throws ApiExceptio +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -532,6 +548,7 @@ public okhttp3.Call deliverJobAsync(Integer jobId, final ApiCallback _callb +
Status Code Description Response Headers
200 zipped file -
401 Unauthorized -
0 Unexpected error -
*/ @@ -539,7 +556,7 @@ public okhttp3.Call downloadJobCall(Integer jobId, final ApiCallback _callback) Object localVarPostBody = null; // create path and map variables - String localVarPath = "/v2/jobs/{jobId}/downlod" + String localVarPath = "/v2/jobs/{jobId}/download" .replaceAll("\\{" + "jobId" + "\\}", localVarApiClient.escapeString(jobId.toString())); List localVarQueryParams = new ArrayList(); @@ -549,7 +566,7 @@ public okhttp3.Call downloadJobCall(Integer jobId, final ApiCallback _callback) Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/octet-stream", "text/plain", "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -584,34 +601,39 @@ private okhttp3.Call downloadJobValidateBeforeCall(Integer jobId, final ApiCallb * Download a Job * Make sure you have exported a job with the same id before using this api. Downloading files requires the exported job `id` in the param. Example CURL command: ```bash curl -X GET 'https://api.lilt.com/v2/jobs/{id}/download?key=API_KEY' ``` * @param jobId A job id. (required) + * @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 zipped file -
401 Unauthorized -
0 Unexpected error -
*/ - public void downloadJob(Integer jobId) throws ApiException { - downloadJobWithHttpInfo(jobId); + public byte[] downloadJob(Integer jobId) throws ApiException { + ApiResponse localVarResp = downloadJobWithHttpInfo(jobId); + return localVarResp.getData(); } /** * Download a Job * Make sure you have exported a job with the same id before using this api. Downloading files requires the exported job `id` in the param. Example CURL command: ```bash curl -X GET 'https://api.lilt.com/v2/jobs/{id}/download?key=API_KEY' ``` * @param jobId A job id. (required) - * @return ApiResponse<Void> + * @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 zipped file -
401 Unauthorized -
0 Unexpected error -
*/ - public ApiResponse downloadJobWithHttpInfo(Integer jobId) throws ApiException { + public ApiResponse downloadJobWithHttpInfo(Integer jobId) throws ApiException { okhttp3.Call localVarCall = downloadJobValidateBeforeCall(jobId, null); - return localVarApiClient.execute(localVarCall); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -625,13 +647,15 @@ public ApiResponse downloadJobWithHttpInfo(Integer jobId) throws ApiExcept +
Status Code Description Response Headers
200 zipped file -
401 Unauthorized -
0 Unexpected error -
*/ - public okhttp3.Call downloadJobAsync(Integer jobId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call downloadJobAsync(Integer jobId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = downloadJobValidateBeforeCall(jobId, _callback); - localVarApiClient.executeAsync(localVarCall, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** @@ -645,6 +669,7 @@ public okhttp3.Call downloadJobAsync(Integer jobId, final ApiCallback _cal +
Status Code Description Response Headers
200 200 status. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -666,7 +691,7 @@ public okhttp3.Call exportJobCall(Integer jobId, String type, final ApiCallback } final String[] localVarAccepts = { - "application/json" + "application/octet-stream", "text/plain", "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -712,6 +737,7 @@ private okhttp3.Call exportJobValidateBeforeCall(Integer jobId, String type, fin +
Status Code Description Response Headers
200 200 status. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -730,6 +756,7 @@ public void exportJob(Integer jobId, String type) throws ApiException { +
Status Code Description Response Headers
200 200 status. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -750,6 +777,7 @@ public ApiResponse exportJobWithHttpInfo(Integer jobId, String type) throw +
Status Code Description Response Headers
200 200 status. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -769,6 +797,7 @@ public okhttp3.Call exportJobAsync(Integer jobId, String type, final ApiCallback +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -786,7 +815,7 @@ public okhttp3.Call getJobCall(Integer jobId, final ApiCallback _callback) throw Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -827,6 +856,7 @@ private okhttp3.Call getJobValidateBeforeCall(Integer jobId, final ApiCallback _ +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -845,6 +875,7 @@ public Job getJob(Integer jobId) throws ApiException { +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -865,6 +896,7 @@ public ApiResponse getJobWithHttpInfo(Integer jobId) throws ApiException { +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -885,6 +917,7 @@ public okhttp3.Call getJobAsync(Integer jobId, final ApiCallback _callback) +
Status Code Description Response Headers
200 A job leverage stats object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -902,7 +935,7 @@ public okhttp3.Call getJobLeverageStatsCall(Integer jobId, final ApiCallback _ca Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -943,6 +976,7 @@ private okhttp3.Call getJobLeverageStatsValidateBeforeCall(Integer jobId, final +
Status Code Description Response Headers
200 A job leverage stats object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -961,6 +995,7 @@ public JobLeverageStats getJobLeverageStats(Integer jobId) throws ApiException { +
Status Code Description Response Headers
200 A job leverage stats object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -981,6 +1016,7 @@ public ApiResponse getJobLeverageStatsWithHttpInfo(Integer job +
Status Code Description Response Headers
200 A job leverage stats object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1001,6 +1037,7 @@ public okhttp3.Call getJobLeverageStatsAsync(Integer jobId, final ApiCallback Status Code Description Response Headers 200 A job object. - + 401 Unauthorized - 0 Unexpected error - */ @@ -1018,7 +1055,7 @@ public okhttp3.Call reactivateJobCall(Integer jobId, final ApiCallback _callback Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1059,6 +1096,7 @@ private okhttp3.Call reactivateJobValidateBeforeCall(Integer jobId, final ApiCal +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1077,6 +1115,7 @@ public Job reactivateJob(Integer jobId) throws ApiException { +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1097,6 +1136,7 @@ public ApiResponse reactivateJobWithHttpInfo(Integer jobId) throws ApiExcep +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1120,6 +1160,7 @@ public okhttp3.Call reactivateJobAsync(Integer jobId, final ApiCallback _ca +
Status Code Description Response Headers
200 A list of Job objects. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1152,7 +1193,7 @@ public okhttp3.Call retrieveAllJobsCall(Boolean isArchived, Boolean isDelivered, } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1191,6 +1232,7 @@ private okhttp3.Call retrieveAllJobsValidateBeforeCall(Boolean isArchived, Boole +
Status Code Description Response Headers
200 A list of Job objects. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1212,6 +1254,7 @@ public List retrieveAllJobs(Boolean isArchived, Boolean isDelivered, Intege +
Status Code Description Response Headers
200 A list of Job objects. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1235,6 +1278,7 @@ public ApiResponse> retrieveAllJobsWithHttpInfo(Boolean isArchived, Bo +
Status Code Description Response Headers
200 A list of Job objects. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1255,6 +1299,7 @@ public okhttp3.Call retrieveAllJobsAsync(Boolean isArchived, Boolean isDelivered +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1272,7 +1317,7 @@ public okhttp3.Call unarchiveJobCall(Integer jobId, final ApiCallback _callback) Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1313,6 +1358,7 @@ private okhttp3.Call unarchiveJobValidateBeforeCall(Integer jobId, final ApiCall +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1331,6 +1377,7 @@ public Job unarchiveJob(Integer jobId) throws ApiException { +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1351,6 +1398,7 @@ public ApiResponse unarchiveJobWithHttpInfo(Integer jobId) throws ApiExcept +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1372,6 +1420,7 @@ public okhttp3.Call unarchiveJobAsync(Integer jobId, final ApiCallback _cal +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1389,7 +1438,7 @@ public okhttp3.Call updateJobCall(Integer jobId, JobUpdateParameters body, final Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1431,6 +1480,7 @@ private okhttp3.Call updateJobValidateBeforeCall(Integer jobId, JobUpdateParamet +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1450,6 +1500,7 @@ public Job updateJob(Integer jobId, JobUpdateParameters body) throws ApiExceptio +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1471,6 +1522,7 @@ public ApiResponse updateJobWithHttpInfo(Integer jobId, JobUpdateParameters +
Status Code Description Response Headers
200 A job object. -
401 Unauthorized -
0 Unexpected error -
*/ diff --git a/src/main/java/com/lilt/client/api/LanguagesApi.java b/src/main/java/com/lilt/client/api/LanguagesApi.java index 4e411571e..4cf14a5b6 100644 --- a/src/main/java/com/lilt/client/api/LanguagesApi.java +++ b/src/main/java/com/lilt/client/api/LanguagesApi.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -64,6 +64,7 @@ public void setApiClient(ApiClient apiClient) { +
Status Code Description Response Headers
200 An object listing supported languages and their corresponding locales. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -80,7 +81,7 @@ public okhttp3.Call getLanguagesCall(final ApiCallback _callback) throws ApiExce Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -115,6 +116,7 @@ private okhttp3.Call getLanguagesValidateBeforeCall(final ApiCallback _callback) +
Status Code Description Response Headers
200 An object listing supported languages and their corresponding locales. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -132,6 +134,7 @@ public LanguagesResponse getLanguages() throws ApiException { +
Status Code Description Response Headers
200 An object listing supported languages and their corresponding locales. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -151,6 +154,7 @@ public ApiResponse getLanguagesWithHttpInfo() throws ApiExcep +
Status Code Description Response Headers
200 An object listing supported languages and their corresponding locales. -
401 Unauthorized -
0 Unexpected error -
*/ diff --git a/src/main/java/com/lilt/client/api/MemoriesApi.java b/src/main/java/com/lilt/client/api/MemoriesApi.java index abab12a19..5e2a5d098 100644 --- a/src/main/java/com/lilt/client/api/MemoriesApi.java +++ b/src/main/java/com/lilt/client/api/MemoriesApi.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -74,6 +74,7 @@ public void setApiClient(ApiClient apiClient) { +
Status Code Description Response Headers
200 A Memory object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -90,7 +91,7 @@ public okhttp3.Call createMemoryCall(MemoryCreateParameters body, final ApiCallb Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -131,6 +132,7 @@ private okhttp3.Call createMemoryValidateBeforeCall(MemoryCreateParameters body, +
Status Code Description Response Headers
200 A Memory object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -149,6 +151,7 @@ public Memory createMemory(MemoryCreateParameters body) throws ApiException { +
Status Code Description Response Headers
200 A Memory object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -169,6 +172,7 @@ public ApiResponse createMemoryWithHttpInfo(MemoryCreateParameters body) +
Status Code Description Response Headers
200 A Memory object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -189,6 +193,7 @@ public okhttp3.Call createMemoryAsync(MemoryCreateParameters body, final ApiCall +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -209,7 +214,7 @@ public okhttp3.Call deleteMemoryCall(Integer id, final ApiCallback _callback) th } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -250,6 +255,7 @@ private okhttp3.Call deleteMemoryValidateBeforeCall(Integer id, final ApiCallbac +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -268,6 +274,7 @@ public MemoryDeleteResponse deleteMemory(Integer id) throws ApiException { +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -288,6 +295,7 @@ public ApiResponse deleteMemoryWithHttpInfo(Integer id) th +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -309,6 +317,7 @@ public okhttp3.Call deleteMemoryAsync(Integer id, final ApiCallback Status Code Description Response Headers 200 A success resposne. - + 401 Unauthorized - 0 Unexpected error - */ @@ -333,7 +342,7 @@ public okhttp3.Call deleteSegmentFromMemoryCall(Integer id, Integer segmentId, f } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -380,6 +389,7 @@ private okhttp3.Call deleteSegmentFromMemoryValidateBeforeCall(Integer id, Integ +
Status Code Description Response Headers
200 A success resposne. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -399,6 +409,7 @@ public DeleteSegmentFromMemoryResponse deleteSegmentFromMemory(Integer id, Integ +
Status Code Description Response Headers
200 A success resposne. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -420,6 +431,7 @@ public ApiResponse deleteSegmentFromMemoryWithH +
Status Code Description Response Headers
200 A success resposne. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -440,6 +452,7 @@ public okhttp3.Call deleteSegmentFromMemoryAsync(Integer id, Integer segmentId, +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -460,7 +473,7 @@ public okhttp3.Call downloadTermbaseCall(Integer id, final ApiCallback _callback } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -501,6 +514,7 @@ private okhttp3.Call downloadTermbaseValidateBeforeCall(Integer id, final ApiCal +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -519,6 +533,7 @@ public byte[] downloadTermbase(Integer id) throws ApiException { +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -539,6 +554,7 @@ public ApiResponse downloadTermbaseWithHttpInfo(Integer id) throws ApiEx +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -559,6 +575,7 @@ public okhttp3.Call downloadTermbaseAsync(Integer id, final ApiCallback +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -579,7 +596,7 @@ public okhttp3.Call exportTermbaseCall(Integer id, final ApiCallback _callback) } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -620,6 +637,7 @@ private okhttp3.Call exportTermbaseValidateBeforeCall(Integer id, final ApiCallb +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -638,6 +656,7 @@ public TermbaseExportResponse exportTermbase(Integer id) throws ApiException { +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -658,6 +677,7 @@ public ApiResponse exportTermbaseWithHttpInfo(Integer id +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -678,6 +698,8 @@ public okhttp3.Call exportTermbaseAsync(Integer id, final ApiCallback Status Code Description Response Headers 200 A list of Memory objects. - + 401 Unauthorized - + 404 Memory not found. - 0 Unexpected error - */ @@ -698,7 +720,7 @@ public okhttp3.Call getMemoryCall(Integer id, final ApiCallback _callback) throw } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -734,6 +756,8 @@ private okhttp3.Call getMemoryValidateBeforeCall(Integer id, final ApiCallback _ + +
Status Code Description Response Headers
200 A list of Memory objects. -
401 Unauthorized -
404 Memory not found. -
0 Unexpected error -
*/ @@ -752,6 +776,8 @@ public List getMemory(Integer id) throws ApiException { + +
Status Code Description Response Headers
200 A list of Memory objects. -
401 Unauthorized -
404 Memory not found. -
0 Unexpected error -
*/ @@ -772,6 +798,8 @@ public ApiResponse> getMemoryWithHttpInfo(Integer id) throws ApiExc + +
Status Code Description Response Headers
200 A list of Memory objects. -
401 Unauthorized -
404 Memory not found. -
0 Unexpected error -
*/ @@ -797,6 +825,7 @@ public okhttp3.Call getMemoryAsync(Integer id, final ApiCallback> _ +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -833,7 +862,7 @@ public okhttp3.Call importMemoryFileCall(Integer memoryId, String name, File bod } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -889,6 +918,7 @@ private okhttp3.Call importMemoryFileValidateBeforeCall(Integer memoryId, String +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -912,6 +942,7 @@ public MemoryImportResponse importMemoryFile(Integer memoryId, String name, File +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -937,6 +968,7 @@ public ApiResponse importMemoryFileWithHttpInfo(Integer me +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -959,6 +991,7 @@ public okhttp3.Call importMemoryFileAsync(Integer memoryId, String name, File bo +
Status Code Description Response Headers
200 A list of TranslationMemoryEntry objects. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -987,7 +1020,7 @@ public okhttp3.Call queryMemoryCall(Integer id, String query, Integer n, final A } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1025,7 +1058,7 @@ private okhttp3.Call queryMemoryValidateBeforeCall(Integer id, String query, Int /** * Query a Memory - * Perform a translation memory query. + * Perform a translation memory query. * @param id A unique Memory identifier. (required) * @param query A source query. (required) * @param n Maximum number of results to return. (optional, default to 10) @@ -1035,6 +1068,7 @@ private okhttp3.Call queryMemoryValidateBeforeCall(Integer id, String query, Int +
Status Code Description Response Headers
200 A list of TranslationMemoryEntry objects. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1045,7 +1079,7 @@ public List queryMemory(Integer id, String query, Intege /** * Query a Memory - * Perform a translation memory query. + * Perform a translation memory query. * @param id A unique Memory identifier. (required) * @param query A source query. (required) * @param n Maximum number of results to return. (optional, default to 10) @@ -1055,6 +1089,7 @@ public List queryMemory(Integer id, String query, Intege +
Status Code Description Response Headers
200 A list of TranslationMemoryEntry objects. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1066,7 +1101,7 @@ public ApiResponse> queryMemoryWithHttpInfo(Integer /** * Query a Memory (asynchronously) - * Perform a translation memory query. + * Perform a translation memory query. * @param id A unique Memory identifier. (required) * @param query A source query. (required) * @param n Maximum number of results to return. (optional, default to 10) @@ -1077,6 +1112,7 @@ public ApiResponse> queryMemoryWithHttpInfo(Integer +
Status Code Description Response Headers
200 A list of TranslationMemoryEntry objects. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1097,6 +1133,7 @@ public okhttp3.Call queryMemoryAsync(Integer id, String query, Integer n, final +
Status Code Description Response Headers
200 A Memory object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1113,7 +1150,7 @@ public okhttp3.Call updateMemoryCall(MemoryUpdateParameters body, final ApiCallb Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1154,6 +1191,7 @@ private okhttp3.Call updateMemoryValidateBeforeCall(MemoryUpdateParameters body, +
Status Code Description Response Headers
200 A Memory object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1172,6 +1210,7 @@ public Memory updateMemory(MemoryUpdateParameters body) throws ApiException { +
Status Code Description Response Headers
200 A Memory object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -1192,6 +1231,7 @@ public ApiResponse updateMemoryWithHttpInfo(MemoryUpdateParameters body) +
Status Code Description Response Headers
200 A Memory object. -
401 Unauthorized -
0 Unexpected error -
*/ diff --git a/src/main/java/com/lilt/client/api/ProjectsApi.java b/src/main/java/com/lilt/client/api/ProjectsApi.java index 1292bd6ff..b5f0146d3 100644 --- a/src/main/java/com/lilt/client/api/ProjectsApi.java +++ b/src/main/java/com/lilt/client/api/ProjectsApi.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -67,6 +67,7 @@ public void setApiClient(ApiClient apiClient) { +
Status Code Description Response Headers
200 A Project object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -83,7 +84,7 @@ public okhttp3.Call createProjectCall(ProjectCreateParameters body, final ApiCal Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -124,6 +125,7 @@ private okhttp3.Call createProjectValidateBeforeCall(ProjectCreateParameters bod +
Status Code Description Response Headers
200 A Project object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -142,6 +144,7 @@ public Project createProject(ProjectCreateParameters body) throws ApiException { +
Status Code Description Response Headers
200 A Project object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -162,6 +165,7 @@ public ApiResponse createProjectWithHttpInfo(ProjectCreateParameters bo +
Status Code Description Response Headers
200 A Project object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -182,6 +186,7 @@ public okhttp3.Call createProjectAsync(ProjectCreateParameters body, final ApiCa +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -202,7 +207,7 @@ public okhttp3.Call deleteProjectCall(Integer id, final ApiCallback _callback) t } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -238,6 +243,7 @@ private okhttp3.Call deleteProjectValidateBeforeCall(Integer id, final ApiCallba +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -256,6 +262,7 @@ public ProjectDeleteResponse deleteProject(Integer id) throws ApiException { +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -276,6 +283,7 @@ public ApiResponse deleteProjectWithHttpInfo(Integer id) +
Status Code Description Response Headers
200 A status object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -303,6 +311,7 @@ public okhttp3.Call deleteProjectAsync(Integer id, final ApiCallback Status Code Description Response Headers 200 A list of Project objects. - + 401 Unauthorized - 0 Unexpected error - */ @@ -351,7 +360,7 @@ public okhttp3.Call getProjectsCall(Integer id, String srclang, String trglang, } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -394,6 +403,7 @@ private okhttp3.Call getProjectsValidateBeforeCall(Integer id, String srclang, S +
Status Code Description Response Headers
200 A list of Project objects. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -419,6 +429,7 @@ public List getProjects(Integer id, String srclang, String trglang, Int +
Status Code Description Response Headers
200 A list of Project objects. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -446,6 +457,7 @@ public ApiResponse> getProjectsWithHttpInfo(Integer id, String src +
Status Code Description Response Headers
200 A list of Project objects. -
401 Unauthorized -
0 Unexpected error -
*/ diff --git a/src/main/java/com/lilt/client/api/TranslateApi.java b/src/main/java/com/lilt/client/api/TranslateApi.java index 5236ddd85..b5f61bb05 100644 --- a/src/main/java/com/lilt/client/api/TranslateApi.java +++ b/src/main/java/com/lilt/client/api/TranslateApi.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -71,6 +71,7 @@ public void setApiClient(ApiClient apiClient) { +
Status Code Description Response Headers
200 Translation Info -
401 Unauthorized -
0 Unexpected error -
*/ @@ -103,7 +104,7 @@ public okhttp3.Call batchTranslateFileCall(String fileId, String memoryId, BigDe } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -152,6 +153,7 @@ private okhttp3.Call batchTranslateFileValidateBeforeCall(String fileId, String +
Status Code Description Response Headers
200 Translation Info -
401 Unauthorized -
0 Unexpected error -
*/ @@ -173,6 +175,7 @@ public List batchTranslateFile(String fileId, String memoryId, +
Status Code Description Response Headers
200 Translation Info -
401 Unauthorized -
0 Unexpected error -
*/ @@ -196,6 +199,7 @@ public ApiResponse> batchTranslateFileWithHttpInfo(String +
Status Code Description Response Headers
200 Translation Info -
401 Unauthorized -
0 Unexpected error -
*/ @@ -216,6 +220,8 @@ public okhttp3.Call batchTranslateFileAsync(String fileId, String memoryId, BigD + +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call downloadFileCall(String id, final ApiCallback _callback) throws ApiException { @@ -235,7 +241,7 @@ public okhttp3.Call downloadFileCall(String id, final ApiCallback _callback) thr } final String[] localVarAccepts = { - "application/octet-stream" + "application/octet-stream", "text/plain", "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -276,6 +282,8 @@ private okhttp3.Call downloadFileValidateBeforeCall(String id, final ApiCallback + +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
0 Unexpected error -
*/ public byte[] downloadFile(String id) throws ApiException { @@ -293,6 +301,8 @@ public byte[] downloadFile(String id) throws ApiException { + +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
0 Unexpected error -
*/ public ApiResponse downloadFileWithHttpInfo(String id) throws ApiException { @@ -312,6 +322,8 @@ public ApiResponse downloadFileWithHttpInfo(String id) throws ApiExcepti + +
Status Code Description Response Headers
200 A file. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call downloadFileAsync(String id, final ApiCallback _callback) throws ApiException { @@ -334,6 +346,7 @@ public okhttp3.Call downloadFileAsync(String id, final ApiCallback _call +
Status Code Description Response Headers
200 Translation Info -
401 Unauthorized -
0 Unexpected error -
*/ @@ -366,7 +379,7 @@ public okhttp3.Call monitorFileTranslationCall(String translationIds, String sta } final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -405,6 +418,7 @@ private okhttp3.Call monitorFileTranslationValidateBeforeCall(String translation +
Status Code Description Response Headers
200 Translation Info -
401 Unauthorized -
0 Unexpected error -
*/ @@ -426,6 +440,7 @@ public List monitorFileTranslation(String translationIds, Strin +
Status Code Description Response Headers
200 Translation Info -
401 Unauthorized -
0 Unexpected error -
*/ @@ -449,6 +464,7 @@ public ApiResponse> monitorFileTranslationWithHttpInfo(Str +
Status Code Description Response Headers
200 Translation Info -
401 Unauthorized -
0 Unexpected error -
*/ @@ -469,6 +485,7 @@ public okhttp3.Call monitorFileTranslationAsync(String translationIds, String st +
Status Code Description Response Headers
200 A TranslationList object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -485,7 +502,7 @@ public okhttp3.Call translateSegmentPostCall(TranslateSegmentBody body, final Ap Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -521,6 +538,7 @@ private okhttp3.Call translateSegmentPostValidateBeforeCall(TranslateSegmentBody +
Status Code Description Response Headers
200 A TranslationList object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -539,6 +557,7 @@ public TranslationList translateSegmentPost(TranslateSegmentBody body) throws Ap +
Status Code Description Response Headers
200 A TranslationList object. -
401 Unauthorized -
0 Unexpected error -
*/ @@ -559,6 +578,7 @@ public ApiResponse translateSegmentPostWithHttpInfo(TranslateSe +
Status Code Description Response Headers
200 A TranslationList object. -
401 Unauthorized -
0 Unexpected error -
*/ diff --git a/src/main/java/com/lilt/client/api/WorkflowsApi.java b/src/main/java/com/lilt/client/api/WorkflowsApi.java index 4d44c81aa..2b9d63432 100644 --- a/src/main/java/com/lilt/client/api/WorkflowsApi.java +++ b/src/main/java/com/lilt/client/api/WorkflowsApi.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,6 +27,7 @@ import java.io.IOException; +import com.lilt.client.model.Error; import com.lilt.client.model.WorkflowTemplate; import java.lang.reflect.Type; @@ -63,6 +64,8 @@ public void setApiClient(ApiClient apiClient) { + +
Status Code Description Response Headers
200 An array with a team's available WorkflowTemplates. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call getWorkflowTemplatesCall(final ApiCallback _callback) throws ApiException { @@ -78,7 +81,7 @@ public okhttp3.Call getWorkflowTemplatesCall(final ApiCallback _callback) throws Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/json" + "application/json", "application/octet-stream", "text/plain" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -113,6 +116,8 @@ private okhttp3.Call getWorkflowTemplatesValidateBeforeCall(final ApiCallback _c + +
Status Code Description Response Headers
200 An array with a team's available WorkflowTemplates. -
401 Unauthorized -
0 Unexpected error -
*/ public List getWorkflowTemplates() throws ApiException { @@ -129,6 +134,8 @@ public List getWorkflowTemplates() throws ApiException { + +
Status Code Description Response Headers
200 An array with a team's available WorkflowTemplates. -
401 Unauthorized -
0 Unexpected error -
*/ public ApiResponse> getWorkflowTemplatesWithHttpInfo() throws ApiException { @@ -147,6 +154,8 @@ public ApiResponse> getWorkflowTemplatesWithHttpInfo() th + +
Status Code Description Response Headers
200 An array with a team's available WorkflowTemplates. -
401 Unauthorized -
0 Unexpected error -
*/ public okhttp3.Call getWorkflowTemplatesAsync(final ApiCallback> _callback) throws ApiException { diff --git a/src/main/java/com/lilt/client/auth/ApiKeyAuth.java b/src/main/java/com/lilt/client/auth/ApiKeyAuth.java index 4e96d388a..291fb3f36 100644 --- a/src/main/java/com/lilt/client/auth/ApiKeyAuth.java +++ b/src/main/java/com/lilt/client/auth/ApiKeyAuth.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,7 +18,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/com/lilt/client/auth/Authentication.java b/src/main/java/com/lilt/client/auth/Authentication.java index 0e0517c43..dab530017 100644 --- a/src/main/java/com/lilt/client/auth/Authentication.java +++ b/src/main/java/com/lilt/client/auth/Authentication.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/lilt/client/auth/HttpBasicAuth.java b/src/main/java/com/lilt/client/auth/HttpBasicAuth.java index 6d63768e3..ca063d4a2 100644 --- a/src/main/java/com/lilt/client/auth/HttpBasicAuth.java +++ b/src/main/java/com/lilt/client/auth/HttpBasicAuth.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/lilt/client/auth/HttpBearerAuth.java b/src/main/java/com/lilt/client/auth/HttpBearerAuth.java index dcb28dc0a..1f305a7eb 100644 --- a/src/main/java/com/lilt/client/auth/HttpBearerAuth.java +++ b/src/main/java/com/lilt/client/auth/HttpBearerAuth.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,7 +18,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/src/main/java/com/lilt/client/model/AddFileLabelRequest.java b/src/main/java/com/lilt/client/model/AddFileLabelRequest.java index 4b1659af2..9abf252fb 100644 --- a/src/main/java/com/lilt/client/model/AddFileLabelRequest.java +++ b/src/main/java/com/lilt/client/model/AddFileLabelRequest.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * AddFileLabelRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class AddFileLabelRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/lilt/client/model/CreateConverterConfigParameters.java b/src/main/java/com/lilt/client/model/CreateConverterConfigParameters.java index dc85c0e78..cebbd2925 100644 --- a/src/main/java/com/lilt/client/model/CreateConverterConfigParameters.java +++ b/src/main/java/com/lilt/client/model/CreateConverterConfigParameters.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * CreateConverterConfigParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class CreateConverterConfigParameters { public static final String SERIALIZED_NAME_SIGNED_AGREEMENT = "signedAgreement"; @SerializedName(SERIALIZED_NAME_SIGNED_AGREEMENT) diff --git a/src/main/java/com/lilt/client/model/DeleteSegmentFromMemoryResponse.java b/src/main/java/com/lilt/client/model/DeleteSegmentFromMemoryResponse.java index 45fd503c7..a5dc5ea70 100644 --- a/src/main/java/com/lilt/client/model/DeleteSegmentFromMemoryResponse.java +++ b/src/main/java/com/lilt/client/model/DeleteSegmentFromMemoryResponse.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * DeleteSegmentFromMemoryResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class DeleteSegmentFromMemoryResponse { public static final String SERIALIZED_NAME_SUCCESS = "success"; @SerializedName(SERIALIZED_NAME_SUCCESS) diff --git a/src/main/java/com/lilt/client/model/DocumentWithSegments.java b/src/main/java/com/lilt/client/model/DocumentWithSegments.java index 157b559c9..940a5e980 100644 --- a/src/main/java/com/lilt/client/model/DocumentWithSegments.java +++ b/src/main/java/com/lilt/client/model/DocumentWithSegments.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -32,7 +32,7 @@ * A Document is a collection of zero or more Segments. */ @ApiModel(description = "A Document is a collection of zero or more Segments. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class DocumentWithSegments { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/DocumentWithoutSegments.java b/src/main/java/com/lilt/client/model/DocumentWithoutSegments.java index 5f3985a57..289d190ed 100644 --- a/src/main/java/com/lilt/client/model/DocumentWithoutSegments.java +++ b/src/main/java/com/lilt/client/model/DocumentWithoutSegments.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,7 +29,7 @@ * A Document is a collection of zero or more Segments. */ @ApiModel(description = "A Document is a collection of zero or more Segments. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class DocumentWithoutSegments { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/DocumentWithoutSegmentsStatus.java b/src/main/java/com/lilt/client/model/DocumentWithoutSegmentsStatus.java index 00da4dc90..f6fa80362 100644 --- a/src/main/java/com/lilt/client/model/DocumentWithoutSegmentsStatus.java +++ b/src/main/java/com/lilt/client/model/DocumentWithoutSegmentsStatus.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ * A list of translations for the query term. */ @ApiModel(description = "A list of translations for the query term.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class DocumentWithoutSegmentsStatus { /** * Gets or Sets pretranslation diff --git a/src/main/java/com/lilt/client/model/Error.java b/src/main/java/com/lilt/client/model/Error.java index f41c75781..ec9516eb7 100644 --- a/src/main/java/com/lilt/client/model/Error.java +++ b/src/main/java/com/lilt/client/model/Error.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,14 +28,14 @@ * Response in the event of an unexpected error. */ @ApiModel(description = "Response in the event of an unexpected error. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class Error { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) - private Object message; + private String message; - public Error message(Object message) { + public Error message(String message) { this.message = message; return this; @@ -48,12 +48,12 @@ public Error message(Object message) { @javax.annotation.Nullable @ApiModelProperty(value = "A human-readable message describing the error.") - public Object getMessage() { + public String getMessage() { return message; } - public void setMessage(Object message) { + public void setMessage(String message) { this.message = message; } diff --git a/src/main/java/com/lilt/client/model/FileDeleteResponse.java b/src/main/java/com/lilt/client/model/FileDeleteResponse.java index 7775ffa76..1650b82a8 100644 --- a/src/main/java/com/lilt/client/model/FileDeleteResponse.java +++ b/src/main/java/com/lilt/client/model/FileDeleteResponse.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * FileDeleteResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class FileDeleteResponse { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/GetLiltCreateContentResponse.java b/src/main/java/com/lilt/client/model/GetLiltCreateContentResponse.java index 07f683871..fd673477b 100644 --- a/src/main/java/com/lilt/client/model/GetLiltCreateContentResponse.java +++ b/src/main/java/com/lilt/client/model/GetLiltCreateContentResponse.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ /** * GetLiltCreateContentResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class GetLiltCreateContentResponse { public static final String SERIALIZED_NAME_CONTENTS = "contents"; @SerializedName(SERIALIZED_NAME_CONTENTS) diff --git a/src/main/java/com/lilt/client/model/InlineResponse200.java b/src/main/java/com/lilt/client/model/InlineResponse200.java index af7c55aca..cdb92d1d3 100644 --- a/src/main/java/com/lilt/client/model/InlineResponse200.java +++ b/src/main/java/com/lilt/client/model/InlineResponse200.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * InlineResponse200 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class InlineResponse200 { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/Job.java b/src/main/java/com/lilt/client/model/Job.java index b25273c61..879f62a98 100644 --- a/src/main/java/com/lilt/client/model/Job.java +++ b/src/main/java/com/lilt/client/model/Job.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ * A Job is a collection of multiple Projects. Each project is specific to a language pair, and is associated with exactly one Memory for that language pair. The Memory association cannot be changed after the Project is created. */ @ApiModel(description = "A Job is a collection of multiple Projects. Each project is specific to a language pair, and is associated with exactly one Memory for that language pair. The Memory association cannot be changed after the Project is created. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class Job { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/lilt/client/model/JobCreateParameters.java b/src/main/java/com/lilt/client/model/JobCreateParameters.java index 834421e69..bf0616d65 100644 --- a/src/main/java/com/lilt/client/model/JobCreateParameters.java +++ b/src/main/java/com/lilt/client/model/JobCreateParameters.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ /** * JobCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class JobCreateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/lilt/client/model/JobDeleteResponse.java b/src/main/java/com/lilt/client/model/JobDeleteResponse.java index fcd1243ed..b4ec4bfac 100644 --- a/src/main/java/com/lilt/client/model/JobDeleteResponse.java +++ b/src/main/java/com/lilt/client/model/JobDeleteResponse.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * JobDeleteResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class JobDeleteResponse { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/JobLeverageStats.java b/src/main/java/com/lilt/client/model/JobLeverageStats.java index 68524788a..cfcc17997 100644 --- a/src/main/java/com/lilt/client/model/JobLeverageStats.java +++ b/src/main/java/com/lilt/client/model/JobLeverageStats.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,7 @@ * A job leverage stats object shows an overview of job's statistical data including total number of exact words, fuzzy words, and exact words for the job in total and for each project. */ @ApiModel(description = "A job leverage stats object shows an overview of job's statistical data including total number of exact words, fuzzy words, and exact words for the job in total and for each project. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class JobLeverageStats { public static final String SERIALIZED_NAME_SOURCE_WORDS = "sourceWords"; @SerializedName(SERIALIZED_NAME_SOURCE_WORDS) diff --git a/src/main/java/com/lilt/client/model/JobProject.java b/src/main/java/com/lilt/client/model/JobProject.java index 25fc9441c..baf4022ea 100644 --- a/src/main/java/com/lilt/client/model/JobProject.java +++ b/src/main/java/com/lilt/client/model/JobProject.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ * A job project contains project statistical data that belongs to a specific job. */ @ApiModel(description = "A job project contains project statistical data that belongs to a specific job. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class JobProject { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/JobStats.java b/src/main/java/com/lilt/client/model/JobStats.java index 10edce70b..b1342b636 100644 --- a/src/main/java/com/lilt/client/model/JobStats.java +++ b/src/main/java/com/lilt/client/model/JobStats.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,7 @@ * A job stats shows an overview of job's statistical data including total number of exact words, fuzzy words, language pairs, projects, etc. */ @ApiModel(description = "A job stats shows an overview of job's statistical data including total number of exact words, fuzzy words, language pairs, projects, etc. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class JobStats { public static final String SERIALIZED_NAME_EXACT_WORDS = "exactWords"; @SerializedName(SERIALIZED_NAME_EXACT_WORDS) diff --git a/src/main/java/com/lilt/client/model/JobUpdateParameters.java b/src/main/java/com/lilt/client/model/JobUpdateParameters.java index ef8d62489..450d70d37 100644 --- a/src/main/java/com/lilt/client/model/JobUpdateParameters.java +++ b/src/main/java/com/lilt/client/model/JobUpdateParameters.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * JobUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class JobUpdateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/lilt/client/model/LanguagePair.java b/src/main/java/com/lilt/client/model/LanguagePair.java index 7ffe12b26..3df96e8fc 100644 --- a/src/main/java/com/lilt/client/model/LanguagePair.java +++ b/src/main/java/com/lilt/client/model/LanguagePair.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,7 @@ * A language pair couples the source and target language along with memory and pre-translations settings associated to a project. */ @ApiModel(description = "A language pair couples the source and target language along with memory and pre-translations settings associated to a project. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class LanguagePair { public static final String SERIALIZED_NAME_TRG_LANG = "trgLang"; @SerializedName(SERIALIZED_NAME_TRG_LANG) diff --git a/src/main/java/com/lilt/client/model/LanguagesResponse.java b/src/main/java/com/lilt/client/model/LanguagesResponse.java index 611f613cb..f2c80ebcd 100644 --- a/src/main/java/com/lilt/client/model/LanguagesResponse.java +++ b/src/main/java/com/lilt/client/model/LanguagesResponse.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * LanguagesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class LanguagesResponse { public static final String SERIALIZED_NAME_SOURCE_TO_TARGET = "source_to_target"; @SerializedName(SERIALIZED_NAME_SOURCE_TO_TARGET) diff --git a/src/main/java/com/lilt/client/model/LiltCreateContent.java b/src/main/java/com/lilt/client/model/LiltCreateContent.java index 1ca404578..a0fa1e093 100644 --- a/src/main/java/com/lilt/client/model/LiltCreateContent.java +++ b/src/main/java/com/lilt/client/model/LiltCreateContent.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,8 +30,16 @@ * Content Parameters for LiltCreate. */ @ApiModel(description = "Content Parameters for LiltCreate. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class LiltCreateContent { + 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 Integer id; + public static final String SERIALIZED_NAME_LANGUAGE = "language"; @SerializedName(SERIALIZED_NAME_LANGUAGE) private String language; @@ -49,6 +57,52 @@ public class LiltCreateContent { private LiltCreateContentPreferences preferences; + public LiltCreateContent name(String name) { + + this.name = name; + return this; + } + + /** + * A name for the request content. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A name for the request content.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public LiltCreateContent id(Integer id) { + + this.id = id; + return this; + } + + /** + * A unique identifier for the generated content. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A unique identifier for the generated content.") + + public Integer getId() { + return id; + } + + + public void setId(Integer id) { + this.id = id; + } + + public LiltCreateContent language(String language) { this.language = language; @@ -147,7 +201,9 @@ public boolean equals(Object o) { return false; } LiltCreateContent liltCreateContent = (LiltCreateContent) o; - return Objects.equals(this.language, liltCreateContent.language) && + return Objects.equals(this.name, liltCreateContent.name) && + Objects.equals(this.id, liltCreateContent.id) && + Objects.equals(this.language, liltCreateContent.language) && Objects.equals(this.template, liltCreateContent.template) && Objects.equals(this.templateParams, liltCreateContent.templateParams) && Objects.equals(this.preferences, liltCreateContent.preferences); @@ -155,13 +211,15 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(language, template, templateParams, preferences); + return Objects.hash(name, id, language, template, templateParams, preferences); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class LiltCreateContent {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" language: ").append(toIndentedString(language)).append("\n"); sb.append(" template: ").append(toIndentedString(template)).append("\n"); sb.append(" templateParams: ").append(toIndentedString(templateParams)).append("\n"); diff --git a/src/main/java/com/lilt/client/model/LiltCreateContentPreferences.java b/src/main/java/com/lilt/client/model/LiltCreateContentPreferences.java index 6402fa403..edd0189ea 100644 --- a/src/main/java/com/lilt/client/model/LiltCreateContentPreferences.java +++ b/src/main/java/com/lilt/client/model/LiltCreateContentPreferences.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ * The preferences of the content. */ @ApiModel(description = "The preferences of the content.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class LiltCreateContentPreferences { public static final String SERIALIZED_NAME_TONE = "tone"; @SerializedName(SERIALIZED_NAME_TONE) diff --git a/src/main/java/com/lilt/client/model/LiltCreateContentRequest.java b/src/main/java/com/lilt/client/model/LiltCreateContentRequest.java new file mode 100644 index 000000000..17981bbb5 --- /dev/null +++ b/src/main/java/com/lilt/client/model/LiltCreateContentRequest.java @@ -0,0 +1,214 @@ +/* + * Lilt REST API + * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. + * + * The version of the OpenAPI document: 3.0.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 com.lilt.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lilt.client.model.LiltCreateContentPreferences; +import com.lilt.client.model.LiltCreateContentTemplateParams; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * Content Parameters for LiltCreate. + */ +@ApiModel(description = "Content Parameters for LiltCreate. ") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") +public class LiltCreateContentRequest { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_LANGUAGE = "language"; + @SerializedName(SERIALIZED_NAME_LANGUAGE) + private String language; + + public static final String SERIALIZED_NAME_TEMPLATE = "template"; + @SerializedName(SERIALIZED_NAME_TEMPLATE) + private String template; + + public static final String SERIALIZED_NAME_TEMPLATE_PARAMS = "templateParams"; + @SerializedName(SERIALIZED_NAME_TEMPLATE_PARAMS) + private LiltCreateContentTemplateParams templateParams; + + public static final String SERIALIZED_NAME_PREFERENCES = "preferences"; + @SerializedName(SERIALIZED_NAME_PREFERENCES) + private LiltCreateContentPreferences preferences; + + + public LiltCreateContentRequest name(String name) { + + this.name = name; + return this; + } + + /** + * A name for the request content. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A name for the request content.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public LiltCreateContentRequest language(String language) { + + this.language = language; + return this; + } + + /** + * The language of the content. + * @return language + **/ + @ApiModelProperty(required = true, value = "The language of the content.") + + public String getLanguage() { + return language; + } + + + public void setLanguage(String language) { + this.language = language; + } + + + public LiltCreateContentRequest template(String template) { + + this.template = template; + return this; + } + + /** + * The template of the content. + * @return template + **/ + @ApiModelProperty(required = true, value = "The template of the content.") + + public String getTemplate() { + return template; + } + + + public void setTemplate(String template) { + this.template = template; + } + + + public LiltCreateContentRequest templateParams(LiltCreateContentTemplateParams templateParams) { + + this.templateParams = templateParams; + return this; + } + + /** + * Get templateParams + * @return templateParams + **/ + @ApiModelProperty(required = true, value = "") + + public LiltCreateContentTemplateParams getTemplateParams() { + return templateParams; + } + + + public void setTemplateParams(LiltCreateContentTemplateParams templateParams) { + this.templateParams = templateParams; + } + + + public LiltCreateContentRequest preferences(LiltCreateContentPreferences preferences) { + + this.preferences = preferences; + return this; + } + + /** + * Get preferences + * @return preferences + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public LiltCreateContentPreferences getPreferences() { + return preferences; + } + + + public void setPreferences(LiltCreateContentPreferences preferences) { + this.preferences = preferences; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LiltCreateContentRequest liltCreateContentRequest = (LiltCreateContentRequest) o; + return Objects.equals(this.name, liltCreateContentRequest.name) && + Objects.equals(this.language, liltCreateContentRequest.language) && + Objects.equals(this.template, liltCreateContentRequest.template) && + Objects.equals(this.templateParams, liltCreateContentRequest.templateParams) && + Objects.equals(this.preferences, liltCreateContentRequest.preferences); + } + + @Override + public int hashCode() { + return Objects.hash(name, language, template, templateParams, preferences); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LiltCreateContentRequest {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" language: ").append(toIndentedString(language)).append("\n"); + sb.append(" template: ").append(toIndentedString(template)).append("\n"); + sb.append(" templateParams: ").append(toIndentedString(templateParams)).append("\n"); + sb.append(" preferences: ").append(toIndentedString(preferences)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/lilt/client/model/LiltCreateContentTemplateParams.java b/src/main/java/com/lilt/client/model/LiltCreateContentTemplateParams.java index 9533cc887..a51ae24a2 100644 --- a/src/main/java/com/lilt/client/model/LiltCreateContentTemplateParams.java +++ b/src/main/java/com/lilt/client/model/LiltCreateContentTemplateParams.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ * The template parameters of the content. */ @ApiModel(description = "The template parameters of the content.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class LiltCreateContentTemplateParams { public static final String SERIALIZED_NAME_CONTENT_LENGTH = "contentLength"; @SerializedName(SERIALIZED_NAME_CONTENT_LENGTH) diff --git a/src/main/java/com/lilt/client/model/Memory.java b/src/main/java/com/lilt/client/model/Memory.java index 7d55e4f22..31125a1bd 100644 --- a/src/main/java/com/lilt/client/model/Memory.java +++ b/src/main/java/com/lilt/client/model/Memory.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ * A Memory is a collection of parallel (source/target) segments from which a MT/TM model is trained. When a translator confirms a segment in the Interface, a parallel segment is added to the Memory. Parallel segments from existing translation memories and bitexts can also be added to the Memory via the REST API. */ @ApiModel(description = "A Memory is a collection of parallel (source/target) segments from which a MT/TM model is trained. When a translator confirms a segment in the Interface, a parallel segment is added to the Memory. Parallel segments from existing translation memories and bitexts can also be added to the Memory via the REST API. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class Memory { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/MemoryCreateParameters.java b/src/main/java/com/lilt/client/model/MemoryCreateParameters.java index 2df0a0172..372b51cec 100644 --- a/src/main/java/com/lilt/client/model/MemoryCreateParameters.java +++ b/src/main/java/com/lilt/client/model/MemoryCreateParameters.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * MemoryCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class MemoryCreateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/lilt/client/model/MemoryDeleteResponse.java b/src/main/java/com/lilt/client/model/MemoryDeleteResponse.java index 3273c8807..f08d229e5 100644 --- a/src/main/java/com/lilt/client/model/MemoryDeleteResponse.java +++ b/src/main/java/com/lilt/client/model/MemoryDeleteResponse.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * MemoryDeleteResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class MemoryDeleteResponse { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/MemoryImportResponse.java b/src/main/java/com/lilt/client/model/MemoryImportResponse.java index 69033552c..df4166e8d 100644 --- a/src/main/java/com/lilt/client/model/MemoryImportResponse.java +++ b/src/main/java/com/lilt/client/model/MemoryImportResponse.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * MemoryImportResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class MemoryImportResponse { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/MemoryUpdateParameters.java b/src/main/java/com/lilt/client/model/MemoryUpdateParameters.java index 3313d84f9..22a4beb5b 100644 --- a/src/main/java/com/lilt/client/model/MemoryUpdateParameters.java +++ b/src/main/java/com/lilt/client/model/MemoryUpdateParameters.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * MemoryUpdateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class MemoryUpdateParameters { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/Project.java b/src/main/java/com/lilt/client/model/Project.java index 1834c625d..6d7eb3c68 100644 --- a/src/main/java/com/lilt/client/model/Project.java +++ b/src/main/java/com/lilt/client/model/Project.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,7 @@ * A Project is a collection of zero or more Documents. It is specific to a language pair, and is associated with exactly one Memory for that language pair. The Memory association cannot be changed after the Project is created. */ @ApiModel(description = "A Project is a collection of zero or more Documents. It is specific to a language pair, and is associated with exactly one Memory for that language pair. The Memory association cannot be changed after the Project is created. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class Project { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/ProjectCreateParameters.java b/src/main/java/com/lilt/client/model/ProjectCreateParameters.java index 9f540312f..c15a57025 100644 --- a/src/main/java/com/lilt/client/model/ProjectCreateParameters.java +++ b/src/main/java/com/lilt/client/model/ProjectCreateParameters.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * ProjectCreateParameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class ProjectCreateParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/lilt/client/model/ProjectDeleteResponse.java b/src/main/java/com/lilt/client/model/ProjectDeleteResponse.java index 1c50a88a4..45c7a9ec4 100644 --- a/src/main/java/com/lilt/client/model/ProjectDeleteResponse.java +++ b/src/main/java/com/lilt/client/model/ProjectDeleteResponse.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * ProjectDeleteResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class ProjectDeleteResponse { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/ProjectStats.java b/src/main/java/com/lilt/client/model/ProjectStats.java index ee7a4a5ca..14611c752 100644 --- a/src/main/java/com/lilt/client/model/ProjectStats.java +++ b/src/main/java/com/lilt/client/model/ProjectStats.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * ProjectStats */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class ProjectStats { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/SDLXLIFFFilter.java b/src/main/java/com/lilt/client/model/SDLXLIFFFilter.java index ab39a0c27..eaaccb37b 100644 --- a/src/main/java/com/lilt/client/model/SDLXLIFFFilter.java +++ b/src/main/java/com/lilt/client/model/SDLXLIFFFilter.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * SDLXLIFFFilter */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class SDLXLIFFFilter { /** * the current state of the SDLXLIFF Trans Unit. diff --git a/src/main/java/com/lilt/client/model/Segment.java b/src/main/java/com/lilt/client/model/Segment.java index c610d3b89..63a68e1c7 100644 --- a/src/main/java/com/lilt/client/model/Segment.java +++ b/src/main/java/com/lilt/client/model/Segment.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ * A Segment is a source string and, optionally, its translation. A Segment can be associated with both a Memory and a Document. The Segment object contains additional metadata about the source and target strings. */ @ApiModel(description = "A Segment is a source string and, optionally, its translation. A Segment can be associated with both a Memory and a Document. The Segment object contains additional metadata about the source and target strings. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class Segment { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/SignLiltCreateTermsResponse.java b/src/main/java/com/lilt/client/model/SignLiltCreateTermsResponse.java index 54a85ac55..2b3936bec 100644 --- a/src/main/java/com/lilt/client/model/SignLiltCreateTermsResponse.java +++ b/src/main/java/com/lilt/client/model/SignLiltCreateTermsResponse.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * SignLiltCreateTermsResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class SignLiltCreateTermsResponse { public static final String SERIALIZED_NAME_SIGNED_AGREEMENT = "signedAgreement"; @SerializedName(SERIALIZED_NAME_SIGNED_AGREEMENT) diff --git a/src/main/java/com/lilt/client/model/SourceFile.java b/src/main/java/com/lilt/client/model/SourceFile.java index c2ac7924a..06b66b053 100644 --- a/src/main/java/com/lilt/client/model/SourceFile.java +++ b/src/main/java/com/lilt/client/model/SourceFile.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -32,7 +32,7 @@ * A SourceFile is an unprocessed source file that can later be added to a project. */ @ApiModel(description = "A SourceFile is an unprocessed source file that can later be added to a project.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class SourceFile { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/TermbaseExportResponse.java b/src/main/java/com/lilt/client/model/TermbaseExportResponse.java index 5d91426d0..99424d038 100644 --- a/src/main/java/com/lilt/client/model/TermbaseExportResponse.java +++ b/src/main/java/com/lilt/client/model/TermbaseExportResponse.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * TermbaseExportResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class TermbaseExportResponse { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/TranslateSegmentBody.java b/src/main/java/com/lilt/client/model/TranslateSegmentBody.java index 65ce9a283..7b85b5fa7 100644 --- a/src/main/java/com/lilt/client/model/TranslateSegmentBody.java +++ b/src/main/java/com/lilt/client/model/TranslateSegmentBody.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ /** * TranslateSegmentBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class TranslateSegmentBody { public static final String SERIALIZED_NAME_SOURCE = "source"; @SerializedName(SERIALIZED_NAME_SOURCE) diff --git a/src/main/java/com/lilt/client/model/Translation.java b/src/main/java/com/lilt/client/model/Translation.java index f9ed177b5..71604601b 100644 --- a/src/main/java/com/lilt/client/model/Translation.java +++ b/src/main/java/com/lilt/client/model/Translation.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,7 @@ * A machine translation (MT) or a translation memory (TM) match of a source segment. */ @ApiModel(description = "A machine translation (MT) or a translation memory (TM) match of a source segment.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class Translation { public static final String SERIALIZED_NAME_TARGET = "target"; @SerializedName(SERIALIZED_NAME_TARGET) diff --git a/src/main/java/com/lilt/client/model/TranslationInfo.java b/src/main/java/com/lilt/client/model/TranslationInfo.java index f37d85696..495bfffa4 100644 --- a/src/main/java/com/lilt/client/model/TranslationInfo.java +++ b/src/main/java/com/lilt/client/model/TranslationInfo.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ * Information describing a batch translation process. */ @ApiModel(description = "Information describing a batch translation process. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class TranslationInfo { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/com/lilt/client/model/TranslationList.java b/src/main/java/com/lilt/client/model/TranslationList.java index 7637e5589..e5162d392 100644 --- a/src/main/java/com/lilt/client/model/TranslationList.java +++ b/src/main/java/com/lilt/client/model/TranslationList.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,7 +31,7 @@ * An ranked list of translations and associated metadata. */ @ApiModel(description = "An ranked list of translations and associated metadata.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class TranslationList { public static final String SERIALIZED_NAME_UNTOKENIZED_SOURCE = "untokenizedSource"; @SerializedName(SERIALIZED_NAME_UNTOKENIZED_SOURCE) diff --git a/src/main/java/com/lilt/client/model/TranslationMemoryEntry.java b/src/main/java/com/lilt/client/model/TranslationMemoryEntry.java index f4311f47a..2b6d3c7a3 100644 --- a/src/main/java/com/lilt/client/model/TranslationMemoryEntry.java +++ b/src/main/java/com/lilt/client/model/TranslationMemoryEntry.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ * A translation memory entry. */ @ApiModel(description = "A translation memory entry.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class TranslationMemoryEntry { public static final String SERIALIZED_NAME_SOURCE = "source"; @SerializedName(SERIALIZED_NAME_SOURCE) diff --git a/src/main/java/com/lilt/client/model/WorkflowStageAssignment.java b/src/main/java/com/lilt/client/model/WorkflowStageAssignment.java index b3f089400..02917f38e 100644 --- a/src/main/java/com/lilt/client/model/WorkflowStageAssignment.java +++ b/src/main/java/com/lilt/client/model/WorkflowStageAssignment.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ * An assignment object that associates a user to a workflow stage template. */ @ApiModel(description = "An assignment object that associates a user to a workflow stage template.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class WorkflowStageAssignment { public static final String SERIALIZED_NAME_WORKFLOW_STAGE_TEMPLATE_ID = "workflowStageTemplateId"; @SerializedName(SERIALIZED_NAME_WORKFLOW_STAGE_TEMPLATE_ID) diff --git a/src/main/java/com/lilt/client/model/WorkflowStageTemplate.java b/src/main/java/com/lilt/client/model/WorkflowStageTemplate.java index 36121052d..73514ec19 100644 --- a/src/main/java/com/lilt/client/model/WorkflowStageTemplate.java +++ b/src/main/java/com/lilt/client/model/WorkflowStageTemplate.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ * A single stage within a Workflow Template. */ @ApiModel(description = "A single stage within a Workflow Template.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class WorkflowStageTemplate { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/com/lilt/client/model/WorkflowTemplate.java b/src/main/java/com/lilt/client/model/WorkflowTemplate.java index b56c3a314..b4e7f2fc3 100644 --- a/src/main/java/com/lilt/client/model/WorkflowTemplate.java +++ b/src/main/java/com/lilt/client/model/WorkflowTemplate.java @@ -2,7 +2,7 @@ * Lilt REST API * Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals The Lilt REST API enables programmatic access to the full-range of Lilt backend services including: * Training of and translating with interactive, adaptive machine translation * Large-scale translation memory * The Lexicon (a large-scale termbase) * Programmatic control of the Lilt CAT environment * Translation memory synchronization Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is `https://api.lilt.com/`. ## Authentication Requests are authenticated via REST API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your REST API key as both the `username` and `password`. For development, you may also pass the REST API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use. ## Quotas Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request. * - * The version of the OpenAPI document: v3.0 + * The version of the OpenAPI document: 3.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -32,7 +32,7 @@ * A workflow template which defines the workflow's possible steps (combination of Translation, Review and Customer Review). */ @ApiModel(description = "A workflow template which defines the workflow's possible steps (combination of Translation, Review and Customer Review).") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-14T17:01:14.551Z[GMT]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-14T22:57:19.235Z[GMT]") public class WorkflowTemplate { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/test-resources/test_file.txt b/src/test-resources/test_file.txt new file mode 100644 index 000000000..95d09f2b1 --- /dev/null +++ b/src/test-resources/test_file.txt @@ -0,0 +1 @@ +hello world \ No newline at end of file diff --git a/src/test/java/com/lilt/testCreateContent/TestCreateChars.java b/src/test/java/com/lilt/testCreateContent/TestCreateChars.java index b6ea070bc..30cdea8db 100644 --- a/src/test/java/com/lilt/testCreateContent/TestCreateChars.java +++ b/src/test/java/com/lilt/testCreateContent/TestCreateChars.java @@ -25,6 +25,8 @@ public TestCreateChars(String charCase) { this.charCase = charCase; this.defaultClient = Configuration.getDefaultApiClient(); this.defaultClient.setBasePath(System.getenv("API_HOST")); + this.defaultClient.addDefaultHeader("x-is-automated-test", "true"); + this.defaultClient.addDefaultHeader("x-is-expected-error", "true"); ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) this.defaultClient.getAuthentication("ApiKeyAuth"); ApiKeyAuth.setApiKey(System.getenv("API_KEY")); } @@ -78,7 +80,7 @@ public void create() { templateParams.setSections(Arrays.asList("Bees and me", "Honey for you", "Conclusion")); LiltCreateContentPreferences preferences = new LiltCreateContentPreferences(); preferences.setTone("formal"); - LiltCreateContent requestBody = new LiltCreateContent(); + LiltCreateContentRequest requestBody = new LiltCreateContentRequest(); requestBody.setLanguage("en-US"); requestBody.setTemplate("blog-post"); requestBody.setTemplateParams(templateParams); @@ -94,6 +96,7 @@ public void create() { LiltCreateContent latest = createResultContents.get(createResultContents.size() - 1); System.out.println(latest); assertExpected(latest, getSummary(this.charCase)); + apiInstance.deleteLiltCreateContent(latest.getId()); } catch (ApiException e) { System.err.println("Exception when calling CreateApi#signLiltCreateTerms"); System.err.println("Status code: " + e.getCode()); diff --git a/src/test/java/com/lilt/testCreateContent/TestCreateSections.java b/src/test/java/com/lilt/testCreateContent/TestCreateSections.java index c81cf2131..afc7278e9 100644 --- a/src/test/java/com/lilt/testCreateContent/TestCreateSections.java +++ b/src/test/java/com/lilt/testCreateContent/TestCreateSections.java @@ -26,6 +26,8 @@ public TestCreateSections(String sectionCase) { this.sectionCase = sectionCase; this.defaultClient = Configuration.getDefaultApiClient(); this.defaultClient.setBasePath(System.getenv("API_HOST")); + this.defaultClient.addDefaultHeader("x-is-automated-test", "true"); + this.defaultClient.addDefaultHeader("x-is-expected-error", "true"); ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) this.defaultClient.getAuthentication("ApiKeyAuth"); ApiKeyAuth.setApiKey(System.getenv("API_KEY")); } @@ -75,7 +77,7 @@ public void create() { templateParams.setSections(getSections(this.sectionCase)); LiltCreateContentPreferences preferences = new LiltCreateContentPreferences(); preferences.setTone("formal"); - LiltCreateContent requestBody = new LiltCreateContent(); + LiltCreateContentRequest requestBody = new LiltCreateContentRequest(); requestBody.setLanguage("en-US"); requestBody.setTemplate("blog-post"); requestBody.setTemplateParams(templateParams); @@ -91,6 +93,7 @@ public void create() { LiltCreateContent latest = createResultContents.get(createResultContents.size() - 1); System.out.println(latest); assertExpected(latest, getSections(this.sectionCase)); + apiInstance.deleteLiltCreateContent(latest.getId()); } catch (ApiException e) { System.err.println("Exception when calling CreateApi#signLiltCreateTerms"); System.err.println("Status code: " + e.getCode()); diff --git a/src/test/java/com/lilt/testCreateContent/TestSign.java b/src/test/java/com/lilt/testCreateContent/TestSign.java index 51d50c018..cd77bf356 100644 --- a/src/test/java/com/lilt/testCreateContent/TestSign.java +++ b/src/test/java/com/lilt/testCreateContent/TestSign.java @@ -24,6 +24,8 @@ public TestSign(boolean sign) { this.sign = sign; this.defaultClient = Configuration.getDefaultApiClient(); this.defaultClient.setBasePath(System.getenv("API_HOST")); + this.defaultClient.addDefaultHeader("x-is-automated-test", "true"); + this.defaultClient.addDefaultHeader("x-is-expected-error", "true"); ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) this.defaultClient.getAuthentication("ApiKeyAuth"); ApiKeyAuth.setApiKey(System.getenv("API_KEY")); } diff --git a/src/test/java/com/lilt/testDataSource/TestCreateDataSource.java b/src/test/java/com/lilt/testDataSource/TestCreateDataSource.java index a61f4317f..256a2dce8 100644 --- a/src/test/java/com/lilt/testDataSource/TestCreateDataSource.java +++ b/src/test/java/com/lilt/testDataSource/TestCreateDataSource.java @@ -25,6 +25,8 @@ public TestCreateDataSource(String dataSourceLanguages) { this.dataSourceLanguages = dataSourceLanguages; this.defaultClient = Configuration.getDefaultApiClient(); this.defaultClient.setBasePath(System.getenv("API_HOST")); + this.defaultClient.addDefaultHeader("x-is-automated-test", "true"); + this.defaultClient.addDefaultHeader("x-is-expected-error", "true"); ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) this.defaultClient.getAuthentication("ApiKeyAuth"); ApiKeyAuth.setApiKey(System.getenv("API_KEY")); } @@ -150,6 +152,7 @@ public void createDataSource() { Memory result = apiInstance.createMemory(body); System.out.println(result); assertResponse(result, getExpected(this.dataSourceLanguages)); + apiInstance.deleteMemory(result.getId()); } catch (ApiException e) { System.err.println("Exception when calling MemoriesApi#createMemory"); System.err.println("Status code: " + e.getCode()); diff --git a/src/test/java/com/lilt/testDataSource/TestUploadTMX.java b/src/test/java/com/lilt/testDataSource/TestUploadTMX.java index e86ae8ce9..67ce0d3f0 100644 --- a/src/test/java/com/lilt/testDataSource/TestUploadTMX.java +++ b/src/test/java/com/lilt/testDataSource/TestUploadTMX.java @@ -28,6 +28,8 @@ public TestUploadTMX(String tmxFileCase) { this.tmxFileCase = tmxFileCase; this.defaultClient = Configuration.getDefaultApiClient(); this.defaultClient.setBasePath(System.getenv("API_HOST")); + this.defaultClient.addDefaultHeader("x-is-automated-test", "true"); + this.defaultClient.addDefaultHeader("x-is-expected-error", "true"); ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) this.defaultClient.getAuthentication("ApiKeyAuth"); ApiKeyAuth.setApiKey(System.getenv("API_KEY")); } @@ -171,6 +173,8 @@ public void createDataSource() { assertEquals(result.get(0).getSource(), "chatte"); assertEquals(result.get(0).getTarget(), "cat"); } + apiInstance.deleteMemory(memoryId); + } catch (ApiException e) { printError(e); fail("should not throw exception"); diff --git a/src/test/java/com/lilt/testInstantTranslate/TestInstantTranslate.java b/src/test/java/com/lilt/testInstantTranslate/TestInstantTranslate.java index a4687c252..809c9ec1e 100644 --- a/src/test/java/com/lilt/testInstantTranslate/TestInstantTranslate.java +++ b/src/test/java/com/lilt/testInstantTranslate/TestInstantTranslate.java @@ -26,6 +26,8 @@ public class TestInstantTranslate { public TestInstantTranslate() { this.defaultClient = Configuration.getDefaultApiClient(); this.defaultClient.setBasePath(System.getenv("API_HOST")); + this.defaultClient.addDefaultHeader("x-is-automated-test", "true"); + this.defaultClient.addDefaultHeader("x-is-expected-error", "true"); ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) this.defaultClient.getAuthentication("ApiKeyAuth"); ApiKeyAuth.setApiKey(System.getenv("API_KEY")); } @@ -144,6 +146,7 @@ public void translate() { System.out.println(downloadString); assertTrue(downloadString.contains("cat")); assertTrue(downloadString.contains("Hello")); + fileApiInstance.deleteFile(Integer.parseInt(fileId)); } catch (ApiException e) { printError(e); } diff --git a/src/test/java/com/lilt/testVerifiedTranslate/TestVerifiedTranslate.java b/src/test/java/com/lilt/testVerifiedTranslate/TestVerifiedTranslate.java new file mode 100644 index 000000000..061b619a9 --- /dev/null +++ b/src/test/java/com/lilt/testVerifiedTranslate/TestVerifiedTranslate.java @@ -0,0 +1,293 @@ +package com.lilt.testVerifiedTranslate; + +import static org.junit.Assert.*; + +import com.lilt.client.ApiClient; +import com.lilt.client.ApiException; +import com.lilt.client.Configuration; +import com.lilt.client.auth.*; +import com.lilt.client.model.*; +import com.lilt.client.api.FilesApi; +import com.lilt.client.api.JobsApi; +import com.lilt.client.api.MemoriesApi; + +import java.io.ByteArrayInputStream; +import java.io.File; +import java.io.IOException; +import java.nio.charset.StandardCharsets; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.*; +import java.util.zip.ZipInputStream; +import java.util.zip.ZipEntry; + +import org.apache.commons.io.IOUtils; +import org.junit.Test; + +public class TestVerifiedTranslate { + private final ApiClient defaultClient; + + public TestVerifiedTranslate() { + this.defaultClient = Configuration.getDefaultApiClient(); + this.defaultClient.setBasePath(System.getenv("API_HOST")); + this.defaultClient.addDefaultHeader("x-is-automated-test", "true"); + this.defaultClient.addDefaultHeader("x-is-expected-error", "true"); + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) this.defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey(System.getenv("API_KEY")); + } + + private void printError(ApiException e) { + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + + public class MonitorJobCreateHandler implements Callable{ + private final JobsApi jobsApiInstance; + private final String jobId; + private String jobLength; + private int numMonitored; + + public MonitorJobCreateHandler(JobsApi jobsApiInstance, String jobId, String jobLength, int numMonitored) { + this.jobsApiInstance = jobsApiInstance; + this.jobId = jobId; + this.jobLength = jobLength; + this.numMonitored = numMonitored; + } + + private String monitorJobCreate() { + try { + List monitorResult = null; + while (this.jobLength.equals("0")) { + this.jobsApiInstance.deliverJob(Integer.parseInt(this.jobId)); + monitorResult = this.jobsApiInstance.retrieveAllJobs(false, true, 0, 25); + this.jobLength = Integer.toString(monitorResult.size()); + Thread.sleep(5000); + System.out.println("Job length: " + this.jobLength + " || Request No: " + numMonitored); + numMonitored++; + if (numMonitored > 12) { + break; + } + } + assert monitorResult != null; + return Integer.toString(monitorResult.size()); + } catch (ApiException e) { + printError(e); + fail("Should be able to monitor job creation"); + } catch (InterruptedException | NullPointerException e) { + e.printStackTrace(); + return null; + } + return null; + } + + @Override + public String call() throws Exception { + return monitorJobCreate(); + } + } + + public class MonitorJobExportHandler implements Callable{ + private final JobsApi jobsApiInstance; + private final String jobId; + private String isProcessing; + private int numMonitored; + + public MonitorJobExportHandler(JobsApi jobsApiInstance, String jobId, String isProcessing, int numMonitored) { + this.jobsApiInstance = jobsApiInstance; + this.jobId = jobId; + this.isProcessing = isProcessing; + this.numMonitored = numMonitored; + } + + private String monitorJobExport() { + try { + Job monitorResult = null; + while (this.isProcessing.equals("1")) { + monitorResult = this.jobsApiInstance.getJob(Integer.parseInt(this.jobId)); + this.isProcessing = Integer.toString(monitorResult.getIsProcessing()); + Thread.sleep(5000); + System.out.println("Job length: " + this.isProcessing + " || Request No: " + numMonitored); + numMonitored++; + if (numMonitored > 12) { + break; + } + } + assert monitorResult != null; + return Integer.toString(monitorResult.getIsProcessing()); + } catch (ApiException e) { + printError(e); + fail("Should be able to monitor job export"); + } catch (InterruptedException | NullPointerException e) { + e.printStackTrace(); + return null; + } + return null; + } + + @Override + public String call() throws Exception { + return monitorJobExport(); + } + } + + @Test + public void translate() { + FilesApi filesApiInstance = new FilesApi(defaultClient); + MemoriesApi memoriesApiInstance = new MemoriesApi(defaultClient); + JobsApi jobsApiInstance = new JobsApi(defaultClient); + + //Upload File + String name = "/src/test-resources/test_file.txt"; + File fileBody = new File(System.getProperty("user.dir") + name); + String fileId = null; + try { + SourceFile fileUploadResult = filesApiInstance.uploadFile(name, fileBody, null, null, null, null, null); + fileId = Integer.toString(fileUploadResult.getId()); + System.out.println("File uploaded with ID: " + fileId); + } catch (ApiException apiError) { + System.err.println("Exception when calling FilesApi#uploadFile"); + printError(apiError); + fail("Should be able to upload file"); + } catch (NullPointerException nullError) { + nullError.printStackTrace(); + fail("File Upload returned null ID"); + }; + + //Create Memory + MemoryCreateParameters memoryBody = new MemoryCreateParameters(); + memoryBody.setName("name"); + memoryBody.setSrclang("en"); + memoryBody.setTrglang("de"); + memoryBody.setSrclocale("US"); + memoryBody.setTrglocale("DE"); + String memoryId = null; + try { + Memory result = memoriesApiInstance.createMemory(memoryBody); + memoryId = Integer.toString(result.getId()); + System.out.println("Memory created with ID: " + memoryId); + } catch (ApiException e) { + System.err.println("Exception when calling MemoriesApi#createMemory"); + printError(e); + fail("should be able to create data source"); + } catch (NullPointerException nullError) { + nullError.printStackTrace(); + fail("Memory creation returned null ID"); + }; + + //Create Job + LanguagePair lang = new LanguagePair(); + lang.setTrgLang("de"); + lang.setMemoryId(Integer.parseInt(memoryId)); + List languagePairs = new ArrayList(); + languagePairs.add(lang); + List fileIds = new ArrayList(); + fileIds.add(Integer.parseInt(fileId)); + JobCreateParameters createJobBody = new JobCreateParameters(); + createJobBody.setName("test_job"); + createJobBody.setSrcLang("en"); + createJobBody.setSrcLocale("US"); + createJobBody.setLanguagePairs(languagePairs); + createJobBody.setFileIds(fileIds); + String jobId = null; + try { + Job createJobResponse = jobsApiInstance.createJob(createJobBody); + jobId = Integer.toString(createJobResponse.getId()); + System.out.println("Job created with ID: " + jobId); + } catch (ApiException e) { + System.err.println("Exception when calling JobsApi#createJob"); + printError(e); + fail("Should be able to create job"); + } + + //Monitor Job Progress + MonitorJobCreateHandler jobCreateHandler = new MonitorJobCreateHandler(jobsApiInstance, jobId, "0", 0); + ExecutorService jobCreateExecutor = Executors.newSingleThreadExecutor(); + final Future monitorJobCreateHandler = jobCreateExecutor.submit(jobCreateHandler); + try { + String jobLength = monitorJobCreateHandler.get(120, TimeUnit.SECONDS); + if (jobLength.equals("0")) { + System.out.println("Job creation exceeding time limit."); + fail("Job creation should not timeout"); + } + } catch (TimeoutException | InterruptedException | ExecutionException e) { + monitorJobCreateHandler.cancel(true); + } + jobCreateExecutor.shutdownNow(); + + //Export Job + int jobIdInt = Integer.parseInt(jobId); + String exportIsProcessing = null; + try { + jobsApiInstance.exportJob(jobIdInt, "files"); + Job exportJobResponse = jobsApiInstance.getJob(jobIdInt); + exportIsProcessing = Integer.toString(exportJobResponse.getIsProcessing()); + } catch (ApiException e) { + System.err.println("Exception when calling JobsApi#exportJob"); + printError(e); + fail("Should be able to export job"); + } + + //Monitor Export Progress + MonitorJobExportHandler jobExportHandler = new MonitorJobExportHandler(jobsApiInstance, jobId, exportIsProcessing, 0); + ExecutorService jobExportExecutor = Executors.newSingleThreadExecutor(); + final Future monitorJobExportHandler = jobExportExecutor.submit(jobExportHandler); + try { + exportIsProcessing = monitorJobExportHandler.get(120, TimeUnit.SECONDS); + if (exportIsProcessing.equals("1")) { + System.out.println("Job export exceeding time limit."); + fail("Job export should not timeout"); + } + } catch (TimeoutException | InterruptedException | ExecutionException e) { + monitorJobExportHandler.cancel(true); + } + jobExportExecutor.shutdownNow(); + + //Download Job + try { + byte[] downloadResult = jobsApiInstance.downloadJob(jobIdInt); + ZipInputStream zis = new ZipInputStream(new ByteArrayInputStream(downloadResult)); + List zipContents = new ArrayList(); + ZipEntry entry; + while ((entry = zis.getNextEntry())!= null) { + String entryAsString = IOUtils.toString(zis, StandardCharsets.UTF_8); + zipContents.add(entryAsString); + } + IOUtils.closeQuietly(zis); + System.out.println(zipContents); + assertEquals(zipContents.get(1), "hello world"); + } catch (ApiException e) { + System.err.println("Exception when calling JobsApi#downloadJob"); + printError(e); + } catch (IOException e) { + e.printStackTrace(); + } + + //Archive Job + try { + jobsApiInstance.archiveJob(jobIdInt); + Job updatedJob = jobsApiInstance.getJob(jobIdInt); + assertEquals(updatedJob.getStatus(), "archived"); + } catch (ApiException e) { + System.err.println("Exception when calling JobsApi#archiveJob"); + printError(e); + fail("Should be able to archive job"); + } + + //Test Clean Up + try { + filesApiInstance.deleteFile(Integer.parseInt(fileId)); + jobsApiInstance.deleteJob(jobIdInt); + memoriesApiInstance.deleteMemory(Integer.parseInt(memoryId)); + } catch (ApiException e) { + System.err.println("Exception during test clean up"); + printError(e); + fail("Should be able to clean up tests"); + } + } +} diff --git a/test_file.txt b/test_file.txt new file mode 100644 index 000000000..3b18e512d --- /dev/null +++ b/test_file.txt @@ -0,0 +1 @@ +hello world