Skip to content

Commit d0b0b6b

Browse files
author
Phrase
committed
1 parent 83f9472 commit d0b0b6b

11 files changed

Lines changed: 68 additions & 10 deletions

docs/Job.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
1515
**updated_at** | **datetime** | | [optional]
1616
**automation_id** | **str** | The ID of the automation that created this job, or null if the job was created manually. | [optional]
1717
**job_template_id** | **str** | The ID of the job template this job was created from, or null if no template was used. | [optional]
18+
**review_due_date** | **datetime** | The review due date for this job. Returns `null` when the project does not have review workflow enabled. | [optional]
1819

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

docs/JobDetails.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
1515
**updated_at** | **datetime** | | [optional]
1616
**automation_id** | **str** | The ID of the automation that created this job, or null if the job was created manually. | [optional]
1717
**job_template_id** | **str** | The ID of the job template this job was created from, or null if no template was used. | [optional]
18+
**review_due_date** | **datetime** | The review due date for this job. Returns `null` when the project does not have review workflow enabled. | [optional]
1819
**owner** | [**UserPreview**](UserPreview.md) | | [optional]
1920
**job_tag_name** | **str** | | [optional]
2021
**source_translations_updated_at** | **datetime** | | [optional]

phrase_api/models/job.py

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ class Job(object):
4343
'created_at': 'datetime',
4444
'updated_at': 'datetime',
4545
'automation_id': 'str',
46-
'job_template_id': 'str'
46+
'job_template_id': 'str',
47+
'review_due_date': 'datetime'
4748
}
4849

4950
attribute_map = {
@@ -58,10 +59,11 @@ class Job(object):
5859
'created_at': 'created_at',
5960
'updated_at': 'updated_at',
6061
'automation_id': 'automation_id',
61-
'job_template_id': 'job_template_id'
62+
'job_template_id': 'job_template_id',
63+
'review_due_date': 'review_due_date'
6264
}
6365

64-
def __init__(self, id=None, name=None, briefing=None, due_date=None, state=None, ticket_url=None, project=None, branch=None, created_at=None, updated_at=None, automation_id=None, job_template_id=None, local_vars_configuration=None): # noqa: E501
66+
def __init__(self, id=None, name=None, briefing=None, due_date=None, state=None, ticket_url=None, project=None, branch=None, created_at=None, updated_at=None, automation_id=None, job_template_id=None, review_due_date=None, local_vars_configuration=None): # noqa: E501
6567
"""Job - a model defined in OpenAPI""" # noqa: E501
6668
if local_vars_configuration is None:
6769
local_vars_configuration = Configuration()
@@ -79,6 +81,7 @@ def __init__(self, id=None, name=None, briefing=None, due_date=None, state=None,
7981
self._updated_at = None
8082
self._automation_id = None
8183
self._job_template_id = None
84+
self._review_due_date = None
8285
self.discriminator = None
8386

8487
if id is not None:
@@ -102,6 +105,7 @@ def __init__(self, id=None, name=None, briefing=None, due_date=None, state=None,
102105
self.updated_at = updated_at
103106
self.automation_id = automation_id
104107
self.job_template_id = job_template_id
108+
self.review_due_date = review_due_date
105109

106110
@property
107111
def id(self):
@@ -359,6 +363,29 @@ def job_template_id(self, job_template_id):
359363

360364
self._job_template_id = job_template_id
361365

366+
@property
367+
def review_due_date(self):
368+
"""Gets the review_due_date of this Job. # noqa: E501
369+
370+
The review due date for this job. Returns `null` when the project does not have review workflow enabled. # noqa: E501
371+
372+
:return: The review_due_date of this Job. # noqa: E501
373+
:rtype: datetime
374+
"""
375+
return self._review_due_date
376+
377+
@review_due_date.setter
378+
def review_due_date(self, review_due_date):
379+
"""Sets the review_due_date of this Job.
380+
381+
The review due date for this job. Returns `null` when the project does not have review workflow enabled. # noqa: E501
382+
383+
:param review_due_date: The review_due_date of this Job. # noqa: E501
384+
:type: datetime
385+
"""
386+
387+
self._review_due_date = review_due_date
388+
362389
def to_dict(self):
363390
"""Returns the model properties as a dict"""
364391
result = {}

phrase_api/models/job_details.py

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class JobDetails(object):
4444
'updated_at': 'datetime',
4545
'automation_id': 'str',
4646
'job_template_id': 'str',
47+
'review_due_date': 'datetime',
4748
'owner': 'UserPreview',
4849
'job_tag_name': 'str',
4950
'source_translations_updated_at': 'datetime',
@@ -67,6 +68,7 @@ class JobDetails(object):
6768
'updated_at': 'updated_at',
6869
'automation_id': 'automation_id',
6970
'job_template_id': 'job_template_id',
71+
'review_due_date': 'review_due_date',
7072
'owner': 'owner',
7173
'job_tag_name': 'job_tag_name',
7274
'source_translations_updated_at': 'source_translations_updated_at',
@@ -77,7 +79,7 @@ class JobDetails(object):
7779
'locked': 'locked'
7880
}
7981

80-
def __init__(self, id=None, name=None, briefing=None, due_date=None, state=None, ticket_url=None, project=None, branch=None, created_at=None, updated_at=None, automation_id=None, job_template_id=None, owner=None, job_tag_name=None, source_translations_updated_at=None, source_locale=None, locales=None, keys=None, annotations=None, locked=None, local_vars_configuration=None): # noqa: E501
82+
def __init__(self, id=None, name=None, briefing=None, due_date=None, state=None, ticket_url=None, project=None, branch=None, created_at=None, updated_at=None, automation_id=None, job_template_id=None, review_due_date=None, owner=None, job_tag_name=None, source_translations_updated_at=None, source_locale=None, locales=None, keys=None, annotations=None, locked=None, local_vars_configuration=None): # noqa: E501
8183
"""JobDetails - a model defined in OpenAPI""" # noqa: E501
8284
if local_vars_configuration is None:
8385
local_vars_configuration = Configuration()
@@ -95,6 +97,7 @@ def __init__(self, id=None, name=None, briefing=None, due_date=None, state=None,
9597
self._updated_at = None
9698
self._automation_id = None
9799
self._job_template_id = None
100+
self._review_due_date = None
98101
self._owner = None
99102
self._job_tag_name = None
100103
self._source_translations_updated_at = None
@@ -126,6 +129,7 @@ def __init__(self, id=None, name=None, briefing=None, due_date=None, state=None,
126129
self.updated_at = updated_at
127130
self.automation_id = automation_id
128131
self.job_template_id = job_template_id
132+
self.review_due_date = review_due_date
129133
if owner is not None:
130134
self.owner = owner
131135
if job_tag_name is not None:
@@ -399,6 +403,29 @@ def job_template_id(self, job_template_id):
399403

400404
self._job_template_id = job_template_id
401405

406+
@property
407+
def review_due_date(self):
408+
"""Gets the review_due_date of this JobDetails. # noqa: E501
409+
410+
The review due date for this job. Returns `null` when the project does not have review workflow enabled. # noqa: E501
411+
412+
:return: The review_due_date of this JobDetails. # noqa: E501
413+
:rtype: datetime
414+
"""
415+
return self._review_due_date
416+
417+
@review_due_date.setter
418+
def review_due_date(self, review_due_date):
419+
"""Sets the review_due_date of this JobDetails.
420+
421+
The review due date for this job. Returns `null` when the project does not have review workflow enabled. # noqa: E501
422+
423+
:param review_due_date: The review_due_date of this JobDetails. # noqa: E501
424+
:type: datetime
425+
"""
426+
427+
self._review_due_date = review_due_date
428+
402429
@property
403430
def owner(self):
404431
"""Gets the owner of this JobDetails. # noqa: E501

test/test_job.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ def make_instance(self, include_optional):
4848
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
4949
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
5050
automation_id = '',
51-
job_template_id = ''
51+
job_template_id = '',
52+
review_due_date = '2015-03-25T11:43:52Z'
5253
)
5354
else :
5455
return Job(

test/test_job_details.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def make_instance(self, include_optional):
4949
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
5050
automation_id = '',
5151
job_template_id = '',
52+
review_due_date = '2015-03-25T11:43:52Z',
5253
owner = {"id":"abcd1234cdef1234abcd1234cdef1234","username":"johndoe","name":"John Doe","gravatar_uid":"205e460b479e2e5b48aec07710c08d50"},
5354
job_tag_name = '',
5455
source_translations_updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),

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@23e9526b',
49+
screenshot = '[B@6a3b205',
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@1d1daaa3',
49+
screenshot = '[B@77b1ba0b',
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@7a5f612f',
44+
project_image = '[B@360e9b23',
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@6b3aae03',
46+
project_image = '[B@67ee3b1',
4747
remove_project_image = False,
4848
workflow = 'review',
4949
machine_translation_enabled = True,

0 commit comments

Comments
 (0)