huaweicloudsdkdcs 3.1.86__py2.py3-none-any.whl → 3.1.132__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 huaweicloudsdkdcs might be problematic. Click here for more details.

Files changed (56) hide show
  1. huaweicloudsdkdcs/v2/__init__.py +35 -0
  2. huaweicloudsdkdcs/v2/dcs_async_client.py +753 -28
  3. huaweicloudsdkdcs/v2/dcs_client.py +753 -28
  4. huaweicloudsdkdcs/v2/model/__init__.py +35 -0
  5. huaweicloudsdkdcs/v2/model/backup_files_body.py +2 -1
  6. huaweicloudsdkdcs/v2/model/bandwidth_auto_scaling_policy.py +257 -0
  7. huaweicloudsdkdcs/v2/model/bandwidth_info.py +61 -3
  8. huaweicloudsdkdcs/v2/model/batch_restart_migration_task_result.py +202 -0
  9. huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_body.py +114 -0
  10. huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_request.py +111 -0
  11. huaweicloudsdkdcs/v2/model/batch_restart_online_migration_tasks_response.py +116 -0
  12. huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_body.py +144 -0
  13. huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_request.py +139 -0
  14. huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_resp.py +84 -0
  15. huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_response.py +112 -0
  16. huaweicloudsdkdcs/v2/model/client_info.py +4 -4
  17. huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_request.py +114 -0
  18. huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_resp.py +84 -0
  19. huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_response.py +112 -0
  20. huaweicloudsdkdcs/v2/model/delete_public_ip_request.py +114 -0
  21. huaweicloudsdkdcs/v2/model/delete_public_ip_response.py +116 -0
  22. huaweicloudsdkdcs/v2/model/details_body.py +549 -27
  23. huaweicloudsdkdcs/v2/model/group_bandwidth_info.py +231 -0
  24. huaweicloudsdkdcs/v2/model/migration_task_list.py +366 -18
  25. huaweicloudsdkdcs/v2/model/resize_instance_body.py +3 -3
  26. huaweicloudsdkdcs/v2/model/show_bandwidths_request.py +114 -0
  27. huaweicloudsdkdcs/v2/model/show_bandwidths_response.py +203 -0
  28. huaweicloudsdkdcs/v2/model/show_instance_bandwidth_auto_scaling_policy_request.py +114 -0
  29. huaweicloudsdkdcs/v2/model/show_instance_bandwidth_auto_scaling_policy_response.py +258 -0
  30. huaweicloudsdkdcs/v2/model/show_instance_version_request.py +114 -0
  31. huaweicloudsdkdcs/v2/model/show_instance_version_response.py +261 -0
  32. huaweicloudsdkdcs/v2/model/show_migration_task_response.py +264 -3
  33. huaweicloudsdkdcs/v2/model/source_instance_body.py +206 -3
  34. huaweicloudsdkdcs/v2/model/stop_migration_task_response.py +264 -3
  35. huaweicloudsdkdcs/v2/model/stop_migration_task_result.py +61 -3
  36. huaweicloudsdkdcs/v2/model/target_instance_body.py +177 -3
  37. huaweicloudsdkdcs/v2/model/update_bandwidth_info_request.py +115 -0
  38. huaweicloudsdkdcs/v2/model/update_bandwidth_request.py +139 -0
  39. huaweicloudsdkdcs/v2/model/update_bandwidth_resp.py +84 -0
  40. huaweicloudsdkdcs/v2/model/update_bandwidth_response.py +112 -0
  41. huaweicloudsdkdcs/v2/model/update_group_bandwidth_info_request.py +142 -0
  42. huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_request.py +139 -0
  43. huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_request_body.py +257 -0
  44. huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_response.py +258 -0
  45. huaweicloudsdkdcs/v2/model/update_public_ip_request.py +139 -0
  46. huaweicloudsdkdcs/v2/model/update_public_ip_request_body.py +173 -0
  47. huaweicloudsdkdcs/v2/model/update_public_ip_response.py +116 -0
  48. huaweicloudsdkdcs/v2/model/upgrade_instance_minor_version_request.py +139 -0
  49. huaweicloudsdkdcs/v2/model/upgrade_instance_minor_version_response.py +116 -0
  50. huaweicloudsdkdcs/v2/model/upgrade_minor_version_request_body.py +144 -0
  51. huaweicloudsdkdcs/v2/region/dcs_region.py +6 -0
  52. {huaweicloudsdkdcs-3.1.86.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/METADATA +2 -2
  53. {huaweicloudsdkdcs-3.1.86.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/RECORD +56 -21
  54. {huaweicloudsdkdcs-3.1.86.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/WHEEL +1 -1
  55. {huaweicloudsdkdcs-3.1.86.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/LICENSE +0 -0
  56. {huaweicloudsdkdcs-3.1.86.dist-info → huaweicloudsdkdcs-3.1.132.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateGroupBandwidthInfoRequest:
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
+ 'group_id': 'str',
21
+ 'target_bandwidth': 'int'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'group_id': 'group_id',
26
+ 'target_bandwidth': 'target_bandwidth'
27
+ }
28
+
29
+ def __init__(self, group_id=None, target_bandwidth=None):
30
+ """UpdateGroupBandwidthInfoRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param group_id: 分片ID。
35
+ :type group_id: str
36
+ :param target_bandwidth: 目标带宽(Mbit/s)。
37
+ :type target_bandwidth: int
38
+ """
39
+
40
+
41
+
42
+ self._group_id = None
43
+ self._target_bandwidth = None
44
+ self.discriminator = None
45
+
46
+ self.group_id = group_id
47
+ self.target_bandwidth = target_bandwidth
48
+
49
+ @property
50
+ def group_id(self):
51
+ """Gets the group_id of this UpdateGroupBandwidthInfoRequest.
52
+
53
+ 分片ID。
54
+
55
+ :return: The group_id of this UpdateGroupBandwidthInfoRequest.
56
+ :rtype: str
57
+ """
58
+ return self._group_id
59
+
60
+ @group_id.setter
61
+ def group_id(self, group_id):
62
+ """Sets the group_id of this UpdateGroupBandwidthInfoRequest.
63
+
64
+ 分片ID。
65
+
66
+ :param group_id: The group_id of this UpdateGroupBandwidthInfoRequest.
67
+ :type group_id: str
68
+ """
69
+ self._group_id = group_id
70
+
71
+ @property
72
+ def target_bandwidth(self):
73
+ """Gets the target_bandwidth of this UpdateGroupBandwidthInfoRequest.
74
+
75
+ 目标带宽(Mbit/s)。
76
+
77
+ :return: The target_bandwidth of this UpdateGroupBandwidthInfoRequest.
78
+ :rtype: int
79
+ """
80
+ return self._target_bandwidth
81
+
82
+ @target_bandwidth.setter
83
+ def target_bandwidth(self, target_bandwidth):
84
+ """Sets the target_bandwidth of this UpdateGroupBandwidthInfoRequest.
85
+
86
+ 目标带宽(Mbit/s)。
87
+
88
+ :param target_bandwidth: The target_bandwidth of this UpdateGroupBandwidthInfoRequest.
89
+ :type target_bandwidth: int
90
+ """
91
+ self._target_bandwidth = target_bandwidth
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, UpdateGroupBandwidthInfoRequest):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ return not self == other
@@ -0,0 +1,139 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateInstanceBandwidthAutoScalingPolicyRequest:
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
+ 'instance_id': 'str',
21
+ 'body': 'UpdateInstanceBandwidthAutoScalingPolicyRequestBody'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'instance_id': 'instance_id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, instance_id=None, body=None):
30
+ """UpdateInstanceBandwidthAutoScalingPolicyRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param instance_id: 实例ID。
35
+ :type instance_id: str
36
+ :param body: Body of the UpdateInstanceBandwidthAutoScalingPolicyRequest
37
+ :type body: :class:`huaweicloudsdkdcs.v2.UpdateInstanceBandwidthAutoScalingPolicyRequestBody`
38
+ """
39
+
40
+
41
+
42
+ self._instance_id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.instance_id = instance_id
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def instance_id(self):
52
+ """Gets the instance_id of this UpdateInstanceBandwidthAutoScalingPolicyRequest.
53
+
54
+ 实例ID。
55
+
56
+ :return: The instance_id of this UpdateInstanceBandwidthAutoScalingPolicyRequest.
57
+ :rtype: str
58
+ """
59
+ return self._instance_id
60
+
61
+ @instance_id.setter
62
+ def instance_id(self, instance_id):
63
+ """Sets the instance_id of this UpdateInstanceBandwidthAutoScalingPolicyRequest.
64
+
65
+ 实例ID。
66
+
67
+ :param instance_id: The instance_id of this UpdateInstanceBandwidthAutoScalingPolicyRequest.
68
+ :type instance_id: str
69
+ """
70
+ self._instance_id = instance_id
71
+
72
+ @property
73
+ def body(self):
74
+ """Gets the body of this UpdateInstanceBandwidthAutoScalingPolicyRequest.
75
+
76
+ :return: The body of this UpdateInstanceBandwidthAutoScalingPolicyRequest.
77
+ :rtype: :class:`huaweicloudsdkdcs.v2.UpdateInstanceBandwidthAutoScalingPolicyRequestBody`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ """Sets the body of this UpdateInstanceBandwidthAutoScalingPolicyRequest.
84
+
85
+ :param body: The body of this UpdateInstanceBandwidthAutoScalingPolicyRequest.
86
+ :type body: :class:`huaweicloudsdkdcs.v2.UpdateInstanceBandwidthAutoScalingPolicyRequestBody`
87
+ """
88
+ self._body = body
89
+
90
+ def to_dict(self):
91
+ """Returns the model properties as a dict"""
92
+ result = {}
93
+
94
+ for attr, _ in six.iteritems(self.openapi_types):
95
+ value = getattr(self, attr)
96
+ if isinstance(value, list):
97
+ result[attr] = list(map(
98
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
99
+ value
100
+ ))
101
+ elif hasattr(value, "to_dict"):
102
+ result[attr] = value.to_dict()
103
+ elif isinstance(value, dict):
104
+ result[attr] = dict(map(
105
+ lambda item: (item[0], item[1].to_dict())
106
+ if hasattr(item[1], "to_dict") else item,
107
+ value.items()
108
+ ))
109
+ else:
110
+ if attr in self.sensitive_list:
111
+ result[attr] = "****"
112
+ else:
113
+ result[attr] = value
114
+
115
+ return result
116
+
117
+ def to_str(self):
118
+ """Returns the string representation of the model"""
119
+ import simplejson as json
120
+ if six.PY2:
121
+ import sys
122
+ reload(sys)
123
+ sys.setdefaultencoding("utf-8")
124
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
125
+
126
+ def __repr__(self):
127
+ """For `print`"""
128
+ return self.to_str()
129
+
130
+ def __eq__(self, other):
131
+ """Returns true if both objects are equal"""
132
+ if not isinstance(other, UpdateInstanceBandwidthAutoScalingPolicyRequest):
133
+ return False
134
+
135
+ return self.__dict__ == other.__dict__
136
+
137
+ def __ne__(self, other):
138
+ """Returns true if both objects are not equal"""
139
+ return not self == other
@@ -0,0 +1,257 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateInstanceBandwidthAutoScalingPolicyRequestBody:
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
+ 'window_size': 'int',
21
+ 'bandwidth_usage_upper_threshold': 'int',
22
+ 'scale_out_cooldown': 'int',
23
+ 'scale_in_enabled': 'bool',
24
+ 'bandwidth_usage_lower_threshold': 'int',
25
+ 'scale_in_cooldown': 'int'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'window_size': 'window_size',
30
+ 'bandwidth_usage_upper_threshold': 'bandwidth_usage_upper_threshold',
31
+ 'scale_out_cooldown': 'scale_out_cooldown',
32
+ 'scale_in_enabled': 'scale_in_enabled',
33
+ 'bandwidth_usage_lower_threshold': 'bandwidth_usage_lower_threshold',
34
+ 'scale_in_cooldown': 'scale_in_cooldown'
35
+ }
36
+
37
+ def __init__(self, window_size=None, bandwidth_usage_upper_threshold=None, scale_out_cooldown=None, scale_in_enabled=None, bandwidth_usage_lower_threshold=None, scale_in_cooldown=None):
38
+ """UpdateInstanceBandwidthAutoScalingPolicyRequestBody
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param window_size: 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。
43
+ :type window_size: int
44
+ :param bandwidth_usage_upper_threshold: 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。
45
+ :type bandwidth_usage_upper_threshold: int
46
+ :param scale_out_cooldown: 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。
47
+ :type scale_out_cooldown: int
48
+ :param scale_in_enabled: 是否启用带宽自动回缩。默认值:false。该参数暂未启用。
49
+ :type scale_in_enabled: bool
50
+ :param bandwidth_usage_lower_threshold: 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。
51
+ :type bandwidth_usage_lower_threshold: int
52
+ :param scale_in_cooldown: 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。
53
+ :type scale_in_cooldown: int
54
+ """
55
+
56
+
57
+
58
+ self._window_size = None
59
+ self._bandwidth_usage_upper_threshold = None
60
+ self._scale_out_cooldown = None
61
+ self._scale_in_enabled = None
62
+ self._bandwidth_usage_lower_threshold = None
63
+ self._scale_in_cooldown = None
64
+ self.discriminator = None
65
+
66
+ self.window_size = window_size
67
+ self.bandwidth_usage_upper_threshold = bandwidth_usage_upper_threshold
68
+ self.scale_out_cooldown = scale_out_cooldown
69
+ if scale_in_enabled is not None:
70
+ self.scale_in_enabled = scale_in_enabled
71
+ if bandwidth_usage_lower_threshold is not None:
72
+ self.bandwidth_usage_lower_threshold = bandwidth_usage_lower_threshold
73
+ if scale_in_cooldown is not None:
74
+ self.scale_in_cooldown = scale_in_cooldown
75
+
76
+ @property
77
+ def window_size(self):
78
+ """Gets the window_size of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody.
79
+
80
+ 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。
81
+
82
+ :return: The window_size of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody.
83
+ :rtype: int
84
+ """
85
+ return self._window_size
86
+
87
+ @window_size.setter
88
+ def window_size(self, window_size):
89
+ """Sets the window_size of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody.
90
+
91
+ 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。
92
+
93
+ :param window_size: The window_size of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody.
94
+ :type window_size: int
95
+ """
96
+ self._window_size = window_size
97
+
98
+ @property
99
+ def bandwidth_usage_upper_threshold(self):
100
+ """Gets the bandwidth_usage_upper_threshold of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody.
101
+
102
+ 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。
103
+
104
+ :return: The bandwidth_usage_upper_threshold of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody.
105
+ :rtype: int
106
+ """
107
+ return self._bandwidth_usage_upper_threshold
108
+
109
+ @bandwidth_usage_upper_threshold.setter
110
+ def bandwidth_usage_upper_threshold(self, bandwidth_usage_upper_threshold):
111
+ """Sets the bandwidth_usage_upper_threshold of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody.
112
+
113
+ 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。
114
+
115
+ :param bandwidth_usage_upper_threshold: The bandwidth_usage_upper_threshold of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody.
116
+ :type bandwidth_usage_upper_threshold: int
117
+ """
118
+ self._bandwidth_usage_upper_threshold = bandwidth_usage_upper_threshold
119
+
120
+ @property
121
+ def scale_out_cooldown(self):
122
+ """Gets the scale_out_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody.
123
+
124
+ 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。
125
+
126
+ :return: The scale_out_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody.
127
+ :rtype: int
128
+ """
129
+ return self._scale_out_cooldown
130
+
131
+ @scale_out_cooldown.setter
132
+ def scale_out_cooldown(self, scale_out_cooldown):
133
+ """Sets the scale_out_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody.
134
+
135
+ 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。
136
+
137
+ :param scale_out_cooldown: The scale_out_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody.
138
+ :type scale_out_cooldown: int
139
+ """
140
+ self._scale_out_cooldown = scale_out_cooldown
141
+
142
+ @property
143
+ def scale_in_enabled(self):
144
+ """Gets the scale_in_enabled of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody.
145
+
146
+ 是否启用带宽自动回缩。默认值:false。该参数暂未启用。
147
+
148
+ :return: The scale_in_enabled of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody.
149
+ :rtype: bool
150
+ """
151
+ return self._scale_in_enabled
152
+
153
+ @scale_in_enabled.setter
154
+ def scale_in_enabled(self, scale_in_enabled):
155
+ """Sets the scale_in_enabled of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody.
156
+
157
+ 是否启用带宽自动回缩。默认值:false。该参数暂未启用。
158
+
159
+ :param scale_in_enabled: The scale_in_enabled of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody.
160
+ :type scale_in_enabled: bool
161
+ """
162
+ self._scale_in_enabled = scale_in_enabled
163
+
164
+ @property
165
+ def bandwidth_usage_lower_threshold(self):
166
+ """Gets the bandwidth_usage_lower_threshold of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody.
167
+
168
+ 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。
169
+
170
+ :return: The bandwidth_usage_lower_threshold of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody.
171
+ :rtype: int
172
+ """
173
+ return self._bandwidth_usage_lower_threshold
174
+
175
+ @bandwidth_usage_lower_threshold.setter
176
+ def bandwidth_usage_lower_threshold(self, bandwidth_usage_lower_threshold):
177
+ """Sets the bandwidth_usage_lower_threshold of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody.
178
+
179
+ 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。
180
+
181
+ :param bandwidth_usage_lower_threshold: The bandwidth_usage_lower_threshold of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody.
182
+ :type bandwidth_usage_lower_threshold: int
183
+ """
184
+ self._bandwidth_usage_lower_threshold = bandwidth_usage_lower_threshold
185
+
186
+ @property
187
+ def scale_in_cooldown(self):
188
+ """Gets the scale_in_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody.
189
+
190
+ 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。
191
+
192
+ :return: The scale_in_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody.
193
+ :rtype: int
194
+ """
195
+ return self._scale_in_cooldown
196
+
197
+ @scale_in_cooldown.setter
198
+ def scale_in_cooldown(self, scale_in_cooldown):
199
+ """Sets the scale_in_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody.
200
+
201
+ 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。
202
+
203
+ :param scale_in_cooldown: The scale_in_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyRequestBody.
204
+ :type scale_in_cooldown: int
205
+ """
206
+ self._scale_in_cooldown = scale_in_cooldown
207
+
208
+ def to_dict(self):
209
+ """Returns the model properties as a dict"""
210
+ result = {}
211
+
212
+ for attr, _ in six.iteritems(self.openapi_types):
213
+ value = getattr(self, attr)
214
+ if isinstance(value, list):
215
+ result[attr] = list(map(
216
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
217
+ value
218
+ ))
219
+ elif hasattr(value, "to_dict"):
220
+ result[attr] = value.to_dict()
221
+ elif isinstance(value, dict):
222
+ result[attr] = dict(map(
223
+ lambda item: (item[0], item[1].to_dict())
224
+ if hasattr(item[1], "to_dict") else item,
225
+ value.items()
226
+ ))
227
+ else:
228
+ if attr in self.sensitive_list:
229
+ result[attr] = "****"
230
+ else:
231
+ result[attr] = value
232
+
233
+ return result
234
+
235
+ def to_str(self):
236
+ """Returns the string representation of the model"""
237
+ import simplejson as json
238
+ if six.PY2:
239
+ import sys
240
+ reload(sys)
241
+ sys.setdefaultencoding("utf-8")
242
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
243
+
244
+ def __repr__(self):
245
+ """For `print`"""
246
+ return self.to_str()
247
+
248
+ def __eq__(self, other):
249
+ """Returns true if both objects are equal"""
250
+ if not isinstance(other, UpdateInstanceBandwidthAutoScalingPolicyRequestBody):
251
+ return False
252
+
253
+ return self.__dict__ == other.__dict__
254
+
255
+ def __ne__(self, other):
256
+ """Returns true if both objects are not equal"""
257
+ return not self == other