@@ -44,9 +44,11 @@ class CreateRuleRequest(object):
4444 'enable_state' : 'str' ,
4545 'evaluation_count' : 'int' ,
4646 'level' : 'str' ,
47+ 'level_conditions' : 'list[LevelConditionForCreateRuleInput]' ,
4748 'multiple_conditions' : 'bool' ,
4849 'namespace' : 'str' ,
4950 'no_data' : 'NoDataForCreateRuleInput' ,
51+ 'notification_id' : 'str' ,
5052 'original_dimensions' : 'dict(str, list[str])' ,
5153 'project_name' : 'str' ,
5254 'recovery_notify' : 'RecoveryNotifyForCreateRuleInput' ,
@@ -71,9 +73,11 @@ class CreateRuleRequest(object):
7173 'enable_state' : 'EnableState' ,
7274 'evaluation_count' : 'EvaluationCount' ,
7375 'level' : 'Level' ,
76+ 'level_conditions' : 'LevelConditions' ,
7477 'multiple_conditions' : 'MultipleConditions' ,
7578 'namespace' : 'Namespace' ,
7679 'no_data' : 'NoData' ,
80+ 'notification_id' : 'NotificationId' ,
7781 'original_dimensions' : 'OriginalDimensions' ,
7882 'project_name' : 'ProjectName' ,
7983 'recovery_notify' : 'RecoveryNotify' ,
@@ -86,7 +90,7 @@ class CreateRuleRequest(object):
8690 'webhook_ids' : 'WebhookIds'
8791 }
8892
89- def __init__ (self , alert_methods = None , condition_operator = None , conditions = None , contact_group_ids = None , description = None , dimension_conditions = None , effect_end_at = None , effect_start_at = None , enable_state = None , evaluation_count = None , level = None , multiple_conditions = None , namespace = None , no_data = None , original_dimensions = None , project_name = None , recovery_notify = None , regions = None , rule_name = None , rule_type = None , silence_time = None , sub_namespace = None , webhook = None , webhook_ids = None , _configuration = None ): # noqa: E501
93+ def __init__ (self , alert_methods = None , condition_operator = None , conditions = None , contact_group_ids = None , description = None , dimension_conditions = None , effect_end_at = None , effect_start_at = None , enable_state = None , evaluation_count = None , level = None , level_conditions = None , multiple_conditions = None , namespace = None , no_data = None , notification_id = None , original_dimensions = None , project_name = None , recovery_notify = None , regions = None , rule_name = None , rule_type = None , silence_time = None , sub_namespace = None , webhook = None , webhook_ids = None , _configuration = None ): # noqa: E501
9094 """CreateRuleRequest - a model defined in Swagger""" # noqa: E501
9195 if _configuration is None :
9296 _configuration = Configuration ()
@@ -103,9 +107,11 @@ def __init__(self, alert_methods=None, condition_operator=None, conditions=None,
103107 self ._enable_state = None
104108 self ._evaluation_count = None
105109 self ._level = None
110+ self ._level_conditions = None
106111 self ._multiple_conditions = None
107112 self ._namespace = None
108113 self ._no_data = None
114+ self ._notification_id = None
109115 self ._original_dimensions = None
110116 self ._project_name = None
111117 self ._recovery_notify = None
@@ -135,11 +141,15 @@ def __init__(self, alert_methods=None, condition_operator=None, conditions=None,
135141 self .enable_state = enable_state
136142 self .evaluation_count = evaluation_count
137143 self .level = level
144+ if level_conditions is not None :
145+ self .level_conditions = level_conditions
138146 if multiple_conditions is not None :
139147 self .multiple_conditions = multiple_conditions
140148 self .namespace = namespace
141149 if no_data is not None :
142150 self .no_data = no_data
151+ if notification_id is not None :
152+ self .notification_id = notification_id
143153 if original_dimensions is not None :
144154 self .original_dimensions = original_dimensions
145155 if project_name is not None :
@@ -406,6 +416,27 @@ def level(self, level):
406416
407417 self ._level = level
408418
419+ @property
420+ def level_conditions (self ):
421+ """Gets the level_conditions of this CreateRuleRequest. # noqa: E501
422+
423+
424+ :return: The level_conditions of this CreateRuleRequest. # noqa: E501
425+ :rtype: list[LevelConditionForCreateRuleInput]
426+ """
427+ return self ._level_conditions
428+
429+ @level_conditions .setter
430+ def level_conditions (self , level_conditions ):
431+ """Sets the level_conditions of this CreateRuleRequest.
432+
433+
434+ :param level_conditions: The level_conditions of this CreateRuleRequest. # noqa: E501
435+ :type: list[LevelConditionForCreateRuleInput]
436+ """
437+
438+ self ._level_conditions = level_conditions
439+
409440 @property
410441 def multiple_conditions (self ):
411442 """Gets the multiple_conditions of this CreateRuleRequest. # noqa: E501
@@ -471,6 +502,27 @@ def no_data(self, no_data):
471502
472503 self ._no_data = no_data
473504
505+ @property
506+ def notification_id (self ):
507+ """Gets the notification_id of this CreateRuleRequest. # noqa: E501
508+
509+
510+ :return: The notification_id of this CreateRuleRequest. # noqa: E501
511+ :rtype: str
512+ """
513+ return self ._notification_id
514+
515+ @notification_id .setter
516+ def notification_id (self , notification_id ):
517+ """Sets the notification_id of this CreateRuleRequest.
518+
519+
520+ :param notification_id: The notification_id of this CreateRuleRequest. # noqa: E501
521+ :type: str
522+ """
523+
524+ self ._notification_id = notification_id
525+
474526 @property
475527 def original_dimensions (self ):
476528 """Gets the original_dimensions of this CreateRuleRequest. # noqa: E501
0 commit comments