Skip to content

Commit 6e474f3

Browse files
author
Phrase
committed
1 parent e766edc commit 6e474f3

19 files changed

+115
-19
lines changed

docs/KeyCreateParameters.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
77
**name** | **str** | Key name |
88
**description** | **str** | Key description (usually includes contextual information for translators) | [optional]
99
**plural** | **bool** | Indicates whether key supports pluralization | [optional]
10+
**use_ordinal_rules** | **bool** | Indicates whether key uses ordinal rules for pluralization | [optional]
1011
**name_plural** | **str** | Plural name for the key (used in some file formats, e.g. Gettext) | [optional]
1112
**data_type** | **str** | Type of the key. Can be one of the following: string, number, boolean, array, markdown. | [optional]
1213
**tags** | **str** | List of tags separated by comma to be associated with the key. | [optional]

docs/KeyPreview.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
**id** | **str** | | [optional]
77
**name** | **str** | | [optional]
88
**plural** | **bool** | | [optional]
9+
**use_ordinal_rules** | **bool** | | [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/KeyUpdateParameters.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
77
**name** | **str** | Key name | [optional]
88
**description** | **str** | Key description (usually includes contextual information for translators) | [optional]
99
**plural** | **bool** | Indicates whether key supports pluralization | [optional]
10+
**use_ordinal_rules** | **bool** | Indicates whether key uses ordinal rules for pluralization | [optional]
1011
**name_plural** | **str** | Plural name for the key (used in some file formats, e.g. Gettext) | [optional]
1112
**data_type** | **str** | Type of the key. Can be one of the following: string, number, boolean, array, markdown. | [optional]
1213
**tags** | **str** | List of tags separated by comma to be associated with the key. | [optional]

phrase_api/models/key_create_parameters.py

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class KeyCreateParameters(object):
3636
'name': 'str',
3737
'description': 'str',
3838
'plural': 'bool',
39+
'use_ordinal_rules': 'bool',
3940
'name_plural': 'str',
4041
'data_type': 'str',
4142
'tags': 'str',
@@ -57,6 +58,7 @@ class KeyCreateParameters(object):
5758
'name': 'name',
5859
'description': 'description',
5960
'plural': 'plural',
61+
'use_ordinal_rules': 'use_ordinal_rules',
6062
'name_plural': 'name_plural',
6163
'data_type': 'data_type',
6264
'tags': 'tags',
@@ -73,7 +75,7 @@ class KeyCreateParameters(object):
7375
'custom_metadata': 'custom_metadata'
7476
}
7577

76-
def __init__(self, branch=None, name=None, description=None, plural=None, name_plural=None, data_type=None, tags=None, max_characters_allowed=None, screenshot=None, remove_screenshot=None, unformatted=None, default_translation_content=None, autotranslate=None, xml_space_preserve=None, original_file=None, localized_format_string=None, localized_format_key=None, custom_metadata=None, local_vars_configuration=None): # noqa: E501
78+
def __init__(self, branch=None, name=None, description=None, plural=None, use_ordinal_rules=None, name_plural=None, data_type=None, tags=None, max_characters_allowed=None, screenshot=None, remove_screenshot=None, unformatted=None, default_translation_content=None, autotranslate=None, xml_space_preserve=None, original_file=None, localized_format_string=None, localized_format_key=None, custom_metadata=None, local_vars_configuration=None): # noqa: E501
7779
"""KeyCreateParameters - a model defined in OpenAPI""" # noqa: E501
7880
if local_vars_configuration is None:
7981
local_vars_configuration = Configuration()
@@ -83,6 +85,7 @@ def __init__(self, branch=None, name=None, description=None, plural=None, name_p
8385
self._name = None
8486
self._description = None
8587
self._plural = None
88+
self._use_ordinal_rules = None
8689
self._name_plural = None
8790
self._data_type = None
8891
self._tags = None
@@ -106,6 +109,8 @@ def __init__(self, branch=None, name=None, description=None, plural=None, name_p
106109
self.description = description
107110
if plural is not None:
108111
self.plural = plural
112+
if use_ordinal_rules is not None:
113+
self.use_ordinal_rules = use_ordinal_rules
109114
if name_plural is not None:
110115
self.name_plural = name_plural
111116
if data_type is not None:
@@ -229,6 +234,29 @@ def plural(self, plural):
229234

230235
self._plural = plural
231236

237+
@property
238+
def use_ordinal_rules(self):
239+
"""Gets the use_ordinal_rules of this KeyCreateParameters. # noqa: E501
240+
241+
Indicates whether key uses ordinal rules for pluralization # noqa: E501
242+
243+
:return: The use_ordinal_rules of this KeyCreateParameters. # noqa: E501
244+
:rtype: bool
245+
"""
246+
return self._use_ordinal_rules
247+
248+
@use_ordinal_rules.setter
249+
def use_ordinal_rules(self, use_ordinal_rules):
250+
"""Sets the use_ordinal_rules of this KeyCreateParameters.
251+
252+
Indicates whether key uses ordinal rules for pluralization # noqa: E501
253+
254+
:param use_ordinal_rules: The use_ordinal_rules of this KeyCreateParameters. # noqa: E501
255+
:type: bool
256+
"""
257+
258+
self._use_ordinal_rules = use_ordinal_rules
259+
232260
@property
233261
def name_plural(self):
234262
"""Gets the name_plural of this KeyCreateParameters. # noqa: E501

phrase_api/models/key_preview.py

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,18 @@ class KeyPreview(object):
3434
openapi_types = {
3535
'id': 'str',
3636
'name': 'str',
37-
'plural': 'bool'
37+
'plural': 'bool',
38+
'use_ordinal_rules': 'bool'
3839
}
3940

4041
attribute_map = {
4142
'id': 'id',
4243
'name': 'name',
43-
'plural': 'plural'
44+
'plural': 'plural',
45+
'use_ordinal_rules': 'use_ordinal_rules'
4446
}
4547

46-
def __init__(self, id=None, name=None, plural=None, local_vars_configuration=None): # noqa: E501
48+
def __init__(self, id=None, name=None, plural=None, use_ordinal_rules=None, local_vars_configuration=None): # noqa: E501
4749
"""KeyPreview - a model defined in OpenAPI""" # noqa: E501
4850
if local_vars_configuration is None:
4951
local_vars_configuration = Configuration()
@@ -52,6 +54,7 @@ def __init__(self, id=None, name=None, plural=None, local_vars_configuration=Non
5254
self._id = None
5355
self._name = None
5456
self._plural = None
57+
self._use_ordinal_rules = None
5558
self.discriminator = None
5659

5760
if id is not None:
@@ -60,6 +63,8 @@ def __init__(self, id=None, name=None, plural=None, local_vars_configuration=Non
6063
self.name = name
6164
if plural is not None:
6265
self.plural = plural
66+
if use_ordinal_rules is not None:
67+
self.use_ordinal_rules = use_ordinal_rules
6368

6469
@property
6570
def id(self):
@@ -124,6 +129,27 @@ def plural(self, plural):
124129

125130
self._plural = plural
126131

132+
@property
133+
def use_ordinal_rules(self):
134+
"""Gets the use_ordinal_rules of this KeyPreview. # noqa: E501
135+
136+
137+
:return: The use_ordinal_rules of this KeyPreview. # noqa: E501
138+
:rtype: bool
139+
"""
140+
return self._use_ordinal_rules
141+
142+
@use_ordinal_rules.setter
143+
def use_ordinal_rules(self, use_ordinal_rules):
144+
"""Sets the use_ordinal_rules of this KeyPreview.
145+
146+
147+
:param use_ordinal_rules: The use_ordinal_rules of this KeyPreview. # noqa: E501
148+
:type: bool
149+
"""
150+
151+
self._use_ordinal_rules = use_ordinal_rules
152+
127153
def to_dict(self):
128154
"""Returns the model properties as a dict"""
129155
result = {}

phrase_api/models/key_update_parameters.py

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class KeyUpdateParameters(object):
3636
'name': 'str',
3737
'description': 'str',
3838
'plural': 'bool',
39+
'use_ordinal_rules': 'bool',
3940
'name_plural': 'str',
4041
'data_type': 'str',
4142
'tags': 'str',
@@ -55,6 +56,7 @@ class KeyUpdateParameters(object):
5556
'name': 'name',
5657
'description': 'description',
5758
'plural': 'plural',
59+
'use_ordinal_rules': 'use_ordinal_rules',
5860
'name_plural': 'name_plural',
5961
'data_type': 'data_type',
6062
'tags': 'tags',
@@ -69,7 +71,7 @@ class KeyUpdateParameters(object):
6971
'custom_metadata': 'custom_metadata'
7072
}
7173

72-
def __init__(self, branch=None, name=None, description=None, plural=None, name_plural=None, data_type=None, tags=None, max_characters_allowed=None, screenshot=None, remove_screenshot=None, unformatted=None, xml_space_preserve=None, original_file=None, localized_format_string=None, localized_format_key=None, custom_metadata=None, local_vars_configuration=None): # noqa: E501
74+
def __init__(self, branch=None, name=None, description=None, plural=None, use_ordinal_rules=None, name_plural=None, data_type=None, tags=None, max_characters_allowed=None, screenshot=None, remove_screenshot=None, unformatted=None, xml_space_preserve=None, original_file=None, localized_format_string=None, localized_format_key=None, custom_metadata=None, local_vars_configuration=None): # noqa: E501
7375
"""KeyUpdateParameters - a model defined in OpenAPI""" # noqa: E501
7476
if local_vars_configuration is None:
7577
local_vars_configuration = Configuration()
@@ -79,6 +81,7 @@ def __init__(self, branch=None, name=None, description=None, plural=None, name_p
7981
self._name = None
8082
self._description = None
8183
self._plural = None
84+
self._use_ordinal_rules = None
8285
self._name_plural = None
8386
self._data_type = None
8487
self._tags = None
@@ -101,6 +104,8 @@ def __init__(self, branch=None, name=None, description=None, plural=None, name_p
101104
self.description = description
102105
if plural is not None:
103106
self.plural = plural
107+
if use_ordinal_rules is not None:
108+
self.use_ordinal_rules = use_ordinal_rules
104109
if name_plural is not None:
105110
self.name_plural = name_plural
106111
if data_type is not None:
@@ -218,6 +223,29 @@ def plural(self, plural):
218223

219224
self._plural = plural
220225

226+
@property
227+
def use_ordinal_rules(self):
228+
"""Gets the use_ordinal_rules of this KeyUpdateParameters. # noqa: E501
229+
230+
Indicates whether key uses ordinal rules for pluralization # noqa: E501
231+
232+
:return: The use_ordinal_rules of this KeyUpdateParameters. # noqa: E501
233+
:rtype: bool
234+
"""
235+
return self._use_ordinal_rules
236+
237+
@use_ordinal_rules.setter
238+
def use_ordinal_rules(self, use_ordinal_rules):
239+
"""Sets the use_ordinal_rules of this KeyUpdateParameters.
240+
241+
Indicates whether key uses ordinal rules for pluralization # noqa: E501
242+
243+
:param use_ordinal_rules: The use_ordinal_rules of this KeyUpdateParameters. # noqa: E501
244+
:type: bool
245+
"""
246+
247+
self._use_ordinal_rules = use_ordinal_rules
248+
221249
@property
222250
def name_plural(self):
223251
"""Gets the name_plural of this KeyUpdateParameters. # noqa: E501

test/test_account_search_result.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
key = phrase_api.models.key_preview.key_preview(
4343
id = '',
4444
name = '',
45-
plural = True, ),
45+
plural = True,
46+
use_ordinal_rules = True, ),
4647
locale = {"id":"abcd1234cdef1234abcd1234cdef1234","name":"English","code":"en-GB"},
4748
project = {"id":"abcd1234cdef1234abcd1234cdef1234","name":"My Android Project","slug":"android_project","main_format":"xml","project_image_url":"http://assets.example.com/project.png","account":"account","space":"space","created_at":"2015-01-28T09:52:53Z","updated_at":"2015-01-28T09:52:53Z"},
4849
translation = {"id":"abcd1234cdef1234abcd1234cdef1234","content":"My translation","unverified":false,"excluded":false,"plural_suffix":"","key":{"id":"abcd1234cdef1234abcd1234cdef1234","name":"home.index.headline","plural":false,"use_ordinal_rules":false},"locale":{"id":"abcd1234cdef1234abcd1234cdef1234","name":"de","code":"de-DE"},"placeholders":["%{count}"],"state":"translated","created_at":"2015-01-28T09:52:53Z","updated_at":"2015-01-28T09:52:53Z"},

test/test_job_details.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ def make_instance(self, include_optional):
6262
phrase_api.models.key_preview.key_preview(
6363
id = '',
6464
name = '',
65-
plural = True, )
65+
plural = True,
66+
use_ordinal_rules = True, )
6667
]
6768
)
6869
else :

test/test_key_create_parameters.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ def make_instance(self, include_optional):
4141
name = 'home.index.headline',
4242
description = 'Some description worth knowing...',
4343
plural = True,
44+
use_ordinal_rules = True,
4445
name_plural = 'home.index.headlines',
4546
data_type = 'number',
4647
tags = 'awesome-feature,needs-proofreading',
4748
max_characters_allowed = 140,
48-
screenshot = '[B@f9769ae',
49+
screenshot = '[B@42491839',
4950
remove_screenshot = True,
5051
unformatted = True,
5152
default_translation_content = 'Default translation content',

test/test_key_link.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,14 @@ def make_instance(self, include_optional):
5353
parent = phrase_api.models.key_preview.key_preview(
5454
id = '',
5555
name = '',
56-
plural = True, ),
56+
plural = True,
57+
use_ordinal_rules = True, ),
5758
children = [
5859
phrase_api.models.key_preview.key_preview(
5960
id = '',
6061
name = '',
61-
plural = True, )
62+
plural = True,
63+
use_ordinal_rules = True, )
6264
]
6365
)
6466
else :

0 commit comments

Comments
 (0)