huaweicloudsdkelb 3.1.148__py2.py3-none-any.whl → 3.1.149__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.
Files changed (72) hide show
  1. huaweicloudsdkelb/v3/__init__.py +34 -0
  2. huaweicloudsdkelb/v3/elb_async_client.py +631 -3
  3. huaweicloudsdkelb/v3/elb_client.py +631 -3
  4. huaweicloudsdkelb/v3/model/__init__.py +34 -0
  5. huaweicloudsdkelb/v3/model/az_affinity.py +201 -0
  6. huaweicloudsdkelb/v3/model/batch_create_load_balancer_option.py +3 -3
  7. huaweicloudsdkelb/v3/model/batch_create_members_option.py +30 -1
  8. huaweicloudsdkelb/v3/model/batch_update_member.py +32 -3
  9. huaweicloudsdkelb/v3/model/batch_update_members_option.py +30 -1
  10. huaweicloudsdkelb/v3/model/certificate_info.py +90 -3
  11. huaweicloudsdkelb/v3/model/create_certificate_option.py +90 -3
  12. huaweicloudsdkelb/v3/model/create_health_monitor_option.py +3 -3
  13. huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py +3 -3
  14. huaweicloudsdkelb/v3/model/create_member_health_check_job_option.py +142 -0
  15. huaweicloudsdkelb/v3/model/create_member_health_check_job_request.py +139 -0
  16. huaweicloudsdkelb/v3/model/create_member_health_check_job_request_body.py +111 -0
  17. huaweicloudsdkelb/v3/model/create_member_health_check_job_response.py +141 -0
  18. huaweicloudsdkelb/v3/model/create_member_option.py +32 -3
  19. huaweicloudsdkelb/v3/model/create_pool_option.py +26 -1
  20. huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py +28 -3
  21. huaweicloudsdkelb/v3/model/create_traffic_mirror_config.py +144 -0
  22. huaweicloudsdkelb/v3/model/delete_recycle_load_balancer_request.py +114 -0
  23. huaweicloudsdkelb/v3/model/delete_recycle_load_balancer_response.py +85 -0
  24. huaweicloudsdkelb/v3/model/health_monitor.py +3 -3
  25. huaweicloudsdkelb/v3/model/list_certificates_request.py +90 -3
  26. huaweicloudsdkelb/v3/model/list_health_monitors_request.py +3 -3
  27. huaweicloudsdkelb/v3/model/list_listeners_request.py +30 -1
  28. huaweicloudsdkelb/v3/model/list_load_balancers_request.py +30 -1
  29. huaweicloudsdkelb/v3/model/list_members_request.py +32 -3
  30. huaweicloudsdkelb/v3/model/list_pools_request.py +32 -3
  31. huaweicloudsdkelb/v3/model/list_recycle_bin_load_balancers_request.py +1043 -0
  32. huaweicloudsdkelb/v3/model/list_recycle_bin_load_balancers_response.py +170 -0
  33. huaweicloudsdkelb/v3/model/master_slave_health_monitor.py +3 -3
  34. huaweicloudsdkelb/v3/model/member.py +29 -1
  35. huaweicloudsdkelb/v3/model/member_check_job.py +115 -0
  36. huaweicloudsdkelb/v3/model/member_check_job_info.py +343 -0
  37. huaweicloudsdkelb/v3/model/member_check_job_result.py +161 -0
  38. huaweicloudsdkelb/v3/model/member_check_job_result_group.py +173 -0
  39. huaweicloudsdkelb/v3/model/member_check_job_result_item.py +289 -0
  40. huaweicloudsdkelb/v3/model/member_info.py +29 -1
  41. huaweicloudsdkelb/v3/model/pool.py +29 -4
  42. huaweicloudsdkelb/v3/model/prepaid_change_charge_mode_option.py +30 -1
  43. huaweicloudsdkelb/v3/model/recycle_bin_policy.py +144 -0
  44. huaweicloudsdkelb/v3/model/recycle_bin_policy_request_body.py +111 -0
  45. huaweicloudsdkelb/v3/model/recycle_bin_request_body.py +115 -0
  46. huaweicloudsdkelb/v3/model/recycle_bin_response_body.py +169 -0
  47. huaweicloudsdkelb/v3/model/recycle_load_balancer.py +1412 -0
  48. huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py +28 -3
  49. huaweicloudsdkelb/v3/model/restore_loadbalancer_request.py +114 -0
  50. huaweicloudsdkelb/v3/model/restore_loadbalancer_response.py +174 -0
  51. huaweicloudsdkelb/v3/model/show_member_health_check_job_request.py +114 -0
  52. huaweicloudsdkelb/v3/model/show_member_health_check_job_response.py +141 -0
  53. huaweicloudsdkelb/v3/model/show_recycle_bin_request.py +84 -0
  54. huaweicloudsdkelb/v3/model/show_recycle_bin_response.py +112 -0
  55. huaweicloudsdkelb/v3/model/traffic_mirror_config.py +144 -0
  56. huaweicloudsdkelb/v3/model/update_az_affinity.py +202 -0
  57. huaweicloudsdkelb/v3/model/update_certificate_option.py +90 -3
  58. huaweicloudsdkelb/v3/model/update_health_monitor_option.py +3 -3
  59. huaweicloudsdkelb/v3/model/update_member_option.py +30 -1
  60. huaweicloudsdkelb/v3/model/update_pool_option.py +28 -3
  61. huaweicloudsdkelb/v3/model/update_recycle_bin_enable_request.py +111 -0
  62. huaweicloudsdkelb/v3/model/update_recycle_bin_enable_request_body.py +111 -0
  63. huaweicloudsdkelb/v3/model/update_recycle_bin_enable_response.py +112 -0
  64. huaweicloudsdkelb/v3/model/update_recycle_bin_policy_request.py +111 -0
  65. huaweicloudsdkelb/v3/model/update_recycle_bin_policy_request_body.py +111 -0
  66. huaweicloudsdkelb/v3/model/update_recycle_bin_policy_response.py +112 -0
  67. huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py +28 -3
  68. {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/METADATA +2 -2
  69. {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/RECORD +72 -38
  70. {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/LICENSE +0 -0
  71. {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/WHEEL +0 -0
  72. {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,289 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class MemberCheckJobResultItem:
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
+ 'name': 'str',
21
+ 'reason': 'str',
22
+ 'severity': 'str',
23
+ 'subject': 'str',
24
+ 'job_id': 'str',
25
+ 'reason_template': 'str',
26
+ 'reason_params': 'list[str]'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'name': 'name',
31
+ 'reason': 'reason',
32
+ 'severity': 'severity',
33
+ 'subject': 'subject',
34
+ 'job_id': 'job_id',
35
+ 'reason_template': 'reason_template',
36
+ 'reason_params': 'reason_params'
37
+ }
38
+
39
+ def __init__(self, name=None, reason=None, severity=None, subject=None, job_id=None, reason_template=None, reason_params=None):
40
+ r"""MemberCheckJobResultItem
41
+
42
+ The model defined in huaweicloud sdk
43
+
44
+ :param name: 参数解释:检查项名称
45
+ :type name: str
46
+ :param reason: 参数解释:异常原因
47
+ :type reason: str
48
+ :param severity: 参数解释:重要级别,分为Major(严重)和Tips(提示)
49
+ :type severity: str
50
+ :param subject: 参数解释:检查类别,config表示配置检查
51
+ :type subject: str
52
+ :param job_id: 参数解释:任务ID。
53
+ :type job_id: str
54
+ :param reason_template: 参数解释:异常原因模板
55
+ :type reason_template: str
56
+ :param reason_params: 参数解释:异常结果变量参数表,用于结合异常原因模板动态生成异常原因
57
+ :type reason_params: list[str]
58
+ """
59
+
60
+
61
+
62
+ self._name = None
63
+ self._reason = None
64
+ self._severity = None
65
+ self._subject = None
66
+ self._job_id = None
67
+ self._reason_template = None
68
+ self._reason_params = None
69
+ self.discriminator = None
70
+
71
+ if name is not None:
72
+ self.name = name
73
+ if reason is not None:
74
+ self.reason = reason
75
+ if severity is not None:
76
+ self.severity = severity
77
+ if subject is not None:
78
+ self.subject = subject
79
+ if job_id is not None:
80
+ self.job_id = job_id
81
+ if reason_template is not None:
82
+ self.reason_template = reason_template
83
+ if reason_params is not None:
84
+ self.reason_params = reason_params
85
+
86
+ @property
87
+ def name(self):
88
+ r"""Gets the name of this MemberCheckJobResultItem.
89
+
90
+ 参数解释:检查项名称
91
+
92
+ :return: The name of this MemberCheckJobResultItem.
93
+ :rtype: str
94
+ """
95
+ return self._name
96
+
97
+ @name.setter
98
+ def name(self, name):
99
+ r"""Sets the name of this MemberCheckJobResultItem.
100
+
101
+ 参数解释:检查项名称
102
+
103
+ :param name: The name of this MemberCheckJobResultItem.
104
+ :type name: str
105
+ """
106
+ self._name = name
107
+
108
+ @property
109
+ def reason(self):
110
+ r"""Gets the reason of this MemberCheckJobResultItem.
111
+
112
+ 参数解释:异常原因
113
+
114
+ :return: The reason of this MemberCheckJobResultItem.
115
+ :rtype: str
116
+ """
117
+ return self._reason
118
+
119
+ @reason.setter
120
+ def reason(self, reason):
121
+ r"""Sets the reason of this MemberCheckJobResultItem.
122
+
123
+ 参数解释:异常原因
124
+
125
+ :param reason: The reason of this MemberCheckJobResultItem.
126
+ :type reason: str
127
+ """
128
+ self._reason = reason
129
+
130
+ @property
131
+ def severity(self):
132
+ r"""Gets the severity of this MemberCheckJobResultItem.
133
+
134
+ 参数解释:重要级别,分为Major(严重)和Tips(提示)
135
+
136
+ :return: The severity of this MemberCheckJobResultItem.
137
+ :rtype: str
138
+ """
139
+ return self._severity
140
+
141
+ @severity.setter
142
+ def severity(self, severity):
143
+ r"""Sets the severity of this MemberCheckJobResultItem.
144
+
145
+ 参数解释:重要级别,分为Major(严重)和Tips(提示)
146
+
147
+ :param severity: The severity of this MemberCheckJobResultItem.
148
+ :type severity: str
149
+ """
150
+ self._severity = severity
151
+
152
+ @property
153
+ def subject(self):
154
+ r"""Gets the subject of this MemberCheckJobResultItem.
155
+
156
+ 参数解释:检查类别,config表示配置检查
157
+
158
+ :return: The subject of this MemberCheckJobResultItem.
159
+ :rtype: str
160
+ """
161
+ return self._subject
162
+
163
+ @subject.setter
164
+ def subject(self, subject):
165
+ r"""Sets the subject of this MemberCheckJobResultItem.
166
+
167
+ 参数解释:检查类别,config表示配置检查
168
+
169
+ :param subject: The subject of this MemberCheckJobResultItem.
170
+ :type subject: str
171
+ """
172
+ self._subject = subject
173
+
174
+ @property
175
+ def job_id(self):
176
+ r"""Gets the job_id of this MemberCheckJobResultItem.
177
+
178
+ 参数解释:任务ID。
179
+
180
+ :return: The job_id of this MemberCheckJobResultItem.
181
+ :rtype: str
182
+ """
183
+ return self._job_id
184
+
185
+ @job_id.setter
186
+ def job_id(self, job_id):
187
+ r"""Sets the job_id of this MemberCheckJobResultItem.
188
+
189
+ 参数解释:任务ID。
190
+
191
+ :param job_id: The job_id of this MemberCheckJobResultItem.
192
+ :type job_id: str
193
+ """
194
+ self._job_id = job_id
195
+
196
+ @property
197
+ def reason_template(self):
198
+ r"""Gets the reason_template of this MemberCheckJobResultItem.
199
+
200
+ 参数解释:异常原因模板
201
+
202
+ :return: The reason_template of this MemberCheckJobResultItem.
203
+ :rtype: str
204
+ """
205
+ return self._reason_template
206
+
207
+ @reason_template.setter
208
+ def reason_template(self, reason_template):
209
+ r"""Sets the reason_template of this MemberCheckJobResultItem.
210
+
211
+ 参数解释:异常原因模板
212
+
213
+ :param reason_template: The reason_template of this MemberCheckJobResultItem.
214
+ :type reason_template: str
215
+ """
216
+ self._reason_template = reason_template
217
+
218
+ @property
219
+ def reason_params(self):
220
+ r"""Gets the reason_params of this MemberCheckJobResultItem.
221
+
222
+ 参数解释:异常结果变量参数表,用于结合异常原因模板动态生成异常原因
223
+
224
+ :return: The reason_params of this MemberCheckJobResultItem.
225
+ :rtype: list[str]
226
+ """
227
+ return self._reason_params
228
+
229
+ @reason_params.setter
230
+ def reason_params(self, reason_params):
231
+ r"""Sets the reason_params of this MemberCheckJobResultItem.
232
+
233
+ 参数解释:异常结果变量参数表,用于结合异常原因模板动态生成异常原因
234
+
235
+ :param reason_params: The reason_params of this MemberCheckJobResultItem.
236
+ :type reason_params: list[str]
237
+ """
238
+ self._reason_params = reason_params
239
+
240
+ def to_dict(self):
241
+ """Returns the model properties as a dict"""
242
+ result = {}
243
+
244
+ for attr, _ in six.iteritems(self.openapi_types):
245
+ value = getattr(self, attr)
246
+ if isinstance(value, list):
247
+ result[attr] = list(map(
248
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
249
+ value
250
+ ))
251
+ elif hasattr(value, "to_dict"):
252
+ result[attr] = value.to_dict()
253
+ elif isinstance(value, dict):
254
+ result[attr] = dict(map(
255
+ lambda item: (item[0], item[1].to_dict())
256
+ if hasattr(item[1], "to_dict") else item,
257
+ value.items()
258
+ ))
259
+ else:
260
+ if attr in self.sensitive_list:
261
+ result[attr] = "****"
262
+ else:
263
+ result[attr] = value
264
+
265
+ return result
266
+
267
+ def to_str(self):
268
+ """Returns the string representation of the model"""
269
+ import simplejson as json
270
+ if six.PY2:
271
+ import sys
272
+ reload(sys)
273
+ sys.setdefaultencoding("utf-8")
274
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
275
+
276
+ def __repr__(self):
277
+ """For `print`"""
278
+ return self.to_str()
279
+
280
+ def __eq__(self, other):
281
+ """Returns true if both objects are equal"""
282
+ if not isinstance(other, MemberCheckJobResultItem):
283
+ return False
284
+
285
+ return self.__dict__ == other.__dict__
286
+
287
+ def __ne__(self, other):
288
+ """Returns true if both objects are not equal"""
289
+ return not self == other
@@ -18,6 +18,7 @@ class MemberInfo:
18
18
 
19
19
  openapi_types = {
20
20
  'id': 'str',
21
+ 'availability_zone': 'str',
21
22
  'name': 'str',
22
23
  'project_id': 'str',
23
24
  'pool_id': 'str',
@@ -42,6 +43,7 @@ class MemberInfo:
42
43
 
43
44
  attribute_map = {
44
45
  'id': 'id',
46
+ 'availability_zone': 'availability_zone',
45
47
  'name': 'name',
46
48
  'project_id': 'project_id',
47
49
  'pool_id': 'pool_id',
@@ -64,13 +66,15 @@ class MemberInfo:
64
66
  'reason': 'reason'
65
67
  }
66
68
 
67
- def __init__(self, id=None, name=None, project_id=None, pool_id=None, admin_state_up=None, subnet_cidr_id=None, protocol_port=None, weight=None, address=None, ip_version=None, device_owner=None, device_id=None, operating_status=None, status=None, loadbalancer_id=None, loadbalancers=None, created_at=None, updated_at=None, member_type=None, instance_id=None, reason=None):
69
+ def __init__(self, id=None, availability_zone=None, name=None, project_id=None, pool_id=None, admin_state_up=None, subnet_cidr_id=None, protocol_port=None, weight=None, address=None, ip_version=None, device_owner=None, device_id=None, operating_status=None, status=None, loadbalancer_id=None, loadbalancers=None, created_at=None, updated_at=None, member_type=None, instance_id=None, reason=None):
68
70
  r"""MemberInfo
69
71
 
70
72
  The model defined in huaweicloud sdk
71
73
 
72
74
  :param id: 后端服务器ID。 > 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
73
75
  :type id: str
76
+ :param availability_zone: 后端服务器所在的可用区。
77
+ :type availability_zone: str
74
78
  :param name: 后端服务器名称。注意:该名称并非ECS名称。
75
79
  :type name: str
76
80
  :param project_id: 后端服务器所在的项目ID。
@@ -116,6 +120,7 @@ class MemberInfo:
116
120
 
117
121
 
118
122
  self._id = None
123
+ self._availability_zone = None
119
124
  self._name = None
120
125
  self._project_id = None
121
126
  self._pool_id = None
@@ -139,6 +144,7 @@ class MemberInfo:
139
144
  self.discriminator = None
140
145
 
141
146
  self.id = id
147
+ self.availability_zone = availability_zone
142
148
  self.name = name
143
149
  self.project_id = project_id
144
150
  if pool_id is not None:
@@ -193,6 +199,28 @@ class MemberInfo:
193
199
  """
194
200
  self._id = id
195
201
 
202
+ @property
203
+ def availability_zone(self):
204
+ r"""Gets the availability_zone of this MemberInfo.
205
+
206
+ 后端服务器所在的可用区。
207
+
208
+ :return: The availability_zone of this MemberInfo.
209
+ :rtype: str
210
+ """
211
+ return self._availability_zone
212
+
213
+ @availability_zone.setter
214
+ def availability_zone(self, availability_zone):
215
+ r"""Sets the availability_zone of this MemberInfo.
216
+
217
+ 后端服务器所在的可用区。
218
+
219
+ :param availability_zone: The availability_zone of this MemberInfo.
220
+ :type availability_zone: str
221
+ """
222
+ self._availability_zone = availability_zone
223
+
196
224
  @property
197
225
  def name(self):
198
226
  r"""Gets the name of this MemberInfo.
@@ -18,6 +18,7 @@ class Pool:
18
18
 
19
19
  openapi_types = {
20
20
  'admin_state_up': 'bool',
21
+ 'az_affinity': 'AzAffinity',
21
22
  'description': 'str',
22
23
  'healthmonitor_id': 'str',
23
24
  'id': 'str',
@@ -48,6 +49,7 @@ class Pool:
48
49
 
49
50
  attribute_map = {
50
51
  'admin_state_up': 'admin_state_up',
52
+ 'az_affinity': 'az_affinity',
51
53
  'description': 'description',
52
54
  'healthmonitor_id': 'healthmonitor_id',
53
55
  'id': 'id',
@@ -76,13 +78,15 @@ class Pool:
76
78
  'quic_cid_hash_strategy': 'quic_cid_hash_strategy'
77
79
  }
78
80
 
79
- def __init__(self, admin_state_up=None, description=None, healthmonitor_id=None, id=None, lb_algorithm=None, listeners=None, loadbalancers=None, members=None, name=None, project_id=None, protocol=None, session_persistence=None, ip_version=None, slow_start=None, member_deletion_protection_enable=None, created_at=None, updated_at=None, vpc_id=None, type=None, protection_status=None, protection_reason=None, any_port_enable=None, connection_drain=None, enterprise_project_id=None, pool_health=None, public_border_group=None, quic_cid_hash_strategy=None):
81
+ def __init__(self, admin_state_up=None, az_affinity=None, description=None, healthmonitor_id=None, id=None, lb_algorithm=None, listeners=None, loadbalancers=None, members=None, name=None, project_id=None, protocol=None, session_persistence=None, ip_version=None, slow_start=None, member_deletion_protection_enable=None, created_at=None, updated_at=None, vpc_id=None, type=None, protection_status=None, protection_reason=None, any_port_enable=None, connection_drain=None, enterprise_project_id=None, pool_health=None, public_border_group=None, quic_cid_hash_strategy=None):
80
82
  r"""Pool
81
83
 
82
84
  The model defined in huaweicloud sdk
83
85
 
84
86
  :param admin_state_up: 参数解释:后端服务器组的管理状态。 [不支持该字段,请勿使用。](tag:dt,hcso_dt)
85
87
  :type admin_state_up: bool
88
+ :param az_affinity:
89
+ :type az_affinity: :class:`huaweicloudsdkelb.v3.AzAffinity`
86
90
  :param description: 参数解释:后端服务器组的描述信息。
87
91
  :type description: str
88
92
  :param healthmonitor_id: 参数解释:后端服务器组关联的健康检查的ID。
@@ -127,7 +131,7 @@ class Pool:
127
131
  :type any_port_enable: bool
128
132
  :param connection_drain:
129
133
  :type connection_drain: :class:`huaweicloudsdkelb.v3.ConnectionDrain`
130
- :param enterprise_project_id: 参数解释:后端服务器组所在的企业项目ID。
134
+ :param enterprise_project_id: 参数解释:IP地址组所在的企业项目ID。
131
135
  :type enterprise_project_id: str
132
136
  :param pool_health:
133
137
  :type pool_health: :class:`huaweicloudsdkelb.v3.PoolHealth`
@@ -140,6 +144,7 @@ class Pool:
140
144
 
141
145
 
142
146
  self._admin_state_up = None
147
+ self._az_affinity = None
143
148
  self._description = None
144
149
  self._healthmonitor_id = None
145
150
  self._id = None
@@ -169,6 +174,8 @@ class Pool:
169
174
  self.discriminator = None
170
175
 
171
176
  self.admin_state_up = admin_state_up
177
+ if az_affinity is not None:
178
+ self.az_affinity = az_affinity
172
179
  self.description = description
173
180
  self.healthmonitor_id = healthmonitor_id
174
181
  self.id = id
@@ -228,6 +235,24 @@ class Pool:
228
235
  """
229
236
  self._admin_state_up = admin_state_up
230
237
 
238
+ @property
239
+ def az_affinity(self):
240
+ r"""Gets the az_affinity of this Pool.
241
+
242
+ :return: The az_affinity of this Pool.
243
+ :rtype: :class:`huaweicloudsdkelb.v3.AzAffinity`
244
+ """
245
+ return self._az_affinity
246
+
247
+ @az_affinity.setter
248
+ def az_affinity(self, az_affinity):
249
+ r"""Sets the az_affinity of this Pool.
250
+
251
+ :param az_affinity: The az_affinity of this Pool.
252
+ :type az_affinity: :class:`huaweicloudsdkelb.v3.AzAffinity`
253
+ """
254
+ self._az_affinity = az_affinity
255
+
231
256
  @property
232
257
  def description(self):
233
258
  r"""Gets the description of this Pool.
@@ -704,7 +729,7 @@ class Pool:
704
729
  def enterprise_project_id(self):
705
730
  r"""Gets the enterprise_project_id of this Pool.
706
731
 
707
- 参数解释:后端服务器组所在的企业项目ID。
732
+ 参数解释:IP地址组所在的企业项目ID。
708
733
 
709
734
  :return: The enterprise_project_id of this Pool.
710
735
  :rtype: str
@@ -715,7 +740,7 @@ class Pool:
715
740
  def enterprise_project_id(self, enterprise_project_id):
716
741
  r"""Sets the enterprise_project_id of this Pool.
717
742
 
718
- 参数解释:后端服务器组所在的企业项目ID。
743
+ 参数解释:IP地址组所在的企业项目ID。
719
744
 
720
745
  :param enterprise_project_id: The enterprise_project_id of this Pool.
721
746
  :type enterprise_project_id: str
@@ -18,6 +18,7 @@ class PrepaidChangeChargeModeOption:
18
18
 
19
19
  openapi_types = {
20
20
  'include_publicip': 'bool',
21
+ 'publicip_ids': 'list[str]',
21
22
  'period_type': 'str',
22
23
  'period_num': 'int',
23
24
  'auto_renew': 'bool',
@@ -26,19 +27,22 @@ class PrepaidChangeChargeModeOption:
26
27
 
27
28
  attribute_map = {
28
29
  'include_publicip': 'include_publicip',
30
+ 'publicip_ids': 'publicip_ids',
29
31
  'period_type': 'period_type',
30
32
  'period_num': 'period_num',
31
33
  'auto_renew': 'auto_renew',
32
34
  'auto_pay': 'auto_pay'
33
35
  }
34
36
 
35
- def __init__(self, include_publicip=None, period_type=None, period_num=None, auto_renew=None, auto_pay=None):
37
+ def __init__(self, include_publicip=None, publicip_ids=None, period_type=None, period_num=None, auto_renew=None, auto_pay=None):
36
38
  r"""PrepaidChangeChargeModeOption
37
39
 
38
40
  The model defined in huaweicloud sdk
39
41
 
40
42
  :param include_publicip: 是否连同独享按带宽计费的弹性公网IP一起转包周期。 1. 弹性公网IP转包周期之后可以单独解绑,绑定到其他实例,删除 2. 只有独享且按带宽计费的弹性公网IP才被允许转包周期 默认值:false
41
43
  :type include_publicip: bool
44
+ :param publicip_ids: 需要一起按需转包的弹性公网IP的ID。 若include_publicip为false,不能指定该字段。 若include_publicip为true,该字段为未指定时,表示所有绑定的v4 eip都需要一起转包周期。 若include_publicip为true,该字段列表非空,表示只将指定的v4 eip转包。 若include_publicip为true,该字段列表为空,表示不指定任一eip转包,与include_publicip为false等效。
45
+ :type publicip_ids: list[str]
42
46
  :param period_type: 订购周期类型,当前支持包月和包年: month:月(默认); year:年;
43
47
  :type period_type: str
44
48
  :param period_num: 订购周期数(默认1),取值会随运营策略变化。 period_type为month时,为[1,9], period_type为year时,为[1,3]
@@ -52,6 +56,7 @@ class PrepaidChangeChargeModeOption:
52
56
 
53
57
 
54
58
  self._include_publicip = None
59
+ self._publicip_ids = None
55
60
  self._period_type = None
56
61
  self._period_num = None
57
62
  self._auto_renew = None
@@ -60,6 +65,8 @@ class PrepaidChangeChargeModeOption:
60
65
 
61
66
  if include_publicip is not None:
62
67
  self.include_publicip = include_publicip
68
+ if publicip_ids is not None:
69
+ self.publicip_ids = publicip_ids
63
70
  self.period_type = period_type
64
71
  if period_num is not None:
65
72
  self.period_num = period_num
@@ -90,6 +97,28 @@ class PrepaidChangeChargeModeOption:
90
97
  """
91
98
  self._include_publicip = include_publicip
92
99
 
100
+ @property
101
+ def publicip_ids(self):
102
+ r"""Gets the publicip_ids of this PrepaidChangeChargeModeOption.
103
+
104
+ 需要一起按需转包的弹性公网IP的ID。 若include_publicip为false,不能指定该字段。 若include_publicip为true,该字段为未指定时,表示所有绑定的v4 eip都需要一起转包周期。 若include_publicip为true,该字段列表非空,表示只将指定的v4 eip转包。 若include_publicip为true,该字段列表为空,表示不指定任一eip转包,与include_publicip为false等效。
105
+
106
+ :return: The publicip_ids of this PrepaidChangeChargeModeOption.
107
+ :rtype: list[str]
108
+ """
109
+ return self._publicip_ids
110
+
111
+ @publicip_ids.setter
112
+ def publicip_ids(self, publicip_ids):
113
+ r"""Sets the publicip_ids of this PrepaidChangeChargeModeOption.
114
+
115
+ 需要一起按需转包的弹性公网IP的ID。 若include_publicip为false,不能指定该字段。 若include_publicip为true,该字段为未指定时,表示所有绑定的v4 eip都需要一起转包周期。 若include_publicip为true,该字段列表非空,表示只将指定的v4 eip转包。 若include_publicip为true,该字段列表为空,表示不指定任一eip转包,与include_publicip为false等效。
116
+
117
+ :param publicip_ids: The publicip_ids of this PrepaidChangeChargeModeOption.
118
+ :type publicip_ids: list[str]
119
+ """
120
+ self._publicip_ids = publicip_ids
121
+
93
122
  @property
94
123
  def period_type(self):
95
124
  r"""Gets the period_type of this PrepaidChangeChargeModeOption.
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RecycleBinPolicy:
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
+ 'recycle_threshold_hour': 'int',
21
+ 'retention_hour': 'int'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'recycle_threshold_hour': 'recycle_threshold_hour',
26
+ 'retention_hour': 'retention_hour'
27
+ }
28
+
29
+ def __init__(self, recycle_threshold_hour=None, retention_hour=None):
30
+ r"""RecycleBinPolicy
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param recycle_threshold_hour: 允许进入回收站的最小创建时间,不足此时长则删除时不满足进入回收站的条件。
35
+ :type recycle_threshold_hour: int
36
+ :param retention_hour: 进入回收站的最大保留时长。
37
+ :type retention_hour: int
38
+ """
39
+
40
+
41
+
42
+ self._recycle_threshold_hour = None
43
+ self._retention_hour = None
44
+ self.discriminator = None
45
+
46
+ if recycle_threshold_hour is not None:
47
+ self.recycle_threshold_hour = recycle_threshold_hour
48
+ if retention_hour is not None:
49
+ self.retention_hour = retention_hour
50
+
51
+ @property
52
+ def recycle_threshold_hour(self):
53
+ r"""Gets the recycle_threshold_hour of this RecycleBinPolicy.
54
+
55
+ 允许进入回收站的最小创建时间,不足此时长则删除时不满足进入回收站的条件。
56
+
57
+ :return: The recycle_threshold_hour of this RecycleBinPolicy.
58
+ :rtype: int
59
+ """
60
+ return self._recycle_threshold_hour
61
+
62
+ @recycle_threshold_hour.setter
63
+ def recycle_threshold_hour(self, recycle_threshold_hour):
64
+ r"""Sets the recycle_threshold_hour of this RecycleBinPolicy.
65
+
66
+ 允许进入回收站的最小创建时间,不足此时长则删除时不满足进入回收站的条件。
67
+
68
+ :param recycle_threshold_hour: The recycle_threshold_hour of this RecycleBinPolicy.
69
+ :type recycle_threshold_hour: int
70
+ """
71
+ self._recycle_threshold_hour = recycle_threshold_hour
72
+
73
+ @property
74
+ def retention_hour(self):
75
+ r"""Gets the retention_hour of this RecycleBinPolicy.
76
+
77
+ 进入回收站的最大保留时长。
78
+
79
+ :return: The retention_hour of this RecycleBinPolicy.
80
+ :rtype: int
81
+ """
82
+ return self._retention_hour
83
+
84
+ @retention_hour.setter
85
+ def retention_hour(self, retention_hour):
86
+ r"""Sets the retention_hour of this RecycleBinPolicy.
87
+
88
+ 进入回收站的最大保留时长。
89
+
90
+ :param retention_hour: The retention_hour of this RecycleBinPolicy.
91
+ :type retention_hour: int
92
+ """
93
+ self._retention_hour = retention_hour
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, RecycleBinPolicy):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other