huaweicloudsdkelb 3.1.132__py2.py3-none-any.whl → 3.1.133__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 (112) hide show
  1. huaweicloudsdkelb/v3/__init__.py +39 -0
  2. huaweicloudsdkelb/v3/elb_async_client.py +742 -22
  3. huaweicloudsdkelb/v3/elb_client.py +742 -22
  4. huaweicloudsdkelb/v3/model/__init__.py +39 -0
  5. huaweicloudsdkelb/v3/model/availability_zone.py +6 -6
  6. huaweicloudsdkelb/v3/model/base_job.py +347 -0
  7. huaweicloudsdkelb/v3/model/batch_add_available_zones_response.py +6 -6
  8. huaweicloudsdkelb/v3/model/batch_create_load_balancer_option.py +1022 -0
  9. huaweicloudsdkelb/v3/model/batch_create_load_balancers_request.py +111 -0
  10. huaweicloudsdkelb/v3/model/batch_create_load_balancers_request_body.py +110 -0
  11. huaweicloudsdkelb/v3/model/batch_create_load_balancers_response.py +203 -0
  12. huaweicloudsdkelb/v3/model/batch_member.py +38 -13
  13. huaweicloudsdkelb/v3/model/batch_update_member.py +32 -7
  14. huaweicloudsdkelb/v3/model/batch_update_priority_request_body.py +3 -3
  15. huaweicloudsdkelb/v3/model/certificate_info.py +39 -10
  16. huaweicloudsdkelb/v3/model/clone_loadbalancer_request.py +139 -0
  17. huaweicloudsdkelb/v3/model/clone_loadbalancer_request_body.py +139 -0
  18. huaweicloudsdkelb/v3/model/clone_loadbalancer_response.py +174 -0
  19. huaweicloudsdkelb/v3/model/clone_loadbalancer_response_body_loadbalancer_list.py +115 -0
  20. huaweicloudsdkelb/v3/model/cors_config.py +260 -0
  21. huaweicloudsdkelb/v3/model/count_preoccupy_ip_num_request.py +73 -15
  22. huaweicloudsdkelb/v3/model/create_certificate_option.py +35 -6
  23. huaweicloudsdkelb/v3/model/create_cors_config.py +260 -0
  24. huaweicloudsdkelb/v3/model/create_health_monitor_option.py +3 -3
  25. huaweicloudsdkelb/v3/model/create_l7_policy_option.py +6 -6
  26. huaweicloudsdkelb/v3/model/create_listener_option.py +126 -39
  27. huaweicloudsdkelb/v3/model/create_load_balancer_bandwidth_option.py +3 -3
  28. huaweicloudsdkelb/v3/model/create_load_balancer_option.py +36 -36
  29. huaweicloudsdkelb/v3/model/create_load_balancer_public_ip_option.py +3 -3
  30. huaweicloudsdkelb/v3/model/create_load_balancer_response.py +6 -6
  31. huaweicloudsdkelb/v3/model/create_master_slave_member_option.py +2 -1
  32. huaweicloudsdkelb/v3/model/create_master_slave_pool_option.py +31 -6
  33. huaweicloudsdkelb/v3/model/create_member_option.py +3 -3
  34. huaweicloudsdkelb/v3/model/create_pool_option.py +46 -21
  35. huaweicloudsdkelb/v3/model/create_pool_session_persistence_option.py +6 -6
  36. huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py +28 -3
  37. huaweicloudsdkelb/v3/model/create_redirect_url_config.py +3 -3
  38. huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_option.py +144 -0
  39. huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_request.py +139 -0
  40. huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_request_body.py +110 -0
  41. huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_response.py +85 -0
  42. huaweicloudsdkelb/v3/model/delete_pool_cascade_request.py +114 -0
  43. huaweicloudsdkelb/v3/model/delete_pool_cascade_response.py +85 -0
  44. huaweicloudsdkelb/v3/model/feature_config.py +394 -0
  45. huaweicloudsdkelb/v3/model/flavor.py +9 -9
  46. huaweicloudsdkelb/v3/model/global_eip_info.py +3 -3
  47. huaweicloudsdkelb/v3/model/health_monitor.py +9 -9
  48. huaweicloudsdkelb/v3/model/job_entities.py +144 -0
  49. huaweicloudsdkelb/v3/model/l7_policy.py +44 -15
  50. huaweicloudsdkelb/v3/model/l7_rule.py +9 -9
  51. huaweicloudsdkelb/v3/model/list_all_members_request.py +3 -3
  52. huaweicloudsdkelb/v3/model/list_availability_zones_request.py +35 -6
  53. huaweicloudsdkelb/v3/model/list_certificates_request.py +30 -1
  54. huaweicloudsdkelb/v3/model/list_feature_configs_request.py +115 -0
  55. huaweicloudsdkelb/v3/model/list_feature_configs_response.py +170 -0
  56. huaweicloudsdkelb/v3/model/list_flavors_request.py +119 -3
  57. huaweicloudsdkelb/v3/model/list_health_monitors_request.py +3 -3
  58. huaweicloudsdkelb/v3/model/list_ip_groups_request.py +3 -3
  59. huaweicloudsdkelb/v3/model/list_jobs_request.py +260 -0
  60. huaweicloudsdkelb/v3/model/list_jobs_response.py +145 -0
  61. huaweicloudsdkelb/v3/model/list_l7_policies_request.py +3 -3
  62. huaweicloudsdkelb/v3/model/list_l7_rules_request.py +3 -3
  63. huaweicloudsdkelb/v3/model/list_listeners_request.py +79 -21
  64. huaweicloudsdkelb/v3/model/list_load_balancers_request.py +15 -15
  65. huaweicloudsdkelb/v3/model/list_loadbalancer_feature_request.py +114 -0
  66. huaweicloudsdkelb/v3/model/list_loadbalancer_feature_response.py +145 -0
  67. huaweicloudsdkelb/v3/model/list_logtanks_request.py +3 -3
  68. huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py +3 -3
  69. huaweicloudsdkelb/v3/model/list_members_request.py +3 -3
  70. huaweicloudsdkelb/v3/model/list_pools_request.py +67 -9
  71. huaweicloudsdkelb/v3/model/list_quota_details_request.py +3 -3
  72. huaweicloudsdkelb/v3/model/listener.py +154 -39
  73. huaweicloudsdkelb/v3/model/load_balancer.py +21 -21
  74. huaweicloudsdkelb/v3/model/load_balancer_status_policy.py +3 -3
  75. huaweicloudsdkelb/v3/model/loadbalancer_feature.py +170 -0
  76. huaweicloudsdkelb/v3/model/main_job.py +376 -0
  77. huaweicloudsdkelb/v3/model/master_slave_member.py +26 -1
  78. huaweicloudsdkelb/v3/model/master_slave_pool.py +37 -12
  79. huaweicloudsdkelb/v3/model/member.py +32 -7
  80. huaweicloudsdkelb/v3/model/member_health_check_failed_reason.py +170 -0
  81. huaweicloudsdkelb/v3/model/member_info.py +34 -9
  82. huaweicloudsdkelb/v3/model/member_status.py +28 -3
  83. huaweicloudsdkelb/v3/model/pool.py +43 -18
  84. huaweicloudsdkelb/v3/model/quic_cid_hash_strategy.py +142 -0
  85. huaweicloudsdkelb/v3/model/quota.py +87 -3
  86. huaweicloudsdkelb/v3/model/quota_info.py +3 -3
  87. huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py +28 -3
  88. huaweicloudsdkelb/v3/model/session_persistence.py +6 -6
  89. huaweicloudsdkelb/v3/model/show_ip_group_related_listeners_request.py +114 -0
  90. huaweicloudsdkelb/v3/model/show_ip_group_related_listeners_response.py +116 -0
  91. huaweicloudsdkelb/v3/model/show_job_request.py +114 -0
  92. huaweicloudsdkelb/v3/model/show_job_response.py +141 -0
  93. huaweicloudsdkelb/v3/model/sub_job.py +376 -0
  94. huaweicloudsdkelb/v3/model/target_loadbalancer_param.py +434 -0
  95. huaweicloudsdkelb/v3/model/update_certificate_option.py +35 -6
  96. huaweicloudsdkelb/v3/model/update_health_monitor_option.py +3 -3
  97. huaweicloudsdkelb/v3/model/update_l7_policy_option.py +3 -3
  98. huaweicloudsdkelb/v3/model/update_listener_option.py +120 -33
  99. huaweicloudsdkelb/v3/model/update_load_balancer_option.py +15 -15
  100. huaweicloudsdkelb/v3/model/update_load_balancer_response.py +6 -6
  101. huaweicloudsdkelb/v3/model/update_pool_option.py +31 -6
  102. huaweicloudsdkelb/v3/model/update_pool_session_persistence_option.py +6 -6
  103. huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py +28 -3
  104. huaweicloudsdkelb/v3/model/upgrade_loadbalancer_request.py +139 -0
  105. huaweicloudsdkelb/v3/model/upgrade_loadbalancer_response.py +145 -0
  106. huaweicloudsdkelb/v3/model/upgrade_prepaid_option.py +200 -0
  107. huaweicloudsdkelb/v3/model/upgrade_v3_request_body.py +313 -0
  108. {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/METADATA +2 -2
  109. {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/RECORD +112 -73
  110. {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/LICENSE +0 -0
  111. {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/WHEEL +0 -0
  112. {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,376 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SubJob:
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
+ 'status': 'str',
21
+ 'begin_time': 'str',
22
+ 'end_time': 'str',
23
+ 'job_id': 'str',
24
+ 'job_type': 'str',
25
+ 'error_code': 'str',
26
+ 'error_msg': 'str',
27
+ 'project_id': 'str',
28
+ 'resource_id': 'str',
29
+ 'entities': 'list[JobEntities]'
30
+ }
31
+
32
+ attribute_map = {
33
+ 'status': 'status',
34
+ 'begin_time': 'begin_time',
35
+ 'end_time': 'end_time',
36
+ 'job_id': 'job_id',
37
+ 'job_type': 'job_type',
38
+ 'error_code': 'error_code',
39
+ 'error_msg': 'error_msg',
40
+ 'project_id': 'project_id',
41
+ 'resource_id': 'resource_id',
42
+ 'entities': 'entities'
43
+ }
44
+
45
+ def __init__(self, status=None, begin_time=None, end_time=None, job_id=None, job_type=None, error_code=None, error_msg=None, project_id=None, resource_id=None, entities=None):
46
+ """SubJob
47
+
48
+ The model defined in huaweicloud sdk
49
+
50
+ :param status: 任务状态
51
+ :type status: str
52
+ :param begin_time: 任务开始时间
53
+ :type begin_time: str
54
+ :param end_time: 任务结束时间
55
+ :type end_time: str
56
+ :param job_id: 任务ID
57
+ :type job_id: str
58
+ :param job_type: 任务类型
59
+ :type job_type: str
60
+ :param error_code: 任务的错误码
61
+ :type error_code: str
62
+ :param error_msg: 任务的错误信息
63
+ :type error_msg: str
64
+ :param project_id: 项目ID
65
+ :type project_id: str
66
+ :param resource_id: 参数解释:资源ID。
67
+ :type resource_id: str
68
+ :param entities: 任务关联的资源列表
69
+ :type entities: list[:class:`huaweicloudsdkelb.v3.JobEntities`]
70
+ """
71
+
72
+
73
+
74
+ self._status = None
75
+ self._begin_time = None
76
+ self._end_time = None
77
+ self._job_id = None
78
+ self._job_type = None
79
+ self._error_code = None
80
+ self._error_msg = None
81
+ self._project_id = None
82
+ self._resource_id = None
83
+ self._entities = None
84
+ self.discriminator = None
85
+
86
+ if status is not None:
87
+ self.status = status
88
+ if begin_time is not None:
89
+ self.begin_time = begin_time
90
+ if end_time is not None:
91
+ self.end_time = end_time
92
+ if job_id is not None:
93
+ self.job_id = job_id
94
+ if job_type is not None:
95
+ self.job_type = job_type
96
+ if error_code is not None:
97
+ self.error_code = error_code
98
+ if error_msg is not None:
99
+ self.error_msg = error_msg
100
+ if project_id is not None:
101
+ self.project_id = project_id
102
+ if resource_id is not None:
103
+ self.resource_id = resource_id
104
+ if entities is not None:
105
+ self.entities = entities
106
+
107
+ @property
108
+ def status(self):
109
+ """Gets the status of this SubJob.
110
+
111
+ 任务状态
112
+
113
+ :return: The status of this SubJob.
114
+ :rtype: str
115
+ """
116
+ return self._status
117
+
118
+ @status.setter
119
+ def status(self, status):
120
+ """Sets the status of this SubJob.
121
+
122
+ 任务状态
123
+
124
+ :param status: The status of this SubJob.
125
+ :type status: str
126
+ """
127
+ self._status = status
128
+
129
+ @property
130
+ def begin_time(self):
131
+ """Gets the begin_time of this SubJob.
132
+
133
+ 任务开始时间
134
+
135
+ :return: The begin_time of this SubJob.
136
+ :rtype: str
137
+ """
138
+ return self._begin_time
139
+
140
+ @begin_time.setter
141
+ def begin_time(self, begin_time):
142
+ """Sets the begin_time of this SubJob.
143
+
144
+ 任务开始时间
145
+
146
+ :param begin_time: The begin_time of this SubJob.
147
+ :type begin_time: str
148
+ """
149
+ self._begin_time = begin_time
150
+
151
+ @property
152
+ def end_time(self):
153
+ """Gets the end_time of this SubJob.
154
+
155
+ 任务结束时间
156
+
157
+ :return: The end_time of this SubJob.
158
+ :rtype: str
159
+ """
160
+ return self._end_time
161
+
162
+ @end_time.setter
163
+ def end_time(self, end_time):
164
+ """Sets the end_time of this SubJob.
165
+
166
+ 任务结束时间
167
+
168
+ :param end_time: The end_time of this SubJob.
169
+ :type end_time: str
170
+ """
171
+ self._end_time = end_time
172
+
173
+ @property
174
+ def job_id(self):
175
+ """Gets the job_id of this SubJob.
176
+
177
+ 任务ID
178
+
179
+ :return: The job_id of this SubJob.
180
+ :rtype: str
181
+ """
182
+ return self._job_id
183
+
184
+ @job_id.setter
185
+ def job_id(self, job_id):
186
+ """Sets the job_id of this SubJob.
187
+
188
+ 任务ID
189
+
190
+ :param job_id: The job_id of this SubJob.
191
+ :type job_id: str
192
+ """
193
+ self._job_id = job_id
194
+
195
+ @property
196
+ def job_type(self):
197
+ """Gets the job_type of this SubJob.
198
+
199
+ 任务类型
200
+
201
+ :return: The job_type of this SubJob.
202
+ :rtype: str
203
+ """
204
+ return self._job_type
205
+
206
+ @job_type.setter
207
+ def job_type(self, job_type):
208
+ """Sets the job_type of this SubJob.
209
+
210
+ 任务类型
211
+
212
+ :param job_type: The job_type of this SubJob.
213
+ :type job_type: str
214
+ """
215
+ self._job_type = job_type
216
+
217
+ @property
218
+ def error_code(self):
219
+ """Gets the error_code of this SubJob.
220
+
221
+ 任务的错误码
222
+
223
+ :return: The error_code of this SubJob.
224
+ :rtype: str
225
+ """
226
+ return self._error_code
227
+
228
+ @error_code.setter
229
+ def error_code(self, error_code):
230
+ """Sets the error_code of this SubJob.
231
+
232
+ 任务的错误码
233
+
234
+ :param error_code: The error_code of this SubJob.
235
+ :type error_code: str
236
+ """
237
+ self._error_code = error_code
238
+
239
+ @property
240
+ def error_msg(self):
241
+ """Gets the error_msg of this SubJob.
242
+
243
+ 任务的错误信息
244
+
245
+ :return: The error_msg of this SubJob.
246
+ :rtype: str
247
+ """
248
+ return self._error_msg
249
+
250
+ @error_msg.setter
251
+ def error_msg(self, error_msg):
252
+ """Sets the error_msg of this SubJob.
253
+
254
+ 任务的错误信息
255
+
256
+ :param error_msg: The error_msg of this SubJob.
257
+ :type error_msg: str
258
+ """
259
+ self._error_msg = error_msg
260
+
261
+ @property
262
+ def project_id(self):
263
+ """Gets the project_id of this SubJob.
264
+
265
+ 项目ID
266
+
267
+ :return: The project_id of this SubJob.
268
+ :rtype: str
269
+ """
270
+ return self._project_id
271
+
272
+ @project_id.setter
273
+ def project_id(self, project_id):
274
+ """Sets the project_id of this SubJob.
275
+
276
+ 项目ID
277
+
278
+ :param project_id: The project_id of this SubJob.
279
+ :type project_id: str
280
+ """
281
+ self._project_id = project_id
282
+
283
+ @property
284
+ def resource_id(self):
285
+ """Gets the resource_id of this SubJob.
286
+
287
+ 参数解释:资源ID。
288
+
289
+ :return: The resource_id of this SubJob.
290
+ :rtype: str
291
+ """
292
+ return self._resource_id
293
+
294
+ @resource_id.setter
295
+ def resource_id(self, resource_id):
296
+ """Sets the resource_id of this SubJob.
297
+
298
+ 参数解释:资源ID。
299
+
300
+ :param resource_id: The resource_id of this SubJob.
301
+ :type resource_id: str
302
+ """
303
+ self._resource_id = resource_id
304
+
305
+ @property
306
+ def entities(self):
307
+ """Gets the entities of this SubJob.
308
+
309
+ 任务关联的资源列表
310
+
311
+ :return: The entities of this SubJob.
312
+ :rtype: list[:class:`huaweicloudsdkelb.v3.JobEntities`]
313
+ """
314
+ return self._entities
315
+
316
+ @entities.setter
317
+ def entities(self, entities):
318
+ """Sets the entities of this SubJob.
319
+
320
+ 任务关联的资源列表
321
+
322
+ :param entities: The entities of this SubJob.
323
+ :type entities: list[:class:`huaweicloudsdkelb.v3.JobEntities`]
324
+ """
325
+ self._entities = entities
326
+
327
+ def to_dict(self):
328
+ """Returns the model properties as a dict"""
329
+ result = {}
330
+
331
+ for attr, _ in six.iteritems(self.openapi_types):
332
+ value = getattr(self, attr)
333
+ if isinstance(value, list):
334
+ result[attr] = list(map(
335
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
336
+ value
337
+ ))
338
+ elif hasattr(value, "to_dict"):
339
+ result[attr] = value.to_dict()
340
+ elif isinstance(value, dict):
341
+ result[attr] = dict(map(
342
+ lambda item: (item[0], item[1].to_dict())
343
+ if hasattr(item[1], "to_dict") else item,
344
+ value.items()
345
+ ))
346
+ else:
347
+ if attr in self.sensitive_list:
348
+ result[attr] = "****"
349
+ else:
350
+ result[attr] = value
351
+
352
+ return result
353
+
354
+ def to_str(self):
355
+ """Returns the string representation of the model"""
356
+ import simplejson as json
357
+ if six.PY2:
358
+ import sys
359
+ reload(sys)
360
+ sys.setdefaultencoding("utf-8")
361
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
362
+
363
+ def __repr__(self):
364
+ """For `print`"""
365
+ return self.to_str()
366
+
367
+ def __eq__(self, other):
368
+ """Returns true if both objects are equal"""
369
+ if not isinstance(other, SubJob):
370
+ return False
371
+
372
+ return self.__dict__ == other.__dict__
373
+
374
+ def __ne__(self, other):
375
+ """Returns true if both objects are not equal"""
376
+ return not self == other