diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml
index 738d1dc..93f081a 100644
--- a/.github/workflows/openapi.yml
+++ b/.github/workflows/openapi.yml
@@ -3,11 +3,6 @@
name: OpenAPI Generator
-on:
- workflow_dispatch:
- repository_dispatch:
- types: [API-DocumentationV3-Deployment]
-
jobs:
build:
runs-on: ubuntu-latest
@@ -22,7 +17,7 @@ jobs:
with:
args: >-
generate
- -i https://developers.lilt.com/redocusaurus/plugin-redoc-0.yaml
+ -i https://github.com/lilt/mintlify-docs/blob/main/api-reference/openapi-bundled.yaml
-g python
-p packageName=lilt
-p projectName=lilt-python
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index ef46ef6..0d3de15 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -1,8 +1,6 @@
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
-on:
- repository_dispatch:
- types: [API-DocumentationV3-Publish]
+on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml
index 5e5eda9..481d27a 100644
--- a/.github/workflows/python.yml
+++ b/.github/workflows/python.yml
@@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
+ python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
@@ -26,6 +26,7 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r test-requirements.txt
+ pip install pytest-cov dotenv tenacity
- name: Test with pytest
run: |
pytest --cov=lilt
diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml
index 9ef23c2..33cb928 100644
--- a/.github/workflows/pythonapp.yml
+++ b/.github/workflows/pythonapp.yml
@@ -42,6 +42,7 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- - name: Test with pytest
- run: |
- pytest workflow_tests --ddtrace
+# Exclude workflow_tests for now
+# - name: Test with pytest
+# run: |
+# pytest workflow_tests --ddtrace
diff --git a/.gitignore b/.gitignore
index 2db273d..1646200 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,10 @@
__pycache__/
*.py[cod]
*$py.class
+uv.lock
+.idea
+.vscode
+.DS_Store
# C extensions
*.so
diff --git a/README.md b/README.md
index 189eeb3..9cf2d91 100644
--- a/README.md
+++ b/README.md
@@ -1,22 +1,25 @@
# lilt-python
-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:
+LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals
+
+The LILT 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
+ * 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.
+
+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 via 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`.
+Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your 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.
+For development, you may also pass the API key via the `key` query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use.
## Quotas
@@ -25,9 +28,9 @@ Our services have a general quota of 4000 requests per minute. Should you hit th
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
-- API version: v3.0.2
-- Package version: v3.0.2
-- Generator version: 7.13.0
+- API version: v3.0.3
+- Package version: 3.1.0
+- Generator version: 7.17.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
## Requirements.
@@ -40,9 +43,9 @@ Python 3.9+
If the python package is hosted on a repository, you can install directly using:
```sh
-pip install git+https://github.com/lilt/lilt-python.git
+pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
```
-(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/lilt/lilt-python.git`)
+(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
Then import the package:
```python
@@ -166,10 +169,24 @@ Class | Method | HTTP request | Description
*ProjectsApi* | [**create_project**](docs/ProjectsApi.md#create_project) | **POST** /v2/projects | Create a Project
*ProjectsApi* | [**delete_project**](docs/ProjectsApi.md#delete_project) | **DELETE** /v2/projects | Delete a Project
*ProjectsApi* | [**get_projects**](docs/ProjectsApi.md#get_projects) | **GET** /v2/projects | Retrieve a Project
+*SegmentsApi* | [**create_segment**](docs/SegmentsApi.md#create_segment) | **POST** /v2/segments | Create a Segment
+*SegmentsApi* | [**delete_segment**](docs/SegmentsApi.md#delete_segment) | **DELETE** /v2/segments | Delete a Segment
+*SegmentsApi* | [**get_segment**](docs/SegmentsApi.md#get_segment) | **GET** /v2/segments | Retrieve a Segment
+*SegmentsApi* | [**tag_segment**](docs/SegmentsApi.md#tag_segment) | **GET** /segments/tag | Tag a Segment
+*SegmentsApi* | [**unlock_segments**](docs/SegmentsApi.md#unlock_segments) | **POST** /segments/review/unlock | Unaccept and unlock segments
+*SegmentsApi* | [**update_segment**](docs/SegmentsApi.md#update_segment) | **PUT** /v2/segments | Update a Segment
*TranslateApi* | [**batch_translate_file**](docs/TranslateApi.md#batch_translate_file) | **POST** /v2/translate/file | Translate a File
*TranslateApi* | [**download_file**](docs/TranslateApi.md#download_file) | **GET** /v2/translate/files | Download translated file
*TranslateApi* | [**monitor_file_translation**](docs/TranslateApi.md#monitor_file_translation) | **GET** /v2/translate/file | Monitor file translation
*TranslateApi* | [**translate_segment_post**](docs/TranslateApi.md#translate_segment_post) | **POST** /v2/translate | Translate a segment
+*UploadsApi* | [**cancel_multipart_upload**](docs/UploadsApi.md#cancel_multipart_upload) | **DELETE** /v2/upload/s3/multipart/{uploadId} | Cancel Multipart Upload
+*UploadsApi* | [**complete_multipart_upload**](docs/UploadsApi.md#complete_multipart_upload) | **POST** /v2/upload/s3/multipart/{uploadId}/complete | Complete Multipart Upload
+*UploadsApi* | [**get_pending_uploads**](docs/UploadsApi.md#get_pending_uploads) | **GET** /v2/upload | Get All Pending Uploads or specific list of uploads by ids or statuses
+*UploadsApi* | [**get_s3_upload_params**](docs/UploadsApi.md#get_s3_upload_params) | **GET** /v2/upload/s3/params | Get S3 Upload Parameters
+*UploadsApi* | [**get_upload_by_id**](docs/UploadsApi.md#get_upload_by_id) | **GET** /v2/upload/{uploadId} | Get Upload by ID
+*UploadsApi* | [**initiate_multipart_upload**](docs/UploadsApi.md#initiate_multipart_upload) | **POST** /v2/upload/s3/multipart | Initiate Multipart Upload
+*UploadsApi* | [**initiate_s3_upload**](docs/UploadsApi.md#initiate_s3_upload) | **POST** /v2/upload/s3/params | Initiate File Upload to Cloud Storage
+*UploadsApi* | [**sign_upload_part**](docs/UploadsApi.md#sign_upload_part) | **GET** /v2/upload/s3/multipart/{uploadId}/partNumber | Sign Upload Part
*WebhookConfigurationApi* | [**services_configuration_api_webhooks_delete**](docs/WebhookConfigurationApi.md#services_configuration_api_webhooks_delete) | **DELETE** /v3/connectors/configuration/webhooks/{id} | Delete a specific Webhook Configuration by ID.
*WebhookConfigurationApi* | [**webhooks_create**](docs/WebhookConfigurationApi.md#webhooks_create) | **POST** /v3/connectors/configuration/webhooks | Creates a new Webhook Configuration
*WebhookConfigurationApi* | [**webhooks_get**](docs/WebhookConfigurationApi.md#webhooks_get) | **GET** /v3/connectors/configuration/webhooks/{id} | Retrieve a specific Webhook Configuration by ID.
@@ -181,6 +198,10 @@ Class | Method | HTTP request | Description
## Documentation For Models
- [AddFileLabelRequest](docs/AddFileLabelRequest.md)
+ - [CancelMultipartUpload200Response](docs/CancelMultipartUpload200Response.md)
+ - [CompleteMultipartUpload200Response](docs/CompleteMultipartUpload200Response.md)
+ - [CompleteMultipartUploadBody](docs/CompleteMultipartUploadBody.md)
+ - [CompleteMultipartUploadBodyPartsInner](docs/CompleteMultipartUploadBodyPartsInner.md)
- [CreateConverterConfigParameters](docs/CreateConverterConfigParameters.md)
- [CreateWebhookOptions](docs/CreateWebhookOptions.md)
- [DeleteLiltCreateContent200Response](docs/DeleteLiltCreateContent200Response.md)
@@ -193,9 +214,15 @@ Class | Method | HTTP request | Description
- [DomainMetadata](docs/DomainMetadata.md)
- [DomainReference](docs/DomainReference.md)
- [Error](docs/Error.md)
- - [FileDeleteResponse](docs/FileDeleteResponse.md)
- [FilterConfig](docs/FilterConfig.md)
- [GetLiltCreateContentResponse](docs/GetLiltCreateContentResponse.md)
+ - [GetPendingUploads200ResponseInner](docs/GetPendingUploads200ResponseInner.md)
+ - [GetS3UploadParams200Response](docs/GetS3UploadParams200Response.md)
+ - [InitiateMultipartUpload200Response](docs/InitiateMultipartUpload200Response.md)
+ - [InitiateMultipartUploadBody](docs/InitiateMultipartUploadBody.md)
+ - [InitiateMultipartUploadBodyMetadata](docs/InitiateMultipartUploadBodyMetadata.md)
+ - [InitiateUploadBody](docs/InitiateUploadBody.md)
+ - [InitiateUploadBodyMetadata](docs/InitiateUploadBodyMetadata.md)
- [Job](docs/Job.md)
- [JobCreateParameters](docs/JobCreateParameters.md)
- [JobDeleteResponse](docs/JobDeleteResponse.md)
@@ -221,8 +248,14 @@ Class | Method | HTTP request | Description
- [ProjectStats](docs/ProjectStats.md)
- [SDLXLIFFFilter](docs/SDLXLIFFFilter.md)
- [Segment](docs/Segment.md)
+ - [SegmentCreateParameters](docs/SegmentCreateParameters.md)
+ - [SegmentDeleteResponse](docs/SegmentDeleteResponse.md)
+ - [SegmentDoneResponse](docs/SegmentDoneResponse.md)
+ - [SegmentUpdateParameters](docs/SegmentUpdateParameters.md)
- [SignLiltCreateTermsResponse](docs/SignLiltCreateTermsResponse.md)
+ - [SignUploadPart200Response](docs/SignUploadPart200Response.md)
- [SourceFile](docs/SourceFile.md)
+ - [TaggedSegment](docs/TaggedSegment.md)
- [TermbaseExportResponse](docs/TermbaseExportResponse.md)
- [TranslateSegmentBody](docs/TranslateSegmentBody.md)
- [Translation](docs/Translation.md)
diff --git a/docs/Annotation.md b/docs/Annotation.md
deleted file mode 100644
index aec3080..0000000
--- a/docs/Annotation.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# Annotation
-
-A Comment's annotation.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**text** | **str** | The Comment's annotation text. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ApiRoot.md b/docs/ApiRoot.md
deleted file mode 100644
index 59f69c1..0000000
--- a/docs/ApiRoot.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# ApiRoot
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**api_name** | **str** | | [optional]
-**api_root** | **str** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/AssignmentDetails.md b/docs/AssignmentDetails.md
deleted file mode 100644
index 13f27c1..0000000
--- a/docs/AssignmentDetails.md
+++ /dev/null
@@ -1,20 +0,0 @@
-# AssignmentDetails
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**is_preferred_translator** | **bool** | | [optional]
-**words_left_averaged_translator** | **int** | | [optional]
-**words_left_averaged_reviewer** | **int** | | [optional]
-**assignment_errors** | **list[str]** | | [optional]
-**doc_id** | **int** | | [optional]
-**project_id** | **int** | | [optional]
-**is_auto_assigned** | **bool** | | [optional]
-**translator_user_id** | **int** | | [optional]
-**translator_role_id** | **int** | | [optional]
-**translator_due_date** | **str** | | [optional]
-**reviewer_user_id** | **int** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/AssignmentError.md b/docs/AssignmentError.md
deleted file mode 100644
index 1bc7657..0000000
--- a/docs/AssignmentError.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# AssignmentError
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**error_type** | **str** | |
-**project_id** | **int** | |
-**document_id** | **int** | |
-**error** | **str** | |
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/AutoAssignmentParameters.md b/docs/AutoAssignmentParameters.md
deleted file mode 100644
index be7c831..0000000
--- a/docs/AutoAssignmentParameters.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# AutoAssignmentParameters
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**project_ids** | **list[int]** | |
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/AutoAssignmentResponse.md b/docs/AutoAssignmentResponse.md
deleted file mode 100644
index 000a789..0000000
--- a/docs/AutoAssignmentResponse.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# AutoAssignmentResponse
-
-Auto assignment status.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**project_id** | **float** | The id of the project. |
-**success** | **bool** | True if the operation was successful for this project. |
-**error** | **str** | An optional error message if success = false | [optional]
-**errors** | [**list[AssignmentError]**](AssignmentError.md) | A list of errors if there were any. | [optional]
-**assignments** | [**list[AssignmentDetails]**](AssignmentDetails.md) | Assignment details, like which user was assigned and which role. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/AutoAssignmentResponseAssignments.md b/docs/AutoAssignmentResponseAssignments.md
deleted file mode 100644
index 13a88fb..0000000
--- a/docs/AutoAssignmentResponseAssignments.md
+++ /dev/null
@@ -1,20 +0,0 @@
-# AutoAssignmentResponseAssignments
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**is_preferred_translator** | **bool** | | [optional]
-**words_left_averaged_translator** | **int** | | [optional]
-**words_left_averaged_reviewer** | **int** | | [optional]
-**assignment_errors** | **list[str]** | | [optional]
-**doc_id** | **int** | | [optional]
-**project_id** | **int** | | [optional]
-**is_auto_assigned** | **bool** | | [optional]
-**translator_user_id** | **int** | | [optional]
-**translator_role_id** | **int** | | [optional]
-**translator_due_date** | **str** | | [optional]
-**reviewer_user_id** | **int** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/AutoAssignmentResponseErrors.md b/docs/AutoAssignmentResponseErrors.md
deleted file mode 100644
index 136fb92..0000000
--- a/docs/AutoAssignmentResponseErrors.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# AutoAssignmentResponseErrors
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**error_type** | **str** | |
-**project_id** | **int** | |
-**document_id** | **int** | |
-**error** | **str** | |
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/BadRequest.md b/docs/BadRequest.md
deleted file mode 100644
index 6da74ef..0000000
--- a/docs/BadRequest.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# BadRequest
-
-Response in the event of a malformed request.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**message** | [**object**](.md) | A human-readable message describing the error. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/CancelMultipartUpload200Response.md b/docs/CancelMultipartUpload200Response.md
new file mode 100644
index 0000000..8d6e7c4
--- /dev/null
+++ b/docs/CancelMultipartUpload200Response.md
@@ -0,0 +1,30 @@
+# CancelMultipartUpload200Response
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**success** | **bool** | Cancellation status | [optional]
+**message** | **str** | Cancellation message | [optional]
+
+## Example
+
+```python
+from lilt.models.cancel_multipart_upload200_response import CancelMultipartUpload200Response
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CancelMultipartUpload200Response from a JSON string
+cancel_multipart_upload200_response_instance = CancelMultipartUpload200Response.from_json(json)
+# print the JSON string representation of the object
+print(CancelMultipartUpload200Response.to_json())
+
+# convert the object into a dict
+cancel_multipart_upload200_response_dict = cancel_multipart_upload200_response_instance.to_dict()
+# create an instance of CancelMultipartUpload200Response from a dict
+cancel_multipart_upload200_response_from_dict = CancelMultipartUpload200Response.from_dict(cancel_multipart_upload200_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/Comment.md b/docs/Comment.md
deleted file mode 100644
index 1e31664..0000000
--- a/docs/Comment.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# Comment
-
-A Comment is a translator's or a reviewer's comment on a segment.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | A unique number identifying the Comment. | [optional]
-**text** | **str** | The comment text. | [optional]
-**annotations** | [**list[Annotation]**](Annotation.md) | A list of optional Annotations. | [optional]
-**is_resolved** | **bool** | Whether the Comment is resolved. | [optional]
-**document_id** | **int** | The document to which the comment belongs. | [optional]
-**segment_id** | **int** | The individual segment to which the comment applies. | [optional]
-**segment_revision_id** | **int** | The revision of the individual segment to which the comment applies. | [optional]
-**user_id** | **int** | The user who created this comment. | [optional]
-**created_at** | **int** | Time at which the object was created. Measured in seconds since the Unix epoch. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/CommentBody.md b/docs/CommentBody.md
deleted file mode 100644
index 93bd8c8..0000000
--- a/docs/CommentBody.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# CommentBody
-
-The body of a comment being created or updated.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**text** | **str** | The main comment value. | [optional]
-**annotations** | [**list[Annotation]**](Annotation.md) | A list of optional Annotations. | [optional]
-**is_resolved** | **str** | An optional value indicating whether the comment has been resolved, defaults to `false`. Resolved comments will not be returned in subsequent requests. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/CommentDeleteResponse.md b/docs/CommentDeleteResponse.md
deleted file mode 100644
index a7fe084..0000000
--- a/docs/CommentDeleteResponse.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# CommentDeleteResponse
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | A unique Comment identifier. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/CommentsApi.md b/docs/CommentsApi.md
deleted file mode 100644
index 1caf3a4..0000000
--- a/docs/CommentsApi.md
+++ /dev/null
@@ -1,554 +0,0 @@
-# lilt.CommentsApi
-
-All URIs are relative to *https://lilt.com/2*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**create_comment**](CommentsApi.md#create_comment) | **POST** /comments | Create a new comment
-[**delete_comment**](CommentsApi.md#delete_comment) | **DELETE** /comments | Delete a Comment
-[**get_document_comments**](CommentsApi.md#get_document_comments) | **GET** /comments | Retrieve a document's comments by segment
-[**update_comment**](CommentsApi.md#update_comment) | **PUT** /comments | Update an existing comment
-
-
-# **create_comment**
-> Comment create_comment(document_id, segment_id, body)
-
-Create a new comment
-
-Create a new comment for the specified Segment ID.
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.CommentsApi(api_client)
- document_id = 56 # int | A unique document identifier.
-segment_id = 56 # int | A unique segment identifier.
-body = lilt.CommentBody() # CommentBody | The comment being created
-
- try:
- # Create a new comment
- api_response = api_instance.create_comment(document_id, segment_id, body)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling CommentsApi->create_comment: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.CommentsApi(api_client)
- document_id = 56 # int | A unique document identifier.
-segment_id = 56 # int | A unique segment identifier.
-body = lilt.CommentBody() # CommentBody | The comment being created
-
- try:
- # Create a new comment
- api_response = api_instance.create_comment(document_id, segment_id, body)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling CommentsApi->create_comment: %s\n" % e)
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **document_id** | **int**| A unique document identifier. |
- **segment_id** | **int**| A unique segment identifier. |
- **body** | [**CommentBody**](CommentBody.md)| The comment being created |
-
-### Return type
-
-[**Comment**](Comment.md)
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**201** | A Comment object. | - |
-**0** | Unexpected error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **delete_comment**
-> CommentDeleteResponse delete_comment(comment_id)
-
-Delete a Comment
-
-Delete a Comment. Example CURL command: ``` curl -X DELETE https://lilt.com/2/comments?key=API_KEY&comment_id=123 ```
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.CommentsApi(api_client)
- comment_id = 56 # int | A unique Comment identifier.
-
- try:
- # Delete a Comment
- api_response = api_instance.delete_comment(comment_id)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling CommentsApi->delete_comment: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.CommentsApi(api_client)
- comment_id = 56 # int | A unique Comment identifier.
-
- try:
- # Delete a Comment
- api_response = api_instance.delete_comment(comment_id)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling CommentsApi->delete_comment: %s\n" % e)
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **comment_id** | **int**| A unique Comment identifier. |
-
-### Return type
-
-[**CommentDeleteResponse**](CommentDeleteResponse.md)
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**204** | A status object. | - |
-**0** | Unexpected error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **get_document_comments**
-> DocumentComments get_document_comments(document_id)
-
-Retrieve a document's comments by segment
-
-Retrieves all comments associated with a specified document, grouped by their Segment's ID. To retrieve a document's comments, specify the document_id request parameter. Example CURL command: ``` curl -X GET https://lilt.com/2/comments?key=API_KEY&document_id=123 ```
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.CommentsApi(api_client)
- document_id = 56 # int | A unique document identifier.
-
- try:
- # Retrieve a document's comments by segment
- api_response = api_instance.get_document_comments(document_id)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling CommentsApi->get_document_comments: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.CommentsApi(api_client)
- document_id = 56 # int | A unique document identifier.
-
- try:
- # Retrieve a document's comments by segment
- api_response = api_instance.get_document_comments(document_id)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling CommentsApi->get_document_comments: %s\n" % e)
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **document_id** | **int**| A unique document identifier. |
-
-### Return type
-
-[**DocumentComments**](DocumentComments.md)
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | An object containing lists of comments identified by the id of the segment to which they belong. | - |
-**403** | User does not have permission for provided document. | - |
-**410** | Comment deleted. | - |
-**0** | Unexpected error. | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **update_comment**
-> Comment update_comment(comment_id, document_id, body)
-
-Update an existing comment
-
-Update an existing comment.
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.CommentsApi(api_client)
- comment_id = 56 # int | A unique comment identifier.
-document_id = 56 # int | A unique document identifier.
-body = lilt.CommentBody() # CommentBody | The comment being updated.
-
- try:
- # Update an existing comment
- api_response = api_instance.update_comment(comment_id, document_id, body)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling CommentsApi->update_comment: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.CommentsApi(api_client)
- comment_id = 56 # int | A unique comment identifier.
-document_id = 56 # int | A unique document identifier.
-body = lilt.CommentBody() # CommentBody | The comment being updated.
-
- try:
- # Update an existing comment
- api_response = api_instance.update_comment(comment_id, document_id, body)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling CommentsApi->update_comment: %s\n" % e)
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **comment_id** | **int**| A unique comment identifier. |
- **document_id** | **int**| A unique document identifier. |
- **body** | [**CommentBody**](CommentBody.md)| The comment being updated. |
-
-### Return type
-
-[**Comment**](Comment.md)
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**201** | A Comment object. | - |
-**0** | Unexpected error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
diff --git a/docs/CompleteMultipartUpload200Response.md b/docs/CompleteMultipartUpload200Response.md
new file mode 100644
index 0000000..542e454
--- /dev/null
+++ b/docs/CompleteMultipartUpload200Response.md
@@ -0,0 +1,30 @@
+# CompleteMultipartUpload200Response
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**success** | **bool** | Upload completion status | [optional]
+**location** | **str** | Final file location | [optional]
+
+## Example
+
+```python
+from lilt.models.complete_multipart_upload200_response import CompleteMultipartUpload200Response
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CompleteMultipartUpload200Response from a JSON string
+complete_multipart_upload200_response_instance = CompleteMultipartUpload200Response.from_json(json)
+# print the JSON string representation of the object
+print(CompleteMultipartUpload200Response.to_json())
+
+# convert the object into a dict
+complete_multipart_upload200_response_dict = complete_multipart_upload200_response_instance.to_dict()
+# create an instance of CompleteMultipartUpload200Response from a dict
+complete_multipart_upload200_response_from_dict = CompleteMultipartUpload200Response.from_dict(complete_multipart_upload200_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CompleteMultipartUploadBody.md b/docs/CompleteMultipartUploadBody.md
new file mode 100644
index 0000000..3874cc2
--- /dev/null
+++ b/docs/CompleteMultipartUploadBody.md
@@ -0,0 +1,29 @@
+# CompleteMultipartUploadBody
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**parts** | [**List[CompleteMultipartUploadBodyPartsInner]**](CompleteMultipartUploadBodyPartsInner.md) | Array of completed upload parts. |
+
+## Example
+
+```python
+from lilt.models.complete_multipart_upload_body import CompleteMultipartUploadBody
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CompleteMultipartUploadBody from a JSON string
+complete_multipart_upload_body_instance = CompleteMultipartUploadBody.from_json(json)
+# print the JSON string representation of the object
+print(CompleteMultipartUploadBody.to_json())
+
+# convert the object into a dict
+complete_multipart_upload_body_dict = complete_multipart_upload_body_instance.to_dict()
+# create an instance of CompleteMultipartUploadBody from a dict
+complete_multipart_upload_body_from_dict = CompleteMultipartUploadBody.from_dict(complete_multipart_upload_body_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CompleteMultipartUploadBodyPartsInner.md b/docs/CompleteMultipartUploadBodyPartsInner.md
new file mode 100644
index 0000000..dffffd1
--- /dev/null
+++ b/docs/CompleteMultipartUploadBodyPartsInner.md
@@ -0,0 +1,30 @@
+# CompleteMultipartUploadBodyPartsInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**e_tag** | **str** | ETag of the uploaded part |
+**part_number** | **int** | Part number (1-based) |
+
+## Example
+
+```python
+from lilt.models.complete_multipart_upload_body_parts_inner import CompleteMultipartUploadBodyPartsInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CompleteMultipartUploadBodyPartsInner from a JSON string
+complete_multipart_upload_body_parts_inner_instance = CompleteMultipartUploadBodyPartsInner.from_json(json)
+# print the JSON string representation of the object
+print(CompleteMultipartUploadBodyPartsInner.to_json())
+
+# convert the object into a dict
+complete_multipart_upload_body_parts_inner_dict = complete_multipart_upload_body_parts_inner_instance.to_dict()
+# create an instance of CompleteMultipartUploadBodyPartsInner from a dict
+complete_multipart_upload_body_parts_inner_from_dict = CompleteMultipartUploadBodyPartsInner.from_dict(complete_multipart_upload_body_parts_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/Connector.md b/docs/Connector.md
deleted file mode 100644
index 6f06b6b..0000000
--- a/docs/Connector.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# Connector
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**name** | **str** | Name of connector. | [optional]
-**args** | [**object**](.md) | Connector parameters. | [optional]
-**schedule** | **str** | Cron string | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/Connector1.md b/docs/Connector1.md
deleted file mode 100644
index fba98db..0000000
--- a/docs/Connector1.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# Connector1
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**name** | **str** | Name of connector. | [optional]
-**args** | [**object**](.md) | Connector parameters. | [optional]
-**schedule** | **str** | Cron string | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ConnectorArguments.md b/docs/ConnectorArguments.md
deleted file mode 100644
index d45e691..0000000
--- a/docs/ConnectorArguments.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# ConnectorArguments
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | A unique Connector identifier. | [optional]
-**name** | **str** | Name of connector. | [optional]
-**args** | [**object**](.md) | Connector parameters. | [optional]
-**schedule** | **str** | Cron string | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ConnectorDeleteResponse.md b/docs/ConnectorDeleteResponse.md
deleted file mode 100644
index c1865b3..0000000
--- a/docs/ConnectorDeleteResponse.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# ConnectorDeleteResponse
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | A unique Connector identifier. | [optional]
-**deleted** | **bool** | If the operation succeeded, then `true`. Otherwise, `false`. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ConnectorJob.md b/docs/ConnectorJob.md
deleted file mode 100644
index 76619b0..0000000
--- a/docs/ConnectorJob.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# ConnectorJob
-
-A ConnectorJob tracks the status of an import or export action.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | | [optional]
-**status** | **str** | | [optional]
-**args** | [**object**](.md) | | [optional]
-**created_at** | **str** | | [optional]
-**updated_at** | **str** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ConnectorsApi.md b/docs/ConnectorsApi.md
deleted file mode 100644
index f3398a1..0000000
--- a/docs/ConnectorsApi.md
+++ /dev/null
@@ -1,939 +0,0 @@
-# lilt.ConnectorsApi
-
-All URIs are relative to *https://lilt.com/2*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**create_connector**](ConnectorsApi.md#create_connector) | **POST** /connectors | Upload a Connector
-[**delete_connector**](ConnectorsApi.md#delete_connector) | **DELETE** /connectors | Delete a Connector
-[**export_connector_job**](ConnectorsApi.md#export_connector_job) | **POST** /connectors/jobs/deliver | Deliver a Connector Job
-[**get_connector_jobs**](ConnectorsApi.md#get_connector_jobs) | **GET** /connectors/jobs | Retrieve a Connector Job
-[**get_connectors**](ConnectorsApi.md#get_connectors) | **GET** /connectors | Retrieve a Connector
-[**sync_connector**](ConnectorsApi.md#sync_connector) | **POST** /connectors/sync | Sync a Connector
-[**update_connector**](ConnectorsApi.md#update_connector) | **PUT** /connectors | Upload a Connector
-
-
-# **create_connector**
-> Connector create_connector(body)
-
-Upload a Connector
-
-Create a new connector linked to a supported external cms.
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConnectorsApi(api_client)
- body = lilt.Connector() # Connector |
-
- try:
- # Upload a Connector
- api_response = api_instance.create_connector(body)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling ConnectorsApi->create_connector: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConnectorsApi(api_client)
- body = lilt.Connector() # Connector |
-
- try:
- # Upload a Connector
- api_response = api_instance.create_connector(body)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling ConnectorsApi->create_connector: %s\n" % e)
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**Connector**](Connector.md)| |
-
-### Return type
-
-[**Connector**](Connector.md)
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**201** | A Connector object. | - |
-**0** | Unexpected error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **delete_connector**
-> ConnectorDeleteResponse delete_connector(id)
-
-Delete a Connector
-
-Delete a Connector. Example CURL command: ``` curl -X DELETE https://lilt.com/2/connectors?key=API_KEY&id=123 ```
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConnectorsApi(api_client)
- id = 56 # int | A unique Connector identifier.
-
- try:
- # Delete a Connector
- api_response = api_instance.delete_connector(id)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling ConnectorsApi->delete_connector: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConnectorsApi(api_client)
- id = 56 # int | A unique Connector identifier.
-
- try:
- # Delete a Connector
- api_response = api_instance.delete_connector(id)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling ConnectorsApi->delete_connector: %s\n" % e)
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **id** | **int**| A unique Connector identifier. |
-
-### Return type
-
-[**ConnectorDeleteResponse**](ConnectorDeleteResponse.md)
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**204** | A status object. | - |
-**0** | Unexpected error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **export_connector_job**
-> export_connector_job(id)
-
-Deliver a Connector Job
-
-Request an export job for the given connector job ID. This will check Lilt for completed projects that are associated with this job and deliver them to the target system. Example CURL command: ``` curl -X POST https://lilt.com/2/connectors/jobs/deliver?key=API_KEY&id=9274 ```
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConnectorsApi(api_client)
- id = 56 # int | A unique Connector Job identifier.
-
- try:
- # Deliver a Connector Job
- api_instance.export_connector_job(id)
- except ApiException as e:
- print("Exception when calling ConnectorsApi->export_connector_job: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConnectorsApi(api_client)
- id = 56 # int | A unique Connector Job identifier.
-
- try:
- # Deliver a Connector Job
- api_instance.export_connector_job(id)
- except ApiException as e:
- print("Exception when calling ConnectorsApi->export_connector_job: %s\n" % e)
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **id** | **int**| A unique Connector Job identifier. |
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | A success status code. | - |
-**0** | Unexpected error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **get_connector_jobs**
-> list[ConnectorJob] get_connector_jobs(id)
-
-Retrieve a Connector Job
-
-Retrieves a connector job available to your user. Use this to check the status of jobs started by the `/connectors/sync` and `/connectors/jobs/deliver` endpoints. Example CURL command: ``` curl -X GET https://lilt.com/2/connectors/jobs?key=API_KEY&id=9274 ```
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConnectorsApi(api_client)
- id = 56 # int | A unique Connector Job identifier.
-
- try:
- # Retrieve a Connector Job
- api_response = api_instance.get_connector_jobs(id)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling ConnectorsApi->get_connector_jobs: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConnectorsApi(api_client)
- id = 56 # int | A unique Connector Job identifier.
-
- try:
- # Retrieve a Connector Job
- api_response = api_instance.get_connector_jobs(id)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling ConnectorsApi->get_connector_jobs: %s\n" % e)
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **id** | **int**| A unique Connector Job identifier. |
-
-### Return type
-
-[**list[ConnectorJob]**](ConnectorJob.md)
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | A list of Connector Jobs. | - |
-**0** | Unexpected error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **get_connectors**
-> list[Connector] get_connectors(id=id)
-
-Retrieve a Connector
-
-Retrieves one or more connectors available to your user. Connectors are not associated with a project or a memory. To retrieve a specific connector, specify the id request parameter. To retrieve all connectors, omit the id request parameter. Example CURL command: ``` curl -X GET https://lilt.com/2/connectors?key=API_KEY&id=274```
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConnectorsApi(api_client)
- id = 56 # int | A unique Connector identifier. (optional)
-
- try:
- # Retrieve a Connector
- api_response = api_instance.get_connectors(id=id)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling ConnectorsApi->get_connectors: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConnectorsApi(api_client)
- id = 56 # int | A unique Connector identifier. (optional)
-
- try:
- # Retrieve a Connector
- api_response = api_instance.get_connectors(id=id)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling ConnectorsApi->get_connectors: %s\n" % e)
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **id** | **int**| A unique Connector identifier. | [optional]
-
-### Return type
-
-[**list[Connector]**](Connector.md)
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | A list of Connectors. | - |
-**403** | User does not have permission for provided connector. | - |
-**410** | Connector deleted. | - |
-**0** | Unexpected error. | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **sync_connector**
-> ConnectorJob sync_connector(id)
-
-Sync a Connector
-
-Request an import job for the given connector ID. This will check the target system for new content to pull into Lilt. Example CURL command: ``` curl -X GET https://lilt.com/2/connectors/sync?key=API_KEY&id=128 ```
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConnectorsApi(api_client)
- id = 56 # int | A unique Connector identifier.
-
- try:
- # Sync a Connector
- api_response = api_instance.sync_connector(id)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling ConnectorsApi->sync_connector: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConnectorsApi(api_client)
- id = 56 # int | A unique Connector identifier.
-
- try:
- # Sync a Connector
- api_response = api_instance.sync_connector(id)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling ConnectorsApi->sync_connector: %s\n" % e)
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **id** | **int**| A unique Connector identifier. |
-
-### Return type
-
-[**ConnectorJob**](ConnectorJob.md)
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**201** | A Connector Job object. | - |
-**0** | Unexpected error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **update_connector**
-> Connector update_connector(body)
-
-Upload a Connector
-
-Create a new connector linked to a supported external content source.
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConnectorsApi(api_client)
- body = lilt.ConnectorArguments() # ConnectorArguments |
-
- try:
- # Upload a Connector
- api_response = api_instance.update_connector(body)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling ConnectorsApi->update_connector: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConnectorsApi(api_client)
- body = lilt.ConnectorArguments() # ConnectorArguments |
-
- try:
- # Upload a Connector
- api_response = api_instance.update_connector(body)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling ConnectorsApi->update_connector: %s\n" % e)
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**ConnectorArguments**](ConnectorArguments.md)| |
-
-### Return type
-
-[**Connector**](Connector.md)
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**201** | A Connector object. | - |
-**0** | Unexpected error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
diff --git a/docs/ConverterConfigApi.md b/docs/ConverterConfigApi.md
deleted file mode 100644
index 848afa1..0000000
--- a/docs/ConverterConfigApi.md
+++ /dev/null
@@ -1,818 +0,0 @@
-# lilt.ConverterConfigApi
-
-All URIs are relative to *https://lilt.com/2*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**add_converter_config**](ConverterConfigApi.md#add_converter_config) | **PUT** /configs/converter | Add Converter Config
-[**delete_converter_config**](ConverterConfigApi.md#delete_converter_config) | **DELETE** /configs/converter/{configId} | Delete Converter Config
-[**delete_filter_mapping**](ConverterConfigApi.md#delete_filter_mapping) | **DELETE** /configs/converter/{configId}/{fileExtension} | Delete Filter Mapping
-[**edit_filter_mapping**](ConverterConfigApi.md#edit_filter_mapping) | **PUT** /configs/converter/{configId}/{fileExtension} | Add Filter Mapping
-[**get_converter_config_by_id**](ConverterConfigApi.md#get_converter_config_by_id) | **GET** /configs/converter/{configId} | Fetch Converter Config by Id
-[**get_converter_configs**](ConverterConfigApi.md#get_converter_configs) | **GET** /configs/converter | List Converter Configs
-
-
-# **add_converter_config**
-> ConverterConfigUpdateResponse add_converter_config(organization_id, body=body)
-
-Add Converter Config
-
-Add a file filter configuration for your Organization.
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConverterConfigApi(api_client)
- organization_id = 56 # int | A unique Organization identifier.
-body = lilt.CreateConverterConfigParameters() # CreateConverterConfigParameters | (optional)
-
- try:
- # Add Converter Config
- api_response = api_instance.add_converter_config(organization_id, body=body)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling ConverterConfigApi->add_converter_config: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConverterConfigApi(api_client)
- organization_id = 56 # int | A unique Organization identifier.
-body = lilt.CreateConverterConfigParameters() # CreateConverterConfigParameters | (optional)
-
- try:
- # Add Converter Config
- api_response = api_instance.add_converter_config(organization_id, body=body)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling ConverterConfigApi->add_converter_config: %s\n" % e)
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **organization_id** | **int**| A unique Organization identifier. |
- **body** | [**CreateConverterConfigParameters**](CreateConverterConfigParameters.md)| | [optional]
-
-### Return type
-
-[**ConverterConfigUpdateResponse**](ConverterConfigUpdateResponse.md)
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | The config id of the configuration created. | - |
-**0** | Unexpected error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **delete_converter_config**
-> ConverterConfigUpdateResponse delete_converter_config(config_id)
-
-Delete Converter Config
-
-Delete a file filter configuration by id.
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConverterConfigApi(api_client)
- config_id = 56 # int | A unique configuration identifier.
-
- try:
- # Delete Converter Config
- api_response = api_instance.delete_converter_config(config_id)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling ConverterConfigApi->delete_converter_config: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConverterConfigApi(api_client)
- config_id = 56 # int | A unique configuration identifier.
-
- try:
- # Delete Converter Config
- api_response = api_instance.delete_converter_config(config_id)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling ConverterConfigApi->delete_converter_config: %s\n" % e)
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **config_id** | **int**| A unique configuration identifier. |
-
-### Return type
-
-[**ConverterConfigUpdateResponse**](ConverterConfigUpdateResponse.md)
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | The config id of the configuration deleted. | - |
-**0** | Unexpected error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **delete_filter_mapping**
-> dict(str, str) delete_filter_mapping(config_id, file_extension)
-
-Delete Filter Mapping
-
-Delete a file filter mapping by id and file extension.
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConverterConfigApi(api_client)
- config_id = 56 # int | A unique configuration identifier.
-file_extension = 'file_extension_example' # str | A file extension to delete.
-
- try:
- # Delete Filter Mapping
- api_response = api_instance.delete_filter_mapping(config_id, file_extension)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling ConverterConfigApi->delete_filter_mapping: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConverterConfigApi(api_client)
- config_id = 56 # int | A unique configuration identifier.
-file_extension = 'file_extension_example' # str | A file extension to delete.
-
- try:
- # Delete Filter Mapping
- api_response = api_instance.delete_filter_mapping(config_id, file_extension)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling ConverterConfigApi->delete_filter_mapping: %s\n" % e)
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **config_id** | **int**| A unique configuration identifier. |
- **file_extension** | **str**| A file extension to delete. |
-
-### Return type
-
-**dict(str, str)**
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | A map of config id to string escaped config json. | - |
-**0** | Unexpected error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **edit_filter_mapping**
-> dict(str, str) edit_filter_mapping(config_id, file_extension, body=body)
-
-Add Filter Mapping
-
-Add a specific filter mapping to your file filter configuration
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConverterConfigApi(api_client)
- config_id = 56 # int | A unique configuration identifier.
-file_extension = 'file_extension_example' # str | A file extension for the filter mapping.
-body = lilt.EditFilterMappingParameters() # EditFilterMappingParameters | (optional)
-
- try:
- # Add Filter Mapping
- api_response = api_instance.edit_filter_mapping(config_id, file_extension, body=body)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling ConverterConfigApi->edit_filter_mapping: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConverterConfigApi(api_client)
- config_id = 56 # int | A unique configuration identifier.
-file_extension = 'file_extension_example' # str | A file extension for the filter mapping.
-body = lilt.EditFilterMappingParameters() # EditFilterMappingParameters | (optional)
-
- try:
- # Add Filter Mapping
- api_response = api_instance.edit_filter_mapping(config_id, file_extension, body=body)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling ConverterConfigApi->edit_filter_mapping: %s\n" % e)
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **config_id** | **int**| A unique configuration identifier. |
- **file_extension** | **str**| A file extension for the filter mapping. |
- **body** | [**EditFilterMappingParameters**](EditFilterMappingParameters.md)| | [optional]
-
-### Return type
-
-**dict(str, str)**
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | A map of config id to string escaped config json. | - |
-**0** | Unexpected error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **get_converter_config_by_id**
-> dict(str, str) get_converter_config_by_id(config_id)
-
-Fetch Converter Config by Id
-
-Fetch a file filter configuration by id.
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConverterConfigApi(api_client)
- config_id = 56 # int | A unique configuration identifier.
-
- try:
- # Fetch Converter Config by Id
- api_response = api_instance.get_converter_config_by_id(config_id)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling ConverterConfigApi->get_converter_config_by_id: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConverterConfigApi(api_client)
- config_id = 56 # int | A unique configuration identifier.
-
- try:
- # Fetch Converter Config by Id
- api_response = api_instance.get_converter_config_by_id(config_id)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling ConverterConfigApi->get_converter_config_by_id: %s\n" % e)
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **config_id** | **int**| A unique configuration identifier. |
-
-### Return type
-
-**dict(str, str)**
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | A map of config id to string escaped config json. | - |
-**0** | Unexpected error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **get_converter_configs**
-> dict(str, str) get_converter_configs(organization_id)
-
-List Converter Configs
-
-List all file filter configurations for your Organization.
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConverterConfigApi(api_client)
- organization_id = 56 # int | A unique Organization identifier.
-
- try:
- # List Converter Configs
- api_response = api_instance.get_converter_configs(organization_id)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling ConverterConfigApi->get_converter_configs: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.ConverterConfigApi(api_client)
- organization_id = 56 # int | A unique Organization identifier.
-
- try:
- # List Converter Configs
- api_response = api_instance.get_converter_configs(organization_id)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling ConverterConfigApi->get_converter_configs: %s\n" % e)
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **organization_id** | **int**| A unique Organization identifier. |
-
-### Return type
-
-**dict(str, str)**
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | A map of config id to string escaped config json. | - |
-**0** | Unexpected error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
diff --git a/docs/ConverterConfigUpdateResponse.md b/docs/ConverterConfigUpdateResponse.md
deleted file mode 100644
index 432431e..0000000
--- a/docs/ConverterConfigUpdateResponse.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# ConverterConfigUpdateResponse
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**config_id** | **int** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/DocumentAssignmentParameters.md b/docs/DocumentAssignmentParameters.md
deleted file mode 100644
index 7532c11..0000000
--- a/docs/DocumentAssignmentParameters.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# DocumentAssignmentParameters
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | A unique Document identifier. |
-**email** | **str** | An email address. |
-**is_translator** | **bool** | If true, assign for translating. If false, then unassign. | [optional]
-**is_reviewer** | **bool** | If true, assign for reviewing. If false, then unassign. | [optional]
-**due_date** | **datetime** | Due date for translation or review (set based on `is_translator` and `is_reviewer` flags). | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/DocumentAssignmentResponse.md b/docs/DocumentAssignmentResponse.md
deleted file mode 100644
index 55a55f0..0000000
--- a/docs/DocumentAssignmentResponse.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# DocumentAssignmentResponse
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | A unique Document identifier. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/DocumentComments.md b/docs/DocumentComments.md
deleted file mode 100644
index a1652f2..0000000
--- a/docs/DocumentComments.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# DocumentComments
-
-A set of comments for a given document, grouped with Segment ID as the key.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**_1234567** | [**list[Comment]**](Comment.md) | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/DocumentDeleteResponse.md b/docs/DocumentDeleteResponse.md
deleted file mode 100644
index 41cd0ca..0000000
--- a/docs/DocumentDeleteResponse.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# DocumentDeleteResponse
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | A unique Document identifier. | [optional]
-**deleted** | **bool** | If the operation succeeded, then `true`. Otherwise, `false`. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/DocumentDoneUpdateParameters.md b/docs/DocumentDoneUpdateParameters.md
deleted file mode 100644
index c939ea2..0000000
--- a/docs/DocumentDoneUpdateParameters.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# DocumentDoneUpdateParameters
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**document_ids** | **list[float]** | array of document ids |
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/DocumentDoneUpdateParameters1.md b/docs/DocumentDoneUpdateParameters1.md
deleted file mode 100644
index 981cb23..0000000
--- a/docs/DocumentDoneUpdateParameters1.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# DocumentDoneUpdateParameters1
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**document_ids** | **list[float]** | array of document ids |
-**is_done** | **bool** | |
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/DocumentDoneUpdateParameters2.md b/docs/DocumentDoneUpdateParameters2.md
deleted file mode 100644
index 44f0902..0000000
--- a/docs/DocumentDoneUpdateParameters2.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# DocumentDoneUpdateParameters2
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**document_ids** | **list[float]** | array of document ids |
-**is_done** | **bool** | |
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/DocumentParameters.md b/docs/DocumentParameters.md
deleted file mode 100644
index 0efbd85..0000000
--- a/docs/DocumentParameters.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# DocumentParameters
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**name** | **str** | The document name. |
-**project_id** | **int** | A unique Project identifier. |
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/DocumentPretranslateParameters.md b/docs/DocumentPretranslateParameters.md
deleted file mode 100644
index 8b97bac..0000000
--- a/docs/DocumentPretranslateParameters.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# DocumentPretranslateParameters
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **list[int]** | A list of unique Document identifiers. |
-**auto_accept** | **bool** | Optional parameter for auto-accepting 100% TM hits. | [optional]
-**case_sensitive** | **bool** | Optional for using case matching against TM hits.. | [optional]
-**attribute_to_creator** | **bool** | Optional parameter for attributing translation authorship of exact matches to document creator. | [optional]
-**mode** | **str** | An optional parameter indicating how the document will be pretranslated. The accepted values are `tm`, or `tm+mt`. Default is `tm`. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/DocumentPretranslateResponse.md b/docs/DocumentPretranslateResponse.md
deleted file mode 100644
index 21c1e27..0000000
--- a/docs/DocumentPretranslateResponse.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# DocumentPretranslateResponse
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **list[int]** | A list of documents being pretranslated. | [optional]
-**is_pretranslating** | **bool** | If the operation succeeded, then `true`. Otherwise, `false`. | [optional]
-**documents** | [**list[DocumentPretranslating]**](DocumentPretranslating.md) | Document pretranslation status. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/DocumentPretranslating.md b/docs/DocumentPretranslating.md
deleted file mode 100644
index 4c44a39..0000000
--- a/docs/DocumentPretranslating.md
+++ /dev/null
@@ -1,17 +0,0 @@
-# DocumentPretranslating
-
-Document object for which pretranslation was requested.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **float** | A status object indicating the pretranslation status. | [optional]
-**import_in_progress** | **bool** | Indicates that the document is being imported. | [optional]
-**import_succeeded** | **bool** | Indicates that the document was successfully imported. | [optional]
-**import_error_message** | **str** | Indicates there was an error importing the document. | [optional]
-**is_processing** | **bool** | Indicates the document is being processed. | [optional]
-**is_pretranslating** | **bool** | Indicates the document is being pretranslated. | [optional]
-**status** | [**DocumentPretranslatingStatus**](DocumentPretranslatingStatus.md) | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/DocumentPretranslatingStatus.md b/docs/DocumentPretranslatingStatus.md
deleted file mode 100644
index 5cb4b8a..0000000
--- a/docs/DocumentPretranslatingStatus.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# DocumentPretranslatingStatus
-
-A status object indicating the pretranslation status.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**pretranslation** | **str** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/DocumentQuote.md b/docs/DocumentQuote.md
deleted file mode 100644
index 91cc021..0000000
--- a/docs/DocumentQuote.md
+++ /dev/null
@@ -1,17 +0,0 @@
-# DocumentQuote
-
-Quoting information for a Document.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | A unique Document identifier. | [optional]
-**num_source_words** | **int** | The number of source words in the Document. | [optional]
-**num_words_new** | **int** | The number of new source words in the Document. | [optional]
-**num_segments_new** | **int** | The number of new segments in the Document. | [optional]
-**num_words_repetition** | **int** | The number of repetition source words in the Document. | [optional]
-**num_segments_repetition** | **int** | The number of repetition segments in the Document. | [optional]
-**bands** | [**list[MatchBand]**](MatchBand.md) | A list of MatchBand objects that represent translation memory leverage statistics. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/DocumentUpdateParameters.md b/docs/DocumentUpdateParameters.md
deleted file mode 100644
index 3b9c190..0000000
--- a/docs/DocumentUpdateParameters.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# DocumentUpdateParameters
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | A unique Document identifier. |
-**name** | **str** | The Document name. |
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/DocumentWorkflow.md b/docs/DocumentWorkflow.md
deleted file mode 100644
index 0cddbb0..0000000
--- a/docs/DocumentWorkflow.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# DocumentWorkflow
-
-Workflow metadata related to a document.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**document_id** | **int** | Identifier of a document. | [optional]
-**workflow_id** | **int** | Identifier for a Workflow that the document is using. | [optional]
-**stages** | [**list[WorkflowStage]**](WorkflowStage.md) | The stages in the document's workflow. | [optional]
-**current_task** | [**WorkflowTask**](WorkflowTask.md) | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/DocumentsApi.md b/docs/DocumentsApi.md
index 6af58aa..63727fd 100644
--- a/docs/DocumentsApi.md
+++ b/docs/DocumentsApi.md
@@ -111,7 +111,7 @@ Name | Type | Description | Notes
Upload a File
-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).
+Create a Document from a file in any of the formats [documented in our knowledge base](/kb/supported-file-formats).
Request parameters should be passed as JSON object with the header field `LILT-API`.
File names in the header can only contain [US-ASCII characters](https://en.wikipedia.org/wiki/ASCII). File names with characters outside of US-ASCII should be [URI encoded](https://en.wikipedia.org/wiki/Percent-encoding) or transliterated to US-ASCII strings.
diff --git a/docs/EditFilterMappingParameters.md b/docs/EditFilterMappingParameters.md
deleted file mode 100644
index 91ec2dd..0000000
--- a/docs/EditFilterMappingParameters.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# EditFilterMappingParameters
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**registry_entry_json** | **str** | The filter mapping json blob, string escaped. | [optional]
-**config_name** | **str** | The user defined name of your configuration. |
-**config_description** | **str** | A description for the configuration. |
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/Error2.md b/docs/Error2.md
deleted file mode 100644
index 3fb5a6a..0000000
--- a/docs/Error2.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# Error2
-
-Response in the event of an unexpected error.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**message** | [**object**](.md) | A human-readable message describing the error. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/File.md b/docs/File.md
deleted file mode 100644
index 7c3edeb..0000000
--- a/docs/File.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# File
-
-A File is an unprocessed source file that can later be added to a project.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | A unique number identifying the File. | [optional]
-**name** | **str** | The file name. | [optional]
-**file_hash** | **str** | A unique hash value associated with the file. An MD5 hash of the file content will be used by default. | [optional]
-**export_uri** | **str** | A webhook endpoint that will export the translated document back to the source repository. | [optional]
-**detected_lang** | **str** | Language associated with the file. | [optional]
-**detected_lang_confidence** | **float** | Confidence score for the language associated with the file. | [optional]
-**created_at** | **int** | Time at which the object was created. Measured in seconds since the Unix epoch. | [optional]
-**updated_at** | **int** | Time at which the object was created. Measured in seconds since the Unix epoch. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/FileResponse.md b/docs/FileResponse.md
deleted file mode 100644
index 87c169f..0000000
--- a/docs/FileResponse.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# FileResponse
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | A unique File identifier. | [optional]
-**deleted** | **bool** | If the operation succeeded, then `true`. Otherwise, `false`. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/FilesApi.md b/docs/FilesApi.md
index da5787d..894899a 100644
--- a/docs/FilesApi.md
+++ b/docs/FilesApi.md
@@ -111,7 +111,7 @@ void (empty response body)
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **delete_file**
-> FileDeleteResponse delete_file(id)
+> delete_file(id)
Delete a File
@@ -119,7 +119,7 @@ Delete a File.
Example CURL command:
```bash
- curl -X DELETE https://api.lilt.com/v2/files?key=API_KEY&id=123
+ curl -X DELETE https://api.lilt.com/v2/files?key=API_KEY&id=123
```
@@ -131,7 +131,6 @@ Example CURL command:
```python
import lilt
-from lilt.models.file_delete_response import FileDeleteResponse
from lilt.rest import ApiException
from pprint import pprint
@@ -166,9 +165,7 @@ with lilt.ApiClient(configuration) as api_client:
try:
# Delete a File
- api_response = api_instance.delete_file(id)
- print("The response of FilesApi->delete_file:\n")
- pprint(api_response)
+ api_instance.delete_file(id)
except Exception as e:
print("Exception when calling FilesApi->delete_file: %s\n" % e)
```
@@ -184,7 +181,7 @@ Name | Type | Description | Notes
### Return type
-[**FileDeleteResponse**](FileDeleteResponse.md)
+void (empty response body)
### Authorization
@@ -193,7 +190,7 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/json, application/octet-stream, text/plain
+ - **Accept**: application/octet-stream, text/plain, application/json
### HTTP response details
@@ -496,7 +493,7 @@ void (empty response body)
Upload a File
Upload a File in any of the formats [documented in our knowledge
-base](https://support.lilt.com/hc/en-us/articles/360020816253-File-Formats).
+base](/kb/supported-file-formats).
Request parameters should be passed in as query string parameters.
Example CURL command:
diff --git a/docs/GetPendingUploads200ResponseInner.md b/docs/GetPendingUploads200ResponseInner.md
new file mode 100644
index 0000000..e27e878
--- /dev/null
+++ b/docs/GetPendingUploads200ResponseInner.md
@@ -0,0 +1,32 @@
+# GetPendingUploads200ResponseInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **int** | Unique upload identifier | [optional]
+**filename** | **str** | Name of the uploaded file | [optional]
+**status** | **str** | Current upload status | [optional]
+**created_at** | **datetime** | Upload creation timestamp | [optional]
+
+## Example
+
+```python
+from lilt.models.get_pending_uploads200_response_inner import GetPendingUploads200ResponseInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetPendingUploads200ResponseInner from a JSON string
+get_pending_uploads200_response_inner_instance = GetPendingUploads200ResponseInner.from_json(json)
+# print the JSON string representation of the object
+print(GetPendingUploads200ResponseInner.to_json())
+
+# convert the object into a dict
+get_pending_uploads200_response_inner_dict = get_pending_uploads200_response_inner_instance.to_dict()
+# create an instance of GetPendingUploads200ResponseInner from a dict
+get_pending_uploads200_response_inner_from_dict = GetPendingUploads200ResponseInner.from_dict(get_pending_uploads200_response_inner_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetS3UploadParams200Response.md b/docs/GetS3UploadParams200Response.md
new file mode 100644
index 0000000..5df9747
--- /dev/null
+++ b/docs/GetS3UploadParams200Response.md
@@ -0,0 +1,31 @@
+# GetS3UploadParams200Response
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**url** | **str** | Pre-signed URL for file upload | [optional]
+**key** | **str** | Upload key identifier | [optional]
+**method** | **str** | HTTP method to use for upload | [optional]
+
+## Example
+
+```python
+from lilt.models.get_s3_upload_params200_response import GetS3UploadParams200Response
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetS3UploadParams200Response from a JSON string
+get_s3_upload_params200_response_instance = GetS3UploadParams200Response.from_json(json)
+# print the JSON string representation of the object
+print(GetS3UploadParams200Response.to_json())
+
+# convert the object into a dict
+get_s3_upload_params200_response_dict = get_s3_upload_params200_response_instance.to_dict()
+# create an instance of GetS3UploadParams200Response from a dict
+get_s3_upload_params200_response_from_dict = GetS3UploadParams200Response.from_dict(get_s3_upload_params200_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/InitiateMultipartUpload200Response.md b/docs/InitiateMultipartUpload200Response.md
new file mode 100644
index 0000000..a14805d
--- /dev/null
+++ b/docs/InitiateMultipartUpload200Response.md
@@ -0,0 +1,30 @@
+# InitiateMultipartUpload200Response
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**upload_id** | **str** | Multipart upload ID for subsequent part uploads | [optional]
+**key** | **str** | Upload key identifier | [optional]
+
+## Example
+
+```python
+from lilt.models.initiate_multipart_upload200_response import InitiateMultipartUpload200Response
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of InitiateMultipartUpload200Response from a JSON string
+initiate_multipart_upload200_response_instance = InitiateMultipartUpload200Response.from_json(json)
+# print the JSON string representation of the object
+print(InitiateMultipartUpload200Response.to_json())
+
+# convert the object into a dict
+initiate_multipart_upload200_response_dict = initiate_multipart_upload200_response_instance.to_dict()
+# create an instance of InitiateMultipartUpload200Response from a dict
+initiate_multipart_upload200_response_from_dict = InitiateMultipartUpload200Response.from_dict(initiate_multipart_upload200_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/InitiateMultipartUploadBody.md b/docs/InitiateMultipartUploadBody.md
new file mode 100644
index 0000000..0a02a4e
--- /dev/null
+++ b/docs/InitiateMultipartUploadBody.md
@@ -0,0 +1,32 @@
+# InitiateMultipartUploadBody
+
+A single upload request object, or an array of upload request objects (max 100).
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**filename** | **str** | A file name including file extension. |
+**type** | **str** | The content-type or mime-type of the file to upload. |
+**metadata** | [**InitiateMultipartUploadBodyMetadata**](InitiateMultipartUploadBodyMetadata.md) | | [optional]
+
+## Example
+
+```python
+from lilt.models.initiate_multipart_upload_body import InitiateMultipartUploadBody
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of InitiateMultipartUploadBody from a JSON string
+initiate_multipart_upload_body_instance = InitiateMultipartUploadBody.from_json(json)
+# print the JSON string representation of the object
+print(InitiateMultipartUploadBody.to_json())
+
+# convert the object into a dict
+initiate_multipart_upload_body_dict = initiate_multipart_upload_body_instance.to_dict()
+# create an instance of InitiateMultipartUploadBody from a dict
+initiate_multipart_upload_body_from_dict = InitiateMultipartUploadBody.from_dict(initiate_multipart_upload_body_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/InitiateMultipartUploadBodyMetadata.md b/docs/InitiateMultipartUploadBodyMetadata.md
new file mode 100644
index 0000000..ec86723
--- /dev/null
+++ b/docs/InitiateMultipartUploadBodyMetadata.md
@@ -0,0 +1,33 @@
+# InitiateMultipartUploadBodyMetadata
+
+Optional file metadata.
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**size** | **int** | The size of the file to upload in bytes. | [optional]
+**category** | **str** | File category. | [optional]
+**uuid** | **str** | File UUID. | [optional]
+**labels** | **List[str]** | Array of label names to be added to the file after upload completes. | [optional]
+
+## Example
+
+```python
+from lilt.models.initiate_multipart_upload_body_metadata import InitiateMultipartUploadBodyMetadata
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of InitiateMultipartUploadBodyMetadata from a JSON string
+initiate_multipart_upload_body_metadata_instance = InitiateMultipartUploadBodyMetadata.from_json(json)
+# print the JSON string representation of the object
+print(InitiateMultipartUploadBodyMetadata.to_json())
+
+# convert the object into a dict
+initiate_multipart_upload_body_metadata_dict = initiate_multipart_upload_body_metadata_instance.to_dict()
+# create an instance of InitiateMultipartUploadBodyMetadata from a dict
+initiate_multipart_upload_body_metadata_from_dict = InitiateMultipartUploadBodyMetadata.from_dict(initiate_multipart_upload_body_metadata_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/InitiateUploadBody.md b/docs/InitiateUploadBody.md
new file mode 100644
index 0000000..3685520
--- /dev/null
+++ b/docs/InitiateUploadBody.md
@@ -0,0 +1,32 @@
+# InitiateUploadBody
+
+A single upload request object, or an array of upload request objects (max 100).
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**filename** | **str** | A file name including file extension. |
+**type** | **str** | The content-type or mime-type of the file to upload. |
+**metadata** | [**InitiateUploadBodyMetadata**](InitiateUploadBodyMetadata.md) | | [optional]
+
+## Example
+
+```python
+from lilt.models.initiate_upload_body import InitiateUploadBody
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of InitiateUploadBody from a JSON string
+initiate_upload_body_instance = InitiateUploadBody.from_json(json)
+# print the JSON string representation of the object
+print(InitiateUploadBody.to_json())
+
+# convert the object into a dict
+initiate_upload_body_dict = initiate_upload_body_instance.to_dict()
+# create an instance of InitiateUploadBody from a dict
+initiate_upload_body_from_dict = InitiateUploadBody.from_dict(initiate_upload_body_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/InitiateUploadBodyMetadata.md b/docs/InitiateUploadBodyMetadata.md
new file mode 100644
index 0000000..16fe697
--- /dev/null
+++ b/docs/InitiateUploadBodyMetadata.md
@@ -0,0 +1,33 @@
+# InitiateUploadBodyMetadata
+
+Optional file metadata.
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**size** | **int** | The size of the file to upload in bytes. | [optional]
+**category** | **str** | File category. | [optional]
+**uuid** | **str** | File UUID. | [optional]
+**labels** | **List[str]** | Array of label names to be added to the file after upload completes. | [optional]
+
+## Example
+
+```python
+from lilt.models.initiate_upload_body_metadata import InitiateUploadBodyMetadata
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of InitiateUploadBodyMetadata from a JSON string
+initiate_upload_body_metadata_instance = InitiateUploadBodyMetadata.from_json(json)
+# print the JSON string representation of the object
+print(InitiateUploadBodyMetadata.to_json())
+
+# convert the object into a dict
+initiate_upload_body_metadata_dict = initiate_upload_body_metadata_instance.to_dict()
+# create an instance of InitiateUploadBodyMetadata from a dict
+initiate_upload_body_metadata_from_dict = InitiateUploadBodyMetadata.from_dict(initiate_upload_body_metadata_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/InlineResponse200.md b/docs/InlineResponse200.md
deleted file mode 100644
index bfef84f..0000000
--- a/docs/InlineResponse200.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# InlineResponse200
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | The ID of the deleted Lilt Create content. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/JobCreateParameters.md b/docs/JobCreateParameters.md
index 9c57337..a60dcbb 100644
--- a/docs/JobCreateParameters.md
+++ b/docs/JobCreateParameters.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
**file_ids** | **List[int]** | A list of file ids to upload to job creation. |
**due** | **str** | An ISO string date representing job due date. | [optional]
**src_lang** | **str** | 2-letter ISO source language code |
-**src_locale** | **str** | 2-letter source language code | [optional]
+**src_locale** | **str** | 2-letter source language code |
**is_plural** | **bool** | A boolean value representing if the files have plurals. | [optional]
**workflow_template_id** | **int** | ID of the workflow template to be used. Use the [workflows templates endpoint](#tag/Workflows/operation/getWorkflowTemplates) to get the list of available workflows. | [optional]
**domain_id** | **int** | ID of the domain to be used. Use the [domains endpoint](#tag/Domains/operation/getDomains) to get the list of available domains. | [optional]
diff --git a/docs/JobLeverageStatsProjects.md b/docs/JobLeverageStatsProjects.md
deleted file mode 100644
index c845c4d..0000000
--- a/docs/JobLeverageStatsProjects.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# JobLeverageStatsProjects
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | The Project ID. | [optional]
-**source_words** | **int** | Total number of source words. | [optional]
-**exact_words** | **int** | Total number of exact words. | [optional]
-**fuzzy_words** | **int** | Total number of fuzzy words. | [optional]
-**new_words** | **int** | Total number of fuzzy words. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/LanguagePair.md b/docs/LanguagePair.md
index 3c439a2..a66f8e6 100644
--- a/docs/LanguagePair.md
+++ b/docs/LanguagePair.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
**trg_locale** | **str** | A locale identifier, supported for target language. | [optional]
**due_date** | **str** | An ISO date. | [optional]
**memory_id** | **int** | A unique number identifying the associated Memory. |
-**external_model_id** | **int** | A unique identifier for working with a third party model in the Lilt Platform | [optional]
+**external_model_id** | **int** | An optional parameter to specify a third-party model ID to use for translation. This allows you to use external MT providers instead of Lilt's built-in MT system. | [optional]
**pretranslate** | **bool** | Attribute translation authorship of exact matches to the creator of the document being pretranslated. | [optional]
**auto_accept** | **bool** | Accept and lock exact matches. | [optional]
**case_sensitive** | **bool** | Use case sensitive translation memory matching. | [optional]
diff --git a/docs/LexiconApi.md b/docs/LexiconApi.md
deleted file mode 100644
index 39c8f69..0000000
--- a/docs/LexiconApi.md
+++ /dev/null
@@ -1,286 +0,0 @@
-# lilt.LexiconApi
-
-All URIs are relative to *https://lilt.com/2*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**query_lexicon**](LexiconApi.md#query_lexicon) | **GET** /lexicon | Query a Lexicon
-[**update_lexicon**](LexiconApi.md#update_lexicon) | **POST** /lexicon | Update a Lexicon
-
-
-# **query_lexicon**
-> list[LexiconEntry] query_lexicon(memory_id, srclang, trglang, query, n=n)
-
-Query a Lexicon
-
-Query the Lexicon. The Lexicon is an editable termbase / concordance that is integrated with the Memory.
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.LexiconApi(api_client)
- memory_id = 56 # int | A unique Memory identifier.
-srclang = 'srclang_example' # str | An ISO 639-1 language code.
-trglang = 'trglang_example' # str | An ISO 639-1 language code.
-query = 'query_example' # str | The query term.
-n = 1 # int | The maximum number of results to return. (optional) (default to 1)
-
- try:
- # Query a Lexicon
- api_response = api_instance.query_lexicon(memory_id, srclang, trglang, query, n=n)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling LexiconApi->query_lexicon: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.LexiconApi(api_client)
- memory_id = 56 # int | A unique Memory identifier.
-srclang = 'srclang_example' # str | An ISO 639-1 language code.
-trglang = 'trglang_example' # str | An ISO 639-1 language code.
-query = 'query_example' # str | The query term.
-n = 1 # int | The maximum number of results to return. (optional) (default to 1)
-
- try:
- # Query a Lexicon
- api_response = api_instance.query_lexicon(memory_id, srclang, trglang, query, n=n)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling LexiconApi->query_lexicon: %s\n" % e)
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **memory_id** | **int**| A unique Memory identifier. |
- **srclang** | **str**| An ISO 639-1 language code. |
- **trglang** | **str**| An ISO 639-1 language code. |
- **query** | **str**| The query term. |
- **n** | **int**| The maximum number of results to return. | [optional] [default to 1]
-
-### Return type
-
-[**list[LexiconEntry]**](LexiconEntry.md)
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | A list of LexiconEntry objects. | - |
-**0** | Unexpected error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **update_lexicon**
-> LexiconUpdateResponse update_lexicon(body)
-
-Update a Lexicon
-
-Update the Lexicon (Termbase as displayed in the ui) with a new term. The maximum source length is 250 characters.
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.LexiconApi(api_client)
- body = lilt.LexiconUpdateParameters() # LexiconUpdateParameters |
-
- try:
- # Update a Lexicon
- api_response = api_instance.update_lexicon(body)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling LexiconApi->update_lexicon: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.LexiconApi(api_client)
- body = lilt.LexiconUpdateParameters() # LexiconUpdateParameters |
-
- try:
- # Update a Lexicon
- api_response = api_instance.update_lexicon(body)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling LexiconApi->update_lexicon: %s\n" % e)
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**LexiconUpdateParameters**](LexiconUpdateParameters.md)| |
-
-### Return type
-
-[**LexiconUpdateResponse**](LexiconUpdateResponse.md)
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | A status object. | - |
-**0** | Unexpected error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
diff --git a/docs/LexiconEntry.md b/docs/LexiconEntry.md
deleted file mode 100644
index c6ced97..0000000
--- a/docs/LexiconEntry.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# LexiconEntry
-
-An Lexicon entry for a source term or phrase.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**translations** | [**list[LexiconEntryTranslations]**](LexiconEntryTranslations.md) | A list of translations for the query term. | [optional]
-**examples** | [**list[LexiconEntryExamples]**](LexiconEntryExamples.md) | A list of concordance examples for the query term. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/LexiconEntryExamples.md b/docs/LexiconEntryExamples.md
deleted file mode 100644
index 71188fb..0000000
--- a/docs/LexiconEntryExamples.md
+++ /dev/null
@@ -1,17 +0,0 @@
-# LexiconEntryExamples
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**source** | **str** | The source string. | [optional]
-**source_delimiters** | **list[str]** | A format string that indicates, for each word, if the source word should be preceded by a space. | [optional]
-**target** | **str** | The target string | [optional]
-**target_delimiters** | **list[str]** | A format string that indicates, for each word, if the target word should be preceded by a space. | [optional]
-**source_span** | [**LexiconEntrySourceSpan**](LexiconEntrySourceSpan.md) | | [optional]
-**target_span** | [**LexiconEntryTargetSpan**](LexiconEntryTargetSpan.md) | | [optional]
-**similarity** | **float** | | [optional]
-**memory_id** | **float** | A unique Memory identifier. If this identifier is missing, then the term comes from the generic concordance. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/LexiconEntrySourceSpan.md b/docs/LexiconEntrySourceSpan.md
deleted file mode 100644
index 12ba901..0000000
--- a/docs/LexiconEntrySourceSpan.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# LexiconEntrySourceSpan
-
-An object that indicates where the query term appears in the source.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**start** | **float** | The zero-indexed start index when `source` is split on whitespace. | [optional]
-**length** | **float** | The length in words after `start` of the source query term. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/LexiconEntryTargetSpan.md b/docs/LexiconEntryTargetSpan.md
deleted file mode 100644
index 4614b43..0000000
--- a/docs/LexiconEntryTargetSpan.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# LexiconEntryTargetSpan
-
-An object that indicates the location in the target of contiguous words that align with the source query.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**start** | **float** | The zero-indexed start index when `target` is split on whitespace. | [optional]
-**length** | **float** | The length in words after `start` of the target aligned phrase. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/LexiconEntryTranslations.md b/docs/LexiconEntryTranslations.md
deleted file mode 100644
index e827bc0..0000000
--- a/docs/LexiconEntryTranslations.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# LexiconEntryTranslations
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**source** | **str** | The source string. | [optional]
-**target** | **str** | The target string. | [optional]
-**frequency** | **float** | The frequency of the term in the Lexicon. | [optional]
-**memory_id** | **float** | A unique Memory identifier. If this identifier is missing, then the term comes from the generic termbase. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/LexiconUpdateParameters.md b/docs/LexiconUpdateParameters.md
deleted file mode 100644
index 555416a..0000000
--- a/docs/LexiconUpdateParameters.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# LexiconUpdateParameters
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**memory_id** | **int** | A unique Memory identifier. |
-**source** | **str** | The source side of the lexicon entry. |
-**target** | **str** | The target side of the lexicon entry. |
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/LexiconUpdateResponse.md b/docs/LexiconUpdateResponse.md
deleted file mode 100644
index ebdcff6..0000000
--- a/docs/LexiconUpdateResponse.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# LexiconUpdateResponse
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**memory_id** | **int** | A unique Memory identifier. | [optional]
-**success** | **bool** | If the operation succeeded, then `true`. Otherwise, `false`. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/MatchBand.md b/docs/MatchBand.md
deleted file mode 100644
index 60322f4..0000000
--- a/docs/MatchBand.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# MatchBand
-
-A translation memory match band.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**minimum_score** | **int** | The minimum fuzzy match score. | [optional]
-**maximum_score** | **int** | The maximum fuzzy match score. | [optional]
-**num_source_words** | **int** | The number of source words in the band. | [optional]
-**num_segments** | **int** | The number of source segments in the band. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/MemoriesApi.md b/docs/MemoriesApi.md
index 2ebb21e..2ad7538 100644
--- a/docs/MemoriesApi.md
+++ b/docs/MemoriesApi.md
@@ -27,7 +27,7 @@ update the lexicon. Memories are private to your account - the data is
not shared across users - unless you explicitly share a Memory with your
team (via web app only).
-Refer
+Refer
to our KB for a more detailed description.
@@ -587,7 +587,7 @@ Name | Type | Description | Notes
File import for a Memory
-Imports common translation memory or termbase file formats to a specific Lilt memory. Currently supported file formats are `*.tmx`, `*.sdltm`, `*.sdlxliff`(With custom Filters), '*.xliff', and `*.tmq` for TM data; `*.csv` and `*.tbx` for termbase data. Request parameters should be passed as JSON object with the header field `LILT-API`.
+Imports common translation memory or termbase file formats to a specific LILT memory. Currently supported file formats are `*.tmx`, `*.sdltm`, `*.sdlxliff`(With custom Filters), '*.xliff', and `*.tmq` for TM data; `*.csv` and `*.tbx` for termbase data. Request parameters should be passed as JSON object with the header field `LILT-API`.
Example CURL command to upload a translation memory file named `my_memory.sdltm` in the current working directory:
```bash
diff --git a/docs/Memory.md b/docs/Memory.md
index c86aebd..75e5d4c 100644
--- a/docs/Memory.md
+++ b/docs/Memory.md
@@ -1,6 +1,6 @@
# Memory
-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.
+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 API.
## Properties
diff --git a/docs/MemoryInsertResponse.md b/docs/MemoryInsertResponse.md
deleted file mode 100644
index 26ba773..0000000
--- a/docs/MemoryInsertResponse.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# MemoryInsertResponse
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | A unique Memory identifier. | [optional]
-**num_updates** | **int** | The number of updates to the Memory. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/MemoryParameters.md b/docs/MemoryParameters.md
deleted file mode 100644
index 146c867..0000000
--- a/docs/MemoryParameters.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# MemoryParameters
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**name** | **str** | A name for the Memory. |
-**srclang** | **str** | An ISO 639-1 language identifier. |
-**trglang** | **str** | An ISO 639-1 language identifier. |
-**srclocale** | **str** | An ISO 3166-1 region name for language locales | [optional]
-**trglocale** | **str** | An ISO 3166-1 region name for language locales | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/MemoryUpdateResponse.md b/docs/MemoryUpdateResponse.md
deleted file mode 100644
index 808fb4f..0000000
--- a/docs/MemoryUpdateResponse.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# MemoryUpdateResponse
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | A unique Memory identifier. | [optional]
-**num_updates** | **int** | The number of updates to the Memory. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/NextWorkflowTask.md b/docs/NextWorkflowTask.md
deleted file mode 100644
index eb70d6c..0000000
--- a/docs/NextWorkflowTask.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# NextWorkflowTask
-
-Information about a document workflow task after it has moved a stage.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**status** | **str** | Identifier of the current workflow task. |
-**new_task_id** | **int** | The identifier of the workflow task that is now currently active. | [optional]
-**new_stage_name** | **str** | The name of the workflow task that is now currently active. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ProjectCreateParameters.md b/docs/ProjectCreateParameters.md
index 1189852..6b51505 100644
--- a/docs/ProjectCreateParameters.md
+++ b/docs/ProjectCreateParameters.md
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
**workflow_template_id** | **int** | The workflow template used to create this project. WorkflowTemplateIds can be retrieved via the /workflows/templates endpoint. If not specified then the organization default workflowTemplateId will be used. | [optional]
**workflow_template_name** | **str** | Name of the workflow for the project, if a workflowTemplateId is passed, this field will be ignored. | [optional]
**llm_provider** | **str** | The LLM provider to use for the project. Defaults to \"neural\". | [optional]
-**external_model_id** | **int** | External model ID, if any. Must match the chosen llm_provider. | [optional]
+**external_model_id** | **int** | An optional parameter to specify a third-party model ID to use for translation. This allows you to use external MT providers instead of Lilt's built-in MT system. Must match the chosen llm_provider. | [optional]
**is_plural** | **bool** | Whether the documents in this project contain ICU plural forms. | [optional]
**require_batch_qa_translator** | **bool** | Whether to require batch QA from the translator side. | [optional]
**enable_prompt_labeling** | **bool** | Whether to enable prompt labeling for the project. | [optional]
diff --git a/docs/ProjectParameters.md b/docs/ProjectParameters.md
deleted file mode 100644
index 942c416..0000000
--- a/docs/ProjectParameters.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# ProjectParameters
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**name** | **str** | A name for the Project. |
-**memory_id** | **int** | The Memory to associate with this new Project. |
-**file_ids** | **list[int]** | A list of Files to add to this new Project. | [optional]
-**due_date** | **int** | The due date. Measured in seconds since the Unix epoch. | [optional]
-**metadata** | [**object**](.md) | Metadata associated with a project. This field must be valid JSON. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ProjectQuote.md b/docs/ProjectQuote.md
deleted file mode 100644
index 3f0cfa0..0000000
--- a/docs/ProjectQuote.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# ProjectQuote
-
-Quoting information for a Project.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | A unique Project identifier. | [optional]
-**num_source_words** | **int** | The number of source words in the Project. | [optional]
-**num_words_new** | **int** | The number of new source words in the Project. | [optional]
-**num_segments_new** | **int** | The number of new segments in the Project. | [optional]
-**num_words_repetition** | **int** | The number of repetition source words in the Project. | [optional]
-**num_segments_repetition** | **int** | The number of repetition segments in the Project. | [optional]
-**bands** | [**list[MatchBand]**](MatchBand.md) | A list of MatchBand objects that represent translation memory leverage statistics. | [optional]
-**documents** | [**list[DocumentQuote]**](DocumentQuote.md) | A list of DocumentQuote objects that quotes information for a Document. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ProjectStatus.md b/docs/ProjectStatus.md
deleted file mode 100644
index 1ebfdb1..0000000
--- a/docs/ProjectStatus.md
+++ /dev/null
@@ -1,20 +0,0 @@
-# ProjectStatus
-
-The status of a Project.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | A unique Project identifier. | [optional]
-**num_source_words** | **int** | The number of source words in the Project. | [optional]
-**num_words_confirmed** | **int** | The number of confirmed source words. | [optional]
-**num_words_reviewed** | **int** | The number of reviewed source words. | [optional]
-**time_elapsed** | **int** | The total time spent on the project by all resources. Measured in milliseconds. | [optional]
-**time_elapsed_translation** | **int** | The total time spent on translation by all resources. Measured in milliseconds. | [optional]
-**time_elapsed_research** | **int** | The total time spent on research by all resources. Measured in milliseconds. | [optional]
-**time_elapsed_review** | **int** | The total time spent on reviewing by all resources. Measured in milliseconds. | [optional]
-**updated_at** | **int** | The project update date and time. Measured in seconds. | [optional]
-**resources** | [**list[ResourceStatus]**](ResourceStatus.md) | A list of ResourceStatus objects that represent per-resource statistics. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ProjectUpdateResponse.md b/docs/ProjectUpdateResponse.md
deleted file mode 100644
index 184f10c..0000000
--- a/docs/ProjectUpdateResponse.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# ProjectUpdateResponse
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**name** | **str** | The Project name. | [optional]
-**state** | **str** | The project's state. The possible states are 'backlog', 'inProgress', 'inReview', 'inQA', and 'done' | [optional]
-**due_date** | **int** | The due date. Measured in seconds since the Unix epoch. | [optional]
-**archived** | **bool** | True if the project is archived. Otherwise, false. | [optional]
-**metadata** | [**object**](.md) | Metadata associated with a project. This field must be valid JSON. | [optional]
-**sample_review_percentage** | **int** | The Project's sample review percentage. Must be an integer between 10 and 100, a multiple of 10 and greater than minimum value (displayed in error message). | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ProjectsToDeliver.md b/docs/ProjectsToDeliver.md
deleted file mode 100644
index 4839cb9..0000000
--- a/docs/ProjectsToDeliver.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# ProjectsToDeliver
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**project_ids** | **list[int]** | |
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ProjectsToUpdate.md b/docs/ProjectsToUpdate.md
deleted file mode 100644
index 0bc33b4..0000000
--- a/docs/ProjectsToUpdate.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# ProjectsToUpdate
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**project_ids** | **list[int]** | |
-**project** | [**ProjectUpdateResponse**](ProjectUpdateResponse.md) | |
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/QAApi.md b/docs/QAApi.md
deleted file mode 100644
index a66c6d5..0000000
--- a/docs/QAApi.md
+++ /dev/null
@@ -1,153 +0,0 @@
-# lilt.QAApi
-
-All URIs are relative to *https://lilt.com/2*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**qa_check**](QAApi.md#qa_check) | **GET** /qa | Perform QA check
-
-
-# **qa_check**
-> QARuleMatches qa_check(target, trglang, source=source, srclang=srclang, memory_id=memory_id)
-
-Perform QA check
-
-Perform QA checks on a target string. Optionally, you can specify a source string for additional bilingual checks, e.g. number consistency.
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.QAApi(api_client)
- target = 'target_example' # str | A target string to be checked.
-trglang = 'trglang_example' # str | An ISO 639-1 language code.
-source = 'source_example' # str | An optional source string. (optional)
-srclang = 'srclang_example' # str | An ISO 639-1 language code. (optional)
-memory_id = 56 # int | Any custom rules defined for this Memory will also be applied as part of the QA check. (optional)
-
- try:
- # Perform QA check
- api_response = api_instance.qa_check(target, trglang, source=source, srclang=srclang, memory_id=memory_id)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling QAApi->qa_check: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.QAApi(api_client)
- target = 'target_example' # str | A target string to be checked.
-trglang = 'trglang_example' # str | An ISO 639-1 language code.
-source = 'source_example' # str | An optional source string. (optional)
-srclang = 'srclang_example' # str | An ISO 639-1 language code. (optional)
-memory_id = 56 # int | Any custom rules defined for this Memory will also be applied as part of the QA check. (optional)
-
- try:
- # Perform QA check
- api_response = api_instance.qa_check(target, trglang, source=source, srclang=srclang, memory_id=memory_id)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling QAApi->qa_check: %s\n" % e)
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **target** | **str**| A target string to be checked. |
- **trglang** | **str**| An ISO 639-1 language code. |
- **source** | **str**| An optional source string. | [optional]
- **srclang** | **str**| An ISO 639-1 language code. | [optional]
- **memory_id** | **int**| Any custom rules defined for this Memory will also be applied as part of the QA check. | [optional]
-
-### Return type
-
-[**QARuleMatches**](QARuleMatches.md)
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | A QARuleMatches object. | - |
-**0** | Unexpected error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
diff --git a/docs/QARuleMatches.md b/docs/QARuleMatches.md
deleted file mode 100644
index b9524a8..0000000
--- a/docs/QARuleMatches.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# QARuleMatches
-
-QA rules describing the errors in the text.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**matches** | [**list[QARuleMatchesMatches]**](QARuleMatchesMatches.md) | | [optional]
-**custom_rules** | [**list[QARuleMatchesCustomRules]**](QARuleMatchesCustomRules.md) | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/QARuleMatchesContext.md b/docs/QARuleMatchesContext.md
deleted file mode 100644
index f06e433..0000000
--- a/docs/QARuleMatchesContext.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# QARuleMatchesContext
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**length** | **int** | The length of the error in characters in the context. |
-**offset** | **int** | The 0-based character offset of the error in the context text. |
-**text** | **str** | Context of the error, i.e. the error and some text to the left and to the left. |
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/QARuleMatchesCustomRules.md b/docs/QARuleMatchesCustomRules.md
deleted file mode 100644
index 161a042..0000000
--- a/docs/QARuleMatchesCustomRules.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# QARuleMatchesCustomRules
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**description** | **str** | A QA warning defined by a custom rule. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/QARuleMatchesMatches.md b/docs/QARuleMatchesMatches.md
deleted file mode 100644
index 267390a..0000000
--- a/docs/QARuleMatchesMatches.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# QARuleMatchesMatches
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**context** | [**QARuleMatchesContext**](QARuleMatchesContext.md) | |
-**length** | **int** | The length of the error in characters. |
-**message** | **str** | Message about the error displayed to the user. |
-**offset** | **int** | The 0-based character offset of the error in the text. |
-**replacements** | [**list[QARuleMatchesReplacements]**](QARuleMatchesReplacements.md) | Replacements that might correct the error. The array can be empty, in this case there is no suggested replacement. |
-**rule** | [**QARuleMatchesRule**](QARuleMatchesRule.md) | | [optional]
-**short_message** | **str** | An optional shorter version of 'message'. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/QARuleMatchesReplacements.md b/docs/QARuleMatchesReplacements.md
deleted file mode 100644
index 4e9e4d5..0000000
--- a/docs/QARuleMatchesReplacements.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# QARuleMatchesReplacements
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**value** | **str** | the replacement string | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/QARuleMatchesRule.md b/docs/QARuleMatchesRule.md
deleted file mode 100644
index 53bad03..0000000
--- a/docs/QARuleMatchesRule.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# QARuleMatchesRule
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**category** | [**QARuleMatchesRuleCategory**](QARuleMatchesRuleCategory.md) | |
-**description** | **str** | |
-**id** | **str** | An rule's identifier that's unique for this language. |
-**issue_type** | **str** | The Localization Quality Issue Type. This is not defined for all languages, in which case it will always be 'Uncategorized'. | [optional]
-**sub_id** | **str** | An optional sub identifier of the rule, used when several rules are grouped. | [optional]
-**urls** | [**list[QARuleMatchesRuleUrls]**](QARuleMatchesRuleUrls.md) | An optional array of URLs with a more detailed description of the error. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/QARuleMatchesRuleCategory.md b/docs/QARuleMatchesRuleCategory.md
deleted file mode 100644
index 7aff152..0000000
--- a/docs/QARuleMatchesRuleCategory.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# QARuleMatchesRuleCategory
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **str** | A category's identifier that's unique for this language. | [optional]
-**name** | **str** | A short description of the category. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/QARuleMatchesRuleUrls.md b/docs/QARuleMatchesRuleUrls.md
deleted file mode 100644
index 921e75a..0000000
--- a/docs/QARuleMatchesRuleUrls.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# QARuleMatchesRuleUrls
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**value** | **str** | the URL | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ResourceStatus.md b/docs/ResourceStatus.md
deleted file mode 100644
index 367a5fe..0000000
--- a/docs/ResourceStatus.md
+++ /dev/null
@@ -1,23 +0,0 @@
-# ResourceStatus
-
-The status of a resource working on a Project.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**email** | **str** | An email address. | [optional]
-**name** | **str** | The full name. | [optional]
-**num_words_confirmed** | **int** | The number of source words confirmed. | [optional]
-**num_words_new** | **int** | The number of new source words confirmed. | [optional]
-**num_words_fuzzy** | **int** | The number of fuzzy match source words confirmed. | [optional]
-**num_words_exact** | **int** | The number of exact match source words confirmed. | [optional]
-**num_words_reviewed** | **int** | The number of source words reviewed. | [optional]
-**time_elapsed** | **int** | The total time spent on translation and research. Measured in milliseconds. | [optional]
-**time_elapsed_translation** | **int** | The total time spent translating. Measured in milliseconds. | [optional]
-**time_elapsed_research** | **int** | The total time spent on research. Measured in milliseconds. | [optional]
-**time_elapsed_review** | **int** | The total time spent reviewing. Measured in milliseconds. | [optional]
-**num_segments_confirmed** | **int** | The number of source segments confirmed. | [optional]
-**num_segments_reviewed** | **int** | The number of source segments reviewed. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ReviewCompletionTypeError.md b/docs/ReviewCompletionTypeError.md
deleted file mode 100644
index 70b2dff..0000000
--- a/docs/ReviewCompletionTypeError.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# ReviewCompletionTypeError
-
-Response in the event of a malformed error.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**message** | [**object**](.md) | A human-readable message describing the error. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/RootApi.md b/docs/RootApi.md
deleted file mode 100644
index 8427f50..0000000
--- a/docs/RootApi.md
+++ /dev/null
@@ -1,136 +0,0 @@
-# lilt.RootApi
-
-All URIs are relative to *https://lilt.com/2*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**root**](RootApi.md#root) | **GET** / | Retrieve the REST API root
-
-
-# **root**
-> ApiRoot root()
-
-Retrieve the REST API root
-
-This resource does not have any attributes. It lists the name of the REST API. This endpoint can be used to verify REST API keys and to check the availability of the REST API.
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.RootApi(api_client)
-
- try:
- # Retrieve the REST API root
- api_response = api_instance.root()
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling RootApi->root: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.RootApi(api_client)
-
- try:
- # Retrieve the REST API root
- api_response = api_instance.root()
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling RootApi->root: %s\n" % e)
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-### Return type
-
-[**ApiRoot**](ApiRoot.md)
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | A status object. | - |
-**0** | Unexpected error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
diff --git a/docs/SegmentCreateParameters.md b/docs/SegmentCreateParameters.md
index eb04f6a..6e143d1 100644
--- a/docs/SegmentCreateParameters.md
+++ b/docs/SegmentCreateParameters.md
@@ -1,13 +1,34 @@
# SegmentCreateParameters
+
## Properties
+
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**memory_id** | **int** | A unique Memory identifier. | [optional]
**document_id** | **int** | A unique Document identifier. | [optional]
**source** | **str** | The source string. |
**target** | **str** | The target string. | [optional]
+**should_apply_segmentation** | **bool** | A flag for whether this segment should be broken down into smaller segments. If this is true then the response is an array of segments. | [optional]
+**src_lang** | **str** | A two letter language code for the source language. Required if `shouldApplySegmentation` is enabled. | [optional]
+
+## Example
+
+```python
+from lilt.models.segment_create_parameters import SegmentCreateParameters
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of SegmentCreateParameters from a JSON string
+segment_create_parameters_instance = SegmentCreateParameters.from_json(json)
+# print the JSON string representation of the object
+print(SegmentCreateParameters.to_json())
+# convert the object into a dict
+segment_create_parameters_dict = segment_create_parameters_instance.to_dict()
+# create an instance of SegmentCreateParameters from a dict
+segment_create_parameters_from_dict = SegmentCreateParameters.from_dict(segment_create_parameters_dict)
+```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/SegmentDeleteResponse.md b/docs/SegmentDeleteResponse.md
index 8fec1a0..f5f28cd 100644
--- a/docs/SegmentDeleteResponse.md
+++ b/docs/SegmentDeleteResponse.md
@@ -1,11 +1,30 @@
# SegmentDeleteResponse
+
## Properties
+
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | A unique Segment identifier. | [optional]
**deleted** | **bool** | If the operation succeeded, then `true`. Otherwise, `false`. | [optional]
+## Example
+
+```python
+from lilt.models.segment_delete_response import SegmentDeleteResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of SegmentDeleteResponse from a JSON string
+segment_delete_response_instance = SegmentDeleteResponse.from_json(json)
+# print the JSON string representation of the object
+print(SegmentDeleteResponse.to_json())
+
+# convert the object into a dict
+segment_delete_response_dict = segment_delete_response_instance.to_dict()
+# create an instance of SegmentDeleteResponse from a dict
+segment_delete_response_from_dict = SegmentDeleteResponse.from_dict(segment_delete_response_dict)
+```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/SegmentDoneResponse.md b/docs/SegmentDoneResponse.md
index a45e731..2e04239 100644
--- a/docs/SegmentDoneResponse.md
+++ b/docs/SegmentDoneResponse.md
@@ -1,10 +1,29 @@
# SegmentDoneResponse
+
## Properties
+
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**document_ids** | **list[float]** | array of segment ids |
+**document_ids** | **List[float]** | array of segment ids |
+
+## Example
+
+```python
+from lilt.models.segment_done_response import SegmentDoneResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of SegmentDoneResponse from a JSON string
+segment_done_response_instance = SegmentDoneResponse.from_json(json)
+# print the JSON string representation of the object
+print(SegmentDoneResponse.to_json())
+# convert the object into a dict
+segment_done_response_dict = segment_done_response_instance.to_dict()
+# create an instance of SegmentDoneResponse from a dict
+segment_done_response_from_dict = SegmentDoneResponse.from_dict(segment_done_response_dict)
+```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/SegmentParameters.md b/docs/SegmentParameters.md
deleted file mode 100644
index b8840f4..0000000
--- a/docs/SegmentParameters.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# SegmentParameters
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**memory_id** | **int** | A unique Memory identifier. | [optional]
-**document_id** | **int** | A unique Document identifier. | [optional]
-**source** | **str** | The source string. |
-**target** | **str** | The target string. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/SegmentUpdateParameters.md b/docs/SegmentUpdateParameters.md
index 0f691f0..673b6fc 100644
--- a/docs/SegmentUpdateParameters.md
+++ b/docs/SegmentUpdateParameters.md
@@ -1,11 +1,30 @@
# SegmentUpdateParameters
+
## Properties
+
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | A unique Segment identifier. |
**target** | **str** | The target string. |
+## Example
+
+```python
+from lilt.models.segment_update_parameters import SegmentUpdateParameters
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of SegmentUpdateParameters from a JSON string
+segment_update_parameters_instance = SegmentUpdateParameters.from_json(json)
+# print the JSON string representation of the object
+print(SegmentUpdateParameters.to_json())
+
+# convert the object into a dict
+segment_update_parameters_dict = segment_update_parameters_instance.to_dict()
+# create an instance of SegmentUpdateParameters from a dict
+segment_update_parameters_from_dict = SegmentUpdateParameters.from_dict(segment_update_parameters_dict)
+```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/SegmentWithComments.md b/docs/SegmentWithComments.md
deleted file mode 100644
index e45250d..0000000
--- a/docs/SegmentWithComments.md
+++ /dev/null
@@ -1,22 +0,0 @@
-# SegmentWithComments
-
-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.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | A unique number identifying the Segment. | [optional]
-**created_at** | **int** | Time at which the object was created. Measured in seconds since the Unix epoch. | [optional]
-**updated_at** | **int** | Time at which the object was created. Measured in seconds since the Unix epoch. | [optional]
-**document_id** | **int** | A unique Document identifier. | [optional]
-**memory_id** | **int** | The Memory with which this Segment is associated. | [optional]
-**source** | **str** | The source string. | [optional]
-**srclang** | **str** | An ISO 639-1 language code. | [optional]
-**target** | **str** | The target string. | [optional]
-**trglang** | **str** | An ISO 639-1 language code. | [optional]
-**is_confirmed** | **bool** | The confirmation status. | [optional]
-**is_reviewed** | **bool** | The review status. | [optional]
-**comments** | [**list[Comment]**](Comment.md) | A list of Comments. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/SegmentsApi.md b/docs/SegmentsApi.md
index aec6a25..78954e7 100644
--- a/docs/SegmentsApi.md
+++ b/docs/SegmentsApi.md
@@ -1,37 +1,46 @@
# lilt.SegmentsApi
-All URIs are relative to *https://lilt.com/2*
+All URIs are relative to *https://api.lilt.com*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**create_segment**](SegmentsApi.md#create_segment) | **POST** /segments | Create a Segment
-[**delete_segment**](SegmentsApi.md#delete_segment) | **DELETE** /segments | Delete a Segment
-[**get_segment**](SegmentsApi.md#get_segment) | **GET** /segments | Retrieve a Segment
+[**create_segment**](SegmentsApi.md#create_segment) | **POST** /v2/segments | Create a Segment
+[**delete_segment**](SegmentsApi.md#delete_segment) | **DELETE** /v2/segments | Delete a Segment
+[**get_segment**](SegmentsApi.md#get_segment) | **GET** /v2/segments | Retrieve a Segment
[**tag_segment**](SegmentsApi.md#tag_segment) | **GET** /segments/tag | Tag a Segment
[**unlock_segments**](SegmentsApi.md#unlock_segments) | **POST** /segments/review/unlock | Unaccept and unlock segments
-[**update_segment**](SegmentsApi.md#update_segment) | **PUT** /segments | Update a Segment
+[**update_segment**](SegmentsApi.md#update_segment) | **PUT** /v2/segments | Update a Segment
# **create_segment**
-> Segment create_segment(body)
+> Segment create_segment(segment_create_parameters)
Create a Segment
-Create a Segment and add it to a Memory. A Segment is a source/target pair that is used to train the machine translation system and populate the translation memory. This is not intended to be used on documents and will throw an error. The maximum source length is 5,000 characters.
+Create a Segment and add it to a Memory or a Document. A Segment is a source/target
+pair that is used to train the machine translation system and populate
+the translation memory.
+
+The maximum source length is 5,000 characters.
+
+
### Example
+* Basic Authentication (BasicAuth):
* Api Key Authentication (ApiKeyAuth):
+
```python
-from __future__ import print_function
-import time
import lilt
+from lilt.models.segment import Segment
+from lilt.models.segment_create_parameters import SegmentCreateParameters
from lilt.rest import ApiException
from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
+
+# Defining the host is optional and defaults to https://api.lilt.com
# See configuration.py for a list of all supported configuration parameters.
configuration = lilt.Configuration(
- host = "https://lilt.com/2"
+ host = "https://api.lilt.com"
)
# The client must configure the authentication and authorization parameters
@@ -39,89 +48,41 @@ configuration = lilt.Configuration(
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
# Configure HTTP basic authorization: BasicAuth
configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.SegmentsApi(api_client)
- body = lilt.SegmentCreateParameters() # SegmentCreateParameters |
-
- try:
- # Create a Segment
- api_response = api_instance.create_segment(body)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling SegmentsApi->create_segment: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
+ username = os.environ["USERNAME"],
+ password = os.environ["PASSWORD"]
)
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
+configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with lilt.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = lilt.SegmentsApi(api_client)
- body = lilt.SegmentCreateParameters() # SegmentCreateParameters |
+ segment_create_parameters = lilt.SegmentCreateParameters() # SegmentCreateParameters | The Segment resource to create. To add a Segment to a Memory, include the `memory_id` and `target` parameters. To add a Segment to a Document, include the `document_id` and the `source` parameters. The `target` parameter is optional.
try:
# Create a Segment
- api_response = api_instance.create_segment(body)
+ api_response = api_instance.create_segment(segment_create_parameters)
+ print("The response of SegmentsApi->create_segment:\n")
pprint(api_response)
- except ApiException as e:
+ except Exception as e:
print("Exception when calling SegmentsApi->create_segment: %s\n" % e)
```
+
+
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**SegmentCreateParameters**](SegmentCreateParameters.md)| |
+ **segment_create_parameters** | [**SegmentCreateParameters**](SegmentCreateParameters.md)| The Segment resource to create. To add a Segment to a Memory, include the `memory_id` and `target` parameters. To add a Segment to a Document, include the `document_id` and the `source` parameters. The `target` parameter is optional. |
### Return type
@@ -129,7 +90,7 @@ Name | Type | Description | Notes
### Authorization
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
+[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
@@ -137,6 +98,7 @@ Name | Type | Description | Notes
- **Accept**: application/json
### HTTP response details
+
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | A Segment object. | - |
@@ -149,21 +111,24 @@ Name | Type | Description | Notes
Delete a Segment
-Delete a Segment from memory. This will not delete a segment from a document.
+Delete a Segment from memory. This will not delete a segment from a document.
+
### Example
+* Basic Authentication (BasicAuth):
* Api Key Authentication (ApiKeyAuth):
+
```python
-from __future__ import print_function
-import time
import lilt
+from lilt.models.segment_delete_response import SegmentDeleteResponse
from lilt.rest import ApiException
from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
+
+# Defining the host is optional and defaults to https://api.lilt.com
# See configuration.py for a list of all supported configuration parameters.
configuration = lilt.Configuration(
- host = "https://lilt.com/2"
+ host = "https://api.lilt.com"
)
# The client must configure the authentication and authorization parameters
@@ -171,69 +136,17 @@ configuration = lilt.Configuration(
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
# Configure HTTP basic authorization: BasicAuth
configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
+ username = os.environ["USERNAME"],
+ password = os.environ["PASSWORD"]
)
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.SegmentsApi(api_client)
- id = 56 # int | A unique Segment identifier.
-
- try:
- # Delete a Segment
- api_response = api_instance.delete_segment(id)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling SegmentsApi->delete_segment: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
+configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with lilt.ApiClient(configuration) as api_client:
@@ -244,13 +157,17 @@ with lilt.ApiClient(configuration) as api_client:
try:
# Delete a Segment
api_response = api_instance.delete_segment(id)
+ print("The response of SegmentsApi->delete_segment:\n")
pprint(api_response)
- except ApiException as e:
+ except Exception as e:
print("Exception when calling SegmentsApi->delete_segment: %s\n" % e)
```
+
+
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **int**| A unique Segment identifier. |
@@ -261,7 +178,7 @@ Name | Type | Description | Notes
### Authorization
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
+[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
@@ -269,6 +186,7 @@ Name | Type | Description | Notes
- **Accept**: application/json
### HTTP response details
+
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | A status object. | - |
@@ -277,25 +195,29 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **get_segment**
-> SegmentWithComments get_segment(id, include_comments=include_comments)
+> Segment get_segment(id, include_comments=include_comments)
Retrieve a Segment
-Retrieve a Segment.
+Retrieve a Segment.
+
+
### Example
+* Basic Authentication (BasicAuth):
* Api Key Authentication (ApiKeyAuth):
+
```python
-from __future__ import print_function
-import time
import lilt
+from lilt.models.segment import Segment
from lilt.rest import ApiException
from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
+
+# Defining the host is optional and defaults to https://api.lilt.com
# See configuration.py for a list of all supported configuration parameters.
configuration = lilt.Configuration(
- host = "https://lilt.com/2"
+ host = "https://api.lilt.com"
)
# The client must configure the authentication and authorization parameters
@@ -303,88 +225,39 @@ configuration = lilt.Configuration(
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
# Configure HTTP basic authorization: BasicAuth
configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
+ username = os.environ["USERNAME"],
+ password = os.environ["PASSWORD"]
)
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.SegmentsApi(api_client)
- id = 56 # int | A unique Segment identifier.
-include_comments = False # bool | Include comments in the response. (optional) (default to False)
-
- try:
- # Retrieve a Segment
- api_response = api_instance.get_segment(id, include_comments=include_comments)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling SegmentsApi->get_segment: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
+configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with lilt.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = lilt.SegmentsApi(api_client)
id = 56 # int | A unique Segment identifier.
-include_comments = False # bool | Include comments in the response. (optional) (default to False)
+ include_comments = False # bool | Include comments in the response. (optional) (default to False)
try:
# Retrieve a Segment
api_response = api_instance.get_segment(id, include_comments=include_comments)
+ print("The response of SegmentsApi->get_segment:\n")
pprint(api_response)
- except ApiException as e:
+ except Exception as e:
print("Exception when calling SegmentsApi->get_segment: %s\n" % e)
```
+
+
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **int**| A unique Segment identifier. |
@@ -392,11 +265,11 @@ Name | Type | Description | Notes
### Return type
-[**SegmentWithComments**](SegmentWithComments.md)
+[**Segment**](Segment.md)
### Authorization
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
+[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
@@ -404,6 +277,7 @@ Name | Type | Description | Notes
- **Accept**: application/json
### HTTP response details
+
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | A Segment object. | - |
@@ -416,21 +290,29 @@ Name | Type | Description | Notes
Tag a Segment
-Project tags for a segment. The `source_tagged` string contains one or more SGML tags. The `target` string is untagged. This endpoint will automatically place the source tags in the target. Usage charges apply to this endpoint for production REST API keys.
+Project tags for a segment. The `source_tagged` string contains one or more SGML
+tags. The `target` string is untagged. This endpoint will automatically place the
+source tags in the target.
+
+Usage charges apply to this endpoint for production REST API keys.
+
+
### Example
+* Basic Authentication (BasicAuth):
* Api Key Authentication (ApiKeyAuth):
+
```python
-from __future__ import print_function
-import time
import lilt
+from lilt.models.tagged_segment import TaggedSegment
from lilt.rest import ApiException
from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
+
+# Defining the host is optional and defaults to https://api.lilt.com
# See configuration.py for a list of all supported configuration parameters.
configuration = lilt.Configuration(
- host = "https://lilt.com/2"
+ host = "https://api.lilt.com"
)
# The client must configure the authentication and authorization parameters
@@ -438,90 +320,40 @@ configuration = lilt.Configuration(
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
# Configure HTTP basic authorization: BasicAuth
configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.SegmentsApi(api_client)
- source_tagged = 'source_tagged_example' # str | The tagged source string.
-target = 'target_example' # str | The target string.
-memory_id = 56 # int | A unique Memory identifier.
-
- try:
- # Tag a Segment
- api_response = api_instance.tag_segment(source_tagged, target, memory_id)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling SegmentsApi->tag_segment: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
+ username = os.environ["USERNAME"],
+ password = os.environ["PASSWORD"]
)
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
+configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with lilt.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = lilt.SegmentsApi(api_client)
source_tagged = 'source_tagged_example' # str | The tagged source string.
-target = 'target_example' # str | The target string.
-memory_id = 56 # int | A unique Memory identifier.
+ target = 'target_example' # str | The target string.
+ memory_id = 56 # int | A unique Memory identifier.
try:
# Tag a Segment
api_response = api_instance.tag_segment(source_tagged, target, memory_id)
+ print("The response of SegmentsApi->tag_segment:\n")
pprint(api_response)
- except ApiException as e:
+ except Exception as e:
print("Exception when calling SegmentsApi->tag_segment: %s\n" % e)
```
+
+
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**source_tagged** | **str**| The tagged source string. |
@@ -534,7 +366,7 @@ Name | Type | Description | Notes
### Authorization
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
+[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
@@ -542,6 +374,7 @@ Name | Type | Description | Notes
- **Accept**: application/json
### HTTP response details
+
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | A TaggedSegment object. | - |
@@ -550,25 +383,38 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **unlock_segments**
-> list[float] unlock_segments(body)
+> List[float] unlock_segments(segment_done_response)
Unaccept and unlock segments
-Unaccept and unlock segments. Sets individual segments' \"Review Done\" to false. Confirmed segments will remain confirmed. Example curl: ``` curl --X --request POST 'https://lilt.com/2/segments/review/unlock?key=API_KEY' \\ --header 'Content-Type: application/json' \\ --data-raw '{ \"segmentIds\": [23921, 23922] }' ```
+Unaccept and unlock segments.
+Sets individual segments' "Review Done" to false. Confirmed segments will remain confirmed.
+
+Example curl:
+```
+ curl --X --request POST 'https://lilt.com/2/segments/review/unlock?key=API_KEY' \
+ --header 'Content-Type: application/json' \
+ --data-raw '{
+ "segmentIds": [23921, 23922]
+ }'
+```
+
### Example
+* Basic Authentication (BasicAuth):
* Api Key Authentication (ApiKeyAuth):
+
```python
-from __future__ import print_function
-import time
import lilt
+from lilt.models.segment_done_response import SegmentDoneResponse
from lilt.rest import ApiException
from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
+
+# Defining the host is optional and defaults to https://api.lilt.com
# See configuration.py for a list of all supported configuration parameters.
configuration = lilt.Configuration(
- host = "https://lilt.com/2"
+ host = "https://api.lilt.com"
)
# The client must configure the authentication and authorization parameters
@@ -576,97 +422,49 @@ configuration = lilt.Configuration(
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
# Configure HTTP basic authorization: BasicAuth
configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
+ username = os.environ["USERNAME"],
+ password = os.environ["PASSWORD"]
)
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.SegmentsApi(api_client)
- body = lilt.SegmentDoneResponse() # SegmentDoneResponse |
-
- try:
- # Unaccept and unlock segments
- api_response = api_instance.unlock_segments(body)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling SegmentsApi->unlock_segments: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
+configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with lilt.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = lilt.SegmentsApi(api_client)
- body = lilt.SegmentDoneResponse() # SegmentDoneResponse |
+ segment_done_response = lilt.SegmentDoneResponse() # SegmentDoneResponse | segment ids to update
try:
# Unaccept and unlock segments
- api_response = api_instance.unlock_segments(body)
+ api_response = api_instance.unlock_segments(segment_done_response)
+ print("The response of SegmentsApi->unlock_segments:\n")
pprint(api_response)
- except ApiException as e:
+ except Exception as e:
print("Exception when calling SegmentsApi->unlock_segments: %s\n" % e)
```
+
+
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**SegmentDoneResponse**](SegmentDoneResponse.md)| |
+ **segment_done_response** | [**SegmentDoneResponse**](SegmentDoneResponse.md)| segment ids to update |
### Return type
-**list[float]**
+**List[float]**
### Authorization
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
+[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
@@ -674,6 +472,7 @@ Name | Type | Description | Notes
- **Accept**: application/json
### HTTP response details
+
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | array of updated segments | - |
@@ -681,25 +480,30 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **update_segment**
-> Segment update_segment(body)
+> Segment update_segment(segment_update_parameters)
Update a Segment
-Update a Segment in memory. The Memory will be updated with the new target string.
+Update a Segment in memory. The Memory will be updated with the new target string.
+
+
### Example
+* Basic Authentication (BasicAuth):
* Api Key Authentication (ApiKeyAuth):
+
```python
-from __future__ import print_function
-import time
import lilt
+from lilt.models.segment import Segment
+from lilt.models.segment_update_parameters import SegmentUpdateParameters
from lilt.rest import ApiException
from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
+
+# Defining the host is optional and defaults to https://api.lilt.com
# See configuration.py for a list of all supported configuration parameters.
configuration = lilt.Configuration(
- host = "https://lilt.com/2"
+ host = "https://api.lilt.com"
)
# The client must configure the authentication and authorization parameters
@@ -707,89 +511,41 @@ configuration = lilt.Configuration(
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
# Configure HTTP basic authorization: BasicAuth
configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
+ username = os.environ["USERNAME"],
+ password = os.environ["PASSWORD"]
)
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.SegmentsApi(api_client)
- body = lilt.SegmentUpdateParameters() # SegmentUpdateParameters |
-
- try:
- # Update a Segment
- api_response = api_instance.update_segment(body)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling SegmentsApi->update_segment: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
+configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with lilt.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = lilt.SegmentsApi(api_client)
- body = lilt.SegmentUpdateParameters() # SegmentUpdateParameters |
+ segment_update_parameters = lilt.SegmentUpdateParameters() # SegmentUpdateParameters | The Segment resource to update.
try:
# Update a Segment
- api_response = api_instance.update_segment(body)
+ api_response = api_instance.update_segment(segment_update_parameters)
+ print("The response of SegmentsApi->update_segment:\n")
pprint(api_response)
- except ApiException as e:
+ except Exception as e:
print("Exception when calling SegmentsApi->update_segment: %s\n" % e)
```
+
+
### Parameters
+
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **body** | [**SegmentUpdateParameters**](SegmentUpdateParameters.md)| |
+ **segment_update_parameters** | [**SegmentUpdateParameters**](SegmentUpdateParameters.md)| The Segment resource to update. |
### Return type
@@ -797,7 +553,7 @@ Name | Type | Description | Notes
### Authorization
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
+[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
@@ -805,6 +561,7 @@ Name | Type | Description | Notes
- **Accept**: application/json
### HTTP response details
+
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | A Segment object. | - |
diff --git a/docs/SetDocumentStageRequest.md b/docs/SetDocumentStageRequest.md
deleted file mode 100644
index a167b09..0000000
--- a/docs/SetDocumentStageRequest.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# SetDocumentStageRequest
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**workflow_stage_id** | **str** | A workflow stage id. Can be found in \"Retrieve document Workflow metadata\" endpoint. To set the document stage to 'Done', pass through an empty request body. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/Setting.md b/docs/Setting.md
deleted file mode 100644
index 69da8b3..0000000
--- a/docs/Setting.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# Setting
-
-A configuration setting.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | The identifier of the setting. | [optional]
-**name** | **str** | The name of the setting. | [optional]
-**value_type** | **str** | the type of value the setting may have - Boolean, Json, Number, String. | [optional]
-**is_user_facing** | **bool** | Whether the setting is editable by the user. | [optional]
-**is_default** | **bool** | True when the setting value is inherited from the default setting. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/SettingDictionary.md b/docs/SettingDictionary.md
deleted file mode 100644
index 6e867f5..0000000
--- a/docs/SettingDictionary.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# SettingDictionary
-
-A dictionary of configuration settings, keyed by setting name
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | The identifier of the setting. | [optional]
-**name** | **str** | The name of the setting. | [optional]
-**value_type** | **str** | the type of value the setting may have - Boolean, Json, Number, String. | [optional]
-**is_user_facing** | **bool** | Whether the setting is editable by the user. | [optional]
-**is_default** | **bool** | True when the setting value is inherited from the default setting. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/SettingUpsertBody.md b/docs/SettingUpsertBody.md
deleted file mode 100644
index 26b2cd3..0000000
--- a/docs/SettingUpsertBody.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# SettingUpsertBody
-
-Body to create or update a setting.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**setting_name** | **str** | The name of the setting. |
-**scope** | **str** | The entity scope the setting should be applied to. |
-**is_enforced** | **bool** | Whether this value should override others set for the same setting key. | [optional]
-**project_id** | **float** | Id of the the project the setting will be applied to. Required when scope is `Project`. | [optional]
-**organization_id** | **float** | Id of the the project the setting will be applied to. Required when scope is `Organization`. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/SettingUpsertResponse.md b/docs/SettingUpsertResponse.md
deleted file mode 100644
index 14e3843..0000000
--- a/docs/SettingUpsertResponse.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# SettingUpsertResponse
-
-Response from upserting a setting
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**scoped_setting** | [**Setting**](Setting.md) | | [optional]
-**active_settings** | [**dict(str, Setting)**](Setting.md) | A dictionary of configuration settings, keyed by setting name | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/SettingsApi.md b/docs/SettingsApi.md
deleted file mode 100644
index 3f27633..0000000
--- a/docs/SettingsApi.md
+++ /dev/null
@@ -1,530 +0,0 @@
-# lilt.SettingsApi
-
-All URIs are relative to *https://lilt.com/2*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**get_organization_settings**](SettingsApi.md#get_organization_settings) | **GET** /settings/organization | Get organization-level settings
-[**get_project_settings**](SettingsApi.md#get_project_settings) | **GET** /settings/project/{projectId} | Get settings for a project
-[**get_user_settings**](SettingsApi.md#get_user_settings) | **GET** /settings/user | Get settings for the authenticated user
-[**upsert_setting**](SettingsApi.md#upsert_setting) | **POST** /settings | Update or create a setting
-
-
-# **get_organization_settings**
-> dict(str, Setting) get_organization_settings()
-
-Get organization-level settings
-
-Get the organization-level settings for the active users organization Example CURL: ``` curl --location --request GET 'https://lilt.com/2/settings/organization?key=' \\ ```
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.SettingsApi(api_client)
-
- try:
- # Get organization-level settings
- api_response = api_instance.get_organization_settings()
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling SettingsApi->get_organization_settings: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.SettingsApi(api_client)
-
- try:
- # Get organization-level settings
- api_response = api_instance.get_organization_settings()
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling SettingsApi->get_organization_settings: %s\n" % e)
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-### Return type
-
-[**dict(str, Setting)**](Setting.md)
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | Organization settings dictionary. | - |
-**0** | Unexpected error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **get_project_settings**
-> dict(str, Setting) get_project_settings(project_id)
-
-Get settings for a project
-
-Get the settings as applied to a specific project. Active settings will combine project-level settings, organization-level settings and fallback to setting default values. Example CURL: ``` curl --location --request GET 'https://lilt.com/2/settings/project/123?key=' \\ ```
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.SettingsApi(api_client)
- project_id = 56 # int | A project id.
-
- try:
- # Get settings for a project
- api_response = api_instance.get_project_settings(project_id)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling SettingsApi->get_project_settings: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.SettingsApi(api_client)
- project_id = 56 # int | A project id.
-
- try:
- # Get settings for a project
- api_response = api_instance.get_project_settings(project_id)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling SettingsApi->get_project_settings: %s\n" % e)
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **project_id** | **int**| A project id. |
-
-### Return type
-
-[**dict(str, Setting)**](Setting.md)
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | Project settings dictionary. | - |
-**0** | Unexpected error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **get_user_settings**
-> dict(str, Setting) get_user_settings()
-
-Get settings for the authenticated user
-
-Get the active settings applied to the authenticated user. Example CURL: ``` curl --location --request GET 'https://lilt.com/2/settings/user?key=' \\ ```
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.SettingsApi(api_client)
-
- try:
- # Get settings for the authenticated user
- api_response = api_instance.get_user_settings()
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling SettingsApi->get_user_settings: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.SettingsApi(api_client)
-
- try:
- # Get settings for the authenticated user
- api_response = api_instance.get_user_settings()
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling SettingsApi->get_user_settings: %s\n" % e)
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-### Return type
-
-[**dict(str, Setting)**](Setting.md)
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | Settings dictionary. | - |
-**0** | Unexpected error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **upsert_setting**
-> SettingUpsertResponse upsert_setting(body=body)
-
-Update or create a setting
-
-Create or update the value for the given setting and setting scope. Example CURL to set an organization-level setting: ``` curl --location --request POST 'https://lilt.com/2/settings?key=' \\ --header 'Content-Type: application/json' \\ --data-raw '{ \"settingName\": \"requireBatchQaTranslator\", \"value\": false, \"organizationId\": 285, \"scope\": \"Organization\" }' ```
-
-### Example
-
-* Api Key Authentication (ApiKeyAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.SettingsApi(api_client)
- body = lilt.SettingUpsertBody() # SettingUpsertBody | (optional)
-
- try:
- # Update or create a setting
- api_response = api_instance.upsert_setting(body=body)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling SettingsApi->upsert_setting: %s\n" % e)
-```
-
-* Basic Authentication (BasicAuth):
-```python
-from __future__ import print_function
-import time
-import lilt
-from lilt.rest import ApiException
-from pprint import pprint
-# Defining the host is optional and defaults to https://lilt.com/2
-# See configuration.py for a list of all supported configuration parameters.
-configuration = lilt.Configuration(
- host = "https://lilt.com/2"
-)
-
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: ApiKeyAuth
-configuration = lilt.Configuration(
- host = "https://lilt.com/2",
- api_key = {
- 'key': 'YOUR_API_KEY'
- }
-)
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['key'] = 'Bearer'
-
-# Configure HTTP basic authorization: BasicAuth
-configuration = lilt.Configuration(
- username = 'YOUR_USERNAME',
- password = 'YOUR_PASSWORD'
-)
-
-# Enter a context with an instance of the API client
-with lilt.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = lilt.SettingsApi(api_client)
- body = lilt.SettingUpsertBody() # SettingUpsertBody | (optional)
-
- try:
- # Update or create a setting
- api_response = api_instance.upsert_setting(body=body)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling SettingsApi->upsert_setting: %s\n" % e)
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**SettingUpsertBody**](SettingUpsertBody.md)| | [optional]
-
-### Return type
-
-[**SettingUpsertResponse**](SettingUpsertResponse.md)
-
-### Authorization
-
-[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | Updated settings object and updated active settings. | - |
-**0** | Unexpected error | - |
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
diff --git a/docs/SignUploadPart200Response.md b/docs/SignUploadPart200Response.md
new file mode 100644
index 0000000..c62550e
--- /dev/null
+++ b/docs/SignUploadPart200Response.md
@@ -0,0 +1,30 @@
+# SignUploadPart200Response
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**url** | **str** | Pre-signed URL for this part upload | [optional]
+**method** | **str** | HTTP method to use for upload | [optional]
+
+## Example
+
+```python
+from lilt.models.sign_upload_part200_response import SignUploadPart200Response
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of SignUploadPart200Response from a JSON string
+sign_upload_part200_response_instance = SignUploadPart200Response.from_json(json)
+# print the JSON string representation of the object
+print(SignUploadPart200Response.to_json())
+
+# convert the object into a dict
+sign_upload_part200_response_dict = sign_upload_part200_response_instance.to_dict()
+# create an instance of SignUploadPart200Response from a dict
+sign_upload_part200_response_from_dict = SignUploadPart200Response.from_dict(sign_upload_part200_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TaggedSegment.md b/docs/TaggedSegment.md
index 8b318f7..2630324 100644
--- a/docs/TaggedSegment.md
+++ b/docs/TaggedSegment.md
@@ -1,12 +1,30 @@
# TaggedSegment
-A source string with tags automatically projected from source to target.
+
## Properties
+
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**source_tagged** | **str** | The tagged source string. | [optional]
**target_tagged** | **str** | The tagged target string. | [optional]
+## Example
+
+```python
+from lilt.models.tagged_segment import TaggedSegment
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of TaggedSegment from a JSON string
+tagged_segment_instance = TaggedSegment.from_json(json)
+# print the JSON string representation of the object
+print(TaggedSegment.to_json())
+
+# convert the object into a dict
+tagged_segment_dict = tagged_segment_instance.to_dict()
+# create an instance of TaggedSegment from a dict
+tagged_segment_from_dict = TaggedSegment.from_dict(tagged_segment_dict)
+```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/TranslateApi.md b/docs/TranslateApi.md
index 0209bf6..5d3d46f 100644
--- a/docs/TranslateApi.md
+++ b/docs/TranslateApi.md
@@ -11,7 +11,7 @@ Method | HTTP request | Description
# **batch_translate_file**
-> List[TranslationInfo] batch_translate_file(file_id, memory_id, config_id=config_id, with_tm=with_tm)
+> List[TranslationInfo] batch_translate_file(file_id, memory_id, config_id=config_id, with_tm=with_tm, external_model_id=external_model_id)
Translate a File
@@ -62,14 +62,15 @@ configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
with lilt.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = lilt.TranslateApi(api_client)
- file_id = 'file_id_example' # str | List of File ids to be translated, comma separated.
- memory_id = 'memory_id_example' # str | Id of Memory to use in translation.
- config_id = 3.4 # float | An optional pararameter to specify an import configuration to be applied when extracting translatable content from this file. (optional)
+ file_id = 56 # int | List of File ids to be translated, comma separated.
+ memory_id = 56 # int | Id of Memory to use in translation.
+ config_id = 56 # int | An optional pararameter to specify an import configuration to be applied when extracting translatable content from this file. (optional)
with_tm = True # bool | An optional boolean parameter to toggle the use of Translation Memory in the translation of the file. (optional)
+ external_model_id = 56 # int | An optional parameter to specify a third-party model to use for translation. This allows you to use external MT providers instead of Lilt's built-in MT system. (optional)
try:
# Translate a File
- api_response = api_instance.batch_translate_file(file_id, memory_id, config_id=config_id, with_tm=with_tm)
+ api_response = api_instance.batch_translate_file(file_id, memory_id, config_id=config_id, with_tm=with_tm, external_model_id=external_model_id)
print("The response of TranslateApi->batch_translate_file:\n")
pprint(api_response)
except Exception as e:
@@ -83,10 +84,11 @@ with lilt.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **file_id** | **str**| List of File ids to be translated, comma separated. |
- **memory_id** | **str**| Id of Memory to use in translation. |
- **config_id** | **float**| An optional pararameter to specify an import configuration to be applied when extracting translatable content from this file. | [optional]
+ **file_id** | **int**| List of File ids to be translated, comma separated. |
+ **memory_id** | **int**| Id of Memory to use in translation. |
+ **config_id** | **int**| An optional pararameter to specify an import configuration to be applied when extracting translatable content from this file. | [optional]
**with_tm** | **bool**| An optional boolean parameter to toggle the use of Translation Memory in the translation of the file. | [optional]
+ **external_model_id** | **int**| An optional parameter to specify a third-party model to use for translation. This allows you to use external MT providers instead of Lilt's built-in MT system. | [optional]
### Return type
@@ -162,7 +164,7 @@ configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
with lilt.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = lilt.TranslateApi(api_client)
- id = 'id_example' # str | A translation id.
+ id = 56 # int | A translation id.
try:
# Download translated file
@@ -180,7 +182,7 @@ with lilt.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **id** | **str**| A translation id. |
+ **id** | **int**| A translation id. |
### Return type
@@ -324,7 +326,7 @@ output in the response.
The maximum source length is 5,000 characters.
-Usage charges apply to this endpoint for production REST API keys.
+Usage charges apply to this endpoint for production API keys.
diff --git a/docs/TranslateCompletionTypeError.md b/docs/TranslateCompletionTypeError.md
deleted file mode 100644
index 522ce92..0000000
--- a/docs/TranslateCompletionTypeError.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# TranslateCompletionTypeError
-
-Response in the event of a malformed error.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**message** | [**object**](.md) | A human-readable message describing the error. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/TranslateRegisterResponse.md b/docs/TranslateRegisterResponse.md
deleted file mode 100644
index 9460e8c..0000000
--- a/docs/TranslateRegisterResponse.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# TranslateRegisterResponse
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**source_hash** | **int** | A unique source token required by the `prefix` parameter for translation requests. | [optional]
-**num_words** | **int** | The number of billed words in the segment. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/TranslateSegmentBody1.md b/docs/TranslateSegmentBody1.md
deleted file mode 100644
index 85909ad..0000000
--- a/docs/TranslateSegmentBody1.md
+++ /dev/null
@@ -1,17 +0,0 @@
-# TranslateSegmentBody1
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**source** | **str** | A unique Segment identifier. | [optional]
-**memory_id** | **int** | A unique Memory identifier. |
-**source_hash** | **int** | A source hash code. | [optional]
-**n** | **int** | Return top n translations (deprecated). | [optional]
-**prefix** | **str** | A target prefix | [optional]
-**rich** | **bool** | Returns rich translation information (e.g., with word alignments). | [optional] [default to False]
-**tm_matches** | **bool** | Include translation memory fuzzy matches. | [optional] [default to True]
-**project_tags** | **bool** | Project tags. Projects tags in source to target if set to true. | [optional] [default to False]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/UploadsApi.md b/docs/UploadsApi.md
new file mode 100644
index 0000000..08d6f20
--- /dev/null
+++ b/docs/UploadsApi.md
@@ -0,0 +1,860 @@
+# lilt.UploadsApi
+
+All URIs are relative to *https://api.lilt.com*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**cancel_multipart_upload**](UploadsApi.md#cancel_multipart_upload) | **DELETE** /v2/upload/s3/multipart/{uploadId} | Cancel Multipart Upload
+[**complete_multipart_upload**](UploadsApi.md#complete_multipart_upload) | **POST** /v2/upload/s3/multipart/{uploadId}/complete | Complete Multipart Upload
+[**get_pending_uploads**](UploadsApi.md#get_pending_uploads) | **GET** /v2/upload | Get All Pending Uploads or specific list of uploads by ids or statuses
+[**get_s3_upload_params**](UploadsApi.md#get_s3_upload_params) | **GET** /v2/upload/s3/params | Get S3 Upload Parameters
+[**get_upload_by_id**](UploadsApi.md#get_upload_by_id) | **GET** /v2/upload/{uploadId} | Get Upload by ID
+[**initiate_multipart_upload**](UploadsApi.md#initiate_multipart_upload) | **POST** /v2/upload/s3/multipart | Initiate Multipart Upload
+[**initiate_s3_upload**](UploadsApi.md#initiate_s3_upload) | **POST** /v2/upload/s3/params | Initiate File Upload to Cloud Storage
+[**sign_upload_part**](UploadsApi.md#sign_upload_part) | **GET** /v2/upload/s3/multipart/{uploadId}/partNumber | Sign Upload Part
+
+
+# **cancel_multipart_upload**
+> CancelMultipartUpload200Response cancel_multipart_upload(upload_id, s3_key)
+
+Cancel Multipart Upload
+
+Cancel/abort a multipart upload and clean up any uploaded parts.
+
+Example CURL command:
+```
+ curl -X DELETE "https://lilt.com/v2/upload/s3/multipart/abc123def456?key=API_KEY&key=uploads/user123/file456.zip"
+```
+
+
+### Example
+
+* Basic Authentication (BasicAuth):
+* Api Key Authentication (ApiKeyAuth):
+
+```python
+import lilt
+from lilt.models.cancel_multipart_upload200_response import CancelMultipartUpload200Response
+from lilt.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://api.lilt.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = lilt.Configuration(
+ host = "https://api.lilt.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure HTTP basic authorization: BasicAuth
+configuration = lilt.Configuration(
+ username = os.environ["USERNAME"],
+ password = os.environ["PASSWORD"]
+)
+
+# Configure API key authorization: ApiKeyAuth
+configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with lilt.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = lilt.UploadsApi(api_client)
+ upload_id = 'upload_id_example' # str | Multipart upload ID to cancel
+ s3_key = 's3_key_example' # str | Upload key from initiate response
+
+ try:
+ # Cancel Multipart Upload
+ api_response = api_instance.cancel_multipart_upload(upload_id, s3_key)
+ print("The response of UploadsApi->cancel_multipart_upload:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UploadsApi->cancel_multipart_upload: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **upload_id** | **str**| Multipart upload ID to cancel |
+ **s3_key** | **str**| Upload key from initiate response |
+
+### Return type
+
+[**CancelMultipartUpload200Response**](CancelMultipartUpload200Response.md)
+
+### Authorization
+
+[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Upload cancellation confirmation. | - |
+**0** | Unexpected error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **complete_multipart_upload**
+> CompleteMultipartUpload200Response complete_multipart_upload(upload_id, s3_key, complete_multipart_upload_body)
+
+Complete Multipart Upload
+
+Complete a multipart upload by providing all uploaded parts information.
+
+Example CURL command:
+```
+ curl -X POST "https://lilt.com/v2/upload/s3/multipart/abc123def456/complete?key=API_KEY&key=uploads/user123/file456.zip" \
+ --header "Content-Type: application/json" \
+ --data-raw '{
+ "parts": [
+ {"ETag": "etag1", "PartNumber": 1},
+ {"ETag": "etag2", "PartNumber": 2}
+ ]
+ }'
+```
+
+
+### Example
+
+* Basic Authentication (BasicAuth):
+* Api Key Authentication (ApiKeyAuth):
+
+```python
+import lilt
+from lilt.models.complete_multipart_upload200_response import CompleteMultipartUpload200Response
+from lilt.models.complete_multipart_upload_body import CompleteMultipartUploadBody
+from lilt.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://api.lilt.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = lilt.Configuration(
+ host = "https://api.lilt.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure HTTP basic authorization: BasicAuth
+configuration = lilt.Configuration(
+ username = os.environ["USERNAME"],
+ password = os.environ["PASSWORD"]
+)
+
+# Configure API key authorization: ApiKeyAuth
+configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with lilt.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = lilt.UploadsApi(api_client)
+ upload_id = 'upload_id_example' # str | Multipart upload ID from initiate response
+ s3_key = 's3_key_example' # str | Upload key from initiate response
+ complete_multipart_upload_body = lilt.CompleteMultipartUploadBody() # CompleteMultipartUploadBody | Information about uploaded parts.
+
+ try:
+ # Complete Multipart Upload
+ api_response = api_instance.complete_multipart_upload(upload_id, s3_key, complete_multipart_upload_body)
+ print("The response of UploadsApi->complete_multipart_upload:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UploadsApi->complete_multipart_upload: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **upload_id** | **str**| Multipart upload ID from initiate response |
+ **s3_key** | **str**| Upload key from initiate response |
+ **complete_multipart_upload_body** | [**CompleteMultipartUploadBody**](CompleteMultipartUploadBody.md)| Information about uploaded parts. |
+
+### Return type
+
+[**CompleteMultipartUpload200Response**](CompleteMultipartUpload200Response.md)
+
+### Authorization
+
+[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Upload completion confirmation. | - |
+**0** | Unexpected error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_pending_uploads**
+> List[GetPendingUploads200ResponseInner] get_pending_uploads(ids=ids, statuses=statuses)
+
+Get All Pending Uploads or specific list of uploads by ids or statuses
+
+Retrieve all pending uploads for the current user and organization.
+
+Example CURL command:
+```
+ curl -X GET https://lilt.com/2/upload?key=API_KEY
+```
+
+
+### Example
+
+* Basic Authentication (BasicAuth):
+* Api Key Authentication (ApiKeyAuth):
+
+```python
+import lilt
+from lilt.models.get_pending_uploads200_response_inner import GetPendingUploads200ResponseInner
+from lilt.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://api.lilt.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = lilt.Configuration(
+ host = "https://api.lilt.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure HTTP basic authorization: BasicAuth
+configuration = lilt.Configuration(
+ username = os.environ["USERNAME"],
+ password = os.environ["PASSWORD"]
+)
+
+# Configure API key authorization: ApiKeyAuth
+configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with lilt.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = lilt.UploadsApi(api_client)
+ ids = 'ids_example' # str | Comma-separated list of upload IDs to filter by. (optional)
+ statuses = 'statuses_example' # str | Comma-separated list of upload statuses to filter by. (optional)
+
+ try:
+ # Get All Pending Uploads or specific list of uploads by ids or statuses
+ api_response = api_instance.get_pending_uploads(ids=ids, statuses=statuses)
+ print("The response of UploadsApi->get_pending_uploads:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UploadsApi->get_pending_uploads: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **ids** | **str**| Comma-separated list of upload IDs to filter by. | [optional]
+ **statuses** | **str**| Comma-separated list of upload statuses to filter by. | [optional]
+
+### Return type
+
+[**List[GetPendingUploads200ResponseInner]**](GetPendingUploads200ResponseInner.md)
+
+### Authorization
+
+[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | List of pending uploads. | - |
+**0** | Unexpected error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_s3_upload_params**
+> GetS3UploadParams200Response get_s3_upload_params(filename, type, metadata_size=metadata_size, metadata_category=metadata_category, metadata_uuid=metadata_uuid, metadata_labels=metadata_labels)
+
+Get S3 Upload Parameters
+
+Get S3 upload parameters via query string. This endpoint provides the necessary information
+to complete the file upload process using GET parameters.
+
+Example CURL command:
+```
+ curl -X GET "https://lilt.com/v2/upload/s3/params?key=API_KEY&filename=example.json&type=application/json&metadata.size=1024&metadata.labels=important,review-needed"
+```
+
+
+### Example
+
+* Basic Authentication (BasicAuth):
+* Api Key Authentication (ApiKeyAuth):
+
+```python
+import lilt
+from lilt.models.get_s3_upload_params200_response import GetS3UploadParams200Response
+from lilt.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://api.lilt.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = lilt.Configuration(
+ host = "https://api.lilt.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure HTTP basic authorization: BasicAuth
+configuration = lilt.Configuration(
+ username = os.environ["USERNAME"],
+ password = os.environ["PASSWORD"]
+)
+
+# Configure API key authorization: ApiKeyAuth
+configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with lilt.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = lilt.UploadsApi(api_client)
+ filename = 'document.xliff' # str | A file name including file extension.
+ type = 'video/mp4' # str | The content-type or mime-type of the file to upload.
+ metadata_size = 1024 # int | The size of the file to upload in bytes. (optional)
+ metadata_category = 'documents' # str | File category metadata. (optional)
+ metadata_uuid = '123e4567-e89b-12d3-a456-426614174000' # str | File UUID metadata. (optional)
+ metadata_labels = 'important,review-needed' # str | Comma-separated list of label names to be added to the file after upload completes. (optional)
+
+ try:
+ # Get S3 Upload Parameters
+ api_response = api_instance.get_s3_upload_params(filename, type, metadata_size=metadata_size, metadata_category=metadata_category, metadata_uuid=metadata_uuid, metadata_labels=metadata_labels)
+ print("The response of UploadsApi->get_s3_upload_params:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UploadsApi->get_s3_upload_params: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **filename** | **str**| A file name including file extension. |
+ **type** | **str**| The content-type or mime-type of the file to upload. |
+ **metadata_size** | **int**| The size of the file to upload in bytes. | [optional]
+ **metadata_category** | **str**| File category metadata. | [optional]
+ **metadata_uuid** | **str**| File UUID metadata. | [optional]
+ **metadata_labels** | **str**| Comma-separated list of label names to be added to the file after upload completes. | [optional]
+
+### Return type
+
+[**GetS3UploadParams200Response**](GetS3UploadParams200Response.md)
+
+### Authorization
+
+[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Upload initialization information. | - |
+**0** | Unexpected error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_upload_by_id**
+> GetPendingUploads200ResponseInner get_upload_by_id(upload_id)
+
+Get Upload by ID
+
+Retrieve a specific upload by its unique identifier.
+
+Example CURL command:
+```
+ curl -X GET https://lilt.com/2/upload/12345?key=API_KEY
+```
+
+
+### Example
+
+* Basic Authentication (BasicAuth):
+* Api Key Authentication (ApiKeyAuth):
+
+```python
+import lilt
+from lilt.models.get_pending_uploads200_response_inner import GetPendingUploads200ResponseInner
+from lilt.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://api.lilt.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = lilt.Configuration(
+ host = "https://api.lilt.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure HTTP basic authorization: BasicAuth
+configuration = lilt.Configuration(
+ username = os.environ["USERNAME"],
+ password = os.environ["PASSWORD"]
+)
+
+# Configure API key authorization: ApiKeyAuth
+configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with lilt.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = lilt.UploadsApi(api_client)
+ upload_id = 56 # int | Unique upload identifier
+
+ try:
+ # Get Upload by ID
+ api_response = api_instance.get_upload_by_id(upload_id)
+ print("The response of UploadsApi->get_upload_by_id:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UploadsApi->get_upload_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **upload_id** | **int**| Unique upload identifier |
+
+### Return type
+
+[**GetPendingUploads200ResponseInner**](GetPendingUploads200ResponseInner.md)
+
+### Authorization
+
+[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Upload details. | - |
+**0** | Unexpected error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **initiate_multipart_upload**
+> InitiateMultipartUpload200Response initiate_multipart_upload(initiate_multipart_upload_body)
+
+Initiate Multipart Upload
+
+Initiate a multipart upload for large files. This endpoint provides the necessary information
+to start a multipart upload process.
+
+Supports both single file and bulk upload requests. For bulk uploads, pass an array of upload
+objects (maximum 100 items). The response format matches the request format - a single object
+for single file requests, or an array for bulk requests.
+
+Example CURL command (single file):
+```
+ curl -X POST https://lilt.com/v2/upload/s3/multipart?key=API_KEY \
+ --header "Content-Type: application/json" \
+ --data-raw '{
+ "filename": "large-file.zip",
+ "type": "application/zip",
+ "metadata": {
+ "size": 104857600
+ }
+ }'
+```
+
+Example CURL command (bulk upload):
+```
+ curl -X POST https://lilt.com/v2/upload/s3/multipart?key=API_KEY \
+ --header "Content-Type: application/json" \
+ --data-raw '[
+ {
+ "filename": "large-file1.zip",
+ "type": "application/zip",
+ "metadata": { "size": 104857600 }
+ },
+ {
+ "filename": "large-file2.zip",
+ "type": "application/zip",
+ "metadata": { "size": 209715200 }
+ }
+ ]'
+```
+
+
+### Example
+
+* Basic Authentication (BasicAuth):
+* Api Key Authentication (ApiKeyAuth):
+
+```python
+import lilt
+from lilt.models.initiate_multipart_upload200_response import InitiateMultipartUpload200Response
+from lilt.models.initiate_multipart_upload_body import InitiateMultipartUploadBody
+from lilt.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://api.lilt.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = lilt.Configuration(
+ host = "https://api.lilt.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure HTTP basic authorization: BasicAuth
+configuration = lilt.Configuration(
+ username = os.environ["USERNAME"],
+ password = os.environ["PASSWORD"]
+)
+
+# Configure API key authorization: ApiKeyAuth
+configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with lilt.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = lilt.UploadsApi(api_client)
+ initiate_multipart_upload_body = lilt.InitiateMultipartUploadBody() # InitiateMultipartUploadBody | Information about the file(s) to be uploaded. Can be a single object or an array of objects (max 100). Single file request: `{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }` Bulk request: `[{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }, ...]`
+
+ try:
+ # Initiate Multipart Upload
+ api_response = api_instance.initiate_multipart_upload(initiate_multipart_upload_body)
+ print("The response of UploadsApi->initiate_multipart_upload:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UploadsApi->initiate_multipart_upload: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **initiate_multipart_upload_body** | [**InitiateMultipartUploadBody**](InitiateMultipartUploadBody.md)| Information about the file(s) to be uploaded. Can be a single object or an array of objects (max 100). Single file request: `{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }` Bulk request: `[{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }, ...]` |
+
+### Return type
+
+[**InitiateMultipartUpload200Response**](InitiateMultipartUpload200Response.md)
+
+### Authorization
+
+[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Multipart upload initialization information. Returns a single object for single file requests, or an array of objects for bulk requests. | - |
+**0** | Unexpected error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **initiate_s3_upload**
+> GetS3UploadParams200Response initiate_s3_upload(initiate_upload_body)
+
+Initiate File Upload to Cloud Storage
+
+Initiate the upload of a file to cloud storage. This endpoint provides the necessary information
+to complete the file upload process.
+
+Supports both single file and bulk upload requests. For bulk uploads, pass an array of upload
+objects (maximum 100 items). The response format matches the request format - a single object
+for single file requests, or an array for bulk requests.
+
+Example CURL command (single file):
+```
+ curl -X POST https://lilt.com/v2/upload/s3/params?key=API_KEY \
+ --header "Content-Type: application/json" \
+ --data-raw '{
+ "filename": "example.json",
+ "type": "application/json",
+ "metadata": {
+ "size": 1024,
+ "labels": ["important", "review-needed"]
+ }
+ }'
+```
+
+Example CURL command (bulk upload):
+```
+ curl -X POST https://lilt.com/v2/upload/s3/params?key=API_KEY \
+ --header "Content-Type: application/json" \
+ --data-raw '[
+ {
+ "filename": "file1.json",
+ "type": "application/json",
+ "metadata": { "size": 1024 }
+ },
+ {
+ "filename": "file2.txt",
+ "type": "text/plain",
+ "metadata": { "size": 2048 }
+ }
+ ]'
+```
+
+
+### Example
+
+* Basic Authentication (BasicAuth):
+* Api Key Authentication (ApiKeyAuth):
+
+```python
+import lilt
+from lilt.models.get_s3_upload_params200_response import GetS3UploadParams200Response
+from lilt.models.initiate_upload_body import InitiateUploadBody
+from lilt.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://api.lilt.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = lilt.Configuration(
+ host = "https://api.lilt.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure HTTP basic authorization: BasicAuth
+configuration = lilt.Configuration(
+ username = os.environ["USERNAME"],
+ password = os.environ["PASSWORD"]
+)
+
+# Configure API key authorization: ApiKeyAuth
+configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with lilt.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = lilt.UploadsApi(api_client)
+ initiate_upload_body = lilt.InitiateUploadBody() # InitiateUploadBody | Information about the file(s) to be uploaded. Can be a single object or an array of objects (max 100). Single file request: `{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }` Bulk request: `[{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }, ...]`
+
+ try:
+ # Initiate File Upload to Cloud Storage
+ api_response = api_instance.initiate_s3_upload(initiate_upload_body)
+ print("The response of UploadsApi->initiate_s3_upload:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UploadsApi->initiate_s3_upload: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **initiate_upload_body** | [**InitiateUploadBody**](InitiateUploadBody.md)| Information about the file(s) to be uploaded. Can be a single object or an array of objects (max 100). Single file request: `{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }` Bulk request: `[{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }, ...]` |
+
+### Return type
+
+[**GetS3UploadParams200Response**](GetS3UploadParams200Response.md)
+
+### Authorization
+
+[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Upload initialization information. Returns a single object for single file requests, or an array of objects for bulk requests. | - |
+**0** | Unexpected error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **sign_upload_part**
+> SignUploadPart200Response sign_upload_part(upload_id, part_number, s3_key, size)
+
+Sign Upload Part
+
+Get a signed URL for uploading a specific part of a multipart upload.
+
+Make sure to set the part size to 8MB (8388608 bytes).
+
+Example CURL command:
+```
+ curl -X GET "https://lilt.com/v2/upload/s3/multipart/abc123def456/1?key=API_KEY&key=uploads/user123/file456.zip&size=5242880"
+```
+
+
+### Example
+
+* Basic Authentication (BasicAuth):
+* Api Key Authentication (ApiKeyAuth):
+
+```python
+import lilt
+from lilt.models.sign_upload_part200_response import SignUploadPart200Response
+from lilt.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://api.lilt.com
+# See configuration.py for a list of all supported configuration parameters.
+configuration = lilt.Configuration(
+ host = "https://api.lilt.com"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure HTTP basic authorization: BasicAuth
+configuration = lilt.Configuration(
+ username = os.environ["USERNAME"],
+ password = os.environ["PASSWORD"]
+)
+
+# Configure API key authorization: ApiKeyAuth
+configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with lilt.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = lilt.UploadsApi(api_client)
+ upload_id = 'upload_id_example' # str | Multipart upload ID from initiate response
+ part_number = 56 # int | Part number (1-based)
+ s3_key = 's3_key_example' # str | Upload key from initiate response
+ size = 56 # int | Size of this part in bytes
+
+ try:
+ # Sign Upload Part
+ api_response = api_instance.sign_upload_part(upload_id, part_number, s3_key, size)
+ print("The response of UploadsApi->sign_upload_part:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UploadsApi->sign_upload_part: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **upload_id** | **str**| Multipart upload ID from initiate response |
+ **part_number** | **int**| Part number (1-based) |
+ **s3_key** | **str**| Upload key from initiate response |
+ **size** | **int**| Size of this part in bytes |
+
+### Return type
+
+[**SignUploadPart200Response**](SignUploadPart200Response.md)
+
+### Authorization
+
+[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Signed URL for part upload. | - |
+**0** | Unexpected error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/WorkflowStage.md b/docs/WorkflowStage.md
deleted file mode 100644
index 01450c2..0000000
--- a/docs/WorkflowStage.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# WorkflowStage
-
-Workflow stage information.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | Identifier of the stage. | [optional]
-**name** | **str** | Name of the stage. |
-**active** | **bool** | Flag which is set to true when the stage is active for a document. | [optional]
-**assignment_type** | **str** | An enum to represent all possible types of Workflow stage. |
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/WorkflowTask.md b/docs/WorkflowTask.md
deleted file mode 100644
index 5704cef..0000000
--- a/docs/WorkflowTask.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# WorkflowTask
-
-Information about a workflow task.
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | Identifier of the current workflow task. |
-**workflow_stage_id** | **int** | Identifier of the current workflow stage. |
-**name** | **str** | Name of the current workflow stage. |
-**entered_at** | **str** | Date and time when task was created. |
-**started_at** | **str** | Date and time when task was started. | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/git_push.sh b/git_push.sh
index 58915f0..f53a75d 100644
--- a/git_push.sh
+++ b/git_push.sh
@@ -14,12 +14,12 @@ if [ "$git_host" = "" ]; then
fi
if [ "$git_user_id" = "" ]; then
- git_user_id="lilt"
+ git_user_id="GIT_USER_ID"
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
fi
if [ "$git_repo_id" = "" ]; then
- git_repo_id="lilt-python"
+ git_repo_id="GIT_REPO_ID"
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
fi
diff --git a/lilt/__init__.py b/lilt/__init__.py
index edbeac1..729beec 100644
--- a/lilt/__init__.py
+++ b/lilt/__init__.py
@@ -3,98 +3,216 @@
# flake8: noqa
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
-__version__ = "v3.0.2"
+__version__ = "3.1.0"
+
+# Define package exports
+__all__ = [
+ "CreateApi",
+ "DocumentsApi",
+ "DomainsApi",
+ "FilesApi",
+ "JobsApi",
+ "LanguagesApi",
+ "MemoriesApi",
+ "ProjectsApi",
+ "SegmentsApi",
+ "TranslateApi",
+ "UploadsApi",
+ "WebhookConfigurationApi",
+ "WorkflowsApi",
+ "ApiResponse",
+ "ApiClient",
+ "Configuration",
+ "OpenApiException",
+ "ApiTypeError",
+ "ApiValueError",
+ "ApiKeyError",
+ "ApiAttributeError",
+ "ApiException",
+ "AddFileLabelRequest",
+ "CancelMultipartUpload200Response",
+ "CompleteMultipartUpload200Response",
+ "CompleteMultipartUploadBody",
+ "CompleteMultipartUploadBodyPartsInner",
+ "CreateConverterConfigParameters",
+ "CreateWebhookOptions",
+ "DeleteLiltCreateContent200Response",
+ "DeleteSegmentFromMemoryResponse",
+ "DocumentWithSegments",
+ "DocumentWithoutSegments",
+ "DocumentWithoutSegmentsStatus",
+ "Domain",
+ "DomainList",
+ "DomainMetadata",
+ "DomainReference",
+ "Error",
+ "FilterConfig",
+ "GetLiltCreateContentResponse",
+ "GetPendingUploads200ResponseInner",
+ "GetS3UploadParams200Response",
+ "InitiateMultipartUpload200Response",
+ "InitiateMultipartUploadBody",
+ "InitiateMultipartUploadBodyMetadata",
+ "InitiateUploadBody",
+ "InitiateUploadBodyMetadata",
+ "Job",
+ "JobCreateParameters",
+ "JobDeleteResponse",
+ "JobLeverageStats",
+ "JobProject",
+ "JobStats",
+ "JobUpdateParameters",
+ "LanguagePair",
+ "LanguagesResponse",
+ "LiltCreateContent",
+ "LiltCreateContentPreferences",
+ "LiltCreateContentRequest",
+ "LiltCreateContentTemplateParams",
+ "Memory",
+ "MemoryCreateParameters",
+ "MemoryDeleteResponse",
+ "MemoryImportResponse",
+ "MemoryUpdateParameters",
+ "Model",
+ "Project",
+ "ProjectCreateParameters",
+ "ProjectDeleteResponse",
+ "ProjectStats",
+ "SDLXLIFFFilter",
+ "Segment",
+ "SegmentCreateParameters",
+ "SegmentDeleteResponse",
+ "SegmentDoneResponse",
+ "SegmentUpdateParameters",
+ "SignLiltCreateTermsResponse",
+ "SignUploadPart200Response",
+ "SourceFile",
+ "TaggedSegment",
+ "TermbaseExportResponse",
+ "TranslateSegmentBody",
+ "Translation",
+ "TranslationInfo",
+ "TranslationList",
+ "TranslationMemoryEntry",
+ "WebhookResponse",
+ "WebhooksUpdateRequest",
+ "WebhooksUpdateRequestAnyOf",
+ "WebhooksUpdateRequestAnyOf1",
+ "WebhooksUpdateRequestAnyOf2",
+ "WorkflowStageAssignment",
+ "WorkflowStageTemplate",
+ "WorkflowTemplate",
+]
# import apis into sdk package
-from lilt.api.create_api import CreateApi
-from lilt.api.documents_api import DocumentsApi
-from lilt.api.domains_api import DomainsApi
-from lilt.api.files_api import FilesApi
-from lilt.api.jobs_api import JobsApi
-from lilt.api.languages_api import LanguagesApi
-from lilt.api.memories_api import MemoriesApi
-from lilt.api.projects_api import ProjectsApi
-from lilt.api.translate_api import TranslateApi
-from lilt.api.webhook_configuration_api import WebhookConfigurationApi
-from lilt.api.workflows_api import WorkflowsApi
+from lilt.api.create_api import CreateApi as CreateApi
+from lilt.api.documents_api import DocumentsApi as DocumentsApi
+from lilt.api.domains_api import DomainsApi as DomainsApi
+from lilt.api.files_api import FilesApi as FilesApi
+from lilt.api.jobs_api import JobsApi as JobsApi
+from lilt.api.languages_api import LanguagesApi as LanguagesApi
+from lilt.api.memories_api import MemoriesApi as MemoriesApi
+from lilt.api.projects_api import ProjectsApi as ProjectsApi
+from lilt.api.segments_api import SegmentsApi as SegmentsApi
+from lilt.api.translate_api import TranslateApi as TranslateApi
+from lilt.api.uploads_api import UploadsApi as UploadsApi
+from lilt.api.webhook_configuration_api import WebhookConfigurationApi as WebhookConfigurationApi
+from lilt.api.workflows_api import WorkflowsApi as WorkflowsApi
# import ApiClient
-from lilt.api_response import ApiResponse
-from lilt.api_client import ApiClient
-from lilt.configuration import Configuration
-from lilt.exceptions import OpenApiException
-from lilt.exceptions import ApiTypeError
-from lilt.exceptions import ApiValueError
-from lilt.exceptions import ApiKeyError
-from lilt.exceptions import ApiAttributeError
-from lilt.exceptions import ApiException
+from lilt.api_response import ApiResponse as ApiResponse
+from lilt.api_client import ApiClient as ApiClient
+from lilt.configuration import Configuration as Configuration
+from lilt.exceptions import OpenApiException as OpenApiException
+from lilt.exceptions import ApiTypeError as ApiTypeError
+from lilt.exceptions import ApiValueError as ApiValueError
+from lilt.exceptions import ApiKeyError as ApiKeyError
+from lilt.exceptions import ApiAttributeError as ApiAttributeError
+from lilt.exceptions import ApiException as ApiException
# import models into sdk package
-from lilt.models.add_file_label_request import AddFileLabelRequest
-from lilt.models.create_converter_config_parameters import CreateConverterConfigParameters
-from lilt.models.create_webhook_options import CreateWebhookOptions
-from lilt.models.delete_lilt_create_content200_response import DeleteLiltCreateContent200Response
-from lilt.models.delete_segment_from_memory_response import DeleteSegmentFromMemoryResponse
-from lilt.models.document_with_segments import DocumentWithSegments
-from lilt.models.document_without_segments import DocumentWithoutSegments
-from lilt.models.document_without_segments_status import DocumentWithoutSegmentsStatus
-from lilt.models.domain import Domain
-from lilt.models.domain_list import DomainList
-from lilt.models.domain_metadata import DomainMetadata
-from lilt.models.domain_reference import DomainReference
-from lilt.models.error import Error
-from lilt.models.file_delete_response import FileDeleteResponse
-from lilt.models.filter_config import FilterConfig
-from lilt.models.get_lilt_create_content_response import GetLiltCreateContentResponse
-from lilt.models.job import Job
-from lilt.models.job_create_parameters import JobCreateParameters
-from lilt.models.job_delete_response import JobDeleteResponse
-from lilt.models.job_leverage_stats import JobLeverageStats
-from lilt.models.job_project import JobProject
-from lilt.models.job_stats import JobStats
-from lilt.models.job_update_parameters import JobUpdateParameters
-from lilt.models.language_pair import LanguagePair
-from lilt.models.languages_response import LanguagesResponse
-from lilt.models.lilt_create_content import LiltCreateContent
-from lilt.models.lilt_create_content_preferences import LiltCreateContentPreferences
-from lilt.models.lilt_create_content_request import LiltCreateContentRequest
-from lilt.models.lilt_create_content_template_params import LiltCreateContentTemplateParams
-from lilt.models.memory import Memory
-from lilt.models.memory_create_parameters import MemoryCreateParameters
-from lilt.models.memory_delete_response import MemoryDeleteResponse
-from lilt.models.memory_import_response import MemoryImportResponse
-from lilt.models.memory_update_parameters import MemoryUpdateParameters
-from lilt.models.model import Model
-from lilt.models.project import Project
-from lilt.models.project_create_parameters import ProjectCreateParameters
-from lilt.models.project_delete_response import ProjectDeleteResponse
-from lilt.models.project_stats import ProjectStats
-from lilt.models.sdlxliff_filter import SDLXLIFFFilter
-from lilt.models.segment import Segment
-from lilt.models.sign_lilt_create_terms_response import SignLiltCreateTermsResponse
-from lilt.models.source_file import SourceFile
-from lilt.models.termbase_export_response import TermbaseExportResponse
-from lilt.models.translate_segment_body import TranslateSegmentBody
-from lilt.models.translation import Translation
-from lilt.models.translation_info import TranslationInfo
-from lilt.models.translation_list import TranslationList
-from lilt.models.translation_memory_entry import TranslationMemoryEntry
-from lilt.models.webhook_response import WebhookResponse
-from lilt.models.webhooks_update_request import WebhooksUpdateRequest
-from lilt.models.webhooks_update_request_any_of import WebhooksUpdateRequestAnyOf
-from lilt.models.webhooks_update_request_any_of1 import WebhooksUpdateRequestAnyOf1
-from lilt.models.webhooks_update_request_any_of2 import WebhooksUpdateRequestAnyOf2
-from lilt.models.workflow_stage_assignment import WorkflowStageAssignment
-from lilt.models.workflow_stage_template import WorkflowStageTemplate
-from lilt.models.workflow_template import WorkflowTemplate
+from lilt.models.add_file_label_request import AddFileLabelRequest as AddFileLabelRequest
+from lilt.models.cancel_multipart_upload200_response import CancelMultipartUpload200Response as CancelMultipartUpload200Response
+from lilt.models.complete_multipart_upload200_response import CompleteMultipartUpload200Response as CompleteMultipartUpload200Response
+from lilt.models.complete_multipart_upload_body import CompleteMultipartUploadBody as CompleteMultipartUploadBody
+from lilt.models.complete_multipart_upload_body_parts_inner import CompleteMultipartUploadBodyPartsInner as CompleteMultipartUploadBodyPartsInner
+from lilt.models.create_converter_config_parameters import CreateConverterConfigParameters as CreateConverterConfigParameters
+from lilt.models.create_webhook_options import CreateWebhookOptions as CreateWebhookOptions
+from lilt.models.delete_lilt_create_content200_response import DeleteLiltCreateContent200Response as DeleteLiltCreateContent200Response
+from lilt.models.delete_segment_from_memory_response import DeleteSegmentFromMemoryResponse as DeleteSegmentFromMemoryResponse
+from lilt.models.document_with_segments import DocumentWithSegments as DocumentWithSegments
+from lilt.models.document_without_segments import DocumentWithoutSegments as DocumentWithoutSegments
+from lilt.models.document_without_segments_status import DocumentWithoutSegmentsStatus as DocumentWithoutSegmentsStatus
+from lilt.models.domain import Domain as Domain
+from lilt.models.domain_list import DomainList as DomainList
+from lilt.models.domain_metadata import DomainMetadata as DomainMetadata
+from lilt.models.domain_reference import DomainReference as DomainReference
+from lilt.models.error import Error as Error
+from lilt.models.filter_config import FilterConfig as FilterConfig
+from lilt.models.get_lilt_create_content_response import GetLiltCreateContentResponse as GetLiltCreateContentResponse
+from lilt.models.get_pending_uploads200_response_inner import GetPendingUploads200ResponseInner as GetPendingUploads200ResponseInner
+from lilt.models.get_s3_upload_params200_response import GetS3UploadParams200Response as GetS3UploadParams200Response
+from lilt.models.initiate_multipart_upload200_response import InitiateMultipartUpload200Response as InitiateMultipartUpload200Response
+from lilt.models.initiate_multipart_upload_body import InitiateMultipartUploadBody as InitiateMultipartUploadBody
+from lilt.models.initiate_multipart_upload_body_metadata import InitiateMultipartUploadBodyMetadata as InitiateMultipartUploadBodyMetadata
+from lilt.models.initiate_upload_body import InitiateUploadBody as InitiateUploadBody
+from lilt.models.initiate_upload_body_metadata import InitiateUploadBodyMetadata as InitiateUploadBodyMetadata
+from lilt.models.job import Job as Job
+from lilt.models.job_create_parameters import JobCreateParameters as JobCreateParameters
+from lilt.models.job_delete_response import JobDeleteResponse as JobDeleteResponse
+from lilt.models.job_leverage_stats import JobLeverageStats as JobLeverageStats
+from lilt.models.job_project import JobProject as JobProject
+from lilt.models.job_stats import JobStats as JobStats
+from lilt.models.job_update_parameters import JobUpdateParameters as JobUpdateParameters
+from lilt.models.language_pair import LanguagePair as LanguagePair
+from lilt.models.languages_response import LanguagesResponse as LanguagesResponse
+from lilt.models.lilt_create_content import LiltCreateContent as LiltCreateContent
+from lilt.models.lilt_create_content_preferences import LiltCreateContentPreferences as LiltCreateContentPreferences
+from lilt.models.lilt_create_content_request import LiltCreateContentRequest as LiltCreateContentRequest
+from lilt.models.lilt_create_content_template_params import LiltCreateContentTemplateParams as LiltCreateContentTemplateParams
+from lilt.models.memory import Memory as Memory
+from lilt.models.memory_create_parameters import MemoryCreateParameters as MemoryCreateParameters
+from lilt.models.memory_delete_response import MemoryDeleteResponse as MemoryDeleteResponse
+from lilt.models.memory_import_response import MemoryImportResponse as MemoryImportResponse
+from lilt.models.memory_update_parameters import MemoryUpdateParameters as MemoryUpdateParameters
+from lilt.models.model import Model as Model
+from lilt.models.project import Project as Project
+from lilt.models.project_create_parameters import ProjectCreateParameters as ProjectCreateParameters
+from lilt.models.project_delete_response import ProjectDeleteResponse as ProjectDeleteResponse
+from lilt.models.project_stats import ProjectStats as ProjectStats
+from lilt.models.sdlxliff_filter import SDLXLIFFFilter as SDLXLIFFFilter
+from lilt.models.segment import Segment as Segment
+from lilt.models.segment_create_parameters import SegmentCreateParameters as SegmentCreateParameters
+from lilt.models.segment_delete_response import SegmentDeleteResponse as SegmentDeleteResponse
+from lilt.models.segment_done_response import SegmentDoneResponse as SegmentDoneResponse
+from lilt.models.segment_update_parameters import SegmentUpdateParameters as SegmentUpdateParameters
+from lilt.models.sign_lilt_create_terms_response import SignLiltCreateTermsResponse as SignLiltCreateTermsResponse
+from lilt.models.sign_upload_part200_response import SignUploadPart200Response as SignUploadPart200Response
+from lilt.models.source_file import SourceFile as SourceFile
+from lilt.models.tagged_segment import TaggedSegment as TaggedSegment
+from lilt.models.termbase_export_response import TermbaseExportResponse as TermbaseExportResponse
+from lilt.models.translate_segment_body import TranslateSegmentBody as TranslateSegmentBody
+from lilt.models.translation import Translation as Translation
+from lilt.models.translation_info import TranslationInfo as TranslationInfo
+from lilt.models.translation_list import TranslationList as TranslationList
+from lilt.models.translation_memory_entry import TranslationMemoryEntry as TranslationMemoryEntry
+from lilt.models.webhook_response import WebhookResponse as WebhookResponse
+from lilt.models.webhooks_update_request import WebhooksUpdateRequest as WebhooksUpdateRequest
+from lilt.models.webhooks_update_request_any_of import WebhooksUpdateRequestAnyOf as WebhooksUpdateRequestAnyOf
+from lilt.models.webhooks_update_request_any_of1 import WebhooksUpdateRequestAnyOf1 as WebhooksUpdateRequestAnyOf1
+from lilt.models.webhooks_update_request_any_of2 import WebhooksUpdateRequestAnyOf2 as WebhooksUpdateRequestAnyOf2
+from lilt.models.workflow_stage_assignment import WorkflowStageAssignment as WorkflowStageAssignment
+from lilt.models.workflow_stage_template import WorkflowStageTemplate as WorkflowStageTemplate
+from lilt.models.workflow_template import WorkflowTemplate as WorkflowTemplate
+
diff --git a/lilt/api/__init__.py b/lilt/api/__init__.py
index e682ea2..1c60ff1 100644
--- a/lilt/api/__init__.py
+++ b/lilt/api/__init__.py
@@ -9,7 +9,9 @@
from lilt.api.languages_api import LanguagesApi
from lilt.api.memories_api import MemoriesApi
from lilt.api.projects_api import ProjectsApi
+from lilt.api.segments_api import SegmentsApi
from lilt.api.translate_api import TranslateApi
+from lilt.api.uploads_api import UploadsApi
from lilt.api.webhook_configuration_api import WebhookConfigurationApi
from lilt.api.workflows_api import WorkflowsApi
diff --git a/lilt/api/comments_api.py b/lilt/api/comments_api.py
deleted file mode 100644
index 96c5455..0000000
--- a/lilt/api/comments_api.py
+++ /dev/null
@@ -1,538 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import re # noqa: F401
-
-# python 2 and python 3 compatibility library
-import six
-
-from lilt.api_client import ApiClient
-from lilt.exceptions import ( # noqa: F401
- ApiTypeError,
- ApiValueError
-)
-
-
-class CommentsApi(object):
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None):
- if api_client is None:
- api_client = ApiClient()
- self.api_client = api_client
-
- def create_comment(self, document_id, segment_id, body, **kwargs): # noqa: E501
- """Create a new comment # noqa: E501
-
- Create a new comment for the specified Segment ID. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.create_comment(document_id, segment_id, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int document_id: A unique document identifier. (required)
- :param int segment_id: A unique segment identifier. (required)
- :param CommentBody body: The comment being created (required)
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: Comment
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.create_comment_with_http_info(document_id, segment_id, body, **kwargs) # noqa: E501
-
- def create_comment_with_http_info(self, document_id, segment_id, body, **kwargs): # noqa: E501
- """Create a new comment # noqa: E501
-
- Create a new comment for the specified Segment ID. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.create_comment_with_http_info(document_id, segment_id, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int document_id: A unique document identifier. (required)
- :param int segment_id: A unique segment identifier. (required)
- :param CommentBody body: The comment being created (required)
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(Comment, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'document_id',
- 'segment_id',
- 'body'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method create_comment" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'document_id' is set
- if self.api_client.client_side_validation and ('document_id' not in local_var_params or # noqa: E501
- local_var_params['document_id'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `document_id` when calling `create_comment`") # noqa: E501
- # verify the required parameter 'segment_id' is set
- if self.api_client.client_side_validation and ('segment_id' not in local_var_params or # noqa: E501
- local_var_params['segment_id'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `segment_id` when calling `create_comment`") # noqa: E501
- # verify the required parameter 'body' is set
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
- local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `create_comment`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
- if 'document_id' in local_var_params and local_var_params['document_id'] is not None: # noqa: E501
- query_params.append(('document_id', local_var_params['document_id'])) # noqa: E501
- if 'segment_id' in local_var_params and local_var_params['segment_id'] is not None: # noqa: E501
- query_params.append(('segment_id', local_var_params['segment_id'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # HTTP header `Content-Type`
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/comments', 'POST',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='Comment', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def delete_comment(self, comment_id, **kwargs): # noqa: E501
- """Delete a Comment # noqa: E501
-
- Delete a Comment. Example CURL command: ``` curl -X DELETE https://lilt.com/2/comments?key=API_KEY&comment_id=123 ``` # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_comment(comment_id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int comment_id: A unique Comment identifier. (required)
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: CommentDeleteResponse
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.delete_comment_with_http_info(comment_id, **kwargs) # noqa: E501
-
- def delete_comment_with_http_info(self, comment_id, **kwargs): # noqa: E501
- """Delete a Comment # noqa: E501
-
- Delete a Comment. Example CURL command: ``` curl -X DELETE https://lilt.com/2/comments?key=API_KEY&comment_id=123 ``` # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_comment_with_http_info(comment_id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int comment_id: A unique Comment identifier. (required)
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(CommentDeleteResponse, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'comment_id'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method delete_comment" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'comment_id' is set
- if self.api_client.client_side_validation and ('comment_id' not in local_var_params or # noqa: E501
- local_var_params['comment_id'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `comment_id` when calling `delete_comment`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
- if 'comment_id' in local_var_params and local_var_params['comment_id'] is not None: # noqa: E501
- query_params.append(('comment_id', local_var_params['comment_id'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/comments', 'DELETE',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='CommentDeleteResponse', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def get_document_comments(self, document_id, **kwargs): # noqa: E501
- """Retrieve a document's comments by segment # noqa: E501
-
- Retrieves all comments associated with a specified document, grouped by their Segment's ID. To retrieve a document's comments, specify the document_id request parameter. Example CURL command: ``` curl -X GET https://lilt.com/2/comments?key=API_KEY&document_id=123 ``` # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.get_document_comments(document_id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int document_id: A unique document identifier. (required)
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: DocumentComments
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.get_document_comments_with_http_info(document_id, **kwargs) # noqa: E501
-
- def get_document_comments_with_http_info(self, document_id, **kwargs): # noqa: E501
- """Retrieve a document's comments by segment # noqa: E501
-
- Retrieves all comments associated with a specified document, grouped by their Segment's ID. To retrieve a document's comments, specify the document_id request parameter. Example CURL command: ``` curl -X GET https://lilt.com/2/comments?key=API_KEY&document_id=123 ``` # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.get_document_comments_with_http_info(document_id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int document_id: A unique document identifier. (required)
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(DocumentComments, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'document_id'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method get_document_comments" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'document_id' is set
- if self.api_client.client_side_validation and ('document_id' not in local_var_params or # noqa: E501
- local_var_params['document_id'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `document_id` when calling `get_document_comments`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
- if 'document_id' in local_var_params and local_var_params['document_id'] is not None: # noqa: E501
- query_params.append(('document_id', local_var_params['document_id'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/comments', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='DocumentComments', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def update_comment(self, comment_id, document_id, body, **kwargs): # noqa: E501
- """Update an existing comment # noqa: E501
-
- Update an existing comment. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.update_comment(comment_id, document_id, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int comment_id: A unique comment identifier. (required)
- :param int document_id: A unique document identifier. (required)
- :param CommentBody body: The comment being updated. (required)
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: Comment
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.update_comment_with_http_info(comment_id, document_id, body, **kwargs) # noqa: E501
-
- def update_comment_with_http_info(self, comment_id, document_id, body, **kwargs): # noqa: E501
- """Update an existing comment # noqa: E501
-
- Update an existing comment. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.update_comment_with_http_info(comment_id, document_id, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int comment_id: A unique comment identifier. (required)
- :param int document_id: A unique document identifier. (required)
- :param CommentBody body: The comment being updated. (required)
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(Comment, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'comment_id',
- 'document_id',
- 'body'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method update_comment" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'comment_id' is set
- if self.api_client.client_side_validation and ('comment_id' not in local_var_params or # noqa: E501
- local_var_params['comment_id'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `comment_id` when calling `update_comment`") # noqa: E501
- # verify the required parameter 'document_id' is set
- if self.api_client.client_side_validation and ('document_id' not in local_var_params or # noqa: E501
- local_var_params['document_id'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `document_id` when calling `update_comment`") # noqa: E501
- # verify the required parameter 'body' is set
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
- local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `update_comment`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
- if 'comment_id' in local_var_params and local_var_params['comment_id'] is not None: # noqa: E501
- query_params.append(('comment_id', local_var_params['comment_id'])) # noqa: E501
- if 'document_id' in local_var_params and local_var_params['document_id'] is not None: # noqa: E501
- query_params.append(('document_id', local_var_params['document_id'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # HTTP header `Content-Type`
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/comments', 'PUT',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='Comment', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
diff --git a/lilt/api/connectors_api.py b/lilt/api/connectors_api.py
deleted file mode 100644
index 3268e24..0000000
--- a/lilt/api/connectors_api.py
+++ /dev/null
@@ -1,840 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import re # noqa: F401
-
-# python 2 and python 3 compatibility library
-import six
-
-from lilt.api_client import ApiClient
-from lilt.exceptions import ( # noqa: F401
- ApiTypeError,
- ApiValueError
-)
-
-
-class ConnectorsApi(object):
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None):
- if api_client is None:
- api_client = ApiClient()
- self.api_client = api_client
-
- def create_connector(self, body, **kwargs): # noqa: E501
- """Upload a Connector # noqa: E501
-
- Create a new connector linked to a supported external cms. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.create_connector(body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param Connector body: (required)
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: Connector
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.create_connector_with_http_info(body, **kwargs) # noqa: E501
-
- def create_connector_with_http_info(self, body, **kwargs): # noqa: E501
- """Upload a Connector # noqa: E501
-
- Create a new connector linked to a supported external cms. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.create_connector_with_http_info(body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param Connector body: (required)
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(Connector, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'body'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method create_connector" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'body' is set
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
- local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `create_connector`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # HTTP header `Content-Type`
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/connectors', 'POST',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='Connector', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def delete_connector(self, id, **kwargs): # noqa: E501
- """Delete a Connector # noqa: E501
-
- Delete a Connector. Example CURL command: ``` curl -X DELETE https://lilt.com/2/connectors?key=API_KEY&id=123 ``` # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_connector(id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int id: A unique Connector identifier. (required)
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: ConnectorDeleteResponse
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.delete_connector_with_http_info(id, **kwargs) # noqa: E501
-
- def delete_connector_with_http_info(self, id, **kwargs): # noqa: E501
- """Delete a Connector # noqa: E501
-
- Delete a Connector. Example CURL command: ``` curl -X DELETE https://lilt.com/2/connectors?key=API_KEY&id=123 ``` # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_connector_with_http_info(id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int id: A unique Connector identifier. (required)
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(ConnectorDeleteResponse, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'id'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method delete_connector" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'id' is set
- if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501
- local_var_params['id'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `id` when calling `delete_connector`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
- if 'id' in local_var_params and local_var_params['id'] is not None: # noqa: E501
- query_params.append(('id', local_var_params['id'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/connectors', 'DELETE',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='ConnectorDeleteResponse', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def export_connector_job(self, id, **kwargs): # noqa: E501
- """Deliver a Connector Job # noqa: E501
-
- Request an export job for the given connector job ID. This will check Lilt for completed projects that are associated with this job and deliver them to the target system. Example CURL command: ``` curl -X POST https://lilt.com/2/connectors/jobs/deliver?key=API_KEY&id=9274 ``` # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.export_connector_job(id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int id: A unique Connector Job identifier. (required)
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: None
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.export_connector_job_with_http_info(id, **kwargs) # noqa: E501
-
- def export_connector_job_with_http_info(self, id, **kwargs): # noqa: E501
- """Deliver a Connector Job # noqa: E501
-
- Request an export job for the given connector job ID. This will check Lilt for completed projects that are associated with this job and deliver them to the target system. Example CURL command: ``` curl -X POST https://lilt.com/2/connectors/jobs/deliver?key=API_KEY&id=9274 ``` # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.export_connector_job_with_http_info(id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int id: A unique Connector Job identifier. (required)
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: None
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'id'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method export_connector_job" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'id' is set
- if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501
- local_var_params['id'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `id` when calling `export_connector_job`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
- if 'id' in local_var_params and local_var_params['id'] is not None: # noqa: E501
- query_params.append(('id', local_var_params['id'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/connectors/jobs/deliver', 'POST',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type=None, # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def get_connector_jobs(self, id, **kwargs): # noqa: E501
- """Retrieve a Connector Job # noqa: E501
-
- Retrieves a connector job available to your user. Use this to check the status of jobs started by the `/connectors/sync` and `/connectors/jobs/deliver` endpoints. Example CURL command: ``` curl -X GET https://lilt.com/2/connectors/jobs?key=API_KEY&id=9274 ``` # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.get_connector_jobs(id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int id: A unique Connector Job identifier. (required)
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: list[ConnectorJob]
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.get_connector_jobs_with_http_info(id, **kwargs) # noqa: E501
-
- def get_connector_jobs_with_http_info(self, id, **kwargs): # noqa: E501
- """Retrieve a Connector Job # noqa: E501
-
- Retrieves a connector job available to your user. Use this to check the status of jobs started by the `/connectors/sync` and `/connectors/jobs/deliver` endpoints. Example CURL command: ``` curl -X GET https://lilt.com/2/connectors/jobs?key=API_KEY&id=9274 ``` # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.get_connector_jobs_with_http_info(id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int id: A unique Connector Job identifier. (required)
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(list[ConnectorJob], status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'id'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method get_connector_jobs" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'id' is set
- if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501
- local_var_params['id'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `id` when calling `get_connector_jobs`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
- if 'id' in local_var_params and local_var_params['id'] is not None: # noqa: E501
- query_params.append(('id', local_var_params['id'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/connectors/jobs', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='list[ConnectorJob]', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def get_connectors(self, **kwargs): # noqa: E501
- """Retrieve a Connector # noqa: E501
-
- Retrieves one or more connectors available to your user. Connectors are not associated with a project or a memory. To retrieve a specific connector, specify the id request parameter. To retrieve all connectors, omit the id request parameter. Example CURL command: ``` curl -X GET https://lilt.com/2/connectors?key=API_KEY&id=274``` # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.get_connectors(async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int id: A unique Connector identifier.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: list[Connector]
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.get_connectors_with_http_info(**kwargs) # noqa: E501
-
- def get_connectors_with_http_info(self, **kwargs): # noqa: E501
- """Retrieve a Connector # noqa: E501
-
- Retrieves one or more connectors available to your user. Connectors are not associated with a project or a memory. To retrieve a specific connector, specify the id request parameter. To retrieve all connectors, omit the id request parameter. Example CURL command: ``` curl -X GET https://lilt.com/2/connectors?key=API_KEY&id=274``` # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.get_connectors_with_http_info(async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int id: A unique Connector identifier.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(list[Connector], status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'id'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method get_connectors" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
- if 'id' in local_var_params and local_var_params['id'] is not None: # noqa: E501
- query_params.append(('id', local_var_params['id'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/connectors', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='list[Connector]', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def sync_connector(self, id, **kwargs): # noqa: E501
- """Sync a Connector # noqa: E501
-
- Request an import job for the given connector ID. This will check the target system for new content to pull into Lilt. Example CURL command: ``` curl -X GET https://lilt.com/2/connectors/sync?key=API_KEY&id=128 ``` # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.sync_connector(id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int id: A unique Connector identifier. (required)
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: ConnectorJob
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.sync_connector_with_http_info(id, **kwargs) # noqa: E501
-
- def sync_connector_with_http_info(self, id, **kwargs): # noqa: E501
- """Sync a Connector # noqa: E501
-
- Request an import job for the given connector ID. This will check the target system for new content to pull into Lilt. Example CURL command: ``` curl -X GET https://lilt.com/2/connectors/sync?key=API_KEY&id=128 ``` # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.sync_connector_with_http_info(id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int id: A unique Connector identifier. (required)
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(ConnectorJob, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'id'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method sync_connector" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'id' is set
- if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501
- local_var_params['id'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `id` when calling `sync_connector`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
- if 'id' in local_var_params and local_var_params['id'] is not None: # noqa: E501
- query_params.append(('id', local_var_params['id'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/connectors/sync', 'POST',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='ConnectorJob', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def update_connector(self, body, **kwargs): # noqa: E501
- """Upload a Connector # noqa: E501
-
- Create a new connector linked to a supported external content source. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.update_connector(body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param ConnectorArguments body: (required)
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: Connector
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.update_connector_with_http_info(body, **kwargs) # noqa: E501
-
- def update_connector_with_http_info(self, body, **kwargs): # noqa: E501
- """Upload a Connector # noqa: E501
-
- Create a new connector linked to a supported external content source. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.update_connector_with_http_info(body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param ConnectorArguments body: (required)
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(Connector, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'body'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method update_connector" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'body' is set
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
- local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `update_connector`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # HTTP header `Content-Type`
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/connectors', 'PUT',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='Connector', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
diff --git a/lilt/api/converter_config_api.py b/lilt/api/converter_config_api.py
deleted file mode 100644
index 08b3c01..0000000
--- a/lilt/api/converter_config_api.py
+++ /dev/null
@@ -1,758 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import re # noqa: F401
-
-# python 2 and python 3 compatibility library
-import six
-
-from lilt.api_client import ApiClient
-from lilt.exceptions import ( # noqa: F401
- ApiTypeError,
- ApiValueError
-)
-
-
-class ConverterConfigApi(object):
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None):
- if api_client is None:
- api_client = ApiClient()
- self.api_client = api_client
-
- def add_converter_config(self, organization_id, **kwargs): # noqa: E501
- """Add Converter Config # noqa: E501
-
- Add a file filter configuration for your Organization. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.add_converter_config(organization_id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int organization_id: A unique Organization identifier. (required)
- :param CreateConverterConfigParameters body:
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: ConverterConfigUpdateResponse
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.add_converter_config_with_http_info(organization_id, **kwargs) # noqa: E501
-
- def add_converter_config_with_http_info(self, organization_id, **kwargs): # noqa: E501
- """Add Converter Config # noqa: E501
-
- Add a file filter configuration for your Organization. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.add_converter_config_with_http_info(organization_id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int organization_id: A unique Organization identifier. (required)
- :param CreateConverterConfigParameters body:
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(ConverterConfigUpdateResponse, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'organization_id',
- 'body'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method add_converter_config" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'organization_id' is set
- if self.api_client.client_side_validation and ('organization_id' not in local_var_params or # noqa: E501
- local_var_params['organization_id'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `organization_id` when calling `add_converter_config`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
- if 'organization_id' in local_var_params and local_var_params['organization_id'] is not None: # noqa: E501
- query_params.append(('organizationId', local_var_params['organization_id'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # HTTP header `Content-Type`
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/configs/converter', 'PUT',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='ConverterConfigUpdateResponse', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def delete_converter_config(self, config_id, **kwargs): # noqa: E501
- """Delete Converter Config # noqa: E501
-
- Delete a file filter configuration by id. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_converter_config(config_id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int config_id: A unique configuration identifier. (required)
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: ConverterConfigUpdateResponse
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.delete_converter_config_with_http_info(config_id, **kwargs) # noqa: E501
-
- def delete_converter_config_with_http_info(self, config_id, **kwargs): # noqa: E501
- """Delete Converter Config # noqa: E501
-
- Delete a file filter configuration by id. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_converter_config_with_http_info(config_id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int config_id: A unique configuration identifier. (required)
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(ConverterConfigUpdateResponse, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'config_id'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method delete_converter_config" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'config_id' is set
- if self.api_client.client_side_validation and ('config_id' not in local_var_params or # noqa: E501
- local_var_params['config_id'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `config_id` when calling `delete_converter_config`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'config_id' in local_var_params:
- path_params['configId'] = local_var_params['config_id'] # noqa: E501
-
- query_params = []
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/configs/converter/{configId}', 'DELETE',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='ConverterConfigUpdateResponse', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def delete_filter_mapping(self, config_id, file_extension, **kwargs): # noqa: E501
- """Delete Filter Mapping # noqa: E501
-
- Delete a file filter mapping by id and file extension. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_filter_mapping(config_id, file_extension, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int config_id: A unique configuration identifier. (required)
- :param str file_extension: A file extension to delete. (required)
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: dict(str, str)
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.delete_filter_mapping_with_http_info(config_id, file_extension, **kwargs) # noqa: E501
-
- def delete_filter_mapping_with_http_info(self, config_id, file_extension, **kwargs): # noqa: E501
- """Delete Filter Mapping # noqa: E501
-
- Delete a file filter mapping by id and file extension. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_filter_mapping_with_http_info(config_id, file_extension, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int config_id: A unique configuration identifier. (required)
- :param str file_extension: A file extension to delete. (required)
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(dict(str, str), status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'config_id',
- 'file_extension'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method delete_filter_mapping" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'config_id' is set
- if self.api_client.client_side_validation and ('config_id' not in local_var_params or # noqa: E501
- local_var_params['config_id'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `config_id` when calling `delete_filter_mapping`") # noqa: E501
- # verify the required parameter 'file_extension' is set
- if self.api_client.client_side_validation and ('file_extension' not in local_var_params or # noqa: E501
- local_var_params['file_extension'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `file_extension` when calling `delete_filter_mapping`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'config_id' in local_var_params:
- path_params['configId'] = local_var_params['config_id'] # noqa: E501
- if 'file_extension' in local_var_params:
- path_params['fileExtension'] = local_var_params['file_extension'] # noqa: E501
-
- query_params = []
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/configs/converter/{configId}/{fileExtension}', 'DELETE',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='dict(str, str)', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def edit_filter_mapping(self, config_id, file_extension, **kwargs): # noqa: E501
- """Add Filter Mapping # noqa: E501
-
- Add a specific filter mapping to your file filter configuration # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.edit_filter_mapping(config_id, file_extension, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int config_id: A unique configuration identifier. (required)
- :param str file_extension: A file extension for the filter mapping. (required)
- :param EditFilterMappingParameters body:
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: dict(str, str)
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.edit_filter_mapping_with_http_info(config_id, file_extension, **kwargs) # noqa: E501
-
- def edit_filter_mapping_with_http_info(self, config_id, file_extension, **kwargs): # noqa: E501
- """Add Filter Mapping # noqa: E501
-
- Add a specific filter mapping to your file filter configuration # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.edit_filter_mapping_with_http_info(config_id, file_extension, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int config_id: A unique configuration identifier. (required)
- :param str file_extension: A file extension for the filter mapping. (required)
- :param EditFilterMappingParameters body:
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(dict(str, str), status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'config_id',
- 'file_extension',
- 'body'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method edit_filter_mapping" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'config_id' is set
- if self.api_client.client_side_validation and ('config_id' not in local_var_params or # noqa: E501
- local_var_params['config_id'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `config_id` when calling `edit_filter_mapping`") # noqa: E501
- # verify the required parameter 'file_extension' is set
- if self.api_client.client_side_validation and ('file_extension' not in local_var_params or # noqa: E501
- local_var_params['file_extension'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `file_extension` when calling `edit_filter_mapping`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'config_id' in local_var_params:
- path_params['configId'] = local_var_params['config_id'] # noqa: E501
- if 'file_extension' in local_var_params:
- path_params['fileExtension'] = local_var_params['file_extension'] # noqa: E501
-
- query_params = []
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # HTTP header `Content-Type`
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/configs/converter/{configId}/{fileExtension}', 'PUT',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='dict(str, str)', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def get_converter_config_by_id(self, config_id, **kwargs): # noqa: E501
- """Fetch Converter Config by Id # noqa: E501
-
- Fetch a file filter configuration by id. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.get_converter_config_by_id(config_id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int config_id: A unique configuration identifier. (required)
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: dict(str, str)
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.get_converter_config_by_id_with_http_info(config_id, **kwargs) # noqa: E501
-
- def get_converter_config_by_id_with_http_info(self, config_id, **kwargs): # noqa: E501
- """Fetch Converter Config by Id # noqa: E501
-
- Fetch a file filter configuration by id. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.get_converter_config_by_id_with_http_info(config_id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int config_id: A unique configuration identifier. (required)
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(dict(str, str), status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'config_id'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method get_converter_config_by_id" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'config_id' is set
- if self.api_client.client_side_validation and ('config_id' not in local_var_params or # noqa: E501
- local_var_params['config_id'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `config_id` when calling `get_converter_config_by_id`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'config_id' in local_var_params:
- path_params['configId'] = local_var_params['config_id'] # noqa: E501
-
- query_params = []
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/configs/converter/{configId}', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='dict(str, str)', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def get_converter_configs(self, organization_id, **kwargs): # noqa: E501
- """List Converter Configs # noqa: E501
-
- List all file filter configurations for your Organization. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.get_converter_configs(organization_id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int organization_id: A unique Organization identifier. (required)
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: dict(str, str)
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.get_converter_configs_with_http_info(organization_id, **kwargs) # noqa: E501
-
- def get_converter_configs_with_http_info(self, organization_id, **kwargs): # noqa: E501
- """List Converter Configs # noqa: E501
-
- List all file filter configurations for your Organization. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.get_converter_configs_with_http_info(organization_id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int organization_id: A unique Organization identifier. (required)
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(dict(str, str), status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'organization_id'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method get_converter_configs" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'organization_id' is set
- if self.api_client.client_side_validation and ('organization_id' not in local_var_params or # noqa: E501
- local_var_params['organization_id'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `organization_id` when calling `get_converter_configs`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
- if 'organization_id' in local_var_params and local_var_params['organization_id'] is not None: # noqa: E501
- query_params.append(('organizationId', local_var_params['organization_id'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/configs/converter', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='dict(str, str)', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
diff --git a/lilt/api/create_api.py b/lilt/api/create_api.py
index 3787883..db51334 100644
--- a/lilt/api/create_api.py
+++ b/lilt/api/create_api.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/api/documents_api.py b/lilt/api/documents_api.py
index 82d8c39..2782543 100644
--- a/lilt/api/documents_api.py
+++ b/lilt/api/documents_api.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
@@ -353,7 +353,7 @@ def upload_document(
) -> DocumentWithSegments:
"""Upload a File
- 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). Request parameters should be passed as JSON object with the header field `LILT-API`. File names in the header can only contain [US-ASCII characters](https://en.wikipedia.org/wiki/ASCII). File names with characters outside of US-ASCII should be [URI encoded](https://en.wikipedia.org/wiki/Percent-encoding) or transliterated to US-ASCII strings. Example CURL command: ```bash curl -X POST https://api.lilt.com/v2/documents/files?key=API_KEY \\ --header \"LILT-API: {\\\"name\\\": \\\"introduction.xliff\\\",\\\"pretranslate\\\": \\\"tm+mt\\\",\\\"project_id\\\": 9}\" \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @Introduction.xliff ```
+ Create a Document from a file in any of the formats [documented in our knowledge base](/kb/supported-file-formats). Request parameters should be passed as JSON object with the header field `LILT-API`. File names in the header can only contain [US-ASCII characters](https://en.wikipedia.org/wiki/ASCII). File names with characters outside of US-ASCII should be [URI encoded](https://en.wikipedia.org/wiki/Percent-encoding) or transliterated to US-ASCII strings. Example CURL command: ```bash curl -X POST https://api.lilt.com/v2/documents/files?key=API_KEY \\ --header \"LILT-API: {\\\"name\\\": \\\"introduction.xliff\\\",\\\"pretranslate\\\": \\\"tm+mt\\\",\\\"project_id\\\": 9}\" \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @Introduction.xliff ```
:param name: A file name. (required)
:type name: str
@@ -449,7 +449,7 @@ def upload_document_with_http_info(
) -> ApiResponse[DocumentWithSegments]:
"""Upload a File
- 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). Request parameters should be passed as JSON object with the header field `LILT-API`. File names in the header can only contain [US-ASCII characters](https://en.wikipedia.org/wiki/ASCII). File names with characters outside of US-ASCII should be [URI encoded](https://en.wikipedia.org/wiki/Percent-encoding) or transliterated to US-ASCII strings. Example CURL command: ```bash curl -X POST https://api.lilt.com/v2/documents/files?key=API_KEY \\ --header \"LILT-API: {\\\"name\\\": \\\"introduction.xliff\\\",\\\"pretranslate\\\": \\\"tm+mt\\\",\\\"project_id\\\": 9}\" \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @Introduction.xliff ```
+ Create a Document from a file in any of the formats [documented in our knowledge base](/kb/supported-file-formats). Request parameters should be passed as JSON object with the header field `LILT-API`. File names in the header can only contain [US-ASCII characters](https://en.wikipedia.org/wiki/ASCII). File names with characters outside of US-ASCII should be [URI encoded](https://en.wikipedia.org/wiki/Percent-encoding) or transliterated to US-ASCII strings. Example CURL command: ```bash curl -X POST https://api.lilt.com/v2/documents/files?key=API_KEY \\ --header \"LILT-API: {\\\"name\\\": \\\"introduction.xliff\\\",\\\"pretranslate\\\": \\\"tm+mt\\\",\\\"project_id\\\": 9}\" \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @Introduction.xliff ```
:param name: A file name. (required)
:type name: str
@@ -545,7 +545,7 @@ def upload_document_without_preload_content(
) -> RESTResponseType:
"""Upload a File
- 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). Request parameters should be passed as JSON object with the header field `LILT-API`. File names in the header can only contain [US-ASCII characters](https://en.wikipedia.org/wiki/ASCII). File names with characters outside of US-ASCII should be [URI encoded](https://en.wikipedia.org/wiki/Percent-encoding) or transliterated to US-ASCII strings. Example CURL command: ```bash curl -X POST https://api.lilt.com/v2/documents/files?key=API_KEY \\ --header \"LILT-API: {\\\"name\\\": \\\"introduction.xliff\\\",\\\"pretranslate\\\": \\\"tm+mt\\\",\\\"project_id\\\": 9}\" \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @Introduction.xliff ```
+ Create a Document from a file in any of the formats [documented in our knowledge base](/kb/supported-file-formats). Request parameters should be passed as JSON object with the header field `LILT-API`. File names in the header can only contain [US-ASCII characters](https://en.wikipedia.org/wiki/ASCII). File names with characters outside of US-ASCII should be [URI encoded](https://en.wikipedia.org/wiki/Percent-encoding) or transliterated to US-ASCII strings. Example CURL command: ```bash curl -X POST https://api.lilt.com/v2/documents/files?key=API_KEY \\ --header \"LILT-API: {\\\"name\\\": \\\"introduction.xliff\\\",\\\"pretranslate\\\": \\\"tm+mt\\\",\\\"project_id\\\": 9}\" \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @Introduction.xliff ```
:param name: A file name. (required)
:type name: str
diff --git a/lilt/api/domains_api.py b/lilt/api/domains_api.py
index 72f8c9d..aab705e 100644
--- a/lilt/api/domains_api.py
+++ b/lilt/api/domains_api.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
@@ -263,11 +263,9 @@ def _get_domains_serialize(
# process the path parameters
# process the query parameters
- if key is not None:
-
- _query_params.append(('key', key))
-
# process the header parameters
+ if key is not None:
+ _header_params['key'] = key
# process the form parameters
# process the body parameter
diff --git a/lilt/api/files_api.py b/lilt/api/files_api.py
index 58cbc3f..fa10ec2 100644
--- a/lilt/api/files_api.py
+++ b/lilt/api/files_api.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
@@ -20,7 +20,6 @@
from typing import List, Optional, Tuple, Union
from typing_extensions import Annotated
from lilt.models.add_file_label_request import AddFileLabelRequest
-from lilt.models.file_delete_response import FileDeleteResponse
from lilt.models.source_file import SourceFile
from lilt.api_client import ApiClient, RequestSerialized
@@ -354,10 +353,10 @@ def delete_file(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> FileDeleteResponse:
+ ) -> None:
"""Delete a File
- Delete a File. Example CURL command: ```bash curl -X DELETE https://api.lilt.com/v2/files?key=API_KEY&id=123 ```
+ Delete a File. Example CURL command: ```bash curl -X DELETE https://api.lilt.com/v2/files?key=API_KEY&id=123 ```
:param id: A unique File identifier. (required)
:type id: int
@@ -392,7 +391,7 @@ def delete_file(
)
_response_types_map: Dict[str, Optional[str]] = {
- '204': "FileDeleteResponse",
+ '204': None,
'401': "str",
}
response_data = self.api_client.call_api(
@@ -422,10 +421,10 @@ def delete_file_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[FileDeleteResponse]:
+ ) -> ApiResponse[None]:
"""Delete a File
- Delete a File. Example CURL command: ```bash curl -X DELETE https://api.lilt.com/v2/files?key=API_KEY&id=123 ```
+ Delete a File. Example CURL command: ```bash curl -X DELETE https://api.lilt.com/v2/files?key=API_KEY&id=123 ```
:param id: A unique File identifier. (required)
:type id: int
@@ -460,7 +459,7 @@ def delete_file_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '204': "FileDeleteResponse",
+ '204': None,
'401': "str",
}
response_data = self.api_client.call_api(
@@ -493,7 +492,7 @@ def delete_file_without_preload_content(
) -> RESTResponseType:
"""Delete a File
- Delete a File. Example CURL command: ```bash curl -X DELETE https://api.lilt.com/v2/files?key=API_KEY&id=123 ```
+ Delete a File. Example CURL command: ```bash curl -X DELETE https://api.lilt.com/v2/files?key=API_KEY&id=123 ```
:param id: A unique File identifier. (required)
:type id: int
@@ -528,7 +527,7 @@ def delete_file_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '204': "FileDeleteResponse",
+ '204': None,
'401': "str",
}
response_data = self.api_client.call_api(
@@ -576,9 +575,9 @@ def _delete_file_serialize(
if 'Accept' not in _header_params:
_header_params['Accept'] = self.api_client.select_header_accept(
[
- 'application/json',
'application/octet-stream',
- 'text/plain'
+ 'text/plain',
+ 'application/json'
]
)
@@ -1481,7 +1480,7 @@ def upload_file(
) -> SourceFile:
"""Upload a File
- Upload a File in any of the formats [documented in our knowledge base](https://support.lilt.com/hc/en-us/articles/360020816253-File-Formats). Request parameters should be passed in as query string parameters. Example CURL command: ```bash curl -X POST https://api.lilt.com/v2/files?key=API_KEY&name=en_US.json \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @en_US.json ``` Calls to GET /files are used to monitor the language detection results. The API response will be augmented to include detected language and confidence score. The language detection will complete asynchronously. Prior to completion, the `detected_lang` value will be `zxx`, the reserved ISO 639-2 code for \"No linguistic content/not applicable\". If the language can not be determined, or the detection process fails, the `detected_lang` field will return `und`, the reserved ISO 639-2 code for undetermined language, and the `detected_lang_confidence` score will be `0`.
+ Upload a File in any of the formats [documented in our knowledge base](/kb/supported-file-formats). Request parameters should be passed in as query string parameters. Example CURL command: ```bash curl -X POST https://api.lilt.com/v2/files?key=API_KEY&name=en_US.json \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @en_US.json ``` Calls to GET /files are used to monitor the language detection results. The API response will be augmented to include detected language and confidence score. The language detection will complete asynchronously. Prior to completion, the `detected_lang` value will be `zxx`, the reserved ISO 639-2 code for \"No linguistic content/not applicable\". If the language can not be determined, or the detection process fails, the `detected_lang` field will return `und`, the reserved ISO 639-2 code for undetermined language, and the `detected_lang_confidence` score will be `0`.
:param name: A file name. (required)
:type name: str
@@ -1577,7 +1576,7 @@ def upload_file_with_http_info(
) -> ApiResponse[SourceFile]:
"""Upload a File
- Upload a File in any of the formats [documented in our knowledge base](https://support.lilt.com/hc/en-us/articles/360020816253-File-Formats). Request parameters should be passed in as query string parameters. Example CURL command: ```bash curl -X POST https://api.lilt.com/v2/files?key=API_KEY&name=en_US.json \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @en_US.json ``` Calls to GET /files are used to monitor the language detection results. The API response will be augmented to include detected language and confidence score. The language detection will complete asynchronously. Prior to completion, the `detected_lang` value will be `zxx`, the reserved ISO 639-2 code for \"No linguistic content/not applicable\". If the language can not be determined, or the detection process fails, the `detected_lang` field will return `und`, the reserved ISO 639-2 code for undetermined language, and the `detected_lang_confidence` score will be `0`.
+ Upload a File in any of the formats [documented in our knowledge base](/kb/supported-file-formats). Request parameters should be passed in as query string parameters. Example CURL command: ```bash curl -X POST https://api.lilt.com/v2/files?key=API_KEY&name=en_US.json \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @en_US.json ``` Calls to GET /files are used to monitor the language detection results. The API response will be augmented to include detected language and confidence score. The language detection will complete asynchronously. Prior to completion, the `detected_lang` value will be `zxx`, the reserved ISO 639-2 code for \"No linguistic content/not applicable\". If the language can not be determined, or the detection process fails, the `detected_lang` field will return `und`, the reserved ISO 639-2 code for undetermined language, and the `detected_lang_confidence` score will be `0`.
:param name: A file name. (required)
:type name: str
@@ -1673,7 +1672,7 @@ def upload_file_without_preload_content(
) -> RESTResponseType:
"""Upload a File
- Upload a File in any of the formats [documented in our knowledge base](https://support.lilt.com/hc/en-us/articles/360020816253-File-Formats). Request parameters should be passed in as query string parameters. Example CURL command: ```bash curl -X POST https://api.lilt.com/v2/files?key=API_KEY&name=en_US.json \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @en_US.json ``` Calls to GET /files are used to monitor the language detection results. The API response will be augmented to include detected language and confidence score. The language detection will complete asynchronously. Prior to completion, the `detected_lang` value will be `zxx`, the reserved ISO 639-2 code for \"No linguistic content/not applicable\". If the language can not be determined, or the detection process fails, the `detected_lang` field will return `und`, the reserved ISO 639-2 code for undetermined language, and the `detected_lang_confidence` score will be `0`.
+ Upload a File in any of the formats [documented in our knowledge base](/kb/supported-file-formats). Request parameters should be passed in as query string parameters. Example CURL command: ```bash curl -X POST https://api.lilt.com/v2/files?key=API_KEY&name=en_US.json \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @en_US.json ``` Calls to GET /files are used to monitor the language detection results. The API response will be augmented to include detected language and confidence score. The language detection will complete asynchronously. Prior to completion, the `detected_lang` value will be `zxx`, the reserved ISO 639-2 code for \"No linguistic content/not applicable\". If the language can not be determined, or the detection process fails, the `detected_lang` field will return `und`, the reserved ISO 639-2 code for undetermined language, and the `detected_lang_confidence` score will be `0`.
:param name: A file name. (required)
:type name: str
diff --git a/lilt/api/jobs_api.py b/lilt/api/jobs_api.py
index 351b27c..26738eb 100644
--- a/lilt/api/jobs_api.py
+++ b/lilt/api/jobs_api.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/api/languages_api.py b/lilt/api/languages_api.py
index 7efaeed..62d762c 100644
--- a/lilt/api/languages_api.py
+++ b/lilt/api/languages_api.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/api/lexicon_api.py b/lilt/api/lexicon_api.py
deleted file mode 100644
index dc81eab..0000000
--- a/lilt/api/lexicon_api.py
+++ /dev/null
@@ -1,302 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import re # noqa: F401
-
-# python 2 and python 3 compatibility library
-import six
-
-from lilt.api_client import ApiClient
-from lilt.exceptions import ( # noqa: F401
- ApiTypeError,
- ApiValueError
-)
-
-
-class LexiconApi(object):
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None):
- if api_client is None:
- api_client = ApiClient()
- self.api_client = api_client
-
- def query_lexicon(self, memory_id, srclang, trglang, query, **kwargs): # noqa: E501
- """Query a Lexicon # noqa: E501
-
- Query the Lexicon. The Lexicon is an editable termbase / concordance that is integrated with the Memory. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.query_lexicon(memory_id, srclang, trglang, query, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int memory_id: A unique Memory identifier. (required)
- :param str srclang: An ISO 639-1 language code. (required)
- :param str trglang: An ISO 639-1 language code. (required)
- :param str query: The query term. (required)
- :param int n: The maximum number of results to return.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: list[LexiconEntry]
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.query_lexicon_with_http_info(memory_id, srclang, trglang, query, **kwargs) # noqa: E501
-
- def query_lexicon_with_http_info(self, memory_id, srclang, trglang, query, **kwargs): # noqa: E501
- """Query a Lexicon # noqa: E501
-
- Query the Lexicon. The Lexicon is an editable termbase / concordance that is integrated with the Memory. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.query_lexicon_with_http_info(memory_id, srclang, trglang, query, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int memory_id: A unique Memory identifier. (required)
- :param str srclang: An ISO 639-1 language code. (required)
- :param str trglang: An ISO 639-1 language code. (required)
- :param str query: The query term. (required)
- :param int n: The maximum number of results to return.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(list[LexiconEntry], status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'memory_id',
- 'srclang',
- 'trglang',
- 'query',
- 'n'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method query_lexicon" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'memory_id' is set
- if self.api_client.client_side_validation and ('memory_id' not in local_var_params or # noqa: E501
- local_var_params['memory_id'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `memory_id` when calling `query_lexicon`") # noqa: E501
- # verify the required parameter 'srclang' is set
- if self.api_client.client_side_validation and ('srclang' not in local_var_params or # noqa: E501
- local_var_params['srclang'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `srclang` when calling `query_lexicon`") # noqa: E501
- # verify the required parameter 'trglang' is set
- if self.api_client.client_side_validation and ('trglang' not in local_var_params or # noqa: E501
- local_var_params['trglang'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `trglang` when calling `query_lexicon`") # noqa: E501
- # verify the required parameter 'query' is set
- if self.api_client.client_side_validation and ('query' not in local_var_params or # noqa: E501
- local_var_params['query'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `query` when calling `query_lexicon`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
- if 'memory_id' in local_var_params and local_var_params['memory_id'] is not None: # noqa: E501
- query_params.append(('memory_id', local_var_params['memory_id'])) # noqa: E501
- if 'srclang' in local_var_params and local_var_params['srclang'] is not None: # noqa: E501
- query_params.append(('srclang', local_var_params['srclang'])) # noqa: E501
- if 'trglang' in local_var_params and local_var_params['trglang'] is not None: # noqa: E501
- query_params.append(('trglang', local_var_params['trglang'])) # noqa: E501
- if 'query' in local_var_params and local_var_params['query'] is not None: # noqa: E501
- query_params.append(('query', local_var_params['query'])) # noqa: E501
- if 'n' in local_var_params and local_var_params['n'] is not None: # noqa: E501
- query_params.append(('n', local_var_params['n'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/lexicon', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='list[LexiconEntry]', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def update_lexicon(self, body, **kwargs): # noqa: E501
- """Update a Lexicon # noqa: E501
-
- Update the Lexicon (Termbase as displayed in the ui) with a new term. The maximum source length is 250 characters. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.update_lexicon(body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param LexiconUpdateParameters body: (required)
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: LexiconUpdateResponse
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.update_lexicon_with_http_info(body, **kwargs) # noqa: E501
-
- def update_lexicon_with_http_info(self, body, **kwargs): # noqa: E501
- """Update a Lexicon # noqa: E501
-
- Update the Lexicon (Termbase as displayed in the ui) with a new term. The maximum source length is 250 characters. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.update_lexicon_with_http_info(body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param LexiconUpdateParameters body: (required)
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(LexiconUpdateResponse, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'body'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method update_lexicon" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'body' is set
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
- local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `update_lexicon`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # HTTP header `Content-Type`
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/lexicon', 'POST',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='LexiconUpdateResponse', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
diff --git a/lilt/api/memories_api.py b/lilt/api/memories_api.py
index 9ec7a19..0054a40 100644
--- a/lilt/api/memories_api.py
+++ b/lilt/api/memories_api.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
@@ -66,7 +66,7 @@ def create_memory(
) -> Memory:
"""Create a Memory
- Create a new Memory. A Memory is a container that collects source/target sentences for a specific language pair (e.g., English>French). The data in the Memory is used to train the MT system, populate the TM, and update the lexicon. Memories are private to your account - the data is not shared across users - unless you explicitly share a Memory with your team (via web app only). Refer to our KB for a more detailed description.
+ Create a new Memory. A Memory is a container that collects source/target sentences for a specific language pair (e.g., English>French). The data in the Memory is used to train the MT system, populate the TM, and update the lexicon. Memories are private to your account - the data is not shared across users - unless you explicitly share a Memory with your team (via web app only). Refer to our KB for a more detailed description.
:param body: The Memory resource to create. (required)
:type body: MemoryCreateParameters
@@ -134,7 +134,7 @@ def create_memory_with_http_info(
) -> ApiResponse[Memory]:
"""Create a Memory
- Create a new Memory. A Memory is a container that collects source/target sentences for a specific language pair (e.g., English>French). The data in the Memory is used to train the MT system, populate the TM, and update the lexicon. Memories are private to your account - the data is not shared across users - unless you explicitly share a Memory with your team (via web app only). Refer to our KB for a more detailed description.
+ Create a new Memory. A Memory is a container that collects source/target sentences for a specific language pair (e.g., English>French). The data in the Memory is used to train the MT system, populate the TM, and update the lexicon. Memories are private to your account - the data is not shared across users - unless you explicitly share a Memory with your team (via web app only). Refer to our KB for a more detailed description.
:param body: The Memory resource to create. (required)
:type body: MemoryCreateParameters
@@ -202,7 +202,7 @@ def create_memory_without_preload_content(
) -> RESTResponseType:
"""Create a Memory
- Create a new Memory. A Memory is a container that collects source/target sentences for a specific language pair (e.g., English>French). The data in the Memory is used to train the MT system, populate the TM, and update the lexicon. Memories are private to your account - the data is not shared across users - unless you explicitly share a Memory with your team (via web app only). Refer to our KB for a more detailed description.
+ Create a new Memory. A Memory is a container that collects source/target sentences for a specific language pair (e.g., English>French). The data in the Memory is used to train the MT system, populate the TM, and update the lexicon. Memories are private to your account - the data is not shared across users - unless you explicitly share a Memory with your team (via web app only). Refer to our KB for a more detailed description.
:param body: The Memory resource to create. (required)
:type body: MemoryCreateParameters
@@ -1716,7 +1716,7 @@ def import_memory_file(
) -> MemoryImportResponse:
"""File import for a Memory
- Imports common translation memory or termbase file formats to a specific Lilt memory. Currently supported file formats are `*.tmx`, `*.sdltm`, `*.sdlxliff`(With custom Filters), '*.xliff', and `*.tmq` for TM data; `*.csv` and `*.tbx` for termbase data. Request parameters should be passed as JSON object with the header field `LILT-API`. Example CURL command to upload a translation memory file named `my_memory.sdltm` in the current working directory: ```bash curl -X POST https://api.lilt.com/v2/memories/import?key=API_KEY \\ --header \"LILT-API: {\\\"name\\\": \\\"my_memory.sdltm\\\",\\\"memory_id\\\": 42}\" \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @my_memory.sdltm ``` Example CURL command to upload a translation memory file named `my_memory.sdlxliff` in the current working directory, with Custom Filters based on SDLXLIFF fields, conf_name which maps to, percentage, and whether we should ignore unlocked segments. ```bash curl -X POST https://api.lilt.com/v2/memories/import?key=API_KEY \\ --header \"LILT-API: {\\\"name\\\": \\\"my_memory.sdlxliff\\\",\\\"memory_id\\\": 12,\\\"sdlxliff_filters\\\":[{\\\"conf_name\\\": \\\"Translated\\\", \\\"percentage\\\": 100, \\\"allow_unlocked\\\": false}]\"}\" \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @my_memory.sdlxliff ```
+ Imports common translation memory or termbase file formats to a specific LILT memory. Currently supported file formats are `*.tmx`, `*.sdltm`, `*.sdlxliff`(With custom Filters), '*.xliff', and `*.tmq` for TM data; `*.csv` and `*.tbx` for termbase data. Request parameters should be passed as JSON object with the header field `LILT-API`. Example CURL command to upload a translation memory file named `my_memory.sdltm` in the current working directory: ```bash curl -X POST https://api.lilt.com/v2/memories/import?key=API_KEY \\ --header \"LILT-API: {\\\"name\\\": \\\"my_memory.sdltm\\\",\\\"memory_id\\\": 42}\" \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @my_memory.sdltm ``` Example CURL command to upload a translation memory file named `my_memory.sdlxliff` in the current working directory, with Custom Filters based on SDLXLIFF fields, conf_name which maps to, percentage, and whether we should ignore unlocked segments. ```bash curl -X POST https://api.lilt.com/v2/memories/import?key=API_KEY \\ --header \"LILT-API: {\\\"name\\\": \\\"my_memory.sdlxliff\\\",\\\"memory_id\\\": 12,\\\"sdlxliff_filters\\\":[{\\\"conf_name\\\": \\\"Translated\\\", \\\"percentage\\\": 100, \\\"allow_unlocked\\\": false}]\"}\" \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @my_memory.sdlxliff ```
:param memory_id: A unique Memory identifier. (required)
:type memory_id: int
@@ -1804,7 +1804,7 @@ def import_memory_file_with_http_info(
) -> ApiResponse[MemoryImportResponse]:
"""File import for a Memory
- Imports common translation memory or termbase file formats to a specific Lilt memory. Currently supported file formats are `*.tmx`, `*.sdltm`, `*.sdlxliff`(With custom Filters), '*.xliff', and `*.tmq` for TM data; `*.csv` and `*.tbx` for termbase data. Request parameters should be passed as JSON object with the header field `LILT-API`. Example CURL command to upload a translation memory file named `my_memory.sdltm` in the current working directory: ```bash curl -X POST https://api.lilt.com/v2/memories/import?key=API_KEY \\ --header \"LILT-API: {\\\"name\\\": \\\"my_memory.sdltm\\\",\\\"memory_id\\\": 42}\" \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @my_memory.sdltm ``` Example CURL command to upload a translation memory file named `my_memory.sdlxliff` in the current working directory, with Custom Filters based on SDLXLIFF fields, conf_name which maps to, percentage, and whether we should ignore unlocked segments. ```bash curl -X POST https://api.lilt.com/v2/memories/import?key=API_KEY \\ --header \"LILT-API: {\\\"name\\\": \\\"my_memory.sdlxliff\\\",\\\"memory_id\\\": 12,\\\"sdlxliff_filters\\\":[{\\\"conf_name\\\": \\\"Translated\\\", \\\"percentage\\\": 100, \\\"allow_unlocked\\\": false}]\"}\" \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @my_memory.sdlxliff ```
+ Imports common translation memory or termbase file formats to a specific LILT memory. Currently supported file formats are `*.tmx`, `*.sdltm`, `*.sdlxliff`(With custom Filters), '*.xliff', and `*.tmq` for TM data; `*.csv` and `*.tbx` for termbase data. Request parameters should be passed as JSON object with the header field `LILT-API`. Example CURL command to upload a translation memory file named `my_memory.sdltm` in the current working directory: ```bash curl -X POST https://api.lilt.com/v2/memories/import?key=API_KEY \\ --header \"LILT-API: {\\\"name\\\": \\\"my_memory.sdltm\\\",\\\"memory_id\\\": 42}\" \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @my_memory.sdltm ``` Example CURL command to upload a translation memory file named `my_memory.sdlxliff` in the current working directory, with Custom Filters based on SDLXLIFF fields, conf_name which maps to, percentage, and whether we should ignore unlocked segments. ```bash curl -X POST https://api.lilt.com/v2/memories/import?key=API_KEY \\ --header \"LILT-API: {\\\"name\\\": \\\"my_memory.sdlxliff\\\",\\\"memory_id\\\": 12,\\\"sdlxliff_filters\\\":[{\\\"conf_name\\\": \\\"Translated\\\", \\\"percentage\\\": 100, \\\"allow_unlocked\\\": false}]\"}\" \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @my_memory.sdlxliff ```
:param memory_id: A unique Memory identifier. (required)
:type memory_id: int
@@ -1892,7 +1892,7 @@ def import_memory_file_without_preload_content(
) -> RESTResponseType:
"""File import for a Memory
- Imports common translation memory or termbase file formats to a specific Lilt memory. Currently supported file formats are `*.tmx`, `*.sdltm`, `*.sdlxliff`(With custom Filters), '*.xliff', and `*.tmq` for TM data; `*.csv` and `*.tbx` for termbase data. Request parameters should be passed as JSON object with the header field `LILT-API`. Example CURL command to upload a translation memory file named `my_memory.sdltm` in the current working directory: ```bash curl -X POST https://api.lilt.com/v2/memories/import?key=API_KEY \\ --header \"LILT-API: {\\\"name\\\": \\\"my_memory.sdltm\\\",\\\"memory_id\\\": 42}\" \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @my_memory.sdltm ``` Example CURL command to upload a translation memory file named `my_memory.sdlxliff` in the current working directory, with Custom Filters based on SDLXLIFF fields, conf_name which maps to, percentage, and whether we should ignore unlocked segments. ```bash curl -X POST https://api.lilt.com/v2/memories/import?key=API_KEY \\ --header \"LILT-API: {\\\"name\\\": \\\"my_memory.sdlxliff\\\",\\\"memory_id\\\": 12,\\\"sdlxliff_filters\\\":[{\\\"conf_name\\\": \\\"Translated\\\", \\\"percentage\\\": 100, \\\"allow_unlocked\\\": false}]\"}\" \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @my_memory.sdlxliff ```
+ Imports common translation memory or termbase file formats to a specific LILT memory. Currently supported file formats are `*.tmx`, `*.sdltm`, `*.sdlxliff`(With custom Filters), '*.xliff', and `*.tmq` for TM data; `*.csv` and `*.tbx` for termbase data. Request parameters should be passed as JSON object with the header field `LILT-API`. Example CURL command to upload a translation memory file named `my_memory.sdltm` in the current working directory: ```bash curl -X POST https://api.lilt.com/v2/memories/import?key=API_KEY \\ --header \"LILT-API: {\\\"name\\\": \\\"my_memory.sdltm\\\",\\\"memory_id\\\": 42}\" \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @my_memory.sdltm ``` Example CURL command to upload a translation memory file named `my_memory.sdlxliff` in the current working directory, with Custom Filters based on SDLXLIFF fields, conf_name which maps to, percentage, and whether we should ignore unlocked segments. ```bash curl -X POST https://api.lilt.com/v2/memories/import?key=API_KEY \\ --header \"LILT-API: {\\\"name\\\": \\\"my_memory.sdlxliff\\\",\\\"memory_id\\\": 12,\\\"sdlxliff_filters\\\":[{\\\"conf_name\\\": \\\"Translated\\\", \\\"percentage\\\": 100, \\\"allow_unlocked\\\": false}]\"}\" \\ --header \"Content-Type: application/octet-stream\" \\ --data-binary @my_memory.sdlxliff ```
:param memory_id: A unique Memory identifier. (required)
:type memory_id: int
diff --git a/lilt/api/projects_api.py b/lilt/api/projects_api.py
index d722b5c..8a48525 100644
--- a/lilt/api/projects_api.py
+++ b/lilt/api/projects_api.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/api/qa_api.py b/lilt/api/qa_api.py
deleted file mode 100644
index 42f2014..0000000
--- a/lilt/api/qa_api.py
+++ /dev/null
@@ -1,176 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import re # noqa: F401
-
-# python 2 and python 3 compatibility library
-import six
-
-from lilt.api_client import ApiClient
-from lilt.exceptions import ( # noqa: F401
- ApiTypeError,
- ApiValueError
-)
-
-
-class QAApi(object):
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None):
- if api_client is None:
- api_client = ApiClient()
- self.api_client = api_client
-
- def qa_check(self, target, trglang, **kwargs): # noqa: E501
- """Perform QA check # noqa: E501
-
- Perform QA checks on a target string. Optionally, you can specify a source string for additional bilingual checks, e.g. number consistency. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.qa_check(target, trglang, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str target: A target string to be checked. (required)
- :param str trglang: An ISO 639-1 language code. (required)
- :param str source: An optional source string.
- :param str srclang: An ISO 639-1 language code.
- :param int memory_id: Any custom rules defined for this Memory will also be applied as part of the QA check.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: QARuleMatches
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.qa_check_with_http_info(target, trglang, **kwargs) # noqa: E501
-
- def qa_check_with_http_info(self, target, trglang, **kwargs): # noqa: E501
- """Perform QA check # noqa: E501
-
- Perform QA checks on a target string. Optionally, you can specify a source string for additional bilingual checks, e.g. number consistency. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.qa_check_with_http_info(target, trglang, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str target: A target string to be checked. (required)
- :param str trglang: An ISO 639-1 language code. (required)
- :param str source: An optional source string.
- :param str srclang: An ISO 639-1 language code.
- :param int memory_id: Any custom rules defined for this Memory will also be applied as part of the QA check.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(QARuleMatches, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'target',
- 'trglang',
- 'source',
- 'srclang',
- 'memory_id'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method qa_check" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'target' is set
- if self.api_client.client_side_validation and ('target' not in local_var_params or # noqa: E501
- local_var_params['target'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `target` when calling `qa_check`") # noqa: E501
- # verify the required parameter 'trglang' is set
- if self.api_client.client_side_validation and ('trglang' not in local_var_params or # noqa: E501
- local_var_params['trglang'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `trglang` when calling `qa_check`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
- if 'target' in local_var_params and local_var_params['target'] is not None: # noqa: E501
- query_params.append(('target', local_var_params['target'])) # noqa: E501
- if 'trglang' in local_var_params and local_var_params['trglang'] is not None: # noqa: E501
- query_params.append(('trglang', local_var_params['trglang'])) # noqa: E501
- if 'source' in local_var_params and local_var_params['source'] is not None: # noqa: E501
- query_params.append(('source', local_var_params['source'])) # noqa: E501
- if 'srclang' in local_var_params and local_var_params['srclang'] is not None: # noqa: E501
- query_params.append(('srclang', local_var_params['srclang'])) # noqa: E501
- if 'memory_id' in local_var_params and local_var_params['memory_id'] is not None: # noqa: E501
- query_params.append(('memory_id', local_var_params['memory_id'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/qa', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='QARuleMatches', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
diff --git a/lilt/api/root_api.py b/lilt/api/root_api.py
deleted file mode 100644
index e824471..0000000
--- a/lilt/api/root_api.py
+++ /dev/null
@@ -1,143 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import re # noqa: F401
-
-# python 2 and python 3 compatibility library
-import six
-
-from lilt.api_client import ApiClient
-from lilt.exceptions import ( # noqa: F401
- ApiTypeError,
- ApiValueError
-)
-
-
-class RootApi(object):
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None):
- if api_client is None:
- api_client = ApiClient()
- self.api_client = api_client
-
- def root(self, **kwargs): # noqa: E501
- """Retrieve the REST API root # noqa: E501
-
- This resource does not have any attributes. It lists the name of the REST API. This endpoint can be used to verify REST API keys and to check the availability of the REST API. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.root(async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: ApiRoot
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.root_with_http_info(**kwargs) # noqa: E501
-
- def root_with_http_info(self, **kwargs): # noqa: E501
- """Retrieve the REST API root # noqa: E501
-
- This resource does not have any attributes. It lists the name of the REST API. This endpoint can be used to verify REST API keys and to check the availability of the REST API. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.root_with_http_info(async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(ApiRoot, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method root" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='ApiRoot', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
diff --git a/lilt/api/segments_api.py b/lilt/api/segments_api.py
index 647fad2..36d7c4c 100644
--- a/lilt/api/segments_api.py
+++ b/lilt/api/segments_api.py
@@ -1,757 +1,1712 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
-from __future__ import absolute_import
+ Do not edit the class manually.
+""" # noqa: E501
-import re # noqa: F401
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
-# python 2 and python 3 compatibility library
-import six
+from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr
+from typing import List, Optional, Union
+from typing_extensions import Annotated
+from lilt.models.segment import Segment
+from lilt.models.segment_create_parameters import SegmentCreateParameters
+from lilt.models.segment_delete_response import SegmentDeleteResponse
+from lilt.models.segment_done_response import SegmentDoneResponse
+from lilt.models.segment_update_parameters import SegmentUpdateParameters
+from lilt.models.tagged_segment import TaggedSegment
-from lilt.api_client import ApiClient
-from lilt.exceptions import ( # noqa: F401
- ApiTypeError,
- ApiValueError
-)
+from lilt.api_client import ApiClient, RequestSerialized
+from lilt.api_response import ApiResponse
+from lilt.rest import RESTResponseType
-class SegmentsApi(object):
+class SegmentsApi:
"""NOTE: This class is auto generated by OpenAPI Generator
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
- def __init__(self, api_client=None):
+ def __init__(self, api_client=None) -> None:
if api_client is None:
- api_client = ApiClient()
+ api_client = ApiClient.get_default()
self.api_client = api_client
- def create_segment(self, body, **kwargs): # noqa: E501
- """Create a Segment # noqa: E501
- Create a Segment and add it to a Memory. A Segment is a source/target pair that is used to train the machine translation system and populate the translation memory. This is not intended to be used on documents and will throw an error. The maximum source length is 5,000 characters. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.create_segment(body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param SegmentCreateParameters body: (required)
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
+ @validate_call
+ def create_segment(
+ self,
+ segment_create_parameters: Annotated[SegmentCreateParameters, Field(description="The Segment resource to create. To add a Segment to a Memory, include the `memory_id` and `target` parameters. To add a Segment to a Document, include the `document_id` and the `source` parameters. The `target` parameter is optional. ")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> Segment:
+ """Create a Segment
+
+ Create a Segment and add it to a Memory or a Document. A Segment is a source/target pair that is used to train the machine translation system and populate the translation memory. The maximum source length is 5,000 characters.
+
+ :param segment_create_parameters: The Segment resource to create. To add a Segment to a Memory, include the `memory_id` and `target` parameters. To add a Segment to a Document, include the `document_id` and the `source` parameters. The `target` parameter is optional. (required)
+ :type segment_create_parameters: SegmentCreateParameters
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: Segment
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.create_segment_with_http_info(body, **kwargs) # noqa: E501
-
- def create_segment_with_http_info(self, body, **kwargs): # noqa: E501
- """Create a Segment # noqa: E501
-
- Create a Segment and add it to a Memory. A Segment is a source/target pair that is used to train the machine translation system and populate the translation memory. This is not intended to be used on documents and will throw an error. The maximum source length is 5,000 characters. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.create_segment_with_http_info(body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param SegmentCreateParameters body: (required)
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_segment_serialize(
+ segment_create_parameters=segment_create_parameters,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "Segment",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_segment_with_http_info(
+ self,
+ segment_create_parameters: Annotated[SegmentCreateParameters, Field(description="The Segment resource to create. To add a Segment to a Memory, include the `memory_id` and `target` parameters. To add a Segment to a Document, include the `document_id` and the `source` parameters. The `target` parameter is optional. ")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[Segment]:
+ """Create a Segment
+
+ Create a Segment and add it to a Memory or a Document. A Segment is a source/target pair that is used to train the machine translation system and populate the translation memory. The maximum source length is 5,000 characters.
+
+ :param segment_create_parameters: The Segment resource to create. To add a Segment to a Memory, include the `memory_id` and `target` parameters. To add a Segment to a Document, include the `document_id` and the `source` parameters. The `target` parameter is optional. (required)
+ :type segment_create_parameters: SegmentCreateParameters
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: tuple(Segment, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_segment_serialize(
+ segment_create_parameters=segment_create_parameters,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
- local_var_params = locals()
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "Segment",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
- all_params = [
- 'body'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
+
+ @validate_call
+ def create_segment_without_preload_content(
+ self,
+ segment_create_parameters: Annotated[SegmentCreateParameters, Field(description="The Segment resource to create. To add a Segment to a Memory, include the `memory_id` and `target` parameters. To add a Segment to a Document, include the `document_id` and the `source` parameters. The `target` parameter is optional. ")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Create a Segment
+
+ Create a Segment and add it to a Memory or a Document. A Segment is a source/target pair that is used to train the machine translation system and populate the translation memory. The maximum source length is 5,000 characters.
+
+ :param segment_create_parameters: The Segment resource to create. To add a Segment to a Memory, include the `memory_id` and `target` parameters. To add a Segment to a Document, include the `document_id` and the `source` parameters. The `target` parameter is optional. (required)
+ :type segment_create_parameters: SegmentCreateParameters
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_segment_serialize(
+ segment_create_parameters=segment_create_parameters,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
)
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method create_segment" % key
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "Segment",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_segment_serialize(
+ self,
+ segment_create_parameters,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if segment_create_parameters is not None:
+ _body_params = segment_create_parameters
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
)
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'body' is set
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
- local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `create_segment`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # HTTP header `Content-Type`
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/segments', 'POST',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='Segment', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def delete_segment(self, id, **kwargs): # noqa: E501
- """Delete a Segment # noqa: E501
-
- Delete a Segment from memory. This will not delete a segment from a document. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_segment(id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int id: A unique Segment identifier. (required)
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'BasicAuth',
+ 'ApiKeyAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/v2/segments',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_segment(
+ self,
+ id: Annotated[StrictInt, Field(description="A unique Segment identifier.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SegmentDeleteResponse:
+ """Delete a Segment
+
+ Delete a Segment from memory. This will not delete a segment from a document.
+
+ :param id: A unique Segment identifier. (required)
+ :type id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: SegmentDeleteResponse
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.delete_segment_with_http_info(id, **kwargs) # noqa: E501
-
- def delete_segment_with_http_info(self, id, **kwargs): # noqa: E501
- """Delete a Segment # noqa: E501
-
- Delete a Segment from memory. This will not delete a segment from a document. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_segment_with_http_info(id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int id: A unique Segment identifier. (required)
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_segment_serialize(
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SegmentDeleteResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_segment_with_http_info(
+ self,
+ id: Annotated[StrictInt, Field(description="A unique Segment identifier.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SegmentDeleteResponse]:
+ """Delete a Segment
+
+ Delete a Segment from memory. This will not delete a segment from a document.
+
+ :param id: A unique Segment identifier. (required)
+ :type id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: tuple(SegmentDeleteResponse, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_segment_serialize(
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
- local_var_params = locals()
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SegmentDeleteResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
- all_params = [
- 'id'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
+
+ @validate_call
+ def delete_segment_without_preload_content(
+ self,
+ id: Annotated[StrictInt, Field(description="A unique Segment identifier.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete a Segment
+
+ Delete a Segment from memory. This will not delete a segment from a document.
+
+ :param id: A unique Segment identifier. (required)
+ :type id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_segment_serialize(
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
)
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method delete_segment" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'id' is set
- if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501
- local_var_params['id'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `id` when calling `delete_segment`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
- if 'id' in local_var_params and local_var_params['id'] is not None: # noqa: E501
- query_params.append(('id', local_var_params['id'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/segments', 'DELETE',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='SegmentDeleteResponse', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def get_segment(self, id, **kwargs): # noqa: E501
- """Retrieve a Segment # noqa: E501
-
- Retrieve a Segment. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.get_segment(id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int id: A unique Segment identifier. (required)
- :param bool include_comments: Include comments in the response.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SegmentDeleteResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_segment_serialize(
+ self,
+ id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if id is not None:
+
+ _query_params.append(('id', id))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'BasicAuth',
+ 'ApiKeyAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/v2/segments',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_segment(
+ self,
+ id: Annotated[StrictInt, Field(description="A unique Segment identifier.")],
+ include_comments: Annotated[Optional[StrictBool], Field(description="Include comments in the response.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> Segment:
+ """Retrieve a Segment
+
+ Retrieve a Segment.
+
+ :param id: A unique Segment identifier. (required)
+ :type id: int
+ :param include_comments: Include comments in the response.
+ :type include_comments: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: SegmentWithComments
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.get_segment_with_http_info(id, **kwargs) # noqa: E501
-
- def get_segment_with_http_info(self, id, **kwargs): # noqa: E501
- """Retrieve a Segment # noqa: E501
-
- Retrieve a Segment. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.get_segment_with_http_info(id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int id: A unique Segment identifier. (required)
- :param bool include_comments: Include comments in the response.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_segment_serialize(
+ id=id,
+ include_comments=include_comments,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "Segment",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_segment_with_http_info(
+ self,
+ id: Annotated[StrictInt, Field(description="A unique Segment identifier.")],
+ include_comments: Annotated[Optional[StrictBool], Field(description="Include comments in the response.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[Segment]:
+ """Retrieve a Segment
+
+ Retrieve a Segment.
+
+ :param id: A unique Segment identifier. (required)
+ :type id: int
+ :param include_comments: Include comments in the response.
+ :type include_comments: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: tuple(SegmentWithComments, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_segment_serialize(
+ id=id,
+ include_comments=include_comments,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
- local_var_params = locals()
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "Segment",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
- all_params = [
- 'id',
- 'include_comments'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
+
+ @validate_call
+ def get_segment_without_preload_content(
+ self,
+ id: Annotated[StrictInt, Field(description="A unique Segment identifier.")],
+ include_comments: Annotated[Optional[StrictBool], Field(description="Include comments in the response.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Retrieve a Segment
+
+ Retrieve a Segment.
+
+ :param id: A unique Segment identifier. (required)
+ :type id: int
+ :param include_comments: Include comments in the response.
+ :type include_comments: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_segment_serialize(
+ id=id,
+ include_comments=include_comments,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
)
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method get_segment" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'id' is set
- if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501
- local_var_params['id'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `id` when calling `get_segment`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
- if 'id' in local_var_params and local_var_params['id'] is not None: # noqa: E501
- query_params.append(('id', local_var_params['id'])) # noqa: E501
- if 'include_comments' in local_var_params and local_var_params['include_comments'] is not None: # noqa: E501
- query_params.append(('include_comments', local_var_params['include_comments'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/segments', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='SegmentWithComments', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def tag_segment(self, source_tagged, target, memory_id, **kwargs): # noqa: E501
- """Tag a Segment # noqa: E501
-
- Project tags for a segment. The `source_tagged` string contains one or more SGML tags. The `target` string is untagged. This endpoint will automatically place the source tags in the target. Usage charges apply to this endpoint for production REST API keys. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.tag_segment(source_tagged, target, memory_id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str source_tagged: The tagged source string. (required)
- :param str target: The target string. (required)
- :param int memory_id: A unique Memory identifier. (required)
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "Segment",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_segment_serialize(
+ self,
+ id,
+ include_comments,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if id is not None:
+
+ _query_params.append(('id', id))
+
+ if include_comments is not None:
+
+ _query_params.append(('include_comments', include_comments))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'BasicAuth',
+ 'ApiKeyAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v2/segments',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def tag_segment(
+ self,
+ source_tagged: Annotated[StrictStr, Field(description="The tagged source string.")],
+ target: Annotated[StrictStr, Field(description="The target string.")],
+ memory_id: Annotated[StrictInt, Field(description="A unique Memory identifier.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> TaggedSegment:
+ """Tag a Segment
+
+ Project tags for a segment. The `source_tagged` string contains one or more SGML tags. The `target` string is untagged. This endpoint will automatically place the source tags in the target. Usage charges apply to this endpoint for production REST API keys.
+
+ :param source_tagged: The tagged source string. (required)
+ :type source_tagged: str
+ :param target: The target string. (required)
+ :type target: str
+ :param memory_id: A unique Memory identifier. (required)
+ :type memory_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: TaggedSegment
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.tag_segment_with_http_info(source_tagged, target, memory_id, **kwargs) # noqa: E501
-
- def tag_segment_with_http_info(self, source_tagged, target, memory_id, **kwargs): # noqa: E501
- """Tag a Segment # noqa: E501
-
- Project tags for a segment. The `source_tagged` string contains one or more SGML tags. The `target` string is untagged. This endpoint will automatically place the source tags in the target. Usage charges apply to this endpoint for production REST API keys. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.tag_segment_with_http_info(source_tagged, target, memory_id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str source_tagged: The tagged source string. (required)
- :param str target: The target string. (required)
- :param int memory_id: A unique Memory identifier. (required)
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._tag_segment_serialize(
+ source_tagged=source_tagged,
+ target=target,
+ memory_id=memory_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "TaggedSegment",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def tag_segment_with_http_info(
+ self,
+ source_tagged: Annotated[StrictStr, Field(description="The tagged source string.")],
+ target: Annotated[StrictStr, Field(description="The target string.")],
+ memory_id: Annotated[StrictInt, Field(description="A unique Memory identifier.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[TaggedSegment]:
+ """Tag a Segment
+
+ Project tags for a segment. The `source_tagged` string contains one or more SGML tags. The `target` string is untagged. This endpoint will automatically place the source tags in the target. Usage charges apply to this endpoint for production REST API keys.
+
+ :param source_tagged: The tagged source string. (required)
+ :type source_tagged: str
+ :param target: The target string. (required)
+ :type target: str
+ :param memory_id: A unique Memory identifier. (required)
+ :type memory_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: tuple(TaggedSegment, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._tag_segment_serialize(
+ source_tagged=source_tagged,
+ target=target,
+ memory_id=memory_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
- local_var_params = locals()
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "TaggedSegment",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
- all_params = [
- 'source_tagged',
- 'target',
- 'memory_id'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
+
+ @validate_call
+ def tag_segment_without_preload_content(
+ self,
+ source_tagged: Annotated[StrictStr, Field(description="The tagged source string.")],
+ target: Annotated[StrictStr, Field(description="The target string.")],
+ memory_id: Annotated[StrictInt, Field(description="A unique Memory identifier.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Tag a Segment
+
+ Project tags for a segment. The `source_tagged` string contains one or more SGML tags. The `target` string is untagged. This endpoint will automatically place the source tags in the target. Usage charges apply to this endpoint for production REST API keys.
+
+ :param source_tagged: The tagged source string. (required)
+ :type source_tagged: str
+ :param target: The target string. (required)
+ :type target: str
+ :param memory_id: A unique Memory identifier. (required)
+ :type memory_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._tag_segment_serialize(
+ source_tagged=source_tagged,
+ target=target,
+ memory_id=memory_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
)
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method tag_segment" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'source_tagged' is set
- if self.api_client.client_side_validation and ('source_tagged' not in local_var_params or # noqa: E501
- local_var_params['source_tagged'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `source_tagged` when calling `tag_segment`") # noqa: E501
- # verify the required parameter 'target' is set
- if self.api_client.client_side_validation and ('target' not in local_var_params or # noqa: E501
- local_var_params['target'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `target` when calling `tag_segment`") # noqa: E501
- # verify the required parameter 'memory_id' is set
- if self.api_client.client_side_validation and ('memory_id' not in local_var_params or # noqa: E501
- local_var_params['memory_id'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `memory_id` when calling `tag_segment`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
- if 'source_tagged' in local_var_params and local_var_params['source_tagged'] is not None: # noqa: E501
- query_params.append(('source_tagged', local_var_params['source_tagged'])) # noqa: E501
- if 'target' in local_var_params and local_var_params['target'] is not None: # noqa: E501
- query_params.append(('target', local_var_params['target'])) # noqa: E501
- if 'memory_id' in local_var_params and local_var_params['memory_id'] is not None: # noqa: E501
- query_params.append(('memory_id', local_var_params['memory_id'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/segments/tag', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='TaggedSegment', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def unlock_segments(self, body, **kwargs): # noqa: E501
- """Unaccept and unlock segments # noqa: E501
-
- Unaccept and unlock segments. Sets individual segments' \"Review Done\" to false. Confirmed segments will remain confirmed. Example curl: ``` curl --X --request POST 'https://lilt.com/2/segments/review/unlock?key=API_KEY' \\ --header 'Content-Type: application/json' \\ --data-raw '{ \"segmentIds\": [23921, 23922] }' ``` # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.unlock_segments(body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param SegmentDoneResponse body: (required)
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "TaggedSegment",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _tag_segment_serialize(
+ self,
+ source_tagged,
+ target,
+ memory_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if source_tagged is not None:
+
+ _query_params.append(('source_tagged', source_tagged))
+
+ if target is not None:
+
+ _query_params.append(('target', target))
+
+ if memory_id is not None:
+
+ _query_params.append(('memory_id', memory_id))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'BasicAuth',
+ 'ApiKeyAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/segments/tag',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def unlock_segments(
+ self,
+ segment_done_response: Annotated[SegmentDoneResponse, Field(description="segment ids to update")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> List[float]:
+ """Unaccept and unlock segments
+
+ Unaccept and unlock segments. Sets individual segments' \"Review Done\" to false. Confirmed segments will remain confirmed. Example curl: ``` curl --X --request POST 'https://lilt.com/2/segments/review/unlock?key=API_KEY' \\ --header 'Content-Type: application/json' \\ --data-raw '{ \"segmentIds\": [23921, 23922] }' ```
+
+ :param segment_done_response: segment ids to update (required)
+ :type segment_done_response: SegmentDoneResponse
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: list[float]
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.unlock_segments_with_http_info(body, **kwargs) # noqa: E501
-
- def unlock_segments_with_http_info(self, body, **kwargs): # noqa: E501
- """Unaccept and unlock segments # noqa: E501
-
- Unaccept and unlock segments. Sets individual segments' \"Review Done\" to false. Confirmed segments will remain confirmed. Example curl: ``` curl --X --request POST 'https://lilt.com/2/segments/review/unlock?key=API_KEY' \\ --header 'Content-Type: application/json' \\ --data-raw '{ \"segmentIds\": [23921, 23922] }' ``` # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.unlock_segments_with_http_info(body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param SegmentDoneResponse body: (required)
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._unlock_segments_serialize(
+ segment_done_response=segment_done_response,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "List[float]",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def unlock_segments_with_http_info(
+ self,
+ segment_done_response: Annotated[SegmentDoneResponse, Field(description="segment ids to update")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[List[float]]:
+ """Unaccept and unlock segments
+
+ Unaccept and unlock segments. Sets individual segments' \"Review Done\" to false. Confirmed segments will remain confirmed. Example curl: ``` curl --X --request POST 'https://lilt.com/2/segments/review/unlock?key=API_KEY' \\ --header 'Content-Type: application/json' \\ --data-raw '{ \"segmentIds\": [23921, 23922] }' ```
+
+ :param segment_done_response: segment ids to update (required)
+ :type segment_done_response: SegmentDoneResponse
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: tuple(list[float], status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._unlock_segments_serialize(
+ segment_done_response=segment_done_response,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "List[float]",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
- local_var_params = locals()
- all_params = [
- 'body'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
+ @validate_call
+ def unlock_segments_without_preload_content(
+ self,
+ segment_done_response: Annotated[SegmentDoneResponse, Field(description="segment ids to update")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Unaccept and unlock segments
+
+ Unaccept and unlock segments. Sets individual segments' \"Review Done\" to false. Confirmed segments will remain confirmed. Example curl: ``` curl --X --request POST 'https://lilt.com/2/segments/review/unlock?key=API_KEY' \\ --header 'Content-Type: application/json' \\ --data-raw '{ \"segmentIds\": [23921, 23922] }' ```
+
+ :param segment_done_response: segment ids to update (required)
+ :type segment_done_response: SegmentDoneResponse
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._unlock_segments_serialize(
+ segment_done_response=segment_done_response,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
)
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method unlock_segments" % key
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "List[float]",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _unlock_segments_serialize(
+ self,
+ segment_done_response,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if segment_done_response is not None:
+ _body_params = segment_done_response
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
)
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'body' is set
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
- local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `unlock_segments`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # HTTP header `Content-Type`
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/segments/review/unlock', 'POST',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='list[float]', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def update_segment(self, body, **kwargs): # noqa: E501
- """Update a Segment # noqa: E501
-
- Update a Segment in memory. The Memory will be updated with the new target string. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.update_segment(body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param SegmentUpdateParameters body: (required)
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'BasicAuth',
+ 'ApiKeyAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/segments/review/unlock',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_segment(
+ self,
+ segment_update_parameters: Annotated[SegmentUpdateParameters, Field(description="The Segment resource to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> Segment:
+ """Update a Segment
+
+ Update a Segment in memory. The Memory will be updated with the new target string.
+
+ :param segment_update_parameters: The Segment resource to update. (required)
+ :type segment_update_parameters: SegmentUpdateParameters
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: Segment
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.update_segment_with_http_info(body, **kwargs) # noqa: E501
-
- def update_segment_with_http_info(self, body, **kwargs): # noqa: E501
- """Update a Segment # noqa: E501
-
- Update a Segment in memory. The Memory will be updated with the new target string. # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.update_segment_with_http_info(body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param SegmentUpdateParameters body: (required)
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_segment_serialize(
+ segment_update_parameters=segment_update_parameters,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "Segment",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_segment_with_http_info(
+ self,
+ segment_update_parameters: Annotated[SegmentUpdateParameters, Field(description="The Segment resource to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[Segment]:
+ """Update a Segment
+
+ Update a Segment in memory. The Memory will be updated with the new target string.
+
+ :param segment_update_parameters: The Segment resource to update. (required)
+ :type segment_update_parameters: SegmentUpdateParameters
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: tuple(Segment, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_segment_serialize(
+ segment_update_parameters=segment_update_parameters,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
- local_var_params = locals()
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "Segment",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
- all_params = [
- 'body'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
+
+ @validate_call
+ def update_segment_without_preload_content(
+ self,
+ segment_update_parameters: Annotated[SegmentUpdateParameters, Field(description="The Segment resource to update.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update a Segment
+
+ Update a Segment in memory. The Memory will be updated with the new target string.
+
+ :param segment_update_parameters: The Segment resource to update. (required)
+ :type segment_update_parameters: SegmentUpdateParameters
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_segment_serialize(
+ segment_update_parameters=segment_update_parameters,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
)
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method update_segment" % key
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "Segment",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_segment_serialize(
+ self,
+ segment_update_parameters,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if segment_update_parameters is not None:
+ _body_params = segment_update_parameters
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
)
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'body' is set
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
- local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `update_segment`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # HTTP header `Content-Type`
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/segments', 'PUT',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='Segment', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'BasicAuth',
+ 'ApiKeyAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/v2/segments',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/lilt/api/settings_api.py b/lilt/api/settings_api.py
deleted file mode 100644
index b73a375..0000000
--- a/lilt/api/settings_api.py
+++ /dev/null
@@ -1,476 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import re # noqa: F401
-
-# python 2 and python 3 compatibility library
-import six
-
-from lilt.api_client import ApiClient
-from lilt.exceptions import ( # noqa: F401
- ApiTypeError,
- ApiValueError
-)
-
-
-class SettingsApi(object):
- """NOTE: This class is auto generated by OpenAPI Generator
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- def __init__(self, api_client=None):
- if api_client is None:
- api_client = ApiClient()
- self.api_client = api_client
-
- def get_organization_settings(self, **kwargs): # noqa: E501
- """Get organization-level settings # noqa: E501
-
- Get the organization-level settings for the active users organization Example CURL: ``` curl --location --request GET 'https://lilt.com/2/settings/organization?key=' \\ ``` # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.get_organization_settings(async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: dict(str, Setting)
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.get_organization_settings_with_http_info(**kwargs) # noqa: E501
-
- def get_organization_settings_with_http_info(self, **kwargs): # noqa: E501
- """Get organization-level settings # noqa: E501
-
- Get the organization-level settings for the active users organization Example CURL: ``` curl --location --request GET 'https://lilt.com/2/settings/organization?key=' \\ ``` # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.get_organization_settings_with_http_info(async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(dict(str, Setting), status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method get_organization_settings" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/settings/organization', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='dict(str, Setting)', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def get_project_settings(self, project_id, **kwargs): # noqa: E501
- """Get settings for a project # noqa: E501
-
- Get the settings as applied to a specific project. Active settings will combine project-level settings, organization-level settings and fallback to setting default values. Example CURL: ``` curl --location --request GET 'https://lilt.com/2/settings/project/123?key=' \\ ``` # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.get_project_settings(project_id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int project_id: A project id. (required)
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: dict(str, Setting)
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.get_project_settings_with_http_info(project_id, **kwargs) # noqa: E501
-
- def get_project_settings_with_http_info(self, project_id, **kwargs): # noqa: E501
- """Get settings for a project # noqa: E501
-
- Get the settings as applied to a specific project. Active settings will combine project-level settings, organization-level settings and fallback to setting default values. Example CURL: ``` curl --location --request GET 'https://lilt.com/2/settings/project/123?key=' \\ ``` # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.get_project_settings_with_http_info(project_id, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param int project_id: A project id. (required)
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(dict(str, Setting), status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'project_id'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method get_project_settings" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'project_id' is set
- if self.api_client.client_side_validation and ('project_id' not in local_var_params or # noqa: E501
- local_var_params['project_id'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `project_id` when calling `get_project_settings`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'project_id' in local_var_params:
- path_params['projectId'] = local_var_params['project_id'] # noqa: E501
-
- query_params = []
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/settings/project/{projectId}', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='dict(str, Setting)', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def get_user_settings(self, **kwargs): # noqa: E501
- """Get settings for the authenticated user # noqa: E501
-
- Get the active settings applied to the authenticated user. Example CURL: ``` curl --location --request GET 'https://lilt.com/2/settings/user?key=' \\ ``` # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.get_user_settings(async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: dict(str, Setting)
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.get_user_settings_with_http_info(**kwargs) # noqa: E501
-
- def get_user_settings_with_http_info(self, **kwargs): # noqa: E501
- """Get settings for the authenticated user # noqa: E501
-
- Get the active settings applied to the authenticated user. Example CURL: ``` curl --location --request GET 'https://lilt.com/2/settings/user?key=' \\ ``` # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.get_user_settings_with_http_info(async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(dict(str, Setting), status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method get_user_settings" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/settings/user', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='dict(str, Setting)', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def upsert_setting(self, **kwargs): # noqa: E501
- """Update or create a setting # noqa: E501
-
- Create or update the value for the given setting and setting scope. Example CURL to set an organization-level setting: ``` curl --location --request POST 'https://lilt.com/2/settings?key=' \\ --header 'Content-Type: application/json' \\ --data-raw '{ \"settingName\": \"requireBatchQaTranslator\", \"value\": false, \"organizationId\": 285, \"scope\": \"Organization\" }' ``` # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.upsert_setting(async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param SettingUpsertBody body:
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: SettingUpsertResponse
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.upsert_setting_with_http_info(**kwargs) # noqa: E501
-
- def upsert_setting_with_http_info(self, **kwargs): # noqa: E501
- """Update or create a setting # noqa: E501
-
- Create or update the value for the given setting and setting scope. Example CURL to set an organization-level setting: ``` curl --location --request POST 'https://lilt.com/2/settings?key=' \\ --header 'Content-Type: application/json' \\ --data-raw '{ \"settingName\": \"requireBatchQaTranslator\", \"value\": false, \"organizationId\": 285, \"scope\": \"Organization\" }' ``` # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.upsert_setting_with_http_info(async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param SettingUpsertBody body:
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(SettingUpsertResponse, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'body'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method upsert_setting" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
-
- # HTTP header `Content-Type`
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
- ['application/json']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['ApiKeyAuth', 'BasicAuth'] # noqa: E501
-
- return self.api_client.call_api(
- '/settings', 'POST',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='SettingUpsertResponse', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
diff --git a/lilt/api/translate_api.py b/lilt/api/translate_api.py
index 00cd531..d6df8d5 100644
--- a/lilt/api/translate_api.py
+++ b/lilt/api/translate_api.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
@@ -44,10 +44,11 @@ def __init__(self, api_client=None) -> None:
@validate_call
def batch_translate_file(
self,
- file_id: Annotated[StrictStr, Field(description="List of File ids to be translated, comma separated.")],
- memory_id: Annotated[StrictStr, Field(description="Id of Memory to use in translation.")],
- config_id: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="An optional pararameter to specify an import configuration to be applied when extracting translatable content from this file.")] = None,
+ file_id: Annotated[StrictInt, Field(description="List of File ids to be translated, comma separated.")],
+ memory_id: Annotated[StrictInt, Field(description="Id of Memory to use in translation.")],
+ config_id: Annotated[Optional[StrictInt], Field(description="An optional pararameter to specify an import configuration to be applied when extracting translatable content from this file.")] = None,
with_tm: Annotated[Optional[StrictBool], Field(description="An optional boolean parameter to toggle the use of Translation Memory in the translation of the file.")] = None,
+ external_model_id: Annotated[Optional[StrictInt], Field(description="An optional parameter to specify a third-party model to use for translation. This allows you to use external MT providers instead of Lilt's built-in MT system.")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -66,13 +67,15 @@ def batch_translate_file(
Start machine translation of one or more Files that have previously been uploaded. The response will include an `id` parameter that can be used to monitor and download the translations in subsequent calls. Example CURL: ```bash curl -X POST 'https://api.lilt.com/v2/translate/file?key=API_KEY&fileId=583&memoryId=2495&configId=123&withTM=true' ```
:param file_id: List of File ids to be translated, comma separated. (required)
- :type file_id: str
+ :type file_id: int
:param memory_id: Id of Memory to use in translation. (required)
- :type memory_id: str
+ :type memory_id: int
:param config_id: An optional pararameter to specify an import configuration to be applied when extracting translatable content from this file.
- :type config_id: float
+ :type config_id: int
:param with_tm: An optional boolean parameter to toggle the use of Translation Memory in the translation of the file.
:type with_tm: bool
+ :param external_model_id: An optional parameter to specify a third-party model to use for translation. This allows you to use external MT providers instead of Lilt's built-in MT system.
+ :type external_model_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -100,6 +103,7 @@ def batch_translate_file(
memory_id=memory_id,
config_id=config_id,
with_tm=with_tm,
+ external_model_id=external_model_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -124,10 +128,11 @@ def batch_translate_file(
@validate_call
def batch_translate_file_with_http_info(
self,
- file_id: Annotated[StrictStr, Field(description="List of File ids to be translated, comma separated.")],
- memory_id: Annotated[StrictStr, Field(description="Id of Memory to use in translation.")],
- config_id: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="An optional pararameter to specify an import configuration to be applied when extracting translatable content from this file.")] = None,
+ file_id: Annotated[StrictInt, Field(description="List of File ids to be translated, comma separated.")],
+ memory_id: Annotated[StrictInt, Field(description="Id of Memory to use in translation.")],
+ config_id: Annotated[Optional[StrictInt], Field(description="An optional pararameter to specify an import configuration to be applied when extracting translatable content from this file.")] = None,
with_tm: Annotated[Optional[StrictBool], Field(description="An optional boolean parameter to toggle the use of Translation Memory in the translation of the file.")] = None,
+ external_model_id: Annotated[Optional[StrictInt], Field(description="An optional parameter to specify a third-party model to use for translation. This allows you to use external MT providers instead of Lilt's built-in MT system.")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -146,13 +151,15 @@ def batch_translate_file_with_http_info(
Start machine translation of one or more Files that have previously been uploaded. The response will include an `id` parameter that can be used to monitor and download the translations in subsequent calls. Example CURL: ```bash curl -X POST 'https://api.lilt.com/v2/translate/file?key=API_KEY&fileId=583&memoryId=2495&configId=123&withTM=true' ```
:param file_id: List of File ids to be translated, comma separated. (required)
- :type file_id: str
+ :type file_id: int
:param memory_id: Id of Memory to use in translation. (required)
- :type memory_id: str
+ :type memory_id: int
:param config_id: An optional pararameter to specify an import configuration to be applied when extracting translatable content from this file.
- :type config_id: float
+ :type config_id: int
:param with_tm: An optional boolean parameter to toggle the use of Translation Memory in the translation of the file.
:type with_tm: bool
+ :param external_model_id: An optional parameter to specify a third-party model to use for translation. This allows you to use external MT providers instead of Lilt's built-in MT system.
+ :type external_model_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -180,6 +187,7 @@ def batch_translate_file_with_http_info(
memory_id=memory_id,
config_id=config_id,
with_tm=with_tm,
+ external_model_id=external_model_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -204,10 +212,11 @@ def batch_translate_file_with_http_info(
@validate_call
def batch_translate_file_without_preload_content(
self,
- file_id: Annotated[StrictStr, Field(description="List of File ids to be translated, comma separated.")],
- memory_id: Annotated[StrictStr, Field(description="Id of Memory to use in translation.")],
- config_id: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="An optional pararameter to specify an import configuration to be applied when extracting translatable content from this file.")] = None,
+ file_id: Annotated[StrictInt, Field(description="List of File ids to be translated, comma separated.")],
+ memory_id: Annotated[StrictInt, Field(description="Id of Memory to use in translation.")],
+ config_id: Annotated[Optional[StrictInt], Field(description="An optional pararameter to specify an import configuration to be applied when extracting translatable content from this file.")] = None,
with_tm: Annotated[Optional[StrictBool], Field(description="An optional boolean parameter to toggle the use of Translation Memory in the translation of the file.")] = None,
+ external_model_id: Annotated[Optional[StrictInt], Field(description="An optional parameter to specify a third-party model to use for translation. This allows you to use external MT providers instead of Lilt's built-in MT system.")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -226,13 +235,15 @@ def batch_translate_file_without_preload_content(
Start machine translation of one or more Files that have previously been uploaded. The response will include an `id` parameter that can be used to monitor and download the translations in subsequent calls. Example CURL: ```bash curl -X POST 'https://api.lilt.com/v2/translate/file?key=API_KEY&fileId=583&memoryId=2495&configId=123&withTM=true' ```
:param file_id: List of File ids to be translated, comma separated. (required)
- :type file_id: str
+ :type file_id: int
:param memory_id: Id of Memory to use in translation. (required)
- :type memory_id: str
+ :type memory_id: int
:param config_id: An optional pararameter to specify an import configuration to be applied when extracting translatable content from this file.
- :type config_id: float
+ :type config_id: int
:param with_tm: An optional boolean parameter to toggle the use of Translation Memory in the translation of the file.
:type with_tm: bool
+ :param external_model_id: An optional parameter to specify a third-party model to use for translation. This allows you to use external MT providers instead of Lilt's built-in MT system.
+ :type external_model_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -260,6 +271,7 @@ def batch_translate_file_without_preload_content(
memory_id=memory_id,
config_id=config_id,
with_tm=with_tm,
+ external_model_id=external_model_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -283,6 +295,7 @@ def _batch_translate_file_serialize(
memory_id,
config_id,
with_tm,
+ external_model_id,
_request_auth,
_content_type,
_headers,
@@ -321,6 +334,10 @@ def _batch_translate_file_serialize(
_query_params.append(('withTM', with_tm))
+ if external_model_id is not None:
+
+ _query_params.append(('externalModelId', external_model_id))
+
# process the header parameters
# process the form parameters
# process the body parameter
@@ -364,7 +381,7 @@ def _batch_translate_file_serialize(
@validate_call
def download_file(
self,
- id: Annotated[StrictStr, Field(description="A translation id.")],
+ id: Annotated[StrictInt, Field(description="A translation id.")],
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -383,7 +400,7 @@ def download_file(
Download a translated File. Example CURL: ```bash curl -X GET 'https://api.lilt.com/v2/translate/files?key=API_KEY&id=1' ```
:param id: A translation id. (required)
- :type id: str
+ :type id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -432,7 +449,7 @@ def download_file(
@validate_call
def download_file_with_http_info(
self,
- id: Annotated[StrictStr, Field(description="A translation id.")],
+ id: Annotated[StrictInt, Field(description="A translation id.")],
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -451,7 +468,7 @@ def download_file_with_http_info(
Download a translated File. Example CURL: ```bash curl -X GET 'https://api.lilt.com/v2/translate/files?key=API_KEY&id=1' ```
:param id: A translation id. (required)
- :type id: str
+ :type id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -500,7 +517,7 @@ def download_file_with_http_info(
@validate_call
def download_file_without_preload_content(
self,
- id: Annotated[StrictStr, Field(description="A translation id.")],
+ id: Annotated[StrictInt, Field(description="A translation id.")],
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -519,7 +536,7 @@ def download_file_without_preload_content(
Download a translated File. Example CURL: ```bash curl -X GET 'https://api.lilt.com/v2/translate/files?key=API_KEY&id=1' ```
:param id: A translation id. (required)
- :type id: str
+ :type id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -969,7 +986,7 @@ def translate_segment_post(
) -> TranslationList:
"""Translate a segment
- Translate a source string. Setting the `rich` parameter to `true` will change the response format to include additional information about each translation including a model score, word alignments, and formatting information. The rich format can be seen in the example response on this page. By default, this endpoint also returns translation memory (TM) fuzzy matches, along with associated scores. Fuzzy matches always appear ahead of machine translation output in the response. The maximum source length is 5,000 characters. Usage charges apply to this endpoint for production REST API keys.
+ Translate a source string. Setting the `rich` parameter to `true` will change the response format to include additional information about each translation including a model score, word alignments, and formatting information. The rich format can be seen in the example response on this page. By default, this endpoint also returns translation memory (TM) fuzzy matches, along with associated scores. Fuzzy matches always appear ahead of machine translation output in the response. The maximum source length is 5,000 characters. Usage charges apply to this endpoint for production API keys.
:param body:
:type body: TranslateSegmentBody
@@ -1037,7 +1054,7 @@ def translate_segment_post_with_http_info(
) -> ApiResponse[TranslationList]:
"""Translate a segment
- Translate a source string. Setting the `rich` parameter to `true` will change the response format to include additional information about each translation including a model score, word alignments, and formatting information. The rich format can be seen in the example response on this page. By default, this endpoint also returns translation memory (TM) fuzzy matches, along with associated scores. Fuzzy matches always appear ahead of machine translation output in the response. The maximum source length is 5,000 characters. Usage charges apply to this endpoint for production REST API keys.
+ Translate a source string. Setting the `rich` parameter to `true` will change the response format to include additional information about each translation including a model score, word alignments, and formatting information. The rich format can be seen in the example response on this page. By default, this endpoint also returns translation memory (TM) fuzzy matches, along with associated scores. Fuzzy matches always appear ahead of machine translation output in the response. The maximum source length is 5,000 characters. Usage charges apply to this endpoint for production API keys.
:param body:
:type body: TranslateSegmentBody
@@ -1105,7 +1122,7 @@ def translate_segment_post_without_preload_content(
) -> RESTResponseType:
"""Translate a segment
- Translate a source string. Setting the `rich` parameter to `true` will change the response format to include additional information about each translation including a model score, word alignments, and formatting information. The rich format can be seen in the example response on this page. By default, this endpoint also returns translation memory (TM) fuzzy matches, along with associated scores. Fuzzy matches always appear ahead of machine translation output in the response. The maximum source length is 5,000 characters. Usage charges apply to this endpoint for production REST API keys.
+ Translate a source string. Setting the `rich` parameter to `true` will change the response format to include additional information about each translation including a model score, word alignments, and formatting information. The rich format can be seen in the example response on this page. By default, this endpoint also returns translation memory (TM) fuzzy matches, along with associated scores. Fuzzy matches always appear ahead of machine translation output in the response. The maximum source length is 5,000 characters. Usage charges apply to this endpoint for production API keys.
:param body:
:type body: TranslateSegmentBody
diff --git a/lilt/api/uploads_api.py b/lilt/api/uploads_api.py
new file mode 100644
index 0000000..bc4ad55
--- /dev/null
+++ b/lilt/api/uploads_api.py
@@ -0,0 +1,2386 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictStr
+from typing import List, Optional
+from typing_extensions import Annotated
+from lilt.models.cancel_multipart_upload200_response import CancelMultipartUpload200Response
+from lilt.models.complete_multipart_upload200_response import CompleteMultipartUpload200Response
+from lilt.models.complete_multipart_upload_body import CompleteMultipartUploadBody
+from lilt.models.get_pending_uploads200_response_inner import GetPendingUploads200ResponseInner
+from lilt.models.get_s3_upload_params200_response import GetS3UploadParams200Response
+from lilt.models.initiate_multipart_upload200_response import InitiateMultipartUpload200Response
+from lilt.models.initiate_multipart_upload_body import InitiateMultipartUploadBody
+from lilt.models.initiate_upload_body import InitiateUploadBody
+from lilt.models.sign_upload_part200_response import SignUploadPart200Response
+
+from lilt.api_client import ApiClient, RequestSerialized
+from lilt.api_response import ApiResponse
+from lilt.rest import RESTResponseType
+
+
+class UploadsApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def cancel_multipart_upload(
+ self,
+ upload_id: Annotated[StrictStr, Field(description="Multipart upload ID to cancel")],
+ s3_key: Annotated[StrictStr, Field(description="Upload key from initiate response")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CancelMultipartUpload200Response:
+ """Cancel Multipart Upload
+
+ Cancel/abort a multipart upload and clean up any uploaded parts. Example CURL command: ``` curl -X DELETE \"https://lilt.com/v2/upload/s3/multipart/abc123def456?key=API_KEY&key=uploads/user123/file456.zip\" ```
+
+ :param upload_id: Multipart upload ID to cancel (required)
+ :type upload_id: str
+ :param s3_key: Upload key from initiate response (required)
+ :type s3_key: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._cancel_multipart_upload_serialize(
+ upload_id=upload_id,
+ s3_key=s3_key,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CancelMultipartUpload200Response",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def cancel_multipart_upload_with_http_info(
+ self,
+ upload_id: Annotated[StrictStr, Field(description="Multipart upload ID to cancel")],
+ s3_key: Annotated[StrictStr, Field(description="Upload key from initiate response")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CancelMultipartUpload200Response]:
+ """Cancel Multipart Upload
+
+ Cancel/abort a multipart upload and clean up any uploaded parts. Example CURL command: ``` curl -X DELETE \"https://lilt.com/v2/upload/s3/multipart/abc123def456?key=API_KEY&key=uploads/user123/file456.zip\" ```
+
+ :param upload_id: Multipart upload ID to cancel (required)
+ :type upload_id: str
+ :param s3_key: Upload key from initiate response (required)
+ :type s3_key: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._cancel_multipart_upload_serialize(
+ upload_id=upload_id,
+ s3_key=s3_key,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CancelMultipartUpload200Response",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def cancel_multipart_upload_without_preload_content(
+ self,
+ upload_id: Annotated[StrictStr, Field(description="Multipart upload ID to cancel")],
+ s3_key: Annotated[StrictStr, Field(description="Upload key from initiate response")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Cancel Multipart Upload
+
+ Cancel/abort a multipart upload and clean up any uploaded parts. Example CURL command: ``` curl -X DELETE \"https://lilt.com/v2/upload/s3/multipart/abc123def456?key=API_KEY&key=uploads/user123/file456.zip\" ```
+
+ :param upload_id: Multipart upload ID to cancel (required)
+ :type upload_id: str
+ :param s3_key: Upload key from initiate response (required)
+ :type s3_key: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._cancel_multipart_upload_serialize(
+ upload_id=upload_id,
+ s3_key=s3_key,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CancelMultipartUpload200Response",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _cancel_multipart_upload_serialize(
+ self,
+ upload_id,
+ s3_key,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if upload_id is not None:
+ _path_params['uploadId'] = upload_id
+ # process the query parameters
+ if s3_key is not None:
+
+ _query_params.append(('s3Key', s3_key))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'BasicAuth',
+ 'ApiKeyAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/v2/upload/s3/multipart/{uploadId}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def complete_multipart_upload(
+ self,
+ upload_id: Annotated[StrictStr, Field(description="Multipart upload ID from initiate response")],
+ s3_key: Annotated[StrictStr, Field(description="Upload key from initiate response")],
+ complete_multipart_upload_body: Annotated[CompleteMultipartUploadBody, Field(description="Information about uploaded parts.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CompleteMultipartUpload200Response:
+ """Complete Multipart Upload
+
+ Complete a multipart upload by providing all uploaded parts information. Example CURL command: ``` curl -X POST \"https://lilt.com/v2/upload/s3/multipart/abc123def456/complete?key=API_KEY&key=uploads/user123/file456.zip\" \\ --header \"Content-Type: application/json\" \\ --data-raw '{ \"parts\": [ {\"ETag\": \"etag1\", \"PartNumber\": 1}, {\"ETag\": \"etag2\", \"PartNumber\": 2} ] }' ```
+
+ :param upload_id: Multipart upload ID from initiate response (required)
+ :type upload_id: str
+ :param s3_key: Upload key from initiate response (required)
+ :type s3_key: str
+ :param complete_multipart_upload_body: Information about uploaded parts. (required)
+ :type complete_multipart_upload_body: CompleteMultipartUploadBody
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._complete_multipart_upload_serialize(
+ upload_id=upload_id,
+ s3_key=s3_key,
+ complete_multipart_upload_body=complete_multipart_upload_body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CompleteMultipartUpload200Response",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def complete_multipart_upload_with_http_info(
+ self,
+ upload_id: Annotated[StrictStr, Field(description="Multipart upload ID from initiate response")],
+ s3_key: Annotated[StrictStr, Field(description="Upload key from initiate response")],
+ complete_multipart_upload_body: Annotated[CompleteMultipartUploadBody, Field(description="Information about uploaded parts.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CompleteMultipartUpload200Response]:
+ """Complete Multipart Upload
+
+ Complete a multipart upload by providing all uploaded parts information. Example CURL command: ``` curl -X POST \"https://lilt.com/v2/upload/s3/multipart/abc123def456/complete?key=API_KEY&key=uploads/user123/file456.zip\" \\ --header \"Content-Type: application/json\" \\ --data-raw '{ \"parts\": [ {\"ETag\": \"etag1\", \"PartNumber\": 1}, {\"ETag\": \"etag2\", \"PartNumber\": 2} ] }' ```
+
+ :param upload_id: Multipart upload ID from initiate response (required)
+ :type upload_id: str
+ :param s3_key: Upload key from initiate response (required)
+ :type s3_key: str
+ :param complete_multipart_upload_body: Information about uploaded parts. (required)
+ :type complete_multipart_upload_body: CompleteMultipartUploadBody
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._complete_multipart_upload_serialize(
+ upload_id=upload_id,
+ s3_key=s3_key,
+ complete_multipart_upload_body=complete_multipart_upload_body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CompleteMultipartUpload200Response",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def complete_multipart_upload_without_preload_content(
+ self,
+ upload_id: Annotated[StrictStr, Field(description="Multipart upload ID from initiate response")],
+ s3_key: Annotated[StrictStr, Field(description="Upload key from initiate response")],
+ complete_multipart_upload_body: Annotated[CompleteMultipartUploadBody, Field(description="Information about uploaded parts.")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Complete Multipart Upload
+
+ Complete a multipart upload by providing all uploaded parts information. Example CURL command: ``` curl -X POST \"https://lilt.com/v2/upload/s3/multipart/abc123def456/complete?key=API_KEY&key=uploads/user123/file456.zip\" \\ --header \"Content-Type: application/json\" \\ --data-raw '{ \"parts\": [ {\"ETag\": \"etag1\", \"PartNumber\": 1}, {\"ETag\": \"etag2\", \"PartNumber\": 2} ] }' ```
+
+ :param upload_id: Multipart upload ID from initiate response (required)
+ :type upload_id: str
+ :param s3_key: Upload key from initiate response (required)
+ :type s3_key: str
+ :param complete_multipart_upload_body: Information about uploaded parts. (required)
+ :type complete_multipart_upload_body: CompleteMultipartUploadBody
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._complete_multipart_upload_serialize(
+ upload_id=upload_id,
+ s3_key=s3_key,
+ complete_multipart_upload_body=complete_multipart_upload_body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CompleteMultipartUpload200Response",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _complete_multipart_upload_serialize(
+ self,
+ upload_id,
+ s3_key,
+ complete_multipart_upload_body,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if upload_id is not None:
+ _path_params['uploadId'] = upload_id
+ # process the query parameters
+ if s3_key is not None:
+
+ _query_params.append(('s3Key', s3_key))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if complete_multipart_upload_body is not None:
+ _body_params = complete_multipart_upload_body
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'BasicAuth',
+ 'ApiKeyAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/v2/upload/s3/multipart/{uploadId}/complete',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_pending_uploads(
+ self,
+ ids: Annotated[Optional[StrictStr], Field(description="Comma-separated list of upload IDs to filter by.")] = None,
+ statuses: Annotated[Optional[StrictStr], Field(description="Comma-separated list of upload statuses to filter by.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> List[GetPendingUploads200ResponseInner]:
+ """Get All Pending Uploads or specific list of uploads by ids or statuses
+
+ Retrieve all pending uploads for the current user and organization. Example CURL command: ``` curl -X GET https://lilt.com/2/upload?key=API_KEY ```
+
+ :param ids: Comma-separated list of upload IDs to filter by.
+ :type ids: str
+ :param statuses: Comma-separated list of upload statuses to filter by.
+ :type statuses: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_pending_uploads_serialize(
+ ids=ids,
+ statuses=statuses,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "List[GetPendingUploads200ResponseInner]",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_pending_uploads_with_http_info(
+ self,
+ ids: Annotated[Optional[StrictStr], Field(description="Comma-separated list of upload IDs to filter by.")] = None,
+ statuses: Annotated[Optional[StrictStr], Field(description="Comma-separated list of upload statuses to filter by.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[List[GetPendingUploads200ResponseInner]]:
+ """Get All Pending Uploads or specific list of uploads by ids or statuses
+
+ Retrieve all pending uploads for the current user and organization. Example CURL command: ``` curl -X GET https://lilt.com/2/upload?key=API_KEY ```
+
+ :param ids: Comma-separated list of upload IDs to filter by.
+ :type ids: str
+ :param statuses: Comma-separated list of upload statuses to filter by.
+ :type statuses: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_pending_uploads_serialize(
+ ids=ids,
+ statuses=statuses,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "List[GetPendingUploads200ResponseInner]",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_pending_uploads_without_preload_content(
+ self,
+ ids: Annotated[Optional[StrictStr], Field(description="Comma-separated list of upload IDs to filter by.")] = None,
+ statuses: Annotated[Optional[StrictStr], Field(description="Comma-separated list of upload statuses to filter by.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get All Pending Uploads or specific list of uploads by ids or statuses
+
+ Retrieve all pending uploads for the current user and organization. Example CURL command: ``` curl -X GET https://lilt.com/2/upload?key=API_KEY ```
+
+ :param ids: Comma-separated list of upload IDs to filter by.
+ :type ids: str
+ :param statuses: Comma-separated list of upload statuses to filter by.
+ :type statuses: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_pending_uploads_serialize(
+ ids=ids,
+ statuses=statuses,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "List[GetPendingUploads200ResponseInner]",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_pending_uploads_serialize(
+ self,
+ ids,
+ statuses,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if ids is not None:
+
+ _query_params.append(('ids', ids))
+
+ if statuses is not None:
+
+ _query_params.append(('statuses', statuses))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'BasicAuth',
+ 'ApiKeyAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v2/upload',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_s3_upload_params(
+ self,
+ filename: Annotated[StrictStr, Field(description="A file name including file extension.")],
+ type: Annotated[StrictStr, Field(description="The content-type or mime-type of the file to upload.")],
+ metadata_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="The size of the file to upload in bytes.")] = None,
+ metadata_category: Annotated[Optional[StrictStr], Field(description="File category metadata.")] = None,
+ metadata_uuid: Annotated[Optional[StrictStr], Field(description="File UUID metadata.")] = None,
+ metadata_labels: Annotated[Optional[StrictStr], Field(description="Comma-separated list of label names to be added to the file after upload completes.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetS3UploadParams200Response:
+ """Get S3 Upload Parameters
+
+ Get S3 upload parameters via query string. This endpoint provides the necessary information to complete the file upload process using GET parameters. Example CURL command: ``` curl -X GET \"https://lilt.com/v2/upload/s3/params?key=API_KEY&filename=example.json&type=application/json&metadata.size=1024&metadata.labels=important,review-needed\" ```
+
+ :param filename: A file name including file extension. (required)
+ :type filename: str
+ :param type: The content-type or mime-type of the file to upload. (required)
+ :type type: str
+ :param metadata_size: The size of the file to upload in bytes.
+ :type metadata_size: int
+ :param metadata_category: File category metadata.
+ :type metadata_category: str
+ :param metadata_uuid: File UUID metadata.
+ :type metadata_uuid: str
+ :param metadata_labels: Comma-separated list of label names to be added to the file after upload completes.
+ :type metadata_labels: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_s3_upload_params_serialize(
+ filename=filename,
+ type=type,
+ metadata_size=metadata_size,
+ metadata_category=metadata_category,
+ metadata_uuid=metadata_uuid,
+ metadata_labels=metadata_labels,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetS3UploadParams200Response",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_s3_upload_params_with_http_info(
+ self,
+ filename: Annotated[StrictStr, Field(description="A file name including file extension.")],
+ type: Annotated[StrictStr, Field(description="The content-type or mime-type of the file to upload.")],
+ metadata_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="The size of the file to upload in bytes.")] = None,
+ metadata_category: Annotated[Optional[StrictStr], Field(description="File category metadata.")] = None,
+ metadata_uuid: Annotated[Optional[StrictStr], Field(description="File UUID metadata.")] = None,
+ metadata_labels: Annotated[Optional[StrictStr], Field(description="Comma-separated list of label names to be added to the file after upload completes.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetS3UploadParams200Response]:
+ """Get S3 Upload Parameters
+
+ Get S3 upload parameters via query string. This endpoint provides the necessary information to complete the file upload process using GET parameters. Example CURL command: ``` curl -X GET \"https://lilt.com/v2/upload/s3/params?key=API_KEY&filename=example.json&type=application/json&metadata.size=1024&metadata.labels=important,review-needed\" ```
+
+ :param filename: A file name including file extension. (required)
+ :type filename: str
+ :param type: The content-type or mime-type of the file to upload. (required)
+ :type type: str
+ :param metadata_size: The size of the file to upload in bytes.
+ :type metadata_size: int
+ :param metadata_category: File category metadata.
+ :type metadata_category: str
+ :param metadata_uuid: File UUID metadata.
+ :type metadata_uuid: str
+ :param metadata_labels: Comma-separated list of label names to be added to the file after upload completes.
+ :type metadata_labels: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_s3_upload_params_serialize(
+ filename=filename,
+ type=type,
+ metadata_size=metadata_size,
+ metadata_category=metadata_category,
+ metadata_uuid=metadata_uuid,
+ metadata_labels=metadata_labels,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetS3UploadParams200Response",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_s3_upload_params_without_preload_content(
+ self,
+ filename: Annotated[StrictStr, Field(description="A file name including file extension.")],
+ type: Annotated[StrictStr, Field(description="The content-type or mime-type of the file to upload.")],
+ metadata_size: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="The size of the file to upload in bytes.")] = None,
+ metadata_category: Annotated[Optional[StrictStr], Field(description="File category metadata.")] = None,
+ metadata_uuid: Annotated[Optional[StrictStr], Field(description="File UUID metadata.")] = None,
+ metadata_labels: Annotated[Optional[StrictStr], Field(description="Comma-separated list of label names to be added to the file after upload completes.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get S3 Upload Parameters
+
+ Get S3 upload parameters via query string. This endpoint provides the necessary information to complete the file upload process using GET parameters. Example CURL command: ``` curl -X GET \"https://lilt.com/v2/upload/s3/params?key=API_KEY&filename=example.json&type=application/json&metadata.size=1024&metadata.labels=important,review-needed\" ```
+
+ :param filename: A file name including file extension. (required)
+ :type filename: str
+ :param type: The content-type or mime-type of the file to upload. (required)
+ :type type: str
+ :param metadata_size: The size of the file to upload in bytes.
+ :type metadata_size: int
+ :param metadata_category: File category metadata.
+ :type metadata_category: str
+ :param metadata_uuid: File UUID metadata.
+ :type metadata_uuid: str
+ :param metadata_labels: Comma-separated list of label names to be added to the file after upload completes.
+ :type metadata_labels: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_s3_upload_params_serialize(
+ filename=filename,
+ type=type,
+ metadata_size=metadata_size,
+ metadata_category=metadata_category,
+ metadata_uuid=metadata_uuid,
+ metadata_labels=metadata_labels,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetS3UploadParams200Response",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_s3_upload_params_serialize(
+ self,
+ filename,
+ type,
+ metadata_size,
+ metadata_category,
+ metadata_uuid,
+ metadata_labels,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if filename is not None:
+
+ _query_params.append(('filename', filename))
+
+ if type is not None:
+
+ _query_params.append(('type', type))
+
+ if metadata_size is not None:
+
+ _query_params.append(('metadata.size', metadata_size))
+
+ if metadata_category is not None:
+
+ _query_params.append(('metadata.category', metadata_category))
+
+ if metadata_uuid is not None:
+
+ _query_params.append(('metadata.uuid', metadata_uuid))
+
+ if metadata_labels is not None:
+
+ _query_params.append(('metadata.labels', metadata_labels))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'BasicAuth',
+ 'ApiKeyAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v2/upload/s3/params',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_upload_by_id(
+ self,
+ upload_id: Annotated[int, Field(strict=True, ge=1, description="Unique upload identifier")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetPendingUploads200ResponseInner:
+ """Get Upload by ID
+
+ Retrieve a specific upload by its unique identifier. Example CURL command: ``` curl -X GET https://lilt.com/2/upload/12345?key=API_KEY ```
+
+ :param upload_id: Unique upload identifier (required)
+ :type upload_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_upload_by_id_serialize(
+ upload_id=upload_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetPendingUploads200ResponseInner",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_upload_by_id_with_http_info(
+ self,
+ upload_id: Annotated[int, Field(strict=True, ge=1, description="Unique upload identifier")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetPendingUploads200ResponseInner]:
+ """Get Upload by ID
+
+ Retrieve a specific upload by its unique identifier. Example CURL command: ``` curl -X GET https://lilt.com/2/upload/12345?key=API_KEY ```
+
+ :param upload_id: Unique upload identifier (required)
+ :type upload_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_upload_by_id_serialize(
+ upload_id=upload_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetPendingUploads200ResponseInner",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_upload_by_id_without_preload_content(
+ self,
+ upload_id: Annotated[int, Field(strict=True, ge=1, description="Unique upload identifier")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get Upload by ID
+
+ Retrieve a specific upload by its unique identifier. Example CURL command: ``` curl -X GET https://lilt.com/2/upload/12345?key=API_KEY ```
+
+ :param upload_id: Unique upload identifier (required)
+ :type upload_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_upload_by_id_serialize(
+ upload_id=upload_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetPendingUploads200ResponseInner",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_upload_by_id_serialize(
+ self,
+ upload_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if upload_id is not None:
+ _path_params['uploadId'] = upload_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'BasicAuth',
+ 'ApiKeyAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v2/upload/{uploadId}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def initiate_multipart_upload(
+ self,
+ initiate_multipart_upload_body: Annotated[InitiateMultipartUploadBody, Field(description="Information about the file(s) to be uploaded. Can be a single object or an array of objects (max 100). Single file request: `{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }` Bulk request: `[{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }, ...]` ")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> InitiateMultipartUpload200Response:
+ """Initiate Multipart Upload
+
+ Initiate a multipart upload for large files. This endpoint provides the necessary information to start a multipart upload process. Supports both single file and bulk upload requests. For bulk uploads, pass an array of upload objects (maximum 100 items). The response format matches the request format - a single object for single file requests, or an array for bulk requests. Example CURL command (single file): ``` curl -X POST https://lilt.com/v2/upload/s3/multipart?key=API_KEY \\ --header \"Content-Type: application/json\" \\ --data-raw '{ \"filename\": \"large-file.zip\", \"type\": \"application/zip\", \"metadata\": { \"size\": 104857600 } }' ``` Example CURL command (bulk upload): ``` curl -X POST https://lilt.com/v2/upload/s3/multipart?key=API_KEY \\ --header \"Content-Type: application/json\" \\ --data-raw '[ { \"filename\": \"large-file1.zip\", \"type\": \"application/zip\", \"metadata\": { \"size\": 104857600 } }, { \"filename\": \"large-file2.zip\", \"type\": \"application/zip\", \"metadata\": { \"size\": 209715200 } } ]' ```
+
+ :param initiate_multipart_upload_body: Information about the file(s) to be uploaded. Can be a single object or an array of objects (max 100). Single file request: `{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }` Bulk request: `[{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }, ...]` (required)
+ :type initiate_multipart_upload_body: InitiateMultipartUploadBody
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._initiate_multipart_upload_serialize(
+ initiate_multipart_upload_body=initiate_multipart_upload_body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "InitiateMultipartUpload200Response",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def initiate_multipart_upload_with_http_info(
+ self,
+ initiate_multipart_upload_body: Annotated[InitiateMultipartUploadBody, Field(description="Information about the file(s) to be uploaded. Can be a single object or an array of objects (max 100). Single file request: `{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }` Bulk request: `[{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }, ...]` ")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[InitiateMultipartUpload200Response]:
+ """Initiate Multipart Upload
+
+ Initiate a multipart upload for large files. This endpoint provides the necessary information to start a multipart upload process. Supports both single file and bulk upload requests. For bulk uploads, pass an array of upload objects (maximum 100 items). The response format matches the request format - a single object for single file requests, or an array for bulk requests. Example CURL command (single file): ``` curl -X POST https://lilt.com/v2/upload/s3/multipart?key=API_KEY \\ --header \"Content-Type: application/json\" \\ --data-raw '{ \"filename\": \"large-file.zip\", \"type\": \"application/zip\", \"metadata\": { \"size\": 104857600 } }' ``` Example CURL command (bulk upload): ``` curl -X POST https://lilt.com/v2/upload/s3/multipart?key=API_KEY \\ --header \"Content-Type: application/json\" \\ --data-raw '[ { \"filename\": \"large-file1.zip\", \"type\": \"application/zip\", \"metadata\": { \"size\": 104857600 } }, { \"filename\": \"large-file2.zip\", \"type\": \"application/zip\", \"metadata\": { \"size\": 209715200 } } ]' ```
+
+ :param initiate_multipart_upload_body: Information about the file(s) to be uploaded. Can be a single object or an array of objects (max 100). Single file request: `{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }` Bulk request: `[{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }, ...]` (required)
+ :type initiate_multipart_upload_body: InitiateMultipartUploadBody
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._initiate_multipart_upload_serialize(
+ initiate_multipart_upload_body=initiate_multipart_upload_body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "InitiateMultipartUpload200Response",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def initiate_multipart_upload_without_preload_content(
+ self,
+ initiate_multipart_upload_body: Annotated[InitiateMultipartUploadBody, Field(description="Information about the file(s) to be uploaded. Can be a single object or an array of objects (max 100). Single file request: `{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }` Bulk request: `[{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }, ...]` ")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Initiate Multipart Upload
+
+ Initiate a multipart upload for large files. This endpoint provides the necessary information to start a multipart upload process. Supports both single file and bulk upload requests. For bulk uploads, pass an array of upload objects (maximum 100 items). The response format matches the request format - a single object for single file requests, or an array for bulk requests. Example CURL command (single file): ``` curl -X POST https://lilt.com/v2/upload/s3/multipart?key=API_KEY \\ --header \"Content-Type: application/json\" \\ --data-raw '{ \"filename\": \"large-file.zip\", \"type\": \"application/zip\", \"metadata\": { \"size\": 104857600 } }' ``` Example CURL command (bulk upload): ``` curl -X POST https://lilt.com/v2/upload/s3/multipart?key=API_KEY \\ --header \"Content-Type: application/json\" \\ --data-raw '[ { \"filename\": \"large-file1.zip\", \"type\": \"application/zip\", \"metadata\": { \"size\": 104857600 } }, { \"filename\": \"large-file2.zip\", \"type\": \"application/zip\", \"metadata\": { \"size\": 209715200 } } ]' ```
+
+ :param initiate_multipart_upload_body: Information about the file(s) to be uploaded. Can be a single object or an array of objects (max 100). Single file request: `{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }` Bulk request: `[{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }, ...]` (required)
+ :type initiate_multipart_upload_body: InitiateMultipartUploadBody
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._initiate_multipart_upload_serialize(
+ initiate_multipart_upload_body=initiate_multipart_upload_body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "InitiateMultipartUpload200Response",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _initiate_multipart_upload_serialize(
+ self,
+ initiate_multipart_upload_body,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if initiate_multipart_upload_body is not None:
+ _body_params = initiate_multipart_upload_body
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'BasicAuth',
+ 'ApiKeyAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/v2/upload/s3/multipart',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def initiate_s3_upload(
+ self,
+ initiate_upload_body: Annotated[InitiateUploadBody, Field(description="Information about the file(s) to be uploaded. Can be a single object or an array of objects (max 100). Single file request: `{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }` Bulk request: `[{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }, ...]` ")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetS3UploadParams200Response:
+ """Initiate File Upload to Cloud Storage
+
+ Initiate the upload of a file to cloud storage. This endpoint provides the necessary information to complete the file upload process. Supports both single file and bulk upload requests. For bulk uploads, pass an array of upload objects (maximum 100 items). The response format matches the request format - a single object for single file requests, or an array for bulk requests. Example CURL command (single file): ``` curl -X POST https://lilt.com/v2/upload/s3/params?key=API_KEY \\ --header \"Content-Type: application/json\" \\ --data-raw '{ \"filename\": \"example.json\", \"type\": \"application/json\", \"metadata\": { \"size\": 1024, \"labels\": [\"important\", \"review-needed\"] } }' ``` Example CURL command (bulk upload): ``` curl -X POST https://lilt.com/v2/upload/s3/params?key=API_KEY \\ --header \"Content-Type: application/json\" \\ --data-raw '[ { \"filename\": \"file1.json\", \"type\": \"application/json\", \"metadata\": { \"size\": 1024 } }, { \"filename\": \"file2.txt\", \"type\": \"text/plain\", \"metadata\": { \"size\": 2048 } } ]' ```
+
+ :param initiate_upload_body: Information about the file(s) to be uploaded. Can be a single object or an array of objects (max 100). Single file request: `{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }` Bulk request: `[{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }, ...]` (required)
+ :type initiate_upload_body: InitiateUploadBody
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._initiate_s3_upload_serialize(
+ initiate_upload_body=initiate_upload_body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetS3UploadParams200Response",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def initiate_s3_upload_with_http_info(
+ self,
+ initiate_upload_body: Annotated[InitiateUploadBody, Field(description="Information about the file(s) to be uploaded. Can be a single object or an array of objects (max 100). Single file request: `{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }` Bulk request: `[{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }, ...]` ")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetS3UploadParams200Response]:
+ """Initiate File Upload to Cloud Storage
+
+ Initiate the upload of a file to cloud storage. This endpoint provides the necessary information to complete the file upload process. Supports both single file and bulk upload requests. For bulk uploads, pass an array of upload objects (maximum 100 items). The response format matches the request format - a single object for single file requests, or an array for bulk requests. Example CURL command (single file): ``` curl -X POST https://lilt.com/v2/upload/s3/params?key=API_KEY \\ --header \"Content-Type: application/json\" \\ --data-raw '{ \"filename\": \"example.json\", \"type\": \"application/json\", \"metadata\": { \"size\": 1024, \"labels\": [\"important\", \"review-needed\"] } }' ``` Example CURL command (bulk upload): ``` curl -X POST https://lilt.com/v2/upload/s3/params?key=API_KEY \\ --header \"Content-Type: application/json\" \\ --data-raw '[ { \"filename\": \"file1.json\", \"type\": \"application/json\", \"metadata\": { \"size\": 1024 } }, { \"filename\": \"file2.txt\", \"type\": \"text/plain\", \"metadata\": { \"size\": 2048 } } ]' ```
+
+ :param initiate_upload_body: Information about the file(s) to be uploaded. Can be a single object or an array of objects (max 100). Single file request: `{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }` Bulk request: `[{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }, ...]` (required)
+ :type initiate_upload_body: InitiateUploadBody
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._initiate_s3_upload_serialize(
+ initiate_upload_body=initiate_upload_body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetS3UploadParams200Response",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def initiate_s3_upload_without_preload_content(
+ self,
+ initiate_upload_body: Annotated[InitiateUploadBody, Field(description="Information about the file(s) to be uploaded. Can be a single object or an array of objects (max 100). Single file request: `{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }` Bulk request: `[{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }, ...]` ")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Initiate File Upload to Cloud Storage
+
+ Initiate the upload of a file to cloud storage. This endpoint provides the necessary information to complete the file upload process. Supports both single file and bulk upload requests. For bulk uploads, pass an array of upload objects (maximum 100 items). The response format matches the request format - a single object for single file requests, or an array for bulk requests. Example CURL command (single file): ``` curl -X POST https://lilt.com/v2/upload/s3/params?key=API_KEY \\ --header \"Content-Type: application/json\" \\ --data-raw '{ \"filename\": \"example.json\", \"type\": \"application/json\", \"metadata\": { \"size\": 1024, \"labels\": [\"important\", \"review-needed\"] } }' ``` Example CURL command (bulk upload): ``` curl -X POST https://lilt.com/v2/upload/s3/params?key=API_KEY \\ --header \"Content-Type: application/json\" \\ --data-raw '[ { \"filename\": \"file1.json\", \"type\": \"application/json\", \"metadata\": { \"size\": 1024 } }, { \"filename\": \"file2.txt\", \"type\": \"text/plain\", \"metadata\": { \"size\": 2048 } } ]' ```
+
+ :param initiate_upload_body: Information about the file(s) to be uploaded. Can be a single object or an array of objects (max 100). Single file request: `{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }` Bulk request: `[{ \"filename\": \"...\", \"type\": \"...\", \"metadata\": {...} }, ...]` (required)
+ :type initiate_upload_body: InitiateUploadBody
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._initiate_s3_upload_serialize(
+ initiate_upload_body=initiate_upload_body,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetS3UploadParams200Response",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _initiate_s3_upload_serialize(
+ self,
+ initiate_upload_body,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if initiate_upload_body is not None:
+ _body_params = initiate_upload_body
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'BasicAuth',
+ 'ApiKeyAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/v2/upload/s3/params',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def sign_upload_part(
+ self,
+ upload_id: Annotated[StrictStr, Field(description="Multipart upload ID from initiate response")],
+ part_number: Annotated[int, Field(strict=True, ge=1, description="Part number (1-based)")],
+ s3_key: Annotated[StrictStr, Field(description="Upload key from initiate response")],
+ size: Annotated[int, Field(strict=True, ge=0, description="Size of this part in bytes")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SignUploadPart200Response:
+ """Sign Upload Part
+
+ Get a signed URL for uploading a specific part of a multipart upload. Make sure to set the part size to 8MB (8388608 bytes). Example CURL command: ``` curl -X GET \"https://lilt.com/v2/upload/s3/multipart/abc123def456/1?key=API_KEY&key=uploads/user123/file456.zip&size=5242880\" ```
+
+ :param upload_id: Multipart upload ID from initiate response (required)
+ :type upload_id: str
+ :param part_number: Part number (1-based) (required)
+ :type part_number: int
+ :param s3_key: Upload key from initiate response (required)
+ :type s3_key: str
+ :param size: Size of this part in bytes (required)
+ :type size: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._sign_upload_part_serialize(
+ upload_id=upload_id,
+ part_number=part_number,
+ s3_key=s3_key,
+ size=size,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SignUploadPart200Response",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def sign_upload_part_with_http_info(
+ self,
+ upload_id: Annotated[StrictStr, Field(description="Multipart upload ID from initiate response")],
+ part_number: Annotated[int, Field(strict=True, ge=1, description="Part number (1-based)")],
+ s3_key: Annotated[StrictStr, Field(description="Upload key from initiate response")],
+ size: Annotated[int, Field(strict=True, ge=0, description="Size of this part in bytes")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SignUploadPart200Response]:
+ """Sign Upload Part
+
+ Get a signed URL for uploading a specific part of a multipart upload. Make sure to set the part size to 8MB (8388608 bytes). Example CURL command: ``` curl -X GET \"https://lilt.com/v2/upload/s3/multipart/abc123def456/1?key=API_KEY&key=uploads/user123/file456.zip&size=5242880\" ```
+
+ :param upload_id: Multipart upload ID from initiate response (required)
+ :type upload_id: str
+ :param part_number: Part number (1-based) (required)
+ :type part_number: int
+ :param s3_key: Upload key from initiate response (required)
+ :type s3_key: str
+ :param size: Size of this part in bytes (required)
+ :type size: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._sign_upload_part_serialize(
+ upload_id=upload_id,
+ part_number=part_number,
+ s3_key=s3_key,
+ size=size,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SignUploadPart200Response",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def sign_upload_part_without_preload_content(
+ self,
+ upload_id: Annotated[StrictStr, Field(description="Multipart upload ID from initiate response")],
+ part_number: Annotated[int, Field(strict=True, ge=1, description="Part number (1-based)")],
+ s3_key: Annotated[StrictStr, Field(description="Upload key from initiate response")],
+ size: Annotated[int, Field(strict=True, ge=0, description="Size of this part in bytes")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Sign Upload Part
+
+ Get a signed URL for uploading a specific part of a multipart upload. Make sure to set the part size to 8MB (8388608 bytes). Example CURL command: ``` curl -X GET \"https://lilt.com/v2/upload/s3/multipart/abc123def456/1?key=API_KEY&key=uploads/user123/file456.zip&size=5242880\" ```
+
+ :param upload_id: Multipart upload ID from initiate response (required)
+ :type upload_id: str
+ :param part_number: Part number (1-based) (required)
+ :type part_number: int
+ :param s3_key: Upload key from initiate response (required)
+ :type s3_key: str
+ :param size: Size of this part in bytes (required)
+ :type size: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._sign_upload_part_serialize(
+ upload_id=upload_id,
+ part_number=part_number,
+ s3_key=s3_key,
+ size=size,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SignUploadPart200Response",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _sign_upload_part_serialize(
+ self,
+ upload_id,
+ part_number,
+ s3_key,
+ size,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if upload_id is not None:
+ _path_params['uploadId'] = upload_id
+ if part_number is not None:
+ _path_params['partNumber'] = part_number
+ # process the query parameters
+ if s3_key is not None:
+
+ _query_params.append(('s3Key', s3_key))
+
+ if size is not None:
+
+ _query_params.append(('size', size))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'BasicAuth',
+ 'ApiKeyAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/v2/upload/s3/multipart/{uploadId}/partNumber',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/lilt/api/webhook_configuration_api.py b/lilt/api/webhook_configuration_api.py
index ba87dd4..3034a2c 100644
--- a/lilt/api/webhook_configuration_api.py
+++ b/lilt/api/webhook_configuration_api.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/api/workflows_api.py b/lilt/api/workflows_api.py
index 274e6e2..e6dea2e 100644
--- a/lilt/api/workflows_api.py
+++ b/lilt/api/workflows_api.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/api_client.py b/lilt/api_client.py
index 09709f0..85cc303 100644
--- a/lilt/api_client.py
+++ b/lilt/api_client.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
@@ -21,6 +21,7 @@
import os
import re
import tempfile
+import uuid
from urllib.parse import quote
from typing import Tuple, Optional, List, Dict, Union
@@ -90,7 +91,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
- self.user_agent = 'Lilt_Client_Library-Python'
+ self.user_agent = 'OpenAPI-Generator/3.1.0/python'
self.client_side_validation = configuration.client_side_validation
def __enter__(self):
@@ -356,6 +357,8 @@ def sanitize_for_serialization(self, obj):
return obj.get_secret_value()
elif isinstance(obj, self.PRIMITIVE_TYPES):
return obj
+ elif isinstance(obj, uuid.UUID):
+ return str(obj)
elif isinstance(obj, list):
return [
self.sanitize_for_serialization(sub_obj) for sub_obj in obj
@@ -382,6 +385,10 @@ def sanitize_for_serialization(self, obj):
else:
obj_dict = obj.__dict__
+ if isinstance(obj_dict, list):
+ # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict()
+ return self.sanitize_for_serialization(obj_dict)
+
return {
key: self.sanitize_for_serialization(val)
for key, val in obj_dict.items()
@@ -404,7 +411,7 @@ def deserialize(self, response_text: str, response_type: str, content_type: Opti
data = json.loads(response_text)
except ValueError:
data = response_text
- elif re.match(r'^application/(json|[\w!#$&.+-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE):
+ elif re.match(r'^application/(json|[\w!#$&.+\-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE):
if response_text == "":
data = ""
else:
@@ -453,13 +460,13 @@ def __deserialize(self, data, klass):
if klass in self.PRIMITIVE_TYPES:
return self.__deserialize_primitive(data, klass)
- elif klass == object:
+ elif klass is object:
return self.__deserialize_object(data)
- elif klass == datetime.date:
+ elif klass is datetime.date:
return self.__deserialize_date(data)
- elif klass == datetime.datetime:
+ elif klass is datetime.datetime:
return self.__deserialize_datetime(data)
- elif klass == decimal.Decimal:
+ elif klass is decimal.Decimal:
return decimal.Decimal(data)
elif issubclass(klass, Enum):
return self.__deserialize_enum(data, klass)
diff --git a/lilt/configuration.py b/lilt/configuration.py
index 1718620..bfdbf17 100644
--- a/lilt/configuration.py
+++ b/lilt/configuration.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
@@ -164,6 +164,8 @@ class Configuration:
:param retries: Number of retries for API requests.
:param ca_cert_data: verify the peer using concatenated CA certificate data
in PEM (str) or DER (bytes) format.
+ :param cert_file: the path to a client certificate file, for mTLS.
+ :param key_file: the path to a client key file, for mTLS.
:Example:
@@ -221,6 +223,8 @@ def __init__(
ssl_ca_cert: Optional[str]=None,
retries: Optional[int] = None,
ca_cert_data: Optional[Union[str, bytes]] = None,
+ cert_file: Optional[str]=None,
+ key_file: Optional[str]=None,
*,
debug: Optional[bool] = None,
) -> None:
@@ -302,10 +306,10 @@ def __init__(
"""Set this to verify the peer using PEM (str) or DER (bytes)
certificate data.
"""
- self.cert_file = None
+ self.cert_file = cert_file
"""client certificate file
"""
- self.key_file = None
+ self.key_file = key_file
"""client key file
"""
self.assert_hostname = None
@@ -554,8 +558,8 @@ def to_debug_report(self) -> str:
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
- "Version of the API: v3.0.2\n"\
- "SDK Package Version: v3.0.2".\
+ "Version of the API: v3.0.3\n"\
+ "SDK Package Version: 3.1.0".\
format(env=sys.platform, pyversion=sys.version)
def get_host_settings(self) -> List[HostSetting]:
diff --git a/lilt/exceptions.py b/lilt/exceptions.py
index 81f24d4..9536ab7 100644
--- a/lilt/exceptions.py
+++ b/lilt/exceptions.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/__init__.py b/lilt/models/__init__.py
index 217f3ba..f04d0d2 100644
--- a/lilt/models/__init__.py
+++ b/lilt/models/__init__.py
@@ -2,19 +2,22 @@
# flake8: noqa
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
-
# import models into model package
from lilt.models.add_file_label_request import AddFileLabelRequest
+from lilt.models.cancel_multipart_upload200_response import CancelMultipartUpload200Response
+from lilt.models.complete_multipart_upload200_response import CompleteMultipartUpload200Response
+from lilt.models.complete_multipart_upload_body import CompleteMultipartUploadBody
+from lilt.models.complete_multipart_upload_body_parts_inner import CompleteMultipartUploadBodyPartsInner
from lilt.models.create_converter_config_parameters import CreateConverterConfigParameters
from lilt.models.create_webhook_options import CreateWebhookOptions
from lilt.models.delete_lilt_create_content200_response import DeleteLiltCreateContent200Response
@@ -27,9 +30,15 @@
from lilt.models.domain_metadata import DomainMetadata
from lilt.models.domain_reference import DomainReference
from lilt.models.error import Error
-from lilt.models.file_delete_response import FileDeleteResponse
from lilt.models.filter_config import FilterConfig
from lilt.models.get_lilt_create_content_response import GetLiltCreateContentResponse
+from lilt.models.get_pending_uploads200_response_inner import GetPendingUploads200ResponseInner
+from lilt.models.get_s3_upload_params200_response import GetS3UploadParams200Response
+from lilt.models.initiate_multipart_upload200_response import InitiateMultipartUpload200Response
+from lilt.models.initiate_multipart_upload_body import InitiateMultipartUploadBody
+from lilt.models.initiate_multipart_upload_body_metadata import InitiateMultipartUploadBodyMetadata
+from lilt.models.initiate_upload_body import InitiateUploadBody
+from lilt.models.initiate_upload_body_metadata import InitiateUploadBodyMetadata
from lilt.models.job import Job
from lilt.models.job_create_parameters import JobCreateParameters
from lilt.models.job_delete_response import JobDeleteResponse
@@ -55,8 +64,14 @@
from lilt.models.project_stats import ProjectStats
from lilt.models.sdlxliff_filter import SDLXLIFFFilter
from lilt.models.segment import Segment
+from lilt.models.segment_create_parameters import SegmentCreateParameters
+from lilt.models.segment_delete_response import SegmentDeleteResponse
+from lilt.models.segment_done_response import SegmentDoneResponse
+from lilt.models.segment_update_parameters import SegmentUpdateParameters
from lilt.models.sign_lilt_create_terms_response import SignLiltCreateTermsResponse
+from lilt.models.sign_upload_part200_response import SignUploadPart200Response
from lilt.models.source_file import SourceFile
+from lilt.models.tagged_segment import TaggedSegment
from lilt.models.termbase_export_response import TermbaseExportResponse
from lilt.models.translate_segment_body import TranslateSegmentBody
from lilt.models.translation import Translation
@@ -71,3 +86,4 @@
from lilt.models.workflow_stage_assignment import WorkflowStageAssignment
from lilt.models.workflow_stage_template import WorkflowStageTemplate
from lilt.models.workflow_template import WorkflowTemplate
+
diff --git a/lilt/models/add_file_label_request.py b/lilt/models/add_file_label_request.py
index f1412e1..62643f5 100644
--- a/lilt/models/add_file_label_request.py
+++ b/lilt/models/add_file_label_request.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/annotation.py b/lilt/models/annotation.py
deleted file mode 100644
index bb934bb..0000000
--- a/lilt/models/annotation.py
+++ /dev/null
@@ -1,123 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class Annotation(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'text': 'str'
- }
-
- attribute_map = {
- 'text': 'text'
- }
-
- def __init__(self, text=None, local_vars_configuration=None): # noqa: E501
- """Annotation - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._text = None
- self.discriminator = None
-
- if text is not None:
- self.text = text
-
- @property
- def text(self):
- """Gets the text of this Annotation. # noqa: E501
-
- The Comment's annotation text. # noqa: E501
-
- :return: The text of this Annotation. # noqa: E501
- :rtype: str
- """
- return self._text
-
- @text.setter
- def text(self, text):
- """Sets the text of this Annotation.
-
- The Comment's annotation text. # noqa: E501
-
- :param text: The text of this Annotation. # noqa: E501
- :type: str
- """
-
- self._text = text
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, Annotation):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, Annotation):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/api_root.py b/lilt/models/api_root.py
deleted file mode 100644
index 2e64f60..0000000
--- a/lilt/models/api_root.py
+++ /dev/null
@@ -1,147 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class ApiRoot(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'api_name': 'str',
- 'api_root': 'str'
- }
-
- attribute_map = {
- 'api_name': 'api_name',
- 'api_root': 'api_root'
- }
-
- def __init__(self, api_name=None, api_root=None, local_vars_configuration=None): # noqa: E501
- """ApiRoot - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._api_name = None
- self._api_root = None
- self.discriminator = None
-
- if api_name is not None:
- self.api_name = api_name
- if api_root is not None:
- self.api_root = api_root
-
- @property
- def api_name(self):
- """Gets the api_name of this ApiRoot. # noqa: E501
-
-
- :return: The api_name of this ApiRoot. # noqa: E501
- :rtype: str
- """
- return self._api_name
-
- @api_name.setter
- def api_name(self, api_name):
- """Sets the api_name of this ApiRoot.
-
-
- :param api_name: The api_name of this ApiRoot. # noqa: E501
- :type: str
- """
-
- self._api_name = api_name
-
- @property
- def api_root(self):
- """Gets the api_root of this ApiRoot. # noqa: E501
-
-
- :return: The api_root of this ApiRoot. # noqa: E501
- :rtype: str
- """
- return self._api_root
-
- @api_root.setter
- def api_root(self, api_root):
- """Sets the api_root of this ApiRoot.
-
-
- :param api_root: The api_root of this ApiRoot. # noqa: E501
- :type: str
- """
-
- self._api_root = api_root
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, ApiRoot):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, ApiRoot):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/assignment_details.py b/lilt/models/assignment_details.py
deleted file mode 100644
index c917ba1..0000000
--- a/lilt/models/assignment_details.py
+++ /dev/null
@@ -1,381 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class AssignmentDetails(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'is_preferred_translator': 'bool',
- 'words_left_averaged_translator': 'int',
- 'words_left_averaged_reviewer': 'int',
- 'assignment_errors': 'list[str]',
- 'doc_id': 'int',
- 'project_id': 'int',
- 'is_auto_assigned': 'bool',
- 'translator_user_id': 'int',
- 'translator_role_id': 'int',
- 'translator_due_date': 'str',
- 'reviewer_user_id': 'int'
- }
-
- attribute_map = {
- 'is_preferred_translator': 'isPreferredTranslator',
- 'words_left_averaged_translator': 'wordsLeftAveragedTranslator',
- 'words_left_averaged_reviewer': 'wordsLeftAveragedReviewer',
- 'assignment_errors': 'assignmentErrors',
- 'doc_id': 'docId',
- 'project_id': 'projectId',
- 'is_auto_assigned': 'isAutoAssigned',
- 'translator_user_id': 'translatorUserId',
- 'translator_role_id': 'translatorRoleId',
- 'translator_due_date': 'translatorDueDate',
- 'reviewer_user_id': 'reviewerUserId'
- }
-
- def __init__(self, is_preferred_translator=None, words_left_averaged_translator=None, words_left_averaged_reviewer=None, assignment_errors=None, doc_id=None, project_id=None, is_auto_assigned=None, translator_user_id=None, translator_role_id=None, translator_due_date=None, reviewer_user_id=None, local_vars_configuration=None): # noqa: E501
- """AssignmentDetails - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._is_preferred_translator = None
- self._words_left_averaged_translator = None
- self._words_left_averaged_reviewer = None
- self._assignment_errors = None
- self._doc_id = None
- self._project_id = None
- self._is_auto_assigned = None
- self._translator_user_id = None
- self._translator_role_id = None
- self._translator_due_date = None
- self._reviewer_user_id = None
- self.discriminator = None
-
- if is_preferred_translator is not None:
- self.is_preferred_translator = is_preferred_translator
- if words_left_averaged_translator is not None:
- self.words_left_averaged_translator = words_left_averaged_translator
- if words_left_averaged_reviewer is not None:
- self.words_left_averaged_reviewer = words_left_averaged_reviewer
- if assignment_errors is not None:
- self.assignment_errors = assignment_errors
- if doc_id is not None:
- self.doc_id = doc_id
- if project_id is not None:
- self.project_id = project_id
- if is_auto_assigned is not None:
- self.is_auto_assigned = is_auto_assigned
- if translator_user_id is not None:
- self.translator_user_id = translator_user_id
- if translator_role_id is not None:
- self.translator_role_id = translator_role_id
- if translator_due_date is not None:
- self.translator_due_date = translator_due_date
- if reviewer_user_id is not None:
- self.reviewer_user_id = reviewer_user_id
-
- @property
- def is_preferred_translator(self):
- """Gets the is_preferred_translator of this AssignmentDetails. # noqa: E501
-
-
- :return: The is_preferred_translator of this AssignmentDetails. # noqa: E501
- :rtype: bool
- """
- return self._is_preferred_translator
-
- @is_preferred_translator.setter
- def is_preferred_translator(self, is_preferred_translator):
- """Sets the is_preferred_translator of this AssignmentDetails.
-
-
- :param is_preferred_translator: The is_preferred_translator of this AssignmentDetails. # noqa: E501
- :type: bool
- """
-
- self._is_preferred_translator = is_preferred_translator
-
- @property
- def words_left_averaged_translator(self):
- """Gets the words_left_averaged_translator of this AssignmentDetails. # noqa: E501
-
-
- :return: The words_left_averaged_translator of this AssignmentDetails. # noqa: E501
- :rtype: int
- """
- return self._words_left_averaged_translator
-
- @words_left_averaged_translator.setter
- def words_left_averaged_translator(self, words_left_averaged_translator):
- """Sets the words_left_averaged_translator of this AssignmentDetails.
-
-
- :param words_left_averaged_translator: The words_left_averaged_translator of this AssignmentDetails. # noqa: E501
- :type: int
- """
-
- self._words_left_averaged_translator = words_left_averaged_translator
-
- @property
- def words_left_averaged_reviewer(self):
- """Gets the words_left_averaged_reviewer of this AssignmentDetails. # noqa: E501
-
-
- :return: The words_left_averaged_reviewer of this AssignmentDetails. # noqa: E501
- :rtype: int
- """
- return self._words_left_averaged_reviewer
-
- @words_left_averaged_reviewer.setter
- def words_left_averaged_reviewer(self, words_left_averaged_reviewer):
- """Sets the words_left_averaged_reviewer of this AssignmentDetails.
-
-
- :param words_left_averaged_reviewer: The words_left_averaged_reviewer of this AssignmentDetails. # noqa: E501
- :type: int
- """
-
- self._words_left_averaged_reviewer = words_left_averaged_reviewer
-
- @property
- def assignment_errors(self):
- """Gets the assignment_errors of this AssignmentDetails. # noqa: E501
-
-
- :return: The assignment_errors of this AssignmentDetails. # noqa: E501
- :rtype: list[str]
- """
- return self._assignment_errors
-
- @assignment_errors.setter
- def assignment_errors(self, assignment_errors):
- """Sets the assignment_errors of this AssignmentDetails.
-
-
- :param assignment_errors: The assignment_errors of this AssignmentDetails. # noqa: E501
- :type: list[str]
- """
-
- self._assignment_errors = assignment_errors
-
- @property
- def doc_id(self):
- """Gets the doc_id of this AssignmentDetails. # noqa: E501
-
-
- :return: The doc_id of this AssignmentDetails. # noqa: E501
- :rtype: int
- """
- return self._doc_id
-
- @doc_id.setter
- def doc_id(self, doc_id):
- """Sets the doc_id of this AssignmentDetails.
-
-
- :param doc_id: The doc_id of this AssignmentDetails. # noqa: E501
- :type: int
- """
-
- self._doc_id = doc_id
-
- @property
- def project_id(self):
- """Gets the project_id of this AssignmentDetails. # noqa: E501
-
-
- :return: The project_id of this AssignmentDetails. # noqa: E501
- :rtype: int
- """
- return self._project_id
-
- @project_id.setter
- def project_id(self, project_id):
- """Sets the project_id of this AssignmentDetails.
-
-
- :param project_id: The project_id of this AssignmentDetails. # noqa: E501
- :type: int
- """
-
- self._project_id = project_id
-
- @property
- def is_auto_assigned(self):
- """Gets the is_auto_assigned of this AssignmentDetails. # noqa: E501
-
-
- :return: The is_auto_assigned of this AssignmentDetails. # noqa: E501
- :rtype: bool
- """
- return self._is_auto_assigned
-
- @is_auto_assigned.setter
- def is_auto_assigned(self, is_auto_assigned):
- """Sets the is_auto_assigned of this AssignmentDetails.
-
-
- :param is_auto_assigned: The is_auto_assigned of this AssignmentDetails. # noqa: E501
- :type: bool
- """
-
- self._is_auto_assigned = is_auto_assigned
-
- @property
- def translator_user_id(self):
- """Gets the translator_user_id of this AssignmentDetails. # noqa: E501
-
-
- :return: The translator_user_id of this AssignmentDetails. # noqa: E501
- :rtype: int
- """
- return self._translator_user_id
-
- @translator_user_id.setter
- def translator_user_id(self, translator_user_id):
- """Sets the translator_user_id of this AssignmentDetails.
-
-
- :param translator_user_id: The translator_user_id of this AssignmentDetails. # noqa: E501
- :type: int
- """
-
- self._translator_user_id = translator_user_id
-
- @property
- def translator_role_id(self):
- """Gets the translator_role_id of this AssignmentDetails. # noqa: E501
-
-
- :return: The translator_role_id of this AssignmentDetails. # noqa: E501
- :rtype: int
- """
- return self._translator_role_id
-
- @translator_role_id.setter
- def translator_role_id(self, translator_role_id):
- """Sets the translator_role_id of this AssignmentDetails.
-
-
- :param translator_role_id: The translator_role_id of this AssignmentDetails. # noqa: E501
- :type: int
- """
-
- self._translator_role_id = translator_role_id
-
- @property
- def translator_due_date(self):
- """Gets the translator_due_date of this AssignmentDetails. # noqa: E501
-
-
- :return: The translator_due_date of this AssignmentDetails. # noqa: E501
- :rtype: str
- """
- return self._translator_due_date
-
- @translator_due_date.setter
- def translator_due_date(self, translator_due_date):
- """Sets the translator_due_date of this AssignmentDetails.
-
-
- :param translator_due_date: The translator_due_date of this AssignmentDetails. # noqa: E501
- :type: str
- """
-
- self._translator_due_date = translator_due_date
-
- @property
- def reviewer_user_id(self):
- """Gets the reviewer_user_id of this AssignmentDetails. # noqa: E501
-
-
- :return: The reviewer_user_id of this AssignmentDetails. # noqa: E501
- :rtype: int
- """
- return self._reviewer_user_id
-
- @reviewer_user_id.setter
- def reviewer_user_id(self, reviewer_user_id):
- """Sets the reviewer_user_id of this AssignmentDetails.
-
-
- :param reviewer_user_id: The reviewer_user_id of this AssignmentDetails. # noqa: E501
- :type: int
- """
-
- self._reviewer_user_id = reviewer_user_id
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, AssignmentDetails):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, AssignmentDetails):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/assignment_error.py b/lilt/models/assignment_error.py
deleted file mode 100644
index 694419a..0000000
--- a/lilt/models/assignment_error.py
+++ /dev/null
@@ -1,203 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class AssignmentError(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'error_type': 'str',
- 'project_id': 'int',
- 'document_id': 'int',
- 'error': 'str'
- }
-
- attribute_map = {
- 'error_type': 'errorType',
- 'project_id': 'projectId',
- 'document_id': 'documentId',
- 'error': 'error'
- }
-
- def __init__(self, error_type=None, project_id=None, document_id=None, error=None, local_vars_configuration=None): # noqa: E501
- """AssignmentError - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._error_type = None
- self._project_id = None
- self._document_id = None
- self._error = None
- self.discriminator = None
-
- self.error_type = error_type
- self.project_id = project_id
- self.document_id = document_id
- self.error = error
-
- @property
- def error_type(self):
- """Gets the error_type of this AssignmentError. # noqa: E501
-
-
- :return: The error_type of this AssignmentError. # noqa: E501
- :rtype: str
- """
- return self._error_type
-
- @error_type.setter
- def error_type(self, error_type):
- """Sets the error_type of this AssignmentError.
-
-
- :param error_type: The error_type of this AssignmentError. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and error_type is None: # noqa: E501
- raise ValueError("Invalid value for `error_type`, must not be `None`") # noqa: E501
-
- self._error_type = error_type
-
- @property
- def project_id(self):
- """Gets the project_id of this AssignmentError. # noqa: E501
-
-
- :return: The project_id of this AssignmentError. # noqa: E501
- :rtype: int
- """
- return self._project_id
-
- @project_id.setter
- def project_id(self, project_id):
- """Sets the project_id of this AssignmentError.
-
-
- :param project_id: The project_id of this AssignmentError. # noqa: E501
- :type: int
- """
- if self.local_vars_configuration.client_side_validation and project_id is None: # noqa: E501
- raise ValueError("Invalid value for `project_id`, must not be `None`") # noqa: E501
-
- self._project_id = project_id
-
- @property
- def document_id(self):
- """Gets the document_id of this AssignmentError. # noqa: E501
-
-
- :return: The document_id of this AssignmentError. # noqa: E501
- :rtype: int
- """
- return self._document_id
-
- @document_id.setter
- def document_id(self, document_id):
- """Sets the document_id of this AssignmentError.
-
-
- :param document_id: The document_id of this AssignmentError. # noqa: E501
- :type: int
- """
- if self.local_vars_configuration.client_side_validation and document_id is None: # noqa: E501
- raise ValueError("Invalid value for `document_id`, must not be `None`") # noqa: E501
-
- self._document_id = document_id
-
- @property
- def error(self):
- """Gets the error of this AssignmentError. # noqa: E501
-
-
- :return: The error of this AssignmentError. # noqa: E501
- :rtype: str
- """
- return self._error
-
- @error.setter
- def error(self, error):
- """Sets the error of this AssignmentError.
-
-
- :param error: The error of this AssignmentError. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and error is None: # noqa: E501
- raise ValueError("Invalid value for `error`, must not be `None`") # noqa: E501
-
- self._error = error
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, AssignmentError):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, AssignmentError):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/auto_assignment_parameters.py b/lilt/models/auto_assignment_parameters.py
deleted file mode 100644
index c5bfa40..0000000
--- a/lilt/models/auto_assignment_parameters.py
+++ /dev/null
@@ -1,122 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class AutoAssignmentParameters(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'project_ids': 'list[int]'
- }
-
- attribute_map = {
- 'project_ids': 'projectIds'
- }
-
- def __init__(self, project_ids=None, local_vars_configuration=None): # noqa: E501
- """AutoAssignmentParameters - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._project_ids = None
- self.discriminator = None
-
- self.project_ids = project_ids
-
- @property
- def project_ids(self):
- """Gets the project_ids of this AutoAssignmentParameters. # noqa: E501
-
-
- :return: The project_ids of this AutoAssignmentParameters. # noqa: E501
- :rtype: list[int]
- """
- return self._project_ids
-
- @project_ids.setter
- def project_ids(self, project_ids):
- """Sets the project_ids of this AutoAssignmentParameters.
-
-
- :param project_ids: The project_ids of this AutoAssignmentParameters. # noqa: E501
- :type: list[int]
- """
- if self.local_vars_configuration.client_side_validation and project_ids is None: # noqa: E501
- raise ValueError("Invalid value for `project_ids`, must not be `None`") # noqa: E501
-
- self._project_ids = project_ids
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, AutoAssignmentParameters):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, AutoAssignmentParameters):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/auto_assignment_response.py b/lilt/models/auto_assignment_response.py
deleted file mode 100644
index e10824a..0000000
--- a/lilt/models/auto_assignment_response.py
+++ /dev/null
@@ -1,237 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class AutoAssignmentResponse(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'project_id': 'float',
- 'success': 'bool',
- 'error': 'str',
- 'errors': 'list[AssignmentError]',
- 'assignments': 'list[AssignmentDetails]'
- }
-
- attribute_map = {
- 'project_id': 'projectId',
- 'success': 'success',
- 'error': 'error',
- 'errors': 'errors',
- 'assignments': 'assignments'
- }
-
- def __init__(self, project_id=None, success=None, error=None, errors=None, assignments=None, local_vars_configuration=None): # noqa: E501
- """AutoAssignmentResponse - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._project_id = None
- self._success = None
- self._error = None
- self._errors = None
- self._assignments = None
- self.discriminator = None
-
- self.project_id = project_id
- self.success = success
- if error is not None:
- self.error = error
- if errors is not None:
- self.errors = errors
- if assignments is not None:
- self.assignments = assignments
-
- @property
- def project_id(self):
- """Gets the project_id of this AutoAssignmentResponse. # noqa: E501
-
- The id of the project. # noqa: E501
-
- :return: The project_id of this AutoAssignmentResponse. # noqa: E501
- :rtype: float
- """
- return self._project_id
-
- @project_id.setter
- def project_id(self, project_id):
- """Sets the project_id of this AutoAssignmentResponse.
-
- The id of the project. # noqa: E501
-
- :param project_id: The project_id of this AutoAssignmentResponse. # noqa: E501
- :type: float
- """
- if self.local_vars_configuration.client_side_validation and project_id is None: # noqa: E501
- raise ValueError("Invalid value for `project_id`, must not be `None`") # noqa: E501
-
- self._project_id = project_id
-
- @property
- def success(self):
- """Gets the success of this AutoAssignmentResponse. # noqa: E501
-
- True if the operation was successful for this project. # noqa: E501
-
- :return: The success of this AutoAssignmentResponse. # noqa: E501
- :rtype: bool
- """
- return self._success
-
- @success.setter
- def success(self, success):
- """Sets the success of this AutoAssignmentResponse.
-
- True if the operation was successful for this project. # noqa: E501
-
- :param success: The success of this AutoAssignmentResponse. # noqa: E501
- :type: bool
- """
- if self.local_vars_configuration.client_side_validation and success is None: # noqa: E501
- raise ValueError("Invalid value for `success`, must not be `None`") # noqa: E501
-
- self._success = success
-
- @property
- def error(self):
- """Gets the error of this AutoAssignmentResponse. # noqa: E501
-
- An optional error message if success = false # noqa: E501
-
- :return: The error of this AutoAssignmentResponse. # noqa: E501
- :rtype: str
- """
- return self._error
-
- @error.setter
- def error(self, error):
- """Sets the error of this AutoAssignmentResponse.
-
- An optional error message if success = false # noqa: E501
-
- :param error: The error of this AutoAssignmentResponse. # noqa: E501
- :type: str
- """
-
- self._error = error
-
- @property
- def errors(self):
- """Gets the errors of this AutoAssignmentResponse. # noqa: E501
-
- A list of errors if there were any. # noqa: E501
-
- :return: The errors of this AutoAssignmentResponse. # noqa: E501
- :rtype: list[AssignmentError]
- """
- return self._errors
-
- @errors.setter
- def errors(self, errors):
- """Sets the errors of this AutoAssignmentResponse.
-
- A list of errors if there were any. # noqa: E501
-
- :param errors: The errors of this AutoAssignmentResponse. # noqa: E501
- :type: list[AssignmentError]
- """
-
- self._errors = errors
-
- @property
- def assignments(self):
- """Gets the assignments of this AutoAssignmentResponse. # noqa: E501
-
- Assignment details, like which user was assigned and which role. # noqa: E501
-
- :return: The assignments of this AutoAssignmentResponse. # noqa: E501
- :rtype: list[AssignmentDetails]
- """
- return self._assignments
-
- @assignments.setter
- def assignments(self, assignments):
- """Sets the assignments of this AutoAssignmentResponse.
-
- Assignment details, like which user was assigned and which role. # noqa: E501
-
- :param assignments: The assignments of this AutoAssignmentResponse. # noqa: E501
- :type: list[AssignmentDetails]
- """
-
- self._assignments = assignments
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, AutoAssignmentResponse):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, AutoAssignmentResponse):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/auto_assignment_response_assignments.py b/lilt/models/auto_assignment_response_assignments.py
deleted file mode 100644
index d830ef3..0000000
--- a/lilt/models/auto_assignment_response_assignments.py
+++ /dev/null
@@ -1,381 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class AutoAssignmentResponseAssignments(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'is_preferred_translator': 'bool',
- 'words_left_averaged_translator': 'int',
- 'words_left_averaged_reviewer': 'int',
- 'assignment_errors': 'list[str]',
- 'doc_id': 'int',
- 'project_id': 'int',
- 'is_auto_assigned': 'bool',
- 'translator_user_id': 'int',
- 'translator_role_id': 'int',
- 'translator_due_date': 'str',
- 'reviewer_user_id': 'int'
- }
-
- attribute_map = {
- 'is_preferred_translator': 'isPreferredTranslator',
- 'words_left_averaged_translator': 'wordsLeftAveragedTranslator',
- 'words_left_averaged_reviewer': 'wordsLeftAveragedReviewer',
- 'assignment_errors': 'assignmentErrors',
- 'doc_id': 'docId',
- 'project_id': 'projectId',
- 'is_auto_assigned': 'isAutoAssigned',
- 'translator_user_id': 'translatorUserId',
- 'translator_role_id': 'translatorRoleId',
- 'translator_due_date': 'translatorDueDate',
- 'reviewer_user_id': 'reviewerUserId'
- }
-
- def __init__(self, is_preferred_translator=None, words_left_averaged_translator=None, words_left_averaged_reviewer=None, assignment_errors=None, doc_id=None, project_id=None, is_auto_assigned=None, translator_user_id=None, translator_role_id=None, translator_due_date=None, reviewer_user_id=None, local_vars_configuration=None): # noqa: E501
- """AutoAssignmentResponseAssignments - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._is_preferred_translator = None
- self._words_left_averaged_translator = None
- self._words_left_averaged_reviewer = None
- self._assignment_errors = None
- self._doc_id = None
- self._project_id = None
- self._is_auto_assigned = None
- self._translator_user_id = None
- self._translator_role_id = None
- self._translator_due_date = None
- self._reviewer_user_id = None
- self.discriminator = None
-
- if is_preferred_translator is not None:
- self.is_preferred_translator = is_preferred_translator
- if words_left_averaged_translator is not None:
- self.words_left_averaged_translator = words_left_averaged_translator
- if words_left_averaged_reviewer is not None:
- self.words_left_averaged_reviewer = words_left_averaged_reviewer
- if assignment_errors is not None:
- self.assignment_errors = assignment_errors
- if doc_id is not None:
- self.doc_id = doc_id
- if project_id is not None:
- self.project_id = project_id
- if is_auto_assigned is not None:
- self.is_auto_assigned = is_auto_assigned
- if translator_user_id is not None:
- self.translator_user_id = translator_user_id
- if translator_role_id is not None:
- self.translator_role_id = translator_role_id
- if translator_due_date is not None:
- self.translator_due_date = translator_due_date
- if reviewer_user_id is not None:
- self.reviewer_user_id = reviewer_user_id
-
- @property
- def is_preferred_translator(self):
- """Gets the is_preferred_translator of this AutoAssignmentResponseAssignments. # noqa: E501
-
-
- :return: The is_preferred_translator of this AutoAssignmentResponseAssignments. # noqa: E501
- :rtype: bool
- """
- return self._is_preferred_translator
-
- @is_preferred_translator.setter
- def is_preferred_translator(self, is_preferred_translator):
- """Sets the is_preferred_translator of this AutoAssignmentResponseAssignments.
-
-
- :param is_preferred_translator: The is_preferred_translator of this AutoAssignmentResponseAssignments. # noqa: E501
- :type: bool
- """
-
- self._is_preferred_translator = is_preferred_translator
-
- @property
- def words_left_averaged_translator(self):
- """Gets the words_left_averaged_translator of this AutoAssignmentResponseAssignments. # noqa: E501
-
-
- :return: The words_left_averaged_translator of this AutoAssignmentResponseAssignments. # noqa: E501
- :rtype: int
- """
- return self._words_left_averaged_translator
-
- @words_left_averaged_translator.setter
- def words_left_averaged_translator(self, words_left_averaged_translator):
- """Sets the words_left_averaged_translator of this AutoAssignmentResponseAssignments.
-
-
- :param words_left_averaged_translator: The words_left_averaged_translator of this AutoAssignmentResponseAssignments. # noqa: E501
- :type: int
- """
-
- self._words_left_averaged_translator = words_left_averaged_translator
-
- @property
- def words_left_averaged_reviewer(self):
- """Gets the words_left_averaged_reviewer of this AutoAssignmentResponseAssignments. # noqa: E501
-
-
- :return: The words_left_averaged_reviewer of this AutoAssignmentResponseAssignments. # noqa: E501
- :rtype: int
- """
- return self._words_left_averaged_reviewer
-
- @words_left_averaged_reviewer.setter
- def words_left_averaged_reviewer(self, words_left_averaged_reviewer):
- """Sets the words_left_averaged_reviewer of this AutoAssignmentResponseAssignments.
-
-
- :param words_left_averaged_reviewer: The words_left_averaged_reviewer of this AutoAssignmentResponseAssignments. # noqa: E501
- :type: int
- """
-
- self._words_left_averaged_reviewer = words_left_averaged_reviewer
-
- @property
- def assignment_errors(self):
- """Gets the assignment_errors of this AutoAssignmentResponseAssignments. # noqa: E501
-
-
- :return: The assignment_errors of this AutoAssignmentResponseAssignments. # noqa: E501
- :rtype: list[str]
- """
- return self._assignment_errors
-
- @assignment_errors.setter
- def assignment_errors(self, assignment_errors):
- """Sets the assignment_errors of this AutoAssignmentResponseAssignments.
-
-
- :param assignment_errors: The assignment_errors of this AutoAssignmentResponseAssignments. # noqa: E501
- :type: list[str]
- """
-
- self._assignment_errors = assignment_errors
-
- @property
- def doc_id(self):
- """Gets the doc_id of this AutoAssignmentResponseAssignments. # noqa: E501
-
-
- :return: The doc_id of this AutoAssignmentResponseAssignments. # noqa: E501
- :rtype: int
- """
- return self._doc_id
-
- @doc_id.setter
- def doc_id(self, doc_id):
- """Sets the doc_id of this AutoAssignmentResponseAssignments.
-
-
- :param doc_id: The doc_id of this AutoAssignmentResponseAssignments. # noqa: E501
- :type: int
- """
-
- self._doc_id = doc_id
-
- @property
- def project_id(self):
- """Gets the project_id of this AutoAssignmentResponseAssignments. # noqa: E501
-
-
- :return: The project_id of this AutoAssignmentResponseAssignments. # noqa: E501
- :rtype: int
- """
- return self._project_id
-
- @project_id.setter
- def project_id(self, project_id):
- """Sets the project_id of this AutoAssignmentResponseAssignments.
-
-
- :param project_id: The project_id of this AutoAssignmentResponseAssignments. # noqa: E501
- :type: int
- """
-
- self._project_id = project_id
-
- @property
- def is_auto_assigned(self):
- """Gets the is_auto_assigned of this AutoAssignmentResponseAssignments. # noqa: E501
-
-
- :return: The is_auto_assigned of this AutoAssignmentResponseAssignments. # noqa: E501
- :rtype: bool
- """
- return self._is_auto_assigned
-
- @is_auto_assigned.setter
- def is_auto_assigned(self, is_auto_assigned):
- """Sets the is_auto_assigned of this AutoAssignmentResponseAssignments.
-
-
- :param is_auto_assigned: The is_auto_assigned of this AutoAssignmentResponseAssignments. # noqa: E501
- :type: bool
- """
-
- self._is_auto_assigned = is_auto_assigned
-
- @property
- def translator_user_id(self):
- """Gets the translator_user_id of this AutoAssignmentResponseAssignments. # noqa: E501
-
-
- :return: The translator_user_id of this AutoAssignmentResponseAssignments. # noqa: E501
- :rtype: int
- """
- return self._translator_user_id
-
- @translator_user_id.setter
- def translator_user_id(self, translator_user_id):
- """Sets the translator_user_id of this AutoAssignmentResponseAssignments.
-
-
- :param translator_user_id: The translator_user_id of this AutoAssignmentResponseAssignments. # noqa: E501
- :type: int
- """
-
- self._translator_user_id = translator_user_id
-
- @property
- def translator_role_id(self):
- """Gets the translator_role_id of this AutoAssignmentResponseAssignments. # noqa: E501
-
-
- :return: The translator_role_id of this AutoAssignmentResponseAssignments. # noqa: E501
- :rtype: int
- """
- return self._translator_role_id
-
- @translator_role_id.setter
- def translator_role_id(self, translator_role_id):
- """Sets the translator_role_id of this AutoAssignmentResponseAssignments.
-
-
- :param translator_role_id: The translator_role_id of this AutoAssignmentResponseAssignments. # noqa: E501
- :type: int
- """
-
- self._translator_role_id = translator_role_id
-
- @property
- def translator_due_date(self):
- """Gets the translator_due_date of this AutoAssignmentResponseAssignments. # noqa: E501
-
-
- :return: The translator_due_date of this AutoAssignmentResponseAssignments. # noqa: E501
- :rtype: str
- """
- return self._translator_due_date
-
- @translator_due_date.setter
- def translator_due_date(self, translator_due_date):
- """Sets the translator_due_date of this AutoAssignmentResponseAssignments.
-
-
- :param translator_due_date: The translator_due_date of this AutoAssignmentResponseAssignments. # noqa: E501
- :type: str
- """
-
- self._translator_due_date = translator_due_date
-
- @property
- def reviewer_user_id(self):
- """Gets the reviewer_user_id of this AutoAssignmentResponseAssignments. # noqa: E501
-
-
- :return: The reviewer_user_id of this AutoAssignmentResponseAssignments. # noqa: E501
- :rtype: int
- """
- return self._reviewer_user_id
-
- @reviewer_user_id.setter
- def reviewer_user_id(self, reviewer_user_id):
- """Sets the reviewer_user_id of this AutoAssignmentResponseAssignments.
-
-
- :param reviewer_user_id: The reviewer_user_id of this AutoAssignmentResponseAssignments. # noqa: E501
- :type: int
- """
-
- self._reviewer_user_id = reviewer_user_id
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, AutoAssignmentResponseAssignments):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, AutoAssignmentResponseAssignments):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/auto_assignment_response_errors.py b/lilt/models/auto_assignment_response_errors.py
deleted file mode 100644
index c55f293..0000000
--- a/lilt/models/auto_assignment_response_errors.py
+++ /dev/null
@@ -1,203 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class AutoAssignmentResponseErrors(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'error_type': 'str',
- 'project_id': 'int',
- 'document_id': 'int',
- 'error': 'str'
- }
-
- attribute_map = {
- 'error_type': 'errorType',
- 'project_id': 'projectId',
- 'document_id': 'documentId',
- 'error': 'error'
- }
-
- def __init__(self, error_type=None, project_id=None, document_id=None, error=None, local_vars_configuration=None): # noqa: E501
- """AutoAssignmentResponseErrors - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._error_type = None
- self._project_id = None
- self._document_id = None
- self._error = None
- self.discriminator = None
-
- self.error_type = error_type
- self.project_id = project_id
- self.document_id = document_id
- self.error = error
-
- @property
- def error_type(self):
- """Gets the error_type of this AutoAssignmentResponseErrors. # noqa: E501
-
-
- :return: The error_type of this AutoAssignmentResponseErrors. # noqa: E501
- :rtype: str
- """
- return self._error_type
-
- @error_type.setter
- def error_type(self, error_type):
- """Sets the error_type of this AutoAssignmentResponseErrors.
-
-
- :param error_type: The error_type of this AutoAssignmentResponseErrors. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and error_type is None: # noqa: E501
- raise ValueError("Invalid value for `error_type`, must not be `None`") # noqa: E501
-
- self._error_type = error_type
-
- @property
- def project_id(self):
- """Gets the project_id of this AutoAssignmentResponseErrors. # noqa: E501
-
-
- :return: The project_id of this AutoAssignmentResponseErrors. # noqa: E501
- :rtype: int
- """
- return self._project_id
-
- @project_id.setter
- def project_id(self, project_id):
- """Sets the project_id of this AutoAssignmentResponseErrors.
-
-
- :param project_id: The project_id of this AutoAssignmentResponseErrors. # noqa: E501
- :type: int
- """
- if self.local_vars_configuration.client_side_validation and project_id is None: # noqa: E501
- raise ValueError("Invalid value for `project_id`, must not be `None`") # noqa: E501
-
- self._project_id = project_id
-
- @property
- def document_id(self):
- """Gets the document_id of this AutoAssignmentResponseErrors. # noqa: E501
-
-
- :return: The document_id of this AutoAssignmentResponseErrors. # noqa: E501
- :rtype: int
- """
- return self._document_id
-
- @document_id.setter
- def document_id(self, document_id):
- """Sets the document_id of this AutoAssignmentResponseErrors.
-
-
- :param document_id: The document_id of this AutoAssignmentResponseErrors. # noqa: E501
- :type: int
- """
- if self.local_vars_configuration.client_side_validation and document_id is None: # noqa: E501
- raise ValueError("Invalid value for `document_id`, must not be `None`") # noqa: E501
-
- self._document_id = document_id
-
- @property
- def error(self):
- """Gets the error of this AutoAssignmentResponseErrors. # noqa: E501
-
-
- :return: The error of this AutoAssignmentResponseErrors. # noqa: E501
- :rtype: str
- """
- return self._error
-
- @error.setter
- def error(self, error):
- """Sets the error of this AutoAssignmentResponseErrors.
-
-
- :param error: The error of this AutoAssignmentResponseErrors. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and error is None: # noqa: E501
- raise ValueError("Invalid value for `error`, must not be `None`") # noqa: E501
-
- self._error = error
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, AutoAssignmentResponseErrors):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, AutoAssignmentResponseErrors):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/bad_request.py b/lilt/models/bad_request.py
deleted file mode 100644
index c6c3672..0000000
--- a/lilt/models/bad_request.py
+++ /dev/null
@@ -1,123 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class BadRequest(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'message': 'object'
- }
-
- attribute_map = {
- 'message': 'message'
- }
-
- def __init__(self, message=None, local_vars_configuration=None): # noqa: E501
- """BadRequest - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._message = None
- self.discriminator = None
-
- if message is not None:
- self.message = message
-
- @property
- def message(self):
- """Gets the message of this BadRequest. # noqa: E501
-
- A human-readable message describing the error. # noqa: E501
-
- :return: The message of this BadRequest. # noqa: E501
- :rtype: object
- """
- return self._message
-
- @message.setter
- def message(self, message):
- """Sets the message of this BadRequest.
-
- A human-readable message describing the error. # noqa: E501
-
- :param message: The message of this BadRequest. # noqa: E501
- :type: object
- """
-
- self._message = message
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, BadRequest):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, BadRequest):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/cancel_multipart_upload200_response.py b/lilt/models/cancel_multipart_upload200_response.py
new file mode 100644
index 0000000..dd96466
--- /dev/null
+++ b/lilt/models/cancel_multipart_upload200_response.py
@@ -0,0 +1,89 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CancelMultipartUpload200Response(BaseModel):
+ """
+ CancelMultipartUpload200Response
+ """ # noqa: E501
+ success: Optional[StrictBool] = Field(default=None, description="Cancellation status")
+ message: Optional[StrictStr] = Field(default=None, description="Cancellation message")
+ __properties: ClassVar[List[str]] = ["success", "message"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CancelMultipartUpload200Response from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CancelMultipartUpload200Response from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "success": obj.get("success"),
+ "message": obj.get("message")
+ })
+ return _obj
+
+
diff --git a/lilt/models/comment.py b/lilt/models/comment.py
deleted file mode 100644
index f81d734..0000000
--- a/lilt/models/comment.py
+++ /dev/null
@@ -1,347 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class Comment(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int',
- 'text': 'str',
- 'annotations': 'list[Annotation]',
- 'is_resolved': 'bool',
- 'document_id': 'int',
- 'segment_id': 'int',
- 'segment_revision_id': 'int',
- 'user_id': 'int',
- 'created_at': 'int'
- }
-
- attribute_map = {
- 'id': 'id',
- 'text': 'text',
- 'annotations': 'annotations',
- 'is_resolved': 'is_resolved',
- 'document_id': 'document_id',
- 'segment_id': 'segment_id',
- 'segment_revision_id': 'segment_revision_id',
- 'user_id': 'user_id',
- 'created_at': 'created_at'
- }
-
- def __init__(self, id=None, text=None, annotations=None, is_resolved=None, document_id=None, segment_id=None, segment_revision_id=None, user_id=None, created_at=None, local_vars_configuration=None): # noqa: E501
- """Comment - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._text = None
- self._annotations = None
- self._is_resolved = None
- self._document_id = None
- self._segment_id = None
- self._segment_revision_id = None
- self._user_id = None
- self._created_at = None
- self.discriminator = None
-
- if id is not None:
- self.id = id
- if text is not None:
- self.text = text
- if annotations is not None:
- self.annotations = annotations
- if is_resolved is not None:
- self.is_resolved = is_resolved
- if document_id is not None:
- self.document_id = document_id
- if segment_id is not None:
- self.segment_id = segment_id
- if segment_revision_id is not None:
- self.segment_revision_id = segment_revision_id
- if user_id is not None:
- self.user_id = user_id
- if created_at is not None:
- self.created_at = created_at
-
- @property
- def id(self):
- """Gets the id of this Comment. # noqa: E501
-
- A unique number identifying the Comment. # noqa: E501
-
- :return: The id of this Comment. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this Comment.
-
- A unique number identifying the Comment. # noqa: E501
-
- :param id: The id of this Comment. # noqa: E501
- :type: int
- """
-
- self._id = id
-
- @property
- def text(self):
- """Gets the text of this Comment. # noqa: E501
-
- The comment text. # noqa: E501
-
- :return: The text of this Comment. # noqa: E501
- :rtype: str
- """
- return self._text
-
- @text.setter
- def text(self, text):
- """Sets the text of this Comment.
-
- The comment text. # noqa: E501
-
- :param text: The text of this Comment. # noqa: E501
- :type: str
- """
-
- self._text = text
-
- @property
- def annotations(self):
- """Gets the annotations of this Comment. # noqa: E501
-
- A list of optional Annotations. # noqa: E501
-
- :return: The annotations of this Comment. # noqa: E501
- :rtype: list[Annotation]
- """
- return self._annotations
-
- @annotations.setter
- def annotations(self, annotations):
- """Sets the annotations of this Comment.
-
- A list of optional Annotations. # noqa: E501
-
- :param annotations: The annotations of this Comment. # noqa: E501
- :type: list[Annotation]
- """
-
- self._annotations = annotations
-
- @property
- def is_resolved(self):
- """Gets the is_resolved of this Comment. # noqa: E501
-
- Whether the Comment is resolved. # noqa: E501
-
- :return: The is_resolved of this Comment. # noqa: E501
- :rtype: bool
- """
- return self._is_resolved
-
- @is_resolved.setter
- def is_resolved(self, is_resolved):
- """Sets the is_resolved of this Comment.
-
- Whether the Comment is resolved. # noqa: E501
-
- :param is_resolved: The is_resolved of this Comment. # noqa: E501
- :type: bool
- """
-
- self._is_resolved = is_resolved
-
- @property
- def document_id(self):
- """Gets the document_id of this Comment. # noqa: E501
-
- The document to which the comment belongs. # noqa: E501
-
- :return: The document_id of this Comment. # noqa: E501
- :rtype: int
- """
- return self._document_id
-
- @document_id.setter
- def document_id(self, document_id):
- """Sets the document_id of this Comment.
-
- The document to which the comment belongs. # noqa: E501
-
- :param document_id: The document_id of this Comment. # noqa: E501
- :type: int
- """
-
- self._document_id = document_id
-
- @property
- def segment_id(self):
- """Gets the segment_id of this Comment. # noqa: E501
-
- The individual segment to which the comment applies. # noqa: E501
-
- :return: The segment_id of this Comment. # noqa: E501
- :rtype: int
- """
- return self._segment_id
-
- @segment_id.setter
- def segment_id(self, segment_id):
- """Sets the segment_id of this Comment.
-
- The individual segment to which the comment applies. # noqa: E501
-
- :param segment_id: The segment_id of this Comment. # noqa: E501
- :type: int
- """
-
- self._segment_id = segment_id
-
- @property
- def segment_revision_id(self):
- """Gets the segment_revision_id of this Comment. # noqa: E501
-
- The revision of the individual segment to which the comment applies. # noqa: E501
-
- :return: The segment_revision_id of this Comment. # noqa: E501
- :rtype: int
- """
- return self._segment_revision_id
-
- @segment_revision_id.setter
- def segment_revision_id(self, segment_revision_id):
- """Sets the segment_revision_id of this Comment.
-
- The revision of the individual segment to which the comment applies. # noqa: E501
-
- :param segment_revision_id: The segment_revision_id of this Comment. # noqa: E501
- :type: int
- """
-
- self._segment_revision_id = segment_revision_id
-
- @property
- def user_id(self):
- """Gets the user_id of this Comment. # noqa: E501
-
- The user who created this comment. # noqa: E501
-
- :return: The user_id of this Comment. # noqa: E501
- :rtype: int
- """
- return self._user_id
-
- @user_id.setter
- def user_id(self, user_id):
- """Sets the user_id of this Comment.
-
- The user who created this comment. # noqa: E501
-
- :param user_id: The user_id of this Comment. # noqa: E501
- :type: int
- """
-
- self._user_id = user_id
-
- @property
- def created_at(self):
- """Gets the created_at of this Comment. # noqa: E501
-
- Time at which the object was created. Measured in seconds since the Unix epoch. # noqa: E501
-
- :return: The created_at of this Comment. # noqa: E501
- :rtype: int
- """
- return self._created_at
-
- @created_at.setter
- def created_at(self, created_at):
- """Sets the created_at of this Comment.
-
- Time at which the object was created. Measured in seconds since the Unix epoch. # noqa: E501
-
- :param created_at: The created_at of this Comment. # noqa: E501
- :type: int
- """
-
- self._created_at = created_at
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, Comment):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, Comment):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/comment_body.py b/lilt/models/comment_body.py
deleted file mode 100644
index 37cb3b7..0000000
--- a/lilt/models/comment_body.py
+++ /dev/null
@@ -1,179 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class CommentBody(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'text': 'str',
- 'annotations': 'list[Annotation]',
- 'is_resolved': 'str'
- }
-
- attribute_map = {
- 'text': 'text',
- 'annotations': 'annotations',
- 'is_resolved': 'isResolved'
- }
-
- def __init__(self, text=None, annotations=None, is_resolved=None, local_vars_configuration=None): # noqa: E501
- """CommentBody - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._text = None
- self._annotations = None
- self._is_resolved = None
- self.discriminator = None
-
- if text is not None:
- self.text = text
- if annotations is not None:
- self.annotations = annotations
- if is_resolved is not None:
- self.is_resolved = is_resolved
-
- @property
- def text(self):
- """Gets the text of this CommentBody. # noqa: E501
-
- The main comment value. # noqa: E501
-
- :return: The text of this CommentBody. # noqa: E501
- :rtype: str
- """
- return self._text
-
- @text.setter
- def text(self, text):
- """Sets the text of this CommentBody.
-
- The main comment value. # noqa: E501
-
- :param text: The text of this CommentBody. # noqa: E501
- :type: str
- """
-
- self._text = text
-
- @property
- def annotations(self):
- """Gets the annotations of this CommentBody. # noqa: E501
-
- A list of optional Annotations. # noqa: E501
-
- :return: The annotations of this CommentBody. # noqa: E501
- :rtype: list[Annotation]
- """
- return self._annotations
-
- @annotations.setter
- def annotations(self, annotations):
- """Sets the annotations of this CommentBody.
-
- A list of optional Annotations. # noqa: E501
-
- :param annotations: The annotations of this CommentBody. # noqa: E501
- :type: list[Annotation]
- """
-
- self._annotations = annotations
-
- @property
- def is_resolved(self):
- """Gets the is_resolved of this CommentBody. # noqa: E501
-
- An optional value indicating whether the comment has been resolved, defaults to `false`. Resolved comments will not be returned in subsequent requests. # noqa: E501
-
- :return: The is_resolved of this CommentBody. # noqa: E501
- :rtype: str
- """
- return self._is_resolved
-
- @is_resolved.setter
- def is_resolved(self, is_resolved):
- """Sets the is_resolved of this CommentBody.
-
- An optional value indicating whether the comment has been resolved, defaults to `false`. Resolved comments will not be returned in subsequent requests. # noqa: E501
-
- :param is_resolved: The is_resolved of this CommentBody. # noqa: E501
- :type: str
- """
-
- self._is_resolved = is_resolved
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, CommentBody):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, CommentBody):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/comment_delete_response.py b/lilt/models/comment_delete_response.py
deleted file mode 100644
index 5f1ccae..0000000
--- a/lilt/models/comment_delete_response.py
+++ /dev/null
@@ -1,123 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class CommentDeleteResponse(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int'
- }
-
- attribute_map = {
- 'id': 'id'
- }
-
- def __init__(self, id=None, local_vars_configuration=None): # noqa: E501
- """CommentDeleteResponse - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self.discriminator = None
-
- if id is not None:
- self.id = id
-
- @property
- def id(self):
- """Gets the id of this CommentDeleteResponse. # noqa: E501
-
- A unique Comment identifier. # noqa: E501
-
- :return: The id of this CommentDeleteResponse. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this CommentDeleteResponse.
-
- A unique Comment identifier. # noqa: E501
-
- :param id: The id of this CommentDeleteResponse. # noqa: E501
- :type: int
- """
-
- self._id = id
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, CommentDeleteResponse):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, CommentDeleteResponse):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/complete_multipart_upload200_response.py b/lilt/models/complete_multipart_upload200_response.py
new file mode 100644
index 0000000..5060e94
--- /dev/null
+++ b/lilt/models/complete_multipart_upload200_response.py
@@ -0,0 +1,89 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CompleteMultipartUpload200Response(BaseModel):
+ """
+ CompleteMultipartUpload200Response
+ """ # noqa: E501
+ success: Optional[StrictBool] = Field(default=None, description="Upload completion status")
+ location: Optional[StrictStr] = Field(default=None, description="Final file location")
+ __properties: ClassVar[List[str]] = ["success", "location"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CompleteMultipartUpload200Response from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CompleteMultipartUpload200Response from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "success": obj.get("success"),
+ "location": obj.get("location")
+ })
+ return _obj
+
+
diff --git a/lilt/models/complete_multipart_upload_body.py b/lilt/models/complete_multipart_upload_body.py
new file mode 100644
index 0000000..fd82425
--- /dev/null
+++ b/lilt/models/complete_multipart_upload_body.py
@@ -0,0 +1,95 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List
+from lilt.models.complete_multipart_upload_body_parts_inner import CompleteMultipartUploadBodyPartsInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CompleteMultipartUploadBody(BaseModel):
+ """
+ CompleteMultipartUploadBody
+ """ # noqa: E501
+ parts: List[CompleteMultipartUploadBodyPartsInner] = Field(description="Array of completed upload parts.")
+ __properties: ClassVar[List[str]] = ["parts"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CompleteMultipartUploadBody from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in parts (list)
+ _items = []
+ if self.parts:
+ for _item_parts in self.parts:
+ if _item_parts:
+ _items.append(_item_parts.to_dict())
+ _dict['parts'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CompleteMultipartUploadBody from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "parts": [CompleteMultipartUploadBodyPartsInner.from_dict(_item) for _item in obj["parts"]] if obj.get("parts") is not None else None
+ })
+ return _obj
+
+
diff --git a/lilt/models/complete_multipart_upload_body_parts_inner.py b/lilt/models/complete_multipart_upload_body_parts_inner.py
new file mode 100644
index 0000000..e019bfa
--- /dev/null
+++ b/lilt/models/complete_multipart_upload_body_parts_inner.py
@@ -0,0 +1,90 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CompleteMultipartUploadBodyPartsInner(BaseModel):
+ """
+ CompleteMultipartUploadBodyPartsInner
+ """ # noqa: E501
+ e_tag: StrictStr = Field(description="ETag of the uploaded part", alias="ETag")
+ part_number: Annotated[int, Field(strict=True, ge=1)] = Field(description="Part number (1-based)", alias="PartNumber")
+ __properties: ClassVar[List[str]] = ["ETag", "PartNumber"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CompleteMultipartUploadBodyPartsInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CompleteMultipartUploadBodyPartsInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "ETag": obj.get("ETag"),
+ "PartNumber": obj.get("PartNumber")
+ })
+ return _obj
+
+
diff --git a/lilt/models/connector.py b/lilt/models/connector.py
deleted file mode 100644
index 15ffa41..0000000
--- a/lilt/models/connector.py
+++ /dev/null
@@ -1,179 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class Connector(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'name': 'str',
- 'args': 'object',
- 'schedule': 'str'
- }
-
- attribute_map = {
- 'name': 'name',
- 'args': 'args',
- 'schedule': 'schedule'
- }
-
- def __init__(self, name=None, args=None, schedule=None, local_vars_configuration=None): # noqa: E501
- """Connector - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._name = None
- self._args = None
- self._schedule = None
- self.discriminator = None
-
- if name is not None:
- self.name = name
- if args is not None:
- self.args = args
- if schedule is not None:
- self.schedule = schedule
-
- @property
- def name(self):
- """Gets the name of this Connector. # noqa: E501
-
- Name of connector. # noqa: E501
-
- :return: The name of this Connector. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this Connector.
-
- Name of connector. # noqa: E501
-
- :param name: The name of this Connector. # noqa: E501
- :type: str
- """
-
- self._name = name
-
- @property
- def args(self):
- """Gets the args of this Connector. # noqa: E501
-
- Connector parameters. # noqa: E501
-
- :return: The args of this Connector. # noqa: E501
- :rtype: object
- """
- return self._args
-
- @args.setter
- def args(self, args):
- """Sets the args of this Connector.
-
- Connector parameters. # noqa: E501
-
- :param args: The args of this Connector. # noqa: E501
- :type: object
- """
-
- self._args = args
-
- @property
- def schedule(self):
- """Gets the schedule of this Connector. # noqa: E501
-
- Cron string # noqa: E501
-
- :return: The schedule of this Connector. # noqa: E501
- :rtype: str
- """
- return self._schedule
-
- @schedule.setter
- def schedule(self, schedule):
- """Sets the schedule of this Connector.
-
- Cron string # noqa: E501
-
- :param schedule: The schedule of this Connector. # noqa: E501
- :type: str
- """
-
- self._schedule = schedule
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, Connector):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, Connector):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/connector_arguments.py b/lilt/models/connector_arguments.py
deleted file mode 100644
index c199ed7..0000000
--- a/lilt/models/connector_arguments.py
+++ /dev/null
@@ -1,207 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class ConnectorArguments(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int',
- 'name': 'str',
- 'args': 'object',
- 'schedule': 'str'
- }
-
- attribute_map = {
- 'id': 'id',
- 'name': 'name',
- 'args': 'args',
- 'schedule': 'schedule'
- }
-
- def __init__(self, id=None, name=None, args=None, schedule=None, local_vars_configuration=None): # noqa: E501
- """ConnectorArguments - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._name = None
- self._args = None
- self._schedule = None
- self.discriminator = None
-
- if id is not None:
- self.id = id
- if name is not None:
- self.name = name
- if args is not None:
- self.args = args
- if schedule is not None:
- self.schedule = schedule
-
- @property
- def id(self):
- """Gets the id of this ConnectorArguments. # noqa: E501
-
- A unique Connector identifier. # noqa: E501
-
- :return: The id of this ConnectorArguments. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this ConnectorArguments.
-
- A unique Connector identifier. # noqa: E501
-
- :param id: The id of this ConnectorArguments. # noqa: E501
- :type: int
- """
-
- self._id = id
-
- @property
- def name(self):
- """Gets the name of this ConnectorArguments. # noqa: E501
-
- Name of connector. # noqa: E501
-
- :return: The name of this ConnectorArguments. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this ConnectorArguments.
-
- Name of connector. # noqa: E501
-
- :param name: The name of this ConnectorArguments. # noqa: E501
- :type: str
- """
-
- self._name = name
-
- @property
- def args(self):
- """Gets the args of this ConnectorArguments. # noqa: E501
-
- Connector parameters. # noqa: E501
-
- :return: The args of this ConnectorArguments. # noqa: E501
- :rtype: object
- """
- return self._args
-
- @args.setter
- def args(self, args):
- """Sets the args of this ConnectorArguments.
-
- Connector parameters. # noqa: E501
-
- :param args: The args of this ConnectorArguments. # noqa: E501
- :type: object
- """
-
- self._args = args
-
- @property
- def schedule(self):
- """Gets the schedule of this ConnectorArguments. # noqa: E501
-
- Cron string # noqa: E501
-
- :return: The schedule of this ConnectorArguments. # noqa: E501
- :rtype: str
- """
- return self._schedule
-
- @schedule.setter
- def schedule(self, schedule):
- """Sets the schedule of this ConnectorArguments.
-
- Cron string # noqa: E501
-
- :param schedule: The schedule of this ConnectorArguments. # noqa: E501
- :type: str
- """
-
- self._schedule = schedule
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, ConnectorArguments):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, ConnectorArguments):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/connector_delete_response.py b/lilt/models/connector_delete_response.py
deleted file mode 100644
index 124f833..0000000
--- a/lilt/models/connector_delete_response.py
+++ /dev/null
@@ -1,151 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class ConnectorDeleteResponse(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int',
- 'deleted': 'bool'
- }
-
- attribute_map = {
- 'id': 'id',
- 'deleted': 'deleted'
- }
-
- def __init__(self, id=None, deleted=None, local_vars_configuration=None): # noqa: E501
- """ConnectorDeleteResponse - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._deleted = None
- self.discriminator = None
-
- if id is not None:
- self.id = id
- if deleted is not None:
- self.deleted = deleted
-
- @property
- def id(self):
- """Gets the id of this ConnectorDeleteResponse. # noqa: E501
-
- A unique Connector identifier. # noqa: E501
-
- :return: The id of this ConnectorDeleteResponse. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this ConnectorDeleteResponse.
-
- A unique Connector identifier. # noqa: E501
-
- :param id: The id of this ConnectorDeleteResponse. # noqa: E501
- :type: int
- """
-
- self._id = id
-
- @property
- def deleted(self):
- """Gets the deleted of this ConnectorDeleteResponse. # noqa: E501
-
- If the operation succeeded, then `true`. Otherwise, `false`. # noqa: E501
-
- :return: The deleted of this ConnectorDeleteResponse. # noqa: E501
- :rtype: bool
- """
- return self._deleted
-
- @deleted.setter
- def deleted(self, deleted):
- """Sets the deleted of this ConnectorDeleteResponse.
-
- If the operation succeeded, then `true`. Otherwise, `false`. # noqa: E501
-
- :param deleted: The deleted of this ConnectorDeleteResponse. # noqa: E501
- :type: bool
- """
-
- self._deleted = deleted
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, ConnectorDeleteResponse):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, ConnectorDeleteResponse):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/connector_job.py b/lilt/models/connector_job.py
deleted file mode 100644
index 90f4266..0000000
--- a/lilt/models/connector_job.py
+++ /dev/null
@@ -1,225 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class ConnectorJob(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int',
- 'status': 'str',
- 'args': 'object',
- 'created_at': 'str',
- 'updated_at': 'str'
- }
-
- attribute_map = {
- 'id': 'id',
- 'status': 'status',
- 'args': 'args',
- 'created_at': 'created_at',
- 'updated_at': 'updated_at'
- }
-
- def __init__(self, id=None, status=None, args=None, created_at=None, updated_at=None, local_vars_configuration=None): # noqa: E501
- """ConnectorJob - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._status = None
- self._args = None
- self._created_at = None
- self._updated_at = None
- self.discriminator = None
-
- if id is not None:
- self.id = id
- if status is not None:
- self.status = status
- if args is not None:
- self.args = args
- if created_at is not None:
- self.created_at = created_at
- if updated_at is not None:
- self.updated_at = updated_at
-
- @property
- def id(self):
- """Gets the id of this ConnectorJob. # noqa: E501
-
-
- :return: The id of this ConnectorJob. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this ConnectorJob.
-
-
- :param id: The id of this ConnectorJob. # noqa: E501
- :type: int
- """
-
- self._id = id
-
- @property
- def status(self):
- """Gets the status of this ConnectorJob. # noqa: E501
-
-
- :return: The status of this ConnectorJob. # noqa: E501
- :rtype: str
- """
- return self._status
-
- @status.setter
- def status(self, status):
- """Sets the status of this ConnectorJob.
-
-
- :param status: The status of this ConnectorJob. # noqa: E501
- :type: str
- """
-
- self._status = status
-
- @property
- def args(self):
- """Gets the args of this ConnectorJob. # noqa: E501
-
-
- :return: The args of this ConnectorJob. # noqa: E501
- :rtype: object
- """
- return self._args
-
- @args.setter
- def args(self, args):
- """Sets the args of this ConnectorJob.
-
-
- :param args: The args of this ConnectorJob. # noqa: E501
- :type: object
- """
-
- self._args = args
-
- @property
- def created_at(self):
- """Gets the created_at of this ConnectorJob. # noqa: E501
-
-
- :return: The created_at of this ConnectorJob. # noqa: E501
- :rtype: str
- """
- return self._created_at
-
- @created_at.setter
- def created_at(self, created_at):
- """Sets the created_at of this ConnectorJob.
-
-
- :param created_at: The created_at of this ConnectorJob. # noqa: E501
- :type: str
- """
-
- self._created_at = created_at
-
- @property
- def updated_at(self):
- """Gets the updated_at of this ConnectorJob. # noqa: E501
-
-
- :return: The updated_at of this ConnectorJob. # noqa: E501
- :rtype: str
- """
- return self._updated_at
-
- @updated_at.setter
- def updated_at(self, updated_at):
- """Sets the updated_at of this ConnectorJob.
-
-
- :param updated_at: The updated_at of this ConnectorJob. # noqa: E501
- :type: str
- """
-
- self._updated_at = updated_at
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, ConnectorJob):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, ConnectorJob):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/converter_config_update_response.py b/lilt/models/converter_config_update_response.py
deleted file mode 100644
index 84752c2..0000000
--- a/lilt/models/converter_config_update_response.py
+++ /dev/null
@@ -1,121 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class ConverterConfigUpdateResponse(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'config_id': 'int'
- }
-
- attribute_map = {
- 'config_id': 'configId'
- }
-
- def __init__(self, config_id=None, local_vars_configuration=None): # noqa: E501
- """ConverterConfigUpdateResponse - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._config_id = None
- self.discriminator = None
-
- if config_id is not None:
- self.config_id = config_id
-
- @property
- def config_id(self):
- """Gets the config_id of this ConverterConfigUpdateResponse. # noqa: E501
-
-
- :return: The config_id of this ConverterConfigUpdateResponse. # noqa: E501
- :rtype: int
- """
- return self._config_id
-
- @config_id.setter
- def config_id(self, config_id):
- """Sets the config_id of this ConverterConfigUpdateResponse.
-
-
- :param config_id: The config_id of this ConverterConfigUpdateResponse. # noqa: E501
- :type: int
- """
-
- self._config_id = config_id
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, ConverterConfigUpdateResponse):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, ConverterConfigUpdateResponse):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/create_converter_config_parameters.py b/lilt/models/create_converter_config_parameters.py
index f3a0aed..f3380a1 100644
--- a/lilt/models/create_converter_config_parameters.py
+++ b/lilt/models/create_converter_config_parameters.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/create_webhook_options.py b/lilt/models/create_webhook_options.py
index c0bf716..2d0341d 100644
--- a/lilt/models/create_webhook_options.py
+++ b/lilt/models/create_webhook_options.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/delete_lilt_create_content200_response.py b/lilt/models/delete_lilt_create_content200_response.py
index 9d8cbf0..23dfc42 100644
--- a/lilt/models/delete_lilt_create_content200_response.py
+++ b/lilt/models/delete_lilt_create_content200_response.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/delete_segment_from_memory_response.py b/lilt/models/delete_segment_from_memory_response.py
index d189100..e306271 100644
--- a/lilt/models/delete_segment_from_memory_response.py
+++ b/lilt/models/delete_segment_from_memory_response.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/document_assignment_parameters.py b/lilt/models/document_assignment_parameters.py
deleted file mode 100644
index 645f083..0000000
--- a/lilt/models/document_assignment_parameters.py
+++ /dev/null
@@ -1,237 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class DocumentAssignmentParameters(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int',
- 'email': 'str',
- 'is_translator': 'bool',
- 'is_reviewer': 'bool',
- 'due_date': 'datetime'
- }
-
- attribute_map = {
- 'id': 'id',
- 'email': 'email',
- 'is_translator': 'is_translator',
- 'is_reviewer': 'is_reviewer',
- 'due_date': 'due_date'
- }
-
- def __init__(self, id=None, email=None, is_translator=None, is_reviewer=None, due_date=None, local_vars_configuration=None): # noqa: E501
- """DocumentAssignmentParameters - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._email = None
- self._is_translator = None
- self._is_reviewer = None
- self._due_date = None
- self.discriminator = None
-
- self.id = id
- self.email = email
- if is_translator is not None:
- self.is_translator = is_translator
- if is_reviewer is not None:
- self.is_reviewer = is_reviewer
- if due_date is not None:
- self.due_date = due_date
-
- @property
- def id(self):
- """Gets the id of this DocumentAssignmentParameters. # noqa: E501
-
- A unique Document identifier. # noqa: E501
-
- :return: The id of this DocumentAssignmentParameters. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this DocumentAssignmentParameters.
-
- A unique Document identifier. # noqa: E501
-
- :param id: The id of this DocumentAssignmentParameters. # noqa: E501
- :type: int
- """
- if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
- raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
-
- self._id = id
-
- @property
- def email(self):
- """Gets the email of this DocumentAssignmentParameters. # noqa: E501
-
- An email address. # noqa: E501
-
- :return: The email of this DocumentAssignmentParameters. # noqa: E501
- :rtype: str
- """
- return self._email
-
- @email.setter
- def email(self, email):
- """Sets the email of this DocumentAssignmentParameters.
-
- An email address. # noqa: E501
-
- :param email: The email of this DocumentAssignmentParameters. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and email is None: # noqa: E501
- raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501
-
- self._email = email
-
- @property
- def is_translator(self):
- """Gets the is_translator of this DocumentAssignmentParameters. # noqa: E501
-
- If true, assign for translating. If false, then unassign. # noqa: E501
-
- :return: The is_translator of this DocumentAssignmentParameters. # noqa: E501
- :rtype: bool
- """
- return self._is_translator
-
- @is_translator.setter
- def is_translator(self, is_translator):
- """Sets the is_translator of this DocumentAssignmentParameters.
-
- If true, assign for translating. If false, then unassign. # noqa: E501
-
- :param is_translator: The is_translator of this DocumentAssignmentParameters. # noqa: E501
- :type: bool
- """
-
- self._is_translator = is_translator
-
- @property
- def is_reviewer(self):
- """Gets the is_reviewer of this DocumentAssignmentParameters. # noqa: E501
-
- If true, assign for reviewing. If false, then unassign. # noqa: E501
-
- :return: The is_reviewer of this DocumentAssignmentParameters. # noqa: E501
- :rtype: bool
- """
- return self._is_reviewer
-
- @is_reviewer.setter
- def is_reviewer(self, is_reviewer):
- """Sets the is_reviewer of this DocumentAssignmentParameters.
-
- If true, assign for reviewing. If false, then unassign. # noqa: E501
-
- :param is_reviewer: The is_reviewer of this DocumentAssignmentParameters. # noqa: E501
- :type: bool
- """
-
- self._is_reviewer = is_reviewer
-
- @property
- def due_date(self):
- """Gets the due_date of this DocumentAssignmentParameters. # noqa: E501
-
- Due date for translation or review (set based on `is_translator` and `is_reviewer` flags). # noqa: E501
-
- :return: The due_date of this DocumentAssignmentParameters. # noqa: E501
- :rtype: datetime
- """
- return self._due_date
-
- @due_date.setter
- def due_date(self, due_date):
- """Sets the due_date of this DocumentAssignmentParameters.
-
- Due date for translation or review (set based on `is_translator` and `is_reviewer` flags). # noqa: E501
-
- :param due_date: The due_date of this DocumentAssignmentParameters. # noqa: E501
- :type: datetime
- """
-
- self._due_date = due_date
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, DocumentAssignmentParameters):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, DocumentAssignmentParameters):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/document_assignment_response.py b/lilt/models/document_assignment_response.py
deleted file mode 100644
index bdfd4d8..0000000
--- a/lilt/models/document_assignment_response.py
+++ /dev/null
@@ -1,123 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class DocumentAssignmentResponse(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int'
- }
-
- attribute_map = {
- 'id': 'id'
- }
-
- def __init__(self, id=None, local_vars_configuration=None): # noqa: E501
- """DocumentAssignmentResponse - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self.discriminator = None
-
- if id is not None:
- self.id = id
-
- @property
- def id(self):
- """Gets the id of this DocumentAssignmentResponse. # noqa: E501
-
- A unique Document identifier. # noqa: E501
-
- :return: The id of this DocumentAssignmentResponse. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this DocumentAssignmentResponse.
-
- A unique Document identifier. # noqa: E501
-
- :param id: The id of this DocumentAssignmentResponse. # noqa: E501
- :type: int
- """
-
- self._id = id
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, DocumentAssignmentResponse):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, DocumentAssignmentResponse):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/document_comments.py b/lilt/models/document_comments.py
deleted file mode 100644
index fcca1e1..0000000
--- a/lilt/models/document_comments.py
+++ /dev/null
@@ -1,121 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class DocumentComments(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- '_1234567': 'list[Comment]'
- }
-
- attribute_map = {
- '_1234567': '1234567'
- }
-
- def __init__(self, _1234567=None, local_vars_configuration=None): # noqa: E501
- """DocumentComments - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self.__1234567 = None
- self.discriminator = None
-
- if _1234567 is not None:
- self._1234567 = _1234567
-
- @property
- def _1234567(self):
- """Gets the _1234567 of this DocumentComments. # noqa: E501
-
-
- :return: The _1234567 of this DocumentComments. # noqa: E501
- :rtype: list[Comment]
- """
- return self.__1234567
-
- @_1234567.setter
- def _1234567(self, _1234567):
- """Sets the _1234567 of this DocumentComments.
-
-
- :param _1234567: The _1234567 of this DocumentComments. # noqa: E501
- :type: list[Comment]
- """
-
- self.__1234567 = _1234567
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, DocumentComments):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, DocumentComments):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/document_delete_response.py b/lilt/models/document_delete_response.py
deleted file mode 100644
index 3204569..0000000
--- a/lilt/models/document_delete_response.py
+++ /dev/null
@@ -1,151 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class DocumentDeleteResponse(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int',
- 'deleted': 'bool'
- }
-
- attribute_map = {
- 'id': 'id',
- 'deleted': 'deleted'
- }
-
- def __init__(self, id=None, deleted=None, local_vars_configuration=None): # noqa: E501
- """DocumentDeleteResponse - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._deleted = None
- self.discriminator = None
-
- if id is not None:
- self.id = id
- if deleted is not None:
- self.deleted = deleted
-
- @property
- def id(self):
- """Gets the id of this DocumentDeleteResponse. # noqa: E501
-
- A unique Document identifier. # noqa: E501
-
- :return: The id of this DocumentDeleteResponse. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this DocumentDeleteResponse.
-
- A unique Document identifier. # noqa: E501
-
- :param id: The id of this DocumentDeleteResponse. # noqa: E501
- :type: int
- """
-
- self._id = id
-
- @property
- def deleted(self):
- """Gets the deleted of this DocumentDeleteResponse. # noqa: E501
-
- If the operation succeeded, then `true`. Otherwise, `false`. # noqa: E501
-
- :return: The deleted of this DocumentDeleteResponse. # noqa: E501
- :rtype: bool
- """
- return self._deleted
-
- @deleted.setter
- def deleted(self, deleted):
- """Sets the deleted of this DocumentDeleteResponse.
-
- If the operation succeeded, then `true`. Otherwise, `false`. # noqa: E501
-
- :param deleted: The deleted of this DocumentDeleteResponse. # noqa: E501
- :type: bool
- """
-
- self._deleted = deleted
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, DocumentDeleteResponse):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, DocumentDeleteResponse):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/document_done_update_parameters.py b/lilt/models/document_done_update_parameters.py
deleted file mode 100644
index 414e02f..0000000
--- a/lilt/models/document_done_update_parameters.py
+++ /dev/null
@@ -1,124 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class DocumentDoneUpdateParameters(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'document_ids': 'list[float]'
- }
-
- attribute_map = {
- 'document_ids': 'documentIds'
- }
-
- def __init__(self, document_ids=None, local_vars_configuration=None): # noqa: E501
- """DocumentDoneUpdateParameters - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._document_ids = None
- self.discriminator = None
-
- self.document_ids = document_ids
-
- @property
- def document_ids(self):
- """Gets the document_ids of this DocumentDoneUpdateParameters. # noqa: E501
-
- array of document ids # noqa: E501
-
- :return: The document_ids of this DocumentDoneUpdateParameters. # noqa: E501
- :rtype: list[float]
- """
- return self._document_ids
-
- @document_ids.setter
- def document_ids(self, document_ids):
- """Sets the document_ids of this DocumentDoneUpdateParameters.
-
- array of document ids # noqa: E501
-
- :param document_ids: The document_ids of this DocumentDoneUpdateParameters. # noqa: E501
- :type: list[float]
- """
- if self.local_vars_configuration.client_side_validation and document_ids is None: # noqa: E501
- raise ValueError("Invalid value for `document_ids`, must not be `None`") # noqa: E501
-
- self._document_ids = document_ids
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, DocumentDoneUpdateParameters):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, DocumentDoneUpdateParameters):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/document_done_update_parameters1.py b/lilt/models/document_done_update_parameters1.py
deleted file mode 100644
index 4256454..0000000
--- a/lilt/models/document_done_update_parameters1.py
+++ /dev/null
@@ -1,151 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class DocumentDoneUpdateParameters1(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'document_ids': 'list[float]',
- 'is_done': 'bool'
- }
-
- attribute_map = {
- 'document_ids': 'documentIds',
- 'is_done': 'isDone'
- }
-
- def __init__(self, document_ids=None, is_done=None, local_vars_configuration=None): # noqa: E501
- """DocumentDoneUpdateParameters1 - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._document_ids = None
- self._is_done = None
- self.discriminator = None
-
- self.document_ids = document_ids
- self.is_done = is_done
-
- @property
- def document_ids(self):
- """Gets the document_ids of this DocumentDoneUpdateParameters1. # noqa: E501
-
- array of document ids # noqa: E501
-
- :return: The document_ids of this DocumentDoneUpdateParameters1. # noqa: E501
- :rtype: list[float]
- """
- return self._document_ids
-
- @document_ids.setter
- def document_ids(self, document_ids):
- """Sets the document_ids of this DocumentDoneUpdateParameters1.
-
- array of document ids # noqa: E501
-
- :param document_ids: The document_ids of this DocumentDoneUpdateParameters1. # noqa: E501
- :type: list[float]
- """
- if self.local_vars_configuration.client_side_validation and document_ids is None: # noqa: E501
- raise ValueError("Invalid value for `document_ids`, must not be `None`") # noqa: E501
-
- self._document_ids = document_ids
-
- @property
- def is_done(self):
- """Gets the is_done of this DocumentDoneUpdateParameters1. # noqa: E501
-
-
- :return: The is_done of this DocumentDoneUpdateParameters1. # noqa: E501
- :rtype: bool
- """
- return self._is_done
-
- @is_done.setter
- def is_done(self, is_done):
- """Sets the is_done of this DocumentDoneUpdateParameters1.
-
-
- :param is_done: The is_done of this DocumentDoneUpdateParameters1. # noqa: E501
- :type: bool
- """
- if self.local_vars_configuration.client_side_validation and is_done is None: # noqa: E501
- raise ValueError("Invalid value for `is_done`, must not be `None`") # noqa: E501
-
- self._is_done = is_done
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, DocumentDoneUpdateParameters1):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, DocumentDoneUpdateParameters1):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/document_done_update_parameters2.py b/lilt/models/document_done_update_parameters2.py
deleted file mode 100644
index 7aa0b32..0000000
--- a/lilt/models/document_done_update_parameters2.py
+++ /dev/null
@@ -1,151 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class DocumentDoneUpdateParameters2(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'document_ids': 'list[float]',
- 'is_done': 'bool'
- }
-
- attribute_map = {
- 'document_ids': 'documentIds',
- 'is_done': 'isDone'
- }
-
- def __init__(self, document_ids=None, is_done=None, local_vars_configuration=None): # noqa: E501
- """DocumentDoneUpdateParameters2 - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._document_ids = None
- self._is_done = None
- self.discriminator = None
-
- self.document_ids = document_ids
- self.is_done = is_done
-
- @property
- def document_ids(self):
- """Gets the document_ids of this DocumentDoneUpdateParameters2. # noqa: E501
-
- array of document ids # noqa: E501
-
- :return: The document_ids of this DocumentDoneUpdateParameters2. # noqa: E501
- :rtype: list[float]
- """
- return self._document_ids
-
- @document_ids.setter
- def document_ids(self, document_ids):
- """Sets the document_ids of this DocumentDoneUpdateParameters2.
-
- array of document ids # noqa: E501
-
- :param document_ids: The document_ids of this DocumentDoneUpdateParameters2. # noqa: E501
- :type: list[float]
- """
- if self.local_vars_configuration.client_side_validation and document_ids is None: # noqa: E501
- raise ValueError("Invalid value for `document_ids`, must not be `None`") # noqa: E501
-
- self._document_ids = document_ids
-
- @property
- def is_done(self):
- """Gets the is_done of this DocumentDoneUpdateParameters2. # noqa: E501
-
-
- :return: The is_done of this DocumentDoneUpdateParameters2. # noqa: E501
- :rtype: bool
- """
- return self._is_done
-
- @is_done.setter
- def is_done(self, is_done):
- """Sets the is_done of this DocumentDoneUpdateParameters2.
-
-
- :param is_done: The is_done of this DocumentDoneUpdateParameters2. # noqa: E501
- :type: bool
- """
- if self.local_vars_configuration.client_side_validation and is_done is None: # noqa: E501
- raise ValueError("Invalid value for `is_done`, must not be `None`") # noqa: E501
-
- self._is_done = is_done
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, DocumentDoneUpdateParameters2):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, DocumentDoneUpdateParameters2):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/document_parameters.py b/lilt/models/document_parameters.py
deleted file mode 100644
index 5cb0bcd..0000000
--- a/lilt/models/document_parameters.py
+++ /dev/null
@@ -1,153 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class DocumentParameters(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'name': 'str',
- 'project_id': 'int'
- }
-
- attribute_map = {
- 'name': 'name',
- 'project_id': 'project_id'
- }
-
- def __init__(self, name=None, project_id=None, local_vars_configuration=None): # noqa: E501
- """DocumentParameters - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._name = None
- self._project_id = None
- self.discriminator = None
-
- self.name = name
- self.project_id = project_id
-
- @property
- def name(self):
- """Gets the name of this DocumentParameters. # noqa: E501
-
- The document name. # noqa: E501
-
- :return: The name of this DocumentParameters. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this DocumentParameters.
-
- The document name. # noqa: E501
-
- :param name: The name of this DocumentParameters. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
- raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
-
- self._name = name
-
- @property
- def project_id(self):
- """Gets the project_id of this DocumentParameters. # noqa: E501
-
- A unique Project identifier. # noqa: E501
-
- :return: The project_id of this DocumentParameters. # noqa: E501
- :rtype: int
- """
- return self._project_id
-
- @project_id.setter
- def project_id(self, project_id):
- """Sets the project_id of this DocumentParameters.
-
- A unique Project identifier. # noqa: E501
-
- :param project_id: The project_id of this DocumentParameters. # noqa: E501
- :type: int
- """
- if self.local_vars_configuration.client_side_validation and project_id is None: # noqa: E501
- raise ValueError("Invalid value for `project_id`, must not be `None`") # noqa: E501
-
- self._project_id = project_id
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, DocumentParameters):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, DocumentParameters):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/document_pretranslate_parameters.py b/lilt/models/document_pretranslate_parameters.py
deleted file mode 100644
index 5c09c29..0000000
--- a/lilt/models/document_pretranslate_parameters.py
+++ /dev/null
@@ -1,236 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class DocumentPretranslateParameters(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'list[int]',
- 'auto_accept': 'bool',
- 'case_sensitive': 'bool',
- 'attribute_to_creator': 'bool',
- 'mode': 'str'
- }
-
- attribute_map = {
- 'id': 'id',
- 'auto_accept': 'auto_accept',
- 'case_sensitive': 'case_sensitive',
- 'attribute_to_creator': 'attribute_to_creator',
- 'mode': 'mode'
- }
-
- def __init__(self, id=None, auto_accept=None, case_sensitive=None, attribute_to_creator=None, mode=None, local_vars_configuration=None): # noqa: E501
- """DocumentPretranslateParameters - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._auto_accept = None
- self._case_sensitive = None
- self._attribute_to_creator = None
- self._mode = None
- self.discriminator = None
-
- self.id = id
- if auto_accept is not None:
- self.auto_accept = auto_accept
- if case_sensitive is not None:
- self.case_sensitive = case_sensitive
- if attribute_to_creator is not None:
- self.attribute_to_creator = attribute_to_creator
- if mode is not None:
- self.mode = mode
-
- @property
- def id(self):
- """Gets the id of this DocumentPretranslateParameters. # noqa: E501
-
- A list of unique Document identifiers. # noqa: E501
-
- :return: The id of this DocumentPretranslateParameters. # noqa: E501
- :rtype: list[int]
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this DocumentPretranslateParameters.
-
- A list of unique Document identifiers. # noqa: E501
-
- :param id: The id of this DocumentPretranslateParameters. # noqa: E501
- :type: list[int]
- """
- if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
- raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
-
- self._id = id
-
- @property
- def auto_accept(self):
- """Gets the auto_accept of this DocumentPretranslateParameters. # noqa: E501
-
- Optional parameter for auto-accepting 100% TM hits. # noqa: E501
-
- :return: The auto_accept of this DocumentPretranslateParameters. # noqa: E501
- :rtype: bool
- """
- return self._auto_accept
-
- @auto_accept.setter
- def auto_accept(self, auto_accept):
- """Sets the auto_accept of this DocumentPretranslateParameters.
-
- Optional parameter for auto-accepting 100% TM hits. # noqa: E501
-
- :param auto_accept: The auto_accept of this DocumentPretranslateParameters. # noqa: E501
- :type: bool
- """
-
- self._auto_accept = auto_accept
-
- @property
- def case_sensitive(self):
- """Gets the case_sensitive of this DocumentPretranslateParameters. # noqa: E501
-
- Optional for using case matching against TM hits.. # noqa: E501
-
- :return: The case_sensitive of this DocumentPretranslateParameters. # noqa: E501
- :rtype: bool
- """
- return self._case_sensitive
-
- @case_sensitive.setter
- def case_sensitive(self, case_sensitive):
- """Sets the case_sensitive of this DocumentPretranslateParameters.
-
- Optional for using case matching against TM hits.. # noqa: E501
-
- :param case_sensitive: The case_sensitive of this DocumentPretranslateParameters. # noqa: E501
- :type: bool
- """
-
- self._case_sensitive = case_sensitive
-
- @property
- def attribute_to_creator(self):
- """Gets the attribute_to_creator of this DocumentPretranslateParameters. # noqa: E501
-
- Optional parameter for attributing translation authorship of exact matches to document creator. # noqa: E501
-
- :return: The attribute_to_creator of this DocumentPretranslateParameters. # noqa: E501
- :rtype: bool
- """
- return self._attribute_to_creator
-
- @attribute_to_creator.setter
- def attribute_to_creator(self, attribute_to_creator):
- """Sets the attribute_to_creator of this DocumentPretranslateParameters.
-
- Optional parameter for attributing translation authorship of exact matches to document creator. # noqa: E501
-
- :param attribute_to_creator: The attribute_to_creator of this DocumentPretranslateParameters. # noqa: E501
- :type: bool
- """
-
- self._attribute_to_creator = attribute_to_creator
-
- @property
- def mode(self):
- """Gets the mode of this DocumentPretranslateParameters. # noqa: E501
-
- An optional parameter indicating how the document will be pretranslated. The accepted values are `tm`, or `tm+mt`. Default is `tm`. # noqa: E501
-
- :return: The mode of this DocumentPretranslateParameters. # noqa: E501
- :rtype: str
- """
- return self._mode
-
- @mode.setter
- def mode(self, mode):
- """Sets the mode of this DocumentPretranslateParameters.
-
- An optional parameter indicating how the document will be pretranslated. The accepted values are `tm`, or `tm+mt`. Default is `tm`. # noqa: E501
-
- :param mode: The mode of this DocumentPretranslateParameters. # noqa: E501
- :type: str
- """
-
- self._mode = mode
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, DocumentPretranslateParameters):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, DocumentPretranslateParameters):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/document_pretranslate_response.py b/lilt/models/document_pretranslate_response.py
deleted file mode 100644
index fcf53af..0000000
--- a/lilt/models/document_pretranslate_response.py
+++ /dev/null
@@ -1,179 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class DocumentPretranslateResponse(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'list[int]',
- 'is_pretranslating': 'bool',
- 'documents': 'list[DocumentPretranslating]'
- }
-
- attribute_map = {
- 'id': 'id',
- 'is_pretranslating': 'is_pretranslating',
- 'documents': 'documents'
- }
-
- def __init__(self, id=None, is_pretranslating=None, documents=None, local_vars_configuration=None): # noqa: E501
- """DocumentPretranslateResponse - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._is_pretranslating = None
- self._documents = None
- self.discriminator = None
-
- if id is not None:
- self.id = id
- if is_pretranslating is not None:
- self.is_pretranslating = is_pretranslating
- if documents is not None:
- self.documents = documents
-
- @property
- def id(self):
- """Gets the id of this DocumentPretranslateResponse. # noqa: E501
-
- A list of documents being pretranslated. # noqa: E501
-
- :return: The id of this DocumentPretranslateResponse. # noqa: E501
- :rtype: list[int]
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this DocumentPretranslateResponse.
-
- A list of documents being pretranslated. # noqa: E501
-
- :param id: The id of this DocumentPretranslateResponse. # noqa: E501
- :type: list[int]
- """
-
- self._id = id
-
- @property
- def is_pretranslating(self):
- """Gets the is_pretranslating of this DocumentPretranslateResponse. # noqa: E501
-
- If the operation succeeded, then `true`. Otherwise, `false`. # noqa: E501
-
- :return: The is_pretranslating of this DocumentPretranslateResponse. # noqa: E501
- :rtype: bool
- """
- return self._is_pretranslating
-
- @is_pretranslating.setter
- def is_pretranslating(self, is_pretranslating):
- """Sets the is_pretranslating of this DocumentPretranslateResponse.
-
- If the operation succeeded, then `true`. Otherwise, `false`. # noqa: E501
-
- :param is_pretranslating: The is_pretranslating of this DocumentPretranslateResponse. # noqa: E501
- :type: bool
- """
-
- self._is_pretranslating = is_pretranslating
-
- @property
- def documents(self):
- """Gets the documents of this DocumentPretranslateResponse. # noqa: E501
-
- Document pretranslation status. # noqa: E501
-
- :return: The documents of this DocumentPretranslateResponse. # noqa: E501
- :rtype: list[DocumentPretranslating]
- """
- return self._documents
-
- @documents.setter
- def documents(self, documents):
- """Sets the documents of this DocumentPretranslateResponse.
-
- Document pretranslation status. # noqa: E501
-
- :param documents: The documents of this DocumentPretranslateResponse. # noqa: E501
- :type: list[DocumentPretranslating]
- """
-
- self._documents = documents
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, DocumentPretranslateResponse):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, DocumentPretranslateResponse):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/document_pretranslating.py b/lilt/models/document_pretranslating.py
deleted file mode 100644
index 6a9ee93..0000000
--- a/lilt/models/document_pretranslating.py
+++ /dev/null
@@ -1,289 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class DocumentPretranslating(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'float',
- 'import_in_progress': 'bool',
- 'import_succeeded': 'bool',
- 'import_error_message': 'str',
- 'is_processing': 'bool',
- 'is_pretranslating': 'bool',
- 'status': 'DocumentPretranslatingStatus'
- }
-
- attribute_map = {
- 'id': 'id',
- 'import_in_progress': 'import_in_progress',
- 'import_succeeded': 'import_succeeded',
- 'import_error_message': 'import_error_message',
- 'is_processing': 'is_processing',
- 'is_pretranslating': 'is_pretranslating',
- 'status': 'status'
- }
-
- def __init__(self, id=None, import_in_progress=None, import_succeeded=None, import_error_message=None, is_processing=None, is_pretranslating=None, status=None, local_vars_configuration=None): # noqa: E501
- """DocumentPretranslating - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._import_in_progress = None
- self._import_succeeded = None
- self._import_error_message = None
- self._is_processing = None
- self._is_pretranslating = None
- self._status = None
- self.discriminator = None
-
- if id is not None:
- self.id = id
- if import_in_progress is not None:
- self.import_in_progress = import_in_progress
- if import_succeeded is not None:
- self.import_succeeded = import_succeeded
- if import_error_message is not None:
- self.import_error_message = import_error_message
- if is_processing is not None:
- self.is_processing = is_processing
- if is_pretranslating is not None:
- self.is_pretranslating = is_pretranslating
- if status is not None:
- self.status = status
-
- @property
- def id(self):
- """Gets the id of this DocumentPretranslating. # noqa: E501
-
- A status object indicating the pretranslation status. # noqa: E501
-
- :return: The id of this DocumentPretranslating. # noqa: E501
- :rtype: float
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this DocumentPretranslating.
-
- A status object indicating the pretranslation status. # noqa: E501
-
- :param id: The id of this DocumentPretranslating. # noqa: E501
- :type: float
- """
-
- self._id = id
-
- @property
- def import_in_progress(self):
- """Gets the import_in_progress of this DocumentPretranslating. # noqa: E501
-
- Indicates that the document is being imported. # noqa: E501
-
- :return: The import_in_progress of this DocumentPretranslating. # noqa: E501
- :rtype: bool
- """
- return self._import_in_progress
-
- @import_in_progress.setter
- def import_in_progress(self, import_in_progress):
- """Sets the import_in_progress of this DocumentPretranslating.
-
- Indicates that the document is being imported. # noqa: E501
-
- :param import_in_progress: The import_in_progress of this DocumentPretranslating. # noqa: E501
- :type: bool
- """
-
- self._import_in_progress = import_in_progress
-
- @property
- def import_succeeded(self):
- """Gets the import_succeeded of this DocumentPretranslating. # noqa: E501
-
- Indicates that the document was successfully imported. # noqa: E501
-
- :return: The import_succeeded of this DocumentPretranslating. # noqa: E501
- :rtype: bool
- """
- return self._import_succeeded
-
- @import_succeeded.setter
- def import_succeeded(self, import_succeeded):
- """Sets the import_succeeded of this DocumentPretranslating.
-
- Indicates that the document was successfully imported. # noqa: E501
-
- :param import_succeeded: The import_succeeded of this DocumentPretranslating. # noqa: E501
- :type: bool
- """
-
- self._import_succeeded = import_succeeded
-
- @property
- def import_error_message(self):
- """Gets the import_error_message of this DocumentPretranslating. # noqa: E501
-
- Indicates there was an error importing the document. # noqa: E501
-
- :return: The import_error_message of this DocumentPretranslating. # noqa: E501
- :rtype: str
- """
- return self._import_error_message
-
- @import_error_message.setter
- def import_error_message(self, import_error_message):
- """Sets the import_error_message of this DocumentPretranslating.
-
- Indicates there was an error importing the document. # noqa: E501
-
- :param import_error_message: The import_error_message of this DocumentPretranslating. # noqa: E501
- :type: str
- """
-
- self._import_error_message = import_error_message
-
- @property
- def is_processing(self):
- """Gets the is_processing of this DocumentPretranslating. # noqa: E501
-
- Indicates the document is being processed. # noqa: E501
-
- :return: The is_processing of this DocumentPretranslating. # noqa: E501
- :rtype: bool
- """
- return self._is_processing
-
- @is_processing.setter
- def is_processing(self, is_processing):
- """Sets the is_processing of this DocumentPretranslating.
-
- Indicates the document is being processed. # noqa: E501
-
- :param is_processing: The is_processing of this DocumentPretranslating. # noqa: E501
- :type: bool
- """
-
- self._is_processing = is_processing
-
- @property
- def is_pretranslating(self):
- """Gets the is_pretranslating of this DocumentPretranslating. # noqa: E501
-
- Indicates the document is being pretranslated. # noqa: E501
-
- :return: The is_pretranslating of this DocumentPretranslating. # noqa: E501
- :rtype: bool
- """
- return self._is_pretranslating
-
- @is_pretranslating.setter
- def is_pretranslating(self, is_pretranslating):
- """Sets the is_pretranslating of this DocumentPretranslating.
-
- Indicates the document is being pretranslated. # noqa: E501
-
- :param is_pretranslating: The is_pretranslating of this DocumentPretranslating. # noqa: E501
- :type: bool
- """
-
- self._is_pretranslating = is_pretranslating
-
- @property
- def status(self):
- """Gets the status of this DocumentPretranslating. # noqa: E501
-
-
- :return: The status of this DocumentPretranslating. # noqa: E501
- :rtype: DocumentPretranslatingStatus
- """
- return self._status
-
- @status.setter
- def status(self, status):
- """Sets the status of this DocumentPretranslating.
-
-
- :param status: The status of this DocumentPretranslating. # noqa: E501
- :type: DocumentPretranslatingStatus
- """
-
- self._status = status
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, DocumentPretranslating):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, DocumentPretranslating):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/document_pretranslating_status.py b/lilt/models/document_pretranslating_status.py
deleted file mode 100644
index 3400e1f..0000000
--- a/lilt/models/document_pretranslating_status.py
+++ /dev/null
@@ -1,123 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class DocumentPretranslatingStatus(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'pretranslation': 'str'
- }
-
- attribute_map = {
- 'pretranslation': 'pretranslation'
- }
-
- def __init__(self, pretranslation=None, local_vars_configuration=None): # noqa: E501
- """DocumentPretranslatingStatus - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._pretranslation = None
- self.discriminator = None
-
- if pretranslation is not None:
- self.pretranslation = pretranslation
-
- @property
- def pretranslation(self):
- """Gets the pretranslation of this DocumentPretranslatingStatus. # noqa: E501
-
- # noqa: E501
-
- :return: The pretranslation of this DocumentPretranslatingStatus. # noqa: E501
- :rtype: str
- """
- return self._pretranslation
-
- @pretranslation.setter
- def pretranslation(self, pretranslation):
- """Sets the pretranslation of this DocumentPretranslatingStatus.
-
- # noqa: E501
-
- :param pretranslation: The pretranslation of this DocumentPretranslatingStatus. # noqa: E501
- :type: str
- """
-
- self._pretranslation = pretranslation
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, DocumentPretranslatingStatus):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, DocumentPretranslatingStatus):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/document_quote.py b/lilt/models/document_quote.py
deleted file mode 100644
index 5594fa1..0000000
--- a/lilt/models/document_quote.py
+++ /dev/null
@@ -1,291 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class DocumentQuote(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int',
- 'num_source_words': 'int',
- 'num_words_new': 'int',
- 'num_segments_new': 'int',
- 'num_words_repetition': 'int',
- 'num_segments_repetition': 'int',
- 'bands': 'list[MatchBand]'
- }
-
- attribute_map = {
- 'id': 'id',
- 'num_source_words': 'num_source_words',
- 'num_words_new': 'num_words_new',
- 'num_segments_new': 'num_segments_new',
- 'num_words_repetition': 'num_words_repetition',
- 'num_segments_repetition': 'num_segments_repetition',
- 'bands': 'bands'
- }
-
- def __init__(self, id=None, num_source_words=None, num_words_new=None, num_segments_new=None, num_words_repetition=None, num_segments_repetition=None, bands=None, local_vars_configuration=None): # noqa: E501
- """DocumentQuote - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._num_source_words = None
- self._num_words_new = None
- self._num_segments_new = None
- self._num_words_repetition = None
- self._num_segments_repetition = None
- self._bands = None
- self.discriminator = None
-
- if id is not None:
- self.id = id
- if num_source_words is not None:
- self.num_source_words = num_source_words
- if num_words_new is not None:
- self.num_words_new = num_words_new
- if num_segments_new is not None:
- self.num_segments_new = num_segments_new
- if num_words_repetition is not None:
- self.num_words_repetition = num_words_repetition
- if num_segments_repetition is not None:
- self.num_segments_repetition = num_segments_repetition
- if bands is not None:
- self.bands = bands
-
- @property
- def id(self):
- """Gets the id of this DocumentQuote. # noqa: E501
-
- A unique Document identifier. # noqa: E501
-
- :return: The id of this DocumentQuote. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this DocumentQuote.
-
- A unique Document identifier. # noqa: E501
-
- :param id: The id of this DocumentQuote. # noqa: E501
- :type: int
- """
-
- self._id = id
-
- @property
- def num_source_words(self):
- """Gets the num_source_words of this DocumentQuote. # noqa: E501
-
- The number of source words in the Document. # noqa: E501
-
- :return: The num_source_words of this DocumentQuote. # noqa: E501
- :rtype: int
- """
- return self._num_source_words
-
- @num_source_words.setter
- def num_source_words(self, num_source_words):
- """Sets the num_source_words of this DocumentQuote.
-
- The number of source words in the Document. # noqa: E501
-
- :param num_source_words: The num_source_words of this DocumentQuote. # noqa: E501
- :type: int
- """
-
- self._num_source_words = num_source_words
-
- @property
- def num_words_new(self):
- """Gets the num_words_new of this DocumentQuote. # noqa: E501
-
- The number of new source words in the Document. # noqa: E501
-
- :return: The num_words_new of this DocumentQuote. # noqa: E501
- :rtype: int
- """
- return self._num_words_new
-
- @num_words_new.setter
- def num_words_new(self, num_words_new):
- """Sets the num_words_new of this DocumentQuote.
-
- The number of new source words in the Document. # noqa: E501
-
- :param num_words_new: The num_words_new of this DocumentQuote. # noqa: E501
- :type: int
- """
-
- self._num_words_new = num_words_new
-
- @property
- def num_segments_new(self):
- """Gets the num_segments_new of this DocumentQuote. # noqa: E501
-
- The number of new segments in the Document. # noqa: E501
-
- :return: The num_segments_new of this DocumentQuote. # noqa: E501
- :rtype: int
- """
- return self._num_segments_new
-
- @num_segments_new.setter
- def num_segments_new(self, num_segments_new):
- """Sets the num_segments_new of this DocumentQuote.
-
- The number of new segments in the Document. # noqa: E501
-
- :param num_segments_new: The num_segments_new of this DocumentQuote. # noqa: E501
- :type: int
- """
-
- self._num_segments_new = num_segments_new
-
- @property
- def num_words_repetition(self):
- """Gets the num_words_repetition of this DocumentQuote. # noqa: E501
-
- The number of repetition source words in the Document. # noqa: E501
-
- :return: The num_words_repetition of this DocumentQuote. # noqa: E501
- :rtype: int
- """
- return self._num_words_repetition
-
- @num_words_repetition.setter
- def num_words_repetition(self, num_words_repetition):
- """Sets the num_words_repetition of this DocumentQuote.
-
- The number of repetition source words in the Document. # noqa: E501
-
- :param num_words_repetition: The num_words_repetition of this DocumentQuote. # noqa: E501
- :type: int
- """
-
- self._num_words_repetition = num_words_repetition
-
- @property
- def num_segments_repetition(self):
- """Gets the num_segments_repetition of this DocumentQuote. # noqa: E501
-
- The number of repetition segments in the Document. # noqa: E501
-
- :return: The num_segments_repetition of this DocumentQuote. # noqa: E501
- :rtype: int
- """
- return self._num_segments_repetition
-
- @num_segments_repetition.setter
- def num_segments_repetition(self, num_segments_repetition):
- """Sets the num_segments_repetition of this DocumentQuote.
-
- The number of repetition segments in the Document. # noqa: E501
-
- :param num_segments_repetition: The num_segments_repetition of this DocumentQuote. # noqa: E501
- :type: int
- """
-
- self._num_segments_repetition = num_segments_repetition
-
- @property
- def bands(self):
- """Gets the bands of this DocumentQuote. # noqa: E501
-
- A list of MatchBand objects that represent translation memory leverage statistics. # noqa: E501
-
- :return: The bands of this DocumentQuote. # noqa: E501
- :rtype: list[MatchBand]
- """
- return self._bands
-
- @bands.setter
- def bands(self, bands):
- """Sets the bands of this DocumentQuote.
-
- A list of MatchBand objects that represent translation memory leverage statistics. # noqa: E501
-
- :param bands: The bands of this DocumentQuote. # noqa: E501
- :type: list[MatchBand]
- """
-
- self._bands = bands
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, DocumentQuote):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, DocumentQuote):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/document_update_parameters.py b/lilt/models/document_update_parameters.py
deleted file mode 100644
index f91af45..0000000
--- a/lilt/models/document_update_parameters.py
+++ /dev/null
@@ -1,153 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class DocumentUpdateParameters(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int',
- 'name': 'str'
- }
-
- attribute_map = {
- 'id': 'id',
- 'name': 'name'
- }
-
- def __init__(self, id=None, name=None, local_vars_configuration=None): # noqa: E501
- """DocumentUpdateParameters - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._name = None
- self.discriminator = None
-
- self.id = id
- self.name = name
-
- @property
- def id(self):
- """Gets the id of this DocumentUpdateParameters. # noqa: E501
-
- A unique Document identifier. # noqa: E501
-
- :return: The id of this DocumentUpdateParameters. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this DocumentUpdateParameters.
-
- A unique Document identifier. # noqa: E501
-
- :param id: The id of this DocumentUpdateParameters. # noqa: E501
- :type: int
- """
- if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
- raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
-
- self._id = id
-
- @property
- def name(self):
- """Gets the name of this DocumentUpdateParameters. # noqa: E501
-
- The Document name. # noqa: E501
-
- :return: The name of this DocumentUpdateParameters. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this DocumentUpdateParameters.
-
- The Document name. # noqa: E501
-
- :param name: The name of this DocumentUpdateParameters. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
- raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
-
- self._name = name
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, DocumentUpdateParameters):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, DocumentUpdateParameters):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/document_with_segments.py b/lilt/models/document_with_segments.py
index 0c726a1..782139b 100644
--- a/lilt/models/document_with_segments.py
+++ b/lilt/models/document_with_segments.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/document_without_segments.py b/lilt/models/document_without_segments.py
index 9bb2641..7fb17b7 100644
--- a/lilt/models/document_without_segments.py
+++ b/lilt/models/document_without_segments.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/document_without_segments_status.py b/lilt/models/document_without_segments_status.py
index edf91ec..be1c64c 100644
--- a/lilt/models/document_without_segments_status.py
+++ b/lilt/models/document_without_segments_status.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/document_workflow.py b/lilt/models/document_workflow.py
deleted file mode 100644
index be175ea..0000000
--- a/lilt/models/document_workflow.py
+++ /dev/null
@@ -1,205 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class DocumentWorkflow(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'document_id': 'int',
- 'workflow_id': 'int',
- 'stages': 'list[WorkflowStage]',
- 'current_task': 'WorkflowTask'
- }
-
- attribute_map = {
- 'document_id': 'documentId',
- 'workflow_id': 'workflowId',
- 'stages': 'stages',
- 'current_task': 'currentTask'
- }
-
- def __init__(self, document_id=None, workflow_id=None, stages=None, current_task=None, local_vars_configuration=None): # noqa: E501
- """DocumentWorkflow - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._document_id = None
- self._workflow_id = None
- self._stages = None
- self._current_task = None
- self.discriminator = None
-
- if document_id is not None:
- self.document_id = document_id
- if workflow_id is not None:
- self.workflow_id = workflow_id
- if stages is not None:
- self.stages = stages
- if current_task is not None:
- self.current_task = current_task
-
- @property
- def document_id(self):
- """Gets the document_id of this DocumentWorkflow. # noqa: E501
-
- Identifier of a document. # noqa: E501
-
- :return: The document_id of this DocumentWorkflow. # noqa: E501
- :rtype: int
- """
- return self._document_id
-
- @document_id.setter
- def document_id(self, document_id):
- """Sets the document_id of this DocumentWorkflow.
-
- Identifier of a document. # noqa: E501
-
- :param document_id: The document_id of this DocumentWorkflow. # noqa: E501
- :type: int
- """
-
- self._document_id = document_id
-
- @property
- def workflow_id(self):
- """Gets the workflow_id of this DocumentWorkflow. # noqa: E501
-
- Identifier for a Workflow that the document is using. # noqa: E501
-
- :return: The workflow_id of this DocumentWorkflow. # noqa: E501
- :rtype: int
- """
- return self._workflow_id
-
- @workflow_id.setter
- def workflow_id(self, workflow_id):
- """Sets the workflow_id of this DocumentWorkflow.
-
- Identifier for a Workflow that the document is using. # noqa: E501
-
- :param workflow_id: The workflow_id of this DocumentWorkflow. # noqa: E501
- :type: int
- """
-
- self._workflow_id = workflow_id
-
- @property
- def stages(self):
- """Gets the stages of this DocumentWorkflow. # noqa: E501
-
- The stages in the document's workflow. # noqa: E501
-
- :return: The stages of this DocumentWorkflow. # noqa: E501
- :rtype: list[WorkflowStage]
- """
- return self._stages
-
- @stages.setter
- def stages(self, stages):
- """Sets the stages of this DocumentWorkflow.
-
- The stages in the document's workflow. # noqa: E501
-
- :param stages: The stages of this DocumentWorkflow. # noqa: E501
- :type: list[WorkflowStage]
- """
-
- self._stages = stages
-
- @property
- def current_task(self):
- """Gets the current_task of this DocumentWorkflow. # noqa: E501
-
-
- :return: The current_task of this DocumentWorkflow. # noqa: E501
- :rtype: WorkflowTask
- """
- return self._current_task
-
- @current_task.setter
- def current_task(self, current_task):
- """Sets the current_task of this DocumentWorkflow.
-
-
- :param current_task: The current_task of this DocumentWorkflow. # noqa: E501
- :type: WorkflowTask
- """
-
- self._current_task = current_task
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, DocumentWorkflow):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, DocumentWorkflow):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/domain.py b/lilt/models/domain.py
index 1dd67a3..a4ca74d 100644
--- a/lilt/models/domain.py
+++ b/lilt/models/domain.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/domain_list.py b/lilt/models/domain_list.py
index 63628a1..35e9bfc 100644
--- a/lilt/models/domain_list.py
+++ b/lilt/models/domain_list.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/domain_metadata.py b/lilt/models/domain_metadata.py
index 5168420..677b337 100644
--- a/lilt/models/domain_metadata.py
+++ b/lilt/models/domain_metadata.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/domain_reference.py b/lilt/models/domain_reference.py
index 1beb97f..fc62dc2 100644
--- a/lilt/models/domain_reference.py
+++ b/lilt/models/domain_reference.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/edit_filter_mapping_parameters.py b/lilt/models/edit_filter_mapping_parameters.py
deleted file mode 100644
index 8d77f62..0000000
--- a/lilt/models/edit_filter_mapping_parameters.py
+++ /dev/null
@@ -1,181 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class EditFilterMappingParameters(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'registry_entry_json': 'str',
- 'config_name': 'str',
- 'config_description': 'str'
- }
-
- attribute_map = {
- 'registry_entry_json': 'registryEntryJson',
- 'config_name': 'configName',
- 'config_description': 'configDescription'
- }
-
- def __init__(self, registry_entry_json=None, config_name=None, config_description=None, local_vars_configuration=None): # noqa: E501
- """EditFilterMappingParameters - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._registry_entry_json = None
- self._config_name = None
- self._config_description = None
- self.discriminator = None
-
- if registry_entry_json is not None:
- self.registry_entry_json = registry_entry_json
- self.config_name = config_name
- self.config_description = config_description
-
- @property
- def registry_entry_json(self):
- """Gets the registry_entry_json of this EditFilterMappingParameters. # noqa: E501
-
- The filter mapping json blob, string escaped. # noqa: E501
-
- :return: The registry_entry_json of this EditFilterMappingParameters. # noqa: E501
- :rtype: str
- """
- return self._registry_entry_json
-
- @registry_entry_json.setter
- def registry_entry_json(self, registry_entry_json):
- """Sets the registry_entry_json of this EditFilterMappingParameters.
-
- The filter mapping json blob, string escaped. # noqa: E501
-
- :param registry_entry_json: The registry_entry_json of this EditFilterMappingParameters. # noqa: E501
- :type: str
- """
-
- self._registry_entry_json = registry_entry_json
-
- @property
- def config_name(self):
- """Gets the config_name of this EditFilterMappingParameters. # noqa: E501
-
- The user defined name of your configuration. # noqa: E501
-
- :return: The config_name of this EditFilterMappingParameters. # noqa: E501
- :rtype: str
- """
- return self._config_name
-
- @config_name.setter
- def config_name(self, config_name):
- """Sets the config_name of this EditFilterMappingParameters.
-
- The user defined name of your configuration. # noqa: E501
-
- :param config_name: The config_name of this EditFilterMappingParameters. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and config_name is None: # noqa: E501
- raise ValueError("Invalid value for `config_name`, must not be `None`") # noqa: E501
-
- self._config_name = config_name
-
- @property
- def config_description(self):
- """Gets the config_description of this EditFilterMappingParameters. # noqa: E501
-
- A description for the configuration. # noqa: E501
-
- :return: The config_description of this EditFilterMappingParameters. # noqa: E501
- :rtype: str
- """
- return self._config_description
-
- @config_description.setter
- def config_description(self, config_description):
- """Sets the config_description of this EditFilterMappingParameters.
-
- A description for the configuration. # noqa: E501
-
- :param config_description: The config_description of this EditFilterMappingParameters. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and config_description is None: # noqa: E501
- raise ValueError("Invalid value for `config_description`, must not be `None`") # noqa: E501
-
- self._config_description = config_description
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, EditFilterMappingParameters):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, EditFilterMappingParameters):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/error.py b/lilt/models/error.py
index 0756a28..9fd5f41 100644
--- a/lilt/models/error.py
+++ b/lilt/models/error.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/error2.py b/lilt/models/error2.py
deleted file mode 100644
index abe7ff3..0000000
--- a/lilt/models/error2.py
+++ /dev/null
@@ -1,123 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class Error2(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'message': 'object'
- }
-
- attribute_map = {
- 'message': 'message'
- }
-
- def __init__(self, message=None, local_vars_configuration=None): # noqa: E501
- """Error2 - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._message = None
- self.discriminator = None
-
- if message is not None:
- self.message = message
-
- @property
- def message(self):
- """Gets the message of this Error2. # noqa: E501
-
- A human-readable message describing the error. # noqa: E501
-
- :return: The message of this Error2. # noqa: E501
- :rtype: object
- """
- return self._message
-
- @message.setter
- def message(self, message):
- """Sets the message of this Error2.
-
- A human-readable message describing the error. # noqa: E501
-
- :param message: The message of this Error2. # noqa: E501
- :type: object
- """
-
- self._message = message
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, Error2):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, Error2):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/file.py b/lilt/models/file.py
deleted file mode 100644
index d351d19..0000000
--- a/lilt/models/file.py
+++ /dev/null
@@ -1,319 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class File(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int',
- 'name': 'str',
- 'file_hash': 'str',
- 'export_uri': 'str',
- 'detected_lang': 'str',
- 'detected_lang_confidence': 'float',
- 'created_at': 'int',
- 'updated_at': 'int'
- }
-
- attribute_map = {
- 'id': 'id',
- 'name': 'name',
- 'file_hash': 'file_hash',
- 'export_uri': 'export_uri',
- 'detected_lang': 'detected_lang',
- 'detected_lang_confidence': 'detected_lang_confidence',
- 'created_at': 'created_at',
- 'updated_at': 'updated_at'
- }
-
- def __init__(self, id=None, name=None, file_hash=None, export_uri=None, detected_lang=None, detected_lang_confidence=None, created_at=None, updated_at=None, local_vars_configuration=None): # noqa: E501
- """File - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._name = None
- self._file_hash = None
- self._export_uri = None
- self._detected_lang = None
- self._detected_lang_confidence = None
- self._created_at = None
- self._updated_at = None
- self.discriminator = None
-
- if id is not None:
- self.id = id
- if name is not None:
- self.name = name
- if file_hash is not None:
- self.file_hash = file_hash
- if export_uri is not None:
- self.export_uri = export_uri
- if detected_lang is not None:
- self.detected_lang = detected_lang
- if detected_lang_confidence is not None:
- self.detected_lang_confidence = detected_lang_confidence
- if created_at is not None:
- self.created_at = created_at
- if updated_at is not None:
- self.updated_at = updated_at
-
- @property
- def id(self):
- """Gets the id of this File. # noqa: E501
-
- A unique number identifying the File. # noqa: E501
-
- :return: The id of this File. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this File.
-
- A unique number identifying the File. # noqa: E501
-
- :param id: The id of this File. # noqa: E501
- :type: int
- """
-
- self._id = id
-
- @property
- def name(self):
- """Gets the name of this File. # noqa: E501
-
- The file name. # noqa: E501
-
- :return: The name of this File. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this File.
-
- The file name. # noqa: E501
-
- :param name: The name of this File. # noqa: E501
- :type: str
- """
-
- self._name = name
-
- @property
- def file_hash(self):
- """Gets the file_hash of this File. # noqa: E501
-
- A unique hash value associated with the file. An MD5 hash of the file content will be used by default. # noqa: E501
-
- :return: The file_hash of this File. # noqa: E501
- :rtype: str
- """
- return self._file_hash
-
- @file_hash.setter
- def file_hash(self, file_hash):
- """Sets the file_hash of this File.
-
- A unique hash value associated with the file. An MD5 hash of the file content will be used by default. # noqa: E501
-
- :param file_hash: The file_hash of this File. # noqa: E501
- :type: str
- """
-
- self._file_hash = file_hash
-
- @property
- def export_uri(self):
- """Gets the export_uri of this File. # noqa: E501
-
- A webhook endpoint that will export the translated document back to the source repository. # noqa: E501
-
- :return: The export_uri of this File. # noqa: E501
- :rtype: str
- """
- return self._export_uri
-
- @export_uri.setter
- def export_uri(self, export_uri):
- """Sets the export_uri of this File.
-
- A webhook endpoint that will export the translated document back to the source repository. # noqa: E501
-
- :param export_uri: The export_uri of this File. # noqa: E501
- :type: str
- """
-
- self._export_uri = export_uri
-
- @property
- def detected_lang(self):
- """Gets the detected_lang of this File. # noqa: E501
-
- Language associated with the file. # noqa: E501
-
- :return: The detected_lang of this File. # noqa: E501
- :rtype: str
- """
- return self._detected_lang
-
- @detected_lang.setter
- def detected_lang(self, detected_lang):
- """Sets the detected_lang of this File.
-
- Language associated with the file. # noqa: E501
-
- :param detected_lang: The detected_lang of this File. # noqa: E501
- :type: str
- """
-
- self._detected_lang = detected_lang
-
- @property
- def detected_lang_confidence(self):
- """Gets the detected_lang_confidence of this File. # noqa: E501
-
- Confidence score for the language associated with the file. # noqa: E501
-
- :return: The detected_lang_confidence of this File. # noqa: E501
- :rtype: float
- """
- return self._detected_lang_confidence
-
- @detected_lang_confidence.setter
- def detected_lang_confidence(self, detected_lang_confidence):
- """Sets the detected_lang_confidence of this File.
-
- Confidence score for the language associated with the file. # noqa: E501
-
- :param detected_lang_confidence: The detected_lang_confidence of this File. # noqa: E501
- :type: float
- """
-
- self._detected_lang_confidence = detected_lang_confidence
-
- @property
- def created_at(self):
- """Gets the created_at of this File. # noqa: E501
-
- Time at which the object was created. Measured in seconds since the Unix epoch. # noqa: E501
-
- :return: The created_at of this File. # noqa: E501
- :rtype: int
- """
- return self._created_at
-
- @created_at.setter
- def created_at(self, created_at):
- """Sets the created_at of this File.
-
- Time at which the object was created. Measured in seconds since the Unix epoch. # noqa: E501
-
- :param created_at: The created_at of this File. # noqa: E501
- :type: int
- """
-
- self._created_at = created_at
-
- @property
- def updated_at(self):
- """Gets the updated_at of this File. # noqa: E501
-
- Time at which the object was created. Measured in seconds since the Unix epoch. # noqa: E501
-
- :return: The updated_at of this File. # noqa: E501
- :rtype: int
- """
- return self._updated_at
-
- @updated_at.setter
- def updated_at(self, updated_at):
- """Sets the updated_at of this File.
-
- Time at which the object was created. Measured in seconds since the Unix epoch. # noqa: E501
-
- :param updated_at: The updated_at of this File. # noqa: E501
- :type: int
- """
-
- self._updated_at = updated_at
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, File):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, File):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/file_delete_response.py b/lilt/models/file_delete_response.py
index ff8795f..69cbf1e 100644
--- a/lilt/models/file_delete_response.py
+++ b/lilt/models/file_delete_response.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/file_response.py b/lilt/models/file_response.py
deleted file mode 100644
index 747b4aa..0000000
--- a/lilt/models/file_response.py
+++ /dev/null
@@ -1,151 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class FileResponse(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int',
- 'deleted': 'bool'
- }
-
- attribute_map = {
- 'id': 'id',
- 'deleted': 'deleted'
- }
-
- def __init__(self, id=None, deleted=None, local_vars_configuration=None): # noqa: E501
- """FileResponse - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._deleted = None
- self.discriminator = None
-
- if id is not None:
- self.id = id
- if deleted is not None:
- self.deleted = deleted
-
- @property
- def id(self):
- """Gets the id of this FileResponse. # noqa: E501
-
- A unique File identifier. # noqa: E501
-
- :return: The id of this FileResponse. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this FileResponse.
-
- A unique File identifier. # noqa: E501
-
- :param id: The id of this FileResponse. # noqa: E501
- :type: int
- """
-
- self._id = id
-
- @property
- def deleted(self):
- """Gets the deleted of this FileResponse. # noqa: E501
-
- If the operation succeeded, then `true`. Otherwise, `false`. # noqa: E501
-
- :return: The deleted of this FileResponse. # noqa: E501
- :rtype: bool
- """
- return self._deleted
-
- @deleted.setter
- def deleted(self, deleted):
- """Sets the deleted of this FileResponse.
-
- If the operation succeeded, then `true`. Otherwise, `false`. # noqa: E501
-
- :param deleted: The deleted of this FileResponse. # noqa: E501
- :type: bool
- """
-
- self._deleted = deleted
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, FileResponse):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, FileResponse):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/filter_config.py b/lilt/models/filter_config.py
index 1c0bf56..324f317 100644
--- a/lilt/models/filter_config.py
+++ b/lilt/models/filter_config.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/get_lilt_create_content_response.py b/lilt/models/get_lilt_create_content_response.py
index 574aa4f..aa07672 100644
--- a/lilt/models/get_lilt_create_content_response.py
+++ b/lilt/models/get_lilt_create_content_response.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/get_pending_uploads200_response_inner.py b/lilt/models/get_pending_uploads200_response_inner.py
new file mode 100644
index 0000000..4c395e5
--- /dev/null
+++ b/lilt/models/get_pending_uploads200_response_inner.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from datetime import datetime
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetPendingUploads200ResponseInner(BaseModel):
+ """
+ GetPendingUploads200ResponseInner
+ """ # noqa: E501
+ id: Optional[StrictInt] = Field(default=None, description="Unique upload identifier")
+ filename: Optional[StrictStr] = Field(default=None, description="Name of the uploaded file")
+ status: Optional[StrictStr] = Field(default=None, description="Current upload status")
+ created_at: Optional[datetime] = Field(default=None, description="Upload creation timestamp")
+ __properties: ClassVar[List[str]] = ["id", "filename", "status", "created_at"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetPendingUploads200ResponseInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetPendingUploads200ResponseInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "filename": obj.get("filename"),
+ "status": obj.get("status"),
+ "created_at": obj.get("created_at")
+ })
+ return _obj
+
+
diff --git a/lilt/models/get_s3_upload_params200_response.py b/lilt/models/get_s3_upload_params200_response.py
new file mode 100644
index 0000000..5bdb52f
--- /dev/null
+++ b/lilt/models/get_s3_upload_params200_response.py
@@ -0,0 +1,91 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GetS3UploadParams200Response(BaseModel):
+ """
+ GetS3UploadParams200Response
+ """ # noqa: E501
+ url: Optional[StrictStr] = Field(default=None, description="Pre-signed URL for file upload")
+ key: Optional[StrictStr] = Field(default=None, description="Upload key identifier")
+ method: Optional[StrictStr] = Field(default=None, description="HTTP method to use for upload")
+ __properties: ClassVar[List[str]] = ["url", "key", "method"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GetS3UploadParams200Response from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GetS3UploadParams200Response from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "url": obj.get("url"),
+ "key": obj.get("key"),
+ "method": obj.get("method")
+ })
+ return _obj
+
+
diff --git a/lilt/models/initiate_multipart_upload200_response.py b/lilt/models/initiate_multipart_upload200_response.py
new file mode 100644
index 0000000..ff8f530
--- /dev/null
+++ b/lilt/models/initiate_multipart_upload200_response.py
@@ -0,0 +1,89 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class InitiateMultipartUpload200Response(BaseModel):
+ """
+ InitiateMultipartUpload200Response
+ """ # noqa: E501
+ upload_id: Optional[StrictStr] = Field(default=None, description="Multipart upload ID for subsequent part uploads", alias="uploadId")
+ key: Optional[StrictStr] = Field(default=None, description="Upload key identifier")
+ __properties: ClassVar[List[str]] = ["uploadId", "key"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of InitiateMultipartUpload200Response from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of InitiateMultipartUpload200Response from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "uploadId": obj.get("uploadId"),
+ "key": obj.get("key")
+ })
+ return _obj
+
+
diff --git a/lilt/models/initiate_multipart_upload_body.py b/lilt/models/initiate_multipart_upload_body.py
new file mode 100644
index 0000000..966bdf8
--- /dev/null
+++ b/lilt/models/initiate_multipart_upload_body.py
@@ -0,0 +1,95 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from lilt.models.initiate_multipart_upload_body_metadata import InitiateMultipartUploadBodyMetadata
+from typing import Optional, Set
+from typing_extensions import Self
+
+class InitiateMultipartUploadBody(BaseModel):
+ """
+ A single upload request object, or an array of upload request objects (max 100).
+ """ # noqa: E501
+ filename: StrictStr = Field(description="A file name including file extension.")
+ type: StrictStr = Field(description="The content-type or mime-type of the file to upload.")
+ metadata: Optional[InitiateMultipartUploadBodyMetadata] = None
+ __properties: ClassVar[List[str]] = ["filename", "type", "metadata"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of InitiateMultipartUploadBody from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of metadata
+ if self.metadata:
+ _dict['metadata'] = self.metadata.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of InitiateMultipartUploadBody from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "filename": obj.get("filename"),
+ "type": obj.get("type"),
+ "metadata": InitiateMultipartUploadBodyMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None
+ })
+ return _obj
+
+
diff --git a/lilt/models/initiate_multipart_upload_body_metadata.py b/lilt/models/initiate_multipart_upload_body_metadata.py
new file mode 100644
index 0000000..c4d2956
--- /dev/null
+++ b/lilt/models/initiate_multipart_upload_body_metadata.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class InitiateMultipartUploadBodyMetadata(BaseModel):
+ """
+ Optional file metadata.
+ """ # noqa: E501
+ size: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="The size of the file to upload in bytes.")
+ category: Optional[StrictStr] = Field(default=None, description="File category.")
+ uuid: Optional[StrictStr] = Field(default=None, description="File UUID.")
+ labels: Optional[List[StrictStr]] = Field(default=None, description="Array of label names to be added to the file after upload completes.")
+ __properties: ClassVar[List[str]] = ["size", "category", "uuid", "labels"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of InitiateMultipartUploadBodyMetadata from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of InitiateMultipartUploadBodyMetadata from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "size": obj.get("size"),
+ "category": obj.get("category"),
+ "uuid": obj.get("uuid"),
+ "labels": obj.get("labels")
+ })
+ return _obj
+
+
diff --git a/lilt/models/initiate_upload_body.py b/lilt/models/initiate_upload_body.py
new file mode 100644
index 0000000..a2656e5
--- /dev/null
+++ b/lilt/models/initiate_upload_body.py
@@ -0,0 +1,95 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from lilt.models.initiate_upload_body_metadata import InitiateUploadBodyMetadata
+from typing import Optional, Set
+from typing_extensions import Self
+
+class InitiateUploadBody(BaseModel):
+ """
+ A single upload request object, or an array of upload request objects (max 100).
+ """ # noqa: E501
+ filename: StrictStr = Field(description="A file name including file extension.")
+ type: StrictStr = Field(description="The content-type or mime-type of the file to upload.")
+ metadata: Optional[InitiateUploadBodyMetadata] = None
+ __properties: ClassVar[List[str]] = ["filename", "type", "metadata"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of InitiateUploadBody from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of metadata
+ if self.metadata:
+ _dict['metadata'] = self.metadata.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of InitiateUploadBody from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "filename": obj.get("filename"),
+ "type": obj.get("type"),
+ "metadata": InitiateUploadBodyMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None
+ })
+ return _obj
+
+
diff --git a/lilt/models/initiate_upload_body_metadata.py b/lilt/models/initiate_upload_body_metadata.py
new file mode 100644
index 0000000..873a994
--- /dev/null
+++ b/lilt/models/initiate_upload_body_metadata.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class InitiateUploadBodyMetadata(BaseModel):
+ """
+ Optional file metadata.
+ """ # noqa: E501
+ size: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="The size of the file to upload in bytes.")
+ category: Optional[StrictStr] = Field(default=None, description="File category.")
+ uuid: Optional[StrictStr] = Field(default=None, description="File UUID.")
+ labels: Optional[List[StrictStr]] = Field(default=None, description="Array of label names to be added to the file after upload completes.")
+ __properties: ClassVar[List[str]] = ["size", "category", "uuid", "labels"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of InitiateUploadBodyMetadata from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of InitiateUploadBodyMetadata from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "size": obj.get("size"),
+ "category": obj.get("category"),
+ "uuid": obj.get("uuid"),
+ "labels": obj.get("labels")
+ })
+ return _obj
+
+
diff --git a/lilt/models/inline_response200.py b/lilt/models/inline_response200.py
deleted file mode 100644
index fc0dc13..0000000
--- a/lilt/models/inline_response200.py
+++ /dev/null
@@ -1,122 +0,0 @@
-# coding: utf-8
-
-"""
- 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. # noqa: E501
-
- The version of the OpenAPI document: v3.0
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class InlineResponse200(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int'
- }
-
- attribute_map = {
- 'id': 'id'
- }
-
- def __init__(self, id=None, local_vars_configuration=None): # noqa: E501
- """InlineResponse200 - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self.discriminator = None
-
- if id is not None:
- self.id = id
-
- @property
- def id(self):
- """Gets the id of this InlineResponse200. # noqa: E501
-
- The ID of the deleted Lilt Create content. # noqa: E501
-
- :return: The id of this InlineResponse200. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this InlineResponse200.
-
- The ID of the deleted Lilt Create content. # noqa: E501
-
- :param id: The id of this InlineResponse200. # noqa: E501
- :type: int
- """
-
- self._id = id
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse200):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, InlineResponse200):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/job.py b/lilt/models/job.py
index fdedefb..b8e6269 100644
--- a/lilt/models/job.py
+++ b/lilt/models/job.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/job_create_parameters.py b/lilt/models/job_create_parameters.py
index 22218fe..524c5d2 100644
--- a/lilt/models/job_create_parameters.py
+++ b/lilt/models/job_create_parameters.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
@@ -32,7 +32,7 @@ class JobCreateParameters(BaseModel):
file_ids: List[StrictInt] = Field(description="A list of file ids to upload to job creation.", alias="fileIds")
due: Optional[StrictStr] = Field(default=None, description="An ISO string date representing job due date.")
src_lang: StrictStr = Field(description="2-letter ISO source language code", alias="srcLang")
- src_locale: Optional[StrictStr] = Field(default=None, description="2-letter source language code", alias="srcLocale")
+ src_locale: StrictStr = Field(description="2-letter source language code", alias="srcLocale")
is_plural: Optional[StrictBool] = Field(default=None, description="A boolean value representing if the files have plurals.", alias="isPlural")
workflow_template_id: Optional[StrictInt] = Field(default=None, description="ID of the workflow template to be used. Use the [workflows templates endpoint](#tag/Workflows/operation/getWorkflowTemplates) to get the list of available workflows.", alias="workflowTemplateId")
domain_id: Optional[StrictInt] = Field(default=None, description="ID of the domain to be used. Use the [domains endpoint](#tag/Domains/operation/getDomains) to get the list of available domains.", alias="domainId")
diff --git a/lilt/models/job_delete_response.py b/lilt/models/job_delete_response.py
index 7f14fe8..e69caf2 100644
--- a/lilt/models/job_delete_response.py
+++ b/lilt/models/job_delete_response.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/job_leverage_stats.py b/lilt/models/job_leverage_stats.py
index ee660be..007b50a 100644
--- a/lilt/models/job_leverage_stats.py
+++ b/lilt/models/job_leverage_stats.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/job_leverage_stats_projects.py b/lilt/models/job_leverage_stats_projects.py
deleted file mode 100644
index 787fe4f..0000000
--- a/lilt/models/job_leverage_stats_projects.py
+++ /dev/null
@@ -1,235 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class JobLeverageStatsProjects(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int',
- 'source_words': 'int',
- 'exact_words': 'int',
- 'fuzzy_words': 'int',
- 'new_words': 'int'
- }
-
- attribute_map = {
- 'id': 'id',
- 'source_words': 'sourceWords',
- 'exact_words': 'exactWords',
- 'fuzzy_words': 'fuzzyWords',
- 'new_words': 'newWords'
- }
-
- def __init__(self, id=None, source_words=None, exact_words=None, fuzzy_words=None, new_words=None, local_vars_configuration=None): # noqa: E501
- """JobLeverageStatsProjects - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._source_words = None
- self._exact_words = None
- self._fuzzy_words = None
- self._new_words = None
- self.discriminator = None
-
- if id is not None:
- self.id = id
- if source_words is not None:
- self.source_words = source_words
- if exact_words is not None:
- self.exact_words = exact_words
- if fuzzy_words is not None:
- self.fuzzy_words = fuzzy_words
- if new_words is not None:
- self.new_words = new_words
-
- @property
- def id(self):
- """Gets the id of this JobLeverageStatsProjects. # noqa: E501
-
- The Project ID. # noqa: E501
-
- :return: The id of this JobLeverageStatsProjects. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this JobLeverageStatsProjects.
-
- The Project ID. # noqa: E501
-
- :param id: The id of this JobLeverageStatsProjects. # noqa: E501
- :type: int
- """
-
- self._id = id
-
- @property
- def source_words(self):
- """Gets the source_words of this JobLeverageStatsProjects. # noqa: E501
-
- Total number of source words. # noqa: E501
-
- :return: The source_words of this JobLeverageStatsProjects. # noqa: E501
- :rtype: int
- """
- return self._source_words
-
- @source_words.setter
- def source_words(self, source_words):
- """Sets the source_words of this JobLeverageStatsProjects.
-
- Total number of source words. # noqa: E501
-
- :param source_words: The source_words of this JobLeverageStatsProjects. # noqa: E501
- :type: int
- """
-
- self._source_words = source_words
-
- @property
- def exact_words(self):
- """Gets the exact_words of this JobLeverageStatsProjects. # noqa: E501
-
- Total number of exact words. # noqa: E501
-
- :return: The exact_words of this JobLeverageStatsProjects. # noqa: E501
- :rtype: int
- """
- return self._exact_words
-
- @exact_words.setter
- def exact_words(self, exact_words):
- """Sets the exact_words of this JobLeverageStatsProjects.
-
- Total number of exact words. # noqa: E501
-
- :param exact_words: The exact_words of this JobLeverageStatsProjects. # noqa: E501
- :type: int
- """
-
- self._exact_words = exact_words
-
- @property
- def fuzzy_words(self):
- """Gets the fuzzy_words of this JobLeverageStatsProjects. # noqa: E501
-
- Total number of fuzzy words. # noqa: E501
-
- :return: The fuzzy_words of this JobLeverageStatsProjects. # noqa: E501
- :rtype: int
- """
- return self._fuzzy_words
-
- @fuzzy_words.setter
- def fuzzy_words(self, fuzzy_words):
- """Sets the fuzzy_words of this JobLeverageStatsProjects.
-
- Total number of fuzzy words. # noqa: E501
-
- :param fuzzy_words: The fuzzy_words of this JobLeverageStatsProjects. # noqa: E501
- :type: int
- """
-
- self._fuzzy_words = fuzzy_words
-
- @property
- def new_words(self):
- """Gets the new_words of this JobLeverageStatsProjects. # noqa: E501
-
- Total number of fuzzy words. # noqa: E501
-
- :return: The new_words of this JobLeverageStatsProjects. # noqa: E501
- :rtype: int
- """
- return self._new_words
-
- @new_words.setter
- def new_words(self, new_words):
- """Sets the new_words of this JobLeverageStatsProjects.
-
- Total number of fuzzy words. # noqa: E501
-
- :param new_words: The new_words of this JobLeverageStatsProjects. # noqa: E501
- :type: int
- """
-
- self._new_words = new_words
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, JobLeverageStatsProjects):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, JobLeverageStatsProjects):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/job_project.py b/lilt/models/job_project.py
index 253a0ea..795e318 100644
--- a/lilt/models/job_project.py
+++ b/lilt/models/job_project.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/job_stats.py b/lilt/models/job_stats.py
index c97fa59..5654c05 100644
--- a/lilt/models/job_stats.py
+++ b/lilt/models/job_stats.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/job_update_parameters.py b/lilt/models/job_update_parameters.py
index a37a2ba..4ded4aa 100644
--- a/lilt/models/job_update_parameters.py
+++ b/lilt/models/job_update_parameters.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/language_pair.py b/lilt/models/language_pair.py
index 1412df5..1156321 100644
--- a/lilt/models/language_pair.py
+++ b/lilt/models/language_pair.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
@@ -31,7 +31,7 @@ class LanguagePair(BaseModel):
trg_locale: Optional[StrictStr] = Field(default=None, description="A locale identifier, supported for target language.", alias="trgLocale")
due_date: Optional[StrictStr] = Field(default=None, description="An ISO date.", alias="dueDate")
memory_id: StrictInt = Field(description="A unique number identifying the associated Memory.", alias="memoryId")
- external_model_id: Optional[StrictInt] = Field(default=None, description="A unique identifier for working with a third party model in the Lilt Platform", alias="externalModelId")
+ external_model_id: Optional[StrictInt] = Field(default=None, description="An optional parameter to specify a third-party model ID to use for translation. This allows you to use external MT providers instead of Lilt's built-in MT system.", alias="externalModelId")
pretranslate: Optional[StrictBool] = Field(default=None, description="Attribute translation authorship of exact matches to the creator of the document being pretranslated.")
auto_accept: Optional[StrictBool] = Field(default=None, description="Accept and lock exact matches.", alias="autoAccept")
case_sensitive: Optional[StrictBool] = Field(default=None, description="Use case sensitive translation memory matching.", alias="caseSensitive")
diff --git a/lilt/models/languages_response.py b/lilt/models/languages_response.py
index 9f32454..bfbae8d 100644
--- a/lilt/models/languages_response.py
+++ b/lilt/models/languages_response.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/lexicon_entry.py b/lilt/models/lexicon_entry.py
deleted file mode 100644
index f8e4ccd..0000000
--- a/lilt/models/lexicon_entry.py
+++ /dev/null
@@ -1,151 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class LexiconEntry(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'translations': 'list[LexiconEntryTranslations]',
- 'examples': 'list[LexiconEntryExamples]'
- }
-
- attribute_map = {
- 'translations': 'translations',
- 'examples': 'examples'
- }
-
- def __init__(self, translations=None, examples=None, local_vars_configuration=None): # noqa: E501
- """LexiconEntry - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._translations = None
- self._examples = None
- self.discriminator = None
-
- if translations is not None:
- self.translations = translations
- if examples is not None:
- self.examples = examples
-
- @property
- def translations(self):
- """Gets the translations of this LexiconEntry. # noqa: E501
-
- A list of translations for the query term. # noqa: E501
-
- :return: The translations of this LexiconEntry. # noqa: E501
- :rtype: list[LexiconEntryTranslations]
- """
- return self._translations
-
- @translations.setter
- def translations(self, translations):
- """Sets the translations of this LexiconEntry.
-
- A list of translations for the query term. # noqa: E501
-
- :param translations: The translations of this LexiconEntry. # noqa: E501
- :type: list[LexiconEntryTranslations]
- """
-
- self._translations = translations
-
- @property
- def examples(self):
- """Gets the examples of this LexiconEntry. # noqa: E501
-
- A list of concordance examples for the query term. # noqa: E501
-
- :return: The examples of this LexiconEntry. # noqa: E501
- :rtype: list[LexiconEntryExamples]
- """
- return self._examples
-
- @examples.setter
- def examples(self, examples):
- """Sets the examples of this LexiconEntry.
-
- A list of concordance examples for the query term. # noqa: E501
-
- :param examples: The examples of this LexiconEntry. # noqa: E501
- :type: list[LexiconEntryExamples]
- """
-
- self._examples = examples
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, LexiconEntry):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, LexiconEntry):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/lexicon_entry_examples.py b/lilt/models/lexicon_entry_examples.py
deleted file mode 100644
index 6ef805f..0000000
--- a/lilt/models/lexicon_entry_examples.py
+++ /dev/null
@@ -1,313 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class LexiconEntryExamples(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'source': 'str',
- 'source_delimiters': 'list[str]',
- 'target': 'str',
- 'target_delimiters': 'list[str]',
- 'source_span': 'LexiconEntrySourceSpan',
- 'target_span': 'LexiconEntryTargetSpan',
- 'similarity': 'float',
- 'memory_id': 'float'
- }
-
- attribute_map = {
- 'source': 'source',
- 'source_delimiters': 'sourceDelimiters',
- 'target': 'target',
- 'target_delimiters': 'targetDelimiters',
- 'source_span': 'sourceSpan',
- 'target_span': 'targetSpan',
- 'similarity': 'similarity',
- 'memory_id': 'memory_id'
- }
-
- def __init__(self, source=None, source_delimiters=None, target=None, target_delimiters=None, source_span=None, target_span=None, similarity=None, memory_id=None, local_vars_configuration=None): # noqa: E501
- """LexiconEntryExamples - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._source = None
- self._source_delimiters = None
- self._target = None
- self._target_delimiters = None
- self._source_span = None
- self._target_span = None
- self._similarity = None
- self._memory_id = None
- self.discriminator = None
-
- if source is not None:
- self.source = source
- if source_delimiters is not None:
- self.source_delimiters = source_delimiters
- if target is not None:
- self.target = target
- if target_delimiters is not None:
- self.target_delimiters = target_delimiters
- if source_span is not None:
- self.source_span = source_span
- if target_span is not None:
- self.target_span = target_span
- if similarity is not None:
- self.similarity = similarity
- if memory_id is not None:
- self.memory_id = memory_id
-
- @property
- def source(self):
- """Gets the source of this LexiconEntryExamples. # noqa: E501
-
- The source string. # noqa: E501
-
- :return: The source of this LexiconEntryExamples. # noqa: E501
- :rtype: str
- """
- return self._source
-
- @source.setter
- def source(self, source):
- """Sets the source of this LexiconEntryExamples.
-
- The source string. # noqa: E501
-
- :param source: The source of this LexiconEntryExamples. # noqa: E501
- :type: str
- """
-
- self._source = source
-
- @property
- def source_delimiters(self):
- """Gets the source_delimiters of this LexiconEntryExamples. # noqa: E501
-
- A format string that indicates, for each word, if the source word should be preceded by a space. # noqa: E501
-
- :return: The source_delimiters of this LexiconEntryExamples. # noqa: E501
- :rtype: list[str]
- """
- return self._source_delimiters
-
- @source_delimiters.setter
- def source_delimiters(self, source_delimiters):
- """Sets the source_delimiters of this LexiconEntryExamples.
-
- A format string that indicates, for each word, if the source word should be preceded by a space. # noqa: E501
-
- :param source_delimiters: The source_delimiters of this LexiconEntryExamples. # noqa: E501
- :type: list[str]
- """
-
- self._source_delimiters = source_delimiters
-
- @property
- def target(self):
- """Gets the target of this LexiconEntryExamples. # noqa: E501
-
- The target string # noqa: E501
-
- :return: The target of this LexiconEntryExamples. # noqa: E501
- :rtype: str
- """
- return self._target
-
- @target.setter
- def target(self, target):
- """Sets the target of this LexiconEntryExamples.
-
- The target string # noqa: E501
-
- :param target: The target of this LexiconEntryExamples. # noqa: E501
- :type: str
- """
-
- self._target = target
-
- @property
- def target_delimiters(self):
- """Gets the target_delimiters of this LexiconEntryExamples. # noqa: E501
-
- A format string that indicates, for each word, if the target word should be preceded by a space. # noqa: E501
-
- :return: The target_delimiters of this LexiconEntryExamples. # noqa: E501
- :rtype: list[str]
- """
- return self._target_delimiters
-
- @target_delimiters.setter
- def target_delimiters(self, target_delimiters):
- """Sets the target_delimiters of this LexiconEntryExamples.
-
- A format string that indicates, for each word, if the target word should be preceded by a space. # noqa: E501
-
- :param target_delimiters: The target_delimiters of this LexiconEntryExamples. # noqa: E501
- :type: list[str]
- """
-
- self._target_delimiters = target_delimiters
-
- @property
- def source_span(self):
- """Gets the source_span of this LexiconEntryExamples. # noqa: E501
-
-
- :return: The source_span of this LexiconEntryExamples. # noqa: E501
- :rtype: LexiconEntrySourceSpan
- """
- return self._source_span
-
- @source_span.setter
- def source_span(self, source_span):
- """Sets the source_span of this LexiconEntryExamples.
-
-
- :param source_span: The source_span of this LexiconEntryExamples. # noqa: E501
- :type: LexiconEntrySourceSpan
- """
-
- self._source_span = source_span
-
- @property
- def target_span(self):
- """Gets the target_span of this LexiconEntryExamples. # noqa: E501
-
-
- :return: The target_span of this LexiconEntryExamples. # noqa: E501
- :rtype: LexiconEntryTargetSpan
- """
- return self._target_span
-
- @target_span.setter
- def target_span(self, target_span):
- """Sets the target_span of this LexiconEntryExamples.
-
-
- :param target_span: The target_span of this LexiconEntryExamples. # noqa: E501
- :type: LexiconEntryTargetSpan
- """
-
- self._target_span = target_span
-
- @property
- def similarity(self):
- """Gets the similarity of this LexiconEntryExamples. # noqa: E501
-
-
- :return: The similarity of this LexiconEntryExamples. # noqa: E501
- :rtype: float
- """
- return self._similarity
-
- @similarity.setter
- def similarity(self, similarity):
- """Sets the similarity of this LexiconEntryExamples.
-
-
- :param similarity: The similarity of this LexiconEntryExamples. # noqa: E501
- :type: float
- """
-
- self._similarity = similarity
-
- @property
- def memory_id(self):
- """Gets the memory_id of this LexiconEntryExamples. # noqa: E501
-
- A unique Memory identifier. If this identifier is missing, then the term comes from the generic concordance. # noqa: E501
-
- :return: The memory_id of this LexiconEntryExamples. # noqa: E501
- :rtype: float
- """
- return self._memory_id
-
- @memory_id.setter
- def memory_id(self, memory_id):
- """Sets the memory_id of this LexiconEntryExamples.
-
- A unique Memory identifier. If this identifier is missing, then the term comes from the generic concordance. # noqa: E501
-
- :param memory_id: The memory_id of this LexiconEntryExamples. # noqa: E501
- :type: float
- """
-
- self._memory_id = memory_id
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, LexiconEntryExamples):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, LexiconEntryExamples):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/lexicon_entry_source_span.py b/lilt/models/lexicon_entry_source_span.py
deleted file mode 100644
index 5ae1a8c..0000000
--- a/lilt/models/lexicon_entry_source_span.py
+++ /dev/null
@@ -1,151 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class LexiconEntrySourceSpan(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'start': 'float',
- 'length': 'float'
- }
-
- attribute_map = {
- 'start': 'start',
- 'length': 'length'
- }
-
- def __init__(self, start=None, length=None, local_vars_configuration=None): # noqa: E501
- """LexiconEntrySourceSpan - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._start = None
- self._length = None
- self.discriminator = None
-
- if start is not None:
- self.start = start
- if length is not None:
- self.length = length
-
- @property
- def start(self):
- """Gets the start of this LexiconEntrySourceSpan. # noqa: E501
-
- The zero-indexed start index when `source` is split on whitespace. # noqa: E501
-
- :return: The start of this LexiconEntrySourceSpan. # noqa: E501
- :rtype: float
- """
- return self._start
-
- @start.setter
- def start(self, start):
- """Sets the start of this LexiconEntrySourceSpan.
-
- The zero-indexed start index when `source` is split on whitespace. # noqa: E501
-
- :param start: The start of this LexiconEntrySourceSpan. # noqa: E501
- :type: float
- """
-
- self._start = start
-
- @property
- def length(self):
- """Gets the length of this LexiconEntrySourceSpan. # noqa: E501
-
- The length in words after `start` of the source query term. # noqa: E501
-
- :return: The length of this LexiconEntrySourceSpan. # noqa: E501
- :rtype: float
- """
- return self._length
-
- @length.setter
- def length(self, length):
- """Sets the length of this LexiconEntrySourceSpan.
-
- The length in words after `start` of the source query term. # noqa: E501
-
- :param length: The length of this LexiconEntrySourceSpan. # noqa: E501
- :type: float
- """
-
- self._length = length
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, LexiconEntrySourceSpan):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, LexiconEntrySourceSpan):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/lexicon_entry_target_span.py b/lilt/models/lexicon_entry_target_span.py
deleted file mode 100644
index 2e6e39c..0000000
--- a/lilt/models/lexicon_entry_target_span.py
+++ /dev/null
@@ -1,151 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class LexiconEntryTargetSpan(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'start': 'float',
- 'length': 'float'
- }
-
- attribute_map = {
- 'start': 'start',
- 'length': 'length'
- }
-
- def __init__(self, start=None, length=None, local_vars_configuration=None): # noqa: E501
- """LexiconEntryTargetSpan - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._start = None
- self._length = None
- self.discriminator = None
-
- if start is not None:
- self.start = start
- if length is not None:
- self.length = length
-
- @property
- def start(self):
- """Gets the start of this LexiconEntryTargetSpan. # noqa: E501
-
- The zero-indexed start index when `target` is split on whitespace. # noqa: E501
-
- :return: The start of this LexiconEntryTargetSpan. # noqa: E501
- :rtype: float
- """
- return self._start
-
- @start.setter
- def start(self, start):
- """Sets the start of this LexiconEntryTargetSpan.
-
- The zero-indexed start index when `target` is split on whitespace. # noqa: E501
-
- :param start: The start of this LexiconEntryTargetSpan. # noqa: E501
- :type: float
- """
-
- self._start = start
-
- @property
- def length(self):
- """Gets the length of this LexiconEntryTargetSpan. # noqa: E501
-
- The length in words after `start` of the target aligned phrase. # noqa: E501
-
- :return: The length of this LexiconEntryTargetSpan. # noqa: E501
- :rtype: float
- """
- return self._length
-
- @length.setter
- def length(self, length):
- """Sets the length of this LexiconEntryTargetSpan.
-
- The length in words after `start` of the target aligned phrase. # noqa: E501
-
- :param length: The length of this LexiconEntryTargetSpan. # noqa: E501
- :type: float
- """
-
- self._length = length
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, LexiconEntryTargetSpan):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, LexiconEntryTargetSpan):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/lexicon_entry_translations.py b/lilt/models/lexicon_entry_translations.py
deleted file mode 100644
index 4cb9689..0000000
--- a/lilt/models/lexicon_entry_translations.py
+++ /dev/null
@@ -1,207 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class LexiconEntryTranslations(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'source': 'str',
- 'target': 'str',
- 'frequency': 'float',
- 'memory_id': 'float'
- }
-
- attribute_map = {
- 'source': 'source',
- 'target': 'target',
- 'frequency': 'frequency',
- 'memory_id': 'memory_id'
- }
-
- def __init__(self, source=None, target=None, frequency=None, memory_id=None, local_vars_configuration=None): # noqa: E501
- """LexiconEntryTranslations - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._source = None
- self._target = None
- self._frequency = None
- self._memory_id = None
- self.discriminator = None
-
- if source is not None:
- self.source = source
- if target is not None:
- self.target = target
- if frequency is not None:
- self.frequency = frequency
- if memory_id is not None:
- self.memory_id = memory_id
-
- @property
- def source(self):
- """Gets the source of this LexiconEntryTranslations. # noqa: E501
-
- The source string. # noqa: E501
-
- :return: The source of this LexiconEntryTranslations. # noqa: E501
- :rtype: str
- """
- return self._source
-
- @source.setter
- def source(self, source):
- """Sets the source of this LexiconEntryTranslations.
-
- The source string. # noqa: E501
-
- :param source: The source of this LexiconEntryTranslations. # noqa: E501
- :type: str
- """
-
- self._source = source
-
- @property
- def target(self):
- """Gets the target of this LexiconEntryTranslations. # noqa: E501
-
- The target string. # noqa: E501
-
- :return: The target of this LexiconEntryTranslations. # noqa: E501
- :rtype: str
- """
- return self._target
-
- @target.setter
- def target(self, target):
- """Sets the target of this LexiconEntryTranslations.
-
- The target string. # noqa: E501
-
- :param target: The target of this LexiconEntryTranslations. # noqa: E501
- :type: str
- """
-
- self._target = target
-
- @property
- def frequency(self):
- """Gets the frequency of this LexiconEntryTranslations. # noqa: E501
-
- The frequency of the term in the Lexicon. # noqa: E501
-
- :return: The frequency of this LexiconEntryTranslations. # noqa: E501
- :rtype: float
- """
- return self._frequency
-
- @frequency.setter
- def frequency(self, frequency):
- """Sets the frequency of this LexiconEntryTranslations.
-
- The frequency of the term in the Lexicon. # noqa: E501
-
- :param frequency: The frequency of this LexiconEntryTranslations. # noqa: E501
- :type: float
- """
-
- self._frequency = frequency
-
- @property
- def memory_id(self):
- """Gets the memory_id of this LexiconEntryTranslations. # noqa: E501
-
- A unique Memory identifier. If this identifier is missing, then the term comes from the generic termbase. # noqa: E501
-
- :return: The memory_id of this LexiconEntryTranslations. # noqa: E501
- :rtype: float
- """
- return self._memory_id
-
- @memory_id.setter
- def memory_id(self, memory_id):
- """Sets the memory_id of this LexiconEntryTranslations.
-
- A unique Memory identifier. If this identifier is missing, then the term comes from the generic termbase. # noqa: E501
-
- :param memory_id: The memory_id of this LexiconEntryTranslations. # noqa: E501
- :type: float
- """
-
- self._memory_id = memory_id
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, LexiconEntryTranslations):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, LexiconEntryTranslations):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/lexicon_update_parameters.py b/lilt/models/lexicon_update_parameters.py
deleted file mode 100644
index 21dde6d..0000000
--- a/lilt/models/lexicon_update_parameters.py
+++ /dev/null
@@ -1,182 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class LexiconUpdateParameters(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'memory_id': 'int',
- 'source': 'str',
- 'target': 'str'
- }
-
- attribute_map = {
- 'memory_id': 'memory_id',
- 'source': 'source',
- 'target': 'target'
- }
-
- def __init__(self, memory_id=None, source=None, target=None, local_vars_configuration=None): # noqa: E501
- """LexiconUpdateParameters - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._memory_id = None
- self._source = None
- self._target = None
- self.discriminator = None
-
- self.memory_id = memory_id
- self.source = source
- self.target = target
-
- @property
- def memory_id(self):
- """Gets the memory_id of this LexiconUpdateParameters. # noqa: E501
-
- A unique Memory identifier. # noqa: E501
-
- :return: The memory_id of this LexiconUpdateParameters. # noqa: E501
- :rtype: int
- """
- return self._memory_id
-
- @memory_id.setter
- def memory_id(self, memory_id):
- """Sets the memory_id of this LexiconUpdateParameters.
-
- A unique Memory identifier. # noqa: E501
-
- :param memory_id: The memory_id of this LexiconUpdateParameters. # noqa: E501
- :type: int
- """
- if self.local_vars_configuration.client_side_validation and memory_id is None: # noqa: E501
- raise ValueError("Invalid value for `memory_id`, must not be `None`") # noqa: E501
-
- self._memory_id = memory_id
-
- @property
- def source(self):
- """Gets the source of this LexiconUpdateParameters. # noqa: E501
-
- The source side of the lexicon entry. # noqa: E501
-
- :return: The source of this LexiconUpdateParameters. # noqa: E501
- :rtype: str
- """
- return self._source
-
- @source.setter
- def source(self, source):
- """Sets the source of this LexiconUpdateParameters.
-
- The source side of the lexicon entry. # noqa: E501
-
- :param source: The source of this LexiconUpdateParameters. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and source is None: # noqa: E501
- raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501
-
- self._source = source
-
- @property
- def target(self):
- """Gets the target of this LexiconUpdateParameters. # noqa: E501
-
- The target side of the lexicon entry. # noqa: E501
-
- :return: The target of this LexiconUpdateParameters. # noqa: E501
- :rtype: str
- """
- return self._target
-
- @target.setter
- def target(self, target):
- """Sets the target of this LexiconUpdateParameters.
-
- The target side of the lexicon entry. # noqa: E501
-
- :param target: The target of this LexiconUpdateParameters. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and target is None: # noqa: E501
- raise ValueError("Invalid value for `target`, must not be `None`") # noqa: E501
-
- self._target = target
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, LexiconUpdateParameters):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, LexiconUpdateParameters):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/lexicon_update_response.py b/lilt/models/lexicon_update_response.py
deleted file mode 100644
index 0a9e235..0000000
--- a/lilt/models/lexicon_update_response.py
+++ /dev/null
@@ -1,151 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class LexiconUpdateResponse(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'memory_id': 'int',
- 'success': 'bool'
- }
-
- attribute_map = {
- 'memory_id': 'memory_id',
- 'success': 'success'
- }
-
- def __init__(self, memory_id=None, success=None, local_vars_configuration=None): # noqa: E501
- """LexiconUpdateResponse - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._memory_id = None
- self._success = None
- self.discriminator = None
-
- if memory_id is not None:
- self.memory_id = memory_id
- if success is not None:
- self.success = success
-
- @property
- def memory_id(self):
- """Gets the memory_id of this LexiconUpdateResponse. # noqa: E501
-
- A unique Memory identifier. # noqa: E501
-
- :return: The memory_id of this LexiconUpdateResponse. # noqa: E501
- :rtype: int
- """
- return self._memory_id
-
- @memory_id.setter
- def memory_id(self, memory_id):
- """Sets the memory_id of this LexiconUpdateResponse.
-
- A unique Memory identifier. # noqa: E501
-
- :param memory_id: The memory_id of this LexiconUpdateResponse. # noqa: E501
- :type: int
- """
-
- self._memory_id = memory_id
-
- @property
- def success(self):
- """Gets the success of this LexiconUpdateResponse. # noqa: E501
-
- If the operation succeeded, then `true`. Otherwise, `false`. # noqa: E501
-
- :return: The success of this LexiconUpdateResponse. # noqa: E501
- :rtype: bool
- """
- return self._success
-
- @success.setter
- def success(self, success):
- """Sets the success of this LexiconUpdateResponse.
-
- If the operation succeeded, then `true`. Otherwise, `false`. # noqa: E501
-
- :param success: The success of this LexiconUpdateResponse. # noqa: E501
- :type: bool
- """
-
- self._success = success
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, LexiconUpdateResponse):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, LexiconUpdateResponse):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/lilt_create_content.py b/lilt/models/lilt_create_content.py
index 7082b19..d1ca71a 100644
--- a/lilt/models/lilt_create_content.py
+++ b/lilt/models/lilt_create_content.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/lilt_create_content_preferences.py b/lilt/models/lilt_create_content_preferences.py
index 8d74f21..1a0c3e0 100644
--- a/lilt/models/lilt_create_content_preferences.py
+++ b/lilt/models/lilt_create_content_preferences.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/lilt_create_content_request.py b/lilt/models/lilt_create_content_request.py
index 30d2861..742bbf3 100644
--- a/lilt/models/lilt_create_content_request.py
+++ b/lilt/models/lilt_create_content_request.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/lilt_create_content_template_params.py b/lilt/models/lilt_create_content_template_params.py
index c173e52..9d7ae83 100644
--- a/lilt/models/lilt_create_content_template_params.py
+++ b/lilt/models/lilt_create_content_template_params.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/match_band.py b/lilt/models/match_band.py
deleted file mode 100644
index f9db990..0000000
--- a/lilt/models/match_band.py
+++ /dev/null
@@ -1,207 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class MatchBand(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'minimum_score': 'int',
- 'maximum_score': 'int',
- 'num_source_words': 'int',
- 'num_segments': 'int'
- }
-
- attribute_map = {
- 'minimum_score': 'minimum_score',
- 'maximum_score': 'maximum_score',
- 'num_source_words': 'num_source_words',
- 'num_segments': 'num_segments'
- }
-
- def __init__(self, minimum_score=None, maximum_score=None, num_source_words=None, num_segments=None, local_vars_configuration=None): # noqa: E501
- """MatchBand - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._minimum_score = None
- self._maximum_score = None
- self._num_source_words = None
- self._num_segments = None
- self.discriminator = None
-
- if minimum_score is not None:
- self.minimum_score = minimum_score
- if maximum_score is not None:
- self.maximum_score = maximum_score
- if num_source_words is not None:
- self.num_source_words = num_source_words
- if num_segments is not None:
- self.num_segments = num_segments
-
- @property
- def minimum_score(self):
- """Gets the minimum_score of this MatchBand. # noqa: E501
-
- The minimum fuzzy match score. # noqa: E501
-
- :return: The minimum_score of this MatchBand. # noqa: E501
- :rtype: int
- """
- return self._minimum_score
-
- @minimum_score.setter
- def minimum_score(self, minimum_score):
- """Sets the minimum_score of this MatchBand.
-
- The minimum fuzzy match score. # noqa: E501
-
- :param minimum_score: The minimum_score of this MatchBand. # noqa: E501
- :type: int
- """
-
- self._minimum_score = minimum_score
-
- @property
- def maximum_score(self):
- """Gets the maximum_score of this MatchBand. # noqa: E501
-
- The maximum fuzzy match score. # noqa: E501
-
- :return: The maximum_score of this MatchBand. # noqa: E501
- :rtype: int
- """
- return self._maximum_score
-
- @maximum_score.setter
- def maximum_score(self, maximum_score):
- """Sets the maximum_score of this MatchBand.
-
- The maximum fuzzy match score. # noqa: E501
-
- :param maximum_score: The maximum_score of this MatchBand. # noqa: E501
- :type: int
- """
-
- self._maximum_score = maximum_score
-
- @property
- def num_source_words(self):
- """Gets the num_source_words of this MatchBand. # noqa: E501
-
- The number of source words in the band. # noqa: E501
-
- :return: The num_source_words of this MatchBand. # noqa: E501
- :rtype: int
- """
- return self._num_source_words
-
- @num_source_words.setter
- def num_source_words(self, num_source_words):
- """Sets the num_source_words of this MatchBand.
-
- The number of source words in the band. # noqa: E501
-
- :param num_source_words: The num_source_words of this MatchBand. # noqa: E501
- :type: int
- """
-
- self._num_source_words = num_source_words
-
- @property
- def num_segments(self):
- """Gets the num_segments of this MatchBand. # noqa: E501
-
- The number of source segments in the band. # noqa: E501
-
- :return: The num_segments of this MatchBand. # noqa: E501
- :rtype: int
- """
- return self._num_segments
-
- @num_segments.setter
- def num_segments(self, num_segments):
- """Sets the num_segments of this MatchBand.
-
- The number of source segments in the band. # noqa: E501
-
- :param num_segments: The num_segments of this MatchBand. # noqa: E501
- :type: int
- """
-
- self._num_segments = num_segments
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, MatchBand):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, MatchBand):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/memory.py b/lilt/models/memory.py
index 786a1be..b3bb8c6 100644
--- a/lilt/models/memory.py
+++ b/lilt/models/memory.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
@@ -24,7 +24,7 @@
class Memory(BaseModel):
"""
- 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.
+ 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 API.
""" # noqa: E501
id: Optional[StrictInt] = Field(default=None, description="A unique number identifying the Memory.")
srclang: Optional[StrictStr] = Field(default=None, description="An ISO 639-1 language identifier.")
diff --git a/lilt/models/memory_create_parameters.py b/lilt/models/memory_create_parameters.py
index 6448efc..c910186 100644
--- a/lilt/models/memory_create_parameters.py
+++ b/lilt/models/memory_create_parameters.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/memory_delete_response.py b/lilt/models/memory_delete_response.py
index 95e965c..86bd8a8 100644
--- a/lilt/models/memory_delete_response.py
+++ b/lilt/models/memory_delete_response.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/memory_import_response.py b/lilt/models/memory_import_response.py
index c1fe244..358a031 100644
--- a/lilt/models/memory_import_response.py
+++ b/lilt/models/memory_import_response.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/memory_insert_response.py b/lilt/models/memory_insert_response.py
deleted file mode 100644
index ab83797..0000000
--- a/lilt/models/memory_insert_response.py
+++ /dev/null
@@ -1,151 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class MemoryInsertResponse(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int',
- 'num_updates': 'int'
- }
-
- attribute_map = {
- 'id': 'id',
- 'num_updates': 'num_updates'
- }
-
- def __init__(self, id=None, num_updates=None, local_vars_configuration=None): # noqa: E501
- """MemoryInsertResponse - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._num_updates = None
- self.discriminator = None
-
- if id is not None:
- self.id = id
- if num_updates is not None:
- self.num_updates = num_updates
-
- @property
- def id(self):
- """Gets the id of this MemoryInsertResponse. # noqa: E501
-
- A unique Memory identifier. # noqa: E501
-
- :return: The id of this MemoryInsertResponse. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this MemoryInsertResponse.
-
- A unique Memory identifier. # noqa: E501
-
- :param id: The id of this MemoryInsertResponse. # noqa: E501
- :type: int
- """
-
- self._id = id
-
- @property
- def num_updates(self):
- """Gets the num_updates of this MemoryInsertResponse. # noqa: E501
-
- The number of updates to the Memory. # noqa: E501
-
- :return: The num_updates of this MemoryInsertResponse. # noqa: E501
- :rtype: int
- """
- return self._num_updates
-
- @num_updates.setter
- def num_updates(self, num_updates):
- """Sets the num_updates of this MemoryInsertResponse.
-
- The number of updates to the Memory. # noqa: E501
-
- :param num_updates: The num_updates of this MemoryInsertResponse. # noqa: E501
- :type: int
- """
-
- self._num_updates = num_updates
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, MemoryInsertResponse):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, MemoryInsertResponse):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/memory_parameters.py b/lilt/models/memory_parameters.py
deleted file mode 100644
index 7db7fbb..0000000
--- a/lilt/models/memory_parameters.py
+++ /dev/null
@@ -1,238 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class MemoryParameters(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'name': 'str',
- 'srclang': 'str',
- 'trglang': 'str',
- 'srclocale': 'str',
- 'trglocale': 'str'
- }
-
- attribute_map = {
- 'name': 'name',
- 'srclang': 'srclang',
- 'trglang': 'trglang',
- 'srclocale': 'srclocale',
- 'trglocale': 'trglocale'
- }
-
- def __init__(self, name=None, srclang=None, trglang=None, srclocale=None, trglocale=None, local_vars_configuration=None): # noqa: E501
- """MemoryParameters - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._name = None
- self._srclang = None
- self._trglang = None
- self._srclocale = None
- self._trglocale = None
- self.discriminator = None
-
- self.name = name
- self.srclang = srclang
- self.trglang = trglang
- if srclocale is not None:
- self.srclocale = srclocale
- if trglocale is not None:
- self.trglocale = trglocale
-
- @property
- def name(self):
- """Gets the name of this MemoryParameters. # noqa: E501
-
- A name for the Memory. # noqa: E501
-
- :return: The name of this MemoryParameters. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this MemoryParameters.
-
- A name for the Memory. # noqa: E501
-
- :param name: The name of this MemoryParameters. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
- raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
-
- self._name = name
-
- @property
- def srclang(self):
- """Gets the srclang of this MemoryParameters. # noqa: E501
-
- An ISO 639-1 language identifier. # noqa: E501
-
- :return: The srclang of this MemoryParameters. # noqa: E501
- :rtype: str
- """
- return self._srclang
-
- @srclang.setter
- def srclang(self, srclang):
- """Sets the srclang of this MemoryParameters.
-
- An ISO 639-1 language identifier. # noqa: E501
-
- :param srclang: The srclang of this MemoryParameters. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and srclang is None: # noqa: E501
- raise ValueError("Invalid value for `srclang`, must not be `None`") # noqa: E501
-
- self._srclang = srclang
-
- @property
- def trglang(self):
- """Gets the trglang of this MemoryParameters. # noqa: E501
-
- An ISO 639-1 language identifier. # noqa: E501
-
- :return: The trglang of this MemoryParameters. # noqa: E501
- :rtype: str
- """
- return self._trglang
-
- @trglang.setter
- def trglang(self, trglang):
- """Sets the trglang of this MemoryParameters.
-
- An ISO 639-1 language identifier. # noqa: E501
-
- :param trglang: The trglang of this MemoryParameters. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and trglang is None: # noqa: E501
- raise ValueError("Invalid value for `trglang`, must not be `None`") # noqa: E501
-
- self._trglang = trglang
-
- @property
- def srclocale(self):
- """Gets the srclocale of this MemoryParameters. # noqa: E501
-
- An ISO 3166-1 region name for language locales # noqa: E501
-
- :return: The srclocale of this MemoryParameters. # noqa: E501
- :rtype: str
- """
- return self._srclocale
-
- @srclocale.setter
- def srclocale(self, srclocale):
- """Sets the srclocale of this MemoryParameters.
-
- An ISO 3166-1 region name for language locales # noqa: E501
-
- :param srclocale: The srclocale of this MemoryParameters. # noqa: E501
- :type: str
- """
-
- self._srclocale = srclocale
-
- @property
- def trglocale(self):
- """Gets the trglocale of this MemoryParameters. # noqa: E501
-
- An ISO 3166-1 region name for language locales # noqa: E501
-
- :return: The trglocale of this MemoryParameters. # noqa: E501
- :rtype: str
- """
- return self._trglocale
-
- @trglocale.setter
- def trglocale(self, trglocale):
- """Sets the trglocale of this MemoryParameters.
-
- An ISO 3166-1 region name for language locales # noqa: E501
-
- :param trglocale: The trglocale of this MemoryParameters. # noqa: E501
- :type: str
- """
-
- self._trglocale = trglocale
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, MemoryParameters):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, MemoryParameters):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/memory_update_parameters.py b/lilt/models/memory_update_parameters.py
index 617c61e..b1fcad9 100644
--- a/lilt/models/memory_update_parameters.py
+++ b/lilt/models/memory_update_parameters.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/memory_update_response.py b/lilt/models/memory_update_response.py
deleted file mode 100644
index a3200f5..0000000
--- a/lilt/models/memory_update_response.py
+++ /dev/null
@@ -1,151 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class MemoryUpdateResponse(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int',
- 'num_updates': 'int'
- }
-
- attribute_map = {
- 'id': 'id',
- 'num_updates': 'num_updates'
- }
-
- def __init__(self, id=None, num_updates=None, local_vars_configuration=None): # noqa: E501
- """MemoryUpdateResponse - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._num_updates = None
- self.discriminator = None
-
- if id is not None:
- self.id = id
- if num_updates is not None:
- self.num_updates = num_updates
-
- @property
- def id(self):
- """Gets the id of this MemoryUpdateResponse. # noqa: E501
-
- A unique Memory identifier. # noqa: E501
-
- :return: The id of this MemoryUpdateResponse. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this MemoryUpdateResponse.
-
- A unique Memory identifier. # noqa: E501
-
- :param id: The id of this MemoryUpdateResponse. # noqa: E501
- :type: int
- """
-
- self._id = id
-
- @property
- def num_updates(self):
- """Gets the num_updates of this MemoryUpdateResponse. # noqa: E501
-
- The number of updates to the Memory. # noqa: E501
-
- :return: The num_updates of this MemoryUpdateResponse. # noqa: E501
- :rtype: int
- """
- return self._num_updates
-
- @num_updates.setter
- def num_updates(self, num_updates):
- """Sets the num_updates of this MemoryUpdateResponse.
-
- The number of updates to the Memory. # noqa: E501
-
- :param num_updates: The num_updates of this MemoryUpdateResponse. # noqa: E501
- :type: int
- """
-
- self._num_updates = num_updates
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, MemoryUpdateResponse):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, MemoryUpdateResponse):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/model.py b/lilt/models/model.py
index 1354efc..069ad7a 100644
--- a/lilt/models/model.py
+++ b/lilt/models/model.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/next_workflow_task.py b/lilt/models/next_workflow_task.py
deleted file mode 100644
index e279a86..0000000
--- a/lilt/models/next_workflow_task.py
+++ /dev/null
@@ -1,186 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class NextWorkflowTask(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'status': 'str',
- 'new_task_id': 'int',
- 'new_stage_name': 'str'
- }
-
- attribute_map = {
- 'status': 'status',
- 'new_task_id': 'newTaskId',
- 'new_stage_name': 'newStageName'
- }
-
- def __init__(self, status=None, new_task_id=None, new_stage_name=None, local_vars_configuration=None): # noqa: E501
- """NextWorkflowTask - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._status = None
- self._new_task_id = None
- self._new_stage_name = None
- self.discriminator = None
-
- self.status = status
- if new_task_id is not None:
- self.new_task_id = new_task_id
- if new_stage_name is not None:
- self.new_stage_name = new_stage_name
-
- @property
- def status(self):
- """Gets the status of this NextWorkflowTask. # noqa: E501
-
- Identifier of the current workflow task. # noqa: E501
-
- :return: The status of this NextWorkflowTask. # noqa: E501
- :rtype: str
- """
- return self._status
-
- @status.setter
- def status(self, status):
- """Sets the status of this NextWorkflowTask.
-
- Identifier of the current workflow task. # noqa: E501
-
- :param status: The status of this NextWorkflowTask. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501
- raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
- allowed_values = ["SUCCESS", "WORKFLOW_FINISHED", "ALREADY_AT_START", "INVALID_ARGUMENT", "POSTCONDITIONS_FAILED", "UNKNOWN_ERROR"] # noqa: E501
- if self.local_vars_configuration.client_side_validation and status not in allowed_values: # noqa: E501
- raise ValueError(
- "Invalid value for `status` ({0}), must be one of {1}" # noqa: E501
- .format(status, allowed_values)
- )
-
- self._status = status
-
- @property
- def new_task_id(self):
- """Gets the new_task_id of this NextWorkflowTask. # noqa: E501
-
- The identifier of the workflow task that is now currently active. # noqa: E501
-
- :return: The new_task_id of this NextWorkflowTask. # noqa: E501
- :rtype: int
- """
- return self._new_task_id
-
- @new_task_id.setter
- def new_task_id(self, new_task_id):
- """Sets the new_task_id of this NextWorkflowTask.
-
- The identifier of the workflow task that is now currently active. # noqa: E501
-
- :param new_task_id: The new_task_id of this NextWorkflowTask. # noqa: E501
- :type: int
- """
-
- self._new_task_id = new_task_id
-
- @property
- def new_stage_name(self):
- """Gets the new_stage_name of this NextWorkflowTask. # noqa: E501
-
- The name of the workflow task that is now currently active. # noqa: E501
-
- :return: The new_stage_name of this NextWorkflowTask. # noqa: E501
- :rtype: str
- """
- return self._new_stage_name
-
- @new_stage_name.setter
- def new_stage_name(self, new_stage_name):
- """Sets the new_stage_name of this NextWorkflowTask.
-
- The name of the workflow task that is now currently active. # noqa: E501
-
- :param new_stage_name: The new_stage_name of this NextWorkflowTask. # noqa: E501
- :type: str
- """
-
- self._new_stage_name = new_stage_name
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, NextWorkflowTask):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, NextWorkflowTask):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/project.py b/lilt/models/project.py
index 963bd6f..022d437 100644
--- a/lilt/models/project.py
+++ b/lilt/models/project.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/project_create_parameters.py b/lilt/models/project_create_parameters.py
index 6966c79..7624900 100644
--- a/lilt/models/project_create_parameters.py
+++ b/lilt/models/project_create_parameters.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
@@ -34,7 +34,7 @@ class ProjectCreateParameters(BaseModel):
workflow_template_id: Optional[StrictInt] = Field(default=None, description="The workflow template used to create this project. WorkflowTemplateIds can be retrieved via the /workflows/templates endpoint. If not specified then the organization default workflowTemplateId will be used.", alias="workflowTemplateId")
workflow_template_name: Optional[StrictStr] = Field(default=None, description="Name of the workflow for the project, if a workflowTemplateId is passed, this field will be ignored.")
llm_provider: Optional[StrictStr] = Field(default=None, description="The LLM provider to use for the project. Defaults to \"neural\".")
- external_model_id: Optional[StrictInt] = Field(default=None, description="External model ID, if any. Must match the chosen llm_provider.")
+ external_model_id: Optional[StrictInt] = Field(default=None, description="An optional parameter to specify a third-party model ID to use for translation. This allows you to use external MT providers instead of Lilt's built-in MT system. Must match the chosen llm_provider.")
is_plural: Optional[StrictBool] = Field(default=None, description="Whether the documents in this project contain ICU plural forms.")
require_batch_qa_translator: Optional[StrictBool] = Field(default=None, description="Whether to require batch QA from the translator side.")
enable_prompt_labeling: Optional[StrictBool] = Field(default=None, description="Whether to enable prompt labeling for the project.")
diff --git a/lilt/models/project_delete_response.py b/lilt/models/project_delete_response.py
index 91abd03..f9acf26 100644
--- a/lilt/models/project_delete_response.py
+++ b/lilt/models/project_delete_response.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/project_parameters.py b/lilt/models/project_parameters.py
deleted file mode 100644
index 71fccd4..0000000
--- a/lilt/models/project_parameters.py
+++ /dev/null
@@ -1,237 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class ProjectParameters(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'name': 'str',
- 'memory_id': 'int',
- 'file_ids': 'list[int]',
- 'due_date': 'int',
- 'metadata': 'object'
- }
-
- attribute_map = {
- 'name': 'name',
- 'memory_id': 'memory_id',
- 'file_ids': 'file_ids',
- 'due_date': 'due_date',
- 'metadata': 'metadata'
- }
-
- def __init__(self, name=None, memory_id=None, file_ids=None, due_date=None, metadata=None, local_vars_configuration=None): # noqa: E501
- """ProjectParameters - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._name = None
- self._memory_id = None
- self._file_ids = None
- self._due_date = None
- self._metadata = None
- self.discriminator = None
-
- self.name = name
- self.memory_id = memory_id
- if file_ids is not None:
- self.file_ids = file_ids
- if due_date is not None:
- self.due_date = due_date
- if metadata is not None:
- self.metadata = metadata
-
- @property
- def name(self):
- """Gets the name of this ProjectParameters. # noqa: E501
-
- A name for the Project. # noqa: E501
-
- :return: The name of this ProjectParameters. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this ProjectParameters.
-
- A name for the Project. # noqa: E501
-
- :param name: The name of this ProjectParameters. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
- raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
-
- self._name = name
-
- @property
- def memory_id(self):
- """Gets the memory_id of this ProjectParameters. # noqa: E501
-
- The Memory to associate with this new Project. # noqa: E501
-
- :return: The memory_id of this ProjectParameters. # noqa: E501
- :rtype: int
- """
- return self._memory_id
-
- @memory_id.setter
- def memory_id(self, memory_id):
- """Sets the memory_id of this ProjectParameters.
-
- The Memory to associate with this new Project. # noqa: E501
-
- :param memory_id: The memory_id of this ProjectParameters. # noqa: E501
- :type: int
- """
- if self.local_vars_configuration.client_side_validation and memory_id is None: # noqa: E501
- raise ValueError("Invalid value for `memory_id`, must not be `None`") # noqa: E501
-
- self._memory_id = memory_id
-
- @property
- def file_ids(self):
- """Gets the file_ids of this ProjectParameters. # noqa: E501
-
- A list of Files to add to this new Project. # noqa: E501
-
- :return: The file_ids of this ProjectParameters. # noqa: E501
- :rtype: list[int]
- """
- return self._file_ids
-
- @file_ids.setter
- def file_ids(self, file_ids):
- """Sets the file_ids of this ProjectParameters.
-
- A list of Files to add to this new Project. # noqa: E501
-
- :param file_ids: The file_ids of this ProjectParameters. # noqa: E501
- :type: list[int]
- """
-
- self._file_ids = file_ids
-
- @property
- def due_date(self):
- """Gets the due_date of this ProjectParameters. # noqa: E501
-
- The due date. Measured in seconds since the Unix epoch. # noqa: E501
-
- :return: The due_date of this ProjectParameters. # noqa: E501
- :rtype: int
- """
- return self._due_date
-
- @due_date.setter
- def due_date(self, due_date):
- """Sets the due_date of this ProjectParameters.
-
- The due date. Measured in seconds since the Unix epoch. # noqa: E501
-
- :param due_date: The due_date of this ProjectParameters. # noqa: E501
- :type: int
- """
-
- self._due_date = due_date
-
- @property
- def metadata(self):
- """Gets the metadata of this ProjectParameters. # noqa: E501
-
- Metadata associated with a project. This field must be valid JSON. # noqa: E501
-
- :return: The metadata of this ProjectParameters. # noqa: E501
- :rtype: object
- """
- return self._metadata
-
- @metadata.setter
- def metadata(self, metadata):
- """Sets the metadata of this ProjectParameters.
-
- Metadata associated with a project. This field must be valid JSON. # noqa: E501
-
- :param metadata: The metadata of this ProjectParameters. # noqa: E501
- :type: object
- """
-
- self._metadata = metadata
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, ProjectParameters):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, ProjectParameters):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/project_quote.py b/lilt/models/project_quote.py
deleted file mode 100644
index ada8550..0000000
--- a/lilt/models/project_quote.py
+++ /dev/null
@@ -1,319 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class ProjectQuote(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int',
- 'num_source_words': 'int',
- 'num_words_new': 'int',
- 'num_segments_new': 'int',
- 'num_words_repetition': 'int',
- 'num_segments_repetition': 'int',
- 'bands': 'list[MatchBand]',
- 'documents': 'list[DocumentQuote]'
- }
-
- attribute_map = {
- 'id': 'id',
- 'num_source_words': 'num_source_words',
- 'num_words_new': 'num_words_new',
- 'num_segments_new': 'num_segments_new',
- 'num_words_repetition': 'num_words_repetition',
- 'num_segments_repetition': 'num_segments_repetition',
- 'bands': 'bands',
- 'documents': 'documents'
- }
-
- def __init__(self, id=None, num_source_words=None, num_words_new=None, num_segments_new=None, num_words_repetition=None, num_segments_repetition=None, bands=None, documents=None, local_vars_configuration=None): # noqa: E501
- """ProjectQuote - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._num_source_words = None
- self._num_words_new = None
- self._num_segments_new = None
- self._num_words_repetition = None
- self._num_segments_repetition = None
- self._bands = None
- self._documents = None
- self.discriminator = None
-
- if id is not None:
- self.id = id
- if num_source_words is not None:
- self.num_source_words = num_source_words
- if num_words_new is not None:
- self.num_words_new = num_words_new
- if num_segments_new is not None:
- self.num_segments_new = num_segments_new
- if num_words_repetition is not None:
- self.num_words_repetition = num_words_repetition
- if num_segments_repetition is not None:
- self.num_segments_repetition = num_segments_repetition
- if bands is not None:
- self.bands = bands
- if documents is not None:
- self.documents = documents
-
- @property
- def id(self):
- """Gets the id of this ProjectQuote. # noqa: E501
-
- A unique Project identifier. # noqa: E501
-
- :return: The id of this ProjectQuote. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this ProjectQuote.
-
- A unique Project identifier. # noqa: E501
-
- :param id: The id of this ProjectQuote. # noqa: E501
- :type: int
- """
-
- self._id = id
-
- @property
- def num_source_words(self):
- """Gets the num_source_words of this ProjectQuote. # noqa: E501
-
- The number of source words in the Project. # noqa: E501
-
- :return: The num_source_words of this ProjectQuote. # noqa: E501
- :rtype: int
- """
- return self._num_source_words
-
- @num_source_words.setter
- def num_source_words(self, num_source_words):
- """Sets the num_source_words of this ProjectQuote.
-
- The number of source words in the Project. # noqa: E501
-
- :param num_source_words: The num_source_words of this ProjectQuote. # noqa: E501
- :type: int
- """
-
- self._num_source_words = num_source_words
-
- @property
- def num_words_new(self):
- """Gets the num_words_new of this ProjectQuote. # noqa: E501
-
- The number of new source words in the Project. # noqa: E501
-
- :return: The num_words_new of this ProjectQuote. # noqa: E501
- :rtype: int
- """
- return self._num_words_new
-
- @num_words_new.setter
- def num_words_new(self, num_words_new):
- """Sets the num_words_new of this ProjectQuote.
-
- The number of new source words in the Project. # noqa: E501
-
- :param num_words_new: The num_words_new of this ProjectQuote. # noqa: E501
- :type: int
- """
-
- self._num_words_new = num_words_new
-
- @property
- def num_segments_new(self):
- """Gets the num_segments_new of this ProjectQuote. # noqa: E501
-
- The number of new segments in the Project. # noqa: E501
-
- :return: The num_segments_new of this ProjectQuote. # noqa: E501
- :rtype: int
- """
- return self._num_segments_new
-
- @num_segments_new.setter
- def num_segments_new(self, num_segments_new):
- """Sets the num_segments_new of this ProjectQuote.
-
- The number of new segments in the Project. # noqa: E501
-
- :param num_segments_new: The num_segments_new of this ProjectQuote. # noqa: E501
- :type: int
- """
-
- self._num_segments_new = num_segments_new
-
- @property
- def num_words_repetition(self):
- """Gets the num_words_repetition of this ProjectQuote. # noqa: E501
-
- The number of repetition source words in the Project. # noqa: E501
-
- :return: The num_words_repetition of this ProjectQuote. # noqa: E501
- :rtype: int
- """
- return self._num_words_repetition
-
- @num_words_repetition.setter
- def num_words_repetition(self, num_words_repetition):
- """Sets the num_words_repetition of this ProjectQuote.
-
- The number of repetition source words in the Project. # noqa: E501
-
- :param num_words_repetition: The num_words_repetition of this ProjectQuote. # noqa: E501
- :type: int
- """
-
- self._num_words_repetition = num_words_repetition
-
- @property
- def num_segments_repetition(self):
- """Gets the num_segments_repetition of this ProjectQuote. # noqa: E501
-
- The number of repetition segments in the Project. # noqa: E501
-
- :return: The num_segments_repetition of this ProjectQuote. # noqa: E501
- :rtype: int
- """
- return self._num_segments_repetition
-
- @num_segments_repetition.setter
- def num_segments_repetition(self, num_segments_repetition):
- """Sets the num_segments_repetition of this ProjectQuote.
-
- The number of repetition segments in the Project. # noqa: E501
-
- :param num_segments_repetition: The num_segments_repetition of this ProjectQuote. # noqa: E501
- :type: int
- """
-
- self._num_segments_repetition = num_segments_repetition
-
- @property
- def bands(self):
- """Gets the bands of this ProjectQuote. # noqa: E501
-
- A list of MatchBand objects that represent translation memory leverage statistics. # noqa: E501
-
- :return: The bands of this ProjectQuote. # noqa: E501
- :rtype: list[MatchBand]
- """
- return self._bands
-
- @bands.setter
- def bands(self, bands):
- """Sets the bands of this ProjectQuote.
-
- A list of MatchBand objects that represent translation memory leverage statistics. # noqa: E501
-
- :param bands: The bands of this ProjectQuote. # noqa: E501
- :type: list[MatchBand]
- """
-
- self._bands = bands
-
- @property
- def documents(self):
- """Gets the documents of this ProjectQuote. # noqa: E501
-
- A list of DocumentQuote objects that quotes information for a Document. # noqa: E501
-
- :return: The documents of this ProjectQuote. # noqa: E501
- :rtype: list[DocumentQuote]
- """
- return self._documents
-
- @documents.setter
- def documents(self, documents):
- """Sets the documents of this ProjectQuote.
-
- A list of DocumentQuote objects that quotes information for a Document. # noqa: E501
-
- :param documents: The documents of this ProjectQuote. # noqa: E501
- :type: list[DocumentQuote]
- """
-
- self._documents = documents
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, ProjectQuote):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, ProjectQuote):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/project_stats.py b/lilt/models/project_stats.py
index c100bed..be9bd9e 100644
--- a/lilt/models/project_stats.py
+++ b/lilt/models/project_stats.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/project_status.py b/lilt/models/project_status.py
deleted file mode 100644
index 5304240..0000000
--- a/lilt/models/project_status.py
+++ /dev/null
@@ -1,375 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class ProjectStatus(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int',
- 'num_source_words': 'int',
- 'num_words_confirmed': 'int',
- 'num_words_reviewed': 'int',
- 'time_elapsed': 'int',
- 'time_elapsed_translation': 'int',
- 'time_elapsed_research': 'int',
- 'time_elapsed_review': 'int',
- 'updated_at': 'int',
- 'resources': 'list[ResourceStatus]'
- }
-
- attribute_map = {
- 'id': 'id',
- 'num_source_words': 'num_source_words',
- 'num_words_confirmed': 'num_words_confirmed',
- 'num_words_reviewed': 'num_words_reviewed',
- 'time_elapsed': 'time_elapsed',
- 'time_elapsed_translation': 'time_elapsed_translation',
- 'time_elapsed_research': 'time_elapsed_research',
- 'time_elapsed_review': 'time_elapsed_review',
- 'updated_at': 'updated_at',
- 'resources': 'resources'
- }
-
- def __init__(self, id=None, num_source_words=None, num_words_confirmed=None, num_words_reviewed=None, time_elapsed=None, time_elapsed_translation=None, time_elapsed_research=None, time_elapsed_review=None, updated_at=None, resources=None, local_vars_configuration=None): # noqa: E501
- """ProjectStatus - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._num_source_words = None
- self._num_words_confirmed = None
- self._num_words_reviewed = None
- self._time_elapsed = None
- self._time_elapsed_translation = None
- self._time_elapsed_research = None
- self._time_elapsed_review = None
- self._updated_at = None
- self._resources = None
- self.discriminator = None
-
- if id is not None:
- self.id = id
- if num_source_words is not None:
- self.num_source_words = num_source_words
- if num_words_confirmed is not None:
- self.num_words_confirmed = num_words_confirmed
- if num_words_reviewed is not None:
- self.num_words_reviewed = num_words_reviewed
- if time_elapsed is not None:
- self.time_elapsed = time_elapsed
- if time_elapsed_translation is not None:
- self.time_elapsed_translation = time_elapsed_translation
- if time_elapsed_research is not None:
- self.time_elapsed_research = time_elapsed_research
- if time_elapsed_review is not None:
- self.time_elapsed_review = time_elapsed_review
- if updated_at is not None:
- self.updated_at = updated_at
- if resources is not None:
- self.resources = resources
-
- @property
- def id(self):
- """Gets the id of this ProjectStatus. # noqa: E501
-
- A unique Project identifier. # noqa: E501
-
- :return: The id of this ProjectStatus. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this ProjectStatus.
-
- A unique Project identifier. # noqa: E501
-
- :param id: The id of this ProjectStatus. # noqa: E501
- :type: int
- """
-
- self._id = id
-
- @property
- def num_source_words(self):
- """Gets the num_source_words of this ProjectStatus. # noqa: E501
-
- The number of source words in the Project. # noqa: E501
-
- :return: The num_source_words of this ProjectStatus. # noqa: E501
- :rtype: int
- """
- return self._num_source_words
-
- @num_source_words.setter
- def num_source_words(self, num_source_words):
- """Sets the num_source_words of this ProjectStatus.
-
- The number of source words in the Project. # noqa: E501
-
- :param num_source_words: The num_source_words of this ProjectStatus. # noqa: E501
- :type: int
- """
-
- self._num_source_words = num_source_words
-
- @property
- def num_words_confirmed(self):
- """Gets the num_words_confirmed of this ProjectStatus. # noqa: E501
-
- The number of confirmed source words. # noqa: E501
-
- :return: The num_words_confirmed of this ProjectStatus. # noqa: E501
- :rtype: int
- """
- return self._num_words_confirmed
-
- @num_words_confirmed.setter
- def num_words_confirmed(self, num_words_confirmed):
- """Sets the num_words_confirmed of this ProjectStatus.
-
- The number of confirmed source words. # noqa: E501
-
- :param num_words_confirmed: The num_words_confirmed of this ProjectStatus. # noqa: E501
- :type: int
- """
-
- self._num_words_confirmed = num_words_confirmed
-
- @property
- def num_words_reviewed(self):
- """Gets the num_words_reviewed of this ProjectStatus. # noqa: E501
-
- The number of reviewed source words. # noqa: E501
-
- :return: The num_words_reviewed of this ProjectStatus. # noqa: E501
- :rtype: int
- """
- return self._num_words_reviewed
-
- @num_words_reviewed.setter
- def num_words_reviewed(self, num_words_reviewed):
- """Sets the num_words_reviewed of this ProjectStatus.
-
- The number of reviewed source words. # noqa: E501
-
- :param num_words_reviewed: The num_words_reviewed of this ProjectStatus. # noqa: E501
- :type: int
- """
-
- self._num_words_reviewed = num_words_reviewed
-
- @property
- def time_elapsed(self):
- """Gets the time_elapsed of this ProjectStatus. # noqa: E501
-
- The total time spent on the project by all resources. Measured in milliseconds. # noqa: E501
-
- :return: The time_elapsed of this ProjectStatus. # noqa: E501
- :rtype: int
- """
- return self._time_elapsed
-
- @time_elapsed.setter
- def time_elapsed(self, time_elapsed):
- """Sets the time_elapsed of this ProjectStatus.
-
- The total time spent on the project by all resources. Measured in milliseconds. # noqa: E501
-
- :param time_elapsed: The time_elapsed of this ProjectStatus. # noqa: E501
- :type: int
- """
-
- self._time_elapsed = time_elapsed
-
- @property
- def time_elapsed_translation(self):
- """Gets the time_elapsed_translation of this ProjectStatus. # noqa: E501
-
- The total time spent on translation by all resources. Measured in milliseconds. # noqa: E501
-
- :return: The time_elapsed_translation of this ProjectStatus. # noqa: E501
- :rtype: int
- """
- return self._time_elapsed_translation
-
- @time_elapsed_translation.setter
- def time_elapsed_translation(self, time_elapsed_translation):
- """Sets the time_elapsed_translation of this ProjectStatus.
-
- The total time spent on translation by all resources. Measured in milliseconds. # noqa: E501
-
- :param time_elapsed_translation: The time_elapsed_translation of this ProjectStatus. # noqa: E501
- :type: int
- """
-
- self._time_elapsed_translation = time_elapsed_translation
-
- @property
- def time_elapsed_research(self):
- """Gets the time_elapsed_research of this ProjectStatus. # noqa: E501
-
- The total time spent on research by all resources. Measured in milliseconds. # noqa: E501
-
- :return: The time_elapsed_research of this ProjectStatus. # noqa: E501
- :rtype: int
- """
- return self._time_elapsed_research
-
- @time_elapsed_research.setter
- def time_elapsed_research(self, time_elapsed_research):
- """Sets the time_elapsed_research of this ProjectStatus.
-
- The total time spent on research by all resources. Measured in milliseconds. # noqa: E501
-
- :param time_elapsed_research: The time_elapsed_research of this ProjectStatus. # noqa: E501
- :type: int
- """
-
- self._time_elapsed_research = time_elapsed_research
-
- @property
- def time_elapsed_review(self):
- """Gets the time_elapsed_review of this ProjectStatus. # noqa: E501
-
- The total time spent on reviewing by all resources. Measured in milliseconds. # noqa: E501
-
- :return: The time_elapsed_review of this ProjectStatus. # noqa: E501
- :rtype: int
- """
- return self._time_elapsed_review
-
- @time_elapsed_review.setter
- def time_elapsed_review(self, time_elapsed_review):
- """Sets the time_elapsed_review of this ProjectStatus.
-
- The total time spent on reviewing by all resources. Measured in milliseconds. # noqa: E501
-
- :param time_elapsed_review: The time_elapsed_review of this ProjectStatus. # noqa: E501
- :type: int
- """
-
- self._time_elapsed_review = time_elapsed_review
-
- @property
- def updated_at(self):
- """Gets the updated_at of this ProjectStatus. # noqa: E501
-
- The project update date and time. Measured in seconds. # noqa: E501
-
- :return: The updated_at of this ProjectStatus. # noqa: E501
- :rtype: int
- """
- return self._updated_at
-
- @updated_at.setter
- def updated_at(self, updated_at):
- """Sets the updated_at of this ProjectStatus.
-
- The project update date and time. Measured in seconds. # noqa: E501
-
- :param updated_at: The updated_at of this ProjectStatus. # noqa: E501
- :type: int
- """
-
- self._updated_at = updated_at
-
- @property
- def resources(self):
- """Gets the resources of this ProjectStatus. # noqa: E501
-
- A list of ResourceStatus objects that represent per-resource statistics. # noqa: E501
-
- :return: The resources of this ProjectStatus. # noqa: E501
- :rtype: list[ResourceStatus]
- """
- return self._resources
-
- @resources.setter
- def resources(self, resources):
- """Sets the resources of this ProjectStatus.
-
- A list of ResourceStatus objects that represent per-resource statistics. # noqa: E501
-
- :param resources: The resources of this ProjectStatus. # noqa: E501
- :type: list[ResourceStatus]
- """
-
- self._resources = resources
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, ProjectStatus):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, ProjectStatus):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/project_update_response.py b/lilt/models/project_update_response.py
deleted file mode 100644
index caa8dd8..0000000
--- a/lilt/models/project_update_response.py
+++ /dev/null
@@ -1,263 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class ProjectUpdateResponse(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'name': 'str',
- 'state': 'str',
- 'due_date': 'int',
- 'archived': 'bool',
- 'metadata': 'object',
- 'sample_review_percentage': 'int'
- }
-
- attribute_map = {
- 'name': 'name',
- 'state': 'state',
- 'due_date': 'due_date',
- 'archived': 'archived',
- 'metadata': 'metadata',
- 'sample_review_percentage': 'sample_review_percentage'
- }
-
- def __init__(self, name=None, state=None, due_date=None, archived=None, metadata=None, sample_review_percentage=None, local_vars_configuration=None): # noqa: E501
- """ProjectUpdateResponse - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._name = None
- self._state = None
- self._due_date = None
- self._archived = None
- self._metadata = None
- self._sample_review_percentage = None
- self.discriminator = None
-
- if name is not None:
- self.name = name
- if state is not None:
- self.state = state
- if due_date is not None:
- self.due_date = due_date
- if archived is not None:
- self.archived = archived
- if metadata is not None:
- self.metadata = metadata
- if sample_review_percentage is not None:
- self.sample_review_percentage = sample_review_percentage
-
- @property
- def name(self):
- """Gets the name of this ProjectUpdateResponse. # noqa: E501
-
- The Project name. # noqa: E501
-
- :return: The name of this ProjectUpdateResponse. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this ProjectUpdateResponse.
-
- The Project name. # noqa: E501
-
- :param name: The name of this ProjectUpdateResponse. # noqa: E501
- :type: str
- """
-
- self._name = name
-
- @property
- def state(self):
- """Gets the state of this ProjectUpdateResponse. # noqa: E501
-
- The project's state. The possible states are 'backlog', 'inProgress', 'inReview', 'inQA', and 'done' # noqa: E501
-
- :return: The state of this ProjectUpdateResponse. # noqa: E501
- :rtype: str
- """
- return self._state
-
- @state.setter
- def state(self, state):
- """Sets the state of this ProjectUpdateResponse.
-
- The project's state. The possible states are 'backlog', 'inProgress', 'inReview', 'inQA', and 'done' # noqa: E501
-
- :param state: The state of this ProjectUpdateResponse. # noqa: E501
- :type: str
- """
-
- self._state = state
-
- @property
- def due_date(self):
- """Gets the due_date of this ProjectUpdateResponse. # noqa: E501
-
- The due date. Measured in seconds since the Unix epoch. # noqa: E501
-
- :return: The due_date of this ProjectUpdateResponse. # noqa: E501
- :rtype: int
- """
- return self._due_date
-
- @due_date.setter
- def due_date(self, due_date):
- """Sets the due_date of this ProjectUpdateResponse.
-
- The due date. Measured in seconds since the Unix epoch. # noqa: E501
-
- :param due_date: The due_date of this ProjectUpdateResponse. # noqa: E501
- :type: int
- """
-
- self._due_date = due_date
-
- @property
- def archived(self):
- """Gets the archived of this ProjectUpdateResponse. # noqa: E501
-
- True if the project is archived. Otherwise, false. # noqa: E501
-
- :return: The archived of this ProjectUpdateResponse. # noqa: E501
- :rtype: bool
- """
- return self._archived
-
- @archived.setter
- def archived(self, archived):
- """Sets the archived of this ProjectUpdateResponse.
-
- True if the project is archived. Otherwise, false. # noqa: E501
-
- :param archived: The archived of this ProjectUpdateResponse. # noqa: E501
- :type: bool
- """
-
- self._archived = archived
-
- @property
- def metadata(self):
- """Gets the metadata of this ProjectUpdateResponse. # noqa: E501
-
- Metadata associated with a project. This field must be valid JSON. # noqa: E501
-
- :return: The metadata of this ProjectUpdateResponse. # noqa: E501
- :rtype: object
- """
- return self._metadata
-
- @metadata.setter
- def metadata(self, metadata):
- """Sets the metadata of this ProjectUpdateResponse.
-
- Metadata associated with a project. This field must be valid JSON. # noqa: E501
-
- :param metadata: The metadata of this ProjectUpdateResponse. # noqa: E501
- :type: object
- """
-
- self._metadata = metadata
-
- @property
- def sample_review_percentage(self):
- """Gets the sample_review_percentage of this ProjectUpdateResponse. # noqa: E501
-
- The Project's sample review percentage. Must be an integer between 10 and 100, a multiple of 10 and greater than minimum value (displayed in error message). # noqa: E501
-
- :return: The sample_review_percentage of this ProjectUpdateResponse. # noqa: E501
- :rtype: int
- """
- return self._sample_review_percentage
-
- @sample_review_percentage.setter
- def sample_review_percentage(self, sample_review_percentage):
- """Sets the sample_review_percentage of this ProjectUpdateResponse.
-
- The Project's sample review percentage. Must be an integer between 10 and 100, a multiple of 10 and greater than minimum value (displayed in error message). # noqa: E501
-
- :param sample_review_percentage: The sample_review_percentage of this ProjectUpdateResponse. # noqa: E501
- :type: int
- """
-
- self._sample_review_percentage = sample_review_percentage
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, ProjectUpdateResponse):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, ProjectUpdateResponse):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/projects_to_deliver.py b/lilt/models/projects_to_deliver.py
deleted file mode 100644
index 7ba0fdf..0000000
--- a/lilt/models/projects_to_deliver.py
+++ /dev/null
@@ -1,122 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class ProjectsToDeliver(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'project_ids': 'list[int]'
- }
-
- attribute_map = {
- 'project_ids': 'projectIds'
- }
-
- def __init__(self, project_ids=None, local_vars_configuration=None): # noqa: E501
- """ProjectsToDeliver - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._project_ids = None
- self.discriminator = None
-
- self.project_ids = project_ids
-
- @property
- def project_ids(self):
- """Gets the project_ids of this ProjectsToDeliver. # noqa: E501
-
-
- :return: The project_ids of this ProjectsToDeliver. # noqa: E501
- :rtype: list[int]
- """
- return self._project_ids
-
- @project_ids.setter
- def project_ids(self, project_ids):
- """Sets the project_ids of this ProjectsToDeliver.
-
-
- :param project_ids: The project_ids of this ProjectsToDeliver. # noqa: E501
- :type: list[int]
- """
- if self.local_vars_configuration.client_side_validation and project_ids is None: # noqa: E501
- raise ValueError("Invalid value for `project_ids`, must not be `None`") # noqa: E501
-
- self._project_ids = project_ids
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, ProjectsToDeliver):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, ProjectsToDeliver):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/projects_to_update.py b/lilt/models/projects_to_update.py
deleted file mode 100644
index 0b725eb..0000000
--- a/lilt/models/projects_to_update.py
+++ /dev/null
@@ -1,149 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class ProjectsToUpdate(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'project_ids': 'list[int]',
- 'project': 'ProjectUpdateResponse'
- }
-
- attribute_map = {
- 'project_ids': 'projectIds',
- 'project': 'project'
- }
-
- def __init__(self, project_ids=None, project=None, local_vars_configuration=None): # noqa: E501
- """ProjectsToUpdate - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._project_ids = None
- self._project = None
- self.discriminator = None
-
- self.project_ids = project_ids
- self.project = project
-
- @property
- def project_ids(self):
- """Gets the project_ids of this ProjectsToUpdate. # noqa: E501
-
-
- :return: The project_ids of this ProjectsToUpdate. # noqa: E501
- :rtype: list[int]
- """
- return self._project_ids
-
- @project_ids.setter
- def project_ids(self, project_ids):
- """Sets the project_ids of this ProjectsToUpdate.
-
-
- :param project_ids: The project_ids of this ProjectsToUpdate. # noqa: E501
- :type: list[int]
- """
- if self.local_vars_configuration.client_side_validation and project_ids is None: # noqa: E501
- raise ValueError("Invalid value for `project_ids`, must not be `None`") # noqa: E501
-
- self._project_ids = project_ids
-
- @property
- def project(self):
- """Gets the project of this ProjectsToUpdate. # noqa: E501
-
-
- :return: The project of this ProjectsToUpdate. # noqa: E501
- :rtype: ProjectUpdateResponse
- """
- return self._project
-
- @project.setter
- def project(self, project):
- """Sets the project of this ProjectsToUpdate.
-
-
- :param project: The project of this ProjectsToUpdate. # noqa: E501
- :type: ProjectUpdateResponse
- """
- if self.local_vars_configuration.client_side_validation and project is None: # noqa: E501
- raise ValueError("Invalid value for `project`, must not be `None`") # noqa: E501
-
- self._project = project
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, ProjectsToUpdate):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, ProjectsToUpdate):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/qa_rule_matches.py b/lilt/models/qa_rule_matches.py
deleted file mode 100644
index dccaf9c..0000000
--- a/lilt/models/qa_rule_matches.py
+++ /dev/null
@@ -1,147 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class QARuleMatches(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'matches': 'list[QARuleMatchesMatches]',
- 'custom_rules': 'list[QARuleMatchesCustomRules]'
- }
-
- attribute_map = {
- 'matches': 'matches',
- 'custom_rules': 'custom_rules'
- }
-
- def __init__(self, matches=None, custom_rules=None, local_vars_configuration=None): # noqa: E501
- """QARuleMatches - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._matches = None
- self._custom_rules = None
- self.discriminator = None
-
- if matches is not None:
- self.matches = matches
- if custom_rules is not None:
- self.custom_rules = custom_rules
-
- @property
- def matches(self):
- """Gets the matches of this QARuleMatches. # noqa: E501
-
-
- :return: The matches of this QARuleMatches. # noqa: E501
- :rtype: list[QARuleMatchesMatches]
- """
- return self._matches
-
- @matches.setter
- def matches(self, matches):
- """Sets the matches of this QARuleMatches.
-
-
- :param matches: The matches of this QARuleMatches. # noqa: E501
- :type: list[QARuleMatchesMatches]
- """
-
- self._matches = matches
-
- @property
- def custom_rules(self):
- """Gets the custom_rules of this QARuleMatches. # noqa: E501
-
-
- :return: The custom_rules of this QARuleMatches. # noqa: E501
- :rtype: list[QARuleMatchesCustomRules]
- """
- return self._custom_rules
-
- @custom_rules.setter
- def custom_rules(self, custom_rules):
- """Sets the custom_rules of this QARuleMatches.
-
-
- :param custom_rules: The custom_rules of this QARuleMatches. # noqa: E501
- :type: list[QARuleMatchesCustomRules]
- """
-
- self._custom_rules = custom_rules
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, QARuleMatches):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, QARuleMatches):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/qa_rule_matches_context.py b/lilt/models/qa_rule_matches_context.py
deleted file mode 100644
index 7410a7b..0000000
--- a/lilt/models/qa_rule_matches_context.py
+++ /dev/null
@@ -1,182 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class QARuleMatchesContext(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'length': 'int',
- 'offset': 'int',
- 'text': 'str'
- }
-
- attribute_map = {
- 'length': 'length',
- 'offset': 'offset',
- 'text': 'text'
- }
-
- def __init__(self, length=None, offset=None, text=None, local_vars_configuration=None): # noqa: E501
- """QARuleMatchesContext - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._length = None
- self._offset = None
- self._text = None
- self.discriminator = None
-
- self.length = length
- self.offset = offset
- self.text = text
-
- @property
- def length(self):
- """Gets the length of this QARuleMatchesContext. # noqa: E501
-
- The length of the error in characters in the context. # noqa: E501
-
- :return: The length of this QARuleMatchesContext. # noqa: E501
- :rtype: int
- """
- return self._length
-
- @length.setter
- def length(self, length):
- """Sets the length of this QARuleMatchesContext.
-
- The length of the error in characters in the context. # noqa: E501
-
- :param length: The length of this QARuleMatchesContext. # noqa: E501
- :type: int
- """
- if self.local_vars_configuration.client_side_validation and length is None: # noqa: E501
- raise ValueError("Invalid value for `length`, must not be `None`") # noqa: E501
-
- self._length = length
-
- @property
- def offset(self):
- """Gets the offset of this QARuleMatchesContext. # noqa: E501
-
- The 0-based character offset of the error in the context text. # noqa: E501
-
- :return: The offset of this QARuleMatchesContext. # noqa: E501
- :rtype: int
- """
- return self._offset
-
- @offset.setter
- def offset(self, offset):
- """Sets the offset of this QARuleMatchesContext.
-
- The 0-based character offset of the error in the context text. # noqa: E501
-
- :param offset: The offset of this QARuleMatchesContext. # noqa: E501
- :type: int
- """
- if self.local_vars_configuration.client_side_validation and offset is None: # noqa: E501
- raise ValueError("Invalid value for `offset`, must not be `None`") # noqa: E501
-
- self._offset = offset
-
- @property
- def text(self):
- """Gets the text of this QARuleMatchesContext. # noqa: E501
-
- Context of the error, i.e. the error and some text to the left and to the left. # noqa: E501
-
- :return: The text of this QARuleMatchesContext. # noqa: E501
- :rtype: str
- """
- return self._text
-
- @text.setter
- def text(self, text):
- """Sets the text of this QARuleMatchesContext.
-
- Context of the error, i.e. the error and some text to the left and to the left. # noqa: E501
-
- :param text: The text of this QARuleMatchesContext. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and text is None: # noqa: E501
- raise ValueError("Invalid value for `text`, must not be `None`") # noqa: E501
-
- self._text = text
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, QARuleMatchesContext):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, QARuleMatchesContext):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/qa_rule_matches_custom_rules.py b/lilt/models/qa_rule_matches_custom_rules.py
deleted file mode 100644
index 608d93b..0000000
--- a/lilt/models/qa_rule_matches_custom_rules.py
+++ /dev/null
@@ -1,123 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class QARuleMatchesCustomRules(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'description': 'str'
- }
-
- attribute_map = {
- 'description': 'description'
- }
-
- def __init__(self, description=None, local_vars_configuration=None): # noqa: E501
- """QARuleMatchesCustomRules - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._description = None
- self.discriminator = None
-
- if description is not None:
- self.description = description
-
- @property
- def description(self):
- """Gets the description of this QARuleMatchesCustomRules. # noqa: E501
-
- A QA warning defined by a custom rule. # noqa: E501
-
- :return: The description of this QARuleMatchesCustomRules. # noqa: E501
- :rtype: str
- """
- return self._description
-
- @description.setter
- def description(self, description):
- """Sets the description of this QARuleMatchesCustomRules.
-
- A QA warning defined by a custom rule. # noqa: E501
-
- :param description: The description of this QARuleMatchesCustomRules. # noqa: E501
- :type: str
- """
-
- self._description = description
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, QARuleMatchesCustomRules):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, QARuleMatchesCustomRules):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/qa_rule_matches_matches.py b/lilt/models/qa_rule_matches_matches.py
deleted file mode 100644
index dcde497..0000000
--- a/lilt/models/qa_rule_matches_matches.py
+++ /dev/null
@@ -1,292 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class QARuleMatchesMatches(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'context': 'QARuleMatchesContext',
- 'length': 'int',
- 'message': 'str',
- 'offset': 'int',
- 'replacements': 'list[QARuleMatchesReplacements]',
- 'rule': 'QARuleMatchesRule',
- 'short_message': 'str'
- }
-
- attribute_map = {
- 'context': 'context',
- 'length': 'length',
- 'message': 'message',
- 'offset': 'offset',
- 'replacements': 'replacements',
- 'rule': 'rule',
- 'short_message': 'shortMessage'
- }
-
- def __init__(self, context=None, length=None, message=None, offset=None, replacements=None, rule=None, short_message=None, local_vars_configuration=None): # noqa: E501
- """QARuleMatchesMatches - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._context = None
- self._length = None
- self._message = None
- self._offset = None
- self._replacements = None
- self._rule = None
- self._short_message = None
- self.discriminator = None
-
- self.context = context
- self.length = length
- self.message = message
- self.offset = offset
- self.replacements = replacements
- if rule is not None:
- self.rule = rule
- if short_message is not None:
- self.short_message = short_message
-
- @property
- def context(self):
- """Gets the context of this QARuleMatchesMatches. # noqa: E501
-
-
- :return: The context of this QARuleMatchesMatches. # noqa: E501
- :rtype: QARuleMatchesContext
- """
- return self._context
-
- @context.setter
- def context(self, context):
- """Sets the context of this QARuleMatchesMatches.
-
-
- :param context: The context of this QARuleMatchesMatches. # noqa: E501
- :type: QARuleMatchesContext
- """
- if self.local_vars_configuration.client_side_validation and context is None: # noqa: E501
- raise ValueError("Invalid value for `context`, must not be `None`") # noqa: E501
-
- self._context = context
-
- @property
- def length(self):
- """Gets the length of this QARuleMatchesMatches. # noqa: E501
-
- The length of the error in characters. # noqa: E501
-
- :return: The length of this QARuleMatchesMatches. # noqa: E501
- :rtype: int
- """
- return self._length
-
- @length.setter
- def length(self, length):
- """Sets the length of this QARuleMatchesMatches.
-
- The length of the error in characters. # noqa: E501
-
- :param length: The length of this QARuleMatchesMatches. # noqa: E501
- :type: int
- """
- if self.local_vars_configuration.client_side_validation and length is None: # noqa: E501
- raise ValueError("Invalid value for `length`, must not be `None`") # noqa: E501
-
- self._length = length
-
- @property
- def message(self):
- """Gets the message of this QARuleMatchesMatches. # noqa: E501
-
- Message about the error displayed to the user. # noqa: E501
-
- :return: The message of this QARuleMatchesMatches. # noqa: E501
- :rtype: str
- """
- return self._message
-
- @message.setter
- def message(self, message):
- """Sets the message of this QARuleMatchesMatches.
-
- Message about the error displayed to the user. # noqa: E501
-
- :param message: The message of this QARuleMatchesMatches. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and message is None: # noqa: E501
- raise ValueError("Invalid value for `message`, must not be `None`") # noqa: E501
-
- self._message = message
-
- @property
- def offset(self):
- """Gets the offset of this QARuleMatchesMatches. # noqa: E501
-
- The 0-based character offset of the error in the text. # noqa: E501
-
- :return: The offset of this QARuleMatchesMatches. # noqa: E501
- :rtype: int
- """
- return self._offset
-
- @offset.setter
- def offset(self, offset):
- """Sets the offset of this QARuleMatchesMatches.
-
- The 0-based character offset of the error in the text. # noqa: E501
-
- :param offset: The offset of this QARuleMatchesMatches. # noqa: E501
- :type: int
- """
- if self.local_vars_configuration.client_side_validation and offset is None: # noqa: E501
- raise ValueError("Invalid value for `offset`, must not be `None`") # noqa: E501
-
- self._offset = offset
-
- @property
- def replacements(self):
- """Gets the replacements of this QARuleMatchesMatches. # noqa: E501
-
- Replacements that might correct the error. The array can be empty, in this case there is no suggested replacement. # noqa: E501
-
- :return: The replacements of this QARuleMatchesMatches. # noqa: E501
- :rtype: list[QARuleMatchesReplacements]
- """
- return self._replacements
-
- @replacements.setter
- def replacements(self, replacements):
- """Sets the replacements of this QARuleMatchesMatches.
-
- Replacements that might correct the error. The array can be empty, in this case there is no suggested replacement. # noqa: E501
-
- :param replacements: The replacements of this QARuleMatchesMatches. # noqa: E501
- :type: list[QARuleMatchesReplacements]
- """
- if self.local_vars_configuration.client_side_validation and replacements is None: # noqa: E501
- raise ValueError("Invalid value for `replacements`, must not be `None`") # noqa: E501
-
- self._replacements = replacements
-
- @property
- def rule(self):
- """Gets the rule of this QARuleMatchesMatches. # noqa: E501
-
-
- :return: The rule of this QARuleMatchesMatches. # noqa: E501
- :rtype: QARuleMatchesRule
- """
- return self._rule
-
- @rule.setter
- def rule(self, rule):
- """Sets the rule of this QARuleMatchesMatches.
-
-
- :param rule: The rule of this QARuleMatchesMatches. # noqa: E501
- :type: QARuleMatchesRule
- """
-
- self._rule = rule
-
- @property
- def short_message(self):
- """Gets the short_message of this QARuleMatchesMatches. # noqa: E501
-
- An optional shorter version of 'message'. # noqa: E501
-
- :return: The short_message of this QARuleMatchesMatches. # noqa: E501
- :rtype: str
- """
- return self._short_message
-
- @short_message.setter
- def short_message(self, short_message):
- """Sets the short_message of this QARuleMatchesMatches.
-
- An optional shorter version of 'message'. # noqa: E501
-
- :param short_message: The short_message of this QARuleMatchesMatches. # noqa: E501
- :type: str
- """
-
- self._short_message = short_message
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, QARuleMatchesMatches):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, QARuleMatchesMatches):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/qa_rule_matches_replacements.py b/lilt/models/qa_rule_matches_replacements.py
deleted file mode 100644
index 43fa797..0000000
--- a/lilt/models/qa_rule_matches_replacements.py
+++ /dev/null
@@ -1,123 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class QARuleMatchesReplacements(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'value': 'str'
- }
-
- attribute_map = {
- 'value': 'value'
- }
-
- def __init__(self, value=None, local_vars_configuration=None): # noqa: E501
- """QARuleMatchesReplacements - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._value = None
- self.discriminator = None
-
- if value is not None:
- self.value = value
-
- @property
- def value(self):
- """Gets the value of this QARuleMatchesReplacements. # noqa: E501
-
- the replacement string # noqa: E501
-
- :return: The value of this QARuleMatchesReplacements. # noqa: E501
- :rtype: str
- """
- return self._value
-
- @value.setter
- def value(self, value):
- """Sets the value of this QARuleMatchesReplacements.
-
- the replacement string # noqa: E501
-
- :param value: The value of this QARuleMatchesReplacements. # noqa: E501
- :type: str
- """
-
- self._value = value
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, QARuleMatchesReplacements):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, QARuleMatchesReplacements):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/qa_rule_matches_rule.py b/lilt/models/qa_rule_matches_rule.py
deleted file mode 100644
index 5438adb..0000000
--- a/lilt/models/qa_rule_matches_rule.py
+++ /dev/null
@@ -1,262 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class QARuleMatchesRule(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'category': 'QARuleMatchesRuleCategory',
- 'description': 'str',
- 'id': 'str',
- 'issue_type': 'str',
- 'sub_id': 'str',
- 'urls': 'list[QARuleMatchesRuleUrls]'
- }
-
- attribute_map = {
- 'category': 'category',
- 'description': 'description',
- 'id': 'id',
- 'issue_type': 'issueType',
- 'sub_id': 'subId',
- 'urls': 'urls'
- }
-
- def __init__(self, category=None, description=None, id=None, issue_type=None, sub_id=None, urls=None, local_vars_configuration=None): # noqa: E501
- """QARuleMatchesRule - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._category = None
- self._description = None
- self._id = None
- self._issue_type = None
- self._sub_id = None
- self._urls = None
- self.discriminator = None
-
- self.category = category
- self.description = description
- self.id = id
- if issue_type is not None:
- self.issue_type = issue_type
- if sub_id is not None:
- self.sub_id = sub_id
- if urls is not None:
- self.urls = urls
-
- @property
- def category(self):
- """Gets the category of this QARuleMatchesRule. # noqa: E501
-
-
- :return: The category of this QARuleMatchesRule. # noqa: E501
- :rtype: QARuleMatchesRuleCategory
- """
- return self._category
-
- @category.setter
- def category(self, category):
- """Sets the category of this QARuleMatchesRule.
-
-
- :param category: The category of this QARuleMatchesRule. # noqa: E501
- :type: QARuleMatchesRuleCategory
- """
- if self.local_vars_configuration.client_side_validation and category is None: # noqa: E501
- raise ValueError("Invalid value for `category`, must not be `None`") # noqa: E501
-
- self._category = category
-
- @property
- def description(self):
- """Gets the description of this QARuleMatchesRule. # noqa: E501
-
-
- :return: The description of this QARuleMatchesRule. # noqa: E501
- :rtype: str
- """
- return self._description
-
- @description.setter
- def description(self, description):
- """Sets the description of this QARuleMatchesRule.
-
-
- :param description: The description of this QARuleMatchesRule. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and description is None: # noqa: E501
- raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501
-
- self._description = description
-
- @property
- def id(self):
- """Gets the id of this QARuleMatchesRule. # noqa: E501
-
- An rule's identifier that's unique for this language. # noqa: E501
-
- :return: The id of this QARuleMatchesRule. # noqa: E501
- :rtype: str
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this QARuleMatchesRule.
-
- An rule's identifier that's unique for this language. # noqa: E501
-
- :param id: The id of this QARuleMatchesRule. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
- raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
-
- self._id = id
-
- @property
- def issue_type(self):
- """Gets the issue_type of this QARuleMatchesRule. # noqa: E501
-
- The Localization Quality Issue Type. This is not defined for all languages, in which case it will always be 'Uncategorized'. # noqa: E501
-
- :return: The issue_type of this QARuleMatchesRule. # noqa: E501
- :rtype: str
- """
- return self._issue_type
-
- @issue_type.setter
- def issue_type(self, issue_type):
- """Sets the issue_type of this QARuleMatchesRule.
-
- The Localization Quality Issue Type. This is not defined for all languages, in which case it will always be 'Uncategorized'. # noqa: E501
-
- :param issue_type: The issue_type of this QARuleMatchesRule. # noqa: E501
- :type: str
- """
-
- self._issue_type = issue_type
-
- @property
- def sub_id(self):
- """Gets the sub_id of this QARuleMatchesRule. # noqa: E501
-
- An optional sub identifier of the rule, used when several rules are grouped. # noqa: E501
-
- :return: The sub_id of this QARuleMatchesRule. # noqa: E501
- :rtype: str
- """
- return self._sub_id
-
- @sub_id.setter
- def sub_id(self, sub_id):
- """Sets the sub_id of this QARuleMatchesRule.
-
- An optional sub identifier of the rule, used when several rules are grouped. # noqa: E501
-
- :param sub_id: The sub_id of this QARuleMatchesRule. # noqa: E501
- :type: str
- """
-
- self._sub_id = sub_id
-
- @property
- def urls(self):
- """Gets the urls of this QARuleMatchesRule. # noqa: E501
-
- An optional array of URLs with a more detailed description of the error. # noqa: E501
-
- :return: The urls of this QARuleMatchesRule. # noqa: E501
- :rtype: list[QARuleMatchesRuleUrls]
- """
- return self._urls
-
- @urls.setter
- def urls(self, urls):
- """Sets the urls of this QARuleMatchesRule.
-
- An optional array of URLs with a more detailed description of the error. # noqa: E501
-
- :param urls: The urls of this QARuleMatchesRule. # noqa: E501
- :type: list[QARuleMatchesRuleUrls]
- """
-
- self._urls = urls
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, QARuleMatchesRule):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, QARuleMatchesRule):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/qa_rule_matches_rule_category.py b/lilt/models/qa_rule_matches_rule_category.py
deleted file mode 100644
index eabd121..0000000
--- a/lilt/models/qa_rule_matches_rule_category.py
+++ /dev/null
@@ -1,151 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class QARuleMatchesRuleCategory(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'str',
- 'name': 'str'
- }
-
- attribute_map = {
- 'id': 'id',
- 'name': 'name'
- }
-
- def __init__(self, id=None, name=None, local_vars_configuration=None): # noqa: E501
- """QARuleMatchesRuleCategory - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._name = None
- self.discriminator = None
-
- if id is not None:
- self.id = id
- if name is not None:
- self.name = name
-
- @property
- def id(self):
- """Gets the id of this QARuleMatchesRuleCategory. # noqa: E501
-
- A category's identifier that's unique for this language. # noqa: E501
-
- :return: The id of this QARuleMatchesRuleCategory. # noqa: E501
- :rtype: str
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this QARuleMatchesRuleCategory.
-
- A category's identifier that's unique for this language. # noqa: E501
-
- :param id: The id of this QARuleMatchesRuleCategory. # noqa: E501
- :type: str
- """
-
- self._id = id
-
- @property
- def name(self):
- """Gets the name of this QARuleMatchesRuleCategory. # noqa: E501
-
- A short description of the category. # noqa: E501
-
- :return: The name of this QARuleMatchesRuleCategory. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this QARuleMatchesRuleCategory.
-
- A short description of the category. # noqa: E501
-
- :param name: The name of this QARuleMatchesRuleCategory. # noqa: E501
- :type: str
- """
-
- self._name = name
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, QARuleMatchesRuleCategory):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, QARuleMatchesRuleCategory):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/qa_rule_matches_rule_urls.py b/lilt/models/qa_rule_matches_rule_urls.py
deleted file mode 100644
index 7be6fe9..0000000
--- a/lilt/models/qa_rule_matches_rule_urls.py
+++ /dev/null
@@ -1,123 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class QARuleMatchesRuleUrls(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'value': 'str'
- }
-
- attribute_map = {
- 'value': 'value'
- }
-
- def __init__(self, value=None, local_vars_configuration=None): # noqa: E501
- """QARuleMatchesRuleUrls - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._value = None
- self.discriminator = None
-
- if value is not None:
- self.value = value
-
- @property
- def value(self):
- """Gets the value of this QARuleMatchesRuleUrls. # noqa: E501
-
- the URL # noqa: E501
-
- :return: The value of this QARuleMatchesRuleUrls. # noqa: E501
- :rtype: str
- """
- return self._value
-
- @value.setter
- def value(self, value):
- """Sets the value of this QARuleMatchesRuleUrls.
-
- the URL # noqa: E501
-
- :param value: The value of this QARuleMatchesRuleUrls. # noqa: E501
- :type: str
- """
-
- self._value = value
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, QARuleMatchesRuleUrls):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, QARuleMatchesRuleUrls):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/resource_status.py b/lilt/models/resource_status.py
deleted file mode 100644
index 9eaf0f2..0000000
--- a/lilt/models/resource_status.py
+++ /dev/null
@@ -1,459 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class ResourceStatus(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'email': 'str',
- 'name': 'str',
- 'num_words_confirmed': 'int',
- 'num_words_new': 'int',
- 'num_words_fuzzy': 'int',
- 'num_words_exact': 'int',
- 'num_words_reviewed': 'int',
- 'time_elapsed': 'int',
- 'time_elapsed_translation': 'int',
- 'time_elapsed_research': 'int',
- 'time_elapsed_review': 'int',
- 'num_segments_confirmed': 'int',
- 'num_segments_reviewed': 'int'
- }
-
- attribute_map = {
- 'email': 'email',
- 'name': 'name',
- 'num_words_confirmed': 'num_words_confirmed',
- 'num_words_new': 'num_words_new',
- 'num_words_fuzzy': 'num_words_fuzzy',
- 'num_words_exact': 'num_words_exact',
- 'num_words_reviewed': 'num_words_reviewed',
- 'time_elapsed': 'time_elapsed',
- 'time_elapsed_translation': 'time_elapsed_translation',
- 'time_elapsed_research': 'time_elapsed_research',
- 'time_elapsed_review': 'time_elapsed_review',
- 'num_segments_confirmed': 'num_segments_confirmed',
- 'num_segments_reviewed': 'num_segments_reviewed'
- }
-
- def __init__(self, email=None, name=None, num_words_confirmed=None, num_words_new=None, num_words_fuzzy=None, num_words_exact=None, num_words_reviewed=None, time_elapsed=None, time_elapsed_translation=None, time_elapsed_research=None, time_elapsed_review=None, num_segments_confirmed=None, num_segments_reviewed=None, local_vars_configuration=None): # noqa: E501
- """ResourceStatus - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._email = None
- self._name = None
- self._num_words_confirmed = None
- self._num_words_new = None
- self._num_words_fuzzy = None
- self._num_words_exact = None
- self._num_words_reviewed = None
- self._time_elapsed = None
- self._time_elapsed_translation = None
- self._time_elapsed_research = None
- self._time_elapsed_review = None
- self._num_segments_confirmed = None
- self._num_segments_reviewed = None
- self.discriminator = None
-
- if email is not None:
- self.email = email
- if name is not None:
- self.name = name
- if num_words_confirmed is not None:
- self.num_words_confirmed = num_words_confirmed
- if num_words_new is not None:
- self.num_words_new = num_words_new
- if num_words_fuzzy is not None:
- self.num_words_fuzzy = num_words_fuzzy
- if num_words_exact is not None:
- self.num_words_exact = num_words_exact
- if num_words_reviewed is not None:
- self.num_words_reviewed = num_words_reviewed
- if time_elapsed is not None:
- self.time_elapsed = time_elapsed
- if time_elapsed_translation is not None:
- self.time_elapsed_translation = time_elapsed_translation
- if time_elapsed_research is not None:
- self.time_elapsed_research = time_elapsed_research
- if time_elapsed_review is not None:
- self.time_elapsed_review = time_elapsed_review
- if num_segments_confirmed is not None:
- self.num_segments_confirmed = num_segments_confirmed
- if num_segments_reviewed is not None:
- self.num_segments_reviewed = num_segments_reviewed
-
- @property
- def email(self):
- """Gets the email of this ResourceStatus. # noqa: E501
-
- An email address. # noqa: E501
-
- :return: The email of this ResourceStatus. # noqa: E501
- :rtype: str
- """
- return self._email
-
- @email.setter
- def email(self, email):
- """Sets the email of this ResourceStatus.
-
- An email address. # noqa: E501
-
- :param email: The email of this ResourceStatus. # noqa: E501
- :type: str
- """
-
- self._email = email
-
- @property
- def name(self):
- """Gets the name of this ResourceStatus. # noqa: E501
-
- The full name. # noqa: E501
-
- :return: The name of this ResourceStatus. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this ResourceStatus.
-
- The full name. # noqa: E501
-
- :param name: The name of this ResourceStatus. # noqa: E501
- :type: str
- """
-
- self._name = name
-
- @property
- def num_words_confirmed(self):
- """Gets the num_words_confirmed of this ResourceStatus. # noqa: E501
-
- The number of source words confirmed. # noqa: E501
-
- :return: The num_words_confirmed of this ResourceStatus. # noqa: E501
- :rtype: int
- """
- return self._num_words_confirmed
-
- @num_words_confirmed.setter
- def num_words_confirmed(self, num_words_confirmed):
- """Sets the num_words_confirmed of this ResourceStatus.
-
- The number of source words confirmed. # noqa: E501
-
- :param num_words_confirmed: The num_words_confirmed of this ResourceStatus. # noqa: E501
- :type: int
- """
-
- self._num_words_confirmed = num_words_confirmed
-
- @property
- def num_words_new(self):
- """Gets the num_words_new of this ResourceStatus. # noqa: E501
-
- The number of new source words confirmed. # noqa: E501
-
- :return: The num_words_new of this ResourceStatus. # noqa: E501
- :rtype: int
- """
- return self._num_words_new
-
- @num_words_new.setter
- def num_words_new(self, num_words_new):
- """Sets the num_words_new of this ResourceStatus.
-
- The number of new source words confirmed. # noqa: E501
-
- :param num_words_new: The num_words_new of this ResourceStatus. # noqa: E501
- :type: int
- """
-
- self._num_words_new = num_words_new
-
- @property
- def num_words_fuzzy(self):
- """Gets the num_words_fuzzy of this ResourceStatus. # noqa: E501
-
- The number of fuzzy match source words confirmed. # noqa: E501
-
- :return: The num_words_fuzzy of this ResourceStatus. # noqa: E501
- :rtype: int
- """
- return self._num_words_fuzzy
-
- @num_words_fuzzy.setter
- def num_words_fuzzy(self, num_words_fuzzy):
- """Sets the num_words_fuzzy of this ResourceStatus.
-
- The number of fuzzy match source words confirmed. # noqa: E501
-
- :param num_words_fuzzy: The num_words_fuzzy of this ResourceStatus. # noqa: E501
- :type: int
- """
-
- self._num_words_fuzzy = num_words_fuzzy
-
- @property
- def num_words_exact(self):
- """Gets the num_words_exact of this ResourceStatus. # noqa: E501
-
- The number of exact match source words confirmed. # noqa: E501
-
- :return: The num_words_exact of this ResourceStatus. # noqa: E501
- :rtype: int
- """
- return self._num_words_exact
-
- @num_words_exact.setter
- def num_words_exact(self, num_words_exact):
- """Sets the num_words_exact of this ResourceStatus.
-
- The number of exact match source words confirmed. # noqa: E501
-
- :param num_words_exact: The num_words_exact of this ResourceStatus. # noqa: E501
- :type: int
- """
-
- self._num_words_exact = num_words_exact
-
- @property
- def num_words_reviewed(self):
- """Gets the num_words_reviewed of this ResourceStatus. # noqa: E501
-
- The number of source words reviewed. # noqa: E501
-
- :return: The num_words_reviewed of this ResourceStatus. # noqa: E501
- :rtype: int
- """
- return self._num_words_reviewed
-
- @num_words_reviewed.setter
- def num_words_reviewed(self, num_words_reviewed):
- """Sets the num_words_reviewed of this ResourceStatus.
-
- The number of source words reviewed. # noqa: E501
-
- :param num_words_reviewed: The num_words_reviewed of this ResourceStatus. # noqa: E501
- :type: int
- """
-
- self._num_words_reviewed = num_words_reviewed
-
- @property
- def time_elapsed(self):
- """Gets the time_elapsed of this ResourceStatus. # noqa: E501
-
- The total time spent on translation and research. Measured in milliseconds. # noqa: E501
-
- :return: The time_elapsed of this ResourceStatus. # noqa: E501
- :rtype: int
- """
- return self._time_elapsed
-
- @time_elapsed.setter
- def time_elapsed(self, time_elapsed):
- """Sets the time_elapsed of this ResourceStatus.
-
- The total time spent on translation and research. Measured in milliseconds. # noqa: E501
-
- :param time_elapsed: The time_elapsed of this ResourceStatus. # noqa: E501
- :type: int
- """
-
- self._time_elapsed = time_elapsed
-
- @property
- def time_elapsed_translation(self):
- """Gets the time_elapsed_translation of this ResourceStatus. # noqa: E501
-
- The total time spent translating. Measured in milliseconds. # noqa: E501
-
- :return: The time_elapsed_translation of this ResourceStatus. # noqa: E501
- :rtype: int
- """
- return self._time_elapsed_translation
-
- @time_elapsed_translation.setter
- def time_elapsed_translation(self, time_elapsed_translation):
- """Sets the time_elapsed_translation of this ResourceStatus.
-
- The total time spent translating. Measured in milliseconds. # noqa: E501
-
- :param time_elapsed_translation: The time_elapsed_translation of this ResourceStatus. # noqa: E501
- :type: int
- """
-
- self._time_elapsed_translation = time_elapsed_translation
-
- @property
- def time_elapsed_research(self):
- """Gets the time_elapsed_research of this ResourceStatus. # noqa: E501
-
- The total time spent on research. Measured in milliseconds. # noqa: E501
-
- :return: The time_elapsed_research of this ResourceStatus. # noqa: E501
- :rtype: int
- """
- return self._time_elapsed_research
-
- @time_elapsed_research.setter
- def time_elapsed_research(self, time_elapsed_research):
- """Sets the time_elapsed_research of this ResourceStatus.
-
- The total time spent on research. Measured in milliseconds. # noqa: E501
-
- :param time_elapsed_research: The time_elapsed_research of this ResourceStatus. # noqa: E501
- :type: int
- """
-
- self._time_elapsed_research = time_elapsed_research
-
- @property
- def time_elapsed_review(self):
- """Gets the time_elapsed_review of this ResourceStatus. # noqa: E501
-
- The total time spent reviewing. Measured in milliseconds. # noqa: E501
-
- :return: The time_elapsed_review of this ResourceStatus. # noqa: E501
- :rtype: int
- """
- return self._time_elapsed_review
-
- @time_elapsed_review.setter
- def time_elapsed_review(self, time_elapsed_review):
- """Sets the time_elapsed_review of this ResourceStatus.
-
- The total time spent reviewing. Measured in milliseconds. # noqa: E501
-
- :param time_elapsed_review: The time_elapsed_review of this ResourceStatus. # noqa: E501
- :type: int
- """
-
- self._time_elapsed_review = time_elapsed_review
-
- @property
- def num_segments_confirmed(self):
- """Gets the num_segments_confirmed of this ResourceStatus. # noqa: E501
-
- The number of source segments confirmed. # noqa: E501
-
- :return: The num_segments_confirmed of this ResourceStatus. # noqa: E501
- :rtype: int
- """
- return self._num_segments_confirmed
-
- @num_segments_confirmed.setter
- def num_segments_confirmed(self, num_segments_confirmed):
- """Sets the num_segments_confirmed of this ResourceStatus.
-
- The number of source segments confirmed. # noqa: E501
-
- :param num_segments_confirmed: The num_segments_confirmed of this ResourceStatus. # noqa: E501
- :type: int
- """
-
- self._num_segments_confirmed = num_segments_confirmed
-
- @property
- def num_segments_reviewed(self):
- """Gets the num_segments_reviewed of this ResourceStatus. # noqa: E501
-
- The number of source segments reviewed. # noqa: E501
-
- :return: The num_segments_reviewed of this ResourceStatus. # noqa: E501
- :rtype: int
- """
- return self._num_segments_reviewed
-
- @num_segments_reviewed.setter
- def num_segments_reviewed(self, num_segments_reviewed):
- """Sets the num_segments_reviewed of this ResourceStatus.
-
- The number of source segments reviewed. # noqa: E501
-
- :param num_segments_reviewed: The num_segments_reviewed of this ResourceStatus. # noqa: E501
- :type: int
- """
-
- self._num_segments_reviewed = num_segments_reviewed
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, ResourceStatus):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, ResourceStatus):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/review_completion_type_error.py b/lilt/models/review_completion_type_error.py
deleted file mode 100644
index 32aa5f9..0000000
--- a/lilt/models/review_completion_type_error.py
+++ /dev/null
@@ -1,123 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class ReviewCompletionTypeError(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'message': 'object'
- }
-
- attribute_map = {
- 'message': 'message'
- }
-
- def __init__(self, message=None, local_vars_configuration=None): # noqa: E501
- """ReviewCompletionTypeError - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._message = None
- self.discriminator = None
-
- if message is not None:
- self.message = message
-
- @property
- def message(self):
- """Gets the message of this ReviewCompletionTypeError. # noqa: E501
-
- A human-readable message describing the error. # noqa: E501
-
- :return: The message of this ReviewCompletionTypeError. # noqa: E501
- :rtype: object
- """
- return self._message
-
- @message.setter
- def message(self, message):
- """Sets the message of this ReviewCompletionTypeError.
-
- A human-readable message describing the error. # noqa: E501
-
- :param message: The message of this ReviewCompletionTypeError. # noqa: E501
- :type: object
- """
-
- self._message = message
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, ReviewCompletionTypeError):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, ReviewCompletionTypeError):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/sdlxliff_filter.py b/lilt/models/sdlxliff_filter.py
index ee87870..b037fdb 100644
--- a/lilt/models/sdlxliff_filter.py
+++ b/lilt/models/sdlxliff_filter.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/segment.py b/lilt/models/segment.py
index 1d03bcc..8b02de9 100644
--- a/lilt/models/segment.py
+++ b/lilt/models/segment.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/segment_create_parameters.py b/lilt/models/segment_create_parameters.py
index 6815733..1426114 100644
--- a/lilt/models/segment_create_parameters.py
+++ b/lilt/models/segment_create_parameters.py
@@ -1,208 +1,97 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+from __future__ import annotations
import pprint
import re # noqa: F401
+import json
-import six
-
-from lilt.configuration import Configuration
-
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
-class SegmentCreateParameters(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
+class SegmentCreateParameters(BaseModel):
"""
- openapi_types = {
- 'memory_id': 'int',
- 'document_id': 'int',
- 'source': 'str',
- 'target': 'str'
- }
-
- attribute_map = {
- 'memory_id': 'memory_id',
- 'document_id': 'document_id',
- 'source': 'source',
- 'target': 'target'
- }
-
- def __init__(self, memory_id=None, document_id=None, source=None, target=None, local_vars_configuration=None): # noqa: E501
- """SegmentCreateParameters - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._memory_id = None
- self._document_id = None
- self._source = None
- self._target = None
- self.discriminator = None
-
- if memory_id is not None:
- self.memory_id = memory_id
- if document_id is not None:
- self.document_id = document_id
- self.source = source
- if target is not None:
- self.target = target
-
- @property
- def memory_id(self):
- """Gets the memory_id of this SegmentCreateParameters. # noqa: E501
-
- A unique Memory identifier. # noqa: E501
-
- :return: The memory_id of this SegmentCreateParameters. # noqa: E501
- :rtype: int
- """
- return self._memory_id
-
- @memory_id.setter
- def memory_id(self, memory_id):
- """Sets the memory_id of this SegmentCreateParameters.
-
- A unique Memory identifier. # noqa: E501
-
- :param memory_id: The memory_id of this SegmentCreateParameters. # noqa: E501
- :type: int
- """
-
- self._memory_id = memory_id
-
- @property
- def document_id(self):
- """Gets the document_id of this SegmentCreateParameters. # noqa: E501
-
- A unique Document identifier. # noqa: E501
-
- :return: The document_id of this SegmentCreateParameters. # noqa: E501
- :rtype: int
- """
- return self._document_id
-
- @document_id.setter
- def document_id(self, document_id):
- """Sets the document_id of this SegmentCreateParameters.
-
- A unique Document identifier. # noqa: E501
-
- :param document_id: The document_id of this SegmentCreateParameters. # noqa: E501
- :type: int
- """
-
- self._document_id = document_id
-
- @property
- def source(self):
- """Gets the source of this SegmentCreateParameters. # noqa: E501
-
- The source string. # noqa: E501
-
- :return: The source of this SegmentCreateParameters. # noqa: E501
- :rtype: str
- """
- return self._source
-
- @source.setter
- def source(self, source):
- """Sets the source of this SegmentCreateParameters.
-
- The source string. # noqa: E501
-
- :param source: The source of this SegmentCreateParameters. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and source is None: # noqa: E501
- raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501
-
- self._source = source
-
- @property
- def target(self):
- """Gets the target of this SegmentCreateParameters. # noqa: E501
-
- The target string. # noqa: E501
-
- :return: The target of this SegmentCreateParameters. # noqa: E501
- :rtype: str
+ SegmentCreateParameters
+ """ # noqa: E501
+ memory_id: Optional[StrictInt] = Field(default=None, description="A unique Memory identifier.")
+ document_id: Optional[StrictInt] = Field(default=None, description="A unique Document identifier.")
+ source: StrictStr = Field(description="The source string.")
+ target: Optional[StrictStr] = Field(default=None, description="The target string.")
+ should_apply_segmentation: Optional[StrictBool] = Field(default=None, description="A flag for whether this segment should be broken down into smaller segments. If this is true then the response is an array of segments.", alias="shouldApplySegmentation")
+ src_lang: Optional[StrictStr] = Field(default=None, description="A two letter language code for the source language. Required if `shouldApplySegmentation` is enabled.", alias="srcLang")
+ __properties: ClassVar[List[str]] = ["memory_id", "document_id", "source", "target", "shouldApplySegmentation", "srcLang"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of SegmentCreateParameters from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
"""
- return self._target
-
- @target.setter
- def target(self, target):
- """Sets the target of this SegmentCreateParameters.
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of SegmentCreateParameters from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "memory_id": obj.get("memory_id"),
+ "document_id": obj.get("document_id"),
+ "source": obj.get("source"),
+ "target": obj.get("target"),
+ "shouldApplySegmentation": obj.get("shouldApplySegmentation"),
+ "srcLang": obj.get("srcLang")
+ })
+ return _obj
- The target string. # noqa: E501
-
- :param target: The target of this SegmentCreateParameters. # noqa: E501
- :type: str
- """
- self._target = target
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, SegmentCreateParameters):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, SegmentCreateParameters):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/segment_delete_response.py b/lilt/models/segment_delete_response.py
index 3c02bb3..bc56ea7 100644
--- a/lilt/models/segment_delete_response.py
+++ b/lilt/models/segment_delete_response.py
@@ -1,151 +1,89 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+from __future__ import annotations
import pprint
import re # noqa: F401
+import json
-import six
-
-from lilt.configuration import Configuration
-
-
-class SegmentDeleteResponse(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+class SegmentDeleteResponse(BaseModel):
"""
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int',
- 'deleted': 'bool'
- }
-
- attribute_map = {
- 'id': 'id',
- 'deleted': 'deleted'
- }
-
- def __init__(self, id=None, deleted=None, local_vars_configuration=None): # noqa: E501
- """SegmentDeleteResponse - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._deleted = None
- self.discriminator = None
-
- if id is not None:
- self.id = id
- if deleted is not None:
- self.deleted = deleted
-
- @property
- def id(self):
- """Gets the id of this SegmentDeleteResponse. # noqa: E501
-
- A unique Segment identifier. # noqa: E501
-
- :return: The id of this SegmentDeleteResponse. # noqa: E501
- :rtype: int
+ SegmentDeleteResponse
+ """ # noqa: E501
+ id: Optional[StrictInt] = Field(default=None, description="A unique Segment identifier.")
+ deleted: Optional[StrictBool] = Field(default=None, description="If the operation succeeded, then `true`. Otherwise, `false`.")
+ __properties: ClassVar[List[str]] = ["id", "deleted"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of SegmentDeleteResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
"""
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this SegmentDeleteResponse.
+ excluded_fields: Set[str] = set([
+ ])
- A unique Segment identifier. # noqa: E501
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
- :param id: The id of this SegmentDeleteResponse. # noqa: E501
- :type: int
- """
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of SegmentDeleteResponse from a dict"""
+ if obj is None:
+ return None
- self._id = id
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
- @property
- def deleted(self):
- """Gets the deleted of this SegmentDeleteResponse. # noqa: E501
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "deleted": obj.get("deleted")
+ })
+ return _obj
- If the operation succeeded, then `true`. Otherwise, `false`. # noqa: E501
-
- :return: The deleted of this SegmentDeleteResponse. # noqa: E501
- :rtype: bool
- """
- return self._deleted
-
- @deleted.setter
- def deleted(self, deleted):
- """Sets the deleted of this SegmentDeleteResponse.
-
- If the operation succeeded, then `true`. Otherwise, `false`. # noqa: E501
-
- :param deleted: The deleted of this SegmentDeleteResponse. # noqa: E501
- :type: bool
- """
- self._deleted = deleted
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, SegmentDeleteResponse):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, SegmentDeleteResponse):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/segment_done_response.py b/lilt/models/segment_done_response.py
index fbe451c..3f1375f 100644
--- a/lilt/models/segment_done_response.py
+++ b/lilt/models/segment_done_response.py
@@ -1,124 +1,87 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+from __future__ import annotations
import pprint
import re # noqa: F401
+import json
-import six
+from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt
+from typing import Any, ClassVar, Dict, List, Union
+from typing import Optional, Set
+from typing_extensions import Self
-from lilt.configuration import Configuration
+class SegmentDoneResponse(BaseModel):
+ """
+ SegmentDoneResponse
+ """ # noqa: E501
+ document_ids: List[Union[StrictFloat, StrictInt]] = Field(description="array of segment ids", alias="documentIds")
+ __properties: ClassVar[List[str]] = ["documentIds"]
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
-class SegmentDoneResponse(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
- Do not edit the class manually.
- """
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'document_ids': 'list[float]'
- }
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
- attribute_map = {
- 'document_ids': 'documentIds'
- }
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of SegmentDoneResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
- def __init__(self, document_ids=None, local_vars_configuration=None): # noqa: E501
- """SegmentDoneResponse - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
- self._document_ids = None
- self.discriminator = None
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
- self.document_ids = document_ids
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
- @property
- def document_ids(self):
- """Gets the document_ids of this SegmentDoneResponse. # noqa: E501
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
- array of segment ids # noqa: E501
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of SegmentDoneResponse from a dict"""
+ if obj is None:
+ return None
- :return: The document_ids of this SegmentDoneResponse. # noqa: E501
- :rtype: list[float]
- """
- return self._document_ids
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
- @document_ids.setter
- def document_ids(self, document_ids):
- """Sets the document_ids of this SegmentDoneResponse.
+ _obj = cls.model_validate({
+ "documentIds": obj.get("documentIds")
+ })
+ return _obj
- array of segment ids # noqa: E501
- :param document_ids: The document_ids of this SegmentDoneResponse. # noqa: E501
- :type: list[float]
- """
- if self.local_vars_configuration.client_side_validation and document_ids is None: # noqa: E501
- raise ValueError("Invalid value for `document_ids`, must not be `None`") # noqa: E501
-
- self._document_ids = document_ids
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, SegmentDoneResponse):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, SegmentDoneResponse):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/segment_parameters.py b/lilt/models/segment_parameters.py
deleted file mode 100644
index 94de05c..0000000
--- a/lilt/models/segment_parameters.py
+++ /dev/null
@@ -1,208 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class SegmentParameters(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'memory_id': 'int',
- 'document_id': 'int',
- 'source': 'str',
- 'target': 'str'
- }
-
- attribute_map = {
- 'memory_id': 'memory_id',
- 'document_id': 'document_id',
- 'source': 'source',
- 'target': 'target'
- }
-
- def __init__(self, memory_id=None, document_id=None, source=None, target=None, local_vars_configuration=None): # noqa: E501
- """SegmentParameters - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._memory_id = None
- self._document_id = None
- self._source = None
- self._target = None
- self.discriminator = None
-
- if memory_id is not None:
- self.memory_id = memory_id
- if document_id is not None:
- self.document_id = document_id
- self.source = source
- if target is not None:
- self.target = target
-
- @property
- def memory_id(self):
- """Gets the memory_id of this SegmentParameters. # noqa: E501
-
- A unique Memory identifier. # noqa: E501
-
- :return: The memory_id of this SegmentParameters. # noqa: E501
- :rtype: int
- """
- return self._memory_id
-
- @memory_id.setter
- def memory_id(self, memory_id):
- """Sets the memory_id of this SegmentParameters.
-
- A unique Memory identifier. # noqa: E501
-
- :param memory_id: The memory_id of this SegmentParameters. # noqa: E501
- :type: int
- """
-
- self._memory_id = memory_id
-
- @property
- def document_id(self):
- """Gets the document_id of this SegmentParameters. # noqa: E501
-
- A unique Document identifier. # noqa: E501
-
- :return: The document_id of this SegmentParameters. # noqa: E501
- :rtype: int
- """
- return self._document_id
-
- @document_id.setter
- def document_id(self, document_id):
- """Sets the document_id of this SegmentParameters.
-
- A unique Document identifier. # noqa: E501
-
- :param document_id: The document_id of this SegmentParameters. # noqa: E501
- :type: int
- """
-
- self._document_id = document_id
-
- @property
- def source(self):
- """Gets the source of this SegmentParameters. # noqa: E501
-
- The source string. # noqa: E501
-
- :return: The source of this SegmentParameters. # noqa: E501
- :rtype: str
- """
- return self._source
-
- @source.setter
- def source(self, source):
- """Sets the source of this SegmentParameters.
-
- The source string. # noqa: E501
-
- :param source: The source of this SegmentParameters. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and source is None: # noqa: E501
- raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501
-
- self._source = source
-
- @property
- def target(self):
- """Gets the target of this SegmentParameters. # noqa: E501
-
- The target string. # noqa: E501
-
- :return: The target of this SegmentParameters. # noqa: E501
- :rtype: str
- """
- return self._target
-
- @target.setter
- def target(self, target):
- """Sets the target of this SegmentParameters.
-
- The target string. # noqa: E501
-
- :param target: The target of this SegmentParameters. # noqa: E501
- :type: str
- """
-
- self._target = target
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, SegmentParameters):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, SegmentParameters):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/segment_update_parameters.py b/lilt/models/segment_update_parameters.py
index 85e3e59..a701fa3 100644
--- a/lilt/models/segment_update_parameters.py
+++ b/lilt/models/segment_update_parameters.py
@@ -1,153 +1,89 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+from __future__ import annotations
import pprint
import re # noqa: F401
+import json
-import six
-
-from lilt.configuration import Configuration
-
-
-class SegmentUpdateParameters(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+class SegmentUpdateParameters(BaseModel):
"""
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int',
- 'target': 'str'
- }
-
- attribute_map = {
- 'id': 'id',
- 'target': 'target'
- }
-
- def __init__(self, id=None, target=None, local_vars_configuration=None): # noqa: E501
- """SegmentUpdateParameters - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._target = None
- self.discriminator = None
-
- self.id = id
- self.target = target
-
- @property
- def id(self):
- """Gets the id of this SegmentUpdateParameters. # noqa: E501
-
- A unique Segment identifier. # noqa: E501
-
- :return: The id of this SegmentUpdateParameters. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this SegmentUpdateParameters.
-
- A unique Segment identifier. # noqa: E501
-
- :param id: The id of this SegmentUpdateParameters. # noqa: E501
- :type: int
+ SegmentUpdateParameters
+ """ # noqa: E501
+ id: StrictInt = Field(description="A unique Segment identifier.")
+ target: StrictStr = Field(description="The target string.")
+ __properties: ClassVar[List[str]] = ["id", "target"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of SegmentUpdateParameters from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
"""
- if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
- raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
+ excluded_fields: Set[str] = set([
+ ])
- self._id = id
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
- @property
- def target(self):
- """Gets the target of this SegmentUpdateParameters. # noqa: E501
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of SegmentUpdateParameters from a dict"""
+ if obj is None:
+ return None
- The target string. # noqa: E501
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
- :return: The target of this SegmentUpdateParameters. # noqa: E501
- :rtype: str
- """
- return self._target
-
- @target.setter
- def target(self, target):
- """Sets the target of this SegmentUpdateParameters.
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "target": obj.get("target")
+ })
+ return _obj
- The target string. # noqa: E501
- :param target: The target of this SegmentUpdateParameters. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and target is None: # noqa: E501
- raise ValueError("Invalid value for `target`, must not be `None`") # noqa: E501
-
- self._target = target
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, SegmentUpdateParameters):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, SegmentUpdateParameters):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/segment_with_comments.py b/lilt/models/segment_with_comments.py
deleted file mode 100644
index 0f02cb8..0000000
--- a/lilt/models/segment_with_comments.py
+++ /dev/null
@@ -1,431 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class SegmentWithComments(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int',
- 'created_at': 'int',
- 'updated_at': 'int',
- 'document_id': 'int',
- 'memory_id': 'int',
- 'source': 'str',
- 'srclang': 'str',
- 'target': 'str',
- 'trglang': 'str',
- 'is_confirmed': 'bool',
- 'is_reviewed': 'bool',
- 'comments': 'list[Comment]'
- }
-
- attribute_map = {
- 'id': 'id',
- 'created_at': 'created_at',
- 'updated_at': 'updated_at',
- 'document_id': 'document_id',
- 'memory_id': 'memory_id',
- 'source': 'source',
- 'srclang': 'srclang',
- 'target': 'target',
- 'trglang': 'trglang',
- 'is_confirmed': 'is_confirmed',
- 'is_reviewed': 'is_reviewed',
- 'comments': 'comments'
- }
-
- def __init__(self, id=None, created_at=None, updated_at=None, document_id=None, memory_id=None, source=None, srclang=None, target=None, trglang=None, is_confirmed=None, is_reviewed=None, comments=None, local_vars_configuration=None): # noqa: E501
- """SegmentWithComments - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._created_at = None
- self._updated_at = None
- self._document_id = None
- self._memory_id = None
- self._source = None
- self._srclang = None
- self._target = None
- self._trglang = None
- self._is_confirmed = None
- self._is_reviewed = None
- self._comments = None
- self.discriminator = None
-
- if id is not None:
- self.id = id
- if created_at is not None:
- self.created_at = created_at
- if updated_at is not None:
- self.updated_at = updated_at
- if document_id is not None:
- self.document_id = document_id
- if memory_id is not None:
- self.memory_id = memory_id
- if source is not None:
- self.source = source
- if srclang is not None:
- self.srclang = srclang
- if target is not None:
- self.target = target
- if trglang is not None:
- self.trglang = trglang
- if is_confirmed is not None:
- self.is_confirmed = is_confirmed
- if is_reviewed is not None:
- self.is_reviewed = is_reviewed
- if comments is not None:
- self.comments = comments
-
- @property
- def id(self):
- """Gets the id of this SegmentWithComments. # noqa: E501
-
- A unique number identifying the Segment. # noqa: E501
-
- :return: The id of this SegmentWithComments. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this SegmentWithComments.
-
- A unique number identifying the Segment. # noqa: E501
-
- :param id: The id of this SegmentWithComments. # noqa: E501
- :type: int
- """
-
- self._id = id
-
- @property
- def created_at(self):
- """Gets the created_at of this SegmentWithComments. # noqa: E501
-
- Time at which the object was created. Measured in seconds since the Unix epoch. # noqa: E501
-
- :return: The created_at of this SegmentWithComments. # noqa: E501
- :rtype: int
- """
- return self._created_at
-
- @created_at.setter
- def created_at(self, created_at):
- """Sets the created_at of this SegmentWithComments.
-
- Time at which the object was created. Measured in seconds since the Unix epoch. # noqa: E501
-
- :param created_at: The created_at of this SegmentWithComments. # noqa: E501
- :type: int
- """
-
- self._created_at = created_at
-
- @property
- def updated_at(self):
- """Gets the updated_at of this SegmentWithComments. # noqa: E501
-
- Time at which the object was created. Measured in seconds since the Unix epoch. # noqa: E501
-
- :return: The updated_at of this SegmentWithComments. # noqa: E501
- :rtype: int
- """
- return self._updated_at
-
- @updated_at.setter
- def updated_at(self, updated_at):
- """Sets the updated_at of this SegmentWithComments.
-
- Time at which the object was created. Measured in seconds since the Unix epoch. # noqa: E501
-
- :param updated_at: The updated_at of this SegmentWithComments. # noqa: E501
- :type: int
- """
-
- self._updated_at = updated_at
-
- @property
- def document_id(self):
- """Gets the document_id of this SegmentWithComments. # noqa: E501
-
- A unique Document identifier. # noqa: E501
-
- :return: The document_id of this SegmentWithComments. # noqa: E501
- :rtype: int
- """
- return self._document_id
-
- @document_id.setter
- def document_id(self, document_id):
- """Sets the document_id of this SegmentWithComments.
-
- A unique Document identifier. # noqa: E501
-
- :param document_id: The document_id of this SegmentWithComments. # noqa: E501
- :type: int
- """
-
- self._document_id = document_id
-
- @property
- def memory_id(self):
- """Gets the memory_id of this SegmentWithComments. # noqa: E501
-
- The Memory with which this Segment is associated. # noqa: E501
-
- :return: The memory_id of this SegmentWithComments. # noqa: E501
- :rtype: int
- """
- return self._memory_id
-
- @memory_id.setter
- def memory_id(self, memory_id):
- """Sets the memory_id of this SegmentWithComments.
-
- The Memory with which this Segment is associated. # noqa: E501
-
- :param memory_id: The memory_id of this SegmentWithComments. # noqa: E501
- :type: int
- """
-
- self._memory_id = memory_id
-
- @property
- def source(self):
- """Gets the source of this SegmentWithComments. # noqa: E501
-
- The source string. # noqa: E501
-
- :return: The source of this SegmentWithComments. # noqa: E501
- :rtype: str
- """
- return self._source
-
- @source.setter
- def source(self, source):
- """Sets the source of this SegmentWithComments.
-
- The source string. # noqa: E501
-
- :param source: The source of this SegmentWithComments. # noqa: E501
- :type: str
- """
-
- self._source = source
-
- @property
- def srclang(self):
- """Gets the srclang of this SegmentWithComments. # noqa: E501
-
- An ISO 639-1 language code. # noqa: E501
-
- :return: The srclang of this SegmentWithComments. # noqa: E501
- :rtype: str
- """
- return self._srclang
-
- @srclang.setter
- def srclang(self, srclang):
- """Sets the srclang of this SegmentWithComments.
-
- An ISO 639-1 language code. # noqa: E501
-
- :param srclang: The srclang of this SegmentWithComments. # noqa: E501
- :type: str
- """
-
- self._srclang = srclang
-
- @property
- def target(self):
- """Gets the target of this SegmentWithComments. # noqa: E501
-
- The target string. # noqa: E501
-
- :return: The target of this SegmentWithComments. # noqa: E501
- :rtype: str
- """
- return self._target
-
- @target.setter
- def target(self, target):
- """Sets the target of this SegmentWithComments.
-
- The target string. # noqa: E501
-
- :param target: The target of this SegmentWithComments. # noqa: E501
- :type: str
- """
-
- self._target = target
-
- @property
- def trglang(self):
- """Gets the trglang of this SegmentWithComments. # noqa: E501
-
- An ISO 639-1 language code. # noqa: E501
-
- :return: The trglang of this SegmentWithComments. # noqa: E501
- :rtype: str
- """
- return self._trglang
-
- @trglang.setter
- def trglang(self, trglang):
- """Sets the trglang of this SegmentWithComments.
-
- An ISO 639-1 language code. # noqa: E501
-
- :param trglang: The trglang of this SegmentWithComments. # noqa: E501
- :type: str
- """
-
- self._trglang = trglang
-
- @property
- def is_confirmed(self):
- """Gets the is_confirmed of this SegmentWithComments. # noqa: E501
-
- The confirmation status. # noqa: E501
-
- :return: The is_confirmed of this SegmentWithComments. # noqa: E501
- :rtype: bool
- """
- return self._is_confirmed
-
- @is_confirmed.setter
- def is_confirmed(self, is_confirmed):
- """Sets the is_confirmed of this SegmentWithComments.
-
- The confirmation status. # noqa: E501
-
- :param is_confirmed: The is_confirmed of this SegmentWithComments. # noqa: E501
- :type: bool
- """
-
- self._is_confirmed = is_confirmed
-
- @property
- def is_reviewed(self):
- """Gets the is_reviewed of this SegmentWithComments. # noqa: E501
-
- The review status. # noqa: E501
-
- :return: The is_reviewed of this SegmentWithComments. # noqa: E501
- :rtype: bool
- """
- return self._is_reviewed
-
- @is_reviewed.setter
- def is_reviewed(self, is_reviewed):
- """Sets the is_reviewed of this SegmentWithComments.
-
- The review status. # noqa: E501
-
- :param is_reviewed: The is_reviewed of this SegmentWithComments. # noqa: E501
- :type: bool
- """
-
- self._is_reviewed = is_reviewed
-
- @property
- def comments(self):
- """Gets the comments of this SegmentWithComments. # noqa: E501
-
- A list of Comments. # noqa: E501
-
- :return: The comments of this SegmentWithComments. # noqa: E501
- :rtype: list[Comment]
- """
- return self._comments
-
- @comments.setter
- def comments(self, comments):
- """Sets the comments of this SegmentWithComments.
-
- A list of Comments. # noqa: E501
-
- :param comments: The comments of this SegmentWithComments. # noqa: E501
- :type: list[Comment]
- """
-
- self._comments = comments
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, SegmentWithComments):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, SegmentWithComments):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/set_document_stage_request.py b/lilt/models/set_document_stage_request.py
deleted file mode 100644
index 058db31..0000000
--- a/lilt/models/set_document_stage_request.py
+++ /dev/null
@@ -1,123 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class SetDocumentStageRequest(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'workflow_stage_id': 'str'
- }
-
- attribute_map = {
- 'workflow_stage_id': 'workflowStageId'
- }
-
- def __init__(self, workflow_stage_id=None, local_vars_configuration=None): # noqa: E501
- """SetDocumentStageRequest - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._workflow_stage_id = None
- self.discriminator = None
-
- if workflow_stage_id is not None:
- self.workflow_stage_id = workflow_stage_id
-
- @property
- def workflow_stage_id(self):
- """Gets the workflow_stage_id of this SetDocumentStageRequest. # noqa: E501
-
- A workflow stage id. Can be found in \"Retrieve document Workflow metadata\" endpoint. To set the document stage to 'Done', pass through an empty request body. # noqa: E501
-
- :return: The workflow_stage_id of this SetDocumentStageRequest. # noqa: E501
- :rtype: str
- """
- return self._workflow_stage_id
-
- @workflow_stage_id.setter
- def workflow_stage_id(self, workflow_stage_id):
- """Sets the workflow_stage_id of this SetDocumentStageRequest.
-
- A workflow stage id. Can be found in \"Retrieve document Workflow metadata\" endpoint. To set the document stage to 'Done', pass through an empty request body. # noqa: E501
-
- :param workflow_stage_id: The workflow_stage_id of this SetDocumentStageRequest. # noqa: E501
- :type: str
- """
-
- self._workflow_stage_id = workflow_stage_id
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, SetDocumentStageRequest):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, SetDocumentStageRequest):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/setting.py b/lilt/models/setting.py
deleted file mode 100644
index 0fd981e..0000000
--- a/lilt/models/setting.py
+++ /dev/null
@@ -1,235 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class Setting(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int',
- 'name': 'str',
- 'value_type': 'str',
- 'is_user_facing': 'bool',
- 'is_default': 'bool'
- }
-
- attribute_map = {
- 'id': 'id',
- 'name': 'name',
- 'value_type': 'valueType',
- 'is_user_facing': 'isUserFacing',
- 'is_default': 'isDefault'
- }
-
- def __init__(self, id=None, name=None, value_type=None, is_user_facing=None, is_default=None, local_vars_configuration=None): # noqa: E501
- """Setting - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._name = None
- self._value_type = None
- self._is_user_facing = None
- self._is_default = None
- self.discriminator = None
-
- if id is not None:
- self.id = id
- if name is not None:
- self.name = name
- if value_type is not None:
- self.value_type = value_type
- if is_user_facing is not None:
- self.is_user_facing = is_user_facing
- if is_default is not None:
- self.is_default = is_default
-
- @property
- def id(self):
- """Gets the id of this Setting. # noqa: E501
-
- The identifier of the setting. # noqa: E501
-
- :return: The id of this Setting. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this Setting.
-
- The identifier of the setting. # noqa: E501
-
- :param id: The id of this Setting. # noqa: E501
- :type: int
- """
-
- self._id = id
-
- @property
- def name(self):
- """Gets the name of this Setting. # noqa: E501
-
- The name of the setting. # noqa: E501
-
- :return: The name of this Setting. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this Setting.
-
- The name of the setting. # noqa: E501
-
- :param name: The name of this Setting. # noqa: E501
- :type: str
- """
-
- self._name = name
-
- @property
- def value_type(self):
- """Gets the value_type of this Setting. # noqa: E501
-
- the type of value the setting may have - Boolean, Json, Number, String. # noqa: E501
-
- :return: The value_type of this Setting. # noqa: E501
- :rtype: str
- """
- return self._value_type
-
- @value_type.setter
- def value_type(self, value_type):
- """Sets the value_type of this Setting.
-
- the type of value the setting may have - Boolean, Json, Number, String. # noqa: E501
-
- :param value_type: The value_type of this Setting. # noqa: E501
- :type: str
- """
-
- self._value_type = value_type
-
- @property
- def is_user_facing(self):
- """Gets the is_user_facing of this Setting. # noqa: E501
-
- Whether the setting is editable by the user. # noqa: E501
-
- :return: The is_user_facing of this Setting. # noqa: E501
- :rtype: bool
- """
- return self._is_user_facing
-
- @is_user_facing.setter
- def is_user_facing(self, is_user_facing):
- """Sets the is_user_facing of this Setting.
-
- Whether the setting is editable by the user. # noqa: E501
-
- :param is_user_facing: The is_user_facing of this Setting. # noqa: E501
- :type: bool
- """
-
- self._is_user_facing = is_user_facing
-
- @property
- def is_default(self):
- """Gets the is_default of this Setting. # noqa: E501
-
- True when the setting value is inherited from the default setting. # noqa: E501
-
- :return: The is_default of this Setting. # noqa: E501
- :rtype: bool
- """
- return self._is_default
-
- @is_default.setter
- def is_default(self, is_default):
- """Sets the is_default of this Setting.
-
- True when the setting value is inherited from the default setting. # noqa: E501
-
- :param is_default: The is_default of this Setting. # noqa: E501
- :type: bool
- """
-
- self._is_default = is_default
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, Setting):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, Setting):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/setting_dictionary.py b/lilt/models/setting_dictionary.py
deleted file mode 100644
index b61b887..0000000
--- a/lilt/models/setting_dictionary.py
+++ /dev/null
@@ -1,235 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class SettingDictionary(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int',
- 'name': 'str',
- 'value_type': 'str',
- 'is_user_facing': 'bool',
- 'is_default': 'bool'
- }
-
- attribute_map = {
- 'id': 'id',
- 'name': 'name',
- 'value_type': 'valueType',
- 'is_user_facing': 'isUserFacing',
- 'is_default': 'isDefault'
- }
-
- def __init__(self, id=None, name=None, value_type=None, is_user_facing=None, is_default=None, local_vars_configuration=None): # noqa: E501
- """SettingDictionary - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._name = None
- self._value_type = None
- self._is_user_facing = None
- self._is_default = None
- self.discriminator = None
-
- if id is not None:
- self.id = id
- if name is not None:
- self.name = name
- if value_type is not None:
- self.value_type = value_type
- if is_user_facing is not None:
- self.is_user_facing = is_user_facing
- if is_default is not None:
- self.is_default = is_default
-
- @property
- def id(self):
- """Gets the id of this SettingDictionary. # noqa: E501
-
- The identifier of the setting. # noqa: E501
-
- :return: The id of this SettingDictionary. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this SettingDictionary.
-
- The identifier of the setting. # noqa: E501
-
- :param id: The id of this SettingDictionary. # noqa: E501
- :type: int
- """
-
- self._id = id
-
- @property
- def name(self):
- """Gets the name of this SettingDictionary. # noqa: E501
-
- The name of the setting. # noqa: E501
-
- :return: The name of this SettingDictionary. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this SettingDictionary.
-
- The name of the setting. # noqa: E501
-
- :param name: The name of this SettingDictionary. # noqa: E501
- :type: str
- """
-
- self._name = name
-
- @property
- def value_type(self):
- """Gets the value_type of this SettingDictionary. # noqa: E501
-
- the type of value the setting may have - Boolean, Json, Number, String. # noqa: E501
-
- :return: The value_type of this SettingDictionary. # noqa: E501
- :rtype: str
- """
- return self._value_type
-
- @value_type.setter
- def value_type(self, value_type):
- """Sets the value_type of this SettingDictionary.
-
- the type of value the setting may have - Boolean, Json, Number, String. # noqa: E501
-
- :param value_type: The value_type of this SettingDictionary. # noqa: E501
- :type: str
- """
-
- self._value_type = value_type
-
- @property
- def is_user_facing(self):
- """Gets the is_user_facing of this SettingDictionary. # noqa: E501
-
- Whether the setting is editable by the user. # noqa: E501
-
- :return: The is_user_facing of this SettingDictionary. # noqa: E501
- :rtype: bool
- """
- return self._is_user_facing
-
- @is_user_facing.setter
- def is_user_facing(self, is_user_facing):
- """Sets the is_user_facing of this SettingDictionary.
-
- Whether the setting is editable by the user. # noqa: E501
-
- :param is_user_facing: The is_user_facing of this SettingDictionary. # noqa: E501
- :type: bool
- """
-
- self._is_user_facing = is_user_facing
-
- @property
- def is_default(self):
- """Gets the is_default of this SettingDictionary. # noqa: E501
-
- True when the setting value is inherited from the default setting. # noqa: E501
-
- :return: The is_default of this SettingDictionary. # noqa: E501
- :rtype: bool
- """
- return self._is_default
-
- @is_default.setter
- def is_default(self, is_default):
- """Sets the is_default of this SettingDictionary.
-
- True when the setting value is inherited from the default setting. # noqa: E501
-
- :param is_default: The is_default of this SettingDictionary. # noqa: E501
- :type: bool
- """
-
- self._is_default = is_default
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, SettingDictionary):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, SettingDictionary):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/setting_upsert_body.py b/lilt/models/setting_upsert_body.py
deleted file mode 100644
index 241c458..0000000
--- a/lilt/models/setting_upsert_body.py
+++ /dev/null
@@ -1,237 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class SettingUpsertBody(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'setting_name': 'str',
- 'scope': 'str',
- 'is_enforced': 'bool',
- 'project_id': 'float',
- 'organization_id': 'float'
- }
-
- attribute_map = {
- 'setting_name': 'settingName',
- 'scope': 'scope',
- 'is_enforced': 'isEnforced',
- 'project_id': 'projectId',
- 'organization_id': 'organizationId'
- }
-
- def __init__(self, setting_name=None, scope=None, is_enforced=None, project_id=None, organization_id=None, local_vars_configuration=None): # noqa: E501
- """SettingUpsertBody - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._setting_name = None
- self._scope = None
- self._is_enforced = None
- self._project_id = None
- self._organization_id = None
- self.discriminator = None
-
- self.setting_name = setting_name
- self.scope = scope
- if is_enforced is not None:
- self.is_enforced = is_enforced
- if project_id is not None:
- self.project_id = project_id
- if organization_id is not None:
- self.organization_id = organization_id
-
- @property
- def setting_name(self):
- """Gets the setting_name of this SettingUpsertBody. # noqa: E501
-
- The name of the setting. # noqa: E501
-
- :return: The setting_name of this SettingUpsertBody. # noqa: E501
- :rtype: str
- """
- return self._setting_name
-
- @setting_name.setter
- def setting_name(self, setting_name):
- """Sets the setting_name of this SettingUpsertBody.
-
- The name of the setting. # noqa: E501
-
- :param setting_name: The setting_name of this SettingUpsertBody. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and setting_name is None: # noqa: E501
- raise ValueError("Invalid value for `setting_name`, must not be `None`") # noqa: E501
-
- self._setting_name = setting_name
-
- @property
- def scope(self):
- """Gets the scope of this SettingUpsertBody. # noqa: E501
-
- The entity scope the setting should be applied to. # noqa: E501
-
- :return: The scope of this SettingUpsertBody. # noqa: E501
- :rtype: str
- """
- return self._scope
-
- @scope.setter
- def scope(self, scope):
- """Sets the scope of this SettingUpsertBody.
-
- The entity scope the setting should be applied to. # noqa: E501
-
- :param scope: The scope of this SettingUpsertBody. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and scope is None: # noqa: E501
- raise ValueError("Invalid value for `scope`, must not be `None`") # noqa: E501
-
- self._scope = scope
-
- @property
- def is_enforced(self):
- """Gets the is_enforced of this SettingUpsertBody. # noqa: E501
-
- Whether this value should override others set for the same setting key. # noqa: E501
-
- :return: The is_enforced of this SettingUpsertBody. # noqa: E501
- :rtype: bool
- """
- return self._is_enforced
-
- @is_enforced.setter
- def is_enforced(self, is_enforced):
- """Sets the is_enforced of this SettingUpsertBody.
-
- Whether this value should override others set for the same setting key. # noqa: E501
-
- :param is_enforced: The is_enforced of this SettingUpsertBody. # noqa: E501
- :type: bool
- """
-
- self._is_enforced = is_enforced
-
- @property
- def project_id(self):
- """Gets the project_id of this SettingUpsertBody. # noqa: E501
-
- Id of the the project the setting will be applied to. Required when scope is `Project`. # noqa: E501
-
- :return: The project_id of this SettingUpsertBody. # noqa: E501
- :rtype: float
- """
- return self._project_id
-
- @project_id.setter
- def project_id(self, project_id):
- """Sets the project_id of this SettingUpsertBody.
-
- Id of the the project the setting will be applied to. Required when scope is `Project`. # noqa: E501
-
- :param project_id: The project_id of this SettingUpsertBody. # noqa: E501
- :type: float
- """
-
- self._project_id = project_id
-
- @property
- def organization_id(self):
- """Gets the organization_id of this SettingUpsertBody. # noqa: E501
-
- Id of the the project the setting will be applied to. Required when scope is `Organization`. # noqa: E501
-
- :return: The organization_id of this SettingUpsertBody. # noqa: E501
- :rtype: float
- """
- return self._organization_id
-
- @organization_id.setter
- def organization_id(self, organization_id):
- """Sets the organization_id of this SettingUpsertBody.
-
- Id of the the project the setting will be applied to. Required when scope is `Organization`. # noqa: E501
-
- :param organization_id: The organization_id of this SettingUpsertBody. # noqa: E501
- :type: float
- """
-
- self._organization_id = organization_id
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, SettingUpsertBody):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, SettingUpsertBody):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/setting_upsert_response.py b/lilt/models/setting_upsert_response.py
deleted file mode 100644
index 947f0c9..0000000
--- a/lilt/models/setting_upsert_response.py
+++ /dev/null
@@ -1,149 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class SettingUpsertResponse(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'scoped_setting': 'Setting',
- 'active_settings': 'dict(str, Setting)'
- }
-
- attribute_map = {
- 'scoped_setting': 'scopedSetting',
- 'active_settings': 'activeSettings'
- }
-
- def __init__(self, scoped_setting=None, active_settings=None, local_vars_configuration=None): # noqa: E501
- """SettingUpsertResponse - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._scoped_setting = None
- self._active_settings = None
- self.discriminator = None
-
- if scoped_setting is not None:
- self.scoped_setting = scoped_setting
- if active_settings is not None:
- self.active_settings = active_settings
-
- @property
- def scoped_setting(self):
- """Gets the scoped_setting of this SettingUpsertResponse. # noqa: E501
-
-
- :return: The scoped_setting of this SettingUpsertResponse. # noqa: E501
- :rtype: Setting
- """
- return self._scoped_setting
-
- @scoped_setting.setter
- def scoped_setting(self, scoped_setting):
- """Sets the scoped_setting of this SettingUpsertResponse.
-
-
- :param scoped_setting: The scoped_setting of this SettingUpsertResponse. # noqa: E501
- :type: Setting
- """
-
- self._scoped_setting = scoped_setting
-
- @property
- def active_settings(self):
- """Gets the active_settings of this SettingUpsertResponse. # noqa: E501
-
- A dictionary of configuration settings, keyed by setting name # noqa: E501
-
- :return: The active_settings of this SettingUpsertResponse. # noqa: E501
- :rtype: dict(str, Setting)
- """
- return self._active_settings
-
- @active_settings.setter
- def active_settings(self, active_settings):
- """Sets the active_settings of this SettingUpsertResponse.
-
- A dictionary of configuration settings, keyed by setting name # noqa: E501
-
- :param active_settings: The active_settings of this SettingUpsertResponse. # noqa: E501
- :type: dict(str, Setting)
- """
-
- self._active_settings = active_settings
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, SettingUpsertResponse):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, SettingUpsertResponse):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/sign_lilt_create_terms_response.py b/lilt/models/sign_lilt_create_terms_response.py
index cd71396..6b2434d 100644
--- a/lilt/models/sign_lilt_create_terms_response.py
+++ b/lilt/models/sign_lilt_create_terms_response.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/sign_upload_part200_response.py b/lilt/models/sign_upload_part200_response.py
new file mode 100644
index 0000000..b8b4bb8
--- /dev/null
+++ b/lilt/models/sign_upload_part200_response.py
@@ -0,0 +1,89 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class SignUploadPart200Response(BaseModel):
+ """
+ SignUploadPart200Response
+ """ # noqa: E501
+ url: Optional[StrictStr] = Field(default=None, description="Pre-signed URL for this part upload")
+ method: Optional[StrictStr] = Field(default=None, description="HTTP method to use for upload")
+ __properties: ClassVar[List[str]] = ["url", "method"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of SignUploadPart200Response from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of SignUploadPart200Response from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "url": obj.get("url"),
+ "method": obj.get("method")
+ })
+ return _obj
+
+
diff --git a/lilt/models/source_file.py b/lilt/models/source_file.py
index 2f13e17..eb488ae 100644
--- a/lilt/models/source_file.py
+++ b/lilt/models/source_file.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/tagged_segment.py b/lilt/models/tagged_segment.py
index f691e96..cd95e28 100644
--- a/lilt/models/tagged_segment.py
+++ b/lilt/models/tagged_segment.py
@@ -1,151 +1,89 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+from __future__ import annotations
import pprint
import re # noqa: F401
+import json
-import six
-
-from lilt.configuration import Configuration
-
-
-class TaggedSegment(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+class TaggedSegment(BaseModel):
"""
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'source_tagged': 'str',
- 'target_tagged': 'str'
- }
-
- attribute_map = {
- 'source_tagged': 'source_tagged',
- 'target_tagged': 'target_tagged'
- }
-
- def __init__(self, source_tagged=None, target_tagged=None, local_vars_configuration=None): # noqa: E501
- """TaggedSegment - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._source_tagged = None
- self._target_tagged = None
- self.discriminator = None
-
- if source_tagged is not None:
- self.source_tagged = source_tagged
- if target_tagged is not None:
- self.target_tagged = target_tagged
-
- @property
- def source_tagged(self):
- """Gets the source_tagged of this TaggedSegment. # noqa: E501
-
- The tagged source string. # noqa: E501
-
- :return: The source_tagged of this TaggedSegment. # noqa: E501
- :rtype: str
+ TaggedSegment
+ """ # noqa: E501
+ source_tagged: Optional[StrictStr] = Field(default=None, description="The tagged source string.")
+ target_tagged: Optional[StrictStr] = Field(default=None, description="The tagged target string.")
+ __properties: ClassVar[List[str]] = ["source_tagged", "target_tagged"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of TaggedSegment from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
"""
- return self._source_tagged
-
- @source_tagged.setter
- def source_tagged(self, source_tagged):
- """Sets the source_tagged of this TaggedSegment.
+ excluded_fields: Set[str] = set([
+ ])
- The tagged source string. # noqa: E501
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
- :param source_tagged: The source_tagged of this TaggedSegment. # noqa: E501
- :type: str
- """
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of TaggedSegment from a dict"""
+ if obj is None:
+ return None
- self._source_tagged = source_tagged
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
- @property
- def target_tagged(self):
- """Gets the target_tagged of this TaggedSegment. # noqa: E501
+ _obj = cls.model_validate({
+ "source_tagged": obj.get("source_tagged"),
+ "target_tagged": obj.get("target_tagged")
+ })
+ return _obj
- The tagged target string. # noqa: E501
-
- :return: The target_tagged of this TaggedSegment. # noqa: E501
- :rtype: str
- """
- return self._target_tagged
-
- @target_tagged.setter
- def target_tagged(self, target_tagged):
- """Sets the target_tagged of this TaggedSegment.
-
- The tagged target string. # noqa: E501
-
- :param target_tagged: The target_tagged of this TaggedSegment. # noqa: E501
- :type: str
- """
- self._target_tagged = target_tagged
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, TaggedSegment):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, TaggedSegment):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/termbase_export_response.py b/lilt/models/termbase_export_response.py
index 4ffae4b..690546b 100644
--- a/lilt/models/termbase_export_response.py
+++ b/lilt/models/termbase_export_response.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/translate_completion_type_error.py b/lilt/models/translate_completion_type_error.py
deleted file mode 100644
index 9fe282b..0000000
--- a/lilt/models/translate_completion_type_error.py
+++ /dev/null
@@ -1,123 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class TranslateCompletionTypeError(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'message': 'object'
- }
-
- attribute_map = {
- 'message': 'message'
- }
-
- def __init__(self, message=None, local_vars_configuration=None): # noqa: E501
- """TranslateCompletionTypeError - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._message = None
- self.discriminator = None
-
- if message is not None:
- self.message = message
-
- @property
- def message(self):
- """Gets the message of this TranslateCompletionTypeError. # noqa: E501
-
- A human-readable message describing the error. # noqa: E501
-
- :return: The message of this TranslateCompletionTypeError. # noqa: E501
- :rtype: object
- """
- return self._message
-
- @message.setter
- def message(self, message):
- """Sets the message of this TranslateCompletionTypeError.
-
- A human-readable message describing the error. # noqa: E501
-
- :param message: The message of this TranslateCompletionTypeError. # noqa: E501
- :type: object
- """
-
- self._message = message
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, TranslateCompletionTypeError):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, TranslateCompletionTypeError):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/translate_register_response.py b/lilt/models/translate_register_response.py
deleted file mode 100644
index 0d50aad..0000000
--- a/lilt/models/translate_register_response.py
+++ /dev/null
@@ -1,151 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class TranslateRegisterResponse(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'source_hash': 'int',
- 'num_words': 'int'
- }
-
- attribute_map = {
- 'source_hash': 'source_hash',
- 'num_words': 'num_words'
- }
-
- def __init__(self, source_hash=None, num_words=None, local_vars_configuration=None): # noqa: E501
- """TranslateRegisterResponse - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._source_hash = None
- self._num_words = None
- self.discriminator = None
-
- if source_hash is not None:
- self.source_hash = source_hash
- if num_words is not None:
- self.num_words = num_words
-
- @property
- def source_hash(self):
- """Gets the source_hash of this TranslateRegisterResponse. # noqa: E501
-
- A unique source token required by the `prefix` parameter for translation requests. # noqa: E501
-
- :return: The source_hash of this TranslateRegisterResponse. # noqa: E501
- :rtype: int
- """
- return self._source_hash
-
- @source_hash.setter
- def source_hash(self, source_hash):
- """Sets the source_hash of this TranslateRegisterResponse.
-
- A unique source token required by the `prefix` parameter for translation requests. # noqa: E501
-
- :param source_hash: The source_hash of this TranslateRegisterResponse. # noqa: E501
- :type: int
- """
-
- self._source_hash = source_hash
-
- @property
- def num_words(self):
- """Gets the num_words of this TranslateRegisterResponse. # noqa: E501
-
- The number of billed words in the segment. # noqa: E501
-
- :return: The num_words of this TranslateRegisterResponse. # noqa: E501
- :rtype: int
- """
- return self._num_words
-
- @num_words.setter
- def num_words(self, num_words):
- """Sets the num_words of this TranslateRegisterResponse.
-
- The number of billed words in the segment. # noqa: E501
-
- :param num_words: The num_words of this TranslateRegisterResponse. # noqa: E501
- :type: int
- """
-
- self._num_words = num_words
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, TranslateRegisterResponse):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, TranslateRegisterResponse):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/translate_segment_body.py b/lilt/models/translate_segment_body.py
index fc8cb14..b40508d 100644
--- a/lilt/models/translate_segment_body.py
+++ b/lilt/models/translate_segment_body.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/translate_segment_body1.py b/lilt/models/translate_segment_body1.py
deleted file mode 100644
index d9fe9bf..0000000
--- a/lilt/models/translate_segment_body1.py
+++ /dev/null
@@ -1,320 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class TranslateSegmentBody1(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'source': 'str',
- 'memory_id': 'int',
- 'source_hash': 'int',
- 'n': 'int',
- 'prefix': 'str',
- 'rich': 'bool',
- 'tm_matches': 'bool',
- 'project_tags': 'bool'
- }
-
- attribute_map = {
- 'source': 'source',
- 'memory_id': 'memory_id',
- 'source_hash': 'source_hash',
- 'n': 'n',
- 'prefix': 'prefix',
- 'rich': 'rich',
- 'tm_matches': 'tm_matches',
- 'project_tags': 'project_tags'
- }
-
- def __init__(self, source=None, memory_id=None, source_hash=None, n=None, prefix=None, rich=False, tm_matches=True, project_tags=False, local_vars_configuration=None): # noqa: E501
- """TranslateSegmentBody1 - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._source = None
- self._memory_id = None
- self._source_hash = None
- self._n = None
- self._prefix = None
- self._rich = None
- self._tm_matches = None
- self._project_tags = None
- self.discriminator = None
-
- if source is not None:
- self.source = source
- self.memory_id = memory_id
- if source_hash is not None:
- self.source_hash = source_hash
- if n is not None:
- self.n = n
- if prefix is not None:
- self.prefix = prefix
- if rich is not None:
- self.rich = rich
- if tm_matches is not None:
- self.tm_matches = tm_matches
- if project_tags is not None:
- self.project_tags = project_tags
-
- @property
- def source(self):
- """Gets the source of this TranslateSegmentBody1. # noqa: E501
-
- A unique Segment identifier. # noqa: E501
-
- :return: The source of this TranslateSegmentBody1. # noqa: E501
- :rtype: str
- """
- return self._source
-
- @source.setter
- def source(self, source):
- """Sets the source of this TranslateSegmentBody1.
-
- A unique Segment identifier. # noqa: E501
-
- :param source: The source of this TranslateSegmentBody1. # noqa: E501
- :type: str
- """
-
- self._source = source
-
- @property
- def memory_id(self):
- """Gets the memory_id of this TranslateSegmentBody1. # noqa: E501
-
- A unique Memory identifier. # noqa: E501
-
- :return: The memory_id of this TranslateSegmentBody1. # noqa: E501
- :rtype: int
- """
- return self._memory_id
-
- @memory_id.setter
- def memory_id(self, memory_id):
- """Sets the memory_id of this TranslateSegmentBody1.
-
- A unique Memory identifier. # noqa: E501
-
- :param memory_id: The memory_id of this TranslateSegmentBody1. # noqa: E501
- :type: int
- """
- if self.local_vars_configuration.client_side_validation and memory_id is None: # noqa: E501
- raise ValueError("Invalid value for `memory_id`, must not be `None`") # noqa: E501
-
- self._memory_id = memory_id
-
- @property
- def source_hash(self):
- """Gets the source_hash of this TranslateSegmentBody1. # noqa: E501
-
- A source hash code. # noqa: E501
-
- :return: The source_hash of this TranslateSegmentBody1. # noqa: E501
- :rtype: int
- """
- return self._source_hash
-
- @source_hash.setter
- def source_hash(self, source_hash):
- """Sets the source_hash of this TranslateSegmentBody1.
-
- A source hash code. # noqa: E501
-
- :param source_hash: The source_hash of this TranslateSegmentBody1. # noqa: E501
- :type: int
- """
-
- self._source_hash = source_hash
-
- @property
- def n(self):
- """Gets the n of this TranslateSegmentBody1. # noqa: E501
-
- Return top n translations (deprecated). # noqa: E501
-
- :return: The n of this TranslateSegmentBody1. # noqa: E501
- :rtype: int
- """
- return self._n
-
- @n.setter
- def n(self, n):
- """Sets the n of this TranslateSegmentBody1.
-
- Return top n translations (deprecated). # noqa: E501
-
- :param n: The n of this TranslateSegmentBody1. # noqa: E501
- :type: int
- """
-
- self._n = n
-
- @property
- def prefix(self):
- """Gets the prefix of this TranslateSegmentBody1. # noqa: E501
-
- A target prefix # noqa: E501
-
- :return: The prefix of this TranslateSegmentBody1. # noqa: E501
- :rtype: str
- """
- return self._prefix
-
- @prefix.setter
- def prefix(self, prefix):
- """Sets the prefix of this TranslateSegmentBody1.
-
- A target prefix # noqa: E501
-
- :param prefix: The prefix of this TranslateSegmentBody1. # noqa: E501
- :type: str
- """
-
- self._prefix = prefix
-
- @property
- def rich(self):
- """Gets the rich of this TranslateSegmentBody1. # noqa: E501
-
- Returns rich translation information (e.g., with word alignments). # noqa: E501
-
- :return: The rich of this TranslateSegmentBody1. # noqa: E501
- :rtype: bool
- """
- return self._rich
-
- @rich.setter
- def rich(self, rich):
- """Sets the rich of this TranslateSegmentBody1.
-
- Returns rich translation information (e.g., with word alignments). # noqa: E501
-
- :param rich: The rich of this TranslateSegmentBody1. # noqa: E501
- :type: bool
- """
-
- self._rich = rich
-
- @property
- def tm_matches(self):
- """Gets the tm_matches of this TranslateSegmentBody1. # noqa: E501
-
- Include translation memory fuzzy matches. # noqa: E501
-
- :return: The tm_matches of this TranslateSegmentBody1. # noqa: E501
- :rtype: bool
- """
- return self._tm_matches
-
- @tm_matches.setter
- def tm_matches(self, tm_matches):
- """Sets the tm_matches of this TranslateSegmentBody1.
-
- Include translation memory fuzzy matches. # noqa: E501
-
- :param tm_matches: The tm_matches of this TranslateSegmentBody1. # noqa: E501
- :type: bool
- """
-
- self._tm_matches = tm_matches
-
- @property
- def project_tags(self):
- """Gets the project_tags of this TranslateSegmentBody1. # noqa: E501
-
- Project tags. Projects tags in source to target if set to true. # noqa: E501
-
- :return: The project_tags of this TranslateSegmentBody1. # noqa: E501
- :rtype: bool
- """
- return self._project_tags
-
- @project_tags.setter
- def project_tags(self, project_tags):
- """Sets the project_tags of this TranslateSegmentBody1.
-
- Project tags. Projects tags in source to target if set to true. # noqa: E501
-
- :param project_tags: The project_tags of this TranslateSegmentBody1. # noqa: E501
- :type: bool
- """
-
- self._project_tags = project_tags
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, TranslateSegmentBody1):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, TranslateSegmentBody1):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/translation.py b/lilt/models/translation.py
index 8734371..f71a1e6 100644
--- a/lilt/models/translation.py
+++ b/lilt/models/translation.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/translation_info.py b/lilt/models/translation_info.py
index 89f14c6..1d1c535 100644
--- a/lilt/models/translation_info.py
+++ b/lilt/models/translation_info.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/translation_list.py b/lilt/models/translation_list.py
index ff8dd1e..07df1c6 100644
--- a/lilt/models/translation_list.py
+++ b/lilt/models/translation_list.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/translation_memory_entry.py b/lilt/models/translation_memory_entry.py
index d92eb8e..5909b8b 100644
--- a/lilt/models/translation_memory_entry.py
+++ b/lilt/models/translation_memory_entry.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/webhook_response.py b/lilt/models/webhook_response.py
index d0619ca..f8eedea 100644
--- a/lilt/models/webhook_response.py
+++ b/lilt/models/webhook_response.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/webhooks_update_request.py b/lilt/models/webhooks_update_request.py
index 16175a2..86b2a08 100644
--- a/lilt/models/webhooks_update_request.py
+++ b/lilt/models/webhooks_update_request.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/webhooks_update_request_any_of.py b/lilt/models/webhooks_update_request_any_of.py
index 1b04527..3ea22e4 100644
--- a/lilt/models/webhooks_update_request_any_of.py
+++ b/lilt/models/webhooks_update_request_any_of.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/webhooks_update_request_any_of1.py b/lilt/models/webhooks_update_request_any_of1.py
index c02c379..06ff2e6 100644
--- a/lilt/models/webhooks_update_request_any_of1.py
+++ b/lilt/models/webhooks_update_request_any_of1.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/webhooks_update_request_any_of2.py b/lilt/models/webhooks_update_request_any_of2.py
index 81d2ddc..572955c 100644
--- a/lilt/models/webhooks_update_request_any_of2.py
+++ b/lilt/models/webhooks_update_request_any_of2.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/workflow_stage.py b/lilt/models/workflow_stage.py
deleted file mode 100644
index 3e070b5..0000000
--- a/lilt/models/workflow_stage.py
+++ /dev/null
@@ -1,215 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class WorkflowStage(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int',
- 'name': 'str',
- 'active': 'bool',
- 'assignment_type': 'str'
- }
-
- attribute_map = {
- 'id': 'id',
- 'name': 'name',
- 'active': 'active',
- 'assignment_type': 'assignmentType'
- }
-
- def __init__(self, id=None, name=None, active=None, assignment_type=None, local_vars_configuration=None): # noqa: E501
- """WorkflowStage - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._name = None
- self._active = None
- self._assignment_type = None
- self.discriminator = None
-
- if id is not None:
- self.id = id
- self.name = name
- if active is not None:
- self.active = active
- self.assignment_type = assignment_type
-
- @property
- def id(self):
- """Gets the id of this WorkflowStage. # noqa: E501
-
- Identifier of the stage. # noqa: E501
-
- :return: The id of this WorkflowStage. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this WorkflowStage.
-
- Identifier of the stage. # noqa: E501
-
- :param id: The id of this WorkflowStage. # noqa: E501
- :type: int
- """
-
- self._id = id
-
- @property
- def name(self):
- """Gets the name of this WorkflowStage. # noqa: E501
-
- Name of the stage. # noqa: E501
-
- :return: The name of this WorkflowStage. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this WorkflowStage.
-
- Name of the stage. # noqa: E501
-
- :param name: The name of this WorkflowStage. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
- raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
-
- self._name = name
-
- @property
- def active(self):
- """Gets the active of this WorkflowStage. # noqa: E501
-
- Flag which is set to true when the stage is active for a document. # noqa: E501
-
- :return: The active of this WorkflowStage. # noqa: E501
- :rtype: bool
- """
- return self._active
-
- @active.setter
- def active(self, active):
- """Sets the active of this WorkflowStage.
-
- Flag which is set to true when the stage is active for a document. # noqa: E501
-
- :param active: The active of this WorkflowStage. # noqa: E501
- :type: bool
- """
-
- self._active = active
-
- @property
- def assignment_type(self):
- """Gets the assignment_type of this WorkflowStage. # noqa: E501
-
- An enum to represent all possible types of Workflow stage. # noqa: E501
-
- :return: The assignment_type of this WorkflowStage. # noqa: E501
- :rtype: str
- """
- return self._assignment_type
-
- @assignment_type.setter
- def assignment_type(self, assignment_type):
- """Sets the assignment_type of this WorkflowStage.
-
- An enum to represent all possible types of Workflow stage. # noqa: E501
-
- :param assignment_type: The assignment_type of this WorkflowStage. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and assignment_type is None: # noqa: E501
- raise ValueError("Invalid value for `assignment_type`, must not be `None`") # noqa: E501
- allowed_values = ["READY_TO_START", "TRANSLATE", "REVIEW", "SECONDARY_REVIEW", "DONE"] # noqa: E501
- if self.local_vars_configuration.client_side_validation and assignment_type not in allowed_values: # noqa: E501
- raise ValueError(
- "Invalid value for `assignment_type` ({0}), must be one of {1}" # noqa: E501
- .format(assignment_type, allowed_values)
- )
-
- self._assignment_type = assignment_type
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, WorkflowStage):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, WorkflowStage):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/workflow_stage_assignment.py b/lilt/models/workflow_stage_assignment.py
index 2a39b29..7e1a9c6 100644
--- a/lilt/models/workflow_stage_assignment.py
+++ b/lilt/models/workflow_stage_assignment.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/workflow_stage_template.py b/lilt/models/workflow_stage_template.py
index babdfa9..7e94d3c 100644
--- a/lilt/models/workflow_stage_template.py
+++ b/lilt/models/workflow_stage_template.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/models/workflow_task.py b/lilt/models/workflow_task.py
deleted file mode 100644
index 228dff4..0000000
--- a/lilt/models/workflow_task.py
+++ /dev/null
@@ -1,239 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from lilt.configuration import Configuration
-
-
-class WorkflowTask(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'id': 'int',
- 'workflow_stage_id': 'int',
- 'name': 'str',
- 'entered_at': 'str',
- 'started_at': 'str'
- }
-
- attribute_map = {
- 'id': 'id',
- 'workflow_stage_id': 'workflowStageId',
- 'name': 'name',
- 'entered_at': 'enteredAt',
- 'started_at': 'startedAt'
- }
-
- def __init__(self, id=None, workflow_stage_id=None, name=None, entered_at=None, started_at=None, local_vars_configuration=None): # noqa: E501
- """WorkflowTask - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._id = None
- self._workflow_stage_id = None
- self._name = None
- self._entered_at = None
- self._started_at = None
- self.discriminator = None
-
- self.id = id
- self.workflow_stage_id = workflow_stage_id
- self.name = name
- self.entered_at = entered_at
- if started_at is not None:
- self.started_at = started_at
-
- @property
- def id(self):
- """Gets the id of this WorkflowTask. # noqa: E501
-
- Identifier of the current workflow task. # noqa: E501
-
- :return: The id of this WorkflowTask. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this WorkflowTask.
-
- Identifier of the current workflow task. # noqa: E501
-
- :param id: The id of this WorkflowTask. # noqa: E501
- :type: int
- """
- if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
- raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
-
- self._id = id
-
- @property
- def workflow_stage_id(self):
- """Gets the workflow_stage_id of this WorkflowTask. # noqa: E501
-
- Identifier of the current workflow stage. # noqa: E501
-
- :return: The workflow_stage_id of this WorkflowTask. # noqa: E501
- :rtype: int
- """
- return self._workflow_stage_id
-
- @workflow_stage_id.setter
- def workflow_stage_id(self, workflow_stage_id):
- """Sets the workflow_stage_id of this WorkflowTask.
-
- Identifier of the current workflow stage. # noqa: E501
-
- :param workflow_stage_id: The workflow_stage_id of this WorkflowTask. # noqa: E501
- :type: int
- """
- if self.local_vars_configuration.client_side_validation and workflow_stage_id is None: # noqa: E501
- raise ValueError("Invalid value for `workflow_stage_id`, must not be `None`") # noqa: E501
-
- self._workflow_stage_id = workflow_stage_id
-
- @property
- def name(self):
- """Gets the name of this WorkflowTask. # noqa: E501
-
- Name of the current workflow stage. # noqa: E501
-
- :return: The name of this WorkflowTask. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this WorkflowTask.
-
- Name of the current workflow stage. # noqa: E501
-
- :param name: The name of this WorkflowTask. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
- raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
-
- self._name = name
-
- @property
- def entered_at(self):
- """Gets the entered_at of this WorkflowTask. # noqa: E501
-
- Date and time when task was created. # noqa: E501
-
- :return: The entered_at of this WorkflowTask. # noqa: E501
- :rtype: str
- """
- return self._entered_at
-
- @entered_at.setter
- def entered_at(self, entered_at):
- """Sets the entered_at of this WorkflowTask.
-
- Date and time when task was created. # noqa: E501
-
- :param entered_at: The entered_at of this WorkflowTask. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and entered_at is None: # noqa: E501
- raise ValueError("Invalid value for `entered_at`, must not be `None`") # noqa: E501
-
- self._entered_at = entered_at
-
- @property
- def started_at(self):
- """Gets the started_at of this WorkflowTask. # noqa: E501
-
- Date and time when task was started. # noqa: E501
-
- :return: The started_at of this WorkflowTask. # noqa: E501
- :rtype: str
- """
- return self._started_at
-
- @started_at.setter
- def started_at(self, started_at):
- """Sets the started_at of this WorkflowTask.
-
- Date and time when task was started. # noqa: E501
-
- :param started_at: The started_at of this WorkflowTask. # noqa: E501
- :type: str
- """
-
- self._started_at = started_at
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, WorkflowTask):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, WorkflowTask):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/lilt/models/workflow_template.py b/lilt/models/workflow_template.py
index 2569160..4fcaf5c 100644
--- a/lilt/models/workflow_template.py
+++ b/lilt/models/workflow_template.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/lilt/rest.py b/lilt/rest.py
index 4966336..a99f97f 100644
--- a/lilt/rest.py
+++ b/lilt/rest.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/pyproject.toml b/pyproject.toml
index 056e2f3..b10469a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,23 +1,29 @@
-[tool.poetry]
+[project]
name = "lilt"
-version = "v3.0.2"
-description = "Lilt REST API"
-authors = ["OpenAPI Generator Community "]
-license = "Lilt Platform Terms and Conditions"
+version = "v3.1.0"
+description = "LILT API"
+authors = [
+ {name = "OpenAPI Generator Community",email = "team@openapitools.org"},
+]
+license = { text = "LILT Platform Terms and Conditions" }
readme = "README.md"
-repository = "https://github.com/lilt/lilt-python"
-keywords = ["OpenAPI", "OpenAPI-Generator", "Lilt REST API"]
-include = ["lilt/py.typed"]
+keywords = ["OpenAPI", "OpenAPI-Generator", "LILT API"]
+requires-python = ">=3.9"
-[tool.poetry.dependencies]
-python = "^3.9"
+dependencies = [
+ "urllib3 (>=2.1.0,<3.0.0)",
+ "python-dateutil (>=2.8.2)",
+ "pydantic (>=2)",
+ "typing-extensions (>=4.7.1)",
+]
-urllib3 = ">= 2.1.0, < 3.0.0"
-python-dateutil = ">= 2.8.2"
-pydantic = ">= 2"
-typing-extensions = ">= 4.7.1"
+[project.urls]
+Repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID"
+
+[tool.poetry]
+requires-poetry = ">=2.0"
-[tool.poetry.dev-dependencies]
+[tool.poetry.group.dev.dependencies]
pytest = ">= 7.2.1"
pytest-cov = ">= 2.8.1"
tox = ">= 3.9.0"
diff --git a/pytest.ini b/pytest.ini
new file mode 100644
index 0000000..45bbf2c
--- /dev/null
+++ b/pytest.ini
@@ -0,0 +1,3 @@
+# Let's exclude workflow tests for now
+[pytest]
+norecursedirs=workflow_tests
\ No newline at end of file
diff --git a/setup.py b/setup.py
index ed91e25..67c7c37 100644
--- a/setup.py
+++ b/setup.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
@@ -21,7 +21,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "lilt-python"
-VERSION = "v3.0.2"
+VERSION = "3.1.0"
PYTHON_REQUIRES = ">= 3.9"
REQUIRES = [
"urllib3 >= 2.1.0, < 3.0.0",
@@ -33,18 +33,18 @@
setup(
name=NAME,
version=VERSION,
- description="Lilt REST API",
+ description="LILT API",
author="OpenAPI Generator community",
author_email="team@openapitools.org",
- url="https://github.com/lilt/lilt-python",
- keywords=["OpenAPI", "OpenAPI-Generator", "Lilt REST API"],
+ url="",
+ keywords=["OpenAPI", "OpenAPI-Generator", "LILT API"],
install_requires=REQUIRES,
packages=find_packages(exclude=["test", "tests"]),
include_package_data=True,
- license="Lilt Platform Terms and Conditions",
+ license="LILT Platform Terms and Conditions",
long_description_content_type='text/markdown',
long_description="""\
- 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.
""", # noqa: E501
package_data={"lilt": ["py.typed"]},
)
\ No newline at end of file
diff --git a/test-requirements.txt b/test-requirements.txt
index d46287b..e98555c 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -1,6 +1,6 @@
-pytest~=8.3.3
-pytest-cov>=2.8.1
-pytest-randomly==1.2.3 # needed for python 2.7+3.4
-python-dotenv==1.0.1
-tenacity==8.5.0
-flake8
+pytest >= 7.2.1
+pytest-cov >= 2.8.1
+tox >= 3.9.0
+flake8 >= 4.0.0
+types-python-dateutil >= 2.8.19.14
+mypy >= 1.5
diff --git a/test/test_add_file_label_request.py b/test/test_add_file_label_request.py
index 59b171f..196469a 100644
--- a/test/test_add_file_label_request.py
+++ b/test/test_add_file_label_request.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.add_file_label_request import AddFileLabelRequest # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.add_file_label_request import AddFileLabelRequest
class TestAddFileLabelRequest(unittest.TestCase):
"""AddFileLabelRequest unit test stubs"""
@@ -29,25 +25,27 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> AddFileLabelRequest:
"""Test AddFileLabelRequest
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.add_file_label_request.AddFileLabelRequest() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `AddFileLabelRequest`
+ """
+ model = AddFileLabelRequest()
+ if include_optional:
return AddFileLabelRequest(
name = 'label_name'
)
- else :
+ else:
return AddFileLabelRequest(
)
+ """
def testAddFileLabelRequest(self):
"""Test AddFileLabelRequest"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_annotation.py b/test/test_annotation.py
deleted file mode 100644
index 8e8b7ea..0000000
--- a/test/test_annotation.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.annotation import Annotation # noqa: E501
-from lilt.rest import ApiException
-
-class TestAnnotation(unittest.TestCase):
- """Annotation unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test Annotation
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.annotation.Annotation() # noqa: E501
- if include_optional :
- return Annotation(
- text = 'minor'
- )
- else :
- return Annotation(
- )
-
- def testAnnotation(self):
- """Test Annotation"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_api_root.py b/test/test_api_root.py
deleted file mode 100644
index ac472bb..0000000
--- a/test/test_api_root.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.api_root import ApiRoot # noqa: E501
-from lilt.rest import ApiException
-
-class TestApiRoot(unittest.TestCase):
- """ApiRoot unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test ApiRoot
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.api_root.ApiRoot() # noqa: E501
- if include_optional :
- return ApiRoot(
- api_name = 'Lilt REST API v2',
- api_root = '/2'
- )
- else :
- return ApiRoot(
- )
-
- def testApiRoot(self):
- """Test ApiRoot"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_assignment_details.py b/test/test_assignment_details.py
deleted file mode 100644
index 4d25a70..0000000
--- a/test/test_assignment_details.py
+++ /dev/null
@@ -1,65 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.assignment_details import AssignmentDetails # noqa: E501
-from lilt.rest import ApiException
-
-class TestAssignmentDetails(unittest.TestCase):
- """AssignmentDetails unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test AssignmentDetails
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.assignment_details.AssignmentDetails() # noqa: E501
- if include_optional :
- return AssignmentDetails(
- is_preferred_translator = True,
- words_left_averaged_translator = 56,
- words_left_averaged_reviewer = 56,
- assignment_errors = [
- 'Error message'
- ],
- doc_id = 56,
- project_id = 56,
- is_auto_assigned = True,
- translator_user_id = 56,
- translator_role_id = 56,
- translator_due_date = '2023-03-28T16:00:00Z',
- reviewer_user_id = 56
- )
- else :
- return AssignmentDetails(
- )
-
- def testAssignmentDetails(self):
- """Test AssignmentDetails"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_assignment_error.py b/test/test_assignment_error.py
deleted file mode 100644
index be83af5..0000000
--- a/test/test_assignment_error.py
+++ /dev/null
@@ -1,60 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.assignment_error import AssignmentError # noqa: E501
-from lilt.rest import ApiException
-
-class TestAssignmentError(unittest.TestCase):
- """AssignmentError unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test AssignmentError
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.assignment_error.AssignmentError() # noqa: E501
- if include_optional :
- return AssignmentError(
- error_type = 'LINGUIST_MAY_BE_DELETED',
- project_id = 123,
- document_id = 456,
- error = 'Linguist may be deleted'
- )
- else :
- return AssignmentError(
- error_type = 'LINGUIST_MAY_BE_DELETED',
- project_id = 123,
- document_id = 456,
- error = 'Linguist may be deleted',
- )
-
- def testAssignmentError(self):
- """Test AssignmentError"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_auto_assignment_parameters.py b/test/test_auto_assignment_parameters.py
deleted file mode 100644
index 1d40e39..0000000
--- a/test/test_auto_assignment_parameters.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.auto_assignment_parameters import AutoAssignmentParameters # noqa: E501
-from lilt.rest import ApiException
-
-class TestAutoAssignmentParameters(unittest.TestCase):
- """AutoAssignmentParameters unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test AutoAssignmentParameters
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.auto_assignment_parameters.AutoAssignmentParameters() # noqa: E501
- if include_optional :
- return AutoAssignmentParameters(
- project_ids = [
- 56
- ]
- )
- else :
- return AutoAssignmentParameters(
- project_ids = [
- 56
- ],
- )
-
- def testAutoAssignmentParameters(self):
- """Test AutoAssignmentParameters"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_auto_assignment_response.py b/test/test_auto_assignment_response.py
deleted file mode 100644
index 5fdde58..0000000
--- a/test/test_auto_assignment_response.py
+++ /dev/null
@@ -1,80 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.auto_assignment_response import AutoAssignmentResponse # noqa: E501
-from lilt.rest import ApiException
-
-class TestAutoAssignmentResponse(unittest.TestCase):
- """AutoAssignmentResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test AutoAssignmentResponse
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.auto_assignment_response.AutoAssignmentResponse() # noqa: E501
- if include_optional :
- return AutoAssignmentResponse(
- project_id = 123.0,
- success = True,
- error = '0',
- errors = [
- lilt.models.assignment_error.AssignmentError(
- error_type = 'LINGUIST_MAY_BE_DELETED',
- project_id = 123,
- document_id = 456,
- error = 'Linguist may be deleted', )
- ],
- assignments = [
- lilt.models.assignment_details.AssignmentDetails(
- is_preferred_translator = True,
- words_left_averaged_translator = 56,
- words_left_averaged_reviewer = 56,
- assignment_errors = [
- 'Error message'
- ],
- doc_id = 56,
- project_id = 56,
- is_auto_assigned = True,
- translator_user_id = 56,
- translator_role_id = 56,
- translator_due_date = '2023-03-28T16:00:00Z',
- reviewer_user_id = 56, )
- ]
- )
- else :
- return AutoAssignmentResponse(
- project_id = 123.0,
- success = True,
- )
-
- def testAutoAssignmentResponse(self):
- """Test AutoAssignmentResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_bad_request.py b/test/test_bad_request.py
deleted file mode 100644
index 594e3ac..0000000
--- a/test/test_bad_request.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.bad_request import BadRequest # noqa: E501
-from lilt.rest import ApiException
-
-class TestBadRequest(unittest.TestCase):
- """BadRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test BadRequest
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.bad_request.BadRequest() # noqa: E501
- if include_optional :
- return BadRequest(
- message = None
- )
- else :
- return BadRequest(
- )
-
- def testBadRequest(self):
- """Test BadRequest"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_cancel_multipart_upload200_response.py b/test/test_cancel_multipart_upload200_response.py
new file mode 100644
index 0000000..24639ec
--- /dev/null
+++ b/test/test_cancel_multipart_upload200_response.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from lilt.models.cancel_multipart_upload200_response import CancelMultipartUpload200Response
+
+class TestCancelMultipartUpload200Response(unittest.TestCase):
+ """CancelMultipartUpload200Response unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CancelMultipartUpload200Response:
+ """Test CancelMultipartUpload200Response
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CancelMultipartUpload200Response`
+ """
+ model = CancelMultipartUpload200Response()
+ if include_optional:
+ return CancelMultipartUpload200Response(
+ success = True,
+ message = 'Multipart upload cancelled successfully'
+ )
+ else:
+ return CancelMultipartUpload200Response(
+ )
+ """
+
+ def testCancelMultipartUpload200Response(self):
+ """Test CancelMultipartUpload200Response"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_comment.py b/test/test_comment.py
deleted file mode 100644
index 2d338be..0000000
--- a/test/test_comment.py
+++ /dev/null
@@ -1,61 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.comment import Comment # noqa: E501
-from lilt.rest import ApiException
-
-class TestComment(unittest.TestCase):
- """Comment unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test Comment
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.comment.Comment() # noqa: E501
- if include_optional :
- return Comment(
- id = 84480010,
- text = 'This is incorrect.',
- user_id = 5678,
- is_resolved = True,
- annotations = [
- lilt.models.annotation.Annotation(
- text = 'minor', )
- ],
- created_at = 1489147692
- )
- else :
- return Comment(
- )
-
- def testComment(self):
- """Test Comment"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_comment_body.py b/test/test_comment_body.py
deleted file mode 100644
index 8325f5d..0000000
--- a/test/test_comment_body.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.comment_body import CommentBody # noqa: E501
-from lilt.rest import ApiException
-
-class TestCommentBody(unittest.TestCase):
- """CommentBody unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test CommentBody
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.comment_body.CommentBody() # noqa: E501
- if include_optional :
- return CommentBody(
- text = 'Please update this segment',
- annotations = [
- lilt.models.annotation.Annotation(
- text = 'mistranslation', )
- ],
- is_resolved = 'false'
- )
- else :
- return CommentBody(
- )
-
- def testCommentBody(self):
- """Test CommentBody"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_comment_delete_response.py b/test/test_comment_delete_response.py
deleted file mode 100644
index 698d605..0000000
--- a/test/test_comment_delete_response.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.comment_delete_response import CommentDeleteResponse # noqa: E501
-from lilt.rest import ApiException
-
-class TestCommentDeleteResponse(unittest.TestCase):
- """CommentDeleteResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test CommentDeleteResponse
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.comment_delete_response.CommentDeleteResponse() # noqa: E501
- if include_optional :
- return CommentDeleteResponse(
- id = 12345
- )
- else :
- return CommentDeleteResponse(
- )
-
- def testCommentDeleteResponse(self):
- """Test CommentDeleteResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_comments_api.py b/test/test_comments_api.py
deleted file mode 100644
index 0621365..0000000
--- a/test/test_comments_api.py
+++ /dev/null
@@ -1,62 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-
-import lilt
-from lilt.api.comments_api import CommentsApi # noqa: E501
-from lilt.rest import ApiException
-
-
-class TestCommentsApi(unittest.TestCase):
- """CommentsApi unit test stubs"""
-
- def setUp(self):
- self.api = lilt.api.comments_api.CommentsApi() # noqa: E501
-
- def tearDown(self):
- pass
-
- def test_create_comment(self):
- """Test case for create_comment
-
- Create a new comment # noqa: E501
- """
- pass
-
- def test_delete_comment(self):
- """Test case for delete_comment
-
- Delete a Comment # noqa: E501
- """
- pass
-
- def test_get_document_comments(self):
- """Test case for get_document_comments
-
- Retrieve a document's comments by segment # noqa: E501
- """
- pass
-
- def test_update_comment(self):
- """Test case for update_comment
-
- Update an existing comment # noqa: E501
- """
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_complete_multipart_upload200_response.py b/test/test_complete_multipart_upload200_response.py
new file mode 100644
index 0000000..e350c70
--- /dev/null
+++ b/test/test_complete_multipart_upload200_response.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from lilt.models.complete_multipart_upload200_response import CompleteMultipartUpload200Response
+
+class TestCompleteMultipartUpload200Response(unittest.TestCase):
+ """CompleteMultipartUpload200Response unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CompleteMultipartUpload200Response:
+ """Test CompleteMultipartUpload200Response
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CompleteMultipartUpload200Response`
+ """
+ model = CompleteMultipartUpload200Response()
+ if include_optional:
+ return CompleteMultipartUpload200Response(
+ success = True,
+ location = 'https://storage.googleapis.com/bucket/uploads/user123/file456.zip'
+ )
+ else:
+ return CompleteMultipartUpload200Response(
+ )
+ """
+
+ def testCompleteMultipartUpload200Response(self):
+ """Test CompleteMultipartUpload200Response"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_complete_multipart_upload_body.py b/test/test_complete_multipart_upload_body.py
new file mode 100644
index 0000000..d132238
--- /dev/null
+++ b/test/test_complete_multipart_upload_body.py
@@ -0,0 +1,60 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from lilt.models.complete_multipart_upload_body import CompleteMultipartUploadBody
+
+class TestCompleteMultipartUploadBody(unittest.TestCase):
+ """CompleteMultipartUploadBody unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CompleteMultipartUploadBody:
+ """Test CompleteMultipartUploadBody
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CompleteMultipartUploadBody`
+ """
+ model = CompleteMultipartUploadBody()
+ if include_optional:
+ return CompleteMultipartUploadBody(
+ parts = [
+ lilt.models.complete_multipart_upload_body_parts_inner.CompleteMultipartUploadBody_parts_inner(
+ e_tag = 'abc123def456',
+ part_number = 1, )
+ ]
+ )
+ else:
+ return CompleteMultipartUploadBody(
+ parts = [
+ lilt.models.complete_multipart_upload_body_parts_inner.CompleteMultipartUploadBody_parts_inner(
+ e_tag = 'abc123def456',
+ part_number = 1, )
+ ],
+ )
+ """
+
+ def testCompleteMultipartUploadBody(self):
+ """Test CompleteMultipartUploadBody"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_complete_multipart_upload_body_parts_inner.py b/test/test_complete_multipart_upload_body_parts_inner.py
new file mode 100644
index 0000000..a1f1f4f
--- /dev/null
+++ b/test/test_complete_multipart_upload_body_parts_inner.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from lilt.models.complete_multipart_upload_body_parts_inner import CompleteMultipartUploadBodyPartsInner
+
+class TestCompleteMultipartUploadBodyPartsInner(unittest.TestCase):
+ """CompleteMultipartUploadBodyPartsInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CompleteMultipartUploadBodyPartsInner:
+ """Test CompleteMultipartUploadBodyPartsInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CompleteMultipartUploadBodyPartsInner`
+ """
+ model = CompleteMultipartUploadBodyPartsInner()
+ if include_optional:
+ return CompleteMultipartUploadBodyPartsInner(
+ e_tag = 'abc123def456',
+ part_number = 1
+ )
+ else:
+ return CompleteMultipartUploadBodyPartsInner(
+ e_tag = 'abc123def456',
+ part_number = 1,
+ )
+ """
+
+ def testCompleteMultipartUploadBodyPartsInner(self):
+ """Test CompleteMultipartUploadBodyPartsInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_connector.py b/test/test_connector.py
deleted file mode 100644
index 80a0db7..0000000
--- a/test/test_connector.py
+++ /dev/null
@@ -1,55 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.connector import Connector # noqa: E501
-from lilt.rest import ApiException
-
-class TestConnector(unittest.TestCase):
- """Connector unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test Connector
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.connector.Connector() # noqa: E501
- if include_optional :
- return Connector(
- name = '0',
- args = None,
- schedule = '0 0 * * *'
- )
- else :
- return Connector(
- )
-
- def testConnector(self):
- """Test Connector"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_connector_arguments.py b/test/test_connector_arguments.py
deleted file mode 100644
index bd926a8..0000000
--- a/test/test_connector_arguments.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.connector_arguments import ConnectorArguments # noqa: E501
-from lilt.rest import ApiException
-
-class TestConnectorArguments(unittest.TestCase):
- """ConnectorArguments unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test ConnectorArguments
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.connector_arguments.ConnectorArguments() # noqa: E501
- if include_optional :
- return ConnectorArguments(
- id = 46530,
- name = 'zendesk',
- args = None,
- schedule = '0 0 * * *'
- )
- else :
- return ConnectorArguments(
- )
-
- def testConnectorArguments(self):
- """Test ConnectorArguments"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_connector_delete_response.py b/test/test_connector_delete_response.py
deleted file mode 100644
index 20b58fe..0000000
--- a/test/test_connector_delete_response.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.connector_delete_response import ConnectorDeleteResponse # noqa: E501
-from lilt.rest import ApiException
-
-class TestConnectorDeleteResponse(unittest.TestCase):
- """ConnectorDeleteResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test ConnectorDeleteResponse
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.connector_delete_response.ConnectorDeleteResponse() # noqa: E501
- if include_optional :
- return ConnectorDeleteResponse(
- id = 12345,
- deleted = True
- )
- else :
- return ConnectorDeleteResponse(
- )
-
- def testConnectorDeleteResponse(self):
- """Test ConnectorDeleteResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_connector_job.py b/test/test_connector_job.py
deleted file mode 100644
index 1053138..0000000
--- a/test/test_connector_job.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.connector_job import ConnectorJob # noqa: E501
-from lilt.rest import ApiException
-
-class TestConnectorJob(unittest.TestCase):
- """ConnectorJob unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test ConnectorJob
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.connector_job.ConnectorJob() # noqa: E501
- if include_optional :
- return ConnectorJob(
- id = 56,
- status = '0',
- args = None,
- created_at = '0',
- updated_at = '0'
- )
- else :
- return ConnectorJob(
- )
-
- def testConnectorJob(self):
- """Test ConnectorJob"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_connectors_api.py b/test/test_connectors_api.py
deleted file mode 100644
index faaaa7f..0000000
--- a/test/test_connectors_api.py
+++ /dev/null
@@ -1,62 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-
-import lilt
-from lilt.api.connectors_api import ConnectorsApi # noqa: E501
-from lilt.rest import ApiException
-
-
-class TestConnectorsApi(unittest.TestCase):
- """ConnectorsApi unit test stubs"""
-
- def setUp(self):
- self.api = lilt.api.connectors_api.ConnectorsApi() # noqa: E501
-
- def tearDown(self):
- pass
-
- def test_create_connector(self):
- """Test case for create_connector
-
- Upload a Connector # noqa: E501
- """
- pass
-
- def test_delete_connector(self):
- """Test case for delete_connector
-
- Delete a Connector # noqa: E501
- """
- pass
-
- def test_get_connectors(self):
- """Test case for get_connectors
-
- Retrieve a Connector # noqa: E501
- """
- pass
-
- def test_update_connector(self):
- """Test case for update_connector
-
- Upload a Connector # noqa: E501
- """
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_converter_config_api.py b/test/test_converter_config_api.py
deleted file mode 100644
index 2c5aabd..0000000
--- a/test/test_converter_config_api.py
+++ /dev/null
@@ -1,76 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-
-import lilt
-from lilt.api.converter_config_api import ConverterConfigApi # noqa: E501
-from lilt.rest import ApiException
-
-
-class TestConverterConfigApi(unittest.TestCase):
- """ConverterConfigApi unit test stubs"""
-
- def setUp(self):
- self.api = lilt.api.converter_config_api.ConverterConfigApi() # noqa: E501
-
- def tearDown(self):
- pass
-
- def test_add_converter_config(self):
- """Test case for add_converter_config
-
- Add Converter Config # noqa: E501
- """
- pass
-
- def test_delete_converter_config(self):
- """Test case for delete_converter_config
-
- Delete Converter Config # noqa: E501
- """
- pass
-
- def test_delete_filter_mapping(self):
- """Test case for delete_filter_mapping
-
- Delete Filter Mapping # noqa: E501
- """
- pass
-
- def test_edit_filter_mapping(self):
- """Test case for edit_filter_mapping
-
- Add Filter Mapping # noqa: E501
- """
- pass
-
- def test_get_converter_config_by_id(self):
- """Test case for get_converter_config_by_id
-
- Fetch Converter Config by Id # noqa: E501
- """
- pass
-
- def test_get_converter_configs(self):
- """Test case for get_converter_configs
-
- List Converter Configs # noqa: E501
- """
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_converter_config_update_response.py b/test/test_converter_config_update_response.py
deleted file mode 100644
index eb24893..0000000
--- a/test/test_converter_config_update_response.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.converter_config_update_response import ConverterConfigUpdateResponse # noqa: E501
-from lilt.rest import ApiException
-
-class TestConverterConfigUpdateResponse(unittest.TestCase):
- """ConverterConfigUpdateResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test ConverterConfigUpdateResponse
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.converter_config_update_response.ConverterConfigUpdateResponse() # noqa: E501
- if include_optional :
- return ConverterConfigUpdateResponse(
- config_id = 56
- )
- else :
- return ConverterConfigUpdateResponse(
- )
-
- def testConverterConfigUpdateResponse(self):
- """Test ConverterConfigUpdateResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_create_api.py b/test/test_create_api.py
index 38ee9e6..a0fb828 100644
--- a/test/test_create_api.py
+++ b/test/test_create_api.py
@@ -1,93 +1,91 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import lilt
-from lilt.api.create_api import CreateApi # noqa: E501
-from lilt.rest import ApiException
+from lilt.api.create_api import CreateApi
class TestCreateApi(unittest.TestCase):
"""CreateApi unit test stubs"""
- def setUp(self):
- self.api = lilt.api.create_api.CreateApi() # noqa: E501
+ def setUp(self) -> None:
+ self.api = CreateApi()
- def tearDown(self):
+ def tearDown(self) -> None:
pass
- def test_delete_lilt_create_content(self):
+ def test_delete_lilt_create_content(self) -> None:
"""Test case for delete_lilt_create_content
- Delete Lilt Create content # noqa: E501
+ Delete Lilt Create content
"""
pass
- def test_generate_lilt_create_content(self):
+ def test_generate_lilt_create_content(self) -> None:
"""Test case for generate_lilt_create_content
- Generate new Lilt Create content # noqa: E501
+ Generate new Lilt Create content
"""
pass
- def test_get_lilt_create_by_id(self):
+ def test_get_lilt_create_by_id(self) -> None:
"""Test case for get_lilt_create_by_id
- Get Lilt Create content by ID. # noqa: E501
+ Get Lilt Create content by ID.
"""
pass
- def test_get_lilt_create_content(self):
+ def test_get_lilt_create_content(self) -> None:
"""Test case for get_lilt_create_content
- Get Lilt Create content # noqa: E501
+ Get Lilt Create content
"""
pass
- def test_get_lilt_create_preferences(self):
+ def test_get_lilt_create_preferences(self) -> None:
"""Test case for get_lilt_create_preferences
- Get Lilt Create preferences # noqa: E501
+ Get Lilt Create preferences
"""
pass
- def test_regenerate_lilt_create_content(self):
+ def test_regenerate_lilt_create_content(self) -> None:
"""Test case for regenerate_lilt_create_content
- Regenerate Lilt Create content # noqa: E501
+ Regenerate Lilt Create content
"""
pass
- def test_sign_lilt_create_terms(self):
+ def test_sign_lilt_create_terms(self) -> None:
"""Test case for sign_lilt_create_terms
- Sign the Lilt Create terms and conditions # noqa: E501
+ Sign the Lilt Create terms and conditions
"""
pass
- def test_update_lilt_create_content(self):
+ def test_update_lilt_create_content(self) -> None:
"""Test case for update_lilt_create_content
- Update Lilt Create content # noqa: E501
+ Update Lilt Create content
"""
pass
- def test_update_lilt_create_preferences(self):
+ def test_update_lilt_create_preferences(self) -> None:
"""Test case for update_lilt_create_preferences
- Update Lilt Create preferences # noqa: E501
+ Update Lilt Create preferences
"""
pass
diff --git a/test/test_create_converter_config_parameters.py b/test/test_create_converter_config_parameters.py
index f3ebd46..733e95e 100644
--- a/test/test_create_converter_config_parameters.py
+++ b/test/test_create_converter_config_parameters.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.create_converter_config_parameters import CreateConverterConfigParameters # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.create_converter_config_parameters import CreateConverterConfigParameters
class TestCreateConverterConfigParameters(unittest.TestCase):
"""CreateConverterConfigParameters unit test stubs"""
@@ -29,30 +25,28 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> CreateConverterConfigParameters:
"""Test CreateConverterConfigParameters
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.create_converter_config_parameters.CreateConverterConfigParameters() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `CreateConverterConfigParameters`
+ """
+ model = CreateConverterConfigParameters()
+ if include_optional:
return CreateConverterConfigParameters(
- config_json = '{"registry": {".md": {"type": "OkapiFprm", "version": 1, "filterName": "okf_markdown", "filterConfig": "#v1\nuseCodeFinder.b=false\ntranslateUrls.b=true\nurlToTranslatePattern=.+\ntranslateCodeBlocks.b=false\ntranslateInlineCodeBlocks.b=true\ntranslateHeaderMetadata.b=true\ntranslateImageAltText.b=true\nuseLinkSubflow.b=true\ncodeFinderRules.count.i=1\ncodeFinderRules.rule0=\\{\\{[^}]+\\}\\}\ncodeFinderRules.sample={{#test}} handle bar test {{/test}}$0a${{stand-alone handle bar}}$0a$\ncodeFinderRules.useAllRulesWhenTesting.b=true\n", "extractAllTags": true, "exportReplacements": {"patterns": [], "replacements": []}, "importReplacements": {"patterns": [], "replacements": []}}}',
- config_name = 'my_config',
- config_description = 'config for custom markdown escaping'
+ signed_agreement = True
)
- else :
+ else:
return CreateConverterConfigParameters(
- config_json = '{"registry": {".md": {"type": "OkapiFprm", "version": 1, "filterName": "okf_markdown", "filterConfig": "#v1\nuseCodeFinder.b=false\ntranslateUrls.b=true\nurlToTranslatePattern=.+\ntranslateCodeBlocks.b=false\ntranslateInlineCodeBlocks.b=true\ntranslateHeaderMetadata.b=true\ntranslateImageAltText.b=true\nuseLinkSubflow.b=true\ncodeFinderRules.count.i=1\ncodeFinderRules.rule0=\\{\\{[^}]+\\}\\}\ncodeFinderRules.sample={{#test}} handle bar test {{/test}}$0a${{stand-alone handle bar}}$0a$\ncodeFinderRules.useAllRulesWhenTesting.b=true\n", "extractAllTags": true, "exportReplacements": {"patterns": [], "replacements": []}, "importReplacements": {"patterns": [], "replacements": []}}}',
- config_name = 'my_config',
- config_description = 'config for custom markdown escaping',
+ signed_agreement = True,
)
+ """
def testCreateConverterConfigParameters(self):
"""Test CreateConverterConfigParameters"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_create_webhook_options.py b/test/test_create_webhook_options.py
index 0ec577e..b9da1c2 100644
--- a/test/test_create_webhook_options.py
+++ b/test/test_create_webhook_options.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/test/test_delete_lilt_create_content200_response.py b/test/test_delete_lilt_create_content200_response.py
index c80d0d8..45520bb 100644
--- a/test/test_delete_lilt_create_content200_response.py
+++ b/test/test_delete_lilt_create_content200_response.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/test/test_delete_segment_from_memory_response.py b/test/test_delete_segment_from_memory_response.py
index 2edb5fb..1639773 100644
--- a/test/test_delete_segment_from_memory_response.py
+++ b/test/test_delete_segment_from_memory_response.py
@@ -1,23 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.delete_segment_from_memory_response import DeleteSegmentFromMemoryResponse # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.delete_segment_from_memory_response import DeleteSegmentFromMemoryResponse
class TestDeleteSegmentFromMemoryResponse(unittest.TestCase):
"""DeleteSegmentFromMemoryResponse unit test stubs"""
@@ -28,25 +25,27 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> DeleteSegmentFromMemoryResponse:
"""Test DeleteSegmentFromMemoryResponse
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.delete_segment_from_memory_response.DeleteSegmentFromMemoryResponse() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `DeleteSegmentFromMemoryResponse`
+ """
+ model = DeleteSegmentFromMemoryResponse()
+ if include_optional:
return DeleteSegmentFromMemoryResponse(
success = True
)
- else :
+ else:
return DeleteSegmentFromMemoryResponse(
)
+ """
def testDeleteSegmentFromMemoryResponse(self):
"""Test DeleteSegmentFromMemoryResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_document_assignment_parameters.py b/test/test_document_assignment_parameters.py
deleted file mode 100644
index 1a1fec7..0000000
--- a/test/test_document_assignment_parameters.py
+++ /dev/null
@@ -1,59 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.document_assignment_parameters import DocumentAssignmentParameters # noqa: E501
-from lilt.rest import ApiException
-
-class TestDocumentAssignmentParameters(unittest.TestCase):
- """DocumentAssignmentParameters unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test DocumentAssignmentParameters
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.document_assignment_parameters.DocumentAssignmentParameters() # noqa: E501
- if include_optional :
- return DocumentAssignmentParameters(
- id = 46530,
- email = 'user@email.com',
- is_translator = True,
- is_reviewer = False,
- due_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
- )
- else :
- return DocumentAssignmentParameters(
- id = 46530,
- email = 'user@email.com',
- )
-
- def testDocumentAssignmentParameters(self):
- """Test DocumentAssignmentParameters"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_document_assignment_response.py b/test/test_document_assignment_response.py
deleted file mode 100644
index dc267fd..0000000
--- a/test/test_document_assignment_response.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.document_assignment_response import DocumentAssignmentResponse # noqa: E501
-from lilt.rest import ApiException
-
-class TestDocumentAssignmentResponse(unittest.TestCase):
- """DocumentAssignmentResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test DocumentAssignmentResponse
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.document_assignment_response.DocumentAssignmentResponse() # noqa: E501
- if include_optional :
- return DocumentAssignmentResponse(
- id = 46530
- )
- else :
- return DocumentAssignmentResponse(
- )
-
- def testDocumentAssignmentResponse(self):
- """Test DocumentAssignmentResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_document_comments.py b/test/test_document_comments.py
deleted file mode 100644
index ff07cfe..0000000
--- a/test/test_document_comments.py
+++ /dev/null
@@ -1,67 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.document_comments import DocumentComments # noqa: E501
-from lilt.rest import ApiException
-
-class TestDocumentComments(unittest.TestCase):
- """DocumentComments unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test DocumentComments
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.document_comments.DocumentComments() # noqa: E501
- if include_optional :
- return DocumentComments(
- _1234567 = [
- lilt.models.comment.Comment(
- id = 84480010,
- text = 'This is incorrect.',
- annotations = [
- lilt.models.annotation.Annotation(
- text = 'mistranslation', )
- ],
- is_resolved = True,
- document_id = 5678,
- segment_id = 5678,
- segment_revision_id = 5678,
- user_id = 5678,
- created_at = 1489147692, )
- ]
- )
- else :
- return DocumentComments(
- )
-
- def testDocumentComments(self):
- """Test DocumentComments"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_document_delete_response.py b/test/test_document_delete_response.py
deleted file mode 100644
index 28105be..0000000
--- a/test/test_document_delete_response.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.document_delete_response import DocumentDeleteResponse # noqa: E501
-from lilt.rest import ApiException
-
-class TestDocumentDeleteResponse(unittest.TestCase):
- """DocumentDeleteResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test DocumentDeleteResponse
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.document_delete_response.DocumentDeleteResponse() # noqa: E501
- if include_optional :
- return DocumentDeleteResponse(
- id = 46530,
- deleted = True
- )
- else :
- return DocumentDeleteResponse(
- )
-
- def testDocumentDeleteResponse(self):
- """Test DocumentDeleteResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_document_done_update_parameters.py b/test/test_document_done_update_parameters.py
deleted file mode 100644
index 0e897f4..0000000
--- a/test/test_document_done_update_parameters.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.document_done_update_parameters import DocumentDoneUpdateParameters # noqa: E501
-from lilt.rest import ApiException
-
-class TestDocumentDoneUpdateParameters(unittest.TestCase):
- """DocumentDoneUpdateParameters unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test DocumentDoneUpdateParameters
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.document_done_update_parameters.DocumentDoneUpdateParameters() # noqa: E501
- if include_optional :
- return DocumentDoneUpdateParameters(
- document_ids = [10641, 10642]
- )
- else :
- return DocumentDoneUpdateParameters(
- document_ids = [10641, 10642],
- )
-
- def testDocumentDoneUpdateParameters(self):
- """Test DocumentDoneUpdateParameters"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_document_done_update_parameters1.py b/test/test_document_done_update_parameters1.py
deleted file mode 100644
index b6e30c4..0000000
--- a/test/test_document_done_update_parameters1.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.document_done_update_parameters1 import DocumentDoneUpdateParameters1 # noqa: E501
-from lilt.rest import ApiException
-
-class TestDocumentDoneUpdateParameters1(unittest.TestCase):
- """DocumentDoneUpdateParameters1 unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test DocumentDoneUpdateParameters1
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.document_done_update_parameters1.DocumentDoneUpdateParameters1() # noqa: E501
- if include_optional :
- return DocumentDoneUpdateParameters1(
- document_ids = [10641, 10642],
- is_done = True
- )
- else :
- return DocumentDoneUpdateParameters1(
- document_ids = [10641, 10642],
- is_done = True,
- )
-
- def testDocumentDoneUpdateParameters1(self):
- """Test DocumentDoneUpdateParameters1"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_document_done_update_parameters2.py b/test/test_document_done_update_parameters2.py
deleted file mode 100644
index e4ab7eb..0000000
--- a/test/test_document_done_update_parameters2.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.document_done_update_parameters2 import DocumentDoneUpdateParameters2 # noqa: E501
-from lilt.rest import ApiException
-
-class TestDocumentDoneUpdateParameters2(unittest.TestCase):
- """DocumentDoneUpdateParameters2 unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test DocumentDoneUpdateParameters2
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.document_done_update_parameters2.DocumentDoneUpdateParameters2() # noqa: E501
- if include_optional :
- return DocumentDoneUpdateParameters2(
- document_ids = [10641, 10642],
- is_done = True
- )
- else :
- return DocumentDoneUpdateParameters2(
- document_ids = [10641, 10642],
- is_done = True,
- )
-
- def testDocumentDoneUpdateParameters2(self):
- """Test DocumentDoneUpdateParameters2"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_document_parameters.py b/test/test_document_parameters.py
deleted file mode 100644
index a9de0a5..0000000
--- a/test/test_document_parameters.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.document_parameters import DocumentParameters # noqa: E501
-from lilt.rest import ApiException
-
-class TestDocumentParameters(unittest.TestCase):
- """DocumentParameters unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test DocumentParameters
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.document_parameters.DocumentParameters() # noqa: E501
- if include_optional :
- return DocumentParameters(
- name = 'Introduction.xliff',
- project_id = 23618
- )
- else :
- return DocumentParameters(
- name = 'Introduction.xliff',
- project_id = 23618,
- )
-
- def testDocumentParameters(self):
- """Test DocumentParameters"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_document_pretranslate_parameters.py b/test/test_document_pretranslate_parameters.py
deleted file mode 100644
index 6339eec..0000000
--- a/test/test_document_pretranslate_parameters.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.document_pretranslate_parameters import DocumentPretranslateParameters # noqa: E501
-from lilt.rest import ApiException
-
-class TestDocumentPretranslateParameters(unittest.TestCase):
- """DocumentPretranslateParameters unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test DocumentPretranslateParameters
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.document_pretranslate_parameters.DocumentPretranslateParameters() # noqa: E501
- if include_optional :
- return DocumentPretranslateParameters(
- id = [123, 234],
- auto_accept = False,
- case_sensitive = False,
- attribute_to_creator = False,
- mode = 'tm+mt'
- )
- else :
- return DocumentPretranslateParameters(
- id = [123, 234],
- )
-
- def testDocumentPretranslateParameters(self):
- """Test DocumentPretranslateParameters"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_document_pretranslate_response.py b/test/test_document_pretranslate_response.py
deleted file mode 100644
index 0a83b47..0000000
--- a/test/test_document_pretranslate_response.py
+++ /dev/null
@@ -1,64 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.document_pretranslate_response import DocumentPretranslateResponse # noqa: E501
-from lilt.rest import ApiException
-
-class TestDocumentPretranslateResponse(unittest.TestCase):
- """DocumentPretranslateResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test DocumentPretranslateResponse
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.document_pretranslate_response.DocumentPretranslateResponse() # noqa: E501
- if include_optional :
- return DocumentPretranslateResponse(
- id = [123, 234],
- is_pretranslating = True,
- documents = [
- lilt.models.document_pretranslating.DocumentPretranslating(
- id = 123.0,
- import_in_progress = False,
- import_succeeded = True,
- import_error_message = '0',
- is_processing = False,
- is_pretranslating = True,
- status = {"pretranslation":"running"}, )
- ]
- )
- else :
- return DocumentPretranslateResponse(
- )
-
- def testDocumentPretranslateResponse(self):
- """Test DocumentPretranslateResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_document_pretranslating.py b/test/test_document_pretranslating.py
deleted file mode 100644
index 6e39f90..0000000
--- a/test/test_document_pretranslating.py
+++ /dev/null
@@ -1,59 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.document_pretranslating import DocumentPretranslating # noqa: E501
-from lilt.rest import ApiException
-
-class TestDocumentPretranslating(unittest.TestCase):
- """DocumentPretranslating unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test DocumentPretranslating
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.document_pretranslating.DocumentPretranslating() # noqa: E501
- if include_optional :
- return DocumentPretranslating(
- id = 123.0,
- import_in_progress = False,
- import_succeeded = True,
- import_error_message = '0',
- is_processing = False,
- is_pretranslating = True,
- status = {"pretranslation":"running"}
- )
- else :
- return DocumentPretranslating(
- )
-
- def testDocumentPretranslating(self):
- """Test DocumentPretranslating"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_document_pretranslating_status.py b/test/test_document_pretranslating_status.py
deleted file mode 100644
index 3342216..0000000
--- a/test/test_document_pretranslating_status.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.document_pretranslating_status import DocumentPretranslatingStatus # noqa: E501
-from lilt.rest import ApiException
-
-class TestDocumentPretranslatingStatus(unittest.TestCase):
- """DocumentPretranslatingStatus unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test DocumentPretranslatingStatus
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.document_pretranslating_status.DocumentPretranslatingStatus() # noqa: E501
- if include_optional :
- return DocumentPretranslatingStatus(
- pretranslation = 'running'
- )
- else :
- return DocumentPretranslatingStatus(
- )
-
- def testDocumentPretranslatingStatus(self):
- """Test DocumentPretranslatingStatus"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_document_quote.py b/test/test_document_quote.py
deleted file mode 100644
index c4b277a..0000000
--- a/test/test_document_quote.py
+++ /dev/null
@@ -1,64 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.document_quote import DocumentQuote # noqa: E501
-from lilt.rest import ApiException
-
-class TestDocumentQuote(unittest.TestCase):
- """DocumentQuote unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test DocumentQuote
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.document_quote.DocumentQuote() # noqa: E501
- if include_optional :
- return DocumentQuote(
- id = 21902,
- num_words_new = 6039,
- num_segments_new = 151,
- num_words_repetition = 12,
- num_segments_repetition = 2980000,
- bands = [
- lilt.models.match_band.MatchBand(
- minimum_score = 94,
- maximum_score = 85,
- num_source_words = 151,
- num_segments = 12, )
- ]
- )
- else :
- return DocumentQuote(
- )
-
- def testDocumentQuote(self):
- """Test DocumentQuote"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_document_update_parameters.py b/test/test_document_update_parameters.py
deleted file mode 100644
index 2f62804..0000000
--- a/test/test_document_update_parameters.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.document_update_parameters import DocumentUpdateParameters # noqa: E501
-from lilt.rest import ApiException
-
-class TestDocumentUpdateParameters(unittest.TestCase):
- """DocumentUpdateParameters unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test DocumentUpdateParameters
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.document_update_parameters.DocumentUpdateParameters() # noqa: E501
- if include_optional :
- return DocumentUpdateParameters(
- id = 46530,
- name = 'Introduction to our App'
- )
- else :
- return DocumentUpdateParameters(
- id = 46530,
- name = 'Introduction to our App',
- )
-
- def testDocumentUpdateParameters(self):
- """Test DocumentUpdateParameters"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_document_with_segments.py b/test/test_document_with_segments.py
index 38334b4..787744b 100644
--- a/test/test_document_with_segments.py
+++ b/test/test_document_with_segments.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.document_with_segments import DocumentWithSegments # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.document_with_segments import DocumentWithSegments
class TestDocumentWithSegments(unittest.TestCase):
"""DocumentWithSegments unit test stubs"""
@@ -29,31 +25,34 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> DocumentWithSegments:
"""Test DocumentWithSegments
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.document_with_segments.DocumentWithSegments() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `DocumentWithSegments`
+ """
+ model = DocumentWithSegments()
+ if include_optional:
return DocumentWithSegments(
- id = 46530,
- project_id = 287,
- srclang = 'en',
- trglang = 'de',
- name = 'Introduction.xliff',
- import_in_progress = False,
- import_succeeded = False,
- import_error_message = 'Could not parse XML.',
- export_in_progress = False,
- export_succeeded = False,
- export_error_message = 'Could not parse XML.',
- is_pretranslating = False,
- status = {"pretranslation":"idle"},
- translator_email = 'translator@example.com',
- reviewer_email = 'reviewer@example.com',
- created_at = 1489147692,
- updated_at = 1489147692,
+ id = 46530,
+ project_id = 287,
+ srclang = 'en',
+ trglang = 'de',
+ name = 'Introduction.xliff',
+ import_in_progress = False,
+ import_succeeded = False,
+ import_error_message = 'Could not parse XML.',
+ export_in_progress = False,
+ export_succeeded = False,
+ export_error_message = 'Could not parse XML.',
+ is_pretranslating = False,
+ status = {"pretranslation":"idle"},
+ translator_email = 'translator@example.com',
+ reviewer_email = 'reviewer@example.com',
+ created_at = 1489147692,
+ updated_at = 1489147692,
+ is_review_complete = True,
segments = [
lilt.models.segment.Segment(
id = 84480010,
@@ -69,15 +68,15 @@ def make_instance(self, include_optional):
is_reviewed = True, )
]
)
- else :
+ else:
return DocumentWithSegments(
)
+ """
def testDocumentWithSegments(self):
"""Test DocumentWithSegments"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_document_without_segments.py b/test/test_document_without_segments.py
index b8beaed..653d882 100644
--- a/test/test_document_without_segments.py
+++ b/test/test_document_without_segments.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.document_without_segments import DocumentWithoutSegments # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.document_without_segments import DocumentWithoutSegments
class TestDocumentWithoutSegments(unittest.TestCase):
"""DocumentWithoutSegments unit test stubs"""
@@ -29,41 +25,45 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> DocumentWithoutSegments:
"""Test DocumentWithoutSegments
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.document_without_segments.DocumentWithoutSegments() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `DocumentWithoutSegments`
+ """
+ model = DocumentWithoutSegments()
+ if include_optional:
return DocumentWithoutSegments(
- id = 46530,
- project_id = 287,
- srclang = 'en',
- trglang = 'de',
- name = 'Introduction.xliff',
- import_in_progress = False,
- import_succeeded = False,
- import_error_message = 'Could not parse XML.',
- export_in_progress = False,
- export_succeeded = False,
- export_error_message = 'Could not parse XML.',
- is_pretranslating = False,
- status = {"pretranslation":"idle"},
- translator_email = 'translator@example.com',
- reviewer_email = 'reviewer@example.com',
- created_at = 1489147692,
- updated_at = 1489147692
+ id = 46530,
+ project_id = 287,
+ srclang = 'en',
+ trglang = 'de',
+ name = 'Introduction.xliff',
+ import_in_progress = False,
+ import_succeeded = False,
+ import_error_message = 'Could not parse XML.',
+ export_in_progress = False,
+ export_succeeded = False,
+ export_error_message = 'Could not parse XML.',
+ is_pretranslating = False,
+ status = {"pretranslation":"idle"},
+ translator_email = 'translator@example.com',
+ reviewer_email = 'reviewer@example.com',
+ customer_reviewer_email = 'reviewer@example.com',
+ created_at = 1489147692,
+ updated_at = 1489147692,
+ is_review_complete = True
)
- else :
+ else:
return DocumentWithoutSegments(
)
+ """
def testDocumentWithoutSegments(self):
"""Test DocumentWithoutSegments"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_document_without_segments_status.py b/test/test_document_without_segments_status.py
index 06e367e..b6fc1e2 100644
--- a/test/test_document_without_segments_status.py
+++ b/test/test_document_without_segments_status.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.document_without_segments_status import DocumentWithoutSegmentsStatus # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.document_without_segments_status import DocumentWithoutSegmentsStatus
class TestDocumentWithoutSegmentsStatus(unittest.TestCase):
"""DocumentWithoutSegmentsStatus unit test stubs"""
@@ -29,25 +25,27 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> DocumentWithoutSegmentsStatus:
"""Test DocumentWithoutSegmentsStatus
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.document_without_segments_status.DocumentWithoutSegmentsStatus() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `DocumentWithoutSegmentsStatus`
+ """
+ model = DocumentWithoutSegmentsStatus()
+ if include_optional:
return DocumentWithoutSegmentsStatus(
pretranslation = 'idle'
)
- else :
+ else:
return DocumentWithoutSegmentsStatus(
)
+ """
def testDocumentWithoutSegmentsStatus(self):
"""Test DocumentWithoutSegmentsStatus"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_document_workflow.py b/test/test_document_workflow.py
deleted file mode 100644
index 5dbedb3..0000000
--- a/test/test_document_workflow.py
+++ /dev/null
@@ -1,61 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.document_workflow import DocumentWorkflow # noqa: E501
-from lilt.rest import ApiException
-
-class TestDocumentWorkflow(unittest.TestCase):
- """DocumentWorkflow unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test DocumentWorkflow
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.document_workflow.DocumentWorkflow() # noqa: E501
- if include_optional :
- return DocumentWorkflow(
- document_id = 12345,
- workflow_id = 1111,
- stages = [{"name":"ReadytoStart","assignmentType":"READY_TO_START"},{"id":1,"name":"Translate","assignmentType":"TRANSLATE"},{"id":2,"name":"Review","assignmentType":"REVIEW","active":True},{"id":3,"name":"AnalystReview","assignmentType":"SECONDARY_REVIEW"},{"name":"Done","assignmentType":"DONE"}],
- current_task = lilt.models.workflow_task.WorkflowTask(
- id = 1,
- workflow_stage_id = 123,
- name = 'Review',
- entered_at = '2022-09-09T21:33:21.000Z',
- started_at = '2022-09-09T21:33:21.000Z', )
- )
- else :
- return DocumentWorkflow(
- )
-
- def testDocumentWorkflow(self):
- """Test DocumentWorkflow"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_documents_api.py b/test/test_documents_api.py
index 47e13a1..2370c68 100644
--- a/test/test_documents_api.py
+++ b/test/test_documents_api.py
@@ -1,101 +1,42 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import lilt
-from lilt.api.documents_api import DocumentsApi # noqa: E501
-from lilt.rest import ApiException
+from lilt.api.documents_api import DocumentsApi
class TestDocumentsApi(unittest.TestCase):
"""DocumentsApi unit test stubs"""
- def setUp(self):
- self.api = lilt.api.documents_api.DocumentsApi() # noqa: E501
-
- def tearDown(self):
- pass
+ def setUp(self) -> None:
+ self.api = DocumentsApi()
- def test_assign_document(self):
- """Test case for assign_document
-
- Assign a Document # noqa: E501
- """
- pass
-
- def test_create_document(self):
- """Test case for create_document
-
- Create a Document # noqa: E501
- """
+ def tearDown(self) -> None:
pass
- def test_delete_document(self):
- """Test case for delete_document
-
- Delete a Document # noqa: E501
- """
- pass
-
- def test_download_document(self):
+ def test_download_document(self) -> None:
"""Test case for download_document
- Download a Document # noqa: E501
- """
- pass
-
- def test_get_document(self):
- """Test case for get_document
-
- Retrieve a Document # noqa: E501
- """
- pass
-
- def test_mark_review_done(self):
- """Test case for mark_review_done
-
- Mark review done # noqa: E501
- """
- pass
-
- def test_mark_translation_done(self):
- """Test case for mark_translation_done
-
- Mark translation done # noqa: E501
- """
- pass
-
- def test_pretranslate_documents(self):
- """Test case for pretranslate_documents
-
- Pretranslate a Document # noqa: E501
- """
- pass
-
- def test_unlock_documents(self):
- """Test case for unlock_documents
-
- Unlock documents # noqa: E501
+ Download a Document
"""
pass
- def test_upload_document(self):
+ def test_upload_document(self) -> None:
"""Test case for upload_document
- Upload a File # noqa: E501
+ Upload a File
"""
pass
diff --git a/test/test_domain.py b/test/test_domain.py
index 6aa36ff..1836289 100644
--- a/test/test_domain.py
+++ b/test/test_domain.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/test/test_domain_list.py b/test/test_domain_list.py
index 917297d..9f82542 100644
--- a/test/test_domain_list.py
+++ b/test/test_domain_list.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/test/test_domain_metadata.py b/test/test_domain_metadata.py
index e839109..47f3b92 100644
--- a/test/test_domain_metadata.py
+++ b/test/test_domain_metadata.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/test/test_domain_reference.py b/test/test_domain_reference.py
index ec06a8d..66b6e65 100644
--- a/test/test_domain_reference.py
+++ b/test/test_domain_reference.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/test/test_domains_api.py b/test/test_domains_api.py
index 0771960..6903ba3 100644
--- a/test/test_domains_api.py
+++ b/test/test_domains_api.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/test/test_edit_filter_mapping_parameters.py b/test/test_edit_filter_mapping_parameters.py
deleted file mode 100644
index a9bf96b..0000000
--- a/test/test_edit_filter_mapping_parameters.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.edit_filter_mapping_parameters import EditFilterMappingParameters # noqa: E501
-from lilt.rest import ApiException
-
-class TestEditFilterMappingParameters(unittest.TestCase):
- """EditFilterMappingParameters unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test EditFilterMappingParameters
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.edit_filter_mapping_parameters.EditFilterMappingParameters() # noqa: E501
- if include_optional :
- return EditFilterMappingParameters(
- registry_entry_json = '{"type": "OkapiFprm", "version": 1, "filterName": "okf_markdown", "filterConfig": "#v1\nuseCodeFinder.b=false\ntranslateUrls.b=true\nurlToTranslatePattern=.+\ntranslateCodeBlocks.b=false\ntranslateInlineCodeBlocks.b=true\ntranslateHeaderMetadata.b=true\ntranslateImageAltText.b=true\nuseLinkSubflow.b=true\ncodeFinderRules.count.i=1\ncodeFinderRules.rule0=\\{\\{[^}]+\\}\\}\ncodeFinderRules.sample={{#test}} handle bar test {{/test}}$0a${{stand-alone handle bar}}$0a$\ncodeFinderRules.useAllRulesWhenTesting.b=true\n", "extractAllTags": true, "exportReplacements": {"patterns": [], "replacements": []}, "importReplacements": {"patterns": [], "replacements": []}',
- config_name = 'my_config',
- config_description = 'config for custom markdown escaping'
- )
- else :
- return EditFilterMappingParameters(
- config_name = 'my_config',
- config_description = 'config for custom markdown escaping',
- )
-
- def testEditFilterMappingParameters(self):
- """Test EditFilterMappingParameters"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_error.py b/test/test_error.py
index 3c741db..d484cac 100644
--- a/test/test_error.py
+++ b/test/test_error.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.error import Error # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.error import Error
class TestError(unittest.TestCase):
"""Error unit test stubs"""
@@ -29,25 +25,27 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> Error:
"""Test Error
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.error.Error() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `Error`
+ """
+ model = Error()
+ if include_optional:
return Error(
- message = None
+ message = ''
)
- else :
+ else:
return Error(
)
+ """
def testError(self):
"""Test Error"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_error2.py b/test/test_error2.py
deleted file mode 100644
index bcdf95d..0000000
--- a/test/test_error2.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.error2 import Error2 # noqa: E501
-from lilt.rest import ApiException
-
-class TestError2(unittest.TestCase):
- """Error2 unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test Error2
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.error2.Error2() # noqa: E501
- if include_optional :
- return Error2(
- message = None
- )
- else :
- return Error2(
- )
-
- def testError2(self):
- """Test Error2"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_file.py b/test/test_file.py
deleted file mode 100644
index 5266158..0000000
--- a/test/test_file.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.file import File # noqa: E501
-from lilt.rest import ApiException
-
-class TestFile(unittest.TestCase):
- """File unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test File
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.file.File() # noqa: E501
- if include_optional :
- return File(
- id = 46530,
- name = 'en_US.json',
- file_hash = '3858f62230ac3c915f300c664312c63f',
- export_uri = 'https://example.com/export',
- created_at = 1489147692,
- updated_at = 1489147692
- )
- else :
- return File(
- )
-
- def testFile(self):
- """Test File"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_file_delete_response.py b/test/test_file_delete_response.py
index e938fc5..1f92bf6 100644
--- a/test/test_file_delete_response.py
+++ b/test/test_file_delete_response.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.file_delete_response import FileDeleteResponse # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.file_delete_response import FileDeleteResponse
class TestFileDeleteResponse(unittest.TestCase):
"""FileDeleteResponse unit test stubs"""
@@ -29,26 +25,28 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> FileDeleteResponse:
"""Test FileDeleteResponse
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.file_delete_response.FileDeleteResponse() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `FileDeleteResponse`
+ """
+ model = FileDeleteResponse()
+ if include_optional:
return FileDeleteResponse(
- id = 12345,
+ id = 12345,
deleted = True
)
- else :
+ else:
return FileDeleteResponse(
)
+ """
def testFileDeleteResponse(self):
"""Test FileDeleteResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_file_response.py b/test/test_file_response.py
deleted file mode 100644
index 9ddaa97..0000000
--- a/test/test_file_response.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.file_response import FileResponse # noqa: E501
-from lilt.rest import ApiException
-
-class TestFileResponse(unittest.TestCase):
- """FileResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test FileResponse
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.file_response.FileResponse() # noqa: E501
- if include_optional :
- return FileResponse(
- id = 12345,
- deleted = True
- )
- else :
- return FileResponse(
- )
-
- def testFileResponse(self):
- """Test FileResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_files_api.py b/test/test_files_api.py
index 9b9bfec..1792778 100644
--- a/test/test_files_api.py
+++ b/test/test_files_api.py
@@ -1,52 +1,70 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import lilt
-from lilt.api.files_api import FilesApi # noqa: E501
-from lilt.rest import ApiException
+from lilt.api.files_api import FilesApi
class TestFilesApi(unittest.TestCase):
"""FilesApi unit test stubs"""
- def setUp(self):
- self.api = lilt.api.files_api.FilesApi() # noqa: E501
+ def setUp(self) -> None:
+ self.api = FilesApi()
- def tearDown(self):
+ def tearDown(self) -> None:
pass
- def test_delete_file(self):
+ def test_add_label(self) -> None:
+ """Test case for add_label
+
+ Add Label to File
+ """
+ pass
+
+ def test_delete_file(self) -> None:
"""Test case for delete_file
- Delete a File # noqa: E501
+ Delete a File
"""
pass
- def test_get_files(self):
+ def test_download(self) -> None:
+ """Test case for download
+
+ Download file
+ """
+ pass
+
+ def test_get_files(self) -> None:
"""Test case for get_files
- Retrieve a File # noqa: E501
+ Retrieve a File
+ """
+ pass
+
+ def test_remove_label(self) -> None:
+ """Test case for remove_label
+
+ Remove Label from File
"""
pass
- def test_upload_file(self):
+ def test_upload_file(self) -> None:
"""Test case for upload_file
- Upload a File # noqa: E501
+ Upload a File
"""
pass
diff --git a/test/test_filter_config.py b/test/test_filter_config.py
index 86023fa..b34563c 100644
--- a/test/test_filter_config.py
+++ b/test/test_filter_config.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/test/test_get_lilt_create_content_response.py b/test/test_get_lilt_create_content_response.py
index 080578f..ad589da 100644
--- a/test/test_get_lilt_create_content_response.py
+++ b/test/test_get_lilt_create_content_response.py
@@ -1,23 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.get_lilt_create_content_response import GetLiltCreateContentResponse # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.get_lilt_create_content_response import GetLiltCreateContentResponse
class TestGetLiltCreateContentResponse(unittest.TestCase):
"""GetLiltCreateContentResponse unit test stubs"""
@@ -28,40 +25,44 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> GetLiltCreateContentResponse:
"""Test GetLiltCreateContentResponse
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.get_lilt_create_content_response.GetLiltCreateContentResponse() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `GetLiltCreateContentResponse`
+ """
+ model = GetLiltCreateContentResponse()
+ if include_optional:
return GetLiltCreateContentResponse(
contents = [
lilt.models.lilt_create_content.LiltCreateContent(
- language = '0',
- template = '0',
- template_params = lilt.models.lilt_create_content_template_params.LiltCreateContentTemplateParams(
+ name = '',
+ id = 56,
+ language = '',
+ template = '',
+ template_params = lilt.models.lilt_create_content_template_params.LiltCreateContent_templateParams(
content_length = 56,
memory_id = 56,
- language = '0',
+ language = '',
sections = [
- '0'
+ ''
],
- summary = '0', ),
- preferences = lilt.models.lilt_create_content_preferences.LiltCreateContentPreferences(
- tone = '0',
- styleguide = '0', ), )
+ summary = '', ),
+ preferences = lilt.models.lilt_create_content_preferences.LiltCreateContent_preferences(
+ tone = '',
+ styleguide = '', ), )
]
)
- else :
+ else:
return GetLiltCreateContentResponse(
)
+ """
def testGetLiltCreateContentResponse(self):
"""Test GetLiltCreateContentResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_get_pending_uploads200_response_inner.py b/test/test_get_pending_uploads200_response_inner.py
new file mode 100644
index 0000000..cd76912
--- /dev/null
+++ b/test/test_get_pending_uploads200_response_inner.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from lilt.models.get_pending_uploads200_response_inner import GetPendingUploads200ResponseInner
+
+class TestGetPendingUploads200ResponseInner(unittest.TestCase):
+ """GetPendingUploads200ResponseInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetPendingUploads200ResponseInner:
+ """Test GetPendingUploads200ResponseInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetPendingUploads200ResponseInner`
+ """
+ model = GetPendingUploads200ResponseInner()
+ if include_optional:
+ return GetPendingUploads200ResponseInner(
+ id = 12345,
+ filename = 'document.xliff',
+ status = 'pending',
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
+ )
+ else:
+ return GetPendingUploads200ResponseInner(
+ )
+ """
+
+ def testGetPendingUploads200ResponseInner(self):
+ """Test GetPendingUploads200ResponseInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_s3_upload_params200_response.py b/test/test_get_s3_upload_params200_response.py
new file mode 100644
index 0000000..364abcf
--- /dev/null
+++ b/test/test_get_s3_upload_params200_response.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from lilt.models.get_s3_upload_params200_response import GetS3UploadParams200Response
+
+class TestGetS3UploadParams200Response(unittest.TestCase):
+ """GetS3UploadParams200Response unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetS3UploadParams200Response:
+ """Test GetS3UploadParams200Response
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetS3UploadParams200Response`
+ """
+ model = GetS3UploadParams200Response()
+ if include_optional:
+ return GetS3UploadParams200Response(
+ url = 'https://storage.googleapis.com/bucket/uploads/user123/file456.json?...',
+ key = 'uploads/user123/file456.json',
+ method = 'PUT'
+ )
+ else:
+ return GetS3UploadParams200Response(
+ )
+ """
+
+ def testGetS3UploadParams200Response(self):
+ """Test GetS3UploadParams200Response"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_initiate_multipart_upload200_response.py b/test/test_initiate_multipart_upload200_response.py
new file mode 100644
index 0000000..4c74dd0
--- /dev/null
+++ b/test/test_initiate_multipart_upload200_response.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from lilt.models.initiate_multipart_upload200_response import InitiateMultipartUpload200Response
+
+class TestInitiateMultipartUpload200Response(unittest.TestCase):
+ """InitiateMultipartUpload200Response unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> InitiateMultipartUpload200Response:
+ """Test InitiateMultipartUpload200Response
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `InitiateMultipartUpload200Response`
+ """
+ model = InitiateMultipartUpload200Response()
+ if include_optional:
+ return InitiateMultipartUpload200Response(
+ upload_id = 'abc123def456',
+ key = 'uploads/user123/large-file.zip'
+ )
+ else:
+ return InitiateMultipartUpload200Response(
+ )
+ """
+
+ def testInitiateMultipartUpload200Response(self):
+ """Test InitiateMultipartUpload200Response"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_initiate_multipart_upload_body.py b/test/test_initiate_multipart_upload_body.py
new file mode 100644
index 0000000..315e923
--- /dev/null
+++ b/test/test_initiate_multipart_upload_body.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from lilt.models.initiate_multipart_upload_body import InitiateMultipartUploadBody
+
+class TestInitiateMultipartUploadBody(unittest.TestCase):
+ """InitiateMultipartUploadBody unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> InitiateMultipartUploadBody:
+ """Test InitiateMultipartUploadBody
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `InitiateMultipartUploadBody`
+ """
+ model = InitiateMultipartUploadBody()
+ if include_optional:
+ return InitiateMultipartUploadBody(
+ filename = 'large-file.zip',
+ type = 'application/zip',
+ metadata = lilt.models.initiate_multipart_upload_body_metadata.InitiateMultipartUploadBody_metadata(
+ size = 104857600,
+ category = 'documents',
+ uuid = '123e4567-e89b-12d3-a456-426614174000',
+ labels = ["important","review-needed"], )
+ )
+ else:
+ return InitiateMultipartUploadBody(
+ filename = 'large-file.zip',
+ type = 'application/zip',
+ )
+ """
+
+ def testInitiateMultipartUploadBody(self):
+ """Test InitiateMultipartUploadBody"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_initiate_multipart_upload_body_metadata.py b/test/test_initiate_multipart_upload_body_metadata.py
new file mode 100644
index 0000000..4414463
--- /dev/null
+++ b/test/test_initiate_multipart_upload_body_metadata.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from lilt.models.initiate_multipart_upload_body_metadata import InitiateMultipartUploadBodyMetadata
+
+class TestInitiateMultipartUploadBodyMetadata(unittest.TestCase):
+ """InitiateMultipartUploadBodyMetadata unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> InitiateMultipartUploadBodyMetadata:
+ """Test InitiateMultipartUploadBodyMetadata
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `InitiateMultipartUploadBodyMetadata`
+ """
+ model = InitiateMultipartUploadBodyMetadata()
+ if include_optional:
+ return InitiateMultipartUploadBodyMetadata(
+ size = 104857600,
+ category = 'documents',
+ uuid = '123e4567-e89b-12d3-a456-426614174000',
+ labels = ["important","review-needed"]
+ )
+ else:
+ return InitiateMultipartUploadBodyMetadata(
+ )
+ """
+
+ def testInitiateMultipartUploadBodyMetadata(self):
+ """Test InitiateMultipartUploadBodyMetadata"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_initiate_upload_body.py b/test/test_initiate_upload_body.py
new file mode 100644
index 0000000..7d07f58
--- /dev/null
+++ b/test/test_initiate_upload_body.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from lilt.models.initiate_upload_body import InitiateUploadBody
+
+class TestInitiateUploadBody(unittest.TestCase):
+ """InitiateUploadBody unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> InitiateUploadBody:
+ """Test InitiateUploadBody
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `InitiateUploadBody`
+ """
+ model = InitiateUploadBody()
+ if include_optional:
+ return InitiateUploadBody(
+ filename = 'document.xliff',
+ type = 'video/mp4',
+ metadata = lilt.models.initiate_upload_body_metadata.InitiateUploadBody_metadata(
+ size = 1024,
+ category = 'documents',
+ uuid = '123e4567-e89b-12d3-a456-426614174000',
+ labels = ["important","review-needed"], )
+ )
+ else:
+ return InitiateUploadBody(
+ filename = 'document.xliff',
+ type = 'video/mp4',
+ )
+ """
+
+ def testInitiateUploadBody(self):
+ """Test InitiateUploadBody"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_initiate_upload_body_metadata.py b/test/test_initiate_upload_body_metadata.py
new file mode 100644
index 0000000..04a192d
--- /dev/null
+++ b/test/test_initiate_upload_body_metadata.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from lilt.models.initiate_upload_body_metadata import InitiateUploadBodyMetadata
+
+class TestInitiateUploadBodyMetadata(unittest.TestCase):
+ """InitiateUploadBodyMetadata unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> InitiateUploadBodyMetadata:
+ """Test InitiateUploadBodyMetadata
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `InitiateUploadBodyMetadata`
+ """
+ model = InitiateUploadBodyMetadata()
+ if include_optional:
+ return InitiateUploadBodyMetadata(
+ size = 1024,
+ category = 'documents',
+ uuid = '123e4567-e89b-12d3-a456-426614174000',
+ labels = ["important","review-needed"]
+ )
+ else:
+ return InitiateUploadBodyMetadata(
+ )
+ """
+
+ def testInitiateUploadBodyMetadata(self):
+ """Test InitiateUploadBodyMetadata"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_inline_response200.py b/test/test_inline_response200.py
deleted file mode 100644
index 072fd2c..0000000
--- a/test/test_inline_response200.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# coding: utf-8
-
-"""
- 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. # noqa: E501
-
- The version of the OpenAPI document: v3.0
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.inline_response200 import InlineResponse200 # noqa: E501
-from lilt.rest import ApiException
-
-class TestInlineResponse200(unittest.TestCase):
- """InlineResponse200 unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test InlineResponse200
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.inline_response200.InlineResponse200() # noqa: E501
- if include_optional :
- return InlineResponse200(
- id = 56
- )
- else :
- return InlineResponse200(
- )
-
- def testInlineResponse200(self):
- """Test InlineResponse200"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_job.py b/test/test_job.py
index 117480a..a978147 100644
--- a/test/test_job.py
+++ b/test/test_job.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.job import Job # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.job import Job
class TestJob(unittest.TestCase):
"""Job unit test stubs"""
@@ -29,21 +25,23 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> Job:
"""Test Job
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.job.Job() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `Job`
+ """
+ model = Job()
+ if include_optional:
return Job(
- name = 'My New Job',
- creation_status = 'COMPLETE',
- delivered_at = 56,
- status = 'active',
- due = '2021-06-03T13:43:00.000Z',
- id = 241,
- is_processing = 0,
+ name = 'My New Job',
+ creation_status = 'COMPLETE',
+ delivered_at = '2021-06-03T13:43Z',
+ status = 'active',
+ due = '2021-06-03T13:43Z',
+ id = 241,
+ is_processing = 0,
stats = lilt.models.job_stats.JobStats(
exact_words = 0,
fuzzy_words = 0,
@@ -69,21 +67,24 @@ def make_instance(self, include_optional):
created_at = '2021-04-01T13:43:00.000Z',
updated_at = '2021-06-03T13:43:00.000Z',
is_deleted = False,
- memory_id = 2134, )
+ memory_id = 2134,
+ workflow_status = 'READY_TO_START',
+ workflow_name = 'Translate > Review > Analyst Review', )
],
source_words = 0,
unique_language_pairs = 1,
- unique_linguists = 1, )
+ unique_linguists = 1,
+ workflow_status = 'READY_TO_START', )
)
- else :
+ else:
return Job(
)
+ """
def testJob(self):
"""Test Job"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_job_create_parameters.py b/test/test_job_create_parameters.py
index ec193d7..61ac74f 100644
--- a/test/test_job_create_parameters.py
+++ b/test/test_job_create_parameters.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.job_create_parameters import JobCreateParameters # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.job_create_parameters import JobCreateParameters
class TestJobCreateParameters(unittest.TestCase):
"""JobCreateParameters unit test stubs"""
@@ -29,57 +25,80 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> JobCreateParameters:
"""Test JobCreateParameters
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.job_create_parameters.JobCreateParameters() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `JobCreateParameters`
+ """
+ model = JobCreateParameters()
+ if include_optional:
return JobCreateParameters(
- name = 'My new Job',
- due = '2021-10-05T14:48:00.000Z',
+ name = 'My new Job',
language_pairs = [
lilt.models.language_pair.LanguagePair(
- src_lang = 'en',
- src_locale = 'US',
trg_lang = 'de',
trg_locale = 'DE',
due_date = '2021-10-03T13:43:00.000Z',
memory_id = 1241,
+ external_model_id = 44,
pretranslate = True,
auto_accept = True,
case_sensitive = True,
take_match_attribution = True,
- config_id = 2332, )
- ],
- file_ids = [298, 299]
+ config_id = 2332,
+ workflow_template_id = 14,
+ workflow_template_name = 56,
+ workflow_stage_assignments = [
+ lilt.models.workflow_stage_assignment.WorkflowStageAssignment(
+ workflow_stage_template_id = 12345,
+ user_id = 123,
+ email = 'username@domain.com', )
+ ], )
+ ],
+ file_ids = [298,299],
+ due = '2021-10-05T14:48:00.000Z',
+ src_lang = 'en',
+ src_locale = 'US',
+ is_plural = True,
+ workflow_template_id = 56,
+ domain_id = 1
)
- else :
+ else:
return JobCreateParameters(
name = 'My new Job',
language_pairs = [
lilt.models.language_pair.LanguagePair(
- src_lang = 'en',
- src_locale = 'US',
trg_lang = 'de',
trg_locale = 'DE',
due_date = '2021-10-03T13:43:00.000Z',
memory_id = 1241,
+ external_model_id = 44,
pretranslate = True,
auto_accept = True,
case_sensitive = True,
take_match_attribution = True,
- config_id = 2332, )
+ config_id = 2332,
+ workflow_template_id = 14,
+ workflow_template_name = 56,
+ workflow_stage_assignments = [
+ lilt.models.workflow_stage_assignment.WorkflowStageAssignment(
+ workflow_stage_template_id = 12345,
+ user_id = 123,
+ email = 'username@domain.com', )
+ ], )
],
- file_ids = [298, 299],
+ file_ids = [298,299],
+ src_lang = 'en',
+ src_locale = 'US',
)
+ """
def testJobCreateParameters(self):
"""Test JobCreateParameters"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_job_delete_response.py b/test/test_job_delete_response.py
index c0cc2fa..0de1914 100644
--- a/test/test_job_delete_response.py
+++ b/test/test_job_delete_response.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.job_delete_response import JobDeleteResponse # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.job_delete_response import JobDeleteResponse
class TestJobDeleteResponse(unittest.TestCase):
"""JobDeleteResponse unit test stubs"""
@@ -29,25 +25,27 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> JobDeleteResponse:
"""Test JobDeleteResponse
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.job_delete_response.JobDeleteResponse() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `JobDeleteResponse`
+ """
+ model = JobDeleteResponse()
+ if include_optional:
return JobDeleteResponse(
id = 241
)
- else :
+ else:
return JobDeleteResponse(
)
+ """
def testJobDeleteResponse(self):
"""Test JobDeleteResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_job_leverage_stats.py b/test/test_job_leverage_stats.py
index 8d275df..995a440 100644
--- a/test/test_job_leverage_stats.py
+++ b/test/test_job_leverage_stats.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.job_leverage_stats import JobLeverageStats # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.job_leverage_stats import JobLeverageStats
class TestJobLeverageStats(unittest.TestCase):
"""JobLeverageStats unit test stubs"""
@@ -29,18 +25,20 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> JobLeverageStats:
"""Test JobLeverageStats
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.job_leverage_stats.JobLeverageStats() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `JobLeverageStats`
+ """
+ model = JobLeverageStats()
+ if include_optional:
return JobLeverageStats(
- source_words = 0,
- exact_words = 0,
- fuzzy_words = 0,
- new_words = 0,
+ source_words = 0,
+ exact_words = 0,
+ fuzzy_words = 0,
+ new_words = 0,
projects = [
lilt.models.project_stats.ProjectStats(
id = 1,
@@ -50,15 +48,15 @@ def make_instance(self, include_optional):
new_words = 50, )
]
)
- else :
+ else:
return JobLeverageStats(
)
+ """
def testJobLeverageStats(self):
"""Test JobLeverageStats"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_job_leverage_stats_projects.py b/test/test_job_leverage_stats_projects.py
deleted file mode 100644
index d6c9f91..0000000
--- a/test/test_job_leverage_stats_projects.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.job_leverage_stats_projects import JobLeverageStatsProjects # noqa: E501
-from lilt.rest import ApiException
-
-class TestJobLeverageStatsProjects(unittest.TestCase):
- """JobLeverageStatsProjects unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test JobLeverageStatsProjects
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.job_leverage_stats_projects.JobLeverageStatsProjects() # noqa: E501
- if include_optional :
- return JobLeverageStatsProjects(
- id = 0,
- source_words = 0,
- exact_words = 0,
- fuzzy_words = 0,
- new_words = 0
- )
- else :
- return JobLeverageStatsProjects(
- )
-
- def testJobLeverageStatsProjects(self):
- """Test JobLeverageStatsProjects"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_job_project.py b/test/test_job_project.py
index ca4149c..b464e30 100644
--- a/test/test_job_project.py
+++ b/test/test_job_project.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.job_project import JobProject # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.job_project import JobProject
class TestJobProject(unittest.TestCase):
"""JobProject unit test stubs"""
@@ -29,39 +25,43 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> JobProject:
"""Test JobProject
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.job_project.JobProject() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `JobProject`
+ """
+ model = JobProject()
+ if include_optional:
return JobProject(
- id = 56,
- src_lang = 'en',
- src_locale = 'US',
- trg_lang = 'fr',
- trg_locale = 'CA',
- name = 'My new project',
- due = '2021-10-03T13:43:00.000Z',
- is_complete = False,
- is_archived = False,
- state = 'inProgress',
- num_source_tokens = 2134,
- created_at = '2021-04-01T13:43:00.000Z',
- updated_at = '2021-06-03T13:43:00.000Z',
- is_deleted = False,
- memory_id = 2134
+ id = 56,
+ src_lang = 'en',
+ src_locale = 'US',
+ trg_lang = 'fr',
+ trg_locale = 'CA',
+ name = 'My new project',
+ due = '2021-10-03T13:43:00.000Z',
+ is_complete = False,
+ is_archived = False,
+ state = 'inProgress',
+ num_source_tokens = 2134,
+ created_at = '2021-04-01T13:43:00.000Z',
+ updated_at = '2021-06-03T13:43:00.000Z',
+ is_deleted = False,
+ memory_id = 2134,
+ workflow_status = 'READY_TO_START',
+ workflow_name = 'Translate > Review > Analyst Review'
)
- else :
+ else:
return JobProject(
)
+ """
def testJobProject(self):
"""Test JobProject"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_job_stats.py b/test/test_job_stats.py
index 15f1122..6688480 100644
--- a/test/test_job_stats.py
+++ b/test/test_job_stats.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.job_stats import JobStats # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.job_stats import JobStats
class TestJobStats(unittest.TestCase):
"""JobStats unit test stubs"""
@@ -29,22 +25,24 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> JobStats:
"""Test JobStats
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.job_stats.JobStats() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `JobStats`
+ """
+ model = JobStats()
+ if include_optional:
return JobStats(
- exact_words = 0,
- fuzzy_words = 0,
- new_words = 0,
- num_delivered_projects = 0,
- num_language_pairs = 0,
- num_projects = 0,
- percent_reviewed = 0,
- percent_translated = 0,
+ exact_words = 0,
+ fuzzy_words = 0,
+ new_words = 0,
+ num_delivered_projects = 0,
+ num_language_pairs = 0,
+ num_projects = 0,
+ percent_reviewed = 0,
+ percent_translated = 0,
projects = [
lilt.models.job_project.JobProject(
id = 56,
@@ -61,21 +59,24 @@ def make_instance(self, include_optional):
created_at = '2021-04-01T13:43:00.000Z',
updated_at = '2021-06-03T13:43:00.000Z',
is_deleted = False,
- memory_id = 2134, )
- ],
- source_words = 0,
- unique_language_pairs = 1,
- unique_linguists = 1
+ memory_id = 2134,
+ workflow_status = 'READY_TO_START',
+ workflow_name = 'Translate > Review > Analyst Review', )
+ ],
+ source_words = 0,
+ unique_language_pairs = 1,
+ unique_linguists = 1,
+ workflow_status = 'READY_TO_START'
)
- else :
+ else:
return JobStats(
)
+ """
def testJobStats(self):
"""Test JobStats"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_job_update_parameters.py b/test/test_job_update_parameters.py
index b9a0963..ef2d441 100644
--- a/test/test_job_update_parameters.py
+++ b/test/test_job_update_parameters.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.job_update_parameters import JobUpdateParameters # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.job_update_parameters import JobUpdateParameters
class TestJobUpdateParameters(unittest.TestCase):
"""JobUpdateParameters unit test stubs"""
@@ -29,26 +25,30 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> JobUpdateParameters:
"""Test JobUpdateParameters
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.job_update_parameters.JobUpdateParameters() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `JobUpdateParameters`
+ """
+ model = JobUpdateParameters()
+ if include_optional:
return JobUpdateParameters(
- name = 'My new Job',
- due_date = 56
+ name = 'My new Job',
+ due_date = 56,
+ is_processing = 'ExportError',
+ processing_error_msg = 'Authentication failed. Check your Contentful API Key.'
)
- else :
+ else:
return JobUpdateParameters(
)
+ """
def testJobUpdateParameters(self):
"""Test JobUpdateParameters"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_jobs_api.py b/test/test_jobs_api.py
index a1efe4b..04afbd5 100644
--- a/test/test_jobs_api.py
+++ b/test/test_jobs_api.py
@@ -1,115 +1,112 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import lilt
-from lilt.api.jobs_api import JobsApi # noqa: E501
-from lilt.rest import ApiException
+from lilt.api.jobs_api import JobsApi
class TestJobsApi(unittest.TestCase):
"""JobsApi unit test stubs"""
- def setUp(self):
- self.api = lilt.api.jobs_api.JobsApi() # noqa: E501
+ def setUp(self) -> None:
+ self.api = JobsApi()
- def tearDown(self):
+ def tearDown(self) -> None:
pass
- def test_archive_job(self):
+ def test_archive_job(self) -> None:
"""Test case for archive_job
- Archive a Job # noqa: E501
+ Archive a Job
"""
pass
- def test_create_job(self):
+ def test_create_job(self) -> None:
"""Test case for create_job
- Create a Job # noqa: E501
+ Create a Job
"""
pass
- def test_delete_job(self):
+ def test_delete_job(self) -> None:
"""Test case for delete_job
- Delete a Job # noqa: E501
+ Delete a Job
"""
pass
- def test_deliver_job(self):
+ def test_deliver_job(self) -> None:
"""Test case for deliver_job
- Deliver a Job # noqa: E501
+ Deliver a Job
"""
pass
- def test_download_job(self):
+ def test_download_job(self) -> None:
"""Test case for download_job
- Download a Job # noqa: E501
+ Download a Job
"""
pass
- def test_export_job(self):
+ def test_export_job(self) -> None:
"""Test case for export_job
- Export a Job # noqa: E501
+ Export a Job
"""
pass
- def test_get_job(self):
+ def test_get_job(self) -> None:
"""Test case for get_job
- Retrieve a Job # noqa: E501
+ Retrieve a Job
"""
pass
- def test_get_job_leverage_stats(self):
+ def test_get_job_leverage_stats(self) -> None:
"""Test case for get_job_leverage_stats
- Retrieve Job Leverage Stats # noqa: E501
+ Retrieve Job Leverage Stats
"""
pass
- def test_reactivate_job(self):
+ def test_reactivate_job(self) -> None:
"""Test case for reactivate_job
- Reactivate a Job # noqa: E501
+ Reactivate a Job
"""
pass
- def test_retrieve_all_jobs(self):
+ def test_retrieve_all_jobs(self) -> None:
"""Test case for retrieve_all_jobs
- Retrieve all Jobs # noqa: E501
+ Retrieve all Jobs
"""
pass
- def test_unarchive_job(self):
+ def test_unarchive_job(self) -> None:
"""Test case for unarchive_job
- Unarchive a Job # noqa: E501
+ Unarchive a Job
"""
pass
- def test_update_job(self):
+ def test_update_job(self) -> None:
"""Test case for update_job
- Update a Job # noqa: E501
+ Update a Job
"""
pass
diff --git a/test/test_language_pair.py b/test/test_language_pair.py
index b741511..7a50b51 100644
--- a/test/test_language_pair.py
+++ b/test/test_language_pair.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.language_pair import LanguagePair # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.language_pair import LanguagePair
class TestLanguagePair(unittest.TestCase):
"""LanguagePair unit test stubs"""
@@ -29,37 +25,46 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> LanguagePair:
"""Test LanguagePair
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.language_pair.LanguagePair() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `LanguagePair`
+ """
+ model = LanguagePair()
+ if include_optional:
return LanguagePair(
- src_lang = 'en',
- src_locale = 'US',
- trg_lang = 'de',
- trg_locale = 'DE',
- due_date = '2021-10-03T13:43:00.000Z',
- memory_id = 1241,
- pretranslate = True,
- auto_accept = True,
- case_sensitive = True,
- take_match_attribution = True,
- config_id = 2332
+ trg_lang = 'de',
+ trg_locale = 'DE',
+ due_date = '2021-10-03T13:43:00.000Z',
+ memory_id = 1241,
+ external_model_id = 44,
+ pretranslate = True,
+ auto_accept = True,
+ case_sensitive = True,
+ take_match_attribution = True,
+ config_id = 2332,
+ workflow_template_id = 14,
+ workflow_template_name = 56,
+ workflow_stage_assignments = [
+ lilt.models.workflow_stage_assignment.WorkflowStageAssignment(
+ workflow_stage_template_id = 12345,
+ user_id = 123,
+ email = 'username@domain.com', )
+ ]
)
- else :
+ else:
return LanguagePair(
trg_lang = 'de',
memory_id = 1241,
)
+ """
def testLanguagePair(self):
"""Test LanguagePair"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_languages_api.py b/test/test_languages_api.py
index d5749ea..35106dc 100644
--- a/test/test_languages_api.py
+++ b/test/test_languages_api.py
@@ -1,38 +1,35 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import lilt
-from lilt.api.languages_api import LanguagesApi # noqa: E501
-from lilt.rest import ApiException
+from lilt.api.languages_api import LanguagesApi
class TestLanguagesApi(unittest.TestCase):
"""LanguagesApi unit test stubs"""
- def setUp(self):
- self.api = lilt.api.languages_api.LanguagesApi() # noqa: E501
+ def setUp(self) -> None:
+ self.api = LanguagesApi()
- def tearDown(self):
+ def tearDown(self) -> None:
pass
- def test_get_languages(self):
+ def test_get_languages(self) -> None:
"""Test case for get_languages
- Retrieve supported languages # noqa: E501
+ Retrieve supported languages
"""
pass
diff --git a/test/test_languages_response.py b/test/test_languages_response.py
index 44ca359..32a26a4 100644
--- a/test/test_languages_response.py
+++ b/test/test_languages_response.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.languages_response import LanguagesResponse # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.languages_response import LanguagesResponse
class TestLanguagesResponse(unittest.TestCase):
"""LanguagesResponse unit test stubs"""
@@ -29,26 +25,28 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> LanguagesResponse:
"""Test LanguagesResponse
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.languages_response.LanguagesResponse() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `LanguagesResponse`
+ """
+ model = LanguagesResponse()
+ if include_optional:
return LanguagesResponse(
- source_to_target = {"en":{"da":True,"de":True,"fr":True,"...":"..."},"...":"..."},
+ source_to_target = {"en":{"da":true,"de":true,"fr":true,"...":"..."},"...":"..."},
code_to_name = {"aa":"Afar","ab":"Abkhazian","af":"Afrikaans","...":"..."}
)
- else :
+ else:
return LanguagesResponse(
)
+ """
def testLanguagesResponse(self):
"""Test LanguagesResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_lexicon_api.py b/test/test_lexicon_api.py
deleted file mode 100644
index 7392a96..0000000
--- a/test/test_lexicon_api.py
+++ /dev/null
@@ -1,48 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-
-import lilt
-from lilt.api.lexicon_api import LexiconApi # noqa: E501
-from lilt.rest import ApiException
-
-
-class TestLexiconApi(unittest.TestCase):
- """LexiconApi unit test stubs"""
-
- def setUp(self):
- self.api = lilt.api.lexicon_api.LexiconApi() # noqa: E501
-
- def tearDown(self):
- pass
-
- def test_query_lexicon(self):
- """Test case for query_lexicon
-
- Query a Lexicon # noqa: E501
- """
- pass
-
- def test_update_lexicon(self):
- """Test case for update_lexicon
-
- Update a Lexicon # noqa: E501
- """
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_lexicon_entry.py b/test/test_lexicon_entry.py
deleted file mode 100644
index 9542dfb..0000000
--- a/test/test_lexicon_entry.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.lexicon_entry import LexiconEntry # noqa: E501
-from lilt.rest import ApiException
-
-class TestLexiconEntry(unittest.TestCase):
- """LexiconEntry unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test LexiconEntry
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.lexicon_entry.LexiconEntry() # noqa: E501
- if include_optional :
- return LexiconEntry(
- translations = [],
- examples = [
- [{"source":"Waschmaschine","sourceDelimiters":["",""],"target":["washing","machine"],"targetDelimiters":[""," ",""],"sourceSpan":{"start":0,"length":1},"targetSpan":{"start":1,"length":1},"similarity":0,"memoryId":10641}]
- ]
- )
- else :
- return LexiconEntry(
- )
-
- def testLexiconEntry(self):
- """Test LexiconEntry"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_lexicon_entry_examples.py b/test/test_lexicon_entry_examples.py
deleted file mode 100644
index c84b6b9..0000000
--- a/test/test_lexicon_entry_examples.py
+++ /dev/null
@@ -1,60 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.lexicon_entry_examples import LexiconEntryExamples # noqa: E501
-from lilt.rest import ApiException
-
-class TestLexiconEntryExamples(unittest.TestCase):
- """LexiconEntryExamples unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test LexiconEntryExamples
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.lexicon_entry_examples.LexiconEntryExamples() # noqa: E501
- if include_optional :
- return LexiconEntryExamples(
- source = '0',
- source_delimiters = [
- '0'
- ],
- target = '0',
- target_delimiters = [
- '0'
- ]
- )
- else :
- return LexiconEntryExamples(
- )
-
- def testLexiconEntryExamples(self):
- """Test LexiconEntryExamples"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_lexicon_entry_source_span.py b/test/test_lexicon_entry_source_span.py
deleted file mode 100644
index efc78cd..0000000
--- a/test/test_lexicon_entry_source_span.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.lexicon_entry_source_span import LexiconEntrySourceSpan # noqa: E501
-from lilt.rest import ApiException
-
-class TestLexiconEntrySourceSpan(unittest.TestCase):
- """LexiconEntrySourceSpan unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test LexiconEntrySourceSpan
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.lexicon_entry_source_span.LexiconEntrySourceSpan() # noqa: E501
- if include_optional :
- return LexiconEntrySourceSpan(
- start = 1.337,
- length = 1.337
- )
- else :
- return LexiconEntrySourceSpan(
- )
-
- def testLexiconEntrySourceSpan(self):
- """Test LexiconEntrySourceSpan"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_lexicon_entry_target_span.py b/test/test_lexicon_entry_target_span.py
deleted file mode 100644
index 960fb3a..0000000
--- a/test/test_lexicon_entry_target_span.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.lexicon_entry_target_span import LexiconEntryTargetSpan # noqa: E501
-from lilt.rest import ApiException
-
-class TestLexiconEntryTargetSpan(unittest.TestCase):
- """LexiconEntryTargetSpan unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test LexiconEntryTargetSpan
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.lexicon_entry_target_span.LexiconEntryTargetSpan() # noqa: E501
- if include_optional :
- return LexiconEntryTargetSpan(
- start = 1.337,
- length = 1.337
- )
- else :
- return LexiconEntryTargetSpan(
- )
-
- def testLexiconEntryTargetSpan(self):
- """Test LexiconEntryTargetSpan"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_lexicon_entry_translations.py b/test/test_lexicon_entry_translations.py
deleted file mode 100644
index 9d7765a..0000000
--- a/test/test_lexicon_entry_translations.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.lexicon_entry_translations import LexiconEntryTranslations # noqa: E501
-from lilt.rest import ApiException
-
-class TestLexiconEntryTranslations(unittest.TestCase):
- """LexiconEntryTranslations unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test LexiconEntryTranslations
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.lexicon_entry_translations.LexiconEntryTranslations() # noqa: E501
- if include_optional :
- return LexiconEntryTranslations(
- source = '0',
- target = '0',
- frequency = 1.337,
- memory_id = 1.337
- )
- else :
- return LexiconEntryTranslations(
- )
-
- def testLexiconEntryTranslations(self):
- """Test LexiconEntryTranslations"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_lexicon_update_parameters.py b/test/test_lexicon_update_parameters.py
deleted file mode 100644
index f2b1cc5..0000000
--- a/test/test_lexicon_update_parameters.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.lexicon_update_parameters import LexiconUpdateParameters # noqa: E501
-from lilt.rest import ApiException
-
-class TestLexiconUpdateParameters(unittest.TestCase):
- """LexiconUpdateParameters unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test LexiconUpdateParameters
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.lexicon_update_parameters.LexiconUpdateParameters() # noqa: E501
- if include_optional :
- return LexiconUpdateParameters(
- memory_id = 10641,
- source = 'washing machine',
- target = 'Waschmaschine'
- )
- else :
- return LexiconUpdateParameters(
- memory_id = 10641,
- source = 'washing machine',
- target = 'Waschmaschine',
- )
-
- def testLexiconUpdateParameters(self):
- """Test LexiconUpdateParameters"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_lexicon_update_response.py b/test/test_lexicon_update_response.py
deleted file mode 100644
index 9eb1ebb..0000000
--- a/test/test_lexicon_update_response.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.lexicon_update_response import LexiconUpdateResponse # noqa: E501
-from lilt.rest import ApiException
-
-class TestLexiconUpdateResponse(unittest.TestCase):
- """LexiconUpdateResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test LexiconUpdateResponse
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.lexicon_update_response.LexiconUpdateResponse() # noqa: E501
- if include_optional :
- return LexiconUpdateResponse(
- memory_id = 46530,
- success = True
- )
- else :
- return LexiconUpdateResponse(
- )
-
- def testLexiconUpdateResponse(self):
- """Test LexiconUpdateResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_lilt_create_content.py b/test/test_lilt_create_content.py
index 9f4102c..c7f8a37 100644
--- a/test/test_lilt_create_content.py
+++ b/test/test_lilt_create_content.py
@@ -1,23 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.lilt_create_content import LiltCreateContent # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.lilt_create_content import LiltCreateContent
class TestLiltCreateContent(unittest.TestCase):
"""LiltCreateContent unit test stubs"""
@@ -28,47 +25,51 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> LiltCreateContent:
"""Test LiltCreateContent
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.lilt_create_content.LiltCreateContent() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `LiltCreateContent`
+ """
+ model = LiltCreateContent()
+ if include_optional:
return LiltCreateContent(
- language = '0',
- template = '0',
- template_params = lilt.models.lilt_create_content_template_params.LiltCreateContentTemplateParams(
+ name = '',
+ id = 56,
+ language = '',
+ template = '',
+ template_params = lilt.models.lilt_create_content_template_params.LiltCreateContent_templateParams(
content_length = 56,
memory_id = 56,
- language = '0',
+ language = '',
sections = [
- '0'
+ ''
],
- summary = '0', ),
- preferences = lilt.models.lilt_create_content_preferences.LiltCreateContentPreferences(
- tone = '0',
- styleguide = '0', )
+ summary = '', ),
+ preferences = lilt.models.lilt_create_content_preferences.LiltCreateContent_preferences(
+ tone = '',
+ styleguide = '', )
)
- else :
+ else:
return LiltCreateContent(
- language = '0',
- template = '0',
- template_params = lilt.models.lilt_create_content_template_params.LiltCreateContentTemplateParams(
+ language = '',
+ template = '',
+ template_params = lilt.models.lilt_create_content_template_params.LiltCreateContent_templateParams(
content_length = 56,
memory_id = 56,
- language = '0',
+ language = '',
sections = [
- '0'
+ ''
],
- summary = '0', ),
+ summary = '', ),
)
+ """
def testLiltCreateContent(self):
"""Test LiltCreateContent"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_lilt_create_content_preferences.py b/test/test_lilt_create_content_preferences.py
index c6ab297..8005c97 100644
--- a/test/test_lilt_create_content_preferences.py
+++ b/test/test_lilt_create_content_preferences.py
@@ -1,23 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.lilt_create_content_preferences import LiltCreateContentPreferences # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.lilt_create_content_preferences import LiltCreateContentPreferences
class TestLiltCreateContentPreferences(unittest.TestCase):
"""LiltCreateContentPreferences unit test stubs"""
@@ -28,26 +25,28 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> LiltCreateContentPreferences:
"""Test LiltCreateContentPreferences
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.lilt_create_content_preferences.LiltCreateContentPreferences() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `LiltCreateContentPreferences`
+ """
+ model = LiltCreateContentPreferences()
+ if include_optional:
return LiltCreateContentPreferences(
- tone = '0',
- styleguide = '0'
+ tone = '',
+ styleguide = ''
)
- else :
+ else:
return LiltCreateContentPreferences(
)
+ """
def testLiltCreateContentPreferences(self):
"""Test LiltCreateContentPreferences"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_lilt_create_content_request.py b/test/test_lilt_create_content_request.py
index 13dd143..14209b1 100644
--- a/test/test_lilt_create_content_request.py
+++ b/test/test_lilt_create_content_request.py
@@ -1,23 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.lilt_create_content_request import LiltCreateContentRequest # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.lilt_create_content_request import LiltCreateContentRequest
class TestLiltCreateContentRequest(unittest.TestCase):
"""LiltCreateContentRequest unit test stubs"""
@@ -28,48 +25,50 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> LiltCreateContentRequest:
"""Test LiltCreateContentRequest
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.lilt_create_content_request.LiltCreateContentRequest() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `LiltCreateContentRequest`
+ """
+ model = LiltCreateContentRequest()
+ if include_optional:
return LiltCreateContentRequest(
- name = '0',
- language = '0',
- template = '0',
+ name = '',
+ language = '',
+ template = '',
template_params = lilt.models.lilt_create_content_template_params.LiltCreateContent_templateParams(
content_length = 56,
memory_id = 56,
- language = '0',
+ language = '',
sections = [
- '0'
+ ''
],
- summary = '0', ),
+ summary = '', ),
preferences = lilt.models.lilt_create_content_preferences.LiltCreateContent_preferences(
- tone = '0',
- styleguide = '0', )
+ tone = '',
+ styleguide = '', )
)
- else :
+ else:
return LiltCreateContentRequest(
- language = '0',
- template = '0',
+ language = '',
+ template = '',
template_params = lilt.models.lilt_create_content_template_params.LiltCreateContent_templateParams(
content_length = 56,
memory_id = 56,
- language = '0',
+ language = '',
sections = [
- '0'
+ ''
],
- summary = '0', ),
+ summary = '', ),
)
+ """
def testLiltCreateContentRequest(self):
"""Test LiltCreateContentRequest"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_lilt_create_content_template_params.py b/test/test_lilt_create_content_template_params.py
index ac53c35..6ac65cf 100644
--- a/test/test_lilt_create_content_template_params.py
+++ b/test/test_lilt_create_content_template_params.py
@@ -1,23 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.lilt_create_content_template_params import LiltCreateContentTemplateParams # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.lilt_create_content_template_params import LiltCreateContentTemplateParams
class TestLiltCreateContentTemplateParams(unittest.TestCase):
"""LiltCreateContentTemplateParams unit test stubs"""
@@ -28,32 +25,34 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> LiltCreateContentTemplateParams:
"""Test LiltCreateContentTemplateParams
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.lilt_create_content_template_params.LiltCreateContentTemplateParams() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `LiltCreateContentTemplateParams`
+ """
+ model = LiltCreateContentTemplateParams()
+ if include_optional:
return LiltCreateContentTemplateParams(
- content_length = 56,
- memory_id = 56,
- language = '0',
+ content_length = 56,
+ memory_id = 56,
+ language = '',
sections = [
- '0'
- ],
- summary = '0'
+ ''
+ ],
+ summary = ''
)
- else :
+ else:
return LiltCreateContentTemplateParams(
- language = '0',
+ language = '',
)
+ """
def testLiltCreateContentTemplateParams(self):
"""Test LiltCreateContentTemplateParams"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_match_band.py b/test/test_match_band.py
deleted file mode 100644
index c9b191b..0000000
--- a/test/test_match_band.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.match_band import MatchBand # noqa: E501
-from lilt.rest import ApiException
-
-class TestMatchBand(unittest.TestCase):
- """MatchBand unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test MatchBand
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.match_band.MatchBand() # noqa: E501
- if include_optional :
- return MatchBand(
- minimum_score = 94,
- maximum_score = 85,
- num_source_words = 151,
- num_segments = 12
- )
- else :
- return MatchBand(
- )
-
- def testMatchBand(self):
- """Test MatchBand"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_memories_api.py b/test/test_memories_api.py
index 510f81a..d493aec 100644
--- a/test/test_memories_api.py
+++ b/test/test_memories_api.py
@@ -1,101 +1,91 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import lilt
-from lilt.api.memories_api import MemoriesApi # noqa: E501
-from lilt.rest import ApiException
+from lilt.api.memories_api import MemoriesApi
class TestMemoriesApi(unittest.TestCase):
"""MemoriesApi unit test stubs"""
- def setUp(self):
- self.api = lilt.api.memories_api.MemoriesApi() # noqa: E501
+ def setUp(self) -> None:
+ self.api = MemoriesApi()
- def tearDown(self):
+ def tearDown(self) -> None:
pass
- def test_create_memory(self):
+ def test_create_memory(self) -> None:
"""Test case for create_memory
- Create a Memory # noqa: E501
+ Create a Memory
"""
pass
- def test_delete_memory(self):
+ def test_delete_memory(self) -> None:
"""Test case for delete_memory
- Delete a Memory # noqa: E501
+ Delete a Memory
"""
pass
- def test_get_memory(self):
- """Test case for get_memory
+ def test_delete_segment_from_memory(self) -> None:
+ """Test case for delete_segment_from_memory
- Retrieve a Memory # noqa: E501
+ Delete a segment from a memory.
"""
pass
- def test_import_memory_file(self):
- """Test case for import_memory_file
+ def test_download_termbase(self) -> None:
+ """Test case for download_termbase
- File import for a Memory # noqa: E501
+ Termbase download for a Memory
"""
pass
- def test_query_memory(self):
- """Test case for query_memory
+ def test_export_termbase(self) -> None:
+ """Test case for export_termbase
- Query a Memory # noqa: E501
+ Termbase export for a Memory
"""
pass
- def test_sync_delete_memory(self):
- """Test case for sync_delete_memory
-
- Delete-sync for a Memory # noqa: E501
- """
- pass
-
- def test_sync_down_memory(self):
- """Test case for sync_down_memory
+ def test_get_memory(self) -> None:
+ """Test case for get_memory
- Get-sync for a Memory # noqa: E501
+ Retrieve a Memory
"""
pass
- def test_sync_insert_memory(self):
- """Test case for sync_insert_memory
+ def test_import_memory_file(self) -> None:
+ """Test case for import_memory_file
- Insert-sync for a Memory # noqa: E501
+ File import for a Memory
"""
pass
- def test_sync_update_memory(self):
- """Test case for sync_update_memory
+ def test_query_memory(self) -> None:
+ """Test case for query_memory
- Update-sync for a Memory # noqa: E501
+ Query a Memory
"""
pass
- def test_update_memory(self):
+ def test_update_memory(self) -> None:
"""Test case for update_memory
- Update the name of a Memory # noqa: E501
+ Update the name of a Memory
"""
pass
diff --git a/test/test_memory.py b/test/test_memory.py
index 742c5e6..9e6bf25 100644
--- a/test/test_memory.py
+++ b/test/test_memory.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.memory import Memory # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.memory import Memory
class TestMemory(unittest.TestCase):
"""Memory unit test stubs"""
@@ -29,37 +25,39 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> Memory:
"""Test Memory
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.memory.Memory() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `Memory`
+ """
+ model = Memory()
+ if include_optional:
return Memory(
- id = 1234,
- srclang = 'en',
- trglang = 'fr',
- srclocale = 'US',
- trglocale = 'FR',
- name = 'Acme Corp Support Content',
- version = 78,
- created_at = 1489147692,
- updated_at = 1489147692,
- num_segments = 1028,
+ id = 1234,
+ srclang = 'en',
+ trglang = 'fr',
+ srclocale = 'US',
+ trglocale = 'FR',
+ name = 'Acme Corp Support Content',
+ is_processing = False,
+ version = 78,
+ created_at = 1489147692,
+ updated_at = 1489147692,
resources = [
- '0'
+ ''
]
)
- else :
+ else:
return Memory(
)
+ """
def testMemory(self):
"""Test Memory"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_memory_create_parameters.py b/test/test_memory_create_parameters.py
index 9852934..d0e8ac4 100644
--- a/test/test_memory_create_parameters.py
+++ b/test/test_memory_create_parameters.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.memory_create_parameters import MemoryCreateParameters # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.memory_create_parameters import MemoryCreateParameters
class TestMemoryCreateParameters(unittest.TestCase):
"""MemoryCreateParameters unit test stubs"""
@@ -29,32 +25,34 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> MemoryCreateParameters:
"""Test MemoryCreateParameters
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.memory_create_parameters.MemoryCreateParameters() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `MemoryCreateParameters`
+ """
+ model = MemoryCreateParameters()
+ if include_optional:
return MemoryCreateParameters(
- name = 'automotive',
- srclang = 'en',
- trglang = 'fr',
- srclocale = 'US',
+ name = 'automotive',
+ srclang = 'en',
+ trglang = 'fr',
+ srclocale = 'US',
trglocale = 'FR'
)
- else :
+ else:
return MemoryCreateParameters(
name = 'automotive',
srclang = 'en',
trglang = 'fr',
)
+ """
def testMemoryCreateParameters(self):
"""Test MemoryCreateParameters"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_memory_delete_response.py b/test/test_memory_delete_response.py
index 2798c1c..0da8d9f 100644
--- a/test/test_memory_delete_response.py
+++ b/test/test_memory_delete_response.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.memory_delete_response import MemoryDeleteResponse # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.memory_delete_response import MemoryDeleteResponse
class TestMemoryDeleteResponse(unittest.TestCase):
"""MemoryDeleteResponse unit test stubs"""
@@ -29,26 +25,28 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> MemoryDeleteResponse:
"""Test MemoryDeleteResponse
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.memory_delete_response.MemoryDeleteResponse() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `MemoryDeleteResponse`
+ """
+ model = MemoryDeleteResponse()
+ if include_optional:
return MemoryDeleteResponse(
- id = 46530,
+ id = 46530,
deleted = True
)
- else :
+ else:
return MemoryDeleteResponse(
)
+ """
def testMemoryDeleteResponse(self):
"""Test MemoryDeleteResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_memory_import_response.py b/test/test_memory_import_response.py
index fc676d5..4bfb916 100644
--- a/test/test_memory_import_response.py
+++ b/test/test_memory_import_response.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.memory_import_response import MemoryImportResponse # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.memory_import_response import MemoryImportResponse
class TestMemoryImportResponse(unittest.TestCase):
"""MemoryImportResponse unit test stubs"""
@@ -29,26 +25,28 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> MemoryImportResponse:
"""Test MemoryImportResponse
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.memory_import_response.MemoryImportResponse() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `MemoryImportResponse`
+ """
+ model = MemoryImportResponse()
+ if include_optional:
return MemoryImportResponse(
- id = 123,
+ id = 123,
is_processing = 1
)
- else :
+ else:
return MemoryImportResponse(
)
+ """
def testMemoryImportResponse(self):
"""Test MemoryImportResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_memory_insert_response.py b/test/test_memory_insert_response.py
deleted file mode 100644
index d33752f..0000000
--- a/test/test_memory_insert_response.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.memory_insert_response import MemoryInsertResponse # noqa: E501
-from lilt.rest import ApiException
-
-class TestMemoryInsertResponse(unittest.TestCase):
- """MemoryInsertResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test MemoryInsertResponse
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.memory_insert_response.MemoryInsertResponse() # noqa: E501
- if include_optional :
- return MemoryInsertResponse(
- id = 123,
- num_updates = 107
- )
- else :
- return MemoryInsertResponse(
- )
-
- def testMemoryInsertResponse(self):
- """Test MemoryInsertResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_memory_parameters.py b/test/test_memory_parameters.py
deleted file mode 100644
index 36b86df..0000000
--- a/test/test_memory_parameters.py
+++ /dev/null
@@ -1,60 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.memory_parameters import MemoryParameters # noqa: E501
-from lilt.rest import ApiException
-
-class TestMemoryParameters(unittest.TestCase):
- """MemoryParameters unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test MemoryParameters
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.memory_parameters.MemoryParameters() # noqa: E501
- if include_optional :
- return MemoryParameters(
- name = 'automotive',
- srclang = 'en',
- trglang = 'fr',
- srclocale = 'US',
- trglocale = 'FR'
- )
- else :
- return MemoryParameters(
- name = 'automotive',
- srclang = 'en',
- trglang = 'fr',
- )
-
- def testMemoryParameters(self):
- """Test MemoryParameters"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_memory_update_parameters.py b/test/test_memory_update_parameters.py
index cbbe0be..b3012a0 100644
--- a/test/test_memory_update_parameters.py
+++ b/test/test_memory_update_parameters.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.memory_update_parameters import MemoryUpdateParameters # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.memory_update_parameters import MemoryUpdateParameters
class TestMemoryUpdateParameters(unittest.TestCase):
"""MemoryUpdateParameters unit test stubs"""
@@ -29,28 +25,30 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> MemoryUpdateParameters:
"""Test MemoryUpdateParameters
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.memory_update_parameters.MemoryUpdateParameters() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `MemoryUpdateParameters`
+ """
+ model = MemoryUpdateParameters()
+ if include_optional:
return MemoryUpdateParameters(
- id = 7246,
+ id = 7246,
name = 'Automotive Memory'
)
- else :
+ else:
return MemoryUpdateParameters(
id = 7246,
name = 'Automotive Memory',
)
+ """
def testMemoryUpdateParameters(self):
"""Test MemoryUpdateParameters"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_memory_update_response.py b/test/test_memory_update_response.py
deleted file mode 100644
index aab0671..0000000
--- a/test/test_memory_update_response.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.memory_update_response import MemoryUpdateResponse # noqa: E501
-from lilt.rest import ApiException
-
-class TestMemoryUpdateResponse(unittest.TestCase):
- """MemoryUpdateResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test MemoryUpdateResponse
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.memory_update_response.MemoryUpdateResponse() # noqa: E501
- if include_optional :
- return MemoryUpdateResponse(
- id = 123,
- num_updates = 56
- )
- else :
- return MemoryUpdateResponse(
- )
-
- def testMemoryUpdateResponse(self):
- """Test MemoryUpdateResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_model.py b/test/test_model.py
index b6dc051..647be55 100644
--- a/test/test_model.py
+++ b/test/test_model.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/test/test_next_workflow_task.py b/test/test_next_workflow_task.py
deleted file mode 100644
index 4f2e85c..0000000
--- a/test/test_next_workflow_task.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.next_workflow_task import NextWorkflowTask # noqa: E501
-from lilt.rest import ApiException
-
-class TestNextWorkflowTask(unittest.TestCase):
- """NextWorkflowTask unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test NextWorkflowTask
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.next_workflow_task.NextWorkflowTask() # noqa: E501
- if include_optional :
- return NextWorkflowTask(
- status = 'SUCCESS',
- new_task_id = 123,
- new_stage_name = 'Review'
- )
- else :
- return NextWorkflowTask(
- status = 'SUCCESS',
- )
-
- def testNextWorkflowTask(self):
- """Test NextWorkflowTask"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_project.py b/test/test_project.py
index bf68ecc..50d7da3 100644
--- a/test/test_project.py
+++ b/test/test_project.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.project import Project # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.project import Project
class TestProject(unittest.TestCase):
"""Project unit test stubs"""
@@ -29,27 +25,32 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> Project:
"""Test Project
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.project.Project() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `Project`
+ """
+ model = Project()
+ if include_optional:
return Project(
- id = 448,
- memory_id = 1234,
- srclang = 'en',
- trglang = 'fr',
- srclocale = 'US',
- trglocale = 'FR',
- name = 'My New Project',
- state = 'backlog',
- due_date = 1489147692,
- archived = False,
- metadata = {"connectorType":"github","notes":"example metadata"},
- created_at = 1489147692,
- updated_at = 1489147692,
+ id = 448,
+ memory_id = 1234,
+ job_id = 1234,
+ srclang = 'en',
+ trglang = 'fr',
+ srclocale = 'US',
+ trglocale = 'FR',
+ name = 'My New Project',
+ state = 'backlog',
+ due_date = 1489147692,
+ archived = False,
+ metadata = {"connectorType":"github","notes":"example metadata"},
+ sample_review_percentage = 20,
+ created_at = 1489147692,
+ updated_at = 1489147692,
+ workflow_status = 'READY_TO_START',
document = [
lilt.models.document_without_segments.DocumentWithoutSegments(
id = 46530,
@@ -67,19 +68,21 @@ def make_instance(self, include_optional):
status = {"pretranslation":"idle"},
translator_email = 'translator@example.com',
reviewer_email = 'reviewer@example.com',
+ customer_reviewer_email = 'reviewer@example.com',
created_at = 1489147692,
- updated_at = 1489147692, )
+ updated_at = 1489147692,
+ is_review_complete = True, )
]
)
- else :
+ else:
return Project(
)
+ """
def testProject(self):
"""Test Project"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_project_create_parameters.py b/test/test_project_create_parameters.py
index cc44901..fdb6eef 100644
--- a/test/test_project_create_parameters.py
+++ b/test/test_project_create_parameters.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.project_create_parameters import ProjectCreateParameters # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.project_create_parameters import ProjectCreateParameters
class TestProjectCreateParameters(unittest.TestCase):
"""ProjectCreateParameters unit test stubs"""
@@ -29,32 +25,44 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> ProjectCreateParameters:
"""Test ProjectCreateParameters
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.project_create_parameters.ProjectCreateParameters() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `ProjectCreateParameters`
+ """
+ model = ProjectCreateParameters()
+ if include_optional:
return ProjectCreateParameters(
- name = 'My new project',
- memory_id = 1234,
- job_id = 1234,
- due_date = 1489147692,
- metadata = {"connectorType":"github","notes":"example metadata"},
- workflow_template_id = 14
+ name = 'My new project',
+ memory_id = 1234,
+ job_id = 1234,
+ due_date = 1489147692,
+ metadata = {"connectorType":"github","notes":"example metadata"},
+ workflow_template_id = 14,
+ workflow_template_name = 'Translate > Review',
+ llm_provider = 'neural',
+ external_model_id = 111,
+ is_plural = False,
+ require_batch_qa_translator = False,
+ enable_prompt_labeling = False,
+ job_type = 'TRANSLATION',
+ additional_guidelines = 'Provide consistent style across all chapters.',
+ is_enhanced_human_ai_optimized = False,
+ domain_id = 234
)
- else :
+ else:
return ProjectCreateParameters(
name = 'My new project',
memory_id = 1234,
)
+ """
def testProjectCreateParameters(self):
"""Test ProjectCreateParameters"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_project_delete_response.py b/test/test_project_delete_response.py
index 5989ffb..48fbfdc 100644
--- a/test/test_project_delete_response.py
+++ b/test/test_project_delete_response.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.project_delete_response import ProjectDeleteResponse # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.project_delete_response import ProjectDeleteResponse
class TestProjectDeleteResponse(unittest.TestCase):
"""ProjectDeleteResponse unit test stubs"""
@@ -29,26 +25,28 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> ProjectDeleteResponse:
"""Test ProjectDeleteResponse
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.project_delete_response.ProjectDeleteResponse() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `ProjectDeleteResponse`
+ """
+ model = ProjectDeleteResponse()
+ if include_optional:
return ProjectDeleteResponse(
- id = 46530,
+ id = 46530,
deleted = True
)
- else :
+ else:
return ProjectDeleteResponse(
)
+ """
def testProjectDeleteResponse(self):
"""Test ProjectDeleteResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_project_parameters.py b/test/test_project_parameters.py
deleted file mode 100644
index d2b8800..0000000
--- a/test/test_project_parameters.py
+++ /dev/null
@@ -1,59 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.project_parameters import ProjectParameters # noqa: E501
-from lilt.rest import ApiException
-
-class TestProjectParameters(unittest.TestCase):
- """ProjectParameters unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test ProjectParameters
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.project_parameters.ProjectParameters() # noqa: E501
- if include_optional :
- return ProjectParameters(
- name = 'My new project',
- memory_id = 1234,
- file_ids = [123, 124, 125],
- due_date = 1489147692,
- metadata = {"connectorType":"github","notes":"example metadata"}
- )
- else :
- return ProjectParameters(
- name = 'My new project',
- memory_id = 1234,
- )
-
- def testProjectParameters(self):
- """Test ProjectParameters"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_project_quote.py b/test/test_project_quote.py
deleted file mode 100644
index b96f29e..0000000
--- a/test/test_project_quote.py
+++ /dev/null
@@ -1,81 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.project_quote import ProjectQuote # noqa: E501
-from lilt.rest import ApiException
-
-class TestProjectQuote(unittest.TestCase):
- """ProjectQuote unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test ProjectQuote
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.project_quote.ProjectQuote() # noqa: E501
- if include_optional :
- return ProjectQuote(
- id = 21902,
- num_source_words = 8000,
- num_words_new = 6039,
- num_segments_new = 151,
- num_words_repetition = 12,
- num_segments_repetition = 2980000,
- bands = [
- lilt.models.match_band.MatchBand(
- minimum_score = 94,
- maximum_score = 85,
- num_source_words = 151,
- num_segments = 12, )
- ],
- documents = [
- lilt.models.document_quote.DocumentQuote(
- id = 21902,
- num_source_words = 8000,
- num_words_new = 6039,
- num_segments_new = 151,
- num_words_repetition = 12,
- num_segments_repetition = 2980000,
- bands = [
- lilt.models.match_band.MatchBand(
- minimum_score = 94,
- maximum_score = 85,
- num_source_words = 151,
- num_segments = 12, )
- ], )
- ]
- )
- else :
- return ProjectQuote(
- )
-
- def testProjectQuote(self):
- """Test ProjectQuote"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_project_stats.py b/test/test_project_stats.py
index b1aef3c..13a8398 100644
--- a/test/test_project_stats.py
+++ b/test/test_project_stats.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.project_stats import ProjectStats # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.project_stats import ProjectStats
class TestProjectStats(unittest.TestCase):
"""ProjectStats unit test stubs"""
@@ -29,21 +25,23 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> ProjectStats:
"""Test ProjectStats
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.project_stats.ProjectStats() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `ProjectStats`
+ """
+ model = ProjectStats()
+ if include_optional:
return ProjectStats(
- id = 1,
- source_words = 1000,
- exact_words = 800,
- fuzzy_words = 150,
+ id = 1,
+ source_words = 1000,
+ exact_words = 800,
+ fuzzy_words = 150,
new_words = 50
)
- else :
+ else:
return ProjectStats(
id = 1,
source_words = 1000,
@@ -51,12 +49,12 @@ def make_instance(self, include_optional):
fuzzy_words = 150,
new_words = 50,
)
+ """
def testProjectStats(self):
"""Test ProjectStats"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_project_status.py b/test/test_project_status.py
deleted file mode 100644
index cea18dd..0000000
--- a/test/test_project_status.py
+++ /dev/null
@@ -1,76 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.project_status import ProjectStatus # noqa: E501
-from lilt.rest import ApiException
-
-class TestProjectStatus(unittest.TestCase):
- """ProjectStatus unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test ProjectStatus
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.project_status.ProjectStatus() # noqa: E501
- if include_optional :
- return ProjectStatus(
- id = 21902,
- num_source_words = 6039,
- num_words_confirmed = 151,
- num_words_reviewed = 12,
- time_elapsed = 2980000,
- time_elapsed_translation = 33487,
- time_elapsed_research = 912348,
- time_elapsed_review = 66521,
- resources = [
- lilt.models.resource_status.ResourceStatus(
- email = 'joe.strummer@lilt.com',
- name = 'Joe Strummer',
- num_words_confirmed = 151,
- num_words_new = 12,
- num_words_fuzzy = 24,
- num_words_exact = 56,
- num_words_reviewed = 182,
- time_elapsed = 1172000,
- time_elapsed_translation = 1172000,
- time_elapsed_research = 1172000,
- time_elapsed_review = 1172000,
- num_segments_confirmed = 25,
- num_segments_reviewed = 30, )
- ]
- )
- else :
- return ProjectStatus(
- )
-
- def testProjectStatus(self):
- """Test ProjectStatus"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_project_update_response.py b/test/test_project_update_response.py
deleted file mode 100644
index b133858..0000000
--- a/test/test_project_update_response.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.project_update_response import ProjectUpdateResponse # noqa: E501
-from lilt.rest import ApiException
-
-class TestProjectUpdateResponse(unittest.TestCase):
- """ProjectUpdateResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test ProjectUpdateResponse
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.project_update_response.ProjectUpdateResponse() # noqa: E501
- if include_optional :
- return ProjectUpdateResponse(
- name = 'Walker Percy Essays',
- state = 'backlog',
- due_date = 1489147692,
- archived = False,
- metadata = {"connectorType":"github","notes":"example metadata"},
- sample_review_percentage = 20
- )
- else :
- return ProjectUpdateResponse(
- )
-
- def testProjectUpdateResponse(self):
- """Test ProjectUpdateResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_projects_api.py b/test/test_projects_api.py
index bdaca4d..8aa9fe2 100644
--- a/test/test_projects_api.py
+++ b/test/test_projects_api.py
@@ -1,73 +1,49 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import lilt
-from lilt.api.projects_api import ProjectsApi # noqa: E501
-from lilt.rest import ApiException
+from lilt.api.projects_api import ProjectsApi
class TestProjectsApi(unittest.TestCase):
"""ProjectsApi unit test stubs"""
- def setUp(self):
- self.api = lilt.api.projects_api.ProjectsApi() # noqa: E501
+ def setUp(self) -> None:
+ self.api = ProjectsApi()
- def tearDown(self):
+ def tearDown(self) -> None:
pass
- def test_create_project(self):
+ def test_create_project(self) -> None:
"""Test case for create_project
- Create a Project # noqa: E501
+ Create a Project
"""
pass
- def test_delete_project(self):
+ def test_delete_project(self) -> None:
"""Test case for delete_project
- Delete a Project # noqa: E501
- """
- pass
-
- def test_get_project(self):
- """Test case for get_project
-
- Retrieve a Project # noqa: E501
- """
- pass
-
- def test_get_project_report(self):
- """Test case for get_project_report
-
- Retrieve Project report # noqa: E501
- """
- pass
-
- def test_get_project_status(self):
- """Test case for get_project_status
-
- Retrieve Project status # noqa: E501
+ Delete a Project
"""
pass
- def test_update_project(self):
- """Test case for update_project
+ def test_get_projects(self) -> None:
+ """Test case for get_projects
- Update a Project # noqa: E501
+ Retrieve a Project
"""
pass
diff --git a/test/test_projects_to_deliver.py b/test/test_projects_to_deliver.py
deleted file mode 100644
index a7a43b8..0000000
--- a/test/test_projects_to_deliver.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.projects_to_deliver import ProjectsToDeliver # noqa: E501
-from lilt.rest import ApiException
-
-class TestProjectsToDeliver(unittest.TestCase):
- """ProjectsToDeliver unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test ProjectsToDeliver
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.projects_to_deliver.ProjectsToDeliver() # noqa: E501
- if include_optional :
- return ProjectsToDeliver(
- project_ids = [
- 1234
- ]
- )
- else :
- return ProjectsToDeliver(
- project_ids = [
- 1234
- ],
- )
-
- def testProjectsToDeliver(self):
- """Test ProjectsToDeliver"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_projects_to_update.py b/test/test_projects_to_update.py
deleted file mode 100644
index ebf8381..0000000
--- a/test/test_projects_to_update.py
+++ /dev/null
@@ -1,72 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.projects_to_update import ProjectsToUpdate # noqa: E501
-from lilt.rest import ApiException
-
-class TestProjectsToUpdate(unittest.TestCase):
- """ProjectsToUpdate unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test ProjectsToUpdate
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.projects_to_update.ProjectsToUpdate() # noqa: E501
- if include_optional :
- return ProjectsToUpdate(
- project_ids = [
- 1234
- ],
- project = lilt.models.project_update_response.ProjectUpdateResponse(
- name = 'Walker Percy Essays',
- state = 'backlog',
- due_date = 1489147692,
- archived = False,
- metadata = {"connectorType":"github","notes":"example metadata"},
- sample_review_percentage = 20, )
- )
- else :
- return ProjectsToUpdate(
- project_ids = [
- 1234
- ],
- project = lilt.models.project_update_response.ProjectUpdateResponse(
- name = 'Walker Percy Essays',
- state = 'backlog',
- due_date = 1489147692,
- archived = False,
- metadata = {"connectorType":"github","notes":"example metadata"},
- sample_review_percentage = 20, ),
- )
-
- def testProjectsToUpdate(self):
- """Test ProjectsToUpdate"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_qa_api.py b/test/test_qa_api.py
deleted file mode 100644
index 32b2859..0000000
--- a/test/test_qa_api.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-
-import lilt
-from lilt.api.qa_api import QAApi # noqa: E501
-from lilt.rest import ApiException
-
-
-class TestQAApi(unittest.TestCase):
- """QAApi unit test stubs"""
-
- def setUp(self):
- self.api = lilt.api.qa_api.QAApi() # noqa: E501
-
- def tearDown(self):
- pass
-
- def test_qa_check(self):
- """Test case for qa_check
-
- Perform QA check # noqa: E501
- """
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_qa_rule_matches.py b/test/test_qa_rule_matches.py
deleted file mode 100644
index b0de979..0000000
--- a/test/test_qa_rule_matches.py
+++ /dev/null
@@ -1,73 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.qa_rule_matches import QARuleMatches # noqa: E501
-from lilt.rest import ApiException
-
-class TestQARuleMatches(unittest.TestCase):
- """QARuleMatches unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test QARuleMatches
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.qa_rule_matches.QARuleMatches() # noqa: E501
- if include_optional :
- return QARuleMatches(
- matches = [
- lilt.models.qa_rule_matches_matches.QARuleMatches_matches(
- context = lilt.models.qa_rule_matches_context.QARuleMatches_context(
- length = 7,
- offset = 19,
- text = 'This segment has a speling mistake', ),
- length = 7,
- message = 'Possible spelling mistake found',
- offset = 19,
- replacements = [],
- rule = lilt.models.qa_rule_matches_rule.QARuleMatches_rule(
- category = lilt.models.qa_rule_matches_rule_category.QARuleMatches_rule_category(
- id = 'TYPOS',
- name = 'Possible Typo', ),
- description = 'Possible spelling mistake',
- id = 'MORFOLOGIK_RULE_EN_US',
- issue_type = 'misspelling',
- sub_id = '0',
- urls = [], ),
- short_message = 'Spelling mistake', )
- ]
- )
- else :
- return QARuleMatches(
- )
-
- def testQARuleMatches(self):
- """Test QARuleMatches"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_qa_rule_matches_context.py b/test/test_qa_rule_matches_context.py
deleted file mode 100644
index 945bd1d..0000000
--- a/test/test_qa_rule_matches_context.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.qa_rule_matches_context import QARuleMatchesContext # noqa: E501
-from lilt.rest import ApiException
-
-class TestQARuleMatchesContext(unittest.TestCase):
- """QARuleMatchesContext unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test QARuleMatchesContext
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.qa_rule_matches_context.QARuleMatchesContext() # noqa: E501
- if include_optional :
- return QARuleMatchesContext(
- length = 7,
- offset = 19,
- text = 'This segment has a speling mistake'
- )
- else :
- return QARuleMatchesContext(
- length = 7,
- offset = 19,
- text = 'This segment has a speling mistake',
- )
-
- def testQARuleMatchesContext(self):
- """Test QARuleMatchesContext"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_qa_rule_matches_custom_rules.py b/test/test_qa_rule_matches_custom_rules.py
deleted file mode 100644
index 057d195..0000000
--- a/test/test_qa_rule_matches_custom_rules.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.qa_rule_matches_custom_rules import QARuleMatchesCustomRules # noqa: E501
-from lilt.rest import ApiException
-
-class TestQARuleMatchesCustomRules(unittest.TestCase):
- """QARuleMatchesCustomRules unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test QARuleMatchesCustomRules
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.qa_rule_matches_custom_rules.QARuleMatchesCustomRules() # noqa: E501
- if include_optional :
- return QARuleMatchesCustomRules(
- description = 'Mistake detected by a custom rule.'
- )
- else :
- return QARuleMatchesCustomRules(
- )
-
- def testQARuleMatchesCustomRules(self):
- """Test QARuleMatchesCustomRules"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_qa_rule_matches_matches.py b/test/test_qa_rule_matches_matches.py
deleted file mode 100644
index 1f5dce6..0000000
--- a/test/test_qa_rule_matches_matches.py
+++ /dev/null
@@ -1,78 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.qa_rule_matches_matches import QARuleMatchesMatches # noqa: E501
-from lilt.rest import ApiException
-
-class TestQARuleMatchesMatches(unittest.TestCase):
- """QARuleMatchesMatches unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test QARuleMatchesMatches
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.qa_rule_matches_matches.QARuleMatchesMatches() # noqa: E501
- if include_optional :
- return QARuleMatchesMatches(
- context = lilt.models.qa_rule_matches_context.QARuleMatches_context(
- length = 7,
- offset = 19,
- text = 'This segment has a speling mistake', ),
- length = 7,
- message = 'Possible spelling mistake found',
- offset = 19,
- replacements = [],
- rule = lilt.models.qa_rule_matches_rule.QARuleMatches_rule(
- category = lilt.models.qa_rule_matches_rule_category.QARuleMatches_rule_category(
- id = 'TYPOS',
- name = 'Possible Typo', ),
- description = 'Possible spelling mistake',
- id = 'MORFOLOGIK_RULE_EN_US',
- issue_type = 'misspelling',
- sub_id = '0',
- urls = [], ),
- short_message = 'Spelling mistake'
- )
- else :
- return QARuleMatchesMatches(
- context = lilt.models.qa_rule_matches_context.QARuleMatches_context(
- length = 7,
- offset = 19,
- text = 'This segment has a speling mistake', ),
- length = 7,
- message = 'Possible spelling mistake found',
- offset = 19,
- replacements = [],
- )
-
- def testQARuleMatchesMatches(self):
- """Test QARuleMatchesMatches"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_qa_rule_matches_replacements.py b/test/test_qa_rule_matches_replacements.py
deleted file mode 100644
index dcb6e01..0000000
--- a/test/test_qa_rule_matches_replacements.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.qa_rule_matches_replacements import QARuleMatchesReplacements # noqa: E501
-from lilt.rest import ApiException
-
-class TestQARuleMatchesReplacements(unittest.TestCase):
- """QARuleMatchesReplacements unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test QARuleMatchesReplacements
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.qa_rule_matches_replacements.QARuleMatchesReplacements() # noqa: E501
- if include_optional :
- return QARuleMatchesReplacements(
- value = '0'
- )
- else :
- return QARuleMatchesReplacements(
- )
-
- def testQARuleMatchesReplacements(self):
- """Test QARuleMatchesReplacements"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_qa_rule_matches_rule.py b/test/test_qa_rule_matches_rule.py
deleted file mode 100644
index e356da5..0000000
--- a/test/test_qa_rule_matches_rule.py
+++ /dev/null
@@ -1,50 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.qa_rule_matches_rule import QARuleMatchesRule # noqa: E501
-from lilt.rest import ApiException
-
-class TestQARuleMatchesRule(unittest.TestCase):
- """QARuleMatchesRule unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test QARuleMatchesRule
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.qa_rule_matches_rule.QARuleMatchesRule() # noqa: E501
- if include_optional :
- return QARuleMatchesRule()
- else :
- return QARuleMatchesRule()
-
- def testQARuleMatchesRule(self):
- """Test QARuleMatchesRule"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_qa_rule_matches_rule_category.py b/test/test_qa_rule_matches_rule_category.py
deleted file mode 100644
index e654806..0000000
--- a/test/test_qa_rule_matches_rule_category.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.qa_rule_matches_rule_category import QARuleMatchesRuleCategory # noqa: E501
-from lilt.rest import ApiException
-
-class TestQARuleMatchesRuleCategory(unittest.TestCase):
- """QARuleMatchesRuleCategory unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test QARuleMatchesRuleCategory
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.qa_rule_matches_rule_category.QARuleMatchesRuleCategory() # noqa: E501
- if include_optional :
- return QARuleMatchesRuleCategory(
- id = 'TYPOS',
- name = 'Possible Typo'
- )
- else :
- return QARuleMatchesRuleCategory(
- )
-
- def testQARuleMatchesRuleCategory(self):
- """Test QARuleMatchesRuleCategory"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_qa_rule_matches_rule_urls.py b/test/test_qa_rule_matches_rule_urls.py
deleted file mode 100644
index b62ab10..0000000
--- a/test/test_qa_rule_matches_rule_urls.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.qa_rule_matches_rule_urls import QARuleMatchesRuleUrls # noqa: E501
-from lilt.rest import ApiException
-
-class TestQARuleMatchesRuleUrls(unittest.TestCase):
- """QARuleMatchesRuleUrls unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test QARuleMatchesRuleUrls
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.qa_rule_matches_rule_urls.QARuleMatchesRuleUrls() # noqa: E501
- if include_optional :
- return QARuleMatchesRuleUrls(
- value = '0'
- )
- else :
- return QARuleMatchesRuleUrls(
- )
-
- def testQARuleMatchesRuleUrls(self):
- """Test QARuleMatchesRuleUrls"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_resource_status.py b/test/test_resource_status.py
deleted file mode 100644
index 0d9637e..0000000
--- a/test/test_resource_status.py
+++ /dev/null
@@ -1,65 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.resource_status import ResourceStatus # noqa: E501
-from lilt.rest import ApiException
-
-class TestResourceStatus(unittest.TestCase):
- """ResourceStatus unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test ResourceStatus
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.resource_status.ResourceStatus() # noqa: E501
- if include_optional :
- return ResourceStatus(
- email = 'joe.strummer@lilt.com',
- name = 'Joe Strummer',
- num_words_confirmed = 151,
- num_words_new = 12,
- num_words_fuzzy = 24,
- num_words_exact = 56,
- num_words_reviewed = 182,
- time_elapsed = 1172000,
- time_elapsed_translation = 1172000,
- time_elapsed_research = 1172000,
- time_elapsed_review = 1172000,
- num_segments_confirmed = 25,
- num_segments_reviewed = 30
- )
- else :
- return ResourceStatus(
- )
-
- def testResourceStatus(self):
- """Test ResourceStatus"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_review_completion_type_error.py b/test/test_review_completion_type_error.py
deleted file mode 100644
index 87effd7..0000000
--- a/test/test_review_completion_type_error.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.review_completion_type_error import ReviewCompletionTypeError # noqa: E501
-from lilt.rest import ApiException
-
-class TestReviewCompletionTypeError(unittest.TestCase):
- """ReviewCompletionTypeError unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test ReviewCompletionTypeError
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.review_completion_type_error.ReviewCompletionTypeError() # noqa: E501
- if include_optional :
- return ReviewCompletionTypeError(
- message = None
- )
- else :
- return ReviewCompletionTypeError(
- )
-
- def testReviewCompletionTypeError(self):
- """Test ReviewCompletionTypeError"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_root_api.py b/test/test_root_api.py
deleted file mode 100644
index c279f10..0000000
--- a/test/test_root_api.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-
-import lilt
-from lilt.api.root_api import RootApi # noqa: E501
-from lilt.rest import ApiException
-
-
-class TestRootApi(unittest.TestCase):
- """RootApi unit test stubs"""
-
- def setUp(self):
- self.api = lilt.api.root_api.RootApi() # noqa: E501
-
- def tearDown(self):
- pass
-
- def test_root(self):
- """Test case for root
-
- Retrieve the REST API root # noqa: E501
- """
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_sdlxliff_filter.py b/test/test_sdlxliff_filter.py
index d0c7a98..8430e29 100644
--- a/test/test_sdlxliff_filter.py
+++ b/test/test_sdlxliff_filter.py
@@ -1,23 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.sdlxliff_filter import SDLXLIFFFilter # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.sdlxliff_filter import SDLXLIFFFilter
class TestSDLXLIFFFilter(unittest.TestCase):
"""SDLXLIFFFilter unit test stubs"""
@@ -28,28 +25,30 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> SDLXLIFFFilter:
"""Test SDLXLIFFFilter
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.sdlxliff_filter.SDLXLIFFFilter() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `SDLXLIFFFilter`
+ """
+ model = SDLXLIFFFilter()
+ if include_optional:
return SDLXLIFFFilter(
- conf_name = 'Translated',
- allowable_percentage = 56,
+ conf_name = 'Translated',
+ allowable_percentage = 56,
allow_unlocked_segments = True
)
- else :
+ else:
return SDLXLIFFFilter(
conf_name = 'Translated',
)
+ """
def testSDLXLIFFFilter(self):
"""Test SDLXLIFFFilter"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_segment.py b/test/test_segment.py
index fa94171..0ac2ffa 100644
--- a/test/test_segment.py
+++ b/test/test_segment.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.segment import Segment # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.segment import Segment
class TestSegment(unittest.TestCase):
"""Segment unit test stubs"""
@@ -29,35 +25,37 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> Segment:
"""Test Segment
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.segment.Segment() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `Segment`
+ """
+ model = Segment()
+ if include_optional:
return Segment(
- id = 84480010,
- created_at = 1489147692,
- updated_at = 1489147692,
- document_id = 1234,
- memory_id = 5678,
- source = 'The red bus.',
- srclang = 'en',
- target = 'Le bus rouge.',
- trglang = 'fr',
- is_confirmed = True,
+ id = 84480010,
+ created_at = 1489147692,
+ updated_at = 1489147692,
+ document_id = 1234,
+ memory_id = 5678,
+ source = 'The red bus.',
+ srclang = 'en',
+ target = 'Le bus rouge.',
+ trglang = 'fr',
+ is_confirmed = True,
is_reviewed = True
)
- else :
+ else:
return Segment(
)
+ """
def testSegment(self):
"""Test Segment"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_segment_create_parameters.py b/test/test_segment_create_parameters.py
index ccc5658..3a32e6a 100644
--- a/test/test_segment_create_parameters.py
+++ b/test/test_segment_create_parameters.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.segment_create_parameters import SegmentCreateParameters # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.segment_create_parameters import SegmentCreateParameters
class TestSegmentCreateParameters(unittest.TestCase):
"""SegmentCreateParameters unit test stubs"""
@@ -29,29 +25,33 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> SegmentCreateParameters:
"""Test SegmentCreateParameters
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.segment_create_parameters.SegmentCreateParameters() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `SegmentCreateParameters`
+ """
+ model = SegmentCreateParameters()
+ if include_optional:
return SegmentCreateParameters(
- memory_id = 10641,
- document_id = 1876,
- source = 'Code zur Fehleranalyse einschalten',
- target = 'Enable debugging code'
+ memory_id = 10641,
+ document_id = 1876,
+ source = 'Code zur Fehleranalyse einschalten',
+ target = 'Enable debugging code',
+ should_apply_segmentation = True,
+ src_lang = 'fr'
)
- else :
+ else:
return SegmentCreateParameters(
source = 'Code zur Fehleranalyse einschalten',
)
+ """
def testSegmentCreateParameters(self):
"""Test SegmentCreateParameters"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_segment_delete_response.py b/test/test_segment_delete_response.py
index 33ca043..a06914d 100644
--- a/test/test_segment_delete_response.py
+++ b/test/test_segment_delete_response.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.segment_delete_response import SegmentDeleteResponse # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.segment_delete_response import SegmentDeleteResponse
class TestSegmentDeleteResponse(unittest.TestCase):
"""SegmentDeleteResponse unit test stubs"""
@@ -29,26 +25,28 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> SegmentDeleteResponse:
"""Test SegmentDeleteResponse
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.segment_delete_response.SegmentDeleteResponse() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `SegmentDeleteResponse`
+ """
+ model = SegmentDeleteResponse()
+ if include_optional:
return SegmentDeleteResponse(
- id = 46530,
+ id = 46530,
deleted = True
)
- else :
+ else:
return SegmentDeleteResponse(
)
+ """
def testSegmentDeleteResponse(self):
"""Test SegmentDeleteResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_segment_done_response.py b/test/test_segment_done_response.py
index 136041c..2f0749e 100644
--- a/test/test_segment_done_response.py
+++ b/test/test_segment_done_response.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.segment_done_response import SegmentDoneResponse # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.segment_done_response import SegmentDoneResponse
class TestSegmentDoneResponse(unittest.TestCase):
"""SegmentDoneResponse unit test stubs"""
@@ -29,26 +25,28 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> SegmentDoneResponse:
"""Test SegmentDoneResponse
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.segment_done_response.SegmentDoneResponse() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `SegmentDoneResponse`
+ """
+ model = SegmentDoneResponse()
+ if include_optional:
return SegmentDoneResponse(
- document_ids = [30032, 30125]
+ document_ids = [30032,30125]
)
- else :
+ else:
return SegmentDoneResponse(
- document_ids = [30032, 30125],
+ document_ids = [30032,30125],
)
+ """
def testSegmentDoneResponse(self):
"""Test SegmentDoneResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_segment_parameters.py b/test/test_segment_parameters.py
deleted file mode 100644
index fbef980..0000000
--- a/test/test_segment_parameters.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.segment_parameters import SegmentParameters # noqa: E501
-from lilt.rest import ApiException
-
-class TestSegmentParameters(unittest.TestCase):
- """SegmentParameters unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test SegmentParameters
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.segment_parameters.SegmentParameters() # noqa: E501
- if include_optional :
- return SegmentParameters(
- memory_id = 10641,
- document_id = 1876,
- source = 'Code zur Fehleranalyse einschalten',
- target = 'Enable debugging code'
- )
- else :
- return SegmentParameters(
- source = 'Code zur Fehleranalyse einschalten',
- )
-
- def testSegmentParameters(self):
- """Test SegmentParameters"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_segment_update_parameters.py b/test/test_segment_update_parameters.py
index 5457393..165495c 100644
--- a/test/test_segment_update_parameters.py
+++ b/test/test_segment_update_parameters.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.segment_update_parameters import SegmentUpdateParameters # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.segment_update_parameters import SegmentUpdateParameters
class TestSegmentUpdateParameters(unittest.TestCase):
"""SegmentUpdateParameters unit test stubs"""
@@ -29,28 +25,30 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> SegmentUpdateParameters:
"""Test SegmentUpdateParameters
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.segment_update_parameters.SegmentUpdateParameters() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `SegmentUpdateParameters`
+ """
+ model = SegmentUpdateParameters()
+ if include_optional:
return SegmentUpdateParameters(
- id = 84480010,
+ id = 84480010,
target = 'Enable debug code'
)
- else :
+ else:
return SegmentUpdateParameters(
id = 84480010,
target = 'Enable debug code',
)
+ """
def testSegmentUpdateParameters(self):
"""Test SegmentUpdateParameters"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_segment_with_comments.py b/test/test_segment_with_comments.py
deleted file mode 100644
index 98688df..0000000
--- a/test/test_segment_with_comments.py
+++ /dev/null
@@ -1,75 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.segment_with_comments import SegmentWithComments # noqa: E501
-from lilt.rest import ApiException
-
-class TestSegmentWithComments(unittest.TestCase):
- """SegmentWithComments unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test SegmentWithComments
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.segment_with_comments.SegmentWithComments() # noqa: E501
- if include_optional :
- return SegmentWithComments(
- id = 84480010,
- created_at = 1489147692,
- updated_at = 1489147692,
- document_id = 1234,
- memory_id = 5678,
- source = 'The red bus.',
- srclang = 'en',
- target = 'Le bus rouge.',
- trglang = 'fr',
- is_confirmed = True,
- is_reviewed = True,
- comments = [
- lilt.models.comment.Comment(
- id = 84480010,
- text = 'This is incorrect.',
- user_id = 5678,
- is_resolved = True,
- annotations = [
- lilt.models.annotation.Annotation(
- text = 'minor', )
- ],
- created_at = 1489147692, )
- ]
- )
- else :
- return SegmentWithComments(
- )
-
- def testSegmentWithComments(self):
- """Test SegmentWithComments"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_segments_api.py b/test/test_segments_api.py
index 876ebc6..52bc09b 100644
--- a/test/test_segments_api.py
+++ b/test/test_segments_api.py
@@ -1,66 +1,70 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import lilt
-from lilt.api.segments_api import SegmentsApi # noqa: E501
-from lilt.rest import ApiException
+from lilt.api.segments_api import SegmentsApi
class TestSegmentsApi(unittest.TestCase):
"""SegmentsApi unit test stubs"""
- def setUp(self):
- self.api = lilt.api.segments_api.SegmentsApi() # noqa: E501
+ def setUp(self) -> None:
+ self.api = SegmentsApi()
- def tearDown(self):
+ def tearDown(self) -> None:
pass
- def test_create_segment(self):
+ def test_create_segment(self) -> None:
"""Test case for create_segment
- Create a Segment # noqa: E501
+ Create a Segment
"""
pass
- def test_delete_segment(self):
+ def test_delete_segment(self) -> None:
"""Test case for delete_segment
- Delete a Segment # noqa: E501
+ Delete a Segment
"""
pass
- def test_get_segment(self):
+ def test_get_segment(self) -> None:
"""Test case for get_segment
- Retrieve a Segment # noqa: E501
+ Retrieve a Segment
"""
pass
- def test_tag_segment(self):
+ def test_tag_segment(self) -> None:
"""Test case for tag_segment
- Tag a Segment # noqa: E501
+ Tag a Segment
+ """
+ pass
+
+ def test_unlock_segments(self) -> None:
+ """Test case for unlock_segments
+
+ Unaccept and unlock segments
"""
pass
- def test_update_segment(self):
+ def test_update_segment(self) -> None:
"""Test case for update_segment
- Update a Segment # noqa: E501
+ Update a Segment
"""
pass
diff --git a/test/test_set_document_stage_request.py b/test/test_set_document_stage_request.py
deleted file mode 100644
index 1ed3d7e..0000000
--- a/test/test_set_document_stage_request.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.set_document_stage_request import SetDocumentStageRequest # noqa: E501
-from lilt.rest import ApiException
-
-class TestSetDocumentStageRequest(unittest.TestCase):
- """SetDocumentStageRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test SetDocumentStageRequest
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.set_document_stage_request.SetDocumentStageRequest() # noqa: E501
- if include_optional :
- return SetDocumentStageRequest(
- workflow_stage_id = '1234'
- )
- else :
- return SetDocumentStageRequest(
- )
-
- def testSetDocumentStageRequest(self):
- """Test SetDocumentStageRequest"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_setting.py b/test/test_setting.py
deleted file mode 100644
index 8dc0cb1..0000000
--- a/test/test_setting.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.setting import Setting # noqa: E501
-from lilt.rest import ApiException
-
-class TestSetting(unittest.TestCase):
- """Setting unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test Setting
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.setting.Setting() # noqa: E501
- if include_optional :
- return Setting(
- id = 56,
- name = '0',
- value_type = '0',
- is_user_facing = True,
- is_default = True
- )
- else :
- return Setting(
- )
-
- def testSetting(self):
- """Test Setting"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_setting_dictionary.py b/test/test_setting_dictionary.py
deleted file mode 100644
index c8341ad..0000000
--- a/test/test_setting_dictionary.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.setting_dictionary import SettingDictionary # noqa: E501
-from lilt.rest import ApiException
-
-class TestSettingDictionary(unittest.TestCase):
- """SettingDictionary unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test SettingDictionary
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.setting_dictionary.SettingDictionary() # noqa: E501
- if include_optional :
- return SettingDictionary(
- id = 56,
- name = '0',
- value_type = '0',
- is_user_facing = True,
- is_default = True
- )
- else :
- return SettingDictionary(
- )
-
- def testSettingDictionary(self):
- """Test SettingDictionary"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_setting_upsert_body.py b/test/test_setting_upsert_body.py
deleted file mode 100644
index 01a4593..0000000
--- a/test/test_setting_upsert_body.py
+++ /dev/null
@@ -1,59 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.setting_upsert_body import SettingUpsertBody # noqa: E501
-from lilt.rest import ApiException
-
-class TestSettingUpsertBody(unittest.TestCase):
- """SettingUpsertBody unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test SettingUpsertBody
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.setting_upsert_body.SettingUpsertBody() # noqa: E501
- if include_optional :
- return SettingUpsertBody(
- setting_name = 'requireBatchQaTranslator',
- scope = 'Organization',
- is_enforced = True,
- project_id = 1.337,
- organization_id = 123.0
- )
- else :
- return SettingUpsertBody(
- setting_name = 'requireBatchQaTranslator',
- scope = 'Organization',
- )
-
- def testSettingUpsertBody(self):
- """Test SettingUpsertBody"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_setting_upsert_response.py b/test/test_setting_upsert_response.py
deleted file mode 100644
index fbc7806..0000000
--- a/test/test_setting_upsert_response.py
+++ /dev/null
@@ -1,59 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.setting_upsert_response import SettingUpsertResponse # noqa: E501
-from lilt.rest import ApiException
-
-class TestSettingUpsertResponse(unittest.TestCase):
- """SettingUpsertResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test SettingUpsertResponse
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.setting_upsert_response.SettingUpsertResponse() # noqa: E501
- if include_optional :
- return SettingUpsertResponse(
- scoped_setting = None,
- active_settings = lilt.models.setting_dictionary.SettingDictionary(
- id = 56,
- name = '0',
- value_type = '0',
- is_user_facing = True,
- is_default = True, )
- )
- else :
- return SettingUpsertResponse(
- )
-
- def testSettingUpsertResponse(self):
- """Test SettingUpsertResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_settings_api.py b/test/test_settings_api.py
deleted file mode 100644
index 95583fd..0000000
--- a/test/test_settings_api.py
+++ /dev/null
@@ -1,62 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-
-import lilt
-from lilt.api.settings_api import SettingsApi # noqa: E501
-from lilt.rest import ApiException
-
-
-class TestSettingsApi(unittest.TestCase):
- """SettingsApi unit test stubs"""
-
- def setUp(self):
- self.api = lilt.api.settings_api.SettingsApi() # noqa: E501
-
- def tearDown(self):
- pass
-
- def test_get_organization_settings(self):
- """Test case for get_organization_settings
-
- Update or create a setting # noqa: E501
- """
- pass
-
- def test_get_project_settings(self):
- """Test case for get_project_settings
-
- Get settings for a project # noqa: E501
- """
- pass
-
- def test_get_user_settings(self):
- """Test case for get_user_settings
-
- Get settings for a project # noqa: E501
- """
- pass
-
- def test_upsert_setting(self):
- """Test case for upsert_setting
-
- Get organization-level settings # noqa: E501
- """
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_sign_lilt_create_terms_response.py b/test/test_sign_lilt_create_terms_response.py
index 9f02817..d1448fc 100644
--- a/test/test_sign_lilt_create_terms_response.py
+++ b/test/test_sign_lilt_create_terms_response.py
@@ -1,23 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.sign_lilt_create_terms_response import SignLiltCreateTermsResponse # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.sign_lilt_create_terms_response import SignLiltCreateTermsResponse
class TestSignLiltCreateTermsResponse(unittest.TestCase):
"""SignLiltCreateTermsResponse unit test stubs"""
@@ -28,25 +25,27 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> SignLiltCreateTermsResponse:
"""Test SignLiltCreateTermsResponse
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.sign_lilt_create_terms_response.SignLiltCreateTermsResponse() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `SignLiltCreateTermsResponse`
+ """
+ model = SignLiltCreateTermsResponse()
+ if include_optional:
return SignLiltCreateTermsResponse(
signed_agreement = True
)
- else :
+ else:
return SignLiltCreateTermsResponse(
)
+ """
def testSignLiltCreateTermsResponse(self):
"""Test SignLiltCreateTermsResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_sign_upload_part200_response.py b/test/test_sign_upload_part200_response.py
new file mode 100644
index 0000000..d24fdb2
--- /dev/null
+++ b/test/test_sign_upload_part200_response.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from lilt.models.sign_upload_part200_response import SignUploadPart200Response
+
+class TestSignUploadPart200Response(unittest.TestCase):
+ """SignUploadPart200Response unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> SignUploadPart200Response:
+ """Test SignUploadPart200Response
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `SignUploadPart200Response`
+ """
+ model = SignUploadPart200Response()
+ if include_optional:
+ return SignUploadPart200Response(
+ url = 'https://storage.googleapis.com/bucket/uploads/user123/file456.zip?partNumber=1&...',
+ method = 'PUT'
+ )
+ else:
+ return SignUploadPart200Response(
+ )
+ """
+
+ def testSignUploadPart200Response(self):
+ """Test SignUploadPart200Response"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_source_file.py b/test/test_source_file.py
index bb7d661..1c8a9fe 100644
--- a/test/test_source_file.py
+++ b/test/test_source_file.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.source_file import SourceFile # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.source_file import SourceFile
class TestSourceFile(unittest.TestCase):
"""SourceFile unit test stubs"""
@@ -29,33 +25,35 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> SourceFile:
"""Test SourceFile
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.source_file.SourceFile() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `SourceFile`
+ """
+ model = SourceFile()
+ if include_optional:
return SourceFile(
- id = 46530,
- name = 'en_US.json',
- file_hash = '3858f62230ac3c915f300c664312c63f',
- detected_lang = 'de',
- detected_lang_confidence = 0.7,
- category = 'REFERENCE',
- labels = [],
- created_at = 1489147692,
- updated_at = 1489147692
+ id = 46530,
+ name = 'en_US.json',
+ file_hash = '3858f62230ac3c915f300c664312c63f',
+ detected_lang = 'de',
+ detected_lang_confidence = 0.7,
+ category = 'REFERENCE',
+ labels = [],
+ created_at = '2019-10-16T22:12:34Z',
+ updated_at = '2019-10-16T22:12:34Z'
)
- else :
+ else:
return SourceFile(
)
+ """
def testSourceFile(self):
"""Test SourceFile"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_tagged_segment.py b/test/test_tagged_segment.py
index 3259a8d..f17075d 100644
--- a/test/test_tagged_segment.py
+++ b/test/test_tagged_segment.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.tagged_segment import TaggedSegment # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.tagged_segment import TaggedSegment
class TestTaggedSegment(unittest.TestCase):
"""TaggedSegment unit test stubs"""
@@ -29,26 +25,28 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> TaggedSegment:
"""Test TaggedSegment
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.tagged_segment.TaggedSegment() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `TaggedSegment`
+ """
+ model = TaggedSegment()
+ if include_optional:
return TaggedSegment(
- source_tagged = 'The red bus.',
- target_tagged = 'Le bus rouge.'
+ source_tagged = '',
+ target_tagged = ''
)
- else :
+ else:
return TaggedSegment(
)
+ """
def testTaggedSegment(self):
"""Test TaggedSegment"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_termbase_export_response.py b/test/test_termbase_export_response.py
index 0e2c3e9..acea578 100644
--- a/test/test_termbase_export_response.py
+++ b/test/test_termbase_export_response.py
@@ -1,23 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.termbase_export_response import TermbaseExportResponse # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.termbase_export_response import TermbaseExportResponse
class TestTermbaseExportResponse(unittest.TestCase):
"""TermbaseExportResponse unit test stubs"""
@@ -28,26 +25,28 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> TermbaseExportResponse:
"""Test TermbaseExportResponse
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.termbase_export_response.TermbaseExportResponse() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `TermbaseExportResponse`
+ """
+ model = TermbaseExportResponse()
+ if include_optional:
return TermbaseExportResponse(
- id = 123,
+ id = 123,
is_processing = 1
)
- else :
+ else:
return TermbaseExportResponse(
)
+ """
def testTermbaseExportResponse(self):
"""Test TermbaseExportResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_translate_api.py b/test/test_translate_api.py
index cf16f95..de7fbaa 100644
--- a/test/test_translate_api.py
+++ b/test/test_translate_api.py
@@ -1,45 +1,56 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import lilt
-from lilt.api.translate_api import TranslateApi # noqa: E501
-from lilt.rest import ApiException
+from lilt.api.translate_api import TranslateApi
class TestTranslateApi(unittest.TestCase):
"""TranslateApi unit test stubs"""
- def setUp(self):
- self.api = lilt.api.translate_api.TranslateApi() # noqa: E501
+ def setUp(self) -> None:
+ self.api = TranslateApi()
+
+ def tearDown(self) -> None:
+ pass
- def tearDown(self):
+ def test_batch_translate_file(self) -> None:
+ """Test case for batch_translate_file
+
+ Translate a File
+ """
+ pass
+
+ def test_download_file(self) -> None:
+ """Test case for download_file
+
+ Download translated file
+ """
pass
- def test_register_segment(self):
- """Test case for register_segment
+ def test_monitor_file_translation(self) -> None:
+ """Test case for monitor_file_translation
- Register a segment # noqa: E501
+ Monitor file translation
"""
pass
- def test_translate_segment(self):
- """Test case for translate_segment
+ def test_translate_segment_post(self) -> None:
+ """Test case for translate_segment_post
- Translate a segment # noqa: E501
+ Translate a segment
"""
pass
diff --git a/test/test_translate_completion_type_error.py b/test/test_translate_completion_type_error.py
deleted file mode 100644
index 455e232..0000000
--- a/test/test_translate_completion_type_error.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.translate_completion_type_error import TranslateCompletionTypeError # noqa: E501
-from lilt.rest import ApiException
-
-class TestTranslateCompletionTypeError(unittest.TestCase):
- """TranslateCompletionTypeError unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test TranslateCompletionTypeError
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.translate_completion_type_error.TranslateCompletionTypeError() # noqa: E501
- if include_optional :
- return TranslateCompletionTypeError(
- message = None
- )
- else :
- return TranslateCompletionTypeError(
- )
-
- def testTranslateCompletionTypeError(self):
- """Test TranslateCompletionTypeError"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_translate_register_response.py b/test/test_translate_register_response.py
deleted file mode 100644
index 6b6da92..0000000
--- a/test/test_translate_register_response.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.translate_register_response import TranslateRegisterResponse # noqa: E501
-from lilt.rest import ApiException
-
-class TestTranslateRegisterResponse(unittest.TestCase):
- """TranslateRegisterResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test TranslateRegisterResponse
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.translate_register_response.TranslateRegisterResponse() # noqa: E501
- if include_optional :
- return TranslateRegisterResponse(
- source_hash = 11476,
- num_words = 88
- )
- else :
- return TranslateRegisterResponse(
- )
-
- def testTranslateRegisterResponse(self):
- """Test TranslateRegisterResponse"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_translate_segment_body.py b/test/test_translate_segment_body.py
index be204fc..a66a717 100644
--- a/test/test_translate_segment_body.py
+++ b/test/test_translate_segment_body.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.translate_segment_body import TranslateSegmentBody # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.translate_segment_body import TranslateSegmentBody
class TestTranslateSegmentBody(unittest.TestCase):
"""TranslateSegmentBody unit test stubs"""
@@ -29,25 +25,36 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> TranslateSegmentBody:
"""Test TranslateSegmentBody
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.translate_segment_body.TranslateSegmentBody() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `TranslateSegmentBody`
+ """
+ model = TranslateSegmentBody()
+ if include_optional:
return TranslateSegmentBody(
- source = '0'
+ source = '',
+ memory_id = 56,
+ source_hash = 56,
+ n = 56,
+ prefix = '',
+ rich = True,
+ tm_matches = True,
+ project_tags = True,
+ contains_icu_data = True
)
- else :
+ else:
return TranslateSegmentBody(
+ memory_id = 56,
)
+ """
def testTranslateSegmentBody(self):
"""Test TranslateSegmentBody"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_translate_segment_body1.py b/test/test_translate_segment_body1.py
deleted file mode 100644
index 3b1ef4d..0000000
--- a/test/test_translate_segment_body1.py
+++ /dev/null
@@ -1,61 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.translate_segment_body1 import TranslateSegmentBody1 # noqa: E501
-from lilt.rest import ApiException
-
-class TestTranslateSegmentBody1(unittest.TestCase):
- """TranslateSegmentBody1 unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test TranslateSegmentBody1
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.translate_segment_body1.TranslateSegmentBody1() # noqa: E501
- if include_optional :
- return TranslateSegmentBody1(
- source = '0',
- memory_id = 56,
- source_hash = 56,
- n = 56,
- prefix = '0',
- rich = True,
- tm_matches = True,
- project_tags = True
- )
- else :
- return TranslateSegmentBody1(
- memory_id = 56,
- )
-
- def testTranslateSegmentBody1(self):
- """Test TranslateSegmentBody1"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_translation.py b/test/test_translation.py
index 025e359..6aa0695 100644
--- a/test/test_translation.py
+++ b/test/test_translation.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.translation import Translation # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.translation import Translation
class TestTranslation(unittest.TestCase):
"""Translation unit test stubs"""
@@ -29,36 +25,38 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> Translation:
"""Test Translation
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.translation.Translation() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `Translation`
+ """
+ model = Translation()
+ if include_optional:
return Translation(
- target = '0',
- target_with_tags = '0',
- align = '0',
- provenance = '0',
- score = 1.337,
- is_tm_match = True,
+ target = '',
+ target_with_tags = '',
+ align = '',
+ provenance = '',
+ score = 1.337,
+ is_tm_match = True,
target_delimiters = [
- '0'
- ],
+ ''
+ ],
target_words = [
- '0'
+ ''
]
)
- else :
+ else:
return Translation(
)
+ """
def testTranslation(self):
"""Test Translation"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_translation_info.py b/test/test_translation_info.py
index ceff111..e35f01f 100644
--- a/test/test_translation_info.py
+++ b/test/test_translation_info.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.translation_info import TranslationInfo # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.translation_info import TranslationInfo
class TestTranslationInfo(unittest.TestCase):
"""TranslationInfo unit test stubs"""
@@ -29,29 +25,31 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> TranslationInfo:
"""Test TranslationInfo
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.translation_info.TranslationInfo() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `TranslationInfo`
+ """
+ model = TranslationInfo()
+ if include_optional:
return TranslationInfo(
- id = 56,
- file_id = 56,
- status = '0',
- created_at = 56,
- error_msg = '0'
+ id = 56,
+ file_id = 56,
+ status = '',
+ created_at = 56,
+ error_msg = ''
)
- else :
+ else:
return TranslationInfo(
)
+ """
def testTranslationInfo(self):
"""Test TranslationInfo"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_translation_list.py b/test/test_translation_list.py
index 67520bc..2acc2a6 100644
--- a/test/test_translation_list.py
+++ b/test/test_translation_list.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.translation_list import TranslationList # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.translation_list import TranslationList
class TestTranslationList(unittest.TestCase):
"""TranslationList unit test stubs"""
@@ -29,28 +25,32 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> TranslationList:
"""Test TranslationList
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.translation_list.TranslationList() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `TranslationList`
+ """
+ model = TranslationList()
+ if include_optional:
return TranslationList(
- untokenized_source = 'Authentication not required.',
- tokenized_source = 'Authentication not required .',
- source_delimiters = [],
- translation = []
+ untokenized_source = 'Authentication not required.',
+ tokenized_source = 'Authentication not required .',
+ source_delimiters = [""," "," ","",""],
+ translation = [
+ [{"score":3.4936864E-8,"align":"0-0 1-1 2-2 3-3","targetDelimiters":[""," "," ","",""],"targetWords":["Authentifizierung","nicht","erforderlich","."],"target":"Authentifizierung nicht erforderlich .","targetWithTags":"Authentifizierung nicht erforderlich.","isTMMatch":false,"provenance":"0 0 0 0"}]
+ ]
)
- else :
+ else:
return TranslationList(
)
+ """
def testTranslationList(self):
"""Test TranslationList"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_translation_memory_entry.py b/test/test_translation_memory_entry.py
index 0828e9d..04481eb 100644
--- a/test/test_translation_memory_entry.py
+++ b/test/test_translation_memory_entry.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.translation_memory_entry import TranslationMemoryEntry # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.translation_memory_entry import TranslationMemoryEntry
class TestTranslationMemoryEntry(unittest.TestCase):
"""TranslationMemoryEntry unit test stubs"""
@@ -29,28 +25,30 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> TranslationMemoryEntry:
"""Test TranslationMemoryEntry
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.translation_memory_entry.TranslationMemoryEntry() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `TranslationMemoryEntry`
+ """
+ model = TranslationMemoryEntry()
+ if include_optional:
return TranslationMemoryEntry(
- source = 'The red bus.',
- target = 'Le bus rouge.',
- score = 100,
+ source = 'The red bus.',
+ target = 'Le bus rouge.',
+ score = 100,
metadata = None
)
- else :
+ else:
return TranslationMemoryEntry(
)
+ """
def testTranslationMemoryEntry(self):
"""Test TranslationMemoryEntry"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_uploads_api.py b/test/test_uploads_api.py
new file mode 100644
index 0000000..bc74d1f
--- /dev/null
+++ b/test/test_uploads_api.py
@@ -0,0 +1,87 @@
+# coding: utf-8
+
+"""
+ LILT API
+
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from lilt.api.uploads_api import UploadsApi
+
+
+class TestUploadsApi(unittest.TestCase):
+ """UploadsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = UploadsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_cancel_multipart_upload(self) -> None:
+ """Test case for cancel_multipart_upload
+
+ Cancel Multipart Upload
+ """
+ pass
+
+ def test_complete_multipart_upload(self) -> None:
+ """Test case for complete_multipart_upload
+
+ Complete Multipart Upload
+ """
+ pass
+
+ def test_get_pending_uploads(self) -> None:
+ """Test case for get_pending_uploads
+
+ Get All Pending Uploads or specific list of uploads by ids or statuses
+ """
+ pass
+
+ def test_get_s3_upload_params(self) -> None:
+ """Test case for get_s3_upload_params
+
+ Get S3 Upload Parameters
+ """
+ pass
+
+ def test_get_upload_by_id(self) -> None:
+ """Test case for get_upload_by_id
+
+ Get Upload by ID
+ """
+ pass
+
+ def test_initiate_multipart_upload(self) -> None:
+ """Test case for initiate_multipart_upload
+
+ Initiate Multipart Upload
+ """
+ pass
+
+ def test_initiate_s3_upload(self) -> None:
+ """Test case for initiate_s3_upload
+
+ Initiate File Upload to Cloud Storage
+ """
+ pass
+
+ def test_sign_upload_part(self) -> None:
+ """Test case for sign_upload_part
+
+ Sign Upload Part
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_webhook_configuration_api.py b/test/test_webhook_configuration_api.py
index fafca27..1951fb8 100644
--- a/test/test_webhook_configuration_api.py
+++ b/test/test_webhook_configuration_api.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/test/test_webhook_response.py b/test/test_webhook_response.py
index eccf1d1..57ecf93 100644
--- a/test/test_webhook_response.py
+++ b/test/test_webhook_response.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/test/test_webhooks_update_request.py b/test/test_webhooks_update_request.py
index 8b342df..c80ab05 100644
--- a/test/test_webhooks_update_request.py
+++ b/test/test_webhooks_update_request.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/test/test_webhooks_update_request_any_of.py b/test/test_webhooks_update_request_any_of.py
index 5e20284..540953b 100644
--- a/test/test_webhooks_update_request_any_of.py
+++ b/test/test_webhooks_update_request_any_of.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/test/test_webhooks_update_request_any_of1.py b/test/test_webhooks_update_request_any_of1.py
index 2a1e72d..0b807c8 100644
--- a/test/test_webhooks_update_request_any_of1.py
+++ b/test/test_webhooks_update_request_any_of1.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/test/test_webhooks_update_request_any_of2.py b/test/test_webhooks_update_request_any_of2.py
index 1ace4b5..a750ad6 100644
--- a/test/test_webhooks_update_request_any_of2.py
+++ b/test/test_webhooks_update_request_any_of2.py
@@ -1,11 +1,11 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT 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.
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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.2
+ The version of the OpenAPI document: v3.0.3
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
diff --git a/test/test_workflow_stage.py b/test/test_workflow_stage.py
deleted file mode 100644
index 3dcfa13..0000000
--- a/test/test_workflow_stage.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.workflow_stage import WorkflowStage # noqa: E501
-from lilt.rest import ApiException
-
-class TestWorkflowStage(unittest.TestCase):
- """WorkflowStage unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test WorkflowStage
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.workflow_stage.WorkflowStage() # noqa: E501
- if include_optional :
- return WorkflowStage(
- id = 1,
- name = 'Translate',
- active = True,
- assignment_type = 'TRANSLATE'
- )
- else :
- return WorkflowStage(
- name = 'Translate',
- assignment_type = 'TRANSLATE',
- )
-
- def testWorkflowStage(self):
- """Test WorkflowStage"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_workflow_stage_assignment.py b/test/test_workflow_stage_assignment.py
index 5ac7778..1c41b09 100644
--- a/test/test_workflow_stage_assignment.py
+++ b/test/test_workflow_stage_assignment.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.workflow_stage_assignment import WorkflowStageAssignment # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.workflow_stage_assignment import WorkflowStageAssignment
class TestWorkflowStageAssignment(unittest.TestCase):
"""WorkflowStageAssignment unit test stubs"""
@@ -29,28 +25,30 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> WorkflowStageAssignment:
"""Test WorkflowStageAssignment
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.workflow_stage_assignment.WorkflowStageAssignment() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `WorkflowStageAssignment`
+ """
+ model = WorkflowStageAssignment()
+ if include_optional:
return WorkflowStageAssignment(
- workflow_stage_template_id = 12345,
- user_id = 123,
+ workflow_stage_template_id = 12345,
+ user_id = 123,
email = 'username@domain.com'
)
- else :
+ else:
return WorkflowStageAssignment(
workflow_stage_template_id = 12345,
)
+ """
def testWorkflowStageAssignment(self):
"""Test WorkflowStageAssignment"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_workflow_stage_template.py b/test/test_workflow_stage_template.py
index 14af2ae..55aefad 100644
--- a/test/test_workflow_stage_template.py
+++ b/test/test_workflow_stage_template.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.workflow_stage_template import WorkflowStageTemplate # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.workflow_stage_template import WorkflowStageTemplate
class TestWorkflowStageTemplate(unittest.TestCase):
"""WorkflowStageTemplate unit test stubs"""
@@ -29,26 +25,28 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> WorkflowStageTemplate:
"""Test WorkflowStageTemplate
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.workflow_stage_template.WorkflowStageTemplate() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `WorkflowStageTemplate`
+ """
+ model = WorkflowStageTemplate()
+ if include_optional:
return WorkflowStageTemplate(
- name = 'Translate',
+ name = 'Translate',
assignment_type = 'TRANSLATE'
)
- else :
+ else:
return WorkflowStageTemplate(
)
+ """
def testWorkflowStageTemplate(self):
"""Test WorkflowStageTemplate"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_workflow_task.py b/test/test_workflow_task.py
deleted file mode 100644
index ed46b9f..0000000
--- a/test/test_workflow_task.py
+++ /dev/null
@@ -1,61 +0,0 @@
-# coding: utf-8
-
-"""
- Lilt REST API
-
- 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. ## 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. # noqa: E501
-
- The version of the OpenAPI document: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
-
-
-from __future__ import absolute_import
-
-import unittest
-import datetime
-
-import lilt
-from lilt.models.workflow_task import WorkflowTask # noqa: E501
-from lilt.rest import ApiException
-
-class TestWorkflowTask(unittest.TestCase):
- """WorkflowTask unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional):
- """Test WorkflowTask
- include_option is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # model = lilt.models.workflow_task.WorkflowTask() # noqa: E501
- if include_optional :
- return WorkflowTask(
- id = 1,
- workflow_stage_id = 123,
- name = 'Review',
- entered_at = '2022-09-09T21:33:21.000Z',
- started_at = '2022-09-09T21:33:21.000Z'
- )
- else :
- return WorkflowTask(
- id = 1,
- workflow_stage_id = 123,
- name = 'Review',
- entered_at = '2022-09-09T21:33:21.000Z',
- )
-
- def testWorkflowTask(self):
- """Test WorkflowTask"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_workflow_template.py b/test/test_workflow_template.py
index de0ba80..bd7282f 100644
--- a/test/test_workflow_template.py
+++ b/test/test_workflow_template.py
@@ -1,24 +1,20 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import datetime
-import lilt
-from lilt.models.workflow_template import WorkflowTemplate # noqa: E501
-from lilt.rest import ApiException
+from lilt.models.workflow_template import WorkflowTemplate
class TestWorkflowTemplate(unittest.TestCase):
"""WorkflowTemplate unit test stubs"""
@@ -29,32 +25,34 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional):
+ def make_instance(self, include_optional) -> WorkflowTemplate:
"""Test WorkflowTemplate
- include_option is a boolean, when False only required
+ include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # model = lilt.models.workflow_template.WorkflowTemplate() # noqa: E501
- if include_optional :
+ # uncomment below to create an instance of `WorkflowTemplate`
+ """
+ model = WorkflowTemplate()
+ if include_optional:
return WorkflowTemplate(
- id = 15.0,
- name = 'Translate > Review > Customer Review',
- team_id = 100.0,
+ id = 15,
+ name = 'Translate > Review > Customer Review',
+ team_id = 100,
stages = [
lilt.models.workflow_stage_template.WorkflowStageTemplate(
name = 'Translate',
assignment_type = 'TRANSLATE', )
]
)
- else :
+ else:
return WorkflowTemplate(
)
+ """
def testWorkflowTemplate(self):
"""Test WorkflowTemplate"""
- inst_req_only = self.make_instance(include_optional=False)
- inst_req_and_optional = self.make_instance(include_optional=True)
-
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_workflows_api.py b/test/test_workflows_api.py
index 6b5461e..f16b64d 100644
--- a/test/test_workflows_api.py
+++ b/test/test_workflows_api.py
@@ -1,66 +1,35 @@
# coding: utf-8
"""
- Lilt REST API
+ LILT API
- 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. ## 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. # noqa: E501
+ LILT API Support: https://lilt.atlassian.net/servicedesk/customer/portals The LILT 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 API key, which requires the Business plan. Requests are authenticated using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication). Add your API key as both the `username` and `password`. For development, you may also pass the 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: v2.0
- Contact: support@lilt.com
- Generated by: https://openapi-generator.tech
-"""
+ The version of the OpenAPI document: v3.0.3
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+ Do not edit the class manually.
+""" # noqa: E501
-from __future__ import absolute_import
import unittest
-import lilt
-from lilt.api.workflows_api import WorkflowsApi # noqa: E501
-from lilt.rest import ApiException
+from lilt.api.workflows_api import WorkflowsApi
class TestWorkflowsApi(unittest.TestCase):
"""WorkflowsApi unit test stubs"""
- def setUp(self):
- self.api = lilt.api.workflows_api.WorkflowsApi() # noqa: E501
-
- def tearDown(self):
- pass
+ def setUp(self) -> None:
+ self.api = WorkflowsApi()
- def test_advance_workflow_stage(self):
- """Test case for advance_workflow_stage
-
- Advance workflow to the next stage # noqa: E501
- """
- pass
-
- def test_get_document_workflow(self):
- """Test case for get_document_workflow
-
- Retrieve document Workflow metadata # noqa: E501
- """
+ def tearDown(self) -> None:
pass
- def test_get_workflow_templates(self):
+ def test_get_workflow_templates(self) -> None:
"""Test case for get_workflow_templates
- Retrieve workflow templates # noqa: E501
- """
- pass
-
- def test_reject_workflow_stage(self):
- """Test case for reject_workflow_stage
-
- Move workflow to the previous stage # noqa: E501
- """
- pass
-
- def test_set_document_stage(self):
- """Test case for set_document_stage
-
- Set Workflow stage for a document # noqa: E501
+ Retrieve workflow templates
"""
pass
diff --git a/workflow_tests/resources/translate-fr_to_en.txt b/workflow_tests/resources/translate-fr_to_en.txt
index bacf715..7efd3d1 100644
--- a/workflow_tests/resources/translate-fr_to_en.txt
+++ b/workflow_tests/resources/translate-fr_to_en.txt
@@ -1,2 +1,2 @@
-chatte
+banane
bonjour
diff --git a/workflow_tests/test_create_content.py b/workflow_tests/test_create_content.py
index 1295589..34c7626 100644
--- a/workflow_tests/test_create_content.py
+++ b/workflow_tests/test_create_content.py
@@ -5,6 +5,7 @@
import pytest
import time
import lilt
+from lilt.exceptions import NotFoundException
load_dotenv()
@@ -171,7 +172,10 @@ def assert_response(create_content_obj, expected):
@pytest.fixture(scope="module")
def client():
configuration = lilt.Configuration(
- host=os.environ["API_HOST"], api_key={"key": os.environ["API_KEY"]}
+ host=os.environ["API_HOST"],
+ username=os.environ["API_KEY"],
+ password=os.environ["API_KEY"],
+ debug=True,
)
api_client = lilt.ApiClient(configuration)
api_client.set_default_header("x-is-automated-test", True)
@@ -188,19 +192,18 @@ def create_api(client):
@pytest.fixture(scope="function")
def sign(create_api):
- signed_agreement = lilt.CreateConverterConfigParameters(True)
+ signed_agreement = lilt.CreateConverterConfigParameters(signedAgreement=True)
return create_api.sign_lilt_create_terms(signed_agreement)
@pytest.mark.parametrize("sign_case", sign_cases)
def test_sign(sign_case, create_api):
sign = get_sign(sign_case)
-
try:
- signed_agreement = lilt.CreateConverterConfigParameters(sign)
+ signed_agreement = lilt.CreateConverterConfigParameters(signedAgreement=sign)
api_response = create_api.sign_lilt_create_terms(signed_agreement)
assert api_response.signed_agreement == bool(sign)
- except ValueError as e:
+ except ValueError | NotFoundException as e:
print("Exception when calling CreateApi->sign_lilt_create_terms: %s\n" % e)
if sign_case != "none":
raise e
diff --git a/workflow_tests/test_instant_translate.py b/workflow_tests/test_instant_translate.py
index 34325f7..94c2bf6 100644
--- a/workflow_tests/test_instant_translate.py
+++ b/workflow_tests/test_instant_translate.py
@@ -14,7 +14,7 @@
]
translate_file_path = "./workflow_tests/resources"
-STAGING_MEMORY_ID = 23583
+STAGING_MEMORY_ID = 9512 #23583
STAGING_TRANSLATION_ID = 17680
@@ -37,7 +37,10 @@ def assert_translate_response(response, file_id, memory_id):
@pytest.fixture(scope="module")
def client():
configuration = lilt.Configuration(
- host=os.environ["API_HOST"], api_key={"key": os.environ["API_KEY"]}
+ host=os.environ["API_HOST"],
+ username=os.environ["API_KEY"],
+ password=os.environ["API_KEY"],
+ debug=True,
)
api_client = lilt.ApiClient(configuration)
api_client.set_default_header("x-is-automated-test", True)
@@ -62,7 +65,7 @@ def translate_api(client):
wait=wait_exponential()
)
def monitor_file_translation(translate_api, translation_id, file_id, memory_id):
- api_response = translate_api.monitor_file_translation(translation_ids=translation_id)
+ api_response = translate_api.monitor_file_translation(translation_ids=str(translation_id))
translation_response = api_response[0]
translation_status = translation_response.status
print(f"STATUS: {translation_status}")
@@ -112,6 +115,6 @@ def test_instant_translate_workflow(upload_file, translate_api, test_case):
print("Translation exceeding time limit. Switching to finished translation.")
# Download translated file
- api_response = translate_api.download_file(translation_id)
- assert "cat" in api_response
+ api_response = translate_api.download_file(translation_id).decode('utf8')
+ assert "banana" in api_response
assert "hello" in api_response.lower()