Skip to content

Commit 19eb43d

Browse files
author
Phrase
committed
1 parent b4427b3 commit 19eb43d

15 files changed

+99
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Phrase Strings is a translation management platform for software projects. You c
55
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
66

77
- API version: 2.0.0
8-
- Package version: 1.6.0
8+
- Package version: 1.7.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010
For more information, please visit [https://developers.phrase.com/api/](https://developers.phrase.com/api/)
1111

docs/Release.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**platforms** | **list[str]** | | [optional]
1212
**environments** | **list[str]** | | [optional]
1313
**locales** | [**list[LocalePreview]**](LocalePreview.md) | | [optional]
14+
**tags** | **list[str]** | | [optional]
1415
**project** | [**ProjectShort**](ProjectShort.md) | | [optional]
1516
**created_at** | **datetime** | | [optional]
1617
**updated_at** | **datetime** | | [optional]

docs/ReleaseCreateParameters.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
**description** | **str** | Description of the release | [optional]
77
**platforms** | **list[str]** | List of platforms the release should support. | [optional]
88
**locale_ids** | **list[str]** | List of locale ids that will be included in the release. If empty, distribution locales will be used | [optional]
9+
**tags** | **list[str]** | Only include tagged keys in the release. For a key to be included it must be tagged with all tags provided | [optional]
910
**branch** | **str** | Branch used for release | [optional]
1011

1112
[[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/ReleasePreview.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**platforms** | **list[str]** | | [optional]
1212
**environments** | **list[str]** | | [optional]
1313
**locale_codes** | **list[str]** | | [optional]
14+
**tags** | **list[str]** | | [optional]
1415
**project** | [**ProjectShort**](ProjectShort.md) | | [optional]
1516
**created_at** | **datetime** | | [optional]
1617
**updated_at** | **datetime** | | [optional]

phrase_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
from __future__ import absolute_import
1515

16-
__version__ = "1.6.0"
16+
__version__ = "1.7.0"
1717

1818
# import apis into sdk package
1919
from phrase_api.api.accounts_api import AccountsApi

phrase_api/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7777
self.default_headers[header_name] = header_value
7878
self.cookie = cookie
7979
# Set default User-Agent.
80-
self.user_agent = 'OpenAPI-Generator/1.6.0/python'
80+
self.user_agent = 'OpenAPI-Generator/1.7.0/python'
8181
self.client_side_validation = configuration.client_side_validation
8282

8383
def __enter__(self):

phrase_api/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def to_debug_report(self):
370370
"OS: {env}\n"\
371371
"Python Version: {pyversion}\n"\
372372
"Version of the API: 2.0.0\n"\
373-
"SDK Package Version: 1.6.0".\
373+
"SDK Package Version: 1.7.0".\
374374
format(env=sys.platform, pyversion=sys.version)
375375

376376
def get_host_settings(self):

phrase_api/models/release.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class Release(object):
4040
'platforms': 'list[str]',
4141
'environments': 'list[str]',
4242
'locales': 'list[LocalePreview]',
43+
'tags': 'list[str]',
4344
'project': 'ProjectShort',
4445
'created_at': 'datetime',
4546
'updated_at': 'datetime'
@@ -54,12 +55,13 @@ class Release(object):
5455
'platforms': 'platforms',
5556
'environments': 'environments',
5657
'locales': 'locales',
58+
'tags': 'tags',
5759
'project': 'project',
5860
'created_at': 'created_at',
5961
'updated_at': 'updated_at'
6062
}
6163

62-
def __init__(self, id=None, version=None, app_min_version=None, app_max_version=None, description=None, platforms=None, environments=None, locales=None, project=None, created_at=None, updated_at=None, local_vars_configuration=None): # noqa: E501
64+
def __init__(self, id=None, version=None, app_min_version=None, app_max_version=None, description=None, platforms=None, environments=None, locales=None, tags=None, project=None, created_at=None, updated_at=None, local_vars_configuration=None): # noqa: E501
6365
"""Release - a model defined in OpenAPI""" # noqa: E501
6466
if local_vars_configuration is None:
6567
local_vars_configuration = Configuration()
@@ -73,6 +75,7 @@ def __init__(self, id=None, version=None, app_min_version=None, app_max_version=
7375
self._platforms = None
7476
self._environments = None
7577
self._locales = None
78+
self._tags = None
7679
self._project = None
7780
self._created_at = None
7881
self._updated_at = None
@@ -94,6 +97,8 @@ def __init__(self, id=None, version=None, app_min_version=None, app_max_version=
9497
self.environments = environments
9598
if locales is not None:
9699
self.locales = locales
100+
if tags is not None:
101+
self.tags = tags
97102
if project is not None:
98103
self.project = project
99104
if created_at is not None:
@@ -269,6 +274,27 @@ def locales(self, locales):
269274

270275
self._locales = locales
271276

277+
@property
278+
def tags(self):
279+
"""Gets the tags of this Release. # noqa: E501
280+
281+
282+
:return: The tags of this Release. # noqa: E501
283+
:rtype: list[str]
284+
"""
285+
return self._tags
286+
287+
@tags.setter
288+
def tags(self, tags):
289+
"""Sets the tags of this Release.
290+
291+
292+
:param tags: The tags of this Release. # noqa: E501
293+
:type: list[str]
294+
"""
295+
296+
self._tags = tags
297+
272298
@property
273299
def project(self):
274300
"""Gets the project of this Release. # noqa: E501

phrase_api/models/release_create_parameters.py

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,19 @@ class ReleaseCreateParameters(object):
3535
'description': 'str',
3636
'platforms': 'list[str]',
3737
'locale_ids': 'list[str]',
38+
'tags': 'list[str]',
3839
'branch': 'str'
3940
}
4041

4142
attribute_map = {
4243
'description': 'description',
4344
'platforms': 'platforms',
4445
'locale_ids': 'locale_ids',
46+
'tags': 'tags',
4547
'branch': 'branch'
4648
}
4749

48-
def __init__(self, description=None, platforms=None, locale_ids=None, branch=None, local_vars_configuration=None): # noqa: E501
50+
def __init__(self, description=None, platforms=None, locale_ids=None, tags=None, branch=None, local_vars_configuration=None): # noqa: E501
4951
"""ReleaseCreateParameters - a model defined in OpenAPI""" # noqa: E501
5052
if local_vars_configuration is None:
5153
local_vars_configuration = Configuration()
@@ -54,6 +56,7 @@ def __init__(self, description=None, platforms=None, locale_ids=None, branch=Non
5456
self._description = None
5557
self._platforms = None
5658
self._locale_ids = None
59+
self._tags = None
5760
self._branch = None
5861
self.discriminator = None
5962

@@ -63,6 +66,8 @@ def __init__(self, description=None, platforms=None, locale_ids=None, branch=Non
6366
self.platforms = platforms
6467
if locale_ids is not None:
6568
self.locale_ids = locale_ids
69+
if tags is not None:
70+
self.tags = tags
6671
if branch is not None:
6772
self.branch = branch
6873

@@ -135,6 +140,29 @@ def locale_ids(self, locale_ids):
135140

136141
self._locale_ids = locale_ids
137142

143+
@property
144+
def tags(self):
145+
"""Gets the tags of this ReleaseCreateParameters. # noqa: E501
146+
147+
Only include tagged keys in the release. For a key to be included it must be tagged with all tags provided # noqa: E501
148+
149+
:return: The tags of this ReleaseCreateParameters. # noqa: E501
150+
:rtype: list[str]
151+
"""
152+
return self._tags
153+
154+
@tags.setter
155+
def tags(self, tags):
156+
"""Sets the tags of this ReleaseCreateParameters.
157+
158+
Only include tagged keys in the release. For a key to be included it must be tagged with all tags provided # noqa: E501
159+
160+
:param tags: The tags of this ReleaseCreateParameters. # noqa: E501
161+
:type: list[str]
162+
"""
163+
164+
self._tags = tags
165+
138166
@property
139167
def branch(self):
140168
"""Gets the branch of this ReleaseCreateParameters. # noqa: E501

phrase_api/models/release_preview.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class ReleasePreview(object):
4040
'platforms': 'list[str]',
4141
'environments': 'list[str]',
4242
'locale_codes': 'list[str]',
43+
'tags': 'list[str]',
4344
'project': 'ProjectShort',
4445
'created_at': 'datetime',
4546
'updated_at': 'datetime'
@@ -54,12 +55,13 @@ class ReleasePreview(object):
5455
'platforms': 'platforms',
5556
'environments': 'environments',
5657
'locale_codes': 'locale_codes',
58+
'tags': 'tags',
5759
'project': 'project',
5860
'created_at': 'created_at',
5961
'updated_at': 'updated_at'
6062
}
6163

62-
def __init__(self, id=None, version=None, app_min_version=None, app_max_version=None, description=None, platforms=None, environments=None, locale_codes=None, project=None, created_at=None, updated_at=None, local_vars_configuration=None): # noqa: E501
64+
def __init__(self, id=None, version=None, app_min_version=None, app_max_version=None, description=None, platforms=None, environments=None, locale_codes=None, tags=None, project=None, created_at=None, updated_at=None, local_vars_configuration=None): # noqa: E501
6365
"""ReleasePreview - a model defined in OpenAPI""" # noqa: E501
6466
if local_vars_configuration is None:
6567
local_vars_configuration = Configuration()
@@ -73,6 +75,7 @@ def __init__(self, id=None, version=None, app_min_version=None, app_max_version=
7375
self._platforms = None
7476
self._environments = None
7577
self._locale_codes = None
78+
self._tags = None
7679
self._project = None
7780
self._created_at = None
7881
self._updated_at = None
@@ -94,6 +97,8 @@ def __init__(self, id=None, version=None, app_min_version=None, app_max_version=
9497
self.environments = environments
9598
if locale_codes is not None:
9699
self.locale_codes = locale_codes
100+
if tags is not None:
101+
self.tags = tags
97102
if project is not None:
98103
self.project = project
99104
if created_at is not None:
@@ -269,6 +274,27 @@ def locale_codes(self, locale_codes):
269274

270275
self._locale_codes = locale_codes
271276

277+
@property
278+
def tags(self):
279+
"""Gets the tags of this ReleasePreview. # noqa: E501
280+
281+
282+
:return: The tags of this ReleasePreview. # noqa: E501
283+
:rtype: list[str]
284+
"""
285+
return self._tags
286+
287+
@tags.setter
288+
def tags(self, tags):
289+
"""Sets the tags of this ReleasePreview.
290+
291+
292+
:param tags: The tags of this ReleasePreview. # noqa: E501
293+
:type: list[str]
294+
"""
295+
296+
self._tags = tags
297+
272298
@property
273299
def project(self):
274300
"""Gets the project of this ReleasePreview. # noqa: E501

0 commit comments

Comments
 (0)