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
@@ -30,7 +30,8 @@ class UpdatePoolOption:
|
|
30
30
|
'protection_reason': 'str',
|
31
31
|
'any_port_enable': 'bool',
|
32
32
|
'connection_drain': 'ConnectionDrain',
|
33
|
-
'pool_health': 'PoolHealth'
|
33
|
+
'pool_health': 'PoolHealth',
|
34
|
+
'quic_cid_hash_strategy': 'QuicCidHashStrategy'
|
34
35
|
}
|
35
36
|
|
36
37
|
attribute_map = {
|
@@ -47,10 +48,11 @@ class UpdatePoolOption:
|
|
47
48
|
'protection_reason': 'protection_reason',
|
48
49
|
'any_port_enable': 'any_port_enable',
|
49
50
|
'connection_drain': 'connection_drain',
|
50
|
-
'pool_health': 'pool_health'
|
51
|
+
'pool_health': 'pool_health',
|
52
|
+
'quic_cid_hash_strategy': 'quic_cid_hash_strategy'
|
51
53
|
}
|
52
54
|
|
53
|
-
def __init__(self, admin_state_up=None, description=None, lb_algorithm=None, name=None, session_persistence=None, slow_start=None, member_deletion_protection_enable=None, vpc_id=None, type=None, protection_status=None, protection_reason=None, any_port_enable=None, connection_drain=None, pool_health=None):
|
55
|
+
def __init__(self, admin_state_up=None, description=None, lb_algorithm=None, name=None, session_persistence=None, slow_start=None, member_deletion_protection_enable=None, vpc_id=None, type=None, protection_status=None, protection_reason=None, any_port_enable=None, connection_drain=None, pool_health=None, quic_cid_hash_strategy=None):
|
54
56
|
"""UpdatePoolOption
|
55
57
|
|
56
58
|
The model defined in huaweicloud sdk
|
@@ -75,7 +77,7 @@ class UpdatePoolOption:
|
|
75
77
|
:type type: str
|
76
78
|
:param protection_status: 修改保护状态, 取值: - nonProtection: 不保护 - consoleProtection: 控制台修改保护
|
77
79
|
:type protection_status: str
|
78
|
-
:param protection_reason:
|
80
|
+
:param protection_reason: 参数解释:设置保护的原因。作为protection_status的转态设置的原因。 约束限制:仅当protection_status为consoleProtection时有效。 取值范围:除'<'和'>'外通用Unicode字符集字符,最大255个字符。
|
79
81
|
:type protection_reason: str
|
80
82
|
:param any_port_enable: 后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。取值:false不开启,true开启。 使用说明: - 仅QUIC,TCP,UDP的pool支持。
|
81
83
|
:type any_port_enable: bool
|
@@ -83,6 +85,8 @@ class UpdatePoolOption:
|
|
83
85
|
:type connection_drain: :class:`huaweicloudsdkelb.v3.ConnectionDrain`
|
84
86
|
:param pool_health:
|
85
87
|
:type pool_health: :class:`huaweicloudsdkelb.v3.PoolHealth`
|
88
|
+
:param quic_cid_hash_strategy:
|
89
|
+
:type quic_cid_hash_strategy: :class:`huaweicloudsdkelb.v3.QuicCidHashStrategy`
|
86
90
|
"""
|
87
91
|
|
88
92
|
|
@@ -101,6 +105,7 @@ class UpdatePoolOption:
|
|
101
105
|
self._any_port_enable = None
|
102
106
|
self._connection_drain = None
|
103
107
|
self._pool_health = None
|
108
|
+
self._quic_cid_hash_strategy = None
|
104
109
|
self.discriminator = None
|
105
110
|
|
106
111
|
if admin_state_up is not None:
|
@@ -131,6 +136,8 @@ class UpdatePoolOption:
|
|
131
136
|
self.connection_drain = connection_drain
|
132
137
|
if pool_health is not None:
|
133
138
|
self.pool_health = pool_health
|
139
|
+
if quic_cid_hash_strategy is not None:
|
140
|
+
self.quic_cid_hash_strategy = quic_cid_hash_strategy
|
134
141
|
|
135
142
|
@property
|
136
143
|
def admin_state_up(self):
|
@@ -348,7 +355,7 @@ class UpdatePoolOption:
|
|
348
355
|
def protection_reason(self):
|
349
356
|
"""Gets the protection_reason of this UpdatePoolOption.
|
350
357
|
|
351
|
-
|
358
|
+
参数解释:设置保护的原因。作为protection_status的转态设置的原因。 约束限制:仅当protection_status为consoleProtection时有效。 取值范围:除'<'和'>'外通用Unicode字符集字符,最大255个字符。
|
352
359
|
|
353
360
|
:return: The protection_reason of this UpdatePoolOption.
|
354
361
|
:rtype: str
|
@@ -359,7 +366,7 @@ class UpdatePoolOption:
|
|
359
366
|
def protection_reason(self, protection_reason):
|
360
367
|
"""Sets the protection_reason of this UpdatePoolOption.
|
361
368
|
|
362
|
-
|
369
|
+
参数解释:设置保护的原因。作为protection_status的转态设置的原因。 约束限制:仅当protection_status为consoleProtection时有效。 取值范围:除'<'和'>'外通用Unicode字符集字符,最大255个字符。
|
363
370
|
|
364
371
|
:param protection_reason: The protection_reason of this UpdatePoolOption.
|
365
372
|
:type protection_reason: str
|
@@ -424,6 +431,24 @@ class UpdatePoolOption:
|
|
424
431
|
"""
|
425
432
|
self._pool_health = pool_health
|
426
433
|
|
434
|
+
@property
|
435
|
+
def quic_cid_hash_strategy(self):
|
436
|
+
"""Gets the quic_cid_hash_strategy of this UpdatePoolOption.
|
437
|
+
|
438
|
+
:return: The quic_cid_hash_strategy of this UpdatePoolOption.
|
439
|
+
:rtype: :class:`huaweicloudsdkelb.v3.QuicCidHashStrategy`
|
440
|
+
"""
|
441
|
+
return self._quic_cid_hash_strategy
|
442
|
+
|
443
|
+
@quic_cid_hash_strategy.setter
|
444
|
+
def quic_cid_hash_strategy(self, quic_cid_hash_strategy):
|
445
|
+
"""Sets the quic_cid_hash_strategy of this UpdatePoolOption.
|
446
|
+
|
447
|
+
:param quic_cid_hash_strategy: The quic_cid_hash_strategy of this UpdatePoolOption.
|
448
|
+
:type quic_cid_hash_strategy: :class:`huaweicloudsdkelb.v3.QuicCidHashStrategy`
|
449
|
+
"""
|
450
|
+
self._quic_cid_hash_strategy = quic_cid_hash_strategy
|
451
|
+
|
427
452
|
def to_dict(self):
|
428
453
|
"""Returns the model properties as a dict"""
|
429
454
|
result = {}
|
@@ -33,9 +33,9 @@ class UpdatePoolSessionPersistenceOption:
|
|
33
33
|
|
34
34
|
The model defined in huaweicloud sdk
|
35
35
|
|
36
|
-
:param cookie_name: cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [网关型LB,不支持该特性,请勿使用。](tag:hws_eu) [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt)
|
36
|
+
:param cookie_name: cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [网关型LB,不支持该特性,请勿使用。](tag:hws_eu) [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt)
|
37
37
|
:type cookie_name: str
|
38
|
-
:param type: 会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE, 其他取值会话保持失效。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
|
38
|
+
:param type: 会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt) [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE, 其他取值会话保持失效。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
|
39
39
|
:type type: str
|
40
40
|
:param persistence_timeout: 会话保持的时间。当type为APP_COOKIE时不生效。 适用范围:如果pool的protocol为TCP、UDP和QUIC则范围为[1,60](分钟),默认值1; 如果pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
|
41
41
|
:type persistence_timeout: int
|
@@ -59,7 +59,7 @@ class UpdatePoolSessionPersistenceOption:
|
|
59
59
|
def cookie_name(self):
|
60
60
|
"""Gets the cookie_name of this UpdatePoolSessionPersistenceOption.
|
61
61
|
|
62
|
-
cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [网关型LB,不支持该特性,请勿使用。](tag:hws_eu) [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt)
|
62
|
+
cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [网关型LB,不支持该特性,请勿使用。](tag:hws_eu) [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt)
|
63
63
|
|
64
64
|
:return: The cookie_name of this UpdatePoolSessionPersistenceOption.
|
65
65
|
:rtype: str
|
@@ -70,7 +70,7 @@ class UpdatePoolSessionPersistenceOption:
|
|
70
70
|
def cookie_name(self, cookie_name):
|
71
71
|
"""Sets the cookie_name of this UpdatePoolSessionPersistenceOption.
|
72
72
|
|
73
|
-
cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [网关型LB,不支持该特性,请勿使用。](tag:hws_eu) [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt)
|
73
|
+
cookie名称。 [共享型LB,支持字母、数字、中划线(-)和下划线(_),最大长度64个字符。 独享型LB,支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [网关型LB,不支持该特性,请勿使用。](tag:hws_eu) [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt)
|
74
74
|
|
75
75
|
:param cookie_name: The cookie_name of this UpdatePoolSessionPersistenceOption.
|
76
76
|
:type cookie_name: str
|
@@ -81,7 +81,7 @@ class UpdatePoolSessionPersistenceOption:
|
|
81
81
|
def type(self):
|
82
82
|
"""Gets the type of this UpdatePoolSessionPersistenceOption.
|
83
83
|
|
84
|
-
会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE, 其他取值会话保持失效。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
|
84
|
+
会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt) [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE, 其他取值会话保持失效。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
|
85
85
|
|
86
86
|
:return: The type of this UpdatePoolSessionPersistenceOption.
|
87
87
|
:rtype: str
|
@@ -92,7 +92,7 @@ class UpdatePoolSessionPersistenceOption:
|
|
92
92
|
def type(self, type):
|
93
93
|
"""Sets the type of this UpdatePoolSessionPersistenceOption.
|
94
94
|
|
95
|
-
会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt) [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE, 其他取值会话保持失效。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
|
95
|
+
会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,srg,fcs,dt) [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE, 其他取值会话保持失效。](tag:hws_eu,hcso_dt) [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
|
96
96
|
|
97
97
|
:param type: The type of this UpdatePoolSessionPersistenceOption.
|
98
98
|
:type type: str
|
@@ -21,7 +21,8 @@ class UpdateRedirectPoolsExtendConfig:
|
|
21
21
|
'rewrite_url_config': 'UpdateRewriteUrlConfig',
|
22
22
|
'insert_headers_config': 'UpdateInsertHeadersConfig',
|
23
23
|
'remove_headers_config': 'UpdateRemoveHeadersConfig',
|
24
|
-
'traffic_limit_config': 'UpdateTrafficLimitConfig'
|
24
|
+
'traffic_limit_config': 'UpdateTrafficLimitConfig',
|
25
|
+
'cors_config': 'CreateCorsConfig'
|
25
26
|
}
|
26
27
|
|
27
28
|
attribute_map = {
|
@@ -29,10 +30,11 @@ class UpdateRedirectPoolsExtendConfig:
|
|
29
30
|
'rewrite_url_config': 'rewrite_url_config',
|
30
31
|
'insert_headers_config': 'insert_headers_config',
|
31
32
|
'remove_headers_config': 'remove_headers_config',
|
32
|
-
'traffic_limit_config': 'traffic_limit_config'
|
33
|
+
'traffic_limit_config': 'traffic_limit_config',
|
34
|
+
'cors_config': 'cors_config'
|
33
35
|
}
|
34
36
|
|
35
|
-
def __init__(self, rewrite_url_enable=None, rewrite_url_config=None, insert_headers_config=None, remove_headers_config=None, traffic_limit_config=None):
|
37
|
+
def __init__(self, rewrite_url_enable=None, rewrite_url_config=None, insert_headers_config=None, remove_headers_config=None, traffic_limit_config=None, cors_config=None):
|
36
38
|
"""UpdateRedirectPoolsExtendConfig
|
37
39
|
|
38
40
|
The model defined in huaweicloud sdk
|
@@ -47,6 +49,8 @@ class UpdateRedirectPoolsExtendConfig:
|
|
47
49
|
:type remove_headers_config: :class:`huaweicloudsdkelb.v3.UpdateRemoveHeadersConfig`
|
48
50
|
:param traffic_limit_config:
|
49
51
|
:type traffic_limit_config: :class:`huaweicloudsdkelb.v3.UpdateTrafficLimitConfig`
|
52
|
+
:param cors_config:
|
53
|
+
:type cors_config: :class:`huaweicloudsdkelb.v3.CreateCorsConfig`
|
50
54
|
"""
|
51
55
|
|
52
56
|
|
@@ -56,6 +60,7 @@ class UpdateRedirectPoolsExtendConfig:
|
|
56
60
|
self._insert_headers_config = None
|
57
61
|
self._remove_headers_config = None
|
58
62
|
self._traffic_limit_config = None
|
63
|
+
self._cors_config = None
|
59
64
|
self.discriminator = None
|
60
65
|
|
61
66
|
if rewrite_url_enable is not None:
|
@@ -68,6 +73,8 @@ class UpdateRedirectPoolsExtendConfig:
|
|
68
73
|
self.remove_headers_config = remove_headers_config
|
69
74
|
if traffic_limit_config is not None:
|
70
75
|
self.traffic_limit_config = traffic_limit_config
|
76
|
+
if cors_config is not None:
|
77
|
+
self.cors_config = cors_config
|
71
78
|
|
72
79
|
@property
|
73
80
|
def rewrite_url_enable(self):
|
@@ -163,6 +170,24 @@ class UpdateRedirectPoolsExtendConfig:
|
|
163
170
|
"""
|
164
171
|
self._traffic_limit_config = traffic_limit_config
|
165
172
|
|
173
|
+
@property
|
174
|
+
def cors_config(self):
|
175
|
+
"""Gets the cors_config of this UpdateRedirectPoolsExtendConfig.
|
176
|
+
|
177
|
+
:return: The cors_config of this UpdateRedirectPoolsExtendConfig.
|
178
|
+
:rtype: :class:`huaweicloudsdkelb.v3.CreateCorsConfig`
|
179
|
+
"""
|
180
|
+
return self._cors_config
|
181
|
+
|
182
|
+
@cors_config.setter
|
183
|
+
def cors_config(self, cors_config):
|
184
|
+
"""Sets the cors_config of this UpdateRedirectPoolsExtendConfig.
|
185
|
+
|
186
|
+
:param cors_config: The cors_config of this UpdateRedirectPoolsExtendConfig.
|
187
|
+
:type cors_config: :class:`huaweicloudsdkelb.v3.CreateCorsConfig`
|
188
|
+
"""
|
189
|
+
self._cors_config = cors_config
|
190
|
+
|
166
191
|
def to_dict(self):
|
167
192
|
"""Returns the model properties as a dict"""
|
168
193
|
result = {}
|
@@ -0,0 +1,139 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpgradeLoadbalancerRequest:
|
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_id': 'str',
|
21
|
+
'body': 'UpgradeV3RequestBody'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'loadbalancer_id': 'loadbalancer_id',
|
26
|
+
'body': 'body'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, loadbalancer_id=None, body=None):
|
30
|
+
"""UpgradeLoadbalancerRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param loadbalancer_id: 负载均衡器ID。
|
35
|
+
:type loadbalancer_id: str
|
36
|
+
:param body: Body of the UpgradeLoadbalancerRequest
|
37
|
+
:type body: :class:`huaweicloudsdkelb.v3.UpgradeV3RequestBody`
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._loadbalancer_id = None
|
43
|
+
self._body = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.loadbalancer_id = loadbalancer_id
|
47
|
+
if body is not None:
|
48
|
+
self.body = body
|
49
|
+
|
50
|
+
@property
|
51
|
+
def loadbalancer_id(self):
|
52
|
+
"""Gets the loadbalancer_id of this UpgradeLoadbalancerRequest.
|
53
|
+
|
54
|
+
负载均衡器ID。
|
55
|
+
|
56
|
+
:return: The loadbalancer_id of this UpgradeLoadbalancerRequest.
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._loadbalancer_id
|
60
|
+
|
61
|
+
@loadbalancer_id.setter
|
62
|
+
def loadbalancer_id(self, loadbalancer_id):
|
63
|
+
"""Sets the loadbalancer_id of this UpgradeLoadbalancerRequest.
|
64
|
+
|
65
|
+
负载均衡器ID。
|
66
|
+
|
67
|
+
:param loadbalancer_id: The loadbalancer_id of this UpgradeLoadbalancerRequest.
|
68
|
+
:type loadbalancer_id: str
|
69
|
+
"""
|
70
|
+
self._loadbalancer_id = loadbalancer_id
|
71
|
+
|
72
|
+
@property
|
73
|
+
def body(self):
|
74
|
+
"""Gets the body of this UpgradeLoadbalancerRequest.
|
75
|
+
|
76
|
+
:return: The body of this UpgradeLoadbalancerRequest.
|
77
|
+
:rtype: :class:`huaweicloudsdkelb.v3.UpgradeV3RequestBody`
|
78
|
+
"""
|
79
|
+
return self._body
|
80
|
+
|
81
|
+
@body.setter
|
82
|
+
def body(self, body):
|
83
|
+
"""Sets the body of this UpgradeLoadbalancerRequest.
|
84
|
+
|
85
|
+
:param body: The body of this UpgradeLoadbalancerRequest.
|
86
|
+
:type body: :class:`huaweicloudsdkelb.v3.UpgradeV3RequestBody`
|
87
|
+
"""
|
88
|
+
self._body = body
|
89
|
+
|
90
|
+
def to_dict(self):
|
91
|
+
"""Returns the model properties as a dict"""
|
92
|
+
result = {}
|
93
|
+
|
94
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
95
|
+
value = getattr(self, attr)
|
96
|
+
if isinstance(value, list):
|
97
|
+
result[attr] = list(map(
|
98
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
99
|
+
value
|
100
|
+
))
|
101
|
+
elif hasattr(value, "to_dict"):
|
102
|
+
result[attr] = value.to_dict()
|
103
|
+
elif isinstance(value, dict):
|
104
|
+
result[attr] = dict(map(
|
105
|
+
lambda item: (item[0], item[1].to_dict())
|
106
|
+
if hasattr(item[1], "to_dict") else item,
|
107
|
+
value.items()
|
108
|
+
))
|
109
|
+
else:
|
110
|
+
if attr in self.sensitive_list:
|
111
|
+
result[attr] = "****"
|
112
|
+
else:
|
113
|
+
result[attr] = value
|
114
|
+
|
115
|
+
return result
|
116
|
+
|
117
|
+
def to_str(self):
|
118
|
+
"""Returns the string representation of the model"""
|
119
|
+
import simplejson as json
|
120
|
+
if six.PY2:
|
121
|
+
import sys
|
122
|
+
reload(sys)
|
123
|
+
sys.setdefaultencoding("utf-8")
|
124
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
125
|
+
|
126
|
+
def __repr__(self):
|
127
|
+
"""For `print`"""
|
128
|
+
return self.to_str()
|
129
|
+
|
130
|
+
def __eq__(self, other):
|
131
|
+
"""Returns true if both objects are equal"""
|
132
|
+
if not isinstance(other, UpgradeLoadbalancerRequest):
|
133
|
+
return False
|
134
|
+
|
135
|
+
return self.__dict__ == other.__dict__
|
136
|
+
|
137
|
+
def __ne__(self, other):
|
138
|
+
"""Returns true if both objects are not equal"""
|
139
|
+
return not self == other
|
@@ -0,0 +1,145 @@
|
|
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 UpgradeLoadbalancerResponse(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
|
+
'request_id': 'str',
|
22
|
+
'job_id': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'request_id': 'request_id',
|
27
|
+
'job_id': 'job_id'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, request_id=None, job_id=None):
|
31
|
+
"""UpgradeLoadbalancerResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param request_id: 请求ID。 注:自动生成 。
|
36
|
+
:type request_id: str
|
37
|
+
:param job_id: 升级的任务ID。
|
38
|
+
:type job_id: str
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(UpgradeLoadbalancerResponse, self).__init__()
|
42
|
+
|
43
|
+
self._request_id = None
|
44
|
+
self._job_id = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if request_id is not None:
|
48
|
+
self.request_id = request_id
|
49
|
+
if job_id is not None:
|
50
|
+
self.job_id = job_id
|
51
|
+
|
52
|
+
@property
|
53
|
+
def request_id(self):
|
54
|
+
"""Gets the request_id of this UpgradeLoadbalancerResponse.
|
55
|
+
|
56
|
+
请求ID。 注:自动生成 。
|
57
|
+
|
58
|
+
:return: The request_id of this UpgradeLoadbalancerResponse.
|
59
|
+
:rtype: str
|
60
|
+
"""
|
61
|
+
return self._request_id
|
62
|
+
|
63
|
+
@request_id.setter
|
64
|
+
def request_id(self, request_id):
|
65
|
+
"""Sets the request_id of this UpgradeLoadbalancerResponse.
|
66
|
+
|
67
|
+
请求ID。 注:自动生成 。
|
68
|
+
|
69
|
+
:param request_id: The request_id of this UpgradeLoadbalancerResponse.
|
70
|
+
:type request_id: str
|
71
|
+
"""
|
72
|
+
self._request_id = request_id
|
73
|
+
|
74
|
+
@property
|
75
|
+
def job_id(self):
|
76
|
+
"""Gets the job_id of this UpgradeLoadbalancerResponse.
|
77
|
+
|
78
|
+
升级的任务ID。
|
79
|
+
|
80
|
+
:return: The job_id of this UpgradeLoadbalancerResponse.
|
81
|
+
:rtype: str
|
82
|
+
"""
|
83
|
+
return self._job_id
|
84
|
+
|
85
|
+
@job_id.setter
|
86
|
+
def job_id(self, job_id):
|
87
|
+
"""Sets the job_id of this UpgradeLoadbalancerResponse.
|
88
|
+
|
89
|
+
升级的任务ID。
|
90
|
+
|
91
|
+
:param job_id: The job_id of this UpgradeLoadbalancerResponse.
|
92
|
+
:type job_id: str
|
93
|
+
"""
|
94
|
+
self._job_id = job_id
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, UpgradeLoadbalancerResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
return not self == other
|