14
14
import re # noqa: F401
15
15
16
16
import six
17
+ from influxdb2 .domain .notification_rule_base import NotificationRuleBase
17
18
18
19
19
- class NotificationRule (object ):
20
+ class NotificationRule (NotificationRuleBase ):
20
21
"""NOTE: This class is auto generated by OpenAPI Generator.
21
22
Ref: https://openapi-generator.tech
22
23
@@ -31,13 +32,52 @@ class NotificationRule(object):
31
32
and the value is json key in definition.
32
33
"""
33
34
openapi_types = {
35
+ 'id' : 'str' ,
36
+ 'notify_endpoint_id' : 'str' ,
37
+ 'org_id' : 'str' ,
38
+ 'authorization_id' : 'str' ,
39
+ 'created_at' : 'datetime' ,
40
+ 'updated_at' : 'datetime' ,
41
+ 'status' : 'TaskStatusType' ,
42
+ 'name' : 'str' ,
43
+ 'sleep_until' : 'str' ,
44
+ 'every' : 'str' ,
45
+ 'offset' : 'str' ,
46
+ 'cron' : 'str' ,
47
+ 'runbook_link' : 'str' ,
48
+ 'limit_every' : 'int' ,
49
+ 'limit' : 'int' ,
50
+ 'tag_rules' : 'list[TagRule]' ,
51
+ 'description' : 'str' ,
52
+ 'status_rules' : 'list[StatusRule]' ,
53
+ 'labels' : 'list[Label]'
34
54
}
35
55
36
56
attribute_map = {
57
+ 'id' : 'id' ,
58
+ 'notify_endpoint_id' : 'notifyEndpointID' ,
59
+ 'org_id' : 'orgID' ,
60
+ 'authorization_id' : 'authorizationID' ,
61
+ 'created_at' : 'createdAt' ,
62
+ 'updated_at' : 'updatedAt' ,
63
+ 'status' : 'status' ,
64
+ 'name' : 'name' ,
65
+ 'sleep_until' : 'sleepUntil' ,
66
+ 'every' : 'every' ,
67
+ 'offset' : 'offset' ,
68
+ 'cron' : 'cron' ,
69
+ 'runbook_link' : 'runbookLink' ,
70
+ 'limit_every' : 'limitEvery' ,
71
+ 'limit' : 'limit' ,
72
+ 'tag_rules' : 'tagRules' ,
73
+ 'description' : 'description' ,
74
+ 'status_rules' : 'statusRules' ,
75
+ 'labels' : 'labels'
37
76
}
38
77
39
- def __init__ (self ): # noqa: E501
78
+ def __init__ (self , id = None , notify_endpoint_id = None , org_id = None , authorization_id = None , created_at = None , updated_at = None , status = None , name = None , sleep_until = None , every = None , offset = None , cron = None , runbook_link = None , limit_every = None , limit = None , tag_rules = None , description = None , status_rules = None , labels = None ): # noqa: E501
40
79
"""NotificationRule - a model defined in OpenAPI""" # noqa: E501
80
+ NotificationRuleBase .__init__ (self , id = id , notify_endpoint_id = notify_endpoint_id , org_id = org_id , authorization_id = authorization_id , created_at = created_at , updated_at = updated_at , status = status , name = name , sleep_until = sleep_until , every = every , offset = offset , cron = cron , runbook_link = runbook_link , limit_every = limit_every , limit = limit , tag_rules = tag_rules , description = description , status_rules = status_rules , labels = labels )
41
81
self .discriminator = None
42
82
43
83
def to_dict (self ):
0 commit comments