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,259 @@
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 UpdateInstanceBandwidthAutoScalingPolicyResponse(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
+ 'window_size': 'int',
22
+ 'bandwidth_usage_upper_threshold': 'int',
23
+ 'scale_out_cooldown': 'int',
24
+ 'scale_in_enabled': 'bool',
25
+ 'bandwidth_usage_lower_threshold': 'int',
26
+ 'scale_in_cooldown': 'int'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'window_size': 'window_size',
31
+ 'bandwidth_usage_upper_threshold': 'bandwidth_usage_upper_threshold',
32
+ 'scale_out_cooldown': 'scale_out_cooldown',
33
+ 'scale_in_enabled': 'scale_in_enabled',
34
+ 'bandwidth_usage_lower_threshold': 'bandwidth_usage_lower_threshold',
35
+ 'scale_in_cooldown': 'scale_in_cooldown'
36
+ }
37
+
38
+ 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):
39
+ """UpdateInstanceBandwidthAutoScalingPolicyResponse
40
+
41
+ The model defined in huaweicloud sdk
42
+
43
+ :param window_size: 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。
44
+ :type window_size: int
45
+ :param bandwidth_usage_upper_threshold: 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。
46
+ :type bandwidth_usage_upper_threshold: int
47
+ :param scale_out_cooldown: 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。
48
+ :type scale_out_cooldown: int
49
+ :param scale_in_enabled: 是否启用带宽自动回缩。默认值:false。该参数暂未启用。
50
+ :type scale_in_enabled: bool
51
+ :param bandwidth_usage_lower_threshold: 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。
52
+ :type bandwidth_usage_lower_threshold: int
53
+ :param scale_in_cooldown: 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。
54
+ :type scale_in_cooldown: int
55
+ """
56
+
57
+ super(UpdateInstanceBandwidthAutoScalingPolicyResponse, self).__init__()
58
+
59
+ self._window_size = None
60
+ self._bandwidth_usage_upper_threshold = None
61
+ self._scale_out_cooldown = None
62
+ self._scale_in_enabled = None
63
+ self._bandwidth_usage_lower_threshold = None
64
+ self._scale_in_cooldown = None
65
+ self.discriminator = None
66
+
67
+ self.window_size = window_size
68
+ self.bandwidth_usage_upper_threshold = bandwidth_usage_upper_threshold
69
+ if scale_out_cooldown is not None:
70
+ self.scale_out_cooldown = scale_out_cooldown
71
+ if scale_in_enabled is not None:
72
+ self.scale_in_enabled = scale_in_enabled
73
+ if bandwidth_usage_lower_threshold is not None:
74
+ self.bandwidth_usage_lower_threshold = bandwidth_usage_lower_threshold
75
+ if scale_in_cooldown is not None:
76
+ self.scale_in_cooldown = scale_in_cooldown
77
+
78
+ @property
79
+ def window_size(self):
80
+ """Gets the window_size of this UpdateInstanceBandwidthAutoScalingPolicyResponse.
81
+
82
+ 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。
83
+
84
+ :return: The window_size of this UpdateInstanceBandwidthAutoScalingPolicyResponse.
85
+ :rtype: int
86
+ """
87
+ return self._window_size
88
+
89
+ @window_size.setter
90
+ def window_size(self, window_size):
91
+ """Sets the window_size of this UpdateInstanceBandwidthAutoScalingPolicyResponse.
92
+
93
+ 带宽弹性的观测窗口,单位:分钟。支持的取值:1、5、10、15、30。
94
+
95
+ :param window_size: The window_size of this UpdateInstanceBandwidthAutoScalingPolicyResponse.
96
+ :type window_size: int
97
+ """
98
+ self._window_size = window_size
99
+
100
+ @property
101
+ def bandwidth_usage_upper_threshold(self):
102
+ """Gets the bandwidth_usage_upper_threshold of this UpdateInstanceBandwidthAutoScalingPolicyResponse.
103
+
104
+ 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。
105
+
106
+ :return: The bandwidth_usage_upper_threshold of this UpdateInstanceBandwidthAutoScalingPolicyResponse.
107
+ :rtype: int
108
+ """
109
+ return self._bandwidth_usage_upper_threshold
110
+
111
+ @bandwidth_usage_upper_threshold.setter
112
+ def bandwidth_usage_upper_threshold(self, bandwidth_usage_upper_threshold):
113
+ """Sets the bandwidth_usage_upper_threshold of this UpdateInstanceBandwidthAutoScalingPolicyResponse.
114
+
115
+ 触发带宽自动扩展的带宽平均使用率阈值,单位:百分比。支持的取值:50、60、70、80、90、95。
116
+
117
+ :param bandwidth_usage_upper_threshold: The bandwidth_usage_upper_threshold of this UpdateInstanceBandwidthAutoScalingPolicyResponse.
118
+ :type bandwidth_usage_upper_threshold: int
119
+ """
120
+ self._bandwidth_usage_upper_threshold = bandwidth_usage_upper_threshold
121
+
122
+ @property
123
+ def scale_out_cooldown(self):
124
+ """Gets the scale_out_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyResponse.
125
+
126
+ 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。
127
+
128
+ :return: The scale_out_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyResponse.
129
+ :rtype: int
130
+ """
131
+ return self._scale_out_cooldown
132
+
133
+ @scale_out_cooldown.setter
134
+ def scale_out_cooldown(self, scale_out_cooldown):
135
+ """Sets the scale_out_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyResponse.
136
+
137
+ 带宽扩展操作的静默时间(两次带宽扩展操作之间的最小间隔时间),单位:秒。 默认值:0。取值范围:0~86400。
138
+
139
+ :param scale_out_cooldown: The scale_out_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyResponse.
140
+ :type scale_out_cooldown: int
141
+ """
142
+ self._scale_out_cooldown = scale_out_cooldown
143
+
144
+ @property
145
+ def scale_in_enabled(self):
146
+ """Gets the scale_in_enabled of this UpdateInstanceBandwidthAutoScalingPolicyResponse.
147
+
148
+ 是否启用带宽自动回缩。默认值:false。该参数暂未启用。
149
+
150
+ :return: The scale_in_enabled of this UpdateInstanceBandwidthAutoScalingPolicyResponse.
151
+ :rtype: bool
152
+ """
153
+ return self._scale_in_enabled
154
+
155
+ @scale_in_enabled.setter
156
+ def scale_in_enabled(self, scale_in_enabled):
157
+ """Sets the scale_in_enabled of this UpdateInstanceBandwidthAutoScalingPolicyResponse.
158
+
159
+ 是否启用带宽自动回缩。默认值:false。该参数暂未启用。
160
+
161
+ :param scale_in_enabled: The scale_in_enabled of this UpdateInstanceBandwidthAutoScalingPolicyResponse.
162
+ :type scale_in_enabled: bool
163
+ """
164
+ self._scale_in_enabled = scale_in_enabled
165
+
166
+ @property
167
+ def bandwidth_usage_lower_threshold(self):
168
+ """Gets the bandwidth_usage_lower_threshold of this UpdateInstanceBandwidthAutoScalingPolicyResponse.
169
+
170
+ 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。
171
+
172
+ :return: The bandwidth_usage_lower_threshold of this UpdateInstanceBandwidthAutoScalingPolicyResponse.
173
+ :rtype: int
174
+ """
175
+ return self._bandwidth_usage_lower_threshold
176
+
177
+ @bandwidth_usage_lower_threshold.setter
178
+ def bandwidth_usage_lower_threshold(self, bandwidth_usage_lower_threshold):
179
+ """Sets the bandwidth_usage_lower_threshold of this UpdateInstanceBandwidthAutoScalingPolicyResponse.
180
+
181
+ 触发带宽自动回缩的带宽平均使用率阈值,单位:百分比。支持的取值:10、20、30。该参数暂未启用。
182
+
183
+ :param bandwidth_usage_lower_threshold: The bandwidth_usage_lower_threshold of this UpdateInstanceBandwidthAutoScalingPolicyResponse.
184
+ :type bandwidth_usage_lower_threshold: int
185
+ """
186
+ self._bandwidth_usage_lower_threshold = bandwidth_usage_lower_threshold
187
+
188
+ @property
189
+ def scale_in_cooldown(self):
190
+ """Gets the scale_in_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyResponse.
191
+
192
+ 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。
193
+
194
+ :return: The scale_in_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyResponse.
195
+ :rtype: int
196
+ """
197
+ return self._scale_in_cooldown
198
+
199
+ @scale_in_cooldown.setter
200
+ def scale_in_cooldown(self, scale_in_cooldown):
201
+ """Sets the scale_in_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyResponse.
202
+
203
+ 带宽回缩操作的静默时间(两次带宽回缩操作之间的最小间隔时间),单位:秒。该参数暂未启用。 默认值:300。取值范围:0~86400。
204
+
205
+ :param scale_in_cooldown: The scale_in_cooldown of this UpdateInstanceBandwidthAutoScalingPolicyResponse.
206
+ :type scale_in_cooldown: int
207
+ """
208
+ self._scale_in_cooldown = scale_in_cooldown
209
+
210
+ def to_dict(self):
211
+ """Returns the model properties as a dict"""
212
+ result = {}
213
+
214
+ for attr, _ in six.iteritems(self.openapi_types):
215
+ value = getattr(self, attr)
216
+ if isinstance(value, list):
217
+ result[attr] = list(map(
218
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
219
+ value
220
+ ))
221
+ elif hasattr(value, "to_dict"):
222
+ result[attr] = value.to_dict()
223
+ elif isinstance(value, dict):
224
+ result[attr] = dict(map(
225
+ lambda item: (item[0], item[1].to_dict())
226
+ if hasattr(item[1], "to_dict") else item,
227
+ value.items()
228
+ ))
229
+ else:
230
+ if attr in self.sensitive_list:
231
+ result[attr] = "****"
232
+ else:
233
+ result[attr] = value
234
+
235
+ return result
236
+
237
+ def to_str(self):
238
+ """Returns the string representation of the model"""
239
+ import simplejson as json
240
+ if six.PY2:
241
+ import sys
242
+ reload(sys)
243
+ sys.setdefaultencoding("utf-8")
244
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
245
+
246
+ def __repr__(self):
247
+ """For `print`"""
248
+ return self.to_str()
249
+
250
+ def __eq__(self, other):
251
+ """Returns true if both objects are equal"""
252
+ if not isinstance(other, UpdateInstanceBandwidthAutoScalingPolicyResponse):
253
+ return False
254
+
255
+ return self.__dict__ == other.__dict__
256
+
257
+ def __ne__(self, other):
258
+ """Returns true if both objects are not equal"""
259
+ 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 UpdatePublicIpRequest:
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': 'UpdatePublicIpRequestBody'
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
+ """UpdatePublicIpRequest
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 UpdatePublicIpRequest
37
+ :type body: :class:`huaweicloudsdkdcs.v2.UpdatePublicIpRequestBody`
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 UpdatePublicIpRequest.
53
+
54
+ 实例ID。
55
+
56
+ :return: The instance_id of this UpdatePublicIpRequest.
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 UpdatePublicIpRequest.
64
+
65
+ 实例ID。
66
+
67
+ :param instance_id: The instance_id of this UpdatePublicIpRequest.
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 UpdatePublicIpRequest.
75
+
76
+ :return: The body of this UpdatePublicIpRequest.
77
+ :rtype: :class:`huaweicloudsdkdcs.v2.UpdatePublicIpRequestBody`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ """Sets the body of this UpdatePublicIpRequest.
84
+
85
+ :param body: The body of this UpdatePublicIpRequest.
86
+ :type body: :class:`huaweicloudsdkdcs.v2.UpdatePublicIpRequestBody`
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, UpdatePublicIpRequest):
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,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdatePublicIpRequestBody:
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
+ 'publicip_id': 'str',
21
+ 'enable_ssl': 'bool',
22
+ 'elb_id': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'publicip_id': 'publicip_id',
27
+ 'enable_ssl': 'enable_ssl',
28
+ 'elb_id': 'elb_id'
29
+ }
30
+
31
+ def __init__(self, publicip_id=None, enable_ssl=None, elb_id=None):
32
+ """UpdatePublicIpRequestBody
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param publicip_id: 公网访问绑定的ELB的EIP的ID,当Redis版本为3.0时,该参数为必填参数。
37
+ :type publicip_id: str
38
+ :param enable_ssl: 是否开启SSL,仅在开启SSL时有值,当Redis版本为3.0时,该参数为必填参数。
39
+ :type enable_ssl: bool
40
+ :param elb_id: 公网访问绑定的ELB ID,当Redis版本为4.0,5.0,6.0和企业版时,该参数为必填参数。
41
+ :type elb_id: str
42
+ """
43
+
44
+
45
+
46
+ self._publicip_id = None
47
+ self._enable_ssl = None
48
+ self._elb_id = None
49
+ self.discriminator = None
50
+
51
+ if publicip_id is not None:
52
+ self.publicip_id = publicip_id
53
+ if enable_ssl is not None:
54
+ self.enable_ssl = enable_ssl
55
+ if elb_id is not None:
56
+ self.elb_id = elb_id
57
+
58
+ @property
59
+ def publicip_id(self):
60
+ """Gets the publicip_id of this UpdatePublicIpRequestBody.
61
+
62
+ 公网访问绑定的ELB的EIP的ID,当Redis版本为3.0时,该参数为必填参数。
63
+
64
+ :return: The publicip_id of this UpdatePublicIpRequestBody.
65
+ :rtype: str
66
+ """
67
+ return self._publicip_id
68
+
69
+ @publicip_id.setter
70
+ def publicip_id(self, publicip_id):
71
+ """Sets the publicip_id of this UpdatePublicIpRequestBody.
72
+
73
+ 公网访问绑定的ELB的EIP的ID,当Redis版本为3.0时,该参数为必填参数。
74
+
75
+ :param publicip_id: The publicip_id of this UpdatePublicIpRequestBody.
76
+ :type publicip_id: str
77
+ """
78
+ self._publicip_id = publicip_id
79
+
80
+ @property
81
+ def enable_ssl(self):
82
+ """Gets the enable_ssl of this UpdatePublicIpRequestBody.
83
+
84
+ 是否开启SSL,仅在开启SSL时有值,当Redis版本为3.0时,该参数为必填参数。
85
+
86
+ :return: The enable_ssl of this UpdatePublicIpRequestBody.
87
+ :rtype: bool
88
+ """
89
+ return self._enable_ssl
90
+
91
+ @enable_ssl.setter
92
+ def enable_ssl(self, enable_ssl):
93
+ """Sets the enable_ssl of this UpdatePublicIpRequestBody.
94
+
95
+ 是否开启SSL,仅在开启SSL时有值,当Redis版本为3.0时,该参数为必填参数。
96
+
97
+ :param enable_ssl: The enable_ssl of this UpdatePublicIpRequestBody.
98
+ :type enable_ssl: bool
99
+ """
100
+ self._enable_ssl = enable_ssl
101
+
102
+ @property
103
+ def elb_id(self):
104
+ """Gets the elb_id of this UpdatePublicIpRequestBody.
105
+
106
+ 公网访问绑定的ELB ID,当Redis版本为4.0,5.0,6.0和企业版时,该参数为必填参数。
107
+
108
+ :return: The elb_id of this UpdatePublicIpRequestBody.
109
+ :rtype: str
110
+ """
111
+ return self._elb_id
112
+
113
+ @elb_id.setter
114
+ def elb_id(self, elb_id):
115
+ """Sets the elb_id of this UpdatePublicIpRequestBody.
116
+
117
+ 公网访问绑定的ELB ID,当Redis版本为4.0,5.0,6.0和企业版时,该参数为必填参数。
118
+
119
+ :param elb_id: The elb_id of this UpdatePublicIpRequestBody.
120
+ :type elb_id: str
121
+ """
122
+ self._elb_id = elb_id
123
+
124
+ def to_dict(self):
125
+ """Returns the model properties as a dict"""
126
+ result = {}
127
+
128
+ for attr, _ in six.iteritems(self.openapi_types):
129
+ value = getattr(self, attr)
130
+ if isinstance(value, list):
131
+ result[attr] = list(map(
132
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133
+ value
134
+ ))
135
+ elif hasattr(value, "to_dict"):
136
+ result[attr] = value.to_dict()
137
+ elif isinstance(value, dict):
138
+ result[attr] = dict(map(
139
+ lambda item: (item[0], item[1].to_dict())
140
+ if hasattr(item[1], "to_dict") else item,
141
+ value.items()
142
+ ))
143
+ else:
144
+ if attr in self.sensitive_list:
145
+ result[attr] = "****"
146
+ else:
147
+ result[attr] = value
148
+
149
+ return result
150
+
151
+ def to_str(self):
152
+ """Returns the string representation of the model"""
153
+ import simplejson as json
154
+ if six.PY2:
155
+ import sys
156
+ reload(sys)
157
+ sys.setdefaultencoding("utf-8")
158
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
159
+
160
+ def __repr__(self):
161
+ """For `print`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, UpdatePublicIpRequestBody):
167
+ return False
168
+
169
+ return self.__dict__ == other.__dict__
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ return not self == other
@@ -0,0 +1,116 @@
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 UpdatePublicIpResponse(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
+ 'job_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'job_id': 'job_id'
26
+ }
27
+
28
+ def __init__(self, job_id=None):
29
+ """UpdatePublicIpResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param job_id: 请求提交任务ID。
34
+ :type job_id: str
35
+ """
36
+
37
+ super(UpdatePublicIpResponse, self).__init__()
38
+
39
+ self._job_id = None
40
+ self.discriminator = None
41
+
42
+ if job_id is not None:
43
+ self.job_id = job_id
44
+
45
+ @property
46
+ def job_id(self):
47
+ """Gets the job_id of this UpdatePublicIpResponse.
48
+
49
+ 请求提交任务ID。
50
+
51
+ :return: The job_id of this UpdatePublicIpResponse.
52
+ :rtype: str
53
+ """
54
+ return self._job_id
55
+
56
+ @job_id.setter
57
+ def job_id(self, job_id):
58
+ """Sets the job_id of this UpdatePublicIpResponse.
59
+
60
+ 请求提交任务ID。
61
+
62
+ :param job_id: The job_id of this UpdatePublicIpResponse.
63
+ :type job_id: str
64
+ """
65
+ self._job_id = job_id
66
+
67
+ def to_dict(self):
68
+ """Returns the model properties as a dict"""
69
+ result = {}
70
+
71
+ for attr, _ in six.iteritems(self.openapi_types):
72
+ value = getattr(self, attr)
73
+ if isinstance(value, list):
74
+ result[attr] = list(map(
75
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
76
+ value
77
+ ))
78
+ elif hasattr(value, "to_dict"):
79
+ result[attr] = value.to_dict()
80
+ elif isinstance(value, dict):
81
+ result[attr] = dict(map(
82
+ lambda item: (item[0], item[1].to_dict())
83
+ if hasattr(item[1], "to_dict") else item,
84
+ value.items()
85
+ ))
86
+ else:
87
+ if attr in self.sensitive_list:
88
+ result[attr] = "****"
89
+ else:
90
+ result[attr] = value
91
+
92
+ return result
93
+
94
+ def to_str(self):
95
+ """Returns the string representation of the model"""
96
+ import simplejson as json
97
+ if six.PY2:
98
+ import sys
99
+ reload(sys)
100
+ sys.setdefaultencoding("utf-8")
101
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
102
+
103
+ def __repr__(self):
104
+ """For `print`"""
105
+ return self.to_str()
106
+
107
+ def __eq__(self, other):
108
+ """Returns true if both objects are equal"""
109
+ if not isinstance(other, UpdatePublicIpResponse):
110
+ return False
111
+
112
+ return self.__dict__ == other.__dict__
113
+
114
+ def __ne__(self, other):
115
+ """Returns true if both objects are not equal"""
116
+ return not self == other