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.
- huaweicloudsdkelb/v3/__init__.py +39 -0
- huaweicloudsdkelb/v3/elb_async_client.py +742 -22
- huaweicloudsdkelb/v3/elb_client.py +742 -22
- huaweicloudsdkelb/v3/model/__init__.py +39 -0
- huaweicloudsdkelb/v3/model/availability_zone.py +6 -6
- huaweicloudsdkelb/v3/model/base_job.py +347 -0
- huaweicloudsdkelb/v3/model/batch_add_available_zones_response.py +6 -6
- huaweicloudsdkelb/v3/model/batch_create_load_balancer_option.py +1022 -0
- huaweicloudsdkelb/v3/model/batch_create_load_balancers_request.py +111 -0
- huaweicloudsdkelb/v3/model/batch_create_load_balancers_request_body.py +110 -0
- huaweicloudsdkelb/v3/model/batch_create_load_balancers_response.py +203 -0
- huaweicloudsdkelb/v3/model/batch_member.py +38 -13
- huaweicloudsdkelb/v3/model/batch_update_member.py +32 -7
- huaweicloudsdkelb/v3/model/batch_update_priority_request_body.py +3 -3
- huaweicloudsdkelb/v3/model/certificate_info.py +39 -10
- huaweicloudsdkelb/v3/model/clone_loadbalancer_request.py +139 -0
- huaweicloudsdkelb/v3/model/clone_loadbalancer_request_body.py +139 -0
- huaweicloudsdkelb/v3/model/clone_loadbalancer_response.py +174 -0
- huaweicloudsdkelb/v3/model/clone_loadbalancer_response_body_loadbalancer_list.py +115 -0
- huaweicloudsdkelb/v3/model/cors_config.py +260 -0
- huaweicloudsdkelb/v3/model/count_preoccupy_ip_num_request.py +73 -15
- huaweicloudsdkelb/v3/model/create_certificate_option.py +35 -6
- huaweicloudsdkelb/v3/model/create_cors_config.py +260 -0
- huaweicloudsdkelb/v3/model/create_health_monitor_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_l7_policy_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_listener_option.py +126 -39
- huaweicloudsdkelb/v3/model/create_load_balancer_bandwidth_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_load_balancer_option.py +36 -36
- huaweicloudsdkelb/v3/model/create_load_balancer_public_ip_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_load_balancer_response.py +6 -6
- huaweicloudsdkelb/v3/model/create_master_slave_member_option.py +2 -1
- huaweicloudsdkelb/v3/model/create_master_slave_pool_option.py +31 -6
- huaweicloudsdkelb/v3/model/create_member_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_pool_option.py +46 -21
- huaweicloudsdkelb/v3/model/create_pool_session_persistence_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py +28 -3
- huaweicloudsdkelb/v3/model/create_redirect_url_config.py +3 -3
- huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_option.py +144 -0
- huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_request.py +139 -0
- huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_request_body.py +110 -0
- huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_response.py +85 -0
- huaweicloudsdkelb/v3/model/delete_pool_cascade_request.py +114 -0
- huaweicloudsdkelb/v3/model/delete_pool_cascade_response.py +85 -0
- huaweicloudsdkelb/v3/model/feature_config.py +394 -0
- huaweicloudsdkelb/v3/model/flavor.py +9 -9
- huaweicloudsdkelb/v3/model/global_eip_info.py +3 -3
- huaweicloudsdkelb/v3/model/health_monitor.py +9 -9
- huaweicloudsdkelb/v3/model/job_entities.py +144 -0
- huaweicloudsdkelb/v3/model/l7_policy.py +44 -15
- huaweicloudsdkelb/v3/model/l7_rule.py +9 -9
- huaweicloudsdkelb/v3/model/list_all_members_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_availability_zones_request.py +35 -6
- huaweicloudsdkelb/v3/model/list_certificates_request.py +30 -1
- huaweicloudsdkelb/v3/model/list_feature_configs_request.py +115 -0
- huaweicloudsdkelb/v3/model/list_feature_configs_response.py +170 -0
- huaweicloudsdkelb/v3/model/list_flavors_request.py +119 -3
- huaweicloudsdkelb/v3/model/list_health_monitors_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_ip_groups_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_jobs_request.py +260 -0
- huaweicloudsdkelb/v3/model/list_jobs_response.py +145 -0
- huaweicloudsdkelb/v3/model/list_l7_policies_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_l7_rules_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_listeners_request.py +79 -21
- huaweicloudsdkelb/v3/model/list_load_balancers_request.py +15 -15
- huaweicloudsdkelb/v3/model/list_loadbalancer_feature_request.py +114 -0
- huaweicloudsdkelb/v3/model/list_loadbalancer_feature_response.py +145 -0
- huaweicloudsdkelb/v3/model/list_logtanks_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_members_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_pools_request.py +67 -9
- huaweicloudsdkelb/v3/model/list_quota_details_request.py +3 -3
- huaweicloudsdkelb/v3/model/listener.py +154 -39
- huaweicloudsdkelb/v3/model/load_balancer.py +21 -21
- huaweicloudsdkelb/v3/model/load_balancer_status_policy.py +3 -3
- huaweicloudsdkelb/v3/model/loadbalancer_feature.py +170 -0
- huaweicloudsdkelb/v3/model/main_job.py +376 -0
- huaweicloudsdkelb/v3/model/master_slave_member.py +26 -1
- huaweicloudsdkelb/v3/model/master_slave_pool.py +37 -12
- huaweicloudsdkelb/v3/model/member.py +32 -7
- huaweicloudsdkelb/v3/model/member_health_check_failed_reason.py +170 -0
- huaweicloudsdkelb/v3/model/member_info.py +34 -9
- huaweicloudsdkelb/v3/model/member_status.py +28 -3
- huaweicloudsdkelb/v3/model/pool.py +43 -18
- huaweicloudsdkelb/v3/model/quic_cid_hash_strategy.py +142 -0
- huaweicloudsdkelb/v3/model/quota.py +87 -3
- huaweicloudsdkelb/v3/model/quota_info.py +3 -3
- huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py +28 -3
- huaweicloudsdkelb/v3/model/session_persistence.py +6 -6
- huaweicloudsdkelb/v3/model/show_ip_group_related_listeners_request.py +114 -0
- huaweicloudsdkelb/v3/model/show_ip_group_related_listeners_response.py +116 -0
- huaweicloudsdkelb/v3/model/show_job_request.py +114 -0
- huaweicloudsdkelb/v3/model/show_job_response.py +141 -0
- huaweicloudsdkelb/v3/model/sub_job.py +376 -0
- huaweicloudsdkelb/v3/model/target_loadbalancer_param.py +434 -0
- huaweicloudsdkelb/v3/model/update_certificate_option.py +35 -6
- huaweicloudsdkelb/v3/model/update_health_monitor_option.py +3 -3
- huaweicloudsdkelb/v3/model/update_l7_policy_option.py +3 -3
- huaweicloudsdkelb/v3/model/update_listener_option.py +120 -33
- huaweicloudsdkelb/v3/model/update_load_balancer_option.py +15 -15
- huaweicloudsdkelb/v3/model/update_load_balancer_response.py +6 -6
- huaweicloudsdkelb/v3/model/update_pool_option.py +31 -6
- huaweicloudsdkelb/v3/model/update_pool_session_persistence_option.py +6 -6
- huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py +28 -3
- huaweicloudsdkelb/v3/model/upgrade_loadbalancer_request.py +139 -0
- huaweicloudsdkelb/v3/model/upgrade_loadbalancer_response.py +145 -0
- huaweicloudsdkelb/v3/model/upgrade_prepaid_option.py +200 -0
- huaweicloudsdkelb/v3/model/upgrade_v3_request_body.py +313 -0
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/METADATA +2 -2
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/RECORD +112 -73
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/LICENSE +0 -0
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/WHEEL +0 -0
- {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/top_level.txt +0 -0
@@ -165,25 +165,25 @@ class LoadBalancer:
|
|
165
165
|
:type availability_zone_list: list[str]
|
166
166
|
:param enterprise_project_id: 参数解释:企业项目ID。创建时不传则返回\"0\",表示资源属于default企业项目。 注意:\"0\"并不是真实存在的企业项目ID,在创建、更新和查询时不能作为请求参数传入。 [不支持该字段,请勿使用](tag:dt,dt_test,hcso_dt)
|
167
167
|
:type enterprise_project_id: str
|
168
|
-
:param billing_info: 参数解释:资源账单信息。 取值范围: - 空:按需计费。 [-
|
168
|
+
:param billing_info: 参数解释:资源账单信息。 取值范围: - 空:按需计费。 [- 非空:包周期计费,格式为:order_id:product_id:region_id:project_id。如:CS2107161019CDJZZ:OFFI569702121789763584:az1:057ef081eb00d2732fd1c01a9be75e6f](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)
|
169
169
|
:type billing_info: str
|
170
|
-
:param l4_flavor_id: 参数解释:网络型规格ID。 对于弹性扩缩容实例,表示上限规格。 约束限制: - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费; - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:
|
170
|
+
:param l4_flavor_id: 参数解释:网络型规格ID。 对于弹性扩缩容实例,表示上限规格。 约束限制: - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费; - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hk_vdf,srg,fcs)
|
171
171
|
:type l4_flavor_id: str
|
172
172
|
:param l4_scale_flavor_id: 参数解释:四层弹性Flavor ID。 不支持该字段,请勿使用。
|
173
173
|
:type l4_scale_flavor_id: str
|
174
|
-
:param l7_flavor_id: 参数解释:应用型ID。 对于弹性扩缩容实例,表示上限规格ID。 约束限制: - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费; - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:
|
174
|
+
:param l7_flavor_id: 参数解释:应用型ID。 对于弹性扩缩容实例,表示上限规格ID。 约束限制: - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费; - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hk_vdf,srg,fcs)
|
175
175
|
:type l7_flavor_id: str
|
176
176
|
:param l7_scale_flavor_id: 参数解释:七层弹性Flavor ID。 不支持该字段,请勿使用。
|
177
177
|
:type l7_scale_flavor_id: str
|
178
178
|
:param publicips: 参数解释:负载均衡器绑定的公网IP。只支持绑定一个公网IP。 注:该字段与eips一致。
|
179
179
|
:type publicips: list[:class:`huaweicloudsdkelb.v3.PublicIpInfo`]
|
180
|
-
:param global_eips: 参数解释:负载均衡器绑定的global eip。 约束限制:只支持绑定一个globaleip。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs,ctc,ocb,hws_ocb)
|
180
|
+
:param global_eips: 参数解释:负载均衡器绑定的global eip。 约束限制:只支持绑定一个globaleip。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,srg,fcs,ctc,ocb,hws_ocb)
|
181
181
|
:type global_eips: list[:class:`huaweicloudsdkelb.v3.GlobalEipInfo`]
|
182
182
|
:param elb_virsubnet_ids: 参数解释:下联面子网的网络ID列表。
|
183
183
|
:type elb_virsubnet_ids: list[str]
|
184
184
|
:param elb_virsubnet_type: 参数解释:下联面子网类型。 取值范围: - ipv4:ipv4 - dualstack:双栈
|
185
185
|
:type elb_virsubnet_type: str
|
186
|
-
:param ip_target_enable: 参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [- 网关型LB不支持该特性。](tag:hws_eu) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
186
|
+
:param ip_target_enable: 参数解释:是否启用跨VPC后端转发。 [开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt,hcso_dt,hws_eu) [开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他云、云下数据中心的服务器。](tag:srg,fcs) 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt) [- 网关型LB不支持该特性。](tag:hws_eu) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
187
187
|
:type ip_target_enable: bool
|
188
188
|
:param frozen_scene: 参数解释:负载均衡器的冻结场景。 [若负载均衡器有多个冻结场景,用逗号分隔。 取值范围: - POLICE:公安冻结场景。 - ILLEGAL:违规冻结场景。 - VERIFY:客户未实名认证冻结场景。 - PARTNER:合作伙伴冻结(合作伙伴冻结子客户资源)。 - AREAR:欠费冻结场景。](tag:hws,hws_hk) [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,ocb,hws_ocb)
|
189
189
|
:type frozen_scene: str
|
@@ -197,11 +197,11 @@ class LoadBalancer:
|
|
197
197
|
:type public_border_group: str
|
198
198
|
:param charge_mode: 参数解释:负载均衡器实例的计费模式。 取值范围: - flavor:按规格计费 - lcu:按使用量计费 - 空值:若是共享型表示免费实例。若是独享型则与flavor模式一致,都是按规格计费。
|
199
199
|
:type charge_mode: str
|
200
|
-
:param waf_failure_action: 参数解释:WAF故障时的流量处理策略。 约束限制:只有绑定了waf的LB实例,该字段才会生效。 取值范围:discard:丢弃,forward: 转发到后端。 默认取值:forward [不支持该字段,请勿使用。](tag:
|
200
|
+
:param waf_failure_action: 参数解释:WAF故障时的流量处理策略。 约束限制:只有绑定了waf的LB实例,该字段才会生效。 取值范围:discard:丢弃,forward: 转发到后端。 默认取值:forward [不支持该字段,请勿使用。](tag:hws_eu,hws_test,hcs,hcs_sm,hcso,hk_vdf,srg,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b,hcso_dt,dt,dt_test,ocb,ctc,cmcc,tm,ct,sbc,g42,hws_ocb,hk_sbc,hk_tm,hk_g42)
|
201
201
|
:type waf_failure_action: str
|
202
202
|
:param protection_status: 参数解释:修改保护状态。 取值范围: - nonProtection: 不保护。 - consoleProtection: 控制台修改保护。 默认取值:nonProtection
|
203
203
|
:type protection_status: str
|
204
|
-
:param protection_reason:
|
204
|
+
:param protection_reason: 参数解释:设置保护的原因。作为protection_status的转态设置的原因。 约束限制:仅当protection_status为consoleProtection时有效。 取值范围:除'<'和'>'外通用Unicode字符集字符,最大255个字符。
|
205
205
|
:type protection_reason: str
|
206
206
|
:param log_group_id: 参数解释:LB所绑定的logtank对应的group id
|
207
207
|
:type log_group_id: str
|
@@ -845,7 +845,7 @@ class LoadBalancer:
|
|
845
845
|
def billing_info(self):
|
846
846
|
"""Gets the billing_info of this LoadBalancer.
|
847
847
|
|
848
|
-
参数解释:资源账单信息。 取值范围: - 空:按需计费。 [-
|
848
|
+
参数解释:资源账单信息。 取值范围: - 空:按需计费。 [- 非空:包周期计费,格式为:order_id:product_id:region_id:project_id。如:CS2107161019CDJZZ:OFFI569702121789763584:az1:057ef081eb00d2732fd1c01a9be75e6f](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)
|
849
849
|
|
850
850
|
:return: The billing_info of this LoadBalancer.
|
851
851
|
:rtype: str
|
@@ -856,7 +856,7 @@ class LoadBalancer:
|
|
856
856
|
def billing_info(self, billing_info):
|
857
857
|
"""Sets the billing_info of this LoadBalancer.
|
858
858
|
|
859
|
-
参数解释:资源账单信息。 取值范围: - 空:按需计费。 [-
|
859
|
+
参数解释:资源账单信息。 取值范围: - 空:按需计费。 [- 非空:包周期计费,格式为:order_id:product_id:region_id:project_id。如:CS2107161019CDJZZ:OFFI569702121789763584:az1:057ef081eb00d2732fd1c01a9be75e6f](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)
|
860
860
|
|
861
861
|
:param billing_info: The billing_info of this LoadBalancer.
|
862
862
|
:type billing_info: str
|
@@ -867,7 +867,7 @@ class LoadBalancer:
|
|
867
867
|
def l4_flavor_id(self):
|
868
868
|
"""Gets the l4_flavor_id of this LoadBalancer.
|
869
869
|
|
870
|
-
参数解释:网络型规格ID。 对于弹性扩缩容实例,表示上限规格。 约束限制: - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费; - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:
|
870
|
+
参数解释:网络型规格ID。 对于弹性扩缩容实例,表示上限规格。 约束限制: - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费; - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hk_vdf,srg,fcs)
|
871
871
|
|
872
872
|
:return: The l4_flavor_id of this LoadBalancer.
|
873
873
|
:rtype: str
|
@@ -878,7 +878,7 @@ class LoadBalancer:
|
|
878
878
|
def l4_flavor_id(self, l4_flavor_id):
|
879
879
|
"""Sets the l4_flavor_id of this LoadBalancer.
|
880
880
|
|
881
|
-
参数解释:网络型规格ID。 对于弹性扩缩容实例,表示上限规格。 约束限制: - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费; - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:
|
881
|
+
参数解释:网络型规格ID。 对于弹性扩缩容实例,表示上限规格。 约束限制: - 当传入的规格类型为L4,表示该实例为固定规格实例,按规格计费; - 当传入的规格类型为L4_elastic_max,表示该实例为弹性实例,按LCU计费 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hk_vdf,srg,fcs)
|
882
882
|
|
883
883
|
:param l4_flavor_id: The l4_flavor_id of this LoadBalancer.
|
884
884
|
:type l4_flavor_id: str
|
@@ -911,7 +911,7 @@ class LoadBalancer:
|
|
911
911
|
def l7_flavor_id(self):
|
912
912
|
"""Gets the l7_flavor_id of this LoadBalancer.
|
913
913
|
|
914
|
-
参数解释:应用型ID。 对于弹性扩缩容实例,表示上限规格ID。 约束限制: - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费; - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:
|
914
|
+
参数解释:应用型ID。 对于弹性扩缩容实例,表示上限规格ID。 约束限制: - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费; - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hk_vdf,srg,fcs)
|
915
915
|
|
916
916
|
:return: The l7_flavor_id of this LoadBalancer.
|
917
917
|
:rtype: str
|
@@ -922,7 +922,7 @@ class LoadBalancer:
|
|
922
922
|
def l7_flavor_id(self, l7_flavor_id):
|
923
923
|
"""Sets the l7_flavor_id of this LoadBalancer.
|
924
924
|
|
925
|
-
参数解释:应用型ID。 对于弹性扩缩容实例,表示上限规格ID。 约束限制: - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费; - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:
|
925
|
+
参数解释:应用型ID。 对于弹性扩缩容实例,表示上限规格ID。 约束限制: - 当传入的规格类型为L7,表示该实例为固定规格实例,按规格计费; - 当传入的规格类型为L7_elastic_max,表示该实例为弹性实例,按LCU计费 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hk_vdf,srg,fcs)
|
926
926
|
|
927
927
|
:param l7_flavor_id: The l7_flavor_id of this LoadBalancer.
|
928
928
|
:type l7_flavor_id: str
|
@@ -977,7 +977,7 @@ class LoadBalancer:
|
|
977
977
|
def global_eips(self):
|
978
978
|
"""Gets the global_eips of this LoadBalancer.
|
979
979
|
|
980
|
-
参数解释:负载均衡器绑定的global eip。 约束限制:只支持绑定一个globaleip。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs,ctc,ocb,hws_ocb)
|
980
|
+
参数解释:负载均衡器绑定的global eip。 约束限制:只支持绑定一个globaleip。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,srg,fcs,ctc,ocb,hws_ocb)
|
981
981
|
|
982
982
|
:return: The global_eips of this LoadBalancer.
|
983
983
|
:rtype: list[:class:`huaweicloudsdkelb.v3.GlobalEipInfo`]
|
@@ -988,7 +988,7 @@ class LoadBalancer:
|
|
988
988
|
def global_eips(self, global_eips):
|
989
989
|
"""Sets the global_eips of this LoadBalancer.
|
990
990
|
|
991
|
-
参数解释:负载均衡器绑定的global eip。 约束限制:只支持绑定一个globaleip。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,fcs,ctc,ocb,hws_ocb)
|
991
|
+
参数解释:负载均衡器绑定的global eip。 约束限制:只支持绑定一个globaleip。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,hk_vdf,srg,fcs,ctc,ocb,hws_ocb)
|
992
992
|
|
993
993
|
:param global_eips: The global_eips of this LoadBalancer.
|
994
994
|
:type global_eips: list[:class:`huaweicloudsdkelb.v3.GlobalEipInfo`]
|
@@ -1043,7 +1043,7 @@ class LoadBalancer:
|
|
1043
1043
|
def ip_target_enable(self):
|
1044
1044
|
"""Gets the ip_target_enable of this LoadBalancer.
|
1045
1045
|
|
1046
|
-
参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [- 网关型LB不支持该特性。](tag:hws_eu) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
1046
|
+
参数解释:是否启用跨VPC后端转发。 [开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt,hcso_dt,hws_eu) [开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他云、云下数据中心的服务器。](tag:srg,fcs) 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt) [- 网关型LB不支持该特性。](tag:hws_eu) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
1047
1047
|
|
1048
1048
|
:return: The ip_target_enable of this LoadBalancer.
|
1049
1049
|
:rtype: bool
|
@@ -1054,7 +1054,7 @@ class LoadBalancer:
|
|
1054
1054
|
def ip_target_enable(self, ip_target_enable):
|
1055
1055
|
"""Sets the ip_target_enable of this LoadBalancer.
|
1056
1056
|
|
1057
|
-
参数解释:是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [- 网关型LB不支持该特性。](tag:hws_eu) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
1057
|
+
参数解释:是否启用跨VPC后端转发。 [开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt,hcso_dt,hws_eu) [开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他云、云下数据中心的服务器。](tag:srg,fcs) 约束限制: - 开启后不能关闭。 - 使用共享VPC的实例使用此特性时,需确保共享资源所有者已开通VPC对等连接,否则通信异常。 [- 仅独享型负载均衡器支持该特性。](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt) [- 网关型LB不支持该特性。](tag:hws_eu) 取值范围: - true:开启。 - false:不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
1058
1058
|
|
1059
1059
|
:param ip_target_enable: The ip_target_enable of this LoadBalancer.
|
1060
1060
|
:type ip_target_enable: bool
|
@@ -1189,7 +1189,7 @@ class LoadBalancer:
|
|
1189
1189
|
def waf_failure_action(self):
|
1190
1190
|
"""Gets the waf_failure_action of this LoadBalancer.
|
1191
1191
|
|
1192
|
-
参数解释:WAF故障时的流量处理策略。 约束限制:只有绑定了waf的LB实例,该字段才会生效。 取值范围:discard:丢弃,forward: 转发到后端。 默认取值:forward [不支持该字段,请勿使用。](tag:
|
1192
|
+
参数解释:WAF故障时的流量处理策略。 约束限制:只有绑定了waf的LB实例,该字段才会生效。 取值范围:discard:丢弃,forward: 转发到后端。 默认取值:forward [不支持该字段,请勿使用。](tag:hws_eu,hws_test,hcs,hcs_sm,hcso,hk_vdf,srg,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b,hcso_dt,dt,dt_test,ocb,ctc,cmcc,tm,ct,sbc,g42,hws_ocb,hk_sbc,hk_tm,hk_g42)
|
1193
1193
|
|
1194
1194
|
:return: The waf_failure_action of this LoadBalancer.
|
1195
1195
|
:rtype: str
|
@@ -1200,7 +1200,7 @@ class LoadBalancer:
|
|
1200
1200
|
def waf_failure_action(self, waf_failure_action):
|
1201
1201
|
"""Sets the waf_failure_action of this LoadBalancer.
|
1202
1202
|
|
1203
|
-
参数解释:WAF故障时的流量处理策略。 约束限制:只有绑定了waf的LB实例,该字段才会生效。 取值范围:discard:丢弃,forward: 转发到后端。 默认取值:forward [不支持该字段,请勿使用。](tag:
|
1203
|
+
参数解释:WAF故障时的流量处理策略。 约束限制:只有绑定了waf的LB实例,该字段才会生效。 取值范围:discard:丢弃,forward: 转发到后端。 默认取值:forward [不支持该字段,请勿使用。](tag:hws_eu,hws_test,hcs,hcs_sm,hcso,hk_vdf,srg,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b,hcso_dt,dt,dt_test,ocb,ctc,cmcc,tm,ct,sbc,g42,hws_ocb,hk_sbc,hk_tm,hk_g42)
|
1204
1204
|
|
1205
1205
|
:param waf_failure_action: The waf_failure_action of this LoadBalancer.
|
1206
1206
|
:type waf_failure_action: str
|
@@ -1233,7 +1233,7 @@ class LoadBalancer:
|
|
1233
1233
|
def protection_reason(self):
|
1234
1234
|
"""Gets the protection_reason of this LoadBalancer.
|
1235
1235
|
|
1236
|
-
|
1236
|
+
参数解释:设置保护的原因。作为protection_status的转态设置的原因。 约束限制:仅当protection_status为consoleProtection时有效。 取值范围:除'<'和'>'外通用Unicode字符集字符,最大255个字符。
|
1237
1237
|
|
1238
1238
|
:return: The protection_reason of this LoadBalancer.
|
1239
1239
|
:rtype: str
|
@@ -1244,7 +1244,7 @@ class LoadBalancer:
|
|
1244
1244
|
def protection_reason(self, protection_reason):
|
1245
1245
|
"""Sets the protection_reason of this LoadBalancer.
|
1246
1246
|
|
1247
|
-
|
1247
|
+
参数解释:设置保护的原因。作为protection_status的转态设置的原因。 约束限制:仅当protection_status为consoleProtection时有效。 取值范围:除'<'和'>'外通用Unicode字符集字符,最大255个字符。
|
1248
1248
|
|
1249
1249
|
:param protection_reason: The protection_reason of this LoadBalancer.
|
1250
1250
|
:type protection_reason: str
|
@@ -41,7 +41,7 @@ class LoadBalancerStatusPolicy:
|
|
41
41
|
:type action: str
|
42
42
|
:param id: 转发策略ID。
|
43
43
|
:type id: str
|
44
|
-
:param provisioning_status: 转发策略的配置状态。 取值范围: - ACTIVE: 默认值,表示正常。 [- ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs)
|
44
|
+
:param provisioning_status: 转发策略的配置状态。 取值范围: - ACTIVE: 默认值,表示正常。 [- ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs)
|
45
45
|
:type provisioning_status: str
|
46
46
|
:param name: 转发策略名称。
|
47
47
|
:type name: str
|
@@ -117,7 +117,7 @@ class LoadBalancerStatusPolicy:
|
|
117
117
|
def provisioning_status(self):
|
118
118
|
"""Gets the provisioning_status of this LoadBalancerStatusPolicy.
|
119
119
|
|
120
|
-
转发策略的配置状态。 取值范围: - ACTIVE: 默认值,表示正常。 [- ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs)
|
120
|
+
转发策略的配置状态。 取值范围: - ACTIVE: 默认值,表示正常。 [- ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs)
|
121
121
|
|
122
122
|
:return: The provisioning_status of this LoadBalancerStatusPolicy.
|
123
123
|
:rtype: str
|
@@ -128,7 +128,7 @@ class LoadBalancerStatusPolicy:
|
|
128
128
|
def provisioning_status(self, provisioning_status):
|
129
129
|
"""Sets the provisioning_status of this LoadBalancerStatusPolicy.
|
130
130
|
|
131
|
-
转发策略的配置状态。 取值范围: - ACTIVE: 默认值,表示正常。 [- ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs)
|
131
|
+
转发策略的配置状态。 取值范围: - ACTIVE: 默认值,表示正常。 [- ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs)
|
132
132
|
|
133
133
|
:param provisioning_status: The provisioning_status of this LoadBalancerStatusPolicy.
|
134
134
|
:type provisioning_status: str
|
@@ -0,0 +1,170 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class LoadbalancerFeature:
|
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
|
+
'feature': 'str',
|
21
|
+
'type': 'str',
|
22
|
+
'value': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'feature': 'feature',
|
27
|
+
'type': 'type',
|
28
|
+
'value': 'value'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, feature=None, type=None, value=None):
|
32
|
+
"""LoadbalancerFeature
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param feature: 参数解释:特性名称。
|
37
|
+
:type feature: str
|
38
|
+
:param type: 参数解释:特性值(value字段)的类型,如:INT,表示整型。
|
39
|
+
:type type: str
|
40
|
+
:param value: 参数解释:特性值。如开关类型的特性取值true/false,表示特性开启关闭;配额类型的特性取值整数,表示限制配额。
|
41
|
+
:type value: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._feature = None
|
47
|
+
self._type = None
|
48
|
+
self._value = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.feature = feature
|
52
|
+
self.type = type
|
53
|
+
self.value = value
|
54
|
+
|
55
|
+
@property
|
56
|
+
def feature(self):
|
57
|
+
"""Gets the feature of this LoadbalancerFeature.
|
58
|
+
|
59
|
+
参数解释:特性名称。
|
60
|
+
|
61
|
+
:return: The feature of this LoadbalancerFeature.
|
62
|
+
:rtype: str
|
63
|
+
"""
|
64
|
+
return self._feature
|
65
|
+
|
66
|
+
@feature.setter
|
67
|
+
def feature(self, feature):
|
68
|
+
"""Sets the feature of this LoadbalancerFeature.
|
69
|
+
|
70
|
+
参数解释:特性名称。
|
71
|
+
|
72
|
+
:param feature: The feature of this LoadbalancerFeature.
|
73
|
+
:type feature: str
|
74
|
+
"""
|
75
|
+
self._feature = feature
|
76
|
+
|
77
|
+
@property
|
78
|
+
def type(self):
|
79
|
+
"""Gets the type of this LoadbalancerFeature.
|
80
|
+
|
81
|
+
参数解释:特性值(value字段)的类型,如:INT,表示整型。
|
82
|
+
|
83
|
+
:return: The type of this LoadbalancerFeature.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._type
|
87
|
+
|
88
|
+
@type.setter
|
89
|
+
def type(self, type):
|
90
|
+
"""Sets the type of this LoadbalancerFeature.
|
91
|
+
|
92
|
+
参数解释:特性值(value字段)的类型,如:INT,表示整型。
|
93
|
+
|
94
|
+
:param type: The type of this LoadbalancerFeature.
|
95
|
+
:type type: str
|
96
|
+
"""
|
97
|
+
self._type = type
|
98
|
+
|
99
|
+
@property
|
100
|
+
def value(self):
|
101
|
+
"""Gets the value of this LoadbalancerFeature.
|
102
|
+
|
103
|
+
参数解释:特性值。如开关类型的特性取值true/false,表示特性开启关闭;配额类型的特性取值整数,表示限制配额。
|
104
|
+
|
105
|
+
:return: The value of this LoadbalancerFeature.
|
106
|
+
:rtype: str
|
107
|
+
"""
|
108
|
+
return self._value
|
109
|
+
|
110
|
+
@value.setter
|
111
|
+
def value(self, value):
|
112
|
+
"""Sets the value of this LoadbalancerFeature.
|
113
|
+
|
114
|
+
参数解释:特性值。如开关类型的特性取值true/false,表示特性开启关闭;配额类型的特性取值整数,表示限制配额。
|
115
|
+
|
116
|
+
:param value: The value of this LoadbalancerFeature.
|
117
|
+
:type value: str
|
118
|
+
"""
|
119
|
+
self._value = value
|
120
|
+
|
121
|
+
def to_dict(self):
|
122
|
+
"""Returns the model properties as a dict"""
|
123
|
+
result = {}
|
124
|
+
|
125
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
126
|
+
value = getattr(self, attr)
|
127
|
+
if isinstance(value, list):
|
128
|
+
result[attr] = list(map(
|
129
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
130
|
+
value
|
131
|
+
))
|
132
|
+
elif hasattr(value, "to_dict"):
|
133
|
+
result[attr] = value.to_dict()
|
134
|
+
elif isinstance(value, dict):
|
135
|
+
result[attr] = dict(map(
|
136
|
+
lambda item: (item[0], item[1].to_dict())
|
137
|
+
if hasattr(item[1], "to_dict") else item,
|
138
|
+
value.items()
|
139
|
+
))
|
140
|
+
else:
|
141
|
+
if attr in self.sensitive_list:
|
142
|
+
result[attr] = "****"
|
143
|
+
else:
|
144
|
+
result[attr] = value
|
145
|
+
|
146
|
+
return result
|
147
|
+
|
148
|
+
def to_str(self):
|
149
|
+
"""Returns the string representation of the model"""
|
150
|
+
import simplejson as json
|
151
|
+
if six.PY2:
|
152
|
+
import sys
|
153
|
+
reload(sys)
|
154
|
+
sys.setdefaultencoding("utf-8")
|
155
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
156
|
+
|
157
|
+
def __repr__(self):
|
158
|
+
"""For `print`"""
|
159
|
+
return self.to_str()
|
160
|
+
|
161
|
+
def __eq__(self, other):
|
162
|
+
"""Returns true if both objects are equal"""
|
163
|
+
if not isinstance(other, LoadbalancerFeature):
|
164
|
+
return False
|
165
|
+
|
166
|
+
return self.__dict__ == other.__dict__
|
167
|
+
|
168
|
+
def __ne__(self, other):
|
169
|
+
"""Returns true if both objects are not equal"""
|
170
|
+
return not self == other
|