Skip to content

Commit a1690c7

Browse files
author
Phrase
committed
1 parent 02f0ce0 commit a1690c7

7 files changed

Lines changed: 37 additions & 23 deletions

docs/JobsApi.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ Name | Type | Description | Notes
784784
[[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)
785785

786786
# **jobs_by_account**
787-
> List[Job] jobs_by_account(account_id, x_phrase_app_otp=x_phrase_app_otp, page=page, per_page=per_page, owned_by=owned_by, assigned_to=assigned_to, state=state)
787+
> List[Job] jobs_by_account(account_id, x_phrase_app_otp=x_phrase_app_otp, page=page, per_page=per_page, owned_by=owned_by, assigned_to=assigned_to, state=state, updated_since=updated_since)
788788
789789
List account jobs
790790

@@ -813,11 +813,12 @@ with phrase_api.ApiClient(configuration) as api_client:
813813
per_page = 25 # int | Limit on the number of objects to be returned, between 1 and 100. 25 by default
814814
owned_by = 'abcd1234cdef1234abcd1234cdef1234' # str | filter by user owning job
815815
assigned_to = 'abcd1234cdef1234abcd1234cdef1234' # str | filter by user assigned to job
816-
state = 'completed' # str | filter by state of job Valid states are <code>draft</code>, <code>in_progress</code>, <code>completed</code>
816+
state = 'completed' # str | filter by state of job; valid states are: <code>draft</code>, <code>in_progress</code>, <code>completed</code>
817+
updated_since = '2013-02-21T00:00:00.000Z' # str | filter by jobs updated since given date
817818

818819
try:
819820
# List account jobs
820-
api_response = api_instance.jobs_by_account(account_id, x_phrase_app_otp=x_phrase_app_otp, page=page, per_page=per_page, owned_by=owned_by, assigned_to=assigned_to, state=state)
821+
api_response = api_instance.jobs_by_account(account_id, x_phrase_app_otp=x_phrase_app_otp, page=page, per_page=per_page, owned_by=owned_by, assigned_to=assigned_to, state=state, updated_since=updated_since)
821822
pprint(api_response)
822823
except ApiException as e:
823824
print("Exception when calling JobsApi->jobs_by_account: %s\n" % e)
@@ -834,7 +835,8 @@ Name | Type | Description | Notes
834835
**per_page** | **int**| Limit on the number of objects to be returned, between 1 and 100. 25 by default | [optional]
835836
**owned_by** | **str**| filter by user owning job | [optional]
836837
**assigned_to** | **str**| filter by user assigned to job | [optional]
837-
**state** | **str**| filter by state of job Valid states are &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt; | [optional]
838+
**state** | **str**| filter by state of job; valid states are: &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt; | [optional]
839+
**updated_since** | **str**| filter by jobs updated since given date | [optional]
838840

839841
### Return type
840842

@@ -860,7 +862,7 @@ Name | Type | Description | Notes
860862
[[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)
861863

862864
# **jobs_list**
863-
> List[Job] jobs_list(project_id, x_phrase_app_otp=x_phrase_app_otp, page=page, per_page=per_page, branch=branch, owned_by=owned_by, assigned_to=assigned_to, state=state)
865+
> List[Job] jobs_list(project_id, x_phrase_app_otp=x_phrase_app_otp, page=page, per_page=per_page, branch=branch, owned_by=owned_by, assigned_to=assigned_to, state=state, updated_since=updated_since)
864866
865867
List jobs
866868

@@ -887,14 +889,15 @@ with phrase_api.ApiClient(configuration) as api_client:
887889
x_phrase_app_otp = 'x_phrase_app_otp_example' # str | Two-Factor-Authentication token (optional)
888890
page = 1 # int | Page number
889891
per_page = 25 # int | Limit on the number of objects to be returned, between 1 and 100. 25 by default
890-
branch = 'my-feature-branch' # str | specify the branch to use
892+
branch = 'my-feature-branch' # str | Branch to use
891893
owned_by = 'abcd1234cdef1234abcd1234cdef1234' # str | filter by user owning job
892894
assigned_to = 'abcd1234cdef1234abcd1234cdef1234' # str | filter by user assigned to job
893-
state = 'completed' # str | filter by state of job Valid states are <code>draft</code>, <code>in_progress</code>, <code>completed</code>
895+
state = 'completed' # str | filter by state of job; valid states are: <code>draft</code>, <code>in_progress</code>, <code>completed</code>
896+
updated_since = '2013-02-21T00:00:00.000Z' # str | filter by jobs updated since given date
894897

895898
try:
896899
# List jobs
897-
api_response = api_instance.jobs_list(project_id, x_phrase_app_otp=x_phrase_app_otp, page=page, per_page=per_page, branch=branch, owned_by=owned_by, assigned_to=assigned_to, state=state)
900+
api_response = api_instance.jobs_list(project_id, x_phrase_app_otp=x_phrase_app_otp, page=page, per_page=per_page, branch=branch, owned_by=owned_by, assigned_to=assigned_to, state=state, updated_since=updated_since)
898901
pprint(api_response)
899902
except ApiException as e:
900903
print("Exception when calling JobsApi->jobs_list: %s\n" % e)
@@ -909,10 +912,11 @@ Name | Type | Description | Notes
909912
**x_phrase_app_otp** | **str**| Two-Factor-Authentication token (optional) | [optional]
910913
**page** | **int**| Page number | [optional]
911914
**per_page** | **int**| Limit on the number of objects to be returned, between 1 and 100. 25 by default | [optional]
912-
**branch** | **str**| specify the branch to use | [optional]
915+
**branch** | **str**| Branch to use | [optional]
913916
**owned_by** | **str**| filter by user owning job | [optional]
914917
**assigned_to** | **str**| filter by user assigned to job | [optional]
915-
**state** | **str**| filter by state of job Valid states are &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt; | [optional]
918+
**state** | **str**| filter by state of job; valid states are: &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt; | [optional]
919+
**updated_since** | **str**| filter by jobs updated since given date | [optional]
916920

917921
### Return type
918922

phrase_api/api/jobs_api.py

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,7 +1545,8 @@ def jobs_by_account(self, account_id, **kwargs): # noqa: E501
15451545
:param int per_page: Limit on the number of objects to be returned, between 1 and 100. 25 by default
15461546
:param str owned_by: filter by user owning job
15471547
:param str assigned_to: filter by user assigned to job
1548-
:param str state: filter by state of job Valid states are <code>draft</code>, <code>in_progress</code>, <code>completed</code>
1548+
:param str state: filter by state of job; valid states are: <code>draft</code>, <code>in_progress</code>, <code>completed</code>
1549+
:param str updated_since: filter by jobs updated since given date
15491550
:param _preload_content: if False, the urllib3.HTTPResponse object will
15501551
be returned without reading/decoding response
15511552
data. Default is True.
@@ -1576,7 +1577,8 @@ def jobs_by_account_with_http_info(self, account_id, **kwargs): # noqa: E501
15761577
:param int per_page: Limit on the number of objects to be returned, between 1 and 100. 25 by default
15771578
:param str owned_by: filter by user owning job
15781579
:param str assigned_to: filter by user assigned to job
1579-
:param str state: filter by state of job Valid states are <code>draft</code>, <code>in_progress</code>, <code>completed</code>
1580+
:param str state: filter by state of job; valid states are: <code>draft</code>, <code>in_progress</code>, <code>completed</code>
1581+
:param str updated_since: filter by jobs updated since given date
15801582
:param _return_http_data_only: response data without head status code
15811583
and headers
15821584
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -1600,7 +1602,8 @@ def jobs_by_account_with_http_info(self, account_id, **kwargs): # noqa: E501
16001602
'per_page',
16011603
'owned_by',
16021604
'assigned_to',
1603-
'state'
1605+
'state',
1606+
'updated_since'
16041607
]
16051608
all_params.extend(
16061609
[
@@ -1641,6 +1644,8 @@ def jobs_by_account_with_http_info(self, account_id, **kwargs): # noqa: E501
16411644
query_params.append(('assigned_to', local_var_params['assigned_to'])) # noqa: E501
16421645
if 'state' in local_var_params and local_var_params['state'] is not None: # noqa: E501
16431646
query_params.append(('state', local_var_params['state'])) # noqa: E501
1647+
if 'updated_since' in local_var_params and local_var_params['updated_since'] is not None: # noqa: E501
1648+
query_params.append(('updated_since', local_var_params['updated_since'])) # noqa: E501
16441649

16451650
header_params = {}
16461651
if 'x_phrase_app_otp' in local_var_params:
@@ -1687,10 +1692,11 @@ def jobs_list(self, project_id, **kwargs): # noqa: E501
16871692
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
16881693
:param int page: Page number
16891694
:param int per_page: Limit on the number of objects to be returned, between 1 and 100. 25 by default
1690-
:param str branch: specify the branch to use
1695+
:param str branch: Branch to use
16911696
:param str owned_by: filter by user owning job
16921697
:param str assigned_to: filter by user assigned to job
1693-
:param str state: filter by state of job Valid states are <code>draft</code>, <code>in_progress</code>, <code>completed</code>
1698+
:param str state: filter by state of job; valid states are: <code>draft</code>, <code>in_progress</code>, <code>completed</code>
1699+
:param str updated_since: filter by jobs updated since given date
16941700
:param _preload_content: if False, the urllib3.HTTPResponse object will
16951701
be returned without reading/decoding response
16961702
data. Default is True.
@@ -1719,10 +1725,11 @@ def jobs_list_with_http_info(self, project_id, **kwargs): # noqa: E501
17191725
:param str x_phrase_app_otp: Two-Factor-Authentication token (optional)
17201726
:param int page: Page number
17211727
:param int per_page: Limit on the number of objects to be returned, between 1 and 100. 25 by default
1722-
:param str branch: specify the branch to use
1728+
:param str branch: Branch to use
17231729
:param str owned_by: filter by user owning job
17241730
:param str assigned_to: filter by user assigned to job
1725-
:param str state: filter by state of job Valid states are <code>draft</code>, <code>in_progress</code>, <code>completed</code>
1731+
:param str state: filter by state of job; valid states are: <code>draft</code>, <code>in_progress</code>, <code>completed</code>
1732+
:param str updated_since: filter by jobs updated since given date
17261733
:param _return_http_data_only: response data without head status code
17271734
and headers
17281735
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -1747,7 +1754,8 @@ def jobs_list_with_http_info(self, project_id, **kwargs): # noqa: E501
17471754
'branch',
17481755
'owned_by',
17491756
'assigned_to',
1750-
'state'
1757+
'state',
1758+
'updated_since'
17511759
]
17521760
all_params.extend(
17531761
[
@@ -1790,6 +1798,8 @@ def jobs_list_with_http_info(self, project_id, **kwargs): # noqa: E501
17901798
query_params.append(('assigned_to', local_var_params['assigned_to'])) # noqa: E501
17911799
if 'state' in local_var_params and local_var_params['state'] is not None: # noqa: E501
17921800
query_params.append(('state', local_var_params['state'])) # noqa: E501
1801+
if 'updated_since' in local_var_params and local_var_params['updated_since'] is not None: # noqa: E501
1802+
query_params.append(('updated_since', local_var_params['updated_since'])) # noqa: E501
17931803

17941804
header_params = {}
17951805
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
@@ -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@18fb1034',
48+
screenshot = '[B@7a9794bd',
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@1d9a80d8',
48+
screenshot = '[B@297727ab',
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@297727ab',
44+
project_image = '[B@24df8abf',
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@47585784',
46+
project_image = '[B@390d47db',
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@82134e4'
43+
filename = '[B@22457838'
4444
)
4545
else :
4646
return ScreenshotUpdateParameters(

0 commit comments

Comments
 (0)