Skip to content

Commit b88a031

Browse files
author
Phrase
committed
Deploying from phrase/openapi@26460013
1 parent cb79549 commit b88a031

19 files changed

+21
-643
lines changed

.openapi-generator/FILES

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ docs/CommentReactionsApi.md
3434
docs/CommentRepliesApi.md
3535
docs/CommentUpdateParameters.md
3636
docs/CommentsApi.md
37-
docs/CommentsListParameters.md
3837
docs/CurrentUser.md
3938
docs/CustomMetadataApi.md
4039
docs/CustomMetadataDataType.md
@@ -188,7 +187,6 @@ docs/ReleaseTriggersApi.md
188187
docs/ReleaseUpdateParameters.md
189188
docs/ReleaseUpdateParameters1.md
190189
docs/ReleasesApi.md
191-
docs/RepliesListParameters.md
192190
docs/RepoSync.md
193191
docs/RepoSyncEvent.md
194192
docs/RepoSyncEventsApi.md
@@ -355,7 +353,6 @@ phrase_api/models/comment_create_parameters1.py
355353
phrase_api/models/comment_mark_read_parameters.py
356354
phrase_api/models/comment_reaction.py
357355
phrase_api/models/comment_update_parameters.py
358-
phrase_api/models/comments_list_parameters.py
359356
phrase_api/models/current_user.py
360357
phrase_api/models/custom_metadata_data_type.py
361358
phrase_api/models/custom_metadata_properties_create_parameters.py
@@ -479,7 +476,6 @@ phrase_api/models/release_preview.py
479476
phrase_api/models/release_trigger.py
480477
phrase_api/models/release_update_parameters.py
481478
phrase_api/models/release_update_parameters1.py
482-
phrase_api/models/replies_list_parameters.py
483479
phrase_api/models/repo_sync.py
484480
phrase_api/models/repo_sync_event.py
485481
phrase_api/models/screenshot.py
@@ -582,7 +578,6 @@ test/test_comment_reactions_api.py
582578
test/test_comment_replies_api.py
583579
test/test_comment_update_parameters.py
584580
test/test_comments_api.py
585-
test/test_comments_list_parameters.py
586581
test/test_current_user.py
587582
test/test_custom_metadata_api.py
588583
test/test_custom_metadata_data_type.py
@@ -735,7 +730,6 @@ test/test_release_triggers_api.py
735730
test/test_release_update_parameters.py
736731
test/test_release_update_parameters1.py
737732
test/test_releases_api.py
738-
test/test_replies_list_parameters.py
739733
test/test_repo_sync.py
740734
test/test_repo_sync_event.py
741735
test/test_repo_sync_events_api.py

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,6 @@ Class | Method | HTTP request | Description
439439
- [CommentMarkReadParameters](docs/CommentMarkReadParameters.md)
440440
- [CommentReaction](docs/CommentReaction.md)
441441
- [CommentUpdateParameters](docs/CommentUpdateParameters.md)
442-
- [CommentsListParameters](docs/CommentsListParameters.md)
443442
- [CurrentUser](docs/CurrentUser.md)
444443
- [CustomMetadataDataType](docs/CustomMetadataDataType.md)
445444
- [CustomMetadataPropertiesCreateParameters](docs/CustomMetadataPropertiesCreateParameters.md)
@@ -563,7 +562,6 @@ Class | Method | HTTP request | Description
563562
- [ReleaseTrigger](docs/ReleaseTrigger.md)
564563
- [ReleaseUpdateParameters](docs/ReleaseUpdateParameters.md)
565564
- [ReleaseUpdateParameters1](docs/ReleaseUpdateParameters1.md)
566-
- [RepliesListParameters](docs/RepliesListParameters.md)
567565
- [RepoSync](docs/RepoSync.md)
568566
- [RepoSyncEvent](docs/RepoSyncEvent.md)
569567
- [Screenshot](docs/Screenshot.md)

docs/CommentRepliesApi.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Method | HTTP request | Description
1313

1414

1515
# **replies_list**
16-
> List[Comment] replies_list(project_id, key_id, comment_id, replies_list_parameters, x_phrase_app_otp=x_phrase_app_otp, page=page, per_page=per_page, branch=branch, query=query, filters=filters, order=order)
16+
> List[Comment] replies_list(project_id, key_id, comment_id, x_phrase_app_otp=x_phrase_app_otp, page=page, per_page=per_page, branch=branch, query=query, filters=filters, order=order)
1717
1818
List replies
1919

@@ -39,7 +39,6 @@ with phrase_api.ApiClient(configuration) as api_client:
3939
project_id = 'project_id_example' # str | Project ID (required)
4040
key_id = 'key_id_example' # str | Translation Key ID (required)
4141
comment_id = 'comment_id_example' # str | Comment ID (required)
42-
replies_list_parameters = phrase_api.RepliesListParameters() # RepliesListParameters | (required)
4342
x_phrase_app_otp = 'x_phrase_app_otp_example' # str | Two-Factor-Authentication token (optional)
4443
page = 1 # int | Page number
4544
per_page = 25 # int | Limit on the number of objects to be returned, between 1 and 100. 25 by default
@@ -50,7 +49,7 @@ with phrase_api.ApiClient(configuration) as api_client:
5049

5150
try:
5251
# List replies
53-
api_response = api_instance.replies_list(project_id, key_id, comment_id, replies_list_parameters, x_phrase_app_otp=x_phrase_app_otp, page=page, per_page=per_page, branch=branch, query=query, filters=filters, order=order)
52+
api_response = api_instance.replies_list(project_id, key_id, comment_id, x_phrase_app_otp=x_phrase_app_otp, page=page, per_page=per_page, branch=branch, query=query, filters=filters, order=order)
5453
pprint(api_response)
5554
except ApiException as e:
5655
print("Exception when calling CommentRepliesApi->replies_list: %s\n" % e)
@@ -64,7 +63,6 @@ Name | Type | Description | Notes
6463
**project_id** | **str**| Project ID |
6564
**key_id** | **str**| Translation Key ID |
6665
**comment_id** | **str**| Comment ID |
67-
**replies_list_parameters** | [**RepliesListParameters**](RepliesListParameters.md)| |
6866
**x_phrase_app_otp** | **str**| Two-Factor-Authentication token (optional) | [optional]
6967
**page** | **int**| Page number | [optional]
7068
**per_page** | **int**| Limit on the number of objects to be returned, between 1 and 100. 25 by default | [optional]
@@ -83,7 +81,7 @@ Name | Type | Description | Notes
8381

8482
### HTTP request headers
8583

86-
- **Content-Type**: application/json
84+
- **Content-Type**: Not defined
8785
- **Accept**: application/json
8886

8987
### HTTP response details

docs/CommentsApi.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ Name | Type | Description | Notes
513513
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
514514

515515
# **comments_list**
516-
> List[Comment] comments_list(project_id, key_id, comments_list_parameters, x_phrase_app_otp=x_phrase_app_otp, page=page, per_page=per_page, branch=branch, query=query, locale_ids=locale_ids, filters=filters, order=order)
516+
> List[Comment] comments_list(project_id, key_id, x_phrase_app_otp=x_phrase_app_otp, page=page, per_page=per_page, branch=branch, query=query, locale_ids=locale_ids, filters=filters, order=order)
517517
518518
List comments
519519

@@ -538,7 +538,6 @@ with phrase_api.ApiClient(configuration) as api_client:
538538
api_instance = phrase_api.CommentsApi(api_client)
539539
project_id = 'project_id_example' # str | Project ID (required)
540540
key_id = 'key_id_example' # str | Translation Key ID (required)
541-
comments_list_parameters = phrase_api.CommentsListParameters() # CommentsListParameters | (required)
542541
x_phrase_app_otp = 'x_phrase_app_otp_example' # str | Two-Factor-Authentication token (optional)
543542
page = 1 # int | Page number
544543
per_page = 25 # int | Limit on the number of objects to be returned, between 1 and 100. 25 by default
@@ -550,7 +549,7 @@ with phrase_api.ApiClient(configuration) as api_client:
550549

551550
try:
552551
# List comments
553-
api_response = api_instance.comments_list(project_id, key_id, comments_list_parameters, x_phrase_app_otp=x_phrase_app_otp, page=page, per_page=per_page, branch=branch, query=query, locale_ids=locale_ids, filters=filters, order=order)
552+
api_response = api_instance.comments_list(project_id, key_id, x_phrase_app_otp=x_phrase_app_otp, page=page, per_page=per_page, branch=branch, query=query, locale_ids=locale_ids, filters=filters, order=order)
554553
pprint(api_response)
555554
except ApiException as e:
556555
print("Exception when calling CommentsApi->comments_list: %s\n" % e)
@@ -563,7 +562,6 @@ Name | Type | Description | Notes
563562
------------- | ------------- | ------------- | -------------
564563
**project_id** | **str**| Project ID |
565564
**key_id** | **str**| Translation Key ID |
566-
**comments_list_parameters** | [**CommentsListParameters**](CommentsListParameters.md)| |
567565
**x_phrase_app_otp** | **str**| Two-Factor-Authentication token (optional) | [optional]
568566
**page** | **int**| Page number | [optional]
569567
**per_page** | **int**| Limit on the number of objects to be returned, between 1 and 100. 25 by default | [optional]
@@ -583,7 +581,7 @@ Name | Type | Description | Notes
583581

584582
### HTTP request headers
585583

586-
- **Content-Type**: application/json
584+
- **Content-Type**: Not defined
587585
- **Accept**: application/json
588586

589587
### HTTP response details

docs/CommentsListParameters.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

docs/RepliesListParameters.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

phrase_api/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@
103103
from phrase_api.models.comment_mark_read_parameters import CommentMarkReadParameters
104104
from phrase_api.models.comment_reaction import CommentReaction
105105
from phrase_api.models.comment_update_parameters import CommentUpdateParameters
106-
from phrase_api.models.comments_list_parameters import CommentsListParameters
107106
from phrase_api.models.current_user import CurrentUser
108107
from phrase_api.models.custom_metadata_data_type import CustomMetadataDataType
109108
from phrase_api.models.custom_metadata_properties_create_parameters import CustomMetadataPropertiesCreateParameters
@@ -227,7 +226,6 @@
227226
from phrase_api.models.release_trigger import ReleaseTrigger
228227
from phrase_api.models.release_update_parameters import ReleaseUpdateParameters
229228
from phrase_api.models.release_update_parameters1 import ReleaseUpdateParameters1
230-
from phrase_api.models.replies_list_parameters import RepliesListParameters
231229
from phrase_api.models.repo_sync import RepoSync
232230
from phrase_api.models.repo_sync_event import RepoSyncEvent
233231
from phrase_api.models.screenshot import Screenshot

phrase_api/api/comment_replies_api.py

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,19 @@ def __init__(self, api_client=None):
3535
api_client = ApiClient()
3636
self.api_client = api_client
3737

38-
def replies_list(self, project_id, key_id, comment_id, replies_list_parameters, **kwargs): # noqa: E501
38+
def replies_list(self, project_id, key_id, comment_id, **kwargs): # noqa: E501
3939
"""List replies # noqa: E501
4040
4141
List all replies for a comment. # noqa: E501
4242
This method makes a synchronous HTTP request by default. To make an
4343
asynchronous HTTP request, please pass async_req=True
44-
>>> thread = api.replies_list(project_id, key_id, comment_id, replies_list_parameters, async_req=True)
44+
>>> thread = api.replies_list(project_id, key_id, comment_id, async_req=True)
4545
>>> result = thread.get()
4646
4747
:param async_req bool: execute request asynchronously
4848
:param str project_id: Project ID (required)
4949
:param str key_id: Translation Key ID (required)
5050
:param str comment_id: Comment ID (required)
51-
:param RepliesListParameters replies_list_parameters: (required)
5251
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
5352
:param int page: Page number
5453
:param int per_page: Limit on the number of objects to be returned, between 1 and 100. 25 by default
@@ -68,22 +67,21 @@ def replies_list(self, project_id, key_id, comment_id, replies_list_parameters,
6867
returns the request thread.
6968
"""
7069
kwargs['_return_http_data_only'] = True
71-
return self.replies_list_with_http_info(project_id, key_id, comment_id, replies_list_parameters, **kwargs) # noqa: E501
70+
return self.replies_list_with_http_info(project_id, key_id, comment_id, **kwargs) # noqa: E501
7271

73-
def replies_list_with_http_info(self, project_id, key_id, comment_id, replies_list_parameters, **kwargs): # noqa: E501
72+
def replies_list_with_http_info(self, project_id, key_id, comment_id, **kwargs): # noqa: E501
7473
"""List replies # noqa: E501
7574
7675
List all replies for a comment. # noqa: E501
7776
This method makes a synchronous HTTP request by default. To make an
7877
asynchronous HTTP request, please pass async_req=True
79-
>>> thread = api.replies_list_with_http_info(project_id, key_id, comment_id, replies_list_parameters, async_req=True)
78+
>>> thread = api.replies_list_with_http_info(project_id, key_id, comment_id, async_req=True)
8079
>>> result = thread.get()
8180
8281
:param async_req bool: execute request asynchronously
8382
:param str project_id: Project ID (required)
8483
:param str key_id: Translation Key ID (required)
8584
:param str comment_id: Comment ID (required)
86-
:param RepliesListParameters replies_list_parameters: (required)
8785
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
8886
:param int page: Page number
8987
:param int per_page: Limit on the number of objects to be returned, between 1 and 100. 25 by default
@@ -111,7 +109,6 @@ def replies_list_with_http_info(self, project_id, key_id, comment_id, replies_li
111109
'project_id',
112110
'key_id',
113111
'comment_id',
114-
'replies_list_parameters',
115112
'x_phrase_app_otp',
116113
'page',
117114
'per_page',
@@ -149,10 +146,6 @@ def replies_list_with_http_info(self, project_id, key_id, comment_id, replies_li
149146
if self.api_client.client_side_validation and ('comment_id' not in local_var_params or # noqa: E501
150147
local_var_params['comment_id'] is None): # noqa: E501
151148
raise ApiValueError("Missing the required parameter `comment_id` when calling `replies_list`") # noqa: E501
152-
# verify the required parameter 'replies_list_parameters' is set
153-
if self.api_client.client_side_validation and ('replies_list_parameters' not in local_var_params or # noqa: E501
154-
local_var_params['replies_list_parameters'] is None): # noqa: E501
155-
raise ApiValueError("Missing the required parameter `replies_list_parameters` when calling `replies_list`") # noqa: E501
156149

157150
collection_formats = {}
158151

@@ -187,16 +180,10 @@ def replies_list_with_http_info(self, project_id, key_id, comment_id, replies_li
187180
local_var_files = {}
188181

189182
body_params = None
190-
if 'replies_list_parameters' in local_var_params:
191-
body_params = local_var_params['replies_list_parameters']
192183
# HTTP header `Accept`
193184
header_params['Accept'] = self.api_client.select_header_accept(
194185
['application/json']) # noqa: E501
195186

196-
# HTTP header `Content-Type`
197-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
198-
['application/json']) # noqa: E501
199-
200187
# Authentication setting
201188
auth_settings = ['Basic', 'Token'] # noqa: E501
202189

phrase_api/api/comments_api.py

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,19 +1028,18 @@ def comment_update_with_http_info(self, project_id, key_id, id, comment_update_p
10281028
_request_timeout=local_var_params.get('_request_timeout'),
10291029
collection_formats=collection_formats)
10301030

1031-
def comments_list(self, project_id, key_id, comments_list_parameters, **kwargs): # noqa: E501
1031+
def comments_list(self, project_id, key_id, **kwargs): # noqa: E501
10321032
"""List comments # noqa: E501
10331033
10341034
List all comments for a key. # noqa: E501
10351035
This method makes a synchronous HTTP request by default. To make an
10361036
asynchronous HTTP request, please pass async_req=True
1037-
>>> thread = api.comments_list(project_id, key_id, comments_list_parameters, async_req=True)
1037+
>>> thread = api.comments_list(project_id, key_id, async_req=True)
10381038
>>> result = thread.get()
10391039
10401040
:param async_req bool: execute request asynchronously
10411041
:param str project_id: Project ID (required)
10421042
:param str key_id: Translation Key ID (required)
1043-
:param CommentsListParameters comments_list_parameters: (required)
10441043
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
10451044
:param int page: Page number
10461045
:param int per_page: Limit on the number of objects to be returned, between 1 and 100. 25 by default
@@ -1061,21 +1060,20 @@ def comments_list(self, project_id, key_id, comments_list_parameters, **kwargs):
10611060
returns the request thread.
10621061
"""
10631062
kwargs['_return_http_data_only'] = True
1064-
return self.comments_list_with_http_info(project_id, key_id, comments_list_parameters, **kwargs) # noqa: E501
1063+
return self.comments_list_with_http_info(project_id, key_id, **kwargs) # noqa: E501
10651064

1066-
def comments_list_with_http_info(self, project_id, key_id, comments_list_parameters, **kwargs): # noqa: E501
1065+
def comments_list_with_http_info(self, project_id, key_id, **kwargs): # noqa: E501
10671066
"""List comments # noqa: E501
10681067
10691068
List all comments for a key. # noqa: E501
10701069
This method makes a synchronous HTTP request by default. To make an
10711070
asynchronous HTTP request, please pass async_req=True
1072-
>>> thread = api.comments_list_with_http_info(project_id, key_id, comments_list_parameters, async_req=True)
1071+
>>> thread = api.comments_list_with_http_info(project_id, key_id, async_req=True)
10731072
>>> result = thread.get()
10741073
10751074
:param async_req bool: execute request asynchronously
10761075
:param str project_id: Project ID (required)
10771076
:param str key_id: Translation Key ID (required)
1078-
:param CommentsListParameters comments_list_parameters: (required)
10791077
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
10801078
:param int page: Page number
10811079
:param int per_page: Limit on the number of objects to be returned, between 1 and 100. 25 by default
@@ -1103,7 +1101,6 @@ def comments_list_with_http_info(self, project_id, key_id, comments_list_paramet
11031101
all_params = [
11041102
'project_id',
11051103
'key_id',
1106-
'comments_list_parameters',
11071104
'x_phrase_app_otp',
11081105
'page',
11091106
'per_page',
@@ -1138,10 +1135,6 @@ def comments_list_with_http_info(self, project_id, key_id, comments_list_paramet
11381135
if self.api_client.client_side_validation and ('key_id' not in local_var_params or # noqa: E501
11391136
local_var_params['key_id'] is None): # noqa: E501
11401137
raise ApiValueError("Missing the required parameter `key_id` when calling `comments_list`") # noqa: E501
1141-
# verify the required parameter 'comments_list_parameters' is set
1142-
if self.api_client.client_side_validation and ('comments_list_parameters' not in local_var_params or # noqa: E501
1143-
local_var_params['comments_list_parameters'] is None): # noqa: E501
1144-
raise ApiValueError("Missing the required parameter `comments_list_parameters` when calling `comments_list`") # noqa: E501
11451138

11461139
collection_formats = {}
11471140

@@ -1177,16 +1170,10 @@ def comments_list_with_http_info(self, project_id, key_id, comments_list_paramet
11771170
local_var_files = {}
11781171

11791172
body_params = None
1180-
if 'comments_list_parameters' in local_var_params:
1181-
body_params = local_var_params['comments_list_parameters']
11821173
# HTTP header `Accept`
11831174
header_params['Accept'] = self.api_client.select_header_accept(
11841175
['application/json']) # noqa: E501
11851176

1186-
# HTTP header `Content-Type`
1187-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1188-
['application/json']) # noqa: E501
1189-
11901177
# Authentication setting
11911178
auth_settings = ['Basic', 'Token'] # noqa: E501
11921179

0 commit comments

Comments
 (0)