Skip to content

Commit 107a01a

Browse files
author
Phrase
committed
1 parent c25d5fe commit 107a01a

File tree

7 files changed

+15
-8
lines changed

7 files changed

+15
-8
lines changed

docs/JobsApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ Name | Type | Description | Notes
505505
[[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)
506506

507507
# **job_show**
508-
> JobDetails job_show(project_id, id, x_phrase_app_otp=x_phrase_app_otp, branch=branch, include_annotations=include_annotations)
508+
> JobDetails job_show(project_id, id, x_phrase_app_otp=x_phrase_app_otp, branch=branch, include_annotations=include_annotations, omit_translation_keys=omit_translation_keys)
509509
510510
Get a single job
511511

@@ -533,10 +533,11 @@ with phrase_api.ApiClient(configuration) as api_client:
533533
x_phrase_app_otp = 'x_phrase_app_otp_example' # str | Two-Factor-Authentication token (optional)
534534
branch = 'my-feature-branch' # str | Branch to use
535535
include_annotations = False # bool | Include job-locale annotations in the response (default to False)
536+
omit_translation_keys = False # bool | Omit translation keys in the response to reduce payload size for bigger jobs (default to False)
536537

537538
try:
538539
# Get a single job
539-
api_response = api_instance.job_show(project_id, id, x_phrase_app_otp=x_phrase_app_otp, branch=branch, include_annotations=include_annotations)
540+
api_response = api_instance.job_show(project_id, id, x_phrase_app_otp=x_phrase_app_otp, branch=branch, include_annotations=include_annotations, omit_translation_keys=omit_translation_keys)
540541
pprint(api_response)
541542
except ApiException as e:
542543
print("Exception when calling JobsApi->job_show: %s\n" % e)
@@ -552,6 +553,7 @@ Name | Type | Description | Notes
552553
**x_phrase_app_otp** | **str**| Two-Factor-Authentication token (optional) | [optional]
553554
**branch** | **str**| Branch to use | [optional]
554555
**include_annotations** | **bool**| Include job-locale annotations in the response | [optional] [default to False]
556+
**omit_translation_keys** | **bool**| Omit translation keys in the response to reduce payload size for bigger jobs | [optional] [default to False]
555557

556558
### Return type
557559

phrase_api/api/jobs_api.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,7 @@ def job_show(self, project_id, id, **kwargs): # noqa: E501
10001000
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
10011001
:param str branch: Branch to use
10021002
:param bool include_annotations: Include job-locale annotations in the response
1003+
:param bool omit_translation_keys: Omit translation keys in the response to reduce payload size for bigger jobs
10031004
:param _preload_content: if False, the urllib3.HTTPResponse object will
10041005
be returned without reading/decoding response
10051006
data. Default is True.
@@ -1029,6 +1030,7 @@ def job_show_with_http_info(self, project_id, id, **kwargs): # noqa: E501
10291030
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
10301031
:param str branch: Branch to use
10311032
:param bool include_annotations: Include job-locale annotations in the response
1033+
:param bool omit_translation_keys: Omit translation keys in the response to reduce payload size for bigger jobs
10321034
:param _return_http_data_only: response data without head status code
10331035
and headers
10341036
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -1050,7 +1052,8 @@ def job_show_with_http_info(self, project_id, id, **kwargs): # noqa: E501
10501052
'id',
10511053
'x_phrase_app_otp',
10521054
'branch',
1053-
'include_annotations'
1055+
'include_annotations',
1056+
'omit_translation_keys'
10541057
]
10551058
all_params.extend(
10561059
[
@@ -1091,6 +1094,8 @@ def job_show_with_http_info(self, project_id, id, **kwargs): # noqa: E501
10911094
query_params.append(('branch', local_var_params['branch'])) # noqa: E501
10921095
if 'include_annotations' in local_var_params and local_var_params['include_annotations'] is not None: # noqa: E501
10931096
query_params.append(('include_annotations', local_var_params['include_annotations'])) # noqa: E501
1097+
if 'omit_translation_keys' in local_var_params and local_var_params['omit_translation_keys'] is not None: # noqa: E501
1098+
query_params.append(('omit_translation_keys', local_var_params['omit_translation_keys'])) # noqa: E501
10941099

10951100
header_params = {}
10961101
if 'x_phrase_app_otp' in local_var_params:

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@5b936410',
49+
screenshot = '[B@17b1f9a7',
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@70143ee4',
49+
screenshot = '[B@460306ab',
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@6b3decaa',
44+
project_image = '[B@5b936410',
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@1607b56b',
46+
project_image = '[B@70143ee4',
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@5fcf9bff'
43+
filename = '[B@5742a4bb'
4444
)
4545
else :
4646
return ScreenshotUpdateParameters(

0 commit comments

Comments
 (0)