huaweicloudsdkelb 3.1.144__py2.py3-none-any.whl → 3.1.146__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 (42) hide show
  1. huaweicloudsdkelb/v3/__init__.py +2 -0
  2. huaweicloudsdkelb/v3/elb_async_client.py +11 -5
  3. huaweicloudsdkelb/v3/elb_client.py +11 -5
  4. huaweicloudsdkelb/v3/model/__init__.py +2 -0
  5. huaweicloudsdkelb/v3/model/availability_zone.py +32 -3
  6. huaweicloudsdkelb/v3/model/batch_create_members_option.py +6 -6
  7. huaweicloudsdkelb/v3/model/batch_delete_members_option.py +3 -3
  8. huaweicloudsdkelb/v3/model/batch_delete_members_state.py +3 -3
  9. huaweicloudsdkelb/v3/model/batch_member.py +9 -9
  10. huaweicloudsdkelb/v3/model/batch_update_member.py +9 -9
  11. huaweicloudsdkelb/v3/model/certificate_info.py +3 -3
  12. huaweicloudsdkelb/v3/model/create_listener_option.py +6 -6
  13. huaweicloudsdkelb/v3/model/create_master_slave_member_option.py +6 -6
  14. huaweicloudsdkelb/v3/model/create_member_option.py +6 -6
  15. huaweicloudsdkelb/v3/model/delete_member_request.py +3 -3
  16. huaweicloudsdkelb/v3/model/extension.py +144 -0
  17. huaweicloudsdkelb/v3/model/flavor.py +3 -3
  18. huaweicloudsdkelb/v3/model/list_availability_zones_response.py +3 -32
  19. huaweicloudsdkelb/v3/model/list_jobs_request.py +88 -1
  20. huaweicloudsdkelb/v3/model/list_jobs_response.py +26 -1
  21. huaweicloudsdkelb/v3/model/list_members_request.py +3 -3
  22. huaweicloudsdkelb/v3/model/list_quota_details_request.py +3 -3
  23. huaweicloudsdkelb/v3/model/listener.py +12 -12
  24. huaweicloudsdkelb/v3/model/load_balancer.py +178 -28
  25. huaweicloudsdkelb/v3/model/master_slave_member.py +9 -9
  26. huaweicloudsdkelb/v3/model/member.py +9 -9
  27. huaweicloudsdkelb/v3/model/member_info.py +9 -9
  28. huaweicloudsdkelb/v3/model/member_status.py +61 -3
  29. huaweicloudsdkelb/v3/model/pool.py +9 -9
  30. huaweicloudsdkelb/v3/model/pool_health.py +3 -3
  31. huaweicloudsdkelb/v3/model/proxy_protocol_extension.py +168 -0
  32. huaweicloudsdkelb/v3/model/quota.py +59 -3
  33. huaweicloudsdkelb/v3/model/quota_info.py +3 -3
  34. huaweicloudsdkelb/v3/model/show_member_request.py +3 -3
  35. huaweicloudsdkelb/v3/model/update_listener_option.py +3 -3
  36. huaweicloudsdkelb/v3/model/update_load_balancer_option.py +3 -3
  37. huaweicloudsdkelb/v3/model/update_member_request.py +3 -3
  38. {huaweicloudsdkelb-3.1.144.dist-info → huaweicloudsdkelb-3.1.146.dist-info}/METADATA +2 -2
  39. {huaweicloudsdkelb-3.1.144.dist-info → huaweicloudsdkelb-3.1.146.dist-info}/RECORD +42 -40
  40. {huaweicloudsdkelb-3.1.144.dist-info → huaweicloudsdkelb-3.1.146.dist-info}/LICENSE +0 -0
  41. {huaweicloudsdkelb-3.1.144.dist-info → huaweicloudsdkelb-3.1.146.dist-info}/WHEEL +0 -0
  42. {huaweicloudsdkelb-3.1.144.dist-info → huaweicloudsdkelb-3.1.146.dist-info}/top_level.txt +0 -0
@@ -59,7 +59,7 @@ class Member:
59
59
 
60
60
  The model defined in huaweicloud sdk
61
61
 
62
- :param id: 参数解释:后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
62
+ :param id: 参数解释:后端服务器ID。 > 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
63
63
  :type id: str
64
64
  :param name: 参数解释:后端服务器名称。 注意:该名称并非ECS名称。
65
65
  :type name: str
@@ -67,13 +67,13 @@ class Member:
67
67
  :type project_id: str
68
68
  :param admin_state_up: 参数解释:后端服务器的管理状态。 约束限制:虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 取值范围:true、false。
69
69
  :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后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt)
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后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为**私网IPv4**地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt)
71
71
  :type subnet_cidr_id: str
72
72
  :param protocol_port: 参数解释:后端服务器业务端口。 [约束限制:网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。
73
73
  :type protocol_port: int
74
74
  :param weight: 参数解释:后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 约束限制:若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 取值范围:0-100 默认取值:1。
75
75
  :type weight: int
76
- :param address: 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt)
76
+ :param address: 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为**私网IPv4**地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址必须在subnet_cidr_id对应的子网网段中,可以是**私网IPv4**或IPv6。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt)
77
77
  :type address: str
78
78
  :param ip_version: 参数解释:当前后端服务器的IP地址版本,由后端系统自动根据传入的address字段确定。 取值范围:v4、v6。
79
79
  :type ip_version: str
@@ -140,7 +140,7 @@ class Member:
140
140
  def id(self):
141
141
  r"""Gets the id of this Member.
142
142
 
143
- 参数解释:后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
143
+ 参数解释:后端服务器ID。 > 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
144
144
 
145
145
  :return: The id of this Member.
146
146
  :rtype: str
@@ -151,7 +151,7 @@ class Member:
151
151
  def id(self, id):
152
152
  r"""Sets the id of this Member.
153
153
 
154
- 参数解释:后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
154
+ 参数解释:后端服务器ID。 > 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
155
155
 
156
156
  :param id: The id of this Member.
157
157
  :type id: str
@@ -228,7 +228,7 @@ class Member:
228
228
  def subnet_cidr_id(self):
229
229
  r"""Gets the subnet_cidr_id of this Member.
230
230
 
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后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt)
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后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为**私网IPv4**地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt)
232
232
 
233
233
  :return: The subnet_cidr_id of this Member.
234
234
  :rtype: str
@@ -239,7 +239,7 @@ class Member:
239
239
  def subnet_cidr_id(self, subnet_cidr_id):
240
240
  r"""Sets the subnet_cidr_id of this Member.
241
241
 
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后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt)
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后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为**私网IPv4**地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt)
243
243
 
244
244
  :param subnet_cidr_id: The subnet_cidr_id of this Member.
245
245
  :type subnet_cidr_id: str
@@ -294,7 +294,7 @@ class Member:
294
294
  def address(self):
295
295
  r"""Gets the address of this Member.
296
296
 
297
- 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt)
297
+ 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为**私网IPv4**地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址必须在subnet_cidr_id对应的子网网段中,可以是**私网IPv4**或IPv6。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt)
298
298
 
299
299
  :return: The address of this Member.
300
300
  :rtype: str
@@ -305,7 +305,7 @@ class Member:
305
305
  def address(self, address):
306
306
  r"""Sets the address of this Member.
307
307
 
308
- 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt)
308
+ 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为**私网IPv4**地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址必须在subnet_cidr_id对应的子网网段中,可以是**私网IPv4**或IPv6。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt)
309
309
 
310
310
  :param address: The address of this Member.
311
311
  :type address: str
@@ -69,7 +69,7 @@ class MemberInfo:
69
69
 
70
70
  The model defined in huaweicloud sdk
71
71
 
72
- :param id: 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
72
+ :param id: 后端服务器ID。 > 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
73
73
  :type id: str
74
74
  :param name: 后端服务器名称。注意:该名称并非ECS名称。
75
75
  :type name: str
@@ -79,13 +79,13 @@ class MemberInfo:
79
79
  :type pool_id: str
80
80
  :param admin_state_up: 后端服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
81
81
  :type admin_state_up: bool
82
- :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后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt)
82
+ :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后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为**私网IPv4**地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt)
83
83
  :type subnet_cidr_id: str
84
84
  :param protocol_port: 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。
85
85
  :type protocol_port: int
86
86
  :param weight: 后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。
87
87
  :type weight: int
88
- :param address: 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt)
88
+ :param address: 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为**私网IPv4**地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址必须在subnet_cidr_id对应的子网网段中,可以是**私网IPv4**或IPv6。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt)
89
89
  :type address: str
90
90
  :param ip_version: 当前后端服务器的IP地址版本,由后端系统自动根据传入的address字段确定。取值:v4、v6。
91
91
  :type ip_version: str
@@ -175,7 +175,7 @@ class MemberInfo:
175
175
  def id(self):
176
176
  r"""Gets the id of this MemberInfo.
177
177
 
178
- 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
178
+ 后端服务器ID。 > 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
179
179
 
180
180
  :return: The id of this MemberInfo.
181
181
  :rtype: str
@@ -186,7 +186,7 @@ class MemberInfo:
186
186
  def id(self, id):
187
187
  r"""Sets the id of this MemberInfo.
188
188
 
189
- 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
189
+ 后端服务器ID。 > 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
190
190
 
191
191
  :param id: The id of this MemberInfo.
192
192
  :type id: str
@@ -285,7 +285,7 @@ class MemberInfo:
285
285
  def subnet_cidr_id(self):
286
286
  r"""Gets the subnet_cidr_id of this MemberInfo.
287
287
 
288
- 后端服务器所在的子网,可以是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后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt)
288
+ 后端服务器所在的子网,可以是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后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为**私网IPv4**地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt)
289
289
 
290
290
  :return: The subnet_cidr_id of this MemberInfo.
291
291
  :rtype: str
@@ -296,7 +296,7 @@ class MemberInfo:
296
296
  def subnet_cidr_id(self, subnet_cidr_id):
297
297
  r"""Sets the subnet_cidr_id of this MemberInfo.
298
298
 
299
- 后端服务器所在的子网,可以是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后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt)
299
+ 后端服务器所在的子网,可以是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后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为**私网IPv4**地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt)
300
300
 
301
301
  :param subnet_cidr_id: The subnet_cidr_id of this MemberInfo.
302
302
  :type subnet_cidr_id: str
@@ -351,7 +351,7 @@ class MemberInfo:
351
351
  def address(self):
352
352
  r"""Gets the address of this MemberInfo.
353
353
 
354
- 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt)
354
+ 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为**私网IPv4**地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址必须在subnet_cidr_id对应的子网网段中,可以是**私网IPv4**或IPv6。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt)
355
355
 
356
356
  :return: The address of this MemberInfo.
357
357
  :rtype: str
@@ -362,7 +362,7 @@ class MemberInfo:
362
362
  def address(self, address):
363
363
  r"""Sets the address of this MemberInfo.
364
364
 
365
- 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt)
365
+ 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为**私网IPv4**地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址必须在subnet_cidr_id对应的子网网段中,可以是**私网IPv4**或IPv6。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt)
366
366
 
367
367
  :param address: The address of this MemberInfo.
368
368
  :type address: str
@@ -19,16 +19,20 @@ class MemberStatus:
19
19
  openapi_types = {
20
20
  'listener_id': 'str',
21
21
  'operating_status': 'str',
22
- 'reason': 'MemberHealthCheckFailedReason'
22
+ 'reason': 'MemberHealthCheckFailedReason',
23
+ 'created_at': 'str',
24
+ 'updated_at': 'str'
23
25
  }
24
26
 
25
27
  attribute_map = {
26
28
  'listener_id': 'listener_id',
27
29
  'operating_status': 'operating_status',
28
- 'reason': 'reason'
30
+ 'reason': 'reason',
31
+ 'created_at': 'created_at',
32
+ 'updated_at': 'updated_at'
29
33
  }
30
34
 
31
- def __init__(self, listener_id=None, operating_status=None, reason=None):
35
+ def __init__(self, listener_id=None, operating_status=None, reason=None, created_at=None, updated_at=None):
32
36
  r"""MemberStatus
33
37
 
34
38
  The model defined in huaweicloud sdk
@@ -39,6 +43,10 @@ class MemberStatus:
39
43
  :type operating_status: str
40
44
  :param reason:
41
45
  :type reason: :class:`huaweicloudsdkelb.v3.MemberHealthCheckFailedReason`
46
+ :param created_at: 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。
47
+ :type created_at: str
48
+ :param updated_at: 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。
49
+ :type updated_at: str
42
50
  """
43
51
 
44
52
 
@@ -46,12 +54,18 @@ class MemberStatus:
46
54
  self._listener_id = None
47
55
  self._operating_status = None
48
56
  self._reason = None
57
+ self._created_at = None
58
+ self._updated_at = None
49
59
  self.discriminator = None
50
60
 
51
61
  self.listener_id = listener_id
52
62
  self.operating_status = operating_status
53
63
  if reason is not None:
54
64
  self.reason = reason
65
+ if created_at is not None:
66
+ self.created_at = created_at
67
+ if updated_at is not None:
68
+ self.updated_at = updated_at
55
69
 
56
70
  @property
57
71
  def listener_id(self):
@@ -115,6 +129,50 @@ class MemberStatus:
115
129
  """
116
130
  self._reason = reason
117
131
 
132
+ @property
133
+ def created_at(self):
134
+ r"""Gets the created_at of this MemberStatus.
135
+
136
+ 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。
137
+
138
+ :return: The created_at of this MemberStatus.
139
+ :rtype: str
140
+ """
141
+ return self._created_at
142
+
143
+ @created_at.setter
144
+ def created_at(self, created_at):
145
+ r"""Sets the created_at of this MemberStatus.
146
+
147
+ 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。
148
+
149
+ :param created_at: The created_at of this MemberStatus.
150
+ :type created_at: str
151
+ """
152
+ self._created_at = created_at
153
+
154
+ @property
155
+ def updated_at(self):
156
+ r"""Gets the updated_at of this MemberStatus.
157
+
158
+ 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。
159
+
160
+ :return: The updated_at of this MemberStatus.
161
+ :rtype: str
162
+ """
163
+ return self._updated_at
164
+
165
+ @updated_at.setter
166
+ def updated_at(self, updated_at):
167
+ r"""Sets the updated_at of this MemberStatus.
168
+
169
+ 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。
170
+
171
+ :param updated_at: The updated_at of this MemberStatus.
172
+ :type updated_at: str
173
+ """
174
+ self._updated_at = updated_at
175
+
118
176
  def to_dict(self):
119
177
  """Returns the model properties as a dict"""
120
178
  result = {}
@@ -123,15 +123,15 @@ class Pool:
123
123
  :type protection_status: str
124
124
  :param protection_reason: 参数解释:设置保护的原因。作为protection_status的转态设置的原因。 约束限制:仅当protection_status为consoleProtection时有效。 取值范围:除'<'和'>'外通用Unicode字符集字符,最大255个字符。
125
125
  :type protection_reason: str
126
- :param any_port_enable: 参数解释:后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。取值:false不开启,true开启。 约束限制: - 仅QUIC,TCP,UDP的pool支持。
126
+ :param any_port_enable: 参数解释:后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。取值:false不开启,true开启。 约束限制: - 仅QUIC,TCP,UDP的pool支持。 [不支持该字段,请勿使用。](tag:hws_eu,hws_eu_wb,hws_test,dt,hcso_dt,ctc,cmcc,tm,sbc,hk_sbc,hk_tm,hk_vdf,srg,g42,hk_g42)
127
127
  :type any_port_enable: bool
128
128
  :param connection_drain:
129
129
  :type connection_drain: :class:`huaweicloudsdkelb.v3.ConnectionDrain`
130
- :param enterprise_project_id: 参数解释:IP地址组所在的企业项目ID。 [不支持该字段,请勿使用。](tag:dt,hcso_dt)
130
+ :param enterprise_project_id: 参数解释:后端服务器组所在的企业项目ID。
131
131
  :type enterprise_project_id: str
132
132
  :param pool_health:
133
133
  :type pool_health: :class:`huaweicloudsdkelb.v3.PoolHealth`
134
- :param public_border_group: 参数解释:网络公共边界组,如:center
134
+ :param public_border_group: 参数解释:网络公共边界组,如:center。 [不支持该字段,请勿使用。](tag:hws_eu,hws_eu_wb,hws_test,fcs,dt,hcso_dt,ctc,cmcc,tm,sbc,hk_sbc,hk_tm,hk_vdf,srg,g42,hk_g42)
135
135
  :type public_border_group: str
136
136
  :param quic_cid_hash_strategy:
137
137
  :type quic_cid_hash_strategy: :class:`huaweicloudsdkelb.v3.QuicCidHashStrategy`
@@ -664,7 +664,7 @@ class Pool:
664
664
  def any_port_enable(self):
665
665
  r"""Gets the any_port_enable of this Pool.
666
666
 
667
- 参数解释:后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。取值:false不开启,true开启。 约束限制: - 仅QUIC,TCP,UDP的pool支持。
667
+ 参数解释:后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。取值:false不开启,true开启。 约束限制: - 仅QUIC,TCP,UDP的pool支持。 [不支持该字段,请勿使用。](tag:hws_eu,hws_eu_wb,hws_test,dt,hcso_dt,ctc,cmcc,tm,sbc,hk_sbc,hk_tm,hk_vdf,srg,g42,hk_g42)
668
668
 
669
669
  :return: The any_port_enable of this Pool.
670
670
  :rtype: bool
@@ -675,7 +675,7 @@ class Pool:
675
675
  def any_port_enable(self, any_port_enable):
676
676
  r"""Sets the any_port_enable of this Pool.
677
677
 
678
- 参数解释:后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。取值:false不开启,true开启。 约束限制: - 仅QUIC,TCP,UDP的pool支持。
678
+ 参数解释:后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。取值:false不开启,true开启。 约束限制: - 仅QUIC,TCP,UDP的pool支持。 [不支持该字段,请勿使用。](tag:hws_eu,hws_eu_wb,hws_test,dt,hcso_dt,ctc,cmcc,tm,sbc,hk_sbc,hk_tm,hk_vdf,srg,g42,hk_g42)
679
679
 
680
680
  :param any_port_enable: The any_port_enable of this Pool.
681
681
  :type any_port_enable: bool
@@ -704,7 +704,7 @@ class Pool:
704
704
  def enterprise_project_id(self):
705
705
  r"""Gets the enterprise_project_id of this Pool.
706
706
 
707
- 参数解释:IP地址组所在的企业项目ID。 [不支持该字段,请勿使用。](tag:dt,hcso_dt)
707
+ 参数解释:后端服务器组所在的企业项目ID。
708
708
 
709
709
  :return: The enterprise_project_id of this Pool.
710
710
  :rtype: str
@@ -715,7 +715,7 @@ class Pool:
715
715
  def enterprise_project_id(self, enterprise_project_id):
716
716
  r"""Sets the enterprise_project_id of this Pool.
717
717
 
718
- 参数解释:IP地址组所在的企业项目ID。 [不支持该字段,请勿使用。](tag:dt,hcso_dt)
718
+ 参数解释:后端服务器组所在的企业项目ID。
719
719
 
720
720
  :param enterprise_project_id: The enterprise_project_id of this Pool.
721
721
  :type enterprise_project_id: str
@@ -744,7 +744,7 @@ class Pool:
744
744
  def public_border_group(self):
745
745
  r"""Gets the public_border_group of this Pool.
746
746
 
747
- 参数解释:网络公共边界组,如:center
747
+ 参数解释:网络公共边界组,如:center。 [不支持该字段,请勿使用。](tag:hws_eu,hws_eu_wb,hws_test,fcs,dt,hcso_dt,ctc,cmcc,tm,sbc,hk_sbc,hk_tm,hk_vdf,srg,g42,hk_g42)
748
748
 
749
749
  :return: The public_border_group of this Pool.
750
750
  :rtype: str
@@ -755,7 +755,7 @@ class Pool:
755
755
  def public_border_group(self, public_border_group):
756
756
  r"""Sets the public_border_group of this Pool.
757
757
 
758
- 参数解释:网络公共边界组,如:center
758
+ 参数解释:网络公共边界组,如:center。 [不支持该字段,请勿使用。](tag:hws_eu,hws_eu_wb,hws_test,fcs,dt,hcso_dt,ctc,cmcc,tm,sbc,hk_sbc,hk_tm,hk_vdf,srg,g42,hk_g42)
759
759
 
760
760
  :param public_border_group: The public_border_group of this Pool.
761
761
  :type public_border_group: str
@@ -29,7 +29,7 @@ class PoolHealth:
29
29
 
30
30
  The model defined in huaweicloud sdk
31
31
 
32
- :param minimum_healthy_member_count: 参数解释:当健康检查在线的member个数小于该个数,判定pool的state为不健康。 取值范围: - 0:默认值,不生效。 - 1:全下线转发生效。
32
+ :param minimum_healthy_member_count: 参数解释:当健康检查在线的member个数小于该个数,判定pool的state为不健康。 取值范围: - 0:默认值,不生效。 - 1:全下线转发生效。 [不支持该字段,请勿使用。](tag:hws_eu,hws_eu_wb,hws_test,fcs,dt,hcso_dt,ctc,cmcc,tm,sbc,hk_sbc,hk_tm,hk_vdf,srg,g42,hk_g42)
33
33
  :type minimum_healthy_member_count: int
34
34
  """
35
35
 
@@ -45,7 +45,7 @@ class PoolHealth:
45
45
  def minimum_healthy_member_count(self):
46
46
  r"""Gets the minimum_healthy_member_count of this PoolHealth.
47
47
 
48
- 参数解释:当健康检查在线的member个数小于该个数,判定pool的state为不健康。 取值范围: - 0:默认值,不生效。 - 1:全下线转发生效。
48
+ 参数解释:当健康检查在线的member个数小于该个数,判定pool的state为不健康。 取值范围: - 0:默认值,不生效。 - 1:全下线转发生效。 [不支持该字段,请勿使用。](tag:hws_eu,hws_eu_wb,hws_test,fcs,dt,hcso_dt,ctc,cmcc,tm,sbc,hk_sbc,hk_tm,hk_vdf,srg,g42,hk_g42)
49
49
 
50
50
  :return: The minimum_healthy_member_count of this PoolHealth.
51
51
  :rtype: int
@@ -56,7 +56,7 @@ class PoolHealth:
56
56
  def minimum_healthy_member_count(self, minimum_healthy_member_count):
57
57
  r"""Sets the minimum_healthy_member_count of this PoolHealth.
58
58
 
59
- 参数解释:当健康检查在线的member个数小于该个数,判定pool的state为不健康。 取值范围: - 0:默认值,不生效。 - 1:全下线转发生效。
59
+ 参数解释:当健康检查在线的member个数小于该个数,判定pool的state为不健康。 取值范围: - 0:默认值,不生效。 - 1:全下线转发生效。 [不支持该字段,请勿使用。](tag:hws_eu,hws_eu_wb,hws_test,fcs,dt,hcso_dt,ctc,cmcc,tm,sbc,hk_sbc,hk_tm,hk_vdf,srg,g42,hk_g42)
60
60
 
61
61
  :param minimum_healthy_member_count: The minimum_healthy_member_count of this PoolHealth.
62
62
  :type minimum_healthy_member_count: int
@@ -0,0 +1,168 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ProxyProtocolExtension:
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
+ 'vip_address': 'str',
21
+ 'ipv6_vip_address': 'str',
22
+ 'extension': 'Extension'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'vip_address': 'vip_address',
27
+ 'ipv6_vip_address': 'ipv6_vip_address',
28
+ 'extension': 'extension'
29
+ }
30
+
31
+ def __init__(self, vip_address=None, ipv6_vip_address=None, extension=None):
32
+ r"""ProxyProtocolExtension
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param vip_address: ipv4 vip地址
37
+ :type vip_address: str
38
+ :param ipv6_vip_address: ipv6 vip地址
39
+ :type ipv6_vip_address: str
40
+ :param extension:
41
+ :type extension: :class:`huaweicloudsdkelb.v3.Extension`
42
+ """
43
+
44
+
45
+
46
+ self._vip_address = None
47
+ self._ipv6_vip_address = None
48
+ self._extension = None
49
+ self.discriminator = None
50
+
51
+ if vip_address is not None:
52
+ self.vip_address = vip_address
53
+ if ipv6_vip_address is not None:
54
+ self.ipv6_vip_address = ipv6_vip_address
55
+ self.extension = extension
56
+
57
+ @property
58
+ def vip_address(self):
59
+ r"""Gets the vip_address of this ProxyProtocolExtension.
60
+
61
+ ipv4 vip地址
62
+
63
+ :return: The vip_address of this ProxyProtocolExtension.
64
+ :rtype: str
65
+ """
66
+ return self._vip_address
67
+
68
+ @vip_address.setter
69
+ def vip_address(self, vip_address):
70
+ r"""Sets the vip_address of this ProxyProtocolExtension.
71
+
72
+ ipv4 vip地址
73
+
74
+ :param vip_address: The vip_address of this ProxyProtocolExtension.
75
+ :type vip_address: str
76
+ """
77
+ self._vip_address = vip_address
78
+
79
+ @property
80
+ def ipv6_vip_address(self):
81
+ r"""Gets the ipv6_vip_address of this ProxyProtocolExtension.
82
+
83
+ ipv6 vip地址
84
+
85
+ :return: The ipv6_vip_address of this ProxyProtocolExtension.
86
+ :rtype: str
87
+ """
88
+ return self._ipv6_vip_address
89
+
90
+ @ipv6_vip_address.setter
91
+ def ipv6_vip_address(self, ipv6_vip_address):
92
+ r"""Sets the ipv6_vip_address of this ProxyProtocolExtension.
93
+
94
+ ipv6 vip地址
95
+
96
+ :param ipv6_vip_address: The ipv6_vip_address of this ProxyProtocolExtension.
97
+ :type ipv6_vip_address: str
98
+ """
99
+ self._ipv6_vip_address = ipv6_vip_address
100
+
101
+ @property
102
+ def extension(self):
103
+ r"""Gets the extension of this ProxyProtocolExtension.
104
+
105
+ :return: The extension of this ProxyProtocolExtension.
106
+ :rtype: :class:`huaweicloudsdkelb.v3.Extension`
107
+ """
108
+ return self._extension
109
+
110
+ @extension.setter
111
+ def extension(self, extension):
112
+ r"""Sets the extension of this ProxyProtocolExtension.
113
+
114
+ :param extension: The extension of this ProxyProtocolExtension.
115
+ :type extension: :class:`huaweicloudsdkelb.v3.Extension`
116
+ """
117
+ self._extension = extension
118
+
119
+ def to_dict(self):
120
+ """Returns the model properties as a dict"""
121
+ result = {}
122
+
123
+ for attr, _ in six.iteritems(self.openapi_types):
124
+ value = getattr(self, attr)
125
+ if isinstance(value, list):
126
+ result[attr] = list(map(
127
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
128
+ value
129
+ ))
130
+ elif hasattr(value, "to_dict"):
131
+ result[attr] = value.to_dict()
132
+ elif isinstance(value, dict):
133
+ result[attr] = dict(map(
134
+ lambda item: (item[0], item[1].to_dict())
135
+ if hasattr(item[1], "to_dict") else item,
136
+ value.items()
137
+ ))
138
+ else:
139
+ if attr in self.sensitive_list:
140
+ result[attr] = "****"
141
+ else:
142
+ result[attr] = value
143
+
144
+ return result
145
+
146
+ def to_str(self):
147
+ """Returns the string representation of the model"""
148
+ import simplejson as json
149
+ if six.PY2:
150
+ import sys
151
+ reload(sys)
152
+ sys.setdefaultencoding("utf-8")
153
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
154
+
155
+ def __repr__(self):
156
+ """For `print`"""
157
+ return self.to_str()
158
+
159
+ def __eq__(self, other):
160
+ """Returns true if both objects are equal"""
161
+ if not isinstance(other, ProxyProtocolExtension):
162
+ return False
163
+
164
+ return self.__dict__ == other.__dict__
165
+
166
+ def __ne__(self, other):
167
+ """Returns true if both objects are not equal"""
168
+ return not self == other