Skip to content

Commit 3a6ecfe

Browse files
author
Phrase
committed
Deploying from phrase/openapi@31d3b57e
1 parent b42902d commit 3a6ecfe

10 files changed

+41
-11
lines changed

docs/Branch.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**merged_by** | [**UserPreview**](UserPreview.md) | | [optional]
1313
**created_by** | [**UserPreview**](UserPreview.md) | | [optional]
1414
**state** | **str** | | [optional]
15+
**child_branches** | **List[str]** | | [optional]
1516

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

phrase_api/models/branch.py

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ class Branch(object):
4040
'merged_at': 'datetime',
4141
'merged_by': 'UserPreview',
4242
'created_by': 'UserPreview',
43-
'state': 'str'
43+
'state': 'str',
44+
'child_branches': 'List[str]'
4445
}
4546

4647
attribute_map = {
@@ -52,10 +53,11 @@ class Branch(object):
5253
'merged_at': 'merged_at',
5354
'merged_by': 'merged_by',
5455
'created_by': 'created_by',
55-
'state': 'state'
56+
'state': 'state',
57+
'child_branches': 'child_branches'
5658
}
5759

58-
def __init__(self, base_project_id=None, branch_project_id=None, name=None, created_at=None, updated_at=None, merged_at=None, merged_by=None, created_by=None, state=None, local_vars_configuration=None): # noqa: E501
60+
def __init__(self, base_project_id=None, branch_project_id=None, name=None, created_at=None, updated_at=None, merged_at=None, merged_by=None, created_by=None, state=None, child_branches=None, local_vars_configuration=None): # noqa: E501
5961
"""Branch - a model defined in OpenAPI""" # noqa: E501
6062
if local_vars_configuration is None:
6163
local_vars_configuration = Configuration()
@@ -70,6 +72,7 @@ def __init__(self, base_project_id=None, branch_project_id=None, name=None, crea
7072
self._merged_by = None
7173
self._created_by = None
7274
self._state = None
75+
self._child_branches = None
7376
self.discriminator = None
7477

7578
if base_project_id is not None:
@@ -90,6 +93,8 @@ def __init__(self, base_project_id=None, branch_project_id=None, name=None, crea
9093
self.created_by = created_by
9194
if state is not None:
9295
self.state = state
96+
if child_branches is not None:
97+
self.child_branches = child_branches
9398

9499
@property
95100
def base_project_id(self):
@@ -280,6 +285,27 @@ def state(self, state):
280285

281286
self._state = state
282287

288+
@property
289+
def child_branches(self):
290+
"""Gets the child_branches of this Branch. # noqa: E501
291+
292+
293+
:return: The child_branches of this Branch. # noqa: E501
294+
:rtype: List[str]
295+
"""
296+
return self._child_branches
297+
298+
@child_branches.setter
299+
def child_branches(self, child_branches):
300+
"""Sets the child_branches of this Branch.
301+
302+
303+
:param child_branches: The child_branches of this Branch. # noqa: E501
304+
:type: List[str]
305+
"""
306+
307+
self._child_branches = child_branches
308+
283309
def to_dict(self):
284310
"""Returns the model properties as a dict"""
285311
result = {}

test/test_branch.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ def make_instance(self, include_optional):
5353
username = '',
5454
name = '',
5555
gravatar_uid = '', ),
56-
state = ''
56+
state = '',
57+
child_branches = [
58+
''
59+
]
5760
)
5861
else :
5962
return Branch(

test/test_job_template.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
name = '',
4242
briefing = '',
4343
project = {"id":"abcd1234cdef1234abcd1234cdef1234","name":"My Android Project","main_format":"xml","created_at":"2015-01-28T09:52:53Z","updated_at":"2015-01-28T09:52:53Z"},
44-
branch = {"name":"new-branch","created_at":"2015-01-28T09:52:53Z","updated_at":"2015-01-28T09:52:53Z","merged_at":"2015-01-28T09:52:53Z","merged_by":{"id":"abcd1234cdef1234abcd1234cdef1234","username":"joe.doe","name":"Joe Doe"},"created_by":{"id":"abcd1234cdef1234abcd1234cdef1234","username":"joe.doe","name":"Joe Doe"},"state":"success"},
44+
branch = {"name":"new-branch","created_at":"2015-01-28T09:52:53Z","updated_at":"2015-01-28T09:52:53Z","merged_at":"2015-01-28T09:52:53Z","merged_by":{"id":"abcd1234cdef1234abcd1234cdef1234","username":"joe.doe","name":"Joe Doe"},"created_by":{"id":"abcd1234cdef1234abcd1234cdef1234","username":"joe.doe","name":"Joe Doe"},"state":"success","child_branches":["feature_2","feature_3"]},
4545
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
4646
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
4747
)

test/test_job_template_details.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
name = '',
4242
briefing = '',
4343
project = {"id":"abcd1234cdef1234abcd1234cdef1234","name":"My Android Project","main_format":"xml","created_at":"2015-01-28T09:52:53Z","updated_at":"2015-01-28T09:52:53Z"},
44-
branch = {"name":"new-branch","created_at":"2015-01-28T09:52:53Z","updated_at":"2015-01-28T09:52:53Z","merged_at":"2015-01-28T09:52:53Z","merged_by":{"id":"abcd1234cdef1234abcd1234cdef1234","username":"joe.doe","name":"Joe Doe"},"created_by":{"id":"abcd1234cdef1234abcd1234cdef1234","username":"joe.doe","name":"Joe Doe"},"state":"success"},
44+
branch = {"name":"new-branch","created_at":"2015-01-28T09:52:53Z","updated_at":"2015-01-28T09:52:53Z","merged_at":"2015-01-28T09:52:53Z","merged_by":{"id":"abcd1234cdef1234abcd1234cdef1234","username":"joe.doe","name":"Joe Doe"},"created_by":{"id":"abcd1234cdef1234abcd1234cdef1234","username":"joe.doe","name":"Joe Doe"},"state":"success","child_branches":["feature_2","feature_3"]},
4545
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
4646
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
4747
owner = phrase_api.models.user_preview.user_preview(

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@451cef5',
49+
screenshot = '[B@384edc3b',
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@21ffedc7',
49+
screenshot = '[B@13421eb0',
5050
remove_screenshot = True,
5151
unformatted = True,
5252
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@12550aaf',
44+
project_image = '[B@18809db8',
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@784bb800',
46+
project_image = '[B@c34e260',
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@3eebbbf5'
43+
filename = '[B@243fe859'
4444
)
4545
else :
4646
return ScreenshotUpdateParameters(

0 commit comments

Comments
 (0)