forked from linode/linode_api4-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjob.py
More file actions
20 lines (18 loc) · 691 Bytes
/
Copy pathjob.py
File metadata and controls
20 lines (18 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from .dbase import DerivedBase
from .base import Property
class Job(DerivedBase):
api_endpoint = '/linodes/{linode_id}/jobs/{id}'
derived_url_path = 'jobs'
parent_id_name = 'linode_id' #override in child classes
properties = {
"action": Property(),
"duration": Property(volatile=True),
"entered": Property(is_datetime=True),
"finished": Property(volatile=True, is_datetime=True),
"id": Property(identifier=True),
"label": Property(),
"message": Property(),
"started": Property(volatile=True, is_datetime=True),
"success": Property(volatile=True),
"linode_id": Property(identifier=True),
}