Skip to content

Commit

Permalink
Deploying from phrase/openapi@7161c930
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Sep 19, 2024
1 parent 9fbd13b commit b2bcc25
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 203 deletions.
4 changes: 2 additions & 2 deletions docs/JobsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ with phrase_api.ApiClient(configuration) as api_client:
id = 'id_example' # str | ID (required)
x_phrase_app_otp = 'x_phrase_app_otp_example' # str | Two-Factor-Authentication token (optional)
branch = 'my-feature-branch' # str | specify the branch to use
translation_key_ids = ['[\"abcd1234cdef1234abcd1234cdef1234\"]'] # List[str] | ids of keys that should added to the job
translation_key_ids = ['[\"abcd1234cdef1234abcd1234cdef1234\"]'] # List[str] | ids of keys that should be removed from the job

try:
# Remove keys from job
Expand All @@ -342,7 +342,7 @@ Name | Type | Description | Notes
**id** | **str**| ID |
**x_phrase_app_otp** | **str**| Two-Factor-Authentication token (optional) | [optional]
**branch** | **str**| specify the branch to use | [optional]
**translation_key_ids** | [**List[str]**](str.md)| ids of keys that should added to the job | [optional]
**translation_key_ids** | [**List[str]**](str.md)| ids of keys that should be removed from the job | [optional]

### Return type

Expand Down
5 changes: 1 addition & 4 deletions docs/ProjectCreateParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Name | Type | Description | Notes
**point_of_contact** | **str** | (Optional) User ID of the point of contact for the project. | [optional]
**source_project_id** | **str** | When a source project ID is given, a clone of that project will be created, including all locales, keys and translations as well as the main project settings if they are not defined otherwise through the params. | [optional]
**workflow** | **str** | (Optional) Review Workflow. \"simple\" / \"review\". <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\">Read more</a> | [optional]
**machine_translation_enabled** | **bool** | (Optional) Enable machine translation support in the project. Required for Autopilot and Smart Suggest | [optional]
**machine_translation_enabled** | **bool** | (Optional) Enable machine translation support in the project. Required for Pre-Translation | [optional]
**enable_branching** | **bool** | (Optional) Enable branching in the project | [optional]
**protect_master_branch** | **bool** | (Optional) Protect the master branch in project where branching is enabled | [optional]
**enable_all_data_type_translation_keys_for_translators** | **bool** | (Optional) Otherwise, translators are not allowed to edit translations other than strings | [optional]
Expand All @@ -26,9 +26,6 @@ Name | Type | Description | Notes
**autotranslate_mark_as_unverified** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional]
**autotranslate_use_machine_translation** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional]
**autotranslate_use_translation_memory** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional]
**smart_suggest_enabled** | **bool** | (Optional) Smart Suggest, requires machine_translation_enabled | [optional]
**smart_suggest_use_glossary** | **bool** | (Optional) Requires smart_suggest_enabled to be true | [optional]
**smart_suggest_use_machine_translation** | **bool** | (Optional) Requires smart_suggest_enabled to be true | [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)

Expand Down
5 changes: 1 addition & 4 deletions docs/ProjectUpdateParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**project_image** | **bytearray** | (Optional) Image to identify the project | [optional]
**remove_project_image** | **bool** | (Optional) Indicates whether the project image should be deleted. | [optional]
**workflow** | **str** | (Optional) Review Workflow. \"simple\" / \"review\". <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\">Read more</a> | [optional]
**machine_translation_enabled** | **bool** | (Optional) Enable machine translation support in the project. Required for Autopilot and Smart Suggest | [optional]
**machine_translation_enabled** | **bool** | (Optional) Enable machine translation support in the project. Required for Pre-Translation | [optional]
**enable_branching** | **bool** | (Optional) Enable branching in the project | [optional]
**protect_master_branch** | **bool** | (Optional) Protect the master branch in project where branching is enabled | [optional]
**enable_all_data_type_translation_keys_for_translators** | **bool** | (Optional) Otherwise, translators are not allowed to edit translations other than strings | [optional]
Expand All @@ -25,9 +25,6 @@ Name | Type | Description | Notes
**autotranslate_mark_as_unverified** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional]
**autotranslate_use_machine_translation** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional]
**autotranslate_use_translation_memory** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional]
**smart_suggest_enabled** | **bool** | (Optional) Smart Suggest, requires machine_translation_enabled | [optional]
**smart_suggest_use_glossary** | **bool** | (Optional) Requires smart_suggest_enabled to be true | [optional]
**smart_suggest_use_machine_translation** | **bool** | (Optional) Requires smart_suggest_enabled to be true | [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)

Expand Down
4 changes: 2 additions & 2 deletions phrase_api/api/jobs_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ def job_keys_delete(self, project_id, id, **kwargs): # noqa: E501
:param str id: ID (required)
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
:param str branch: specify the branch to use
:param List[str] translation_key_ids: ids of keys that should added to the job
:param List[str] translation_key_ids: ids of keys that should be removed from the job
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
Expand Down Expand Up @@ -621,7 +621,7 @@ def job_keys_delete_with_http_info(self, project_id, id, **kwargs): # noqa: E50
:param str id: ID (required)
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
:param str branch: specify the branch to use
:param List[str] translation_key_ids: ids of keys that should added to the job
:param List[str] translation_key_ids: ids of keys that should be removed from the job
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
Expand Down
94 changes: 5 additions & 89 deletions phrase_api/models/project_create_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@ class ProjectCreateParameters(object):
'autotranslate_check_new_locales': 'bool',
'autotranslate_mark_as_unverified': 'bool',
'autotranslate_use_machine_translation': 'bool',
'autotranslate_use_translation_memory': 'bool',
'smart_suggest_enabled': 'bool',
'smart_suggest_use_glossary': 'bool',
'smart_suggest_use_machine_translation': 'bool'
'autotranslate_use_translation_memory': 'bool'
}

attribute_map = {
Expand All @@ -83,13 +80,10 @@ class ProjectCreateParameters(object):
'autotranslate_check_new_locales': 'autotranslate_check_new_locales',
'autotranslate_mark_as_unverified': 'autotranslate_mark_as_unverified',
'autotranslate_use_machine_translation': 'autotranslate_use_machine_translation',
'autotranslate_use_translation_memory': 'autotranslate_use_translation_memory',
'smart_suggest_enabled': 'smart_suggest_enabled',
'smart_suggest_use_glossary': 'smart_suggest_use_glossary',
'smart_suggest_use_machine_translation': 'smart_suggest_use_machine_translation'
'autotranslate_use_translation_memory': 'autotranslate_use_translation_memory'
}

def __init__(self, name=None, main_format=None, media=None, shares_translation_memory=None, project_image=None, remove_project_image=None, account_id=None, point_of_contact=None, source_project_id=None, workflow=None, machine_translation_enabled=None, enable_branching=None, protect_master_branch=None, enable_all_data_type_translation_keys_for_translators=None, enable_icu_message_format=None, zero_plural_form_enabled=None, autotranslate_enabled=None, autotranslate_check_new_translation_keys=None, autotranslate_check_new_uploads=None, autotranslate_check_new_locales=None, autotranslate_mark_as_unverified=None, autotranslate_use_machine_translation=None, autotranslate_use_translation_memory=None, smart_suggest_enabled=None, smart_suggest_use_glossary=None, smart_suggest_use_machine_translation=None, local_vars_configuration=None): # noqa: E501
def __init__(self, name=None, main_format=None, media=None, shares_translation_memory=None, project_image=None, remove_project_image=None, account_id=None, point_of_contact=None, source_project_id=None, workflow=None, machine_translation_enabled=None, enable_branching=None, protect_master_branch=None, enable_all_data_type_translation_keys_for_translators=None, enable_icu_message_format=None, zero_plural_form_enabled=None, autotranslate_enabled=None, autotranslate_check_new_translation_keys=None, autotranslate_check_new_uploads=None, autotranslate_check_new_locales=None, autotranslate_mark_as_unverified=None, autotranslate_use_machine_translation=None, autotranslate_use_translation_memory=None, local_vars_configuration=None): # noqa: E501
"""ProjectCreateParameters - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
Expand Down Expand Up @@ -118,9 +112,6 @@ def __init__(self, name=None, main_format=None, media=None, shares_translation_m
self._autotranslate_mark_as_unverified = None
self._autotranslate_use_machine_translation = None
self._autotranslate_use_translation_memory = None
self._smart_suggest_enabled = None
self._smart_suggest_use_glossary = None
self._smart_suggest_use_machine_translation = None
self.discriminator = None

self.name = name
Expand Down Expand Up @@ -168,12 +159,6 @@ def __init__(self, name=None, main_format=None, media=None, shares_translation_m
self.autotranslate_use_machine_translation = autotranslate_use_machine_translation
if autotranslate_use_translation_memory is not None:
self.autotranslate_use_translation_memory = autotranslate_use_translation_memory
if smart_suggest_enabled is not None:
self.smart_suggest_enabled = smart_suggest_enabled
if smart_suggest_use_glossary is not None:
self.smart_suggest_use_glossary = smart_suggest_use_glossary
if smart_suggest_use_machine_translation is not None:
self.smart_suggest_use_machine_translation = smart_suggest_use_machine_translation

@property
def name(self):
Expand Down Expand Up @@ -411,7 +396,7 @@ def workflow(self, workflow):
def machine_translation_enabled(self):
"""Gets the machine_translation_enabled of this ProjectCreateParameters. # noqa: E501
(Optional) Enable machine translation support in the project. Required for Autopilot and Smart Suggest # noqa: E501
(Optional) Enable machine translation support in the project. Required for Pre-Translation # noqa: E501
:return: The machine_translation_enabled of this ProjectCreateParameters. # noqa: E501
:rtype: bool
Expand All @@ -422,7 +407,7 @@ def machine_translation_enabled(self):
def machine_translation_enabled(self, machine_translation_enabled):
"""Sets the machine_translation_enabled of this ProjectCreateParameters.
(Optional) Enable machine translation support in the project. Required for Autopilot and Smart Suggest # noqa: E501
(Optional) Enable machine translation support in the project. Required for Pre-Translation # noqa: E501
:param machine_translation_enabled: The machine_translation_enabled of this ProjectCreateParameters. # noqa: E501
:type: bool
Expand Down Expand Up @@ -706,75 +691,6 @@ def autotranslate_use_translation_memory(self, autotranslate_use_translation_mem

self._autotranslate_use_translation_memory = autotranslate_use_translation_memory

@property
def smart_suggest_enabled(self):
"""Gets the smart_suggest_enabled of this ProjectCreateParameters. # noqa: E501
(Optional) Smart Suggest, requires machine_translation_enabled # noqa: E501
:return: The smart_suggest_enabled of this ProjectCreateParameters. # noqa: E501
:rtype: bool
"""
return self._smart_suggest_enabled

@smart_suggest_enabled.setter
def smart_suggest_enabled(self, smart_suggest_enabled):
"""Sets the smart_suggest_enabled of this ProjectCreateParameters.
(Optional) Smart Suggest, requires machine_translation_enabled # noqa: E501
:param smart_suggest_enabled: The smart_suggest_enabled of this ProjectCreateParameters. # noqa: E501
:type: bool
"""

self._smart_suggest_enabled = smart_suggest_enabled

@property
def smart_suggest_use_glossary(self):
"""Gets the smart_suggest_use_glossary of this ProjectCreateParameters. # noqa: E501
(Optional) Requires smart_suggest_enabled to be true # noqa: E501
:return: The smart_suggest_use_glossary of this ProjectCreateParameters. # noqa: E501
:rtype: bool
"""
return self._smart_suggest_use_glossary

@smart_suggest_use_glossary.setter
def smart_suggest_use_glossary(self, smart_suggest_use_glossary):
"""Sets the smart_suggest_use_glossary of this ProjectCreateParameters.
(Optional) Requires smart_suggest_enabled to be true # noqa: E501
:param smart_suggest_use_glossary: The smart_suggest_use_glossary of this ProjectCreateParameters. # noqa: E501
:type: bool
"""

self._smart_suggest_use_glossary = smart_suggest_use_glossary

@property
def smart_suggest_use_machine_translation(self):
"""Gets the smart_suggest_use_machine_translation of this ProjectCreateParameters. # noqa: E501
(Optional) Requires smart_suggest_enabled to be true # noqa: E501
:return: The smart_suggest_use_machine_translation of this ProjectCreateParameters. # noqa: E501
:rtype: bool
"""
return self._smart_suggest_use_machine_translation

@smart_suggest_use_machine_translation.setter
def smart_suggest_use_machine_translation(self, smart_suggest_use_machine_translation):
"""Sets the smart_suggest_use_machine_translation of this ProjectCreateParameters.
(Optional) Requires smart_suggest_enabled to be true # noqa: E501
:param smart_suggest_use_machine_translation: The smart_suggest_use_machine_translation of this ProjectCreateParameters. # noqa: E501
:type: bool
"""

self._smart_suggest_use_machine_translation = smart_suggest_use_machine_translation

def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
Expand Down
Loading

0 comments on commit b2bcc25

Please sign in to comment.