Skip to content

Commit 01c8092

Browse files
author
Phrase
committed
1 parent dfe8322 commit 01c8092

8 files changed

+39
-9
lines changed

docs/TranslationUpdateParameters.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**unverified** | **bool** | Indicates whether translation is unverified. Part of the [Advanced Workflows](https://support.phrase.com/hc/en-us/articles/5784094755484) feature. | [optional]
1010
**excluded** | **bool** | Indicates whether translation is excluded. | [optional]
1111
**autotranslate** | **bool** | Indicates whether the translation should be auto-translated. Responses with status 422 if provided for translation within a non-default locale or the project does not have the Autopilot feature enabled. | [optional]
12+
**reviewed** | **bool** | When set to `true`, the translation will be marked as reviewed. | [optional]
1213

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

phrase_api/models/translation_update_parameters.py

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ class TranslationUpdateParameters(object):
3737
'plural_suffix': 'str',
3838
'unverified': 'bool',
3939
'excluded': 'bool',
40-
'autotranslate': 'bool'
40+
'autotranslate': 'bool',
41+
'reviewed': 'bool'
4142
}
4243

4344
attribute_map = {
@@ -46,10 +47,11 @@ class TranslationUpdateParameters(object):
4647
'plural_suffix': 'plural_suffix',
4748
'unverified': 'unverified',
4849
'excluded': 'excluded',
49-
'autotranslate': 'autotranslate'
50+
'autotranslate': 'autotranslate',
51+
'reviewed': 'reviewed'
5052
}
5153

52-
def __init__(self, branch=None, content=None, plural_suffix=None, unverified=None, excluded=None, autotranslate=None, local_vars_configuration=None): # noqa: E501
54+
def __init__(self, branch=None, content=None, plural_suffix=None, unverified=None, excluded=None, autotranslate=None, reviewed=None, local_vars_configuration=None): # noqa: E501
5355
"""TranslationUpdateParameters - a model defined in OpenAPI""" # noqa: E501
5456
if local_vars_configuration is None:
5557
local_vars_configuration = Configuration()
@@ -61,6 +63,7 @@ def __init__(self, branch=None, content=None, plural_suffix=None, unverified=Non
6163
self._unverified = None
6264
self._excluded = None
6365
self._autotranslate = None
66+
self._reviewed = None
6467
self.discriminator = None
6568

6669
if branch is not None:
@@ -75,6 +78,8 @@ def __init__(self, branch=None, content=None, plural_suffix=None, unverified=Non
7578
self.excluded = excluded
7679
if autotranslate is not None:
7780
self.autotranslate = autotranslate
81+
if reviewed is not None:
82+
self.reviewed = reviewed
7883

7984
@property
8085
def branch(self):
@@ -214,6 +219,29 @@ def autotranslate(self, autotranslate):
214219

215220
self._autotranslate = autotranslate
216221

222+
@property
223+
def reviewed(self):
224+
"""Gets the reviewed of this TranslationUpdateParameters. # noqa: E501
225+
226+
When set to `true`, the translation will be marked as reviewed. # noqa: E501
227+
228+
:return: The reviewed of this TranslationUpdateParameters. # noqa: E501
229+
:rtype: bool
230+
"""
231+
return self._reviewed
232+
233+
@reviewed.setter
234+
def reviewed(self, reviewed):
235+
"""Sets the reviewed of this TranslationUpdateParameters.
236+
237+
When set to `true`, the translation will be marked as reviewed. # noqa: E501
238+
239+
:param reviewed: The reviewed of this TranslationUpdateParameters. # noqa: E501
240+
:type: bool
241+
"""
242+
243+
self._reviewed = reviewed
244+
217245
def to_dict(self):
218246
"""Returns the model properties as a dict"""
219247
result = {}

test/test_key_create_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def make_instance(self, include_optional):
4646
data_type = 'number',
4747
tags = 'awesome-feature,needs-proofreading',
4848
max_characters_allowed = 140,
49-
screenshot = '[B@edda257',
49+
screenshot = '[B@3e6b4f51',
5050
remove_screenshot = True,
5151
unformatted = True,
5252
default_translation_content = 'Default translation content',

test/test_key_update_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def make_instance(self, include_optional):
4646
data_type = 'number',
4747
tags = 'awesome-feature,needs-proofreading',
4848
max_characters_allowed = 140,
49-
screenshot = '[B@7dbcbc7b',
49+
screenshot = '[B@3ca07d9',
5050
remove_screenshot = True,
5151
unformatted = True,
5252
xml_space_preserve = True,

test/test_project_create_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def make_instance(self, include_optional):
4141
main_format = 'yml',
4242
media = 'Python',
4343
shares_translation_memory = True,
44-
project_image = '[B@1d021496',
44+
project_image = '[B@298517d1',
4545
remove_project_image = True,
4646
account_id = 'abcd1234',
4747
point_of_contact = 'abcd1234',

test/test_project_update_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def make_instance(self, include_optional):
4343
main_format = 'yml',
4444
media = 'Python',
4545
shares_translation_memory = True,
46-
project_image = '[B@1dfdddfa',
46+
project_image = '[B@3a00f386',
4747
remove_project_image = False,
4848
workflow = 'review',
4949
machine_translation_enabled = True,

test/test_screenshot_update_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def make_instance(self, include_optional):
4040
branch = 'my-feature-branch',
4141
name = 'A screenshot name',
4242
description = 'A screenshot description',
43-
filename = '[B@3f6b01b'
43+
filename = '[B@3f51fcf5'
4444
)
4545
else :
4646
return ScreenshotUpdateParameters(

test/test_translation_update_parameters.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ def make_instance(self, include_optional):
4242
plural_suffix = '',
4343
unverified = True,
4444
excluded = True,
45-
autotranslate = True
45+
autotranslate = True,
46+
reviewed = True
4647
)
4748
else :
4849
return TranslationUpdateParameters(

0 commit comments

Comments
 (0)