Skip to content

Commit 5a146a0

Browse files
author
Phrase
committed
1 parent 1bee7bd commit 5a146a0

17 files changed

+183
-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.5.4
8+
- Package version: 1.5.5
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/Project.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**slug** | **str** | | [optional]
99
**main_format** | **str** | | [optional]
1010
**project_image_url** | **str** | | [optional]
11+
**media** | **str** | | [optional]
1112
**account** | [**Account**](Account.md) | | [optional]
1213
**space** | [**Space1**](Space1.md) | | [optional]
1314
**point_of_contact** | [**UserPreview**](UserPreview.md) | | [optional]

docs/ProjectCreateParameters.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**name** | **str** | Name of the project | [optional]
77
**main_format** | **str** | Main file format specified by its API Extension name. Used for locale downloads if no format is specified. For API Extension names of available file formats see <a href=\"https://support.phrase.com/hc/en-us/sections/6111343326364\">Format Guide</a> or our <a href=\"#formats\">Formats API Endpoint</a>. | [optional]
8+
**media** | **str** | (Optional) Main technology stack used in the project. It affects for example the suggested placeholder style. Predefined values include: `Ruby`, `JavaScript`, `AngularJS`, `React`, `iOS`, `Android`, `Python`, `PHP`, `Java`, `Go`, `Windows Phone`, `Rails`, `Node.js`, `.NET`, `Django`, `Symfony`, `Yii Framework`, `Zend Framework`, `Apple App Store Description`, `Google Play Description`, but it can also take any other value. | [optional]
89
**shares_translation_memory** | **bool** | Indicates whether the project should share the account's translation memory | [optional]
910
**project_image** | **file** | Image to identify the project | [optional]
1011
**remove_project_image** | **bool** | Indicates whether the project image should be deleted. | [optional]
1112
**account_id** | **str** | Account ID to specify the actual account the project should be created in. Required if the requesting user is a member of multiple accounts. | [optional]
13+
**point_of_contact** | **str** | (Optional) User ID of the point of contact for the project. | [optional]
1214
**source_project_id** | **str** | When a source project ID is given, a clone of that project will be created, including all locales, keys and translations as well as the main project settings if they are not defined otherwise through the params. | [optional]
1315
**workflow** | **str** | (Optional) Review Workflow. \"simple\" / \"review\". <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\">Read more</a> | [optional]
1416
**machine_translation_enabled** | **bool** | (Optional) Enable machine translation support in the project. Required for Autopilot and Smart Suggest | [optional]

docs/ProjectDetails.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**slug** | **str** | | [optional]
99
**main_format** | **str** | | [optional]
1010
**project_image_url** | **str** | | [optional]
11+
**media** | **str** | | [optional]
1112
**account** | [**Account**](Account.md) | | [optional]
1213
**space** | [**Space1**](Space1.md) | | [optional]
1314
**point_of_contact** | [**UserPreview**](UserPreview.md) | | [optional]

docs/ProjectUpdateParameters.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**account_id** | **str** | Required if the requesting user is a member of multiple accounts. Account ID to specify the actual account the project should be created in. | [optional]
77
**name** | **str** | (Optional) Name of the project | [optional]
8+
**point_of_contact** | **str** | (Optional) User ID of the point of contact for the project. Pass `null` to unset. | [optional]
89
**main_format** | **str** | (Optional) Main file format specified by its API Extension name. Used for locale downloads if no format is specified. For API Extension names of available file formats see <a href=\"https://support.phrase.com/hc/en-us/sections/6111343326364\">Format Guide</a> or our <a href=\"#formats\">Formats API Endpoint</a>. | [optional]
10+
**media** | **object** | | [optional]
911
**shares_translation_memory** | **bool** | (Optional) Indicates whether the project should share the account's translation memory | [optional]
1012
**project_image** | **file** | (Optional) Image to identify the project | [optional]
1113
**remove_project_image** | **bool** | (Optional) Indicates whether the project image should be deleted. | [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.5.4"
16+
__version__ = "1.5.5"
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.5.4/python'
80+
self.user_agent = 'OpenAPI-Generator/1.5.5/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.5.4".\
373+
"SDK Package Version: 1.5.5".\
374374
format(env=sys.platform, pyversion=sys.version)
375375

376376
def get_host_settings(self):

phrase_api/models/project.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class Project(object):
3737
'slug': 'str',
3838
'main_format': 'str',
3939
'project_image_url': 'str',
40+
'media': 'str',
4041
'account': 'Account',
4142
'space': 'Space1',
4243
'point_of_contact': 'UserPreview',
@@ -50,14 +51,15 @@ class Project(object):
5051
'slug': 'slug',
5152
'main_format': 'main_format',
5253
'project_image_url': 'project_image_url',
54+
'media': 'media',
5355
'account': 'account',
5456
'space': 'space',
5557
'point_of_contact': 'point_of_contact',
5658
'created_at': 'created_at',
5759
'updated_at': 'updated_at'
5860
}
5961

60-
def __init__(self, id=None, name=None, slug=None, main_format=None, project_image_url=None, account=None, space=None, point_of_contact=None, created_at=None, updated_at=None, local_vars_configuration=None): # noqa: E501
62+
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, local_vars_configuration=None): # noqa: E501
6163
"""Project - a model defined in OpenAPI""" # noqa: E501
6264
if local_vars_configuration is None:
6365
local_vars_configuration = Configuration()
@@ -68,6 +70,7 @@ def __init__(self, id=None, name=None, slug=None, main_format=None, project_imag
6870
self._slug = None
6971
self._main_format = None
7072
self._project_image_url = None
73+
self._media = None
7174
self._account = None
7275
self._space = None
7376
self._point_of_contact = None
@@ -85,6 +88,8 @@ def __init__(self, id=None, name=None, slug=None, main_format=None, project_imag
8588
self.main_format = main_format
8689
if project_image_url is not None:
8790
self.project_image_url = project_image_url
91+
if media is not None:
92+
self.media = media
8893
if account is not None:
8994
self.account = account
9095
if space is not None:
@@ -201,6 +206,27 @@ def project_image_url(self, project_image_url):
201206

202207
self._project_image_url = project_image_url
203208

209+
@property
210+
def media(self):
211+
"""Gets the media of this Project. # noqa: E501
212+
213+
214+
:return: The media of this Project. # noqa: E501
215+
:rtype: str
216+
"""
217+
return self._media
218+
219+
@media.setter
220+
def media(self, media):
221+
"""Sets the media of this Project.
222+
223+
224+
:param media: The media of this Project. # noqa: E501
225+
:type: str
226+
"""
227+
228+
self._media = media
229+
204230
@property
205231
def account(self):
206232
"""Gets the account of this Project. # noqa: E501

phrase_api/models/project_create_parameters.py

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@ class ProjectCreateParameters(object):
3434
openapi_types = {
3535
'name': 'str',
3636
'main_format': 'str',
37+
'media': 'str',
3738
'shares_translation_memory': 'bool',
3839
'project_image': 'file',
3940
'remove_project_image': 'bool',
4041
'account_id': 'str',
42+
'point_of_contact': 'str',
4143
'source_project_id': 'str',
4244
'workflow': 'str',
4345
'machine_translation_enabled': 'bool',
@@ -61,10 +63,12 @@ class ProjectCreateParameters(object):
6163
attribute_map = {
6264
'name': 'name',
6365
'main_format': 'main_format',
66+
'media': 'media',
6467
'shares_translation_memory': 'shares_translation_memory',
6568
'project_image': 'project_image',
6669
'remove_project_image': 'remove_project_image',
6770
'account_id': 'account_id',
71+
'point_of_contact': 'point_of_contact',
6872
'source_project_id': 'source_project_id',
6973
'workflow': 'workflow',
7074
'machine_translation_enabled': 'machine_translation_enabled',
@@ -85,18 +89,20 @@ class ProjectCreateParameters(object):
8589
'smart_suggest_use_machine_translation': 'smart_suggest_use_machine_translation'
8690
}
8791

88-
def __init__(self, name=None, main_format=None, shares_translation_memory=None, project_image=None, remove_project_image=None, account_id=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, smart_suggest_enabled=None, smart_suggest_use_glossary=None, smart_suggest_use_machine_translation=None, local_vars_configuration=None): # noqa: E501
92+
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, smart_suggest_enabled=None, smart_suggest_use_glossary=None, smart_suggest_use_machine_translation=None, local_vars_configuration=None): # noqa: E501
8993
"""ProjectCreateParameters - a model defined in OpenAPI""" # noqa: E501
9094
if local_vars_configuration is None:
9195
local_vars_configuration = Configuration()
9296
self.local_vars_configuration = local_vars_configuration
9397

9498
self._name = None
9599
self._main_format = None
100+
self._media = None
96101
self._shares_translation_memory = None
97102
self._project_image = None
98103
self._remove_project_image = None
99104
self._account_id = None
105+
self._point_of_contact = None
100106
self._source_project_id = None
101107
self._workflow = None
102108
self._machine_translation_enabled = None
@@ -121,6 +127,8 @@ def __init__(self, name=None, main_format=None, shares_translation_memory=None,
121127
self.name = name
122128
if main_format is not None:
123129
self.main_format = main_format
130+
if media is not None:
131+
self.media = media
124132
if shares_translation_memory is not None:
125133
self.shares_translation_memory = shares_translation_memory
126134
if project_image is not None:
@@ -129,6 +137,8 @@ def __init__(self, name=None, main_format=None, shares_translation_memory=None,
129137
self.remove_project_image = remove_project_image
130138
if account_id is not None:
131139
self.account_id = account_id
140+
if point_of_contact is not None:
141+
self.point_of_contact = point_of_contact
132142
if source_project_id is not None:
133143
self.source_project_id = source_project_id
134144
if workflow is not None:
@@ -212,6 +222,29 @@ def main_format(self, main_format):
212222

213223
self._main_format = main_format
214224

225+
@property
226+
def media(self):
227+
"""Gets the media of this ProjectCreateParameters. # noqa: E501
228+
229+
(Optional) Main technology stack used in the project. It affects for example the suggested placeholder style. Predefined values include: `Ruby`, `JavaScript`, `AngularJS`, `React`, `iOS`, `Android`, `Python`, `PHP`, `Java`, `Go`, `Windows Phone`, `Rails`, `Node.js`, `.NET`, `Django`, `Symfony`, `Yii Framework`, `Zend Framework`, `Apple App Store Description`, `Google Play Description`, but it can also take any other value. # noqa: E501
230+
231+
:return: The media of this ProjectCreateParameters. # noqa: E501
232+
:rtype: str
233+
"""
234+
return self._media
235+
236+
@media.setter
237+
def media(self, media):
238+
"""Sets the media of this ProjectCreateParameters.
239+
240+
(Optional) Main technology stack used in the project. It affects for example the suggested placeholder style. Predefined values include: `Ruby`, `JavaScript`, `AngularJS`, `React`, `iOS`, `Android`, `Python`, `PHP`, `Java`, `Go`, `Windows Phone`, `Rails`, `Node.js`, `.NET`, `Django`, `Symfony`, `Yii Framework`, `Zend Framework`, `Apple App Store Description`, `Google Play Description`, but it can also take any other value. # noqa: E501
241+
242+
:param media: The media of this ProjectCreateParameters. # noqa: E501
243+
:type: str
244+
"""
245+
246+
self._media = media
247+
215248
@property
216249
def shares_translation_memory(self):
217250
"""Gets the shares_translation_memory of this ProjectCreateParameters. # noqa: E501
@@ -304,6 +337,29 @@ def account_id(self, account_id):
304337

305338
self._account_id = account_id
306339

340+
@property
341+
def point_of_contact(self):
342+
"""Gets the point_of_contact of this ProjectCreateParameters. # noqa: E501
343+
344+
(Optional) User ID of the point of contact for the project. # noqa: E501
345+
346+
:return: The point_of_contact of this ProjectCreateParameters. # noqa: E501
347+
:rtype: str
348+
"""
349+
return self._point_of_contact
350+
351+
@point_of_contact.setter
352+
def point_of_contact(self, point_of_contact):
353+
"""Sets the point_of_contact of this ProjectCreateParameters.
354+
355+
(Optional) User ID of the point of contact for the project. # noqa: E501
356+
357+
:param point_of_contact: The point_of_contact of this ProjectCreateParameters. # noqa: E501
358+
:type: str
359+
"""
360+
361+
self._point_of_contact = point_of_contact
362+
307363
@property
308364
def source_project_id(self):
309365
"""Gets the source_project_id of this ProjectCreateParameters. # noqa: E501

0 commit comments

Comments
 (0)