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