Skip to content

Commit e1d6f16

Browse files
author
Phrase
committed
1 parent 8b569cd commit e1d6f16

File tree

7 files changed

+14
-7
lines changed

7 files changed

+14
-7
lines changed

docs/TagsApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ void (empty response body)
148148
[[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)
149149

150150
# **tag_show**
151-
> TagWithStats tag_show(project_id, name, x_phrase_app_otp=x_phrase_app_otp, branch=branch)
151+
> TagWithStats tag_show(project_id, name, x_phrase_app_otp=x_phrase_app_otp, omit_statistics=omit_statistics, branch=branch)
152152
153153
Get a single tag
154154

@@ -174,11 +174,12 @@ with phrase_api.ApiClient(configuration) as api_client:
174174
project_id = 'project_id_example' # str | Project ID (required)
175175
name = 'name_example' # str | name (required)
176176
x_phrase_app_otp = 'x_phrase_app_otp_example' # str | Two-Factor-Authentication token (optional)
177+
omit_statistics = true # bool | omit statistics in the response
177178
branch = 'my-feature-branch' # str | specify the branch to use
178179

179180
try:
180181
# Get a single tag
181-
api_response = api_instance.tag_show(project_id, name, x_phrase_app_otp=x_phrase_app_otp, branch=branch)
182+
api_response = api_instance.tag_show(project_id, name, x_phrase_app_otp=x_phrase_app_otp, omit_statistics=omit_statistics, branch=branch)
182183
pprint(api_response)
183184
except ApiException as e:
184185
print("Exception when calling TagsApi->tag_show: %s\n" % e)
@@ -192,6 +193,7 @@ Name | Type | Description | Notes
192193
**project_id** | **str**| Project ID |
193194
**name** | **str**| name |
194195
**x_phrase_app_otp** | **str**| Two-Factor-Authentication token (optional) | [optional]
196+
**omit_statistics** | **bool**| omit statistics in the response | [optional]
195197
**branch** | **str**| specify the branch to use | [optional]
196198

197199
### Return type

phrase_api/api/tags_api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ def tag_show(self, project_id, name, **kwargs): # noqa: E501
309309
:param str project_id: Project ID (required)
310310
:param str name: name (required)
311311
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
312+
:param bool omit_statistics: omit statistics in the response
312313
:param str branch: specify the branch to use
313314
:param _preload_content: if False, the urllib3.HTTPResponse object will
314315
be returned without reading/decoding response
@@ -337,6 +338,7 @@ def tag_show_with_http_info(self, project_id, name, **kwargs): # noqa: E501
337338
:param str project_id: Project ID (required)
338339
:param str name: name (required)
339340
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
341+
:param bool omit_statistics: omit statistics in the response
340342
:param str branch: specify the branch to use
341343
:param _return_http_data_only: response data without head status code
342344
and headers
@@ -358,6 +360,7 @@ def tag_show_with_http_info(self, project_id, name, **kwargs): # noqa: E501
358360
'project_id',
359361
'name',
360362
'x_phrase_app_otp',
363+
'omit_statistics',
361364
'branch'
362365
]
363366
all_params.extend(
@@ -395,6 +398,8 @@ def tag_show_with_http_info(self, project_id, name, **kwargs): # noqa: E501
395398
path_params['name'] = local_var_params['name'] # noqa: E501
396399

397400
query_params = []
401+
if 'omit_statistics' in local_var_params and local_var_params['omit_statistics'] is not None: # noqa: E501
402+
query_params.append(('omit_statistics', local_var_params['omit_statistics'])) # noqa: E501
398403
if 'branch' in local_var_params and local_var_params['branch'] is not None: # noqa: E501
399404
query_params.append(('branch', local_var_params['branch'])) # noqa: E501
400405

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@131af11d',
48+
screenshot = '[B@7ccf845a',
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@1205d422',
48+
screenshot = '[B@63c9017b',
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@3e063a21',
44+
project_image = '[B@e343477',
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@2d158175',
46+
project_image = '[B@1940cb2b',
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@1cc20796'
43+
filename = '[B@53f785df'
4444
)
4545
else :
4646
return ScreenshotUpdateParameters(

0 commit comments

Comments
 (0)