Skip to content

Commit 6d89eb7

Browse files
author
Phrase
committed
1 parent f2ca099 commit 6d89eb7

27 files changed

+271
-31
lines changed

docs/JobCreateParameters.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**tags** | **List[str]** | tags of keys that should be included within the job | [optional]
1313
**translation_key_ids** | **List[str]** | ids of keys that should be included within the job | [optional]
1414
**job_template_id** | **str** | id of a job template you would like to model the created job after. Any manually added parameters will take preference over template attributes. | [optional]
15+
**autotranslate** | **bool** | Automatically translate the job using machine translation. | [optional]
1516

1617
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1718

docs/JobTemplateCreateParameters.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
**branch** | **str** | specify the branch to use | [optional]
77
**name** | **str** | Job template name |
88
**briefing** | **str** | Briefing for the translators | [optional]
9+
**autotranslate** | **bool** | Automatically translate the job using machine translation. | [optional]
910

1011
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1112

docs/JobTemplateUpdateParameters.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
**branch** | **str** | specify the branch to use | [optional]
77
**name** | **str** | Job template name |
88
**briefing** | **str** | Briefing for the translators | [optional]
9+
**autotranslate** | **bool** | Automatically translate the job using machine translation. | [optional]
910

1011
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1112

docs/JobUpdateParameters.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**briefing** | **str** | Briefing for the translators | [optional]
99
**due_date** | **datetime** | Date the job should be finished | [optional]
1010
**ticket_url** | **str** | URL to a ticket for this job (e.g. Jira, Trello) | [optional]
11+
**autotranslate** | **bool** | Automatically translate the job using machine translation | [optional]
1112

1213
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1314

docs/OrganizationJobTemplateCreateParameters.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**name** | **str** | Job template name |
77
**briefing** | **str** | Briefing for the translators | [optional]
8+
**autotranslate** | **bool** | Automatically translate the job using machine translation. | [optional]
89

910
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1011

docs/OrganizationJobTemplateUpdateParameters.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**name** | **str** | Job template name |
77
**briefing** | **str** | Briefing for the translators | [optional]
8+
**autotranslate** | **bool** | Automatically translate the job using machine translation. | [optional]
89

910
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1011

docs/ProjectCreateParameters.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Name | Type | Description | Notes
2626
**autotranslate_mark_as_unverified** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional]
2727
**autotranslate_use_machine_translation** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional]
2828
**autotranslate_use_translation_memory** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional]
29+
**autotranslate_overwrite_unverified_translations** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional]
2930
**placeholder_styles** | **List[str]** | (Optional) List of placeholder styles enabled for the project. | [optional]
3031

3132
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/ProjectUpdateParameters.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Name | Type | Description | Notes
2525
**autotranslate_mark_as_unverified** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional]
2626
**autotranslate_use_machine_translation** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional]
2727
**autotranslate_use_translation_memory** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional]
28+
**autotranslate_overwrite_unverified_translations** | **bool** | (Optional) Requires autotranslate_enabled to be true | [optional]
2829
**default_encoding** | **str** | (Optional) Sets the default encoding for Uploads. If you leave it empty, we will try to guess it automatically for you when you Upload a file. You can still override this value by setting the [`file_encoding`](/en/api/strings/uploads/upload-a-new-file) parameter for Uploads. | [optional]
2930
**placeholder_styles** | **List[str]** | (Optional) List of placeholder styles enabled for the project. | [optional]
3031

phrase_api/models/job_create_parameters.py

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ class JobCreateParameters(object):
4040
'ticket_url': 'str',
4141
'tags': 'List[str]',
4242
'translation_key_ids': 'List[str]',
43-
'job_template_id': 'str'
43+
'job_template_id': 'str',
44+
'autotranslate': 'bool'
4445
}
4546

4647
attribute_map = {
@@ -52,10 +53,11 @@ class JobCreateParameters(object):
5253
'ticket_url': 'ticket_url',
5354
'tags': 'tags',
5455
'translation_key_ids': 'translation_key_ids',
55-
'job_template_id': 'job_template_id'
56+
'job_template_id': 'job_template_id',
57+
'autotranslate': 'autotranslate'
5658
}
5759

58-
def __init__(self, branch=None, name=None, source_locale_id=None, briefing=None, due_date=None, ticket_url=None, tags=None, translation_key_ids=None, job_template_id=None, local_vars_configuration=None): # noqa: E501
60+
def __init__(self, branch=None, name=None, source_locale_id=None, briefing=None, due_date=None, ticket_url=None, tags=None, translation_key_ids=None, job_template_id=None, autotranslate=None, local_vars_configuration=None): # noqa: E501
5961
"""JobCreateParameters - a model defined in OpenAPI""" # noqa: E501
6062
if local_vars_configuration is None:
6163
local_vars_configuration = Configuration()
@@ -70,6 +72,7 @@ def __init__(self, branch=None, name=None, source_locale_id=None, briefing=None,
7072
self._tags = None
7173
self._translation_key_ids = None
7274
self._job_template_id = None
75+
self._autotranslate = None
7376
self.discriminator = None
7477

7578
if branch is not None:
@@ -88,6 +91,8 @@ def __init__(self, branch=None, name=None, source_locale_id=None, briefing=None,
8891
self.translation_key_ids = translation_key_ids
8992
if job_template_id is not None:
9093
self.job_template_id = job_template_id
94+
if autotranslate is not None:
95+
self.autotranslate = autotranslate
9196

9297
@property
9398
def branch(self):
@@ -298,6 +303,29 @@ def job_template_id(self, job_template_id):
298303

299304
self._job_template_id = job_template_id
300305

306+
@property
307+
def autotranslate(self):
308+
"""Gets the autotranslate of this JobCreateParameters. # noqa: E501
309+
310+
Automatically translate the job using machine translation. # noqa: E501
311+
312+
:return: The autotranslate of this JobCreateParameters. # noqa: E501
313+
:rtype: bool
314+
"""
315+
return self._autotranslate
316+
317+
@autotranslate.setter
318+
def autotranslate(self, autotranslate):
319+
"""Sets the autotranslate of this JobCreateParameters.
320+
321+
Automatically translate the job using machine translation. # noqa: E501
322+
323+
:param autotranslate: The autotranslate of this JobCreateParameters. # noqa: E501
324+
:type: bool
325+
"""
326+
327+
self._autotranslate = autotranslate
328+
301329
def to_dict(self):
302330
"""Returns the model properties as a dict"""
303331
result = {}

phrase_api/models/job_template_create_parameters.py

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,18 @@ class JobTemplateCreateParameters(object):
3434
openapi_types = {
3535
'branch': 'str',
3636
'name': 'str',
37-
'briefing': 'str'
37+
'briefing': 'str',
38+
'autotranslate': 'bool'
3839
}
3940

4041
attribute_map = {
4142
'branch': 'branch',
4243
'name': 'name',
43-
'briefing': 'briefing'
44+
'briefing': 'briefing',
45+
'autotranslate': 'autotranslate'
4446
}
4547

46-
def __init__(self, branch=None, name=None, briefing=None, local_vars_configuration=None): # noqa: E501
48+
def __init__(self, branch=None, name=None, briefing=None, autotranslate=None, local_vars_configuration=None): # noqa: E501
4749
"""JobTemplateCreateParameters - a model defined in OpenAPI""" # noqa: E501
4850
if local_vars_configuration is None:
4951
local_vars_configuration = Configuration()
@@ -52,13 +54,16 @@ def __init__(self, branch=None, name=None, briefing=None, local_vars_configurati
5254
self._branch = None
5355
self._name = None
5456
self._briefing = None
57+
self._autotranslate = None
5558
self.discriminator = None
5659

5760
if branch is not None:
5861
self.branch = branch
5962
self.name = name
6063
if briefing is not None:
6164
self.briefing = briefing
65+
if autotranslate is not None:
66+
self.autotranslate = autotranslate
6267

6368
@property
6469
def branch(self):
@@ -131,6 +136,29 @@ def briefing(self, briefing):
131136

132137
self._briefing = briefing
133138

139+
@property
140+
def autotranslate(self):
141+
"""Gets the autotranslate of this JobTemplateCreateParameters. # noqa: E501
142+
143+
Automatically translate the job using machine translation. # noqa: E501
144+
145+
:return: The autotranslate of this JobTemplateCreateParameters. # noqa: E501
146+
:rtype: bool
147+
"""
148+
return self._autotranslate
149+
150+
@autotranslate.setter
151+
def autotranslate(self, autotranslate):
152+
"""Sets the autotranslate of this JobTemplateCreateParameters.
153+
154+
Automatically translate the job using machine translation. # noqa: E501
155+
156+
:param autotranslate: The autotranslate of this JobTemplateCreateParameters. # noqa: E501
157+
:type: bool
158+
"""
159+
160+
self._autotranslate = autotranslate
161+
134162
def to_dict(self):
135163
"""Returns the model properties as a dict"""
136164
result = {}

0 commit comments

Comments
 (0)