Skip to content

Commit f4fa853

Browse files
author
Phrase
committed
1 parent 8663d9d commit f4fa853

15 files changed

+97
-37
lines changed

docs/JobCommentCreateParameters.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**message** | **str** | Job comment message | [optional]
7+
**branch** | **str** | Branch name for the job | [optional]
78

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

docs/JobCommentUpdateParameters.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**message** | **str** | Comment message | [optional]
7+
**branch** | **str** | Branch name for the job | [optional]
78

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

docs/JobCommentsApi.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ with phrase_api.ApiClient(configuration) as api_client:
109109
job_id = 'job_id_example' # str | Job ID (required)
110110
id = 'id_example' # str | ID (required)
111111
x_phrase_app_otp = 'x_phrase_app_otp_example' # str | Two-Factor-Authentication token (optional)
112-
branch = 'my-feature-branch' # str | specify the branch to use
112+
branch = 'my-feature-branch' # str | Branch to use
113113

114114
try:
115115
# Delete a job comment
@@ -127,7 +127,7 @@ Name | Type | Description | Notes
127127
**job_id** | **str**| Job ID |
128128
**id** | **str**| ID |
129129
**x_phrase_app_otp** | **str**| Two-Factor-Authentication token (optional) | [optional]
130-
**branch** | **str**| specify the branch to use | [optional]
130+
**branch** | **str**| Branch to use | [optional]
131131

132132
### Return type
133133

@@ -180,7 +180,7 @@ with phrase_api.ApiClient(configuration) as api_client:
180180
job_id = 'job_id_example' # str | Job ID (required)
181181
id = 'id_example' # str | ID (required)
182182
x_phrase_app_otp = 'x_phrase_app_otp_example' # str | Two-Factor-Authentication token (optional)
183-
branch = 'my-feature-branch' # str | specify the branch to use
183+
branch = 'my-feature-branch' # str | Branch to use
184184

185185
try:
186186
# Get a single job comment
@@ -199,7 +199,7 @@ Name | Type | Description | Notes
199199
**job_id** | **str**| Job ID |
200200
**id** | **str**| ID |
201201
**x_phrase_app_otp** | **str**| Two-Factor-Authentication token (optional) | [optional]
202-
**branch** | **str**| specify the branch to use | [optional]
202+
**branch** | **str**| Branch to use | [optional]
203203

204204
### Return type
205205

@@ -323,7 +323,7 @@ with phrase_api.ApiClient(configuration) as api_client:
323323
project_id = 'project_id_example' # str | Project ID (required)
324324
job_id = 'job_id_example' # str | Job ID (required)
325325
x_phrase_app_otp = 'x_phrase_app_otp_example' # str | Two-Factor-Authentication token (optional)
326-
branch = 'my-feature-branch' # str | specify the branch to use
326+
branch = 'my-feature-branch' # str | Branch to use
327327
order = 'desc' # str | Order direction. Can be one of: asc, desc.
328328

329329
try:
@@ -342,7 +342,7 @@ Name | Type | Description | Notes
342342
**project_id** | **str**| Project ID |
343343
**job_id** | **str**| Job ID |
344344
**x_phrase_app_otp** | **str**| Two-Factor-Authentication token (optional) | [optional]
345-
**branch** | **str**| specify the branch to use | [optional]
345+
**branch** | **str**| Branch to use | [optional]
346346
**order** | **str**| Order direction. Can be one of: asc, desc. | [optional]
347347

348348
### Return type

docs/JobLocalesApi.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ with phrase_api.ApiClient(configuration) as api_client:
186186
job_id = 'job_id_example' # str | Job ID (required)
187187
id = 'id_example' # str | ID (required)
188188
x_phrase_app_otp = 'x_phrase_app_otp_example' # str | Two-Factor-Authentication token (optional)
189-
branch = 'my-feature-branch' # str | specify the branch to use
189+
branch = 'my-feature-branch' # str | Branch to use
190190

191191
try:
192192
# Remove a target locale from a job
@@ -204,7 +204,7 @@ Name | Type | Description | Notes
204204
**job_id** | **str**| Job ID |
205205
**id** | **str**| ID |
206206
**x_phrase_app_otp** | **str**| Two-Factor-Authentication token (optional) | [optional]
207-
**branch** | **str**| specify the branch to use | [optional]
207+
**branch** | **str**| Branch to use | [optional]
208208

209209
### Return type
210210

@@ -329,7 +329,7 @@ with phrase_api.ApiClient(configuration) as api_client:
329329
job_id = 'job_id_example' # str | Job ID (required)
330330
id = 'id_example' # str | ID (required)
331331
x_phrase_app_otp = 'x_phrase_app_otp_example' # str | Two-Factor-Authentication token (optional)
332-
branch = 'my-feature-branch' # str | specify the branch to use
332+
branch = 'my-feature-branch' # str | Branch to use
333333

334334
try:
335335
# Show single job target locale
@@ -348,7 +348,7 @@ Name | Type | Description | Notes
348348
**job_id** | **str**| Job ID |
349349
**id** | **str**| ID |
350350
**x_phrase_app_otp** | **str**| Two-Factor-Authentication token (optional) | [optional]
351-
**branch** | **str**| specify the branch to use | [optional]
351+
**branch** | **str**| Branch to use | [optional]
352352

353353
### Return type
354354

@@ -544,7 +544,7 @@ with phrase_api.ApiClient(configuration) as api_client:
544544
x_phrase_app_otp = 'x_phrase_app_otp_example' # str | Two-Factor-Authentication token (optional)
545545
page = 1 # int | Page number
546546
per_page = 25 # int | Limit on the number of objects to be returned, between 1 and 100. 25 by default
547-
branch = 'my-feature-branch' # str | specify the branch to use
547+
branch = 'my-feature-branch' # str | Branch to use
548548

549549
try:
550550
# List job target locales
@@ -564,7 +564,7 @@ Name | Type | Description | Notes
564564
**x_phrase_app_otp** | **str**| Two-Factor-Authentication token (optional) | [optional]
565565
**page** | **int**| Page number | [optional]
566566
**per_page** | **int**| Limit on the number of objects to be returned, between 1 and 100. 25 by default | [optional]
567-
**branch** | **str**| specify the branch to use | [optional]
567+
**branch** | **str**| Branch to use | [optional]
568568

569569
### Return type
570570

phrase_api/api/job_comments_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def job_comment_delete(self, project_id, job_id, id, **kwargs): # noqa: E501
190190
:param str job_id: Job ID (required)
191191
:param str id: ID (required)
192192
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
193-
:param str branch: specify the branch to use
193+
:param str branch: Branch to use
194194
:param _preload_content: if False, the urllib3.HTTPResponse object will
195195
be returned without reading/decoding response
196196
data. Default is True.
@@ -219,7 +219,7 @@ def job_comment_delete_with_http_info(self, project_id, job_id, id, **kwargs):
219219
:param str job_id: Job ID (required)
220220
:param str id: ID (required)
221221
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
222-
:param str branch: specify the branch to use
222+
:param str branch: Branch to use
223223
:param _return_http_data_only: response data without head status code
224224
and headers
225225
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -328,7 +328,7 @@ def job_comment_show(self, project_id, job_id, id, **kwargs): # noqa: E501
328328
:param str job_id: Job ID (required)
329329
:param str id: ID (required)
330330
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
331-
:param str branch: specify the branch to use
331+
:param str branch: Branch to use
332332
:param _preload_content: if False, the urllib3.HTTPResponse object will
333333
be returned without reading/decoding response
334334
data. Default is True.
@@ -357,7 +357,7 @@ def job_comment_show_with_http_info(self, project_id, job_id, id, **kwargs): #
357357
:param str job_id: Job ID (required)
358358
:param str id: ID (required)
359359
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
360-
:param str branch: specify the branch to use
360+
:param str branch: Branch to use
361361
:param _return_http_data_only: response data without head status code
362362
and headers
363363
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -619,7 +619,7 @@ def job_comments_list(self, project_id, job_id, **kwargs): # noqa: E501
619619
:param str project_id: Project ID (required)
620620
:param str job_id: Job ID (required)
621621
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
622-
:param str branch: specify the branch to use
622+
:param str branch: Branch to use
623623
:param str order: Order direction. Can be one of: asc, desc.
624624
:param _preload_content: if False, the urllib3.HTTPResponse object will
625625
be returned without reading/decoding response
@@ -648,7 +648,7 @@ def job_comments_list_with_http_info(self, project_id, job_id, **kwargs): # noq
648648
:param str project_id: Project ID (required)
649649
:param str job_id: Job ID (required)
650650
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
651-
:param str branch: specify the branch to use
651+
:param str branch: Branch to use
652652
:param str order: Order direction. Can be one of: asc, desc.
653653
:param _return_http_data_only: response data without head status code
654654
and headers

phrase_api/api/job_locales_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def job_locale_delete(self, project_id, job_id, id, **kwargs): # noqa: E501
349349
:param str job_id: Job ID (required)
350350
:param str id: ID (required)
351351
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
352-
:param str branch: specify the branch to use
352+
:param str branch: Branch to use
353353
:param _preload_content: if False, the urllib3.HTTPResponse object will
354354
be returned without reading/decoding response
355355
data. Default is True.
@@ -378,7 +378,7 @@ def job_locale_delete_with_http_info(self, project_id, job_id, id, **kwargs): #
378378
:param str job_id: Job ID (required)
379379
:param str id: ID (required)
380380
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
381-
:param str branch: specify the branch to use
381+
:param str branch: Branch to use
382382
:param _return_http_data_only: response data without head status code
383383
and headers
384384
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -637,7 +637,7 @@ def job_locale_show(self, project_id, job_id, id, **kwargs): # noqa: E501
637637
:param str job_id: Job ID (required)
638638
:param str id: ID (required)
639639
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
640-
:param str branch: specify the branch to use
640+
:param str branch: Branch to use
641641
:param _preload_content: if False, the urllib3.HTTPResponse object will
642642
be returned without reading/decoding response
643643
data. Default is True.
@@ -666,7 +666,7 @@ def job_locale_show_with_http_info(self, project_id, job_id, id, **kwargs): # n
666666
:param str job_id: Job ID (required)
667667
:param str id: ID (required)
668668
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
669-
:param str branch: specify the branch to use
669+
:param str branch: Branch to use
670670
:param _return_http_data_only: response data without head status code
671671
and headers
672672
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -1071,7 +1071,7 @@ def job_locales_list(self, project_id, job_id, **kwargs): # noqa: E501
10711071
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
10721072
:param int page: Page number
10731073
:param int per_page: Limit on the number of objects to be returned, between 1 and 100. 25 by default
1074-
:param str branch: specify the branch to use
1074+
:param str branch: Branch to use
10751075
:param _preload_content: if False, the urllib3.HTTPResponse object will
10761076
be returned without reading/decoding response
10771077
data. Default is True.
@@ -1101,7 +1101,7 @@ def job_locales_list_with_http_info(self, project_id, job_id, **kwargs): # noqa
11011101
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
11021102
:param int page: Page number
11031103
:param int per_page: Limit on the number of objects to be returned, between 1 and 100. 25 by default
1104-
:param str branch: specify the branch to use
1104+
:param str branch: Branch to use
11051105
:param _return_http_data_only: response data without head status code
11061106
and headers
11071107
:param _preload_content: if False, the urllib3.HTTPResponse object will

phrase_api/models/job_comment_create_parameters.py

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,29 @@ class JobCommentCreateParameters(object):
3232
and the value is json key in definition.
3333
"""
3434
openapi_types = {
35-
'message': 'str'
35+
'message': 'str',
36+
'branch': 'str'
3637
}
3738

3839
attribute_map = {
39-
'message': 'message'
40+
'message': 'message',
41+
'branch': 'branch'
4042
}
4143

42-
def __init__(self, message=None, local_vars_configuration=None): # noqa: E501
44+
def __init__(self, message=None, branch=None, local_vars_configuration=None): # noqa: E501
4345
"""JobCommentCreateParameters - a model defined in OpenAPI""" # noqa: E501
4446
if local_vars_configuration is None:
4547
local_vars_configuration = Configuration()
4648
self.local_vars_configuration = local_vars_configuration
4749

4850
self._message = None
51+
self._branch = None
4952
self.discriminator = None
5053

5154
if message is not None:
5255
self.message = message
56+
if branch is not None:
57+
self.branch = branch
5358

5459
@property
5560
def message(self):
@@ -74,6 +79,29 @@ def message(self, message):
7479

7580
self._message = message
7681

82+
@property
83+
def branch(self):
84+
"""Gets the branch of this JobCommentCreateParameters. # noqa: E501
85+
86+
Branch name for the job # noqa: E501
87+
88+
:return: The branch of this JobCommentCreateParameters. # noqa: E501
89+
:rtype: str
90+
"""
91+
return self._branch
92+
93+
@branch.setter
94+
def branch(self, branch):
95+
"""Sets the branch of this JobCommentCreateParameters.
96+
97+
Branch name for the job # noqa: E501
98+
99+
:param branch: The branch of this JobCommentCreateParameters. # noqa: E501
100+
:type: str
101+
"""
102+
103+
self._branch = branch
104+
77105
def to_dict(self):
78106
"""Returns the model properties as a dict"""
79107
result = {}

phrase_api/models/job_comment_update_parameters.py

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,29 @@ class JobCommentUpdateParameters(object):
3232
and the value is json key in definition.
3333
"""
3434
openapi_types = {
35-
'message': 'str'
35+
'message': 'str',
36+
'branch': 'str'
3637
}
3738

3839
attribute_map = {
39-
'message': 'message'
40+
'message': 'message',
41+
'branch': 'branch'
4042
}
4143

42-
def __init__(self, message=None, local_vars_configuration=None): # noqa: E501
44+
def __init__(self, message=None, branch=None, local_vars_configuration=None): # noqa: E501
4345
"""JobCommentUpdateParameters - a model defined in OpenAPI""" # noqa: E501
4446
if local_vars_configuration is None:
4547
local_vars_configuration = Configuration()
4648
self.local_vars_configuration = local_vars_configuration
4749

4850
self._message = None
51+
self._branch = None
4952
self.discriminator = None
5053

5154
if message is not None:
5255
self.message = message
56+
if branch is not None:
57+
self.branch = branch
5358

5459
@property
5560
def message(self):
@@ -74,6 +79,29 @@ def message(self, message):
7479

7580
self._message = message
7681

82+
@property
83+
def branch(self):
84+
"""Gets the branch of this JobCommentUpdateParameters. # noqa: E501
85+
86+
Branch name for the job # noqa: E501
87+
88+
:return: The branch of this JobCommentUpdateParameters. # noqa: E501
89+
:rtype: str
90+
"""
91+
return self._branch
92+
93+
@branch.setter
94+
def branch(self, branch):
95+
"""Sets the branch of this JobCommentUpdateParameters.
96+
97+
Branch name for the job # noqa: E501
98+
99+
:param branch: The branch of this JobCommentUpdateParameters. # noqa: E501
100+
:type: str
101+
"""
102+
103+
self._branch = branch
104+
77105
def to_dict(self):
78106
"""Returns the model properties as a dict"""
79107
result = {}

test/test_job_comment_create_parameters.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def make_instance(self, include_optional):
3737
"""
3838
if include_optional :
3939
return JobCommentCreateParameters(
40-
message = 'Some message...'
40+
message = 'Some message...',
41+
branch = 'my-feature-branch'
4142
)
4243
else :
4344
return JobCommentCreateParameters(

test/test_job_comment_update_parameters.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def make_instance(self, include_optional):
3737
"""
3838
if include_optional :
3939
return JobCommentUpdateParameters(
40-
message = 'Some message...'
40+
message = 'Some message...',
41+
branch = 'my-feature-branch'
4142
)
4243
else :
4344
return JobCommentUpdateParameters(

0 commit comments

Comments
 (0)