huaweicloudsdkas 3.1.98__py2.py3-none-any.whl → 3.1.100__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of huaweicloudsdkas might be problematic. Click here for more details.

@@ -96,6 +96,7 @@ from huaweicloudsdkas.v1.model.instance_config import InstanceConfig
96
96
  from huaweicloudsdkas.v1.model.instance_config_result import InstanceConfigResult
97
97
  from huaweicloudsdkas.v1.model.instance_hanging_infos import InstanceHangingInfos
98
98
  from huaweicloudsdkas.v1.model.integer_range import IntegerRange
99
+ from huaweicloudsdkas.v1.model.interval_alarm_actions_v2 import IntervalAlarmActionsV2
99
100
  from huaweicloudsdkas.v1.model.ipv6_bandwidth import Ipv6Bandwidth
100
101
  from huaweicloudsdkas.v1.model.job_records import JobRecords
101
102
  from huaweicloudsdkas.v1.model.lbaas_listener import LbaasListener
@@ -94,6 +94,7 @@ from huaweicloudsdkas.v1.model.instance_config import InstanceConfig
94
94
  from huaweicloudsdkas.v1.model.instance_config_result import InstanceConfigResult
95
95
  from huaweicloudsdkas.v1.model.instance_hanging_infos import InstanceHangingInfos
96
96
  from huaweicloudsdkas.v1.model.integer_range import IntegerRange
97
+ from huaweicloudsdkas.v1.model.interval_alarm_actions_v2 import IntervalAlarmActionsV2
97
98
  from huaweicloudsdkas.v1.model.ipv6_bandwidth import Ipv6Bandwidth
98
99
  from huaweicloudsdkas.v1.model.job_records import JobRecords
99
100
  from huaweicloudsdkas.v1.model.lbaas_listener import LbaasListener
@@ -24,6 +24,7 @@ class CreateScalingPolicyV2Option:
24
24
  'alarm_id': 'str',
25
25
  'scheduled_policy': 'ScheduledPolicy',
26
26
  'scaling_policy_action': 'ScalingPolicyActionV2',
27
+ 'interval_alarm_actions': 'list[IntervalAlarmActionsV2]',
27
28
  'cool_down_time': 'int',
28
29
  'description': 'str'
29
30
  }
@@ -36,11 +37,12 @@ class CreateScalingPolicyV2Option:
36
37
  'alarm_id': 'alarm_id',
37
38
  'scheduled_policy': 'scheduled_policy',
38
39
  'scaling_policy_action': 'scaling_policy_action',
40
+ 'interval_alarm_actions': 'interval_alarm_actions',
39
41
  'cool_down_time': 'cool_down_time',
40
42
  'description': 'description'
41
43
  }
42
44
 
43
- def __init__(self, scaling_policy_name=None, scaling_resource_id=None, scaling_resource_type=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, cool_down_time=None, description=None):
45
+ def __init__(self, scaling_policy_name=None, scaling_resource_id=None, scaling_resource_type=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, interval_alarm_actions=None, cool_down_time=None, description=None):
44
46
  """CreateScalingPolicyV2Option
45
47
 
46
48
  The model defined in huaweicloud sdk
@@ -59,6 +61,8 @@ class CreateScalingPolicyV2Option:
59
61
  :type scheduled_policy: :class:`huaweicloudsdkas.v1.ScheduledPolicy`
60
62
  :param scaling_policy_action:
61
63
  :type scaling_policy_action: :class:`huaweicloudsdkas.v1.ScalingPolicyActionV2`
64
+ :param interval_alarm_actions:
65
+ :type interval_alarm_actions: list[:class:`huaweicloudsdkas.v1.IntervalAlarmActionsV2`]
62
66
  :param cool_down_time: 冷却时间,取值范围0-86400,默认为300,单位是秒。
63
67
  :type cool_down_time: int
64
68
  :param description: 伸缩策略描述(1-256个字符)
@@ -74,6 +78,7 @@ class CreateScalingPolicyV2Option:
74
78
  self._alarm_id = None
75
79
  self._scheduled_policy = None
76
80
  self._scaling_policy_action = None
81
+ self._interval_alarm_actions = None
77
82
  self._cool_down_time = None
78
83
  self._description = None
79
84
  self.discriminator = None
@@ -88,6 +93,8 @@ class CreateScalingPolicyV2Option:
88
93
  self.scheduled_policy = scheduled_policy
89
94
  if scaling_policy_action is not None:
90
95
  self.scaling_policy_action = scaling_policy_action
96
+ if interval_alarm_actions is not None:
97
+ self.interval_alarm_actions = interval_alarm_actions
91
98
  if cool_down_time is not None:
92
99
  self.cool_down_time = cool_down_time
93
100
  if description is not None:
@@ -239,6 +246,24 @@ class CreateScalingPolicyV2Option:
239
246
  """
240
247
  self._scaling_policy_action = scaling_policy_action
241
248
 
249
+ @property
250
+ def interval_alarm_actions(self):
251
+ """Gets the interval_alarm_actions of this CreateScalingPolicyV2Option.
252
+
253
+ :return: The interval_alarm_actions of this CreateScalingPolicyV2Option.
254
+ :rtype: list[:class:`huaweicloudsdkas.v1.IntervalAlarmActionsV2`]
255
+ """
256
+ return self._interval_alarm_actions
257
+
258
+ @interval_alarm_actions.setter
259
+ def interval_alarm_actions(self, interval_alarm_actions):
260
+ """Sets the interval_alarm_actions of this CreateScalingPolicyV2Option.
261
+
262
+ :param interval_alarm_actions: The interval_alarm_actions of this CreateScalingPolicyV2Option.
263
+ :type interval_alarm_actions: list[:class:`huaweicloudsdkas.v1.IntervalAlarmActionsV2`]
264
+ """
265
+ self._interval_alarm_actions = interval_alarm_actions
266
+
242
267
  @property
243
268
  def cool_down_time(self):
244
269
  """Gets the cool_down_time of this CreateScalingPolicyV2Option.
@@ -0,0 +1,223 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class IntervalAlarmActionsV2:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'operation': 'str',
21
+ 'limits': 'int',
22
+ 'size': 'int',
23
+ 'lower_bound': 'int',
24
+ 'upper_bound': 'int'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'operation': 'operation',
29
+ 'limits': 'limits',
30
+ 'size': 'size',
31
+ 'lower_bound': 'lower_bound',
32
+ 'upper_bound': 'upper_bound'
33
+ }
34
+
35
+ def __init__(self, operation=None, limits=None, size=None, lower_bound=None, upper_bound=None):
36
+ """IntervalAlarmActionsV2
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param operation: 操作选项,默认为ADD。 当scaling_resource_type为SCALING_GROUP,支持如下操作: ADD:增加 REMOVE/REDUCE:减少 SET:设置为 当scaling_resource_type为BANDWIDTH,支持如下操作: ADD:增加 REDUCE:减少
41
+ :type operation: str
42
+ :param limits: 操作限制。当scaling_resource_type为BANDWIDTH,且operation不为SET时,limits参数生效,单位为Mbit/s。此时,当operation为ADD时,limits表示带宽可调整的上限;当operation为REDUCE时,limits表示带宽可调整的下限。
43
+ :type limits: int
44
+ :param size: 操作大小,取值范围为0到300的整数,默认为1。当scaling_resource_type为SCALING_GROUP时,size为实例个数,取值范围为0-300的整数,默认为1。当scaling_resource_type为BANDWIDTH时,size表示带宽大小,单位为Mbit/s,取值范围为1到300的整数,默认为1。当scaling_resource_type为SCALING_GROUP时,size和percentage参数只能选其中一个进行配置。
45
+ :type size: int
46
+ :param lower_bound:
47
+ :type lower_bound: int
48
+ :param upper_bound:
49
+ :type upper_bound: int
50
+ """
51
+
52
+
53
+
54
+ self._operation = None
55
+ self._limits = None
56
+ self._size = None
57
+ self._lower_bound = None
58
+ self._upper_bound = None
59
+ self.discriminator = None
60
+
61
+ if operation is not None:
62
+ self.operation = operation
63
+ if limits is not None:
64
+ self.limits = limits
65
+ if size is not None:
66
+ self.size = size
67
+ if lower_bound is not None:
68
+ self.lower_bound = lower_bound
69
+ if upper_bound is not None:
70
+ self.upper_bound = upper_bound
71
+
72
+ @property
73
+ def operation(self):
74
+ """Gets the operation of this IntervalAlarmActionsV2.
75
+
76
+ 操作选项,默认为ADD。 当scaling_resource_type为SCALING_GROUP,支持如下操作: ADD:增加 REMOVE/REDUCE:减少 SET:设置为 当scaling_resource_type为BANDWIDTH,支持如下操作: ADD:增加 REDUCE:减少
77
+
78
+ :return: The operation of this IntervalAlarmActionsV2.
79
+ :rtype: str
80
+ """
81
+ return self._operation
82
+
83
+ @operation.setter
84
+ def operation(self, operation):
85
+ """Sets the operation of this IntervalAlarmActionsV2.
86
+
87
+ 操作选项,默认为ADD。 当scaling_resource_type为SCALING_GROUP,支持如下操作: ADD:增加 REMOVE/REDUCE:减少 SET:设置为 当scaling_resource_type为BANDWIDTH,支持如下操作: ADD:增加 REDUCE:减少
88
+
89
+ :param operation: The operation of this IntervalAlarmActionsV2.
90
+ :type operation: str
91
+ """
92
+ self._operation = operation
93
+
94
+ @property
95
+ def limits(self):
96
+ """Gets the limits of this IntervalAlarmActionsV2.
97
+
98
+ 操作限制。当scaling_resource_type为BANDWIDTH,且operation不为SET时,limits参数生效,单位为Mbit/s。此时,当operation为ADD时,limits表示带宽可调整的上限;当operation为REDUCE时,limits表示带宽可调整的下限。
99
+
100
+ :return: The limits of this IntervalAlarmActionsV2.
101
+ :rtype: int
102
+ """
103
+ return self._limits
104
+
105
+ @limits.setter
106
+ def limits(self, limits):
107
+ """Sets the limits of this IntervalAlarmActionsV2.
108
+
109
+ 操作限制。当scaling_resource_type为BANDWIDTH,且operation不为SET时,limits参数生效,单位为Mbit/s。此时,当operation为ADD时,limits表示带宽可调整的上限;当operation为REDUCE时,limits表示带宽可调整的下限。
110
+
111
+ :param limits: The limits of this IntervalAlarmActionsV2.
112
+ :type limits: int
113
+ """
114
+ self._limits = limits
115
+
116
+ @property
117
+ def size(self):
118
+ """Gets the size of this IntervalAlarmActionsV2.
119
+
120
+ 操作大小,取值范围为0到300的整数,默认为1。当scaling_resource_type为SCALING_GROUP时,size为实例个数,取值范围为0-300的整数,默认为1。当scaling_resource_type为BANDWIDTH时,size表示带宽大小,单位为Mbit/s,取值范围为1到300的整数,默认为1。当scaling_resource_type为SCALING_GROUP时,size和percentage参数只能选其中一个进行配置。
121
+
122
+ :return: The size of this IntervalAlarmActionsV2.
123
+ :rtype: int
124
+ """
125
+ return self._size
126
+
127
+ @size.setter
128
+ def size(self, size):
129
+ """Sets the size of this IntervalAlarmActionsV2.
130
+
131
+ 操作大小,取值范围为0到300的整数,默认为1。当scaling_resource_type为SCALING_GROUP时,size为实例个数,取值范围为0-300的整数,默认为1。当scaling_resource_type为BANDWIDTH时,size表示带宽大小,单位为Mbit/s,取值范围为1到300的整数,默认为1。当scaling_resource_type为SCALING_GROUP时,size和percentage参数只能选其中一个进行配置。
132
+
133
+ :param size: The size of this IntervalAlarmActionsV2.
134
+ :type size: int
135
+ """
136
+ self._size = size
137
+
138
+ @property
139
+ def lower_bound(self):
140
+ """Gets the lower_bound of this IntervalAlarmActionsV2.
141
+
142
+ :return: The lower_bound of this IntervalAlarmActionsV2.
143
+ :rtype: int
144
+ """
145
+ return self._lower_bound
146
+
147
+ @lower_bound.setter
148
+ def lower_bound(self, lower_bound):
149
+ """Sets the lower_bound of this IntervalAlarmActionsV2.
150
+
151
+ :param lower_bound: The lower_bound of this IntervalAlarmActionsV2.
152
+ :type lower_bound: int
153
+ """
154
+ self._lower_bound = lower_bound
155
+
156
+ @property
157
+ def upper_bound(self):
158
+ """Gets the upper_bound of this IntervalAlarmActionsV2.
159
+
160
+ :return: The upper_bound of this IntervalAlarmActionsV2.
161
+ :rtype: int
162
+ """
163
+ return self._upper_bound
164
+
165
+ @upper_bound.setter
166
+ def upper_bound(self, upper_bound):
167
+ """Sets the upper_bound of this IntervalAlarmActionsV2.
168
+
169
+ :param upper_bound: The upper_bound of this IntervalAlarmActionsV2.
170
+ :type upper_bound: int
171
+ """
172
+ self._upper_bound = upper_bound
173
+
174
+ def to_dict(self):
175
+ """Returns the model properties as a dict"""
176
+ result = {}
177
+
178
+ for attr, _ in six.iteritems(self.openapi_types):
179
+ value = getattr(self, attr)
180
+ if isinstance(value, list):
181
+ result[attr] = list(map(
182
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
183
+ value
184
+ ))
185
+ elif hasattr(value, "to_dict"):
186
+ result[attr] = value.to_dict()
187
+ elif isinstance(value, dict):
188
+ result[attr] = dict(map(
189
+ lambda item: (item[0], item[1].to_dict())
190
+ if hasattr(item[1], "to_dict") else item,
191
+ value.items()
192
+ ))
193
+ else:
194
+ if attr in self.sensitive_list:
195
+ result[attr] = "****"
196
+ else:
197
+ result[attr] = value
198
+
199
+ return result
200
+
201
+ def to_str(self):
202
+ """Returns the string representation of the model"""
203
+ import simplejson as json
204
+ if six.PY2:
205
+ import sys
206
+ reload(sys)
207
+ sys.setdefaultencoding("utf-8")
208
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
209
+
210
+ def __repr__(self):
211
+ """For `print`"""
212
+ return self.to_str()
213
+
214
+ def __eq__(self, other):
215
+ """Returns true if both objects are equal"""
216
+ if not isinstance(other, IntervalAlarmActionsV2):
217
+ return False
218
+
219
+ return self.__dict__ == other.__dict__
220
+
221
+ def __ne__(self, other):
222
+ """Returns true if both objects are not equal"""
223
+ return not self == other
@@ -26,6 +26,7 @@ class ScalingAllPolicyDetail:
26
26
  'alarm_id': 'str',
27
27
  'scheduled_policy': 'ScheduledPolicy',
28
28
  'scaling_policy_action': 'ScalingPolicyActionV2',
29
+ 'interval_alarm_actions': 'list[IntervalAlarmActionsV2]',
29
30
  'cool_down_time': 'int',
30
31
  'create_time': 'datetime',
31
32
  'meta_data': 'ScalingPolicyV2MetaData',
@@ -42,13 +43,14 @@ class ScalingAllPolicyDetail:
42
43
  'alarm_id': 'alarm_id',
43
44
  'scheduled_policy': 'scheduled_policy',
44
45
  'scaling_policy_action': 'scaling_policy_action',
46
+ 'interval_alarm_actions': 'interval_alarm_actions',
45
47
  'cool_down_time': 'cool_down_time',
46
48
  'create_time': 'create_time',
47
49
  'meta_data': 'meta_data',
48
50
  'description': 'description'
49
51
  }
50
52
 
51
- def __init__(self, scaling_policy_name=None, scaling_policy_id=None, scaling_resource_id=None, scaling_resource_type=None, policy_status=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, cool_down_time=None, create_time=None, meta_data=None, description=None):
53
+ def __init__(self, scaling_policy_name=None, scaling_policy_id=None, scaling_resource_id=None, scaling_resource_type=None, policy_status=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, interval_alarm_actions=None, cool_down_time=None, create_time=None, meta_data=None, description=None):
52
54
  """ScalingAllPolicyDetail
53
55
 
54
56
  The model defined in huaweicloud sdk
@@ -71,6 +73,8 @@ class ScalingAllPolicyDetail:
71
73
  :type scheduled_policy: :class:`huaweicloudsdkas.v1.ScheduledPolicy`
72
74
  :param scaling_policy_action:
73
75
  :type scaling_policy_action: :class:`huaweicloudsdkas.v1.ScalingPolicyActionV2`
76
+ :param interval_alarm_actions:
77
+ :type interval_alarm_actions: list[:class:`huaweicloudsdkas.v1.IntervalAlarmActionsV2`]
74
78
  :param cool_down_time: 冷却时间,取值范围0-86400,默认为300,单位是秒。
75
79
  :type cool_down_time: int
76
80
  :param create_time: 创建伸缩策略时间,遵循UTC时间
@@ -92,6 +96,7 @@ class ScalingAllPolicyDetail:
92
96
  self._alarm_id = None
93
97
  self._scheduled_policy = None
94
98
  self._scaling_policy_action = None
99
+ self._interval_alarm_actions = None
95
100
  self._cool_down_time = None
96
101
  self._create_time = None
97
102
  self._meta_data = None
@@ -116,6 +121,8 @@ class ScalingAllPolicyDetail:
116
121
  self.scheduled_policy = scheduled_policy
117
122
  if scaling_policy_action is not None:
118
123
  self.scaling_policy_action = scaling_policy_action
124
+ if interval_alarm_actions is not None:
125
+ self.interval_alarm_actions = interval_alarm_actions
119
126
  if cool_down_time is not None:
120
127
  self.cool_down_time = cool_down_time
121
128
  if create_time is not None:
@@ -315,6 +322,24 @@ class ScalingAllPolicyDetail:
315
322
  """
316
323
  self._scaling_policy_action = scaling_policy_action
317
324
 
325
+ @property
326
+ def interval_alarm_actions(self):
327
+ """Gets the interval_alarm_actions of this ScalingAllPolicyDetail.
328
+
329
+ :return: The interval_alarm_actions of this ScalingAllPolicyDetail.
330
+ :rtype: list[:class:`huaweicloudsdkas.v1.IntervalAlarmActionsV2`]
331
+ """
332
+ return self._interval_alarm_actions
333
+
334
+ @interval_alarm_actions.setter
335
+ def interval_alarm_actions(self, interval_alarm_actions):
336
+ """Sets the interval_alarm_actions of this ScalingAllPolicyDetail.
337
+
338
+ :param interval_alarm_actions: The interval_alarm_actions of this ScalingAllPolicyDetail.
339
+ :type interval_alarm_actions: list[:class:`huaweicloudsdkas.v1.IntervalAlarmActionsV2`]
340
+ """
341
+ self._interval_alarm_actions = interval_alarm_actions
342
+
318
343
  @property
319
344
  def cool_down_time(self):
320
345
  """Gets the cool_down_time of this ScalingAllPolicyDetail.
@@ -26,6 +26,7 @@ class ScalingPoliciesV2:
26
26
  'alarm_id': 'str',
27
27
  'scheduled_policy': 'ScheduledPolicy',
28
28
  'scaling_policy_action': 'ScalingPolicyActionV2',
29
+ 'interval_alarm_actions': 'list[IntervalAlarmActionsV2]',
29
30
  'cool_down_time': 'int',
30
31
  'create_time': 'datetime',
31
32
  'meta_data': 'ScalingPolicyV2MetaData',
@@ -42,13 +43,14 @@ class ScalingPoliciesV2:
42
43
  'alarm_id': 'alarm_id',
43
44
  'scheduled_policy': 'scheduled_policy',
44
45
  'scaling_policy_action': 'scaling_policy_action',
46
+ 'interval_alarm_actions': 'interval_alarm_actions',
45
47
  'cool_down_time': 'cool_down_time',
46
48
  'create_time': 'create_time',
47
49
  'meta_data': 'meta_data',
48
50
  'description': 'description'
49
51
  }
50
52
 
51
- def __init__(self, scaling_policy_name=None, scaling_policy_id=None, scaling_resource_id=None, scaling_resource_type=None, policy_status=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, cool_down_time=None, create_time=None, meta_data=None, description=None):
53
+ def __init__(self, scaling_policy_name=None, scaling_policy_id=None, scaling_resource_id=None, scaling_resource_type=None, policy_status=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, interval_alarm_actions=None, cool_down_time=None, create_time=None, meta_data=None, description=None):
52
54
  """ScalingPoliciesV2
53
55
 
54
56
  The model defined in huaweicloud sdk
@@ -71,6 +73,8 @@ class ScalingPoliciesV2:
71
73
  :type scheduled_policy: :class:`huaweicloudsdkas.v1.ScheduledPolicy`
72
74
  :param scaling_policy_action:
73
75
  :type scaling_policy_action: :class:`huaweicloudsdkas.v1.ScalingPolicyActionV2`
76
+ :param interval_alarm_actions:
77
+ :type interval_alarm_actions: list[:class:`huaweicloudsdkas.v1.IntervalAlarmActionsV2`]
74
78
  :param cool_down_time: 冷却时间,取值范围0-86400,默认为300,单位是秒。
75
79
  :type cool_down_time: int
76
80
  :param create_time: 创建伸缩策略时间,遵循UTC时间
@@ -92,6 +96,7 @@ class ScalingPoliciesV2:
92
96
  self._alarm_id = None
93
97
  self._scheduled_policy = None
94
98
  self._scaling_policy_action = None
99
+ self._interval_alarm_actions = None
95
100
  self._cool_down_time = None
96
101
  self._create_time = None
97
102
  self._meta_data = None
@@ -116,6 +121,8 @@ class ScalingPoliciesV2:
116
121
  self.scheduled_policy = scheduled_policy
117
122
  if scaling_policy_action is not None:
118
123
  self.scaling_policy_action = scaling_policy_action
124
+ if interval_alarm_actions is not None:
125
+ self.interval_alarm_actions = interval_alarm_actions
119
126
  if cool_down_time is not None:
120
127
  self.cool_down_time = cool_down_time
121
128
  if create_time is not None:
@@ -315,6 +322,24 @@ class ScalingPoliciesV2:
315
322
  """
316
323
  self._scaling_policy_action = scaling_policy_action
317
324
 
325
+ @property
326
+ def interval_alarm_actions(self):
327
+ """Gets the interval_alarm_actions of this ScalingPoliciesV2.
328
+
329
+ :return: The interval_alarm_actions of this ScalingPoliciesV2.
330
+ :rtype: list[:class:`huaweicloudsdkas.v1.IntervalAlarmActionsV2`]
331
+ """
332
+ return self._interval_alarm_actions
333
+
334
+ @interval_alarm_actions.setter
335
+ def interval_alarm_actions(self, interval_alarm_actions):
336
+ """Sets the interval_alarm_actions of this ScalingPoliciesV2.
337
+
338
+ :param interval_alarm_actions: The interval_alarm_actions of this ScalingPoliciesV2.
339
+ :type interval_alarm_actions: list[:class:`huaweicloudsdkas.v1.IntervalAlarmActionsV2`]
340
+ """
341
+ self._interval_alarm_actions = interval_alarm_actions
342
+
318
343
  @property
319
344
  def cool_down_time(self):
320
345
  """Gets the cool_down_time of this ScalingPoliciesV2.
@@ -26,6 +26,7 @@ class ScalingV2PolicyDetail:
26
26
  'alarm_id': 'str',
27
27
  'scheduled_policy': 'ScheduledPolicy',
28
28
  'scaling_policy_action': 'ScalingPolicyActionV2',
29
+ 'interval_alarm_actions': 'list[IntervalAlarmActionsV2]',
29
30
  'cool_down_time': 'int',
30
31
  'create_time': 'datetime',
31
32
  'meta_data': 'ScalingPolicyV2MetaData',
@@ -42,13 +43,14 @@ class ScalingV2PolicyDetail:
42
43
  'alarm_id': 'alarm_id',
43
44
  'scheduled_policy': 'scheduled_policy',
44
45
  'scaling_policy_action': 'scaling_policy_action',
46
+ 'interval_alarm_actions': 'interval_alarm_actions',
45
47
  'cool_down_time': 'cool_down_time',
46
48
  'create_time': 'create_time',
47
49
  'meta_data': 'meta_data',
48
50
  'description': 'description'
49
51
  }
50
52
 
51
- def __init__(self, scaling_policy_name=None, scaling_policy_id=None, scaling_resource_id=None, scaling_resource_type=None, policy_status=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, cool_down_time=None, create_time=None, meta_data=None, description=None):
53
+ def __init__(self, scaling_policy_name=None, scaling_policy_id=None, scaling_resource_id=None, scaling_resource_type=None, policy_status=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, interval_alarm_actions=None, cool_down_time=None, create_time=None, meta_data=None, description=None):
52
54
  """ScalingV2PolicyDetail
53
55
 
54
56
  The model defined in huaweicloud sdk
@@ -71,6 +73,8 @@ class ScalingV2PolicyDetail:
71
73
  :type scheduled_policy: :class:`huaweicloudsdkas.v1.ScheduledPolicy`
72
74
  :param scaling_policy_action:
73
75
  :type scaling_policy_action: :class:`huaweicloudsdkas.v1.ScalingPolicyActionV2`
76
+ :param interval_alarm_actions:
77
+ :type interval_alarm_actions: list[:class:`huaweicloudsdkas.v1.IntervalAlarmActionsV2`]
74
78
  :param cool_down_time: 冷却时间,取值范围0-86400,默认为300,单位是秒。
75
79
  :type cool_down_time: int
76
80
  :param create_time: 创建伸缩策略时间,遵循UTC时间
@@ -92,6 +96,7 @@ class ScalingV2PolicyDetail:
92
96
  self._alarm_id = None
93
97
  self._scheduled_policy = None
94
98
  self._scaling_policy_action = None
99
+ self._interval_alarm_actions = None
95
100
  self._cool_down_time = None
96
101
  self._create_time = None
97
102
  self._meta_data = None
@@ -116,6 +121,8 @@ class ScalingV2PolicyDetail:
116
121
  self.scheduled_policy = scheduled_policy
117
122
  if scaling_policy_action is not None:
118
123
  self.scaling_policy_action = scaling_policy_action
124
+ if interval_alarm_actions is not None:
125
+ self.interval_alarm_actions = interval_alarm_actions
119
126
  if cool_down_time is not None:
120
127
  self.cool_down_time = cool_down_time
121
128
  if create_time is not None:
@@ -315,6 +322,24 @@ class ScalingV2PolicyDetail:
315
322
  """
316
323
  self._scaling_policy_action = scaling_policy_action
317
324
 
325
+ @property
326
+ def interval_alarm_actions(self):
327
+ """Gets the interval_alarm_actions of this ScalingV2PolicyDetail.
328
+
329
+ :return: The interval_alarm_actions of this ScalingV2PolicyDetail.
330
+ :rtype: list[:class:`huaweicloudsdkas.v1.IntervalAlarmActionsV2`]
331
+ """
332
+ return self._interval_alarm_actions
333
+
334
+ @interval_alarm_actions.setter
335
+ def interval_alarm_actions(self, interval_alarm_actions):
336
+ """Sets the interval_alarm_actions of this ScalingV2PolicyDetail.
337
+
338
+ :param interval_alarm_actions: The interval_alarm_actions of this ScalingV2PolicyDetail.
339
+ :type interval_alarm_actions: list[:class:`huaweicloudsdkas.v1.IntervalAlarmActionsV2`]
340
+ """
341
+ self._interval_alarm_actions = interval_alarm_actions
342
+
318
343
  @property
319
344
  def cool_down_time(self):
320
345
  """Gets the cool_down_time of this ScalingV2PolicyDetail.
@@ -24,6 +24,7 @@ class UpdateScalingV2PolicyOption:
24
24
  'alarm_id': 'str',
25
25
  'scheduled_policy': 'ScheduledPolicy',
26
26
  'scaling_policy_action': 'ScalingPolicyActionV2',
27
+ 'interval_alarm_actions': 'list[IntervalAlarmActionsV2]',
27
28
  'cool_down_time': 'int',
28
29
  'description': 'str'
29
30
  }
@@ -36,11 +37,12 @@ class UpdateScalingV2PolicyOption:
36
37
  'alarm_id': 'alarm_id',
37
38
  'scheduled_policy': 'scheduled_policy',
38
39
  'scaling_policy_action': 'scaling_policy_action',
40
+ 'interval_alarm_actions': 'interval_alarm_actions',
39
41
  'cool_down_time': 'cool_down_time',
40
42
  'description': 'description'
41
43
  }
42
44
 
43
- def __init__(self, scaling_policy_name=None, scaling_resource_id=None, scaling_resource_type=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, cool_down_time=None, description=None):
45
+ def __init__(self, scaling_policy_name=None, scaling_resource_id=None, scaling_resource_type=None, scaling_policy_type=None, alarm_id=None, scheduled_policy=None, scaling_policy_action=None, interval_alarm_actions=None, cool_down_time=None, description=None):
44
46
  """UpdateScalingV2PolicyOption
45
47
 
46
48
  The model defined in huaweicloud sdk
@@ -59,6 +61,8 @@ class UpdateScalingV2PolicyOption:
59
61
  :type scheduled_policy: :class:`huaweicloudsdkas.v1.ScheduledPolicy`
60
62
  :param scaling_policy_action:
61
63
  :type scaling_policy_action: :class:`huaweicloudsdkas.v1.ScalingPolicyActionV2`
64
+ :param interval_alarm_actions:
65
+ :type interval_alarm_actions: list[:class:`huaweicloudsdkas.v1.IntervalAlarmActionsV2`]
62
66
  :param cool_down_time: 冷却时间,取值范围0-86400,默认为300,单位是秒。
63
67
  :type cool_down_time: int
64
68
  :param description: 伸缩策略描述(1-256个字符)
@@ -74,6 +78,7 @@ class UpdateScalingV2PolicyOption:
74
78
  self._alarm_id = None
75
79
  self._scheduled_policy = None
76
80
  self._scaling_policy_action = None
81
+ self._interval_alarm_actions = None
77
82
  self._cool_down_time = None
78
83
  self._description = None
79
84
  self.discriminator = None
@@ -92,6 +97,8 @@ class UpdateScalingV2PolicyOption:
92
97
  self.scheduled_policy = scheduled_policy
93
98
  if scaling_policy_action is not None:
94
99
  self.scaling_policy_action = scaling_policy_action
100
+ if interval_alarm_actions is not None:
101
+ self.interval_alarm_actions = interval_alarm_actions
95
102
  if cool_down_time is not None:
96
103
  self.cool_down_time = cool_down_time
97
104
  if description is not None:
@@ -243,6 +250,24 @@ class UpdateScalingV2PolicyOption:
243
250
  """
244
251
  self._scaling_policy_action = scaling_policy_action
245
252
 
253
+ @property
254
+ def interval_alarm_actions(self):
255
+ """Gets the interval_alarm_actions of this UpdateScalingV2PolicyOption.
256
+
257
+ :return: The interval_alarm_actions of this UpdateScalingV2PolicyOption.
258
+ :rtype: list[:class:`huaweicloudsdkas.v1.IntervalAlarmActionsV2`]
259
+ """
260
+ return self._interval_alarm_actions
261
+
262
+ @interval_alarm_actions.setter
263
+ def interval_alarm_actions(self, interval_alarm_actions):
264
+ """Sets the interval_alarm_actions of this UpdateScalingV2PolicyOption.
265
+
266
+ :param interval_alarm_actions: The interval_alarm_actions of this UpdateScalingV2PolicyOption.
267
+ :type interval_alarm_actions: list[:class:`huaweicloudsdkas.v1.IntervalAlarmActionsV2`]
268
+ """
269
+ self._interval_alarm_actions = interval_alarm_actions
270
+
246
271
  @property
247
272
  def cool_down_time(self):
248
273
  """Gets the cool_down_time of this UpdateScalingV2PolicyOption.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkas
3
- Version: 3.1.98
3
+ Version: 3.1.100
4
4
  Summary: AS
5
5
  Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
6
6
  Author: HuaweiCloud SDK
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
22
22
  Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
- Requires-Dist: huaweicloudsdkcore >=3.1.98
25
+ Requires-Dist: huaweicloudsdkcore >=3.1.100
26
26
 
27
27
  See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
@@ -1,8 +1,8 @@
1
1
  huaweicloudsdkas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- huaweicloudsdkas/v1/__init__.py,sha256=j_7nmsDXPNSnA0dWCMNSPWostj254b3_H4T0mKmtxgM,20024
2
+ huaweicloudsdkas/v1/__init__.py,sha256=eZb-Z5FHcA5fBLSQkopPwYVUUKCqJ_09BxaPnRLY6Ks,20111
3
3
  huaweicloudsdkas/v1/as_async_client.py,sha256=NBQlX6g8U2bLKU9btBVUDvEKb4MTdgexul4tYHpbZO8,161064
4
4
  huaweicloudsdkas/v1/as_client.py,sha256=cSQPY8NjPJTEWTSBw01i2xDYHrKMN2XBjRVxkLM_1pY,161083
5
- huaweicloudsdkas/v1/model/__init__.py,sha256=_Q5dyeOYBbTXX9DhwonVkYakjm1Z2p96TaspSDtksOE,19944
5
+ huaweicloudsdkas/v1/model/__init__.py,sha256=gDHHPvYOv_PfO9H2hvYlhEwPNWuQaZ7wGHjpHK7p-hs,20031
6
6
  huaweicloudsdkas/v1/model/all_quotas.py,sha256=Vk0UEtRREEDZrFCZPR-zKKdwRpKRxfEAMVD1kd0TguQ,3219
7
7
  huaweicloudsdkas/v1/model/all_resources.py,sha256=3yJNnP7IJ0CMCHtFqINwaJVocDHraYLtYdKMHLcwg7g,6897
8
8
  huaweicloudsdkas/v1/model/allowed_address_pair.py,sha256=HhmyVyiX69f1t35VvYiOSB_ykvo4ODXua__mM0FAmG0,3554
@@ -58,7 +58,7 @@ huaweicloudsdkas/v1/model/create_scaling_notification_response.py,sha256=ii6xPyu
58
58
  huaweicloudsdkas/v1/model/create_scaling_policy_option.py,sha256=gxcpMHJIIoJiyUZB07FgtMa5VeCoqWF7nVGDpcSL1Mw,11428
59
59
  huaweicloudsdkas/v1/model/create_scaling_policy_request.py,sha256=CVmQZoeoikCWBtanQNI2uosSayWK08GY6TsmFiyFKxQ,3188
60
60
  huaweicloudsdkas/v1/model/create_scaling_policy_response.py,sha256=U3iejBK818j1Fpmr7zBjN_gDZuuTrAaKdeCn9CYHIhE,3472
61
- huaweicloudsdkas/v1/model/create_scaling_policy_v2_option.py,sha256=gWsuy-W9QqYRNECzyv-cGKZW97hEmVosu8dSwqJ7YRQ,14278
61
+ huaweicloudsdkas/v1/model/create_scaling_policy_v2_option.py,sha256=vIIrghY9ucYOTn_PwawI-5NHGHiXoZCh2k25rgI50nM,15522
62
62
  huaweicloudsdkas/v1/model/create_scaling_tag_info_request.py,sha256=oXUot0jD3aV7NvFK84Molt3UMEDMZ_bRKLzuWpHH5RQ,5096
63
63
  huaweicloudsdkas/v1/model/create_scaling_tag_info_response.py,sha256=KeseYAGB5-7vomjw35Wg9m_8weswGtDPG3-esGzlZu0,2463
64
64
  huaweicloudsdkas/v1/model/create_scaling_v2_policy_request.py,sha256=H3WfPKpjlNDHVXAx2tjR_GTnv5Fg6OZMf4FBhWNiKYw,3212
@@ -94,6 +94,7 @@ huaweicloudsdkas/v1/model/instance_config.py,sha256=K_L1oMQ7Swj3pOiwftMhC6LxeNEu
94
94
  huaweicloudsdkas/v1/model/instance_config_result.py,sha256=aitAg_rN9lY8ae4jLcS-sgT5zpmg6UJBmGE1Kkx2X1E,19992
95
95
  huaweicloudsdkas/v1/model/instance_hanging_infos.py,sha256=05ElwVuW_oFny8iAX9c22tBubEhzMGp4jT0ZpKhHAcY,9581
96
96
  huaweicloudsdkas/v1/model/integer_range.py,sha256=BlNoqUPlI9IwJW58nT4GItwRCy5m0vbrHQnNY1V37rU,4319
97
+ huaweicloudsdkas/v1/model/interval_alarm_actions_v2.py,sha256=zTnrOPxwLQRfo-8hKewIb4Nit8WoHQ86VExvTUjJ24A,8697
97
98
  huaweicloudsdkas/v1/model/ipv6_bandwidth.py,sha256=610uZv7Qei2fQFnqlsmSkclCRXfmJ4kDj4dVtc3hW7U,2899
98
99
  huaweicloudsdkas/v1/model/job_records.py,sha256=_NgUuyZ2LY8mh2f3FSmiql6pIgdqdiLFI2R0UxYMYRQ,8778
99
100
  huaweicloudsdkas/v1/model/lbaas_listener.py,sha256=Fuioc-XbC1y0CHLnIFIT4-KqYl38-fFl3awJvmBK9mg,5706
@@ -164,18 +165,18 @@ huaweicloudsdkas/v1/model/resume_scaling_policy_request.py,sha256=1ZH-kyG2k5UydN
164
165
  huaweicloudsdkas/v1/model/resume_scaling_policy_response.py,sha256=EHMExVtiZ9z_6lE8QxHesGPw83kYFsGPbP2UG_neh84,2459
165
166
  huaweicloudsdkas/v1/model/scaling_activity_log_list.py,sha256=aX2MclSOU7JRpR93qURxM3akGDvJWKobmP3EsusMVHE,13688
166
167
  huaweicloudsdkas/v1/model/scaling_activity_log_v2.py,sha256=3nkO13stvCwAjSoGwhuvoHbDzBJjlA_PChMqExcTCTk,22574
167
- huaweicloudsdkas/v1/model/scaling_all_policy_detail.py,sha256=NOnNJlxCKax7NKNGNNtsu8uQqeR7fQXRlYRiA4kj-PI,16847
168
+ huaweicloudsdkas/v1/model/scaling_all_policy_detail.py,sha256=TzZmd2g7Sd2gkb-3fK3s8ljKNKCI3IFJirswylMVono,18071
168
169
  huaweicloudsdkas/v1/model/scaling_configuration.py,sha256=I7H1O3yV4IhqLO6huKeRDh5u8ruqEOXRoBvRO7pktqg,8426
169
170
  huaweicloudsdkas/v1/model/scaling_group_instance.py,sha256=vi3e0rrS9OoJVA6jsicAgA3ak1OmA0zAiPtfP_zmp3Y,13842
170
171
  huaweicloudsdkas/v1/model/scaling_groups.py,sha256=sPtg0IWdPnKlACkT9uPNrfhuwknsqOQ3aNHYyit1ADg,36809
171
172
  huaweicloudsdkas/v1/model/scaling_instance.py,sha256=NrKmgwqWuPeQ0pNrSDshvw1xoleSpyvcoVU9g7qujXQ,6775
172
- huaweicloudsdkas/v1/model/scaling_policies_v2.py,sha256=avUVPpN3qw03KCPzOdTJYSw_uVYQJgaetaTlT45C8vE,16572
173
+ huaweicloudsdkas/v1/model/scaling_policies_v2.py,sha256=Zk7d-VwpdhiFwEsUZpwj5mTub_GiNf72wXLqaSpLwEk,17776
173
174
  huaweicloudsdkas/v1/model/scaling_policy_action_v1.py,sha256=moOvd7fh9ZMQaaGKmYA3A3SKdG8g2eELjYAO3leCzH8,7396
174
175
  huaweicloudsdkas/v1/model/scaling_policy_action_v2.py,sha256=uVsHDKm9KiLahdxN2Th61vny2HhtTaM_d6gMJlppims,8713
175
176
  huaweicloudsdkas/v1/model/scaling_policy_execute_log_list.py,sha256=y0KX60zDvUlQpTNUTJ5PsWemd9UBq8GKVdauqzv4w0k,17500
176
177
  huaweicloudsdkas/v1/model/scaling_policy_v2_meta_data.py,sha256=ILDONHGtDJhbqL-N-pXbHMBN7uvthx9u5FeLORR0Q20,5875
177
178
  huaweicloudsdkas/v1/model/scaling_v1_policy_detail.py,sha256=rQ3HZ-wymEg3F2sxnnkG4muRwutJ62e2kySM5fJs5nQ,14749
178
- huaweicloudsdkas/v1/model/scaling_v2_policy_detail.py,sha256=0fztogB2Lbmz2ppyFBcyADQkiz_4CbHcSEn16G3FfQ4,16792
179
+ huaweicloudsdkas/v1/model/scaling_v2_policy_detail.py,sha256=w2n7yCh_dmJQblupKZ3OCFNn3yX1MEEsLz9kg5p4mYg,18012
179
180
  huaweicloudsdkas/v1/model/scheduled_policy.py,sha256=RAlh0JukalQ6ayuPYurkT8sA-fJfVM9Y7dRpiGlar3Y,9660
180
181
  huaweicloudsdkas/v1/model/scheduled_task_detail.py,sha256=16-R35pXJM-gjDR0-kPS7sKro8fGtjI-rPFvY10PC3g,9867
181
182
  huaweicloudsdkas/v1/model/scheduled_task_policy.py,sha256=sCQIsMNDDu0uLqyKPbVcJQbLO3DhKEmGsgo0-XlNrKo,8852
@@ -212,7 +213,7 @@ huaweicloudsdkas/v1/model/update_scaling_group_response.py,sha256=sQli02uh7r8GN2
212
213
  huaweicloudsdkas/v1/model/update_scaling_policy_option.py,sha256=elQik4t04zs3rS9bNK5DAJE-kUpk5m2Ubyaf8-Y-qoc,10362
213
214
  huaweicloudsdkas/v1/model/update_scaling_policy_request.py,sha256=_94hXud01GUxAsSSBSSPctBQOWkiIGmPBHerRKD9FZ8,4151
214
215
  huaweicloudsdkas/v1/model/update_scaling_policy_response.py,sha256=G5EJxQeb3IEp4BHjs28gnT-jZ-NpX60Lviwvu7g7eI8,3472
215
- huaweicloudsdkas/v1/model/update_scaling_v2_policy_option.py,sha256=dnQ4t2Lj-JO_pVjP-MtCbu1uZEakVeMUZalU1N8seOs,14259
216
+ huaweicloudsdkas/v1/model/update_scaling_v2_policy_option.py,sha256=UUFn3TCjBPhBG8EkX2kwFdyg34mkasWzr-Rj2S-eMyQ,15503
216
217
  huaweicloudsdkas/v1/model/update_scaling_v2_policy_request.py,sha256=rZu9L1rMbn27hcsI9-aVMqhPe7h-wlDw33rCo1fvzo8,4183
217
218
  huaweicloudsdkas/v1/model/update_scaling_v2_policy_response.py,sha256=5SjtRRCtE-CDjGwNe0aC9_aPbeytnP6SockvwNG4CkI,3488
218
219
  huaweicloudsdkas/v1/model/update_scheduled_task_option.py,sha256=Tnn6ilNnICG2n0IghRp0SfRsl-LjCQ0G3Od0T6KWi6A,5115
@@ -220,8 +221,8 @@ huaweicloudsdkas/v1/model/version_info.py,sha256=ZoSCNFKzi6pIGXRbAvB6mIpSgOnUZpj
220
221
  huaweicloudsdkas/v1/model/vm_meta_data.py,sha256=GU4Te8qWXF1CclUyLa0Ob5PZ-fT5p4OebODE8sDVZ2c,4673
221
222
  huaweicloudsdkas/v1/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
222
223
  huaweicloudsdkas/v1/region/as_region.py,sha256=DlH0xzZ5Ljr0WyWoJRZ7xgzUGs-XbA5gYDqphGUeL2U,4301
223
- huaweicloudsdkas-3.1.98.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
224
- huaweicloudsdkas-3.1.98.dist-info/METADATA,sha256=eaiQbKf7nn3GxYkxtEjRof2Sz2BYmVk-ZRypV5hrm1A,1131
225
- huaweicloudsdkas-3.1.98.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
226
- huaweicloudsdkas-3.1.98.dist-info/top_level.txt,sha256=dgGlzxcKTIbmcaoJpGjIcPn2cUQUfCO_hGpSYSc0rZQ,17
227
- huaweicloudsdkas-3.1.98.dist-info/RECORD,,
224
+ huaweicloudsdkas-3.1.100.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
225
+ huaweicloudsdkas-3.1.100.dist-info/METADATA,sha256=8KCs5zZvfDG53rmYmOmnXxtYmWWiCLEh0_b5b6lOT4I,1133
226
+ huaweicloudsdkas-3.1.100.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
227
+ huaweicloudsdkas-3.1.100.dist-info/top_level.txt,sha256=dgGlzxcKTIbmcaoJpGjIcPn2cUQUfCO_hGpSYSc0rZQ,17
228
+ huaweicloudsdkas-3.1.100.dist-info/RECORD,,