diff --git a/README.md b/README.md index 6528a0e..3a35f0d 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Please, include the `User-Agent` header with the name of your application or pro This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: Latest -- Package version: 0.3.7 +- Package version: 0.3.8 - Build package: org.openapitools.codegen.languages.PythonClientCodegen ## Requirements. diff --git a/docs/BilingualFileApi.md b/docs/BilingualFileApi.md index ca5e205..15e1701 100644 --- a/docs/BilingualFileApi.md +++ b/docs/BilingualFileApi.md @@ -354,7 +354,7 @@ configuration = phrasetms_client.Configuration( with phrasetms_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = phrasetms_client.BilingualFileApi(api_client) - file = phrasetms_client.MultipartFile() # MultipartFile | + file = phrasetms_client.MultipartFile(local_path="output.mxliff") # MultipartFile | save_to_trans_memory = 'Confirmed' # str | (optional) (default to 'Confirmed') set_completed = False # bool | (optional) (default to False) diff --git a/docs/MultipartFile.md b/docs/MultipartFile.md index 8846122..f0bafab 100644 --- a/docs/MultipartFile.md +++ b/docs/MultipartFile.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | | [optional] +**local_path** | **str** | | [optional] **empty** | **bool** | | [optional] **bytes** | **List[bytearray]** | | [optional] **size** | **int** | | [optional] diff --git a/phrasetms_client/__init__.py b/phrasetms_client/__init__.py index c18a22b..d830580 100644 --- a/phrasetms_client/__init__.py +++ b/phrasetms_client/__init__.py @@ -14,7 +14,7 @@ """ -__version__ = "0.3.7" +__version__ = "0.3.8" # import apis into sdk package from phrasetms_client.api.additional_workflow_step_api import AdditionalWorkflowStepApi diff --git a/phrasetms_client/api/bilingual_file_api.py b/phrasetms_client/api/bilingual_file_api.py index f2ec12e..6b34c5a 100644 --- a/phrasetms_client/api/bilingual_file_api.py +++ b/phrasetms_client/api/bilingual_file_api.py @@ -794,7 +794,7 @@ def upload_bilingual_file_v2_with_http_info(self, file : MultipartFile, save_to_ _form_params = [] _files = {} if _params['file']: - _form_params.append(('file', _params['file'])) + _files['file'] = _params['file'].local_path # process the body parameter _body_params = None diff --git a/phrasetms_client/configuration.py b/phrasetms_client/configuration.py index a4d1e3f..90aae1f 100644 --- a/phrasetms_client/configuration.py +++ b/phrasetms_client/configuration.py @@ -423,7 +423,7 @@ def to_debug_report(self): "OS: {env}\n" "Python Version: {pyversion}\n" "Version of the API: Latest\n" - "SDK Package Version: 0.3.7".format(env=sys.platform, pyversion=sys.version) + "SDK Package Version: 0.3.8".format(env=sys.platform, pyversion=sys.version) ) def get_host_settings(self): diff --git a/phrasetms_client/models/multipart_file.py b/phrasetms_client/models/multipart_file.py index 06a7591..9a5e525 100644 --- a/phrasetms_client/models/multipart_file.py +++ b/phrasetms_client/models/multipart_file.py @@ -37,7 +37,7 @@ class MultipartFile(BaseModel): MultipartFile """ - name: Optional[StrictStr] = None + local_path: StrictStr = Field(...) empty: Optional[StrictBool] = None bytes: Optional[conlist(Union[conbytes(strict=True), constr(strict=True)])] = None size: Optional[StrictInt] = None @@ -45,7 +45,7 @@ class MultipartFile(BaseModel): content_type: Optional[StrictStr] = Field(None, alias="contentType") original_filename: Optional[StrictStr] = Field(None, alias="originalFilename") __properties = [ - "name", + "local_path", "empty", "bytes", "size", @@ -89,7 +89,7 @@ def from_dict(cls, obj: dict) -> MultipartFile: _obj = MultipartFile.parse_obj( { - "name": obj.get("name"), + "local_path": obj.get("local_path"), "empty": obj.get("empty"), "bytes": obj.get("bytes"), "size": obj.get("size"), diff --git a/pyproject.toml b/pyproject.toml index 9c2778c..020c156 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "phrasetms_client" -version = "0.3.7" +version = "0.3.8" description = "Phrase TMS API" authors = ["Martin Chrástek"] license = "NoLicense" diff --git a/setup.py b/setup.py index ef66c28..5a49811 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "phrasetms-client" -VERSION = "0.3.7" +VERSION = "0.3.8" PYTHON_REQUIRES = ">=3.7" REQUIRES = ["urllib3 >= 1.25.3", "python-dateutil", "pydantic >= 1.10.5, < 2", "aenum"] diff --git a/test/test_multipart_file.py b/test/test_multipart_file.py index b3166c4..a111ab7 100644 --- a/test/test_multipart_file.py +++ b/test/test_multipart_file.py @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> MultipartFile: model = MultipartFile() # noqa: E501 if include_optional: return MultipartFile( - name = '', + local_path = '', empty = True, bytes = [ 'YQ=='