huaweicloudsdkelb 3.1.131__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.131.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/METADATA +2 -2
  109. {huaweicloudsdkelb-3.1.131.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/RECORD +112 -73
  110. {huaweicloudsdkelb-3.1.131.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/LICENSE +0 -0
  111. {huaweicloudsdkelb-3.1.131.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/WHEEL +0 -0
  112. {huaweicloudsdkelb-3.1.131.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,111 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BatchCreateLoadBalancersRequest:
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
+ 'body': 'BatchCreateLoadBalancersRequestBody'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'body': 'body'
25
+ }
26
+
27
+ def __init__(self, body=None):
28
+ """BatchCreateLoadBalancersRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param body: Body of the BatchCreateLoadBalancersRequest
33
+ :type body: :class:`huaweicloudsdkelb.v3.BatchCreateLoadBalancersRequestBody`
34
+ """
35
+
36
+
37
+
38
+ self._body = None
39
+ self.discriminator = None
40
+
41
+ if body is not None:
42
+ self.body = body
43
+
44
+ @property
45
+ def body(self):
46
+ """Gets the body of this BatchCreateLoadBalancersRequest.
47
+
48
+ :return: The body of this BatchCreateLoadBalancersRequest.
49
+ :rtype: :class:`huaweicloudsdkelb.v3.BatchCreateLoadBalancersRequestBody`
50
+ """
51
+ return self._body
52
+
53
+ @body.setter
54
+ def body(self, body):
55
+ """Sets the body of this BatchCreateLoadBalancersRequest.
56
+
57
+ :param body: The body of this BatchCreateLoadBalancersRequest.
58
+ :type body: :class:`huaweicloudsdkelb.v3.BatchCreateLoadBalancersRequestBody`
59
+ """
60
+ self._body = body
61
+
62
+ def to_dict(self):
63
+ """Returns the model properties as a dict"""
64
+ result = {}
65
+
66
+ for attr, _ in six.iteritems(self.openapi_types):
67
+ value = getattr(self, attr)
68
+ if isinstance(value, list):
69
+ result[attr] = list(map(
70
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
71
+ value
72
+ ))
73
+ elif hasattr(value, "to_dict"):
74
+ result[attr] = value.to_dict()
75
+ elif isinstance(value, dict):
76
+ result[attr] = dict(map(
77
+ lambda item: (item[0], item[1].to_dict())
78
+ if hasattr(item[1], "to_dict") else item,
79
+ value.items()
80
+ ))
81
+ else:
82
+ if attr in self.sensitive_list:
83
+ result[attr] = "****"
84
+ else:
85
+ result[attr] = value
86
+
87
+ return result
88
+
89
+ def to_str(self):
90
+ """Returns the string representation of the model"""
91
+ import simplejson as json
92
+ if six.PY2:
93
+ import sys
94
+ reload(sys)
95
+ sys.setdefaultencoding("utf-8")
96
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
97
+
98
+ def __repr__(self):
99
+ """For `print`"""
100
+ return self.to_str()
101
+
102
+ def __eq__(self, other):
103
+ """Returns true if both objects are equal"""
104
+ if not isinstance(other, BatchCreateLoadBalancersRequest):
105
+ return False
106
+
107
+ return self.__dict__ == other.__dict__
108
+
109
+ def __ne__(self, other):
110
+ """Returns true if both objects are not equal"""
111
+ return not self == other
@@ -0,0 +1,110 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BatchCreateLoadBalancersRequestBody:
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
+ 'loadbalancer': 'BatchCreateLoadBalancerOption'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'loadbalancer': 'loadbalancer'
25
+ }
26
+
27
+ def __init__(self, loadbalancer=None):
28
+ """BatchCreateLoadBalancersRequestBody
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param loadbalancer:
33
+ :type loadbalancer: :class:`huaweicloudsdkelb.v3.BatchCreateLoadBalancerOption`
34
+ """
35
+
36
+
37
+
38
+ self._loadbalancer = None
39
+ self.discriminator = None
40
+
41
+ self.loadbalancer = loadbalancer
42
+
43
+ @property
44
+ def loadbalancer(self):
45
+ """Gets the loadbalancer of this BatchCreateLoadBalancersRequestBody.
46
+
47
+ :return: The loadbalancer of this BatchCreateLoadBalancersRequestBody.
48
+ :rtype: :class:`huaweicloudsdkelb.v3.BatchCreateLoadBalancerOption`
49
+ """
50
+ return self._loadbalancer
51
+
52
+ @loadbalancer.setter
53
+ def loadbalancer(self, loadbalancer):
54
+ """Sets the loadbalancer of this BatchCreateLoadBalancersRequestBody.
55
+
56
+ :param loadbalancer: The loadbalancer of this BatchCreateLoadBalancersRequestBody.
57
+ :type loadbalancer: :class:`huaweicloudsdkelb.v3.BatchCreateLoadBalancerOption`
58
+ """
59
+ self._loadbalancer = loadbalancer
60
+
61
+ def to_dict(self):
62
+ """Returns the model properties as a dict"""
63
+ result = {}
64
+
65
+ for attr, _ in six.iteritems(self.openapi_types):
66
+ value = getattr(self, attr)
67
+ if isinstance(value, list):
68
+ result[attr] = list(map(
69
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
70
+ value
71
+ ))
72
+ elif hasattr(value, "to_dict"):
73
+ result[attr] = value.to_dict()
74
+ elif isinstance(value, dict):
75
+ result[attr] = dict(map(
76
+ lambda item: (item[0], item[1].to_dict())
77
+ if hasattr(item[1], "to_dict") else item,
78
+ value.items()
79
+ ))
80
+ else:
81
+ if attr in self.sensitive_list:
82
+ result[attr] = "****"
83
+ else:
84
+ result[attr] = value
85
+
86
+ return result
87
+
88
+ def to_str(self):
89
+ """Returns the string representation of the model"""
90
+ import simplejson as json
91
+ if six.PY2:
92
+ import sys
93
+ reload(sys)
94
+ sys.setdefaultencoding("utf-8")
95
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
96
+
97
+ def __repr__(self):
98
+ """For `print`"""
99
+ return self.to_str()
100
+
101
+ def __eq__(self, other):
102
+ """Returns true if both objects are equal"""
103
+ if not isinstance(other, BatchCreateLoadBalancersRequestBody):
104
+ return False
105
+
106
+ return self.__dict__ == other.__dict__
107
+
108
+ def __ne__(self, other):
109
+ """Returns true if both objects are not equal"""
110
+ return not self == other
@@ -0,0 +1,203 @@
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 BatchCreateLoadBalancersResponse(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
+ 'loadbalancer_ids': 'list[str]',
22
+ 'job_id': 'str',
23
+ 'order_id': 'str',
24
+ 'request_id': 'str'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'loadbalancer_ids': 'loadbalancer_ids',
29
+ 'job_id': 'job_id',
30
+ 'order_id': 'order_id',
31
+ 'request_id': 'request_id'
32
+ }
33
+
34
+ def __init__(self, loadbalancer_ids=None, job_id=None, order_id=None, request_id=None):
35
+ """BatchCreateLoadBalancersResponse
36
+
37
+ The model defined in huaweicloud sdk
38
+
39
+ :param loadbalancer_ids: 批创负载均衡器ID(UUID)的列表。
40
+ :type loadbalancer_ids: list[str]
41
+ :param job_id: 批量创建负载均衡器的job ID。
42
+ :type job_id: str
43
+ :param order_id: 订单号[(只有批量创建包周期示例的场景返回该字段)](tag:hws) [不支持该字段,请勿使用](tag:hws_hk,hws_eu,hws_eu_wb,hws_test,srg,fcs,fcs_vm,dt,ctc,cmcc,tm,sbc,hk_sbc,hk_tm,hk_vdf,ct)
44
+ :type order_id: str
45
+ :param request_id: 请求ID。 注:自动生成 。
46
+ :type request_id: str
47
+ """
48
+
49
+ super(BatchCreateLoadBalancersResponse, self).__init__()
50
+
51
+ self._loadbalancer_ids = None
52
+ self._job_id = None
53
+ self._order_id = None
54
+ self._request_id = None
55
+ self.discriminator = None
56
+
57
+ if loadbalancer_ids is not None:
58
+ self.loadbalancer_ids = loadbalancer_ids
59
+ if job_id is not None:
60
+ self.job_id = job_id
61
+ if order_id is not None:
62
+ self.order_id = order_id
63
+ if request_id is not None:
64
+ self.request_id = request_id
65
+
66
+ @property
67
+ def loadbalancer_ids(self):
68
+ """Gets the loadbalancer_ids of this BatchCreateLoadBalancersResponse.
69
+
70
+ 批创负载均衡器ID(UUID)的列表。
71
+
72
+ :return: The loadbalancer_ids of this BatchCreateLoadBalancersResponse.
73
+ :rtype: list[str]
74
+ """
75
+ return self._loadbalancer_ids
76
+
77
+ @loadbalancer_ids.setter
78
+ def loadbalancer_ids(self, loadbalancer_ids):
79
+ """Sets the loadbalancer_ids of this BatchCreateLoadBalancersResponse.
80
+
81
+ 批创负载均衡器ID(UUID)的列表。
82
+
83
+ :param loadbalancer_ids: The loadbalancer_ids of this BatchCreateLoadBalancersResponse.
84
+ :type loadbalancer_ids: list[str]
85
+ """
86
+ self._loadbalancer_ids = loadbalancer_ids
87
+
88
+ @property
89
+ def job_id(self):
90
+ """Gets the job_id of this BatchCreateLoadBalancersResponse.
91
+
92
+ 批量创建负载均衡器的job ID。
93
+
94
+ :return: The job_id of this BatchCreateLoadBalancersResponse.
95
+ :rtype: str
96
+ """
97
+ return self._job_id
98
+
99
+ @job_id.setter
100
+ def job_id(self, job_id):
101
+ """Sets the job_id of this BatchCreateLoadBalancersResponse.
102
+
103
+ 批量创建负载均衡器的job ID。
104
+
105
+ :param job_id: The job_id of this BatchCreateLoadBalancersResponse.
106
+ :type job_id: str
107
+ """
108
+ self._job_id = job_id
109
+
110
+ @property
111
+ def order_id(self):
112
+ """Gets the order_id of this BatchCreateLoadBalancersResponse.
113
+
114
+ 订单号[(只有批量创建包周期示例的场景返回该字段)](tag:hws) [不支持该字段,请勿使用](tag:hws_hk,hws_eu,hws_eu_wb,hws_test,srg,fcs,fcs_vm,dt,ctc,cmcc,tm,sbc,hk_sbc,hk_tm,hk_vdf,ct)
115
+
116
+ :return: The order_id of this BatchCreateLoadBalancersResponse.
117
+ :rtype: str
118
+ """
119
+ return self._order_id
120
+
121
+ @order_id.setter
122
+ def order_id(self, order_id):
123
+ """Sets the order_id of this BatchCreateLoadBalancersResponse.
124
+
125
+ 订单号[(只有批量创建包周期示例的场景返回该字段)](tag:hws) [不支持该字段,请勿使用](tag:hws_hk,hws_eu,hws_eu_wb,hws_test,srg,fcs,fcs_vm,dt,ctc,cmcc,tm,sbc,hk_sbc,hk_tm,hk_vdf,ct)
126
+
127
+ :param order_id: The order_id of this BatchCreateLoadBalancersResponse.
128
+ :type order_id: str
129
+ """
130
+ self._order_id = order_id
131
+
132
+ @property
133
+ def request_id(self):
134
+ """Gets the request_id of this BatchCreateLoadBalancersResponse.
135
+
136
+ 请求ID。 注:自动生成 。
137
+
138
+ :return: The request_id of this BatchCreateLoadBalancersResponse.
139
+ :rtype: str
140
+ """
141
+ return self._request_id
142
+
143
+ @request_id.setter
144
+ def request_id(self, request_id):
145
+ """Sets the request_id of this BatchCreateLoadBalancersResponse.
146
+
147
+ 请求ID。 注:自动生成 。
148
+
149
+ :param request_id: The request_id of this BatchCreateLoadBalancersResponse.
150
+ :type request_id: str
151
+ """
152
+ self._request_id = request_id
153
+
154
+ def to_dict(self):
155
+ """Returns the model properties as a dict"""
156
+ result = {}
157
+
158
+ for attr, _ in six.iteritems(self.openapi_types):
159
+ value = getattr(self, attr)
160
+ if isinstance(value, list):
161
+ result[attr] = list(map(
162
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
163
+ value
164
+ ))
165
+ elif hasattr(value, "to_dict"):
166
+ result[attr] = value.to_dict()
167
+ elif isinstance(value, dict):
168
+ result[attr] = dict(map(
169
+ lambda item: (item[0], item[1].to_dict())
170
+ if hasattr(item[1], "to_dict") else item,
171
+ value.items()
172
+ ))
173
+ else:
174
+ if attr in self.sensitive_list:
175
+ result[attr] = "****"
176
+ else:
177
+ result[attr] = value
178
+
179
+ return result
180
+
181
+ def to_str(self):
182
+ """Returns the string representation of the model"""
183
+ import simplejson as json
184
+ if six.PY2:
185
+ import sys
186
+ reload(sys)
187
+ sys.setdefaultencoding("utf-8")
188
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
189
+
190
+ def __repr__(self):
191
+ """For `print`"""
192
+ return self.to_str()
193
+
194
+ def __eq__(self, other):
195
+ """Returns true if both objects are equal"""
196
+ if not isinstance(other, BatchCreateLoadBalancersResponse):
197
+ return False
198
+
199
+ return self.__dict__ == other.__dict__
200
+
201
+ def __ne__(self, other):
202
+ """Returns true if both objects are not equal"""
203
+ return not self == other
@@ -26,6 +26,7 @@ class BatchMember:
26
26
  'weight': 'int',
27
27
  'address': 'str',
28
28
  'operating_status': 'str',
29
+ 'reason': 'MemberHealthCheckFailedReason',
29
30
  'status': 'list[MemberStatus]',
30
31
  'member_type': 'str',
31
32
  'instance_id': 'str',
@@ -45,6 +46,7 @@ class BatchMember:
45
46
  'weight': 'weight',
46
47
  'address': 'address',
47
48
  'operating_status': 'operating_status',
49
+ 'reason': 'reason',
48
50
  'status': 'status',
49
51
  'member_type': 'member_type',
50
52
  'instance_id': 'instance_id',
@@ -54,7 +56,7 @@ class BatchMember:
54
56
  'updated_at': 'updated_at'
55
57
  }
56
58
 
57
- def __init__(self, id=None, name=None, project_id=None, admin_state_up=None, subnet_cidr_id=None, protocol_port=None, weight=None, address=None, operating_status=None, status=None, member_type=None, instance_id=None, port_id=None, ret_status=None, created_at=None, updated_at=None):
59
+ def __init__(self, id=None, name=None, project_id=None, admin_state_up=None, subnet_cidr_id=None, protocol_port=None, weight=None, address=None, operating_status=None, reason=None, status=None, member_type=None, instance_id=None, port_id=None, ret_status=None, created_at=None, updated_at=None):
58
60
  """BatchMember
59
61
 
60
62
  The model defined in huaweicloud sdk
@@ -67,9 +69,9 @@ class BatchMember:
67
69
  :type project_id: str
68
70
  :param admin_state_up: 后端服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
69
71
  :type admin_state_up: bool
70
- :param subnet_cidr_id: 后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
72
+ :param subnet_cidr_id: 后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
71
73
  :type subnet_cidr_id: str
72
- :param protocol_port: 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。
74
+ :param protocol_port: 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。
73
75
  :type protocol_port: int
74
76
  :param weight: 后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。
75
77
  :type weight: int
@@ -77,6 +79,8 @@ class BatchMember:
77
79
  :type address: str
78
80
  :param operating_status: 后端服务器的健康状态。 取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。
79
81
  :type operating_status: str
82
+ :param reason:
83
+ :type reason: :class:`huaweicloudsdkelb.v3.MemberHealthCheckFailedReason`
80
84
  :param status: 后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。
81
85
  :type status: list[:class:`huaweicloudsdkelb.v3.MemberStatus`]
82
86
  :param member_type: 后端服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。
@@ -87,9 +91,9 @@ class BatchMember:
87
91
  :type port_id: str
88
92
  :param ret_status: 当前后端服务器创建结果状态。 取值: - successful:添加成功。 - existed:member已存在。
89
93
  :type ret_status: str
90
- :param created_at: 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
94
+ :param created_at: 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt,hk_tm)
91
95
  :type created_at: str
92
- :param updated_at: 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
96
+ :param updated_at: 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt,hk_tm)
93
97
  :type updated_at: str
94
98
  """
95
99
 
@@ -104,6 +108,7 @@ class BatchMember:
104
108
  self._weight = None
105
109
  self._address = None
106
110
  self._operating_status = None
111
+ self._reason = None
107
112
  self._status = None
108
113
  self._member_type = None
109
114
  self._instance_id = None
@@ -123,6 +128,8 @@ class BatchMember:
123
128
  self.weight = weight
124
129
  self.address = address
125
130
  self.operating_status = operating_status
131
+ if reason is not None:
132
+ self.reason = reason
126
133
  if status is not None:
127
134
  self.status = status
128
135
  if member_type is not None:
@@ -228,7 +235,7 @@ class BatchMember:
228
235
  def subnet_cidr_id(self):
229
236
  """Gets the subnet_cidr_id of this BatchMember.
230
237
 
231
- 后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
238
+ 后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
232
239
 
233
240
  :return: The subnet_cidr_id of this BatchMember.
234
241
  :rtype: str
@@ -239,7 +246,7 @@ class BatchMember:
239
246
  def subnet_cidr_id(self, subnet_cidr_id):
240
247
  """Sets the subnet_cidr_id of this BatchMember.
241
248
 
242
- 后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
249
+ 后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
243
250
 
244
251
  :param subnet_cidr_id: The subnet_cidr_id of this BatchMember.
245
252
  :type subnet_cidr_id: str
@@ -250,7 +257,7 @@ class BatchMember:
250
257
  def protocol_port(self):
251
258
  """Gets the protocol_port of this BatchMember.
252
259
 
253
- 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。
260
+ 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。
254
261
 
255
262
  :return: The protocol_port of this BatchMember.
256
263
  :rtype: int
@@ -261,7 +268,7 @@ class BatchMember:
261
268
  def protocol_port(self, protocol_port):
262
269
  """Sets the protocol_port of this BatchMember.
263
270
 
264
- 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。
271
+ 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。
265
272
 
266
273
  :param protocol_port: The protocol_port of this BatchMember.
267
274
  :type protocol_port: int
@@ -334,6 +341,24 @@ class BatchMember:
334
341
  """
335
342
  self._operating_status = operating_status
336
343
 
344
+ @property
345
+ def reason(self):
346
+ """Gets the reason of this BatchMember.
347
+
348
+ :return: The reason of this BatchMember.
349
+ :rtype: :class:`huaweicloudsdkelb.v3.MemberHealthCheckFailedReason`
350
+ """
351
+ return self._reason
352
+
353
+ @reason.setter
354
+ def reason(self, reason):
355
+ """Sets the reason of this BatchMember.
356
+
357
+ :param reason: The reason of this BatchMember.
358
+ :type reason: :class:`huaweicloudsdkelb.v3.MemberHealthCheckFailedReason`
359
+ """
360
+ self._reason = reason
361
+
337
362
  @property
338
363
  def status(self):
339
364
  """Gets the status of this BatchMember.
@@ -448,7 +473,7 @@ class BatchMember:
448
473
  def created_at(self):
449
474
  """Gets the created_at of this BatchMember.
450
475
 
451
- 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
476
+ 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt,hk_tm)
452
477
 
453
478
  :return: The created_at of this BatchMember.
454
479
  :rtype: str
@@ -459,7 +484,7 @@ class BatchMember:
459
484
  def created_at(self, created_at):
460
485
  """Sets the created_at of this BatchMember.
461
486
 
462
- 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
487
+ 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt,hk_tm)
463
488
 
464
489
  :param created_at: The created_at of this BatchMember.
465
490
  :type created_at: str
@@ -470,7 +495,7 @@ class BatchMember:
470
495
  def updated_at(self):
471
496
  """Gets the updated_at of this BatchMember.
472
497
 
473
- 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
498
+ 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt,hk_tm)
474
499
 
475
500
  :return: The updated_at of this BatchMember.
476
501
  :rtype: str
@@ -481,7 +506,7 @@ class BatchMember:
481
506
  def updated_at(self, updated_at):
482
507
  """Sets the updated_at of this BatchMember.
483
508
 
484
- 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
509
+ 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt,hk_tm)
485
510
 
486
511
  :param updated_at: The updated_at of this BatchMember.
487
512
  :type updated_at: str