Skip to content

Commit 7cb8fac

Browse files
author
Phrase
committed
1 parent 47d39d4 commit 7cb8fac

12 files changed

Lines changed: 161 additions & 17 deletions

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+
**placeholder_styles** | **List[str]** | (Optional) List of placeholder styles enabled for the project. | [optional]
2930

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

docs/ProjectDetails.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ Name | Type | Description | Notes
2929
**autotranslate_use_machine_translation** | **bool** | | [optional]
3030
**autotranslate_use_translation_memory** | **bool** | | [optional]
3131
**default_encoding** | **str** | | [optional]
32+
**cldr_version** | **str** | | [optional]
33+
**job_locking_enabled** | **bool** | | [optional]
34+
**placeholder_styles** | **List[str]** | | [optional]
3235

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

docs/ProjectUpdateParameters.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_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]
2828
**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]
29+
**placeholder_styles** | **List[str]** | (Optional) List of placeholder styles enabled for the project. | [optional]
2930

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

phrase_api/models/project_create_parameters.py

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ class ProjectCreateParameters(object):
5454
'autotranslate_check_new_locales': 'bool',
5555
'autotranslate_mark_as_unverified': 'bool',
5656
'autotranslate_use_machine_translation': 'bool',
57-
'autotranslate_use_translation_memory': 'bool'
57+
'autotranslate_use_translation_memory': 'bool',
58+
'placeholder_styles': 'List[str]'
5859
}
5960

6061
attribute_map = {
@@ -80,10 +81,11 @@ class ProjectCreateParameters(object):
8081
'autotranslate_check_new_locales': 'autotranslate_check_new_locales',
8182
'autotranslate_mark_as_unverified': 'autotranslate_mark_as_unverified',
8283
'autotranslate_use_machine_translation': 'autotranslate_use_machine_translation',
83-
'autotranslate_use_translation_memory': 'autotranslate_use_translation_memory'
84+
'autotranslate_use_translation_memory': 'autotranslate_use_translation_memory',
85+
'placeholder_styles': 'placeholder_styles'
8486
}
8587

86-
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
88+
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, placeholder_styles=None, local_vars_configuration=None): # noqa: E501
8789
"""ProjectCreateParameters - a model defined in OpenAPI""" # noqa: E501
8890
if local_vars_configuration is None:
8991
local_vars_configuration = Configuration()
@@ -112,6 +114,7 @@ def __init__(self, name=None, main_format=None, media=None, shares_translation_m
112114
self._autotranslate_mark_as_unverified = None
113115
self._autotranslate_use_machine_translation = None
114116
self._autotranslate_use_translation_memory = None
117+
self._placeholder_styles = None
115118
self.discriminator = None
116119

117120
self.name = name
@@ -159,6 +162,8 @@ def __init__(self, name=None, main_format=None, media=None, shares_translation_m
159162
self.autotranslate_use_machine_translation = autotranslate_use_machine_translation
160163
if autotranslate_use_translation_memory is not None:
161164
self.autotranslate_use_translation_memory = autotranslate_use_translation_memory
165+
if placeholder_styles is not None:
166+
self.placeholder_styles = placeholder_styles
162167

163168
@property
164169
def name(self):
@@ -691,6 +696,29 @@ def autotranslate_use_translation_memory(self, autotranslate_use_translation_mem
691696

692697
self._autotranslate_use_translation_memory = autotranslate_use_translation_memory
693698

699+
@property
700+
def placeholder_styles(self):
701+
"""Gets the placeholder_styles of this ProjectCreateParameters. # noqa: E501
702+
703+
(Optional) List of placeholder styles enabled for the project. # noqa: E501
704+
705+
:return: The placeholder_styles of this ProjectCreateParameters. # noqa: E501
706+
:rtype: List[str]
707+
"""
708+
return self._placeholder_styles
709+
710+
@placeholder_styles.setter
711+
def placeholder_styles(self, placeholder_styles):
712+
"""Sets the placeholder_styles of this ProjectCreateParameters.
713+
714+
(Optional) List of placeholder styles enabled for the project. # noqa: E501
715+
716+
:param placeholder_styles: The placeholder_styles of this ProjectCreateParameters. # noqa: E501
717+
:type: List[str]
718+
"""
719+
720+
self._placeholder_styles = placeholder_styles
721+
694722
def to_dict(self):
695723
"""Returns the model properties as a dict"""
696724
result = {}

phrase_api/models/project_details.py

Lines changed: 81 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ class ProjectDetails(object):
5757
'autotranslate_mark_as_unverified': 'bool',
5858
'autotranslate_use_machine_translation': 'bool',
5959
'autotranslate_use_translation_memory': 'bool',
60-
'default_encoding': 'str'
60+
'default_encoding': 'str',
61+
'cldr_version': 'str',
62+
'job_locking_enabled': 'bool',
63+
'placeholder_styles': 'List[str]'
6164
}
6265

6366
attribute_map = {
@@ -86,10 +89,13 @@ class ProjectDetails(object):
8689
'autotranslate_mark_as_unverified': 'autotranslate_mark_as_unverified',
8790
'autotranslate_use_machine_translation': 'autotranslate_use_machine_translation',
8891
'autotranslate_use_translation_memory': 'autotranslate_use_translation_memory',
89-
'default_encoding': 'default_encoding'
92+
'default_encoding': 'default_encoding',
93+
'cldr_version': 'cldr_version',
94+
'job_locking_enabled': 'job_locking_enabled',
95+
'placeholder_styles': 'placeholder_styles'
9096
}
9197

92-
def __init__(self, id=None, name=None, slug=None, main_format=None, project_image_url=None, media=None, account=None, space=None, point_of_contact=None, created_at=None, updated_at=None, shares_translation_memory=None, machine_translation_enabled=None, zero_plural_form_enabled=None, enable_all_data_type_translation_keys_for_translators=None, enable_icu_message_format=None, enable_branching=None, protect_master_branch=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, default_encoding=None, local_vars_configuration=None): # noqa: E501
98+
def __init__(self, id=None, name=None, slug=None, main_format=None, project_image_url=None, media=None, account=None, space=None, point_of_contact=None, created_at=None, updated_at=None, shares_translation_memory=None, machine_translation_enabled=None, zero_plural_form_enabled=None, enable_all_data_type_translation_keys_for_translators=None, enable_icu_message_format=None, enable_branching=None, protect_master_branch=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, default_encoding=None, cldr_version=None, job_locking_enabled=None, placeholder_styles=None, local_vars_configuration=None): # noqa: E501
9399
"""ProjectDetails - a model defined in OpenAPI""" # noqa: E501
94100
if local_vars_configuration is None:
95101
local_vars_configuration = Configuration()
@@ -121,6 +127,9 @@ def __init__(self, id=None, name=None, slug=None, main_format=None, project_imag
121127
self._autotranslate_use_machine_translation = None
122128
self._autotranslate_use_translation_memory = None
123129
self._default_encoding = None
130+
self._cldr_version = None
131+
self._job_locking_enabled = None
132+
self._placeholder_styles = None
124133
self.discriminator = None
125134

126135
if id is not None:
@@ -175,6 +184,12 @@ def __init__(self, id=None, name=None, slug=None, main_format=None, project_imag
175184
self.autotranslate_use_translation_memory = autotranslate_use_translation_memory
176185
if default_encoding is not None:
177186
self.default_encoding = default_encoding
187+
if cldr_version is not None:
188+
self.cldr_version = cldr_version
189+
if job_locking_enabled is not None:
190+
self.job_locking_enabled = job_locking_enabled
191+
if placeholder_styles is not None:
192+
self.placeholder_styles = placeholder_styles
178193

179194
@property
180195
def id(self):
@@ -722,6 +737,69 @@ def default_encoding(self, default_encoding):
722737

723738
self._default_encoding = default_encoding
724739

740+
@property
741+
def cldr_version(self):
742+
"""Gets the cldr_version of this ProjectDetails. # noqa: E501
743+
744+
745+
:return: The cldr_version of this ProjectDetails. # noqa: E501
746+
:rtype: str
747+
"""
748+
return self._cldr_version
749+
750+
@cldr_version.setter
751+
def cldr_version(self, cldr_version):
752+
"""Sets the cldr_version of this ProjectDetails.
753+
754+
755+
:param cldr_version: The cldr_version of this ProjectDetails. # noqa: E501
756+
:type: str
757+
"""
758+
759+
self._cldr_version = cldr_version
760+
761+
@property
762+
def job_locking_enabled(self):
763+
"""Gets the job_locking_enabled of this ProjectDetails. # noqa: E501
764+
765+
766+
:return: The job_locking_enabled of this ProjectDetails. # noqa: E501
767+
:rtype: bool
768+
"""
769+
return self._job_locking_enabled
770+
771+
@job_locking_enabled.setter
772+
def job_locking_enabled(self, job_locking_enabled):
773+
"""Sets the job_locking_enabled of this ProjectDetails.
774+
775+
776+
:param job_locking_enabled: The job_locking_enabled of this ProjectDetails. # noqa: E501
777+
:type: bool
778+
"""
779+
780+
self._job_locking_enabled = job_locking_enabled
781+
782+
@property
783+
def placeholder_styles(self):
784+
"""Gets the placeholder_styles of this ProjectDetails. # noqa: E501
785+
786+
787+
:return: The placeholder_styles of this ProjectDetails. # noqa: E501
788+
:rtype: List[str]
789+
"""
790+
return self._placeholder_styles
791+
792+
@placeholder_styles.setter
793+
def placeholder_styles(self, placeholder_styles):
794+
"""Sets the placeholder_styles of this ProjectDetails.
795+
796+
797+
:param placeholder_styles: The placeholder_styles of this ProjectDetails. # noqa: E501
798+
:type: List[str]
799+
"""
800+
801+
self._placeholder_styles = placeholder_styles
802+
725803
def to_dict(self):
726804
"""Returns the model properties as a dict"""
727805
result = {}

phrase_api/models/project_update_parameters.py

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ class ProjectUpdateParameters(object):
5454
'autotranslate_mark_as_unverified': 'bool',
5555
'autotranslate_use_machine_translation': 'bool',
5656
'autotranslate_use_translation_memory': 'bool',
57-
'default_encoding': 'str'
57+
'default_encoding': 'str',
58+
'placeholder_styles': 'List[str]'
5859
}
5960

6061
attribute_map = {
@@ -80,10 +81,11 @@ class ProjectUpdateParameters(object):
8081
'autotranslate_mark_as_unverified': 'autotranslate_mark_as_unverified',
8182
'autotranslate_use_machine_translation': 'autotranslate_use_machine_translation',
8283
'autotranslate_use_translation_memory': 'autotranslate_use_translation_memory',
83-
'default_encoding': 'default_encoding'
84+
'default_encoding': 'default_encoding',
85+
'placeholder_styles': 'placeholder_styles'
8486
}
8587

86-
def __init__(self, account_id=None, name=None, point_of_contact=None, main_format=None, media=None, shares_translation_memory=None, project_image=None, remove_project_image=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, default_encoding=None, local_vars_configuration=None): # noqa: E501
88+
def __init__(self, account_id=None, name=None, point_of_contact=None, main_format=None, media=None, shares_translation_memory=None, project_image=None, remove_project_image=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, default_encoding=None, placeholder_styles=None, local_vars_configuration=None): # noqa: E501
8789
"""ProjectUpdateParameters - a model defined in OpenAPI""" # noqa: E501
8890
if local_vars_configuration is None:
8991
local_vars_configuration = Configuration()
@@ -112,6 +114,7 @@ def __init__(self, account_id=None, name=None, point_of_contact=None, main_forma
112114
self._autotranslate_use_machine_translation = None
113115
self._autotranslate_use_translation_memory = None
114116
self._default_encoding = None
117+
self._placeholder_styles = None
115118
self.discriminator = None
116119

117120
if account_id is not None:
@@ -160,6 +163,8 @@ def __init__(self, account_id=None, name=None, point_of_contact=None, main_forma
160163
self.autotranslate_use_translation_memory = autotranslate_use_translation_memory
161164
if default_encoding is not None:
162165
self.default_encoding = default_encoding
166+
if placeholder_styles is not None:
167+
self.placeholder_styles = placeholder_styles
163168

164169
@property
165170
def account_id(self):
@@ -696,6 +701,29 @@ def default_encoding(self, default_encoding):
696701

697702
self._default_encoding = default_encoding
698703

704+
@property
705+
def placeholder_styles(self):
706+
"""Gets the placeholder_styles of this ProjectUpdateParameters. # noqa: E501
707+
708+
(Optional) List of placeholder styles enabled for the project. # noqa: E501
709+
710+
:return: The placeholder_styles of this ProjectUpdateParameters. # noqa: E501
711+
:rtype: List[str]
712+
"""
713+
return self._placeholder_styles
714+
715+
@placeholder_styles.setter
716+
def placeholder_styles(self, placeholder_styles):
717+
"""Sets the placeholder_styles of this ProjectUpdateParameters.
718+
719+
(Optional) List of placeholder styles enabled for the project. # noqa: E501
720+
721+
:param placeholder_styles: The placeholder_styles of this ProjectUpdateParameters. # noqa: E501
722+
:type: List[str]
723+
"""
724+
725+
self._placeholder_styles = placeholder_styles
726+
699727
def to_dict(self):
700728
"""Returns the model properties as a dict"""
701729
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@5cb63d05',
49+
screenshot = '[B@46808854',
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@656ac24',
49+
screenshot = '[B@59bedf4d',
5050
remove_screenshot = True,
5151
unformatted = True,
5252
xml_space_preserve = True,

test/test_project_create_parameters.py

Lines changed: 3 additions & 2 deletions
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@12d644a6',
44+
project_image = '[B@494e502c',
4545
remove_project_image = True,
4646
account_id = 'abcd1234',
4747
point_of_contact = 'abcd1234',
@@ -59,7 +59,8 @@ def make_instance(self, include_optional):
5959
autotranslate_check_new_locales = True,
6060
autotranslate_mark_as_unverified = True,
6161
autotranslate_use_machine_translation = True,
62-
autotranslate_use_translation_memory = True
62+
autotranslate_use_translation_memory = True,
63+
placeholder_styles = ["angular","iOS"]
6364
)
6465
else :
6566
return ProjectCreateParameters(

test/test_project_details.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ def make_instance(self, include_optional):
6262
autotranslate_mark_as_unverified = False,
6363
autotranslate_use_machine_translation = False,
6464
autotranslate_use_translation_memory = True,
65-
default_encoding = 'UTF-8'
65+
default_encoding = 'UTF-8',
66+
cldr_version = 'legacy',
67+
job_locking_enabled = False,
68+
placeholder_styles = ["angular","iOS"]
6669
)
6770
else :
6871
return ProjectDetails(

0 commit comments

Comments
 (0)