Skip to content

Commit cb79549

Browse files
author
Phrase
committed
1 parent a1690c7 commit cb79549

8 files changed

+39
-9
lines changed

docs/AccountDetails.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**updated_at** | **datetime** | | [optional]
1212
**company_logo_url** | **str** | | [optional]
1313
**subscription** | [**Subscription**](Subscription.md) | | [optional]
14+
**roles** | **List[str]** | | [optional]
1415

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

phrase_api/models/account_details.py

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ class AccountDetails(object):
3939
'created_at': 'datetime',
4040
'updated_at': 'datetime',
4141
'company_logo_url': 'str',
42-
'subscription': 'Subscription'
42+
'subscription': 'Subscription',
43+
'roles': 'List[str]'
4344
}
4445

4546
attribute_map = {
@@ -50,10 +51,11 @@ class AccountDetails(object):
5051
'created_at': 'created_at',
5152
'updated_at': 'updated_at',
5253
'company_logo_url': 'company_logo_url',
53-
'subscription': 'subscription'
54+
'subscription': 'subscription',
55+
'roles': 'roles'
5456
}
5557

56-
def __init__(self, id=None, name=None, slug=None, company=None, created_at=None, updated_at=None, company_logo_url=None, subscription=None, local_vars_configuration=None): # noqa: E501
58+
def __init__(self, id=None, name=None, slug=None, company=None, created_at=None, updated_at=None, company_logo_url=None, subscription=None, roles=None, local_vars_configuration=None): # noqa: E501
5759
"""AccountDetails - a model defined in OpenAPI""" # noqa: E501
5860
if local_vars_configuration is None:
5961
local_vars_configuration = Configuration()
@@ -67,6 +69,7 @@ def __init__(self, id=None, name=None, slug=None, company=None, created_at=None,
6769
self._updated_at = None
6870
self._company_logo_url = None
6971
self._subscription = None
72+
self._roles = None
7073
self.discriminator = None
7174

7275
if id is not None:
@@ -85,6 +88,8 @@ def __init__(self, id=None, name=None, slug=None, company=None, created_at=None,
8588
self.company_logo_url = company_logo_url
8689
if subscription is not None:
8790
self.subscription = subscription
91+
if roles is not None:
92+
self.roles = roles
8893

8994
@property
9095
def id(self):
@@ -254,6 +259,27 @@ def subscription(self, subscription):
254259

255260
self._subscription = subscription
256261

262+
@property
263+
def roles(self):
264+
"""Gets the roles of this AccountDetails. # noqa: E501
265+
266+
267+
:return: The roles of this AccountDetails. # noqa: E501
268+
:rtype: List[str]
269+
"""
270+
return self._roles
271+
272+
@roles.setter
273+
def roles(self, roles):
274+
"""Sets the roles of this AccountDetails.
275+
276+
277+
:param roles: The roles of this AccountDetails. # noqa: E501
278+
:type: List[str]
279+
"""
280+
281+
self._roles = roles
282+
257283
def to_dict(self):
258284
"""Returns the model properties as a dict"""
259285
result = {}

test/test_account_details.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ def make_instance(self, include_optional):
4444
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
4545
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
4646
company_logo_url = '',
47-
subscription = {"is_current":true,"trial_expired":false}
47+
subscription = {"is_current":true,"trial_expired":false},
48+
roles = [
49+
''
50+
]
4851
)
4952
else :
5053
return AccountDetails(

test/test_key_create_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def make_instance(self, include_optional):
4545
data_type = 'number',
4646
tags = 'awesome-feature,needs-proofreading',
4747
max_characters_allowed = 140,
48-
screenshot = '[B@7a9794bd',
48+
screenshot = '[B@5a9bb7dd',
4949
remove_screenshot = True,
5050
unformatted = True,
5151
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
@@ -45,7 +45,7 @@ def make_instance(self, include_optional):
4545
data_type = 'number',
4646
tags = 'awesome-feature,needs-proofreading',
4747
max_characters_allowed = 140,
48-
screenshot = '[B@297727ab',
48+
screenshot = '[B@536d655f',
4949
remove_screenshot = True,
5050
unformatted = True,
5151
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@24df8abf',
44+
project_image = '[B@262ac4cc',
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@390d47db',
46+
project_image = '[B@4d089ef7',
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@22457838'
43+
filename = '[B@2a670af9'
4444
)
4545
else :
4646
return ScreenshotUpdateParameters(

0 commit comments

Comments
 (0)