huaweicloudsdkelb 3.1.105__py2.py3-none-any.whl → 3.1.107__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 (142) hide show
  1. huaweicloudsdkelb/v3/__init__.py +29 -0
  2. huaweicloudsdkelb/v3/elb_async_client.py +171 -34
  3. huaweicloudsdkelb/v3/elb_client.py +171 -34
  4. huaweicloudsdkelb/v3/model/__init__.py +29 -0
  5. huaweicloudsdkelb/v3/model/availability_zone.py +3 -3
  6. huaweicloudsdkelb/v3/model/batch_add_available_zones_response.py +6 -6
  7. huaweicloudsdkelb/v3/model/batch_create_members_option.py +3 -3
  8. huaweicloudsdkelb/v3/model/batch_delete_ip_list_option.py +3 -3
  9. huaweicloudsdkelb/v3/model/batch_delete_ip_list_request.py +3 -3
  10. huaweicloudsdkelb/v3/model/batch_delete_ip_list_response.py +3 -3
  11. huaweicloudsdkelb/v3/model/batch_member.py +67 -9
  12. huaweicloudsdkelb/v3/model/batch_update_member.py +67 -9
  13. huaweicloudsdkelb/v3/model/batch_update_priority_request_body.py +3 -3
  14. huaweicloudsdkelb/v3/model/certificate_info.py +93 -6
  15. huaweicloudsdkelb/v3/model/change_loadbalancer_charge_mode_request_body.py +3 -3
  16. huaweicloudsdkelb/v3/model/connection_drain.py +3 -3
  17. huaweicloudsdkelb/v3/model/count_preoccupy_ip_num_request.py +6 -6
  18. huaweicloudsdkelb/v3/model/create_certificate_option.py +5 -4
  19. huaweicloudsdkelb/v3/model/create_certificate_private_key_echo_request.py +111 -0
  20. huaweicloudsdkelb/v3/model/create_certificate_private_key_echo_request_body.py +114 -0
  21. huaweicloudsdkelb/v3/model/create_certificate_private_key_echo_response.py +145 -0
  22. huaweicloudsdkelb/v3/model/create_fixted_response_config.py +78 -3
  23. huaweicloudsdkelb/v3/model/create_health_monitor_option.py +9 -9
  24. huaweicloudsdkelb/v3/model/create_insert_header_config.py +170 -0
  25. huaweicloudsdkelb/v3/model/create_insert_headers_config.py +114 -0
  26. huaweicloudsdkelb/v3/model/create_ip_group_ip_option.py +6 -6
  27. huaweicloudsdkelb/v3/model/create_ip_group_option.py +15 -15
  28. huaweicloudsdkelb/v3/model/create_ip_group_response.py +3 -3
  29. huaweicloudsdkelb/v3/model/create_l7_policy_option.py +61 -7
  30. huaweicloudsdkelb/v3/model/create_l7_policy_rule_option.py +6 -6
  31. huaweicloudsdkelb/v3/model/create_listener_ip_group_option.py +3 -3
  32. huaweicloudsdkelb/v3/model/create_listener_option.py +33 -33
  33. huaweicloudsdkelb/v3/model/create_load_balancer_bandwidth_option.py +18 -18
  34. huaweicloudsdkelb/v3/model/create_load_balancer_option.py +76 -105
  35. huaweicloudsdkelb/v3/model/create_load_balancer_public_ip_option.py +12 -12
  36. huaweicloudsdkelb/v3/model/create_load_balancer_response.py +6 -6
  37. huaweicloudsdkelb/v3/model/create_loadbalancer_autoscaling_option.py +6 -6
  38. huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py +6 -6
  39. huaweicloudsdkelb/v3/model/create_master_slave_member_option.py +3 -3
  40. huaweicloudsdkelb/v3/model/create_master_slave_pool_option.py +6 -6
  41. huaweicloudsdkelb/v3/model/create_member_option.py +6 -6
  42. huaweicloudsdkelb/v3/model/create_pool_option.py +84 -30
  43. huaweicloudsdkelb/v3/model/create_redirect_pools_config.py +143 -0
  44. huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py +81 -6
  45. huaweicloudsdkelb/v3/model/create_redirect_pools_sticky_session_config.py +144 -0
  46. huaweicloudsdkelb/v3/model/create_redirect_url_config.py +53 -3
  47. huaweicloudsdkelb/v3/model/create_remove_header_config.py +114 -0
  48. huaweicloudsdkelb/v3/model/create_remove_headers_config.py +114 -0
  49. huaweicloudsdkelb/v3/model/create_rewrite_url_config.py +9 -9
  50. huaweicloudsdkelb/v3/model/create_rule_option.py +6 -6
  51. huaweicloudsdkelb/v3/model/create_traffic_limit_config.py +173 -0
  52. huaweicloudsdkelb/v3/model/delete_ip_group_request.py +3 -3
  53. huaweicloudsdkelb/v3/model/fixted_response_config.py +78 -3
  54. huaweicloudsdkelb/v3/model/flavor.py +79 -21
  55. huaweicloudsdkelb/v3/model/health_monitor.py +9 -9
  56. huaweicloudsdkelb/v3/model/insert_header_config.py +170 -0
  57. huaweicloudsdkelb/v3/model/insert_headers_config.py +114 -0
  58. huaweicloudsdkelb/v3/model/ip_group.py +119 -90
  59. huaweicloudsdkelb/v3/model/ip_group_ip.py +3 -3
  60. huaweicloudsdkelb/v3/model/ip_info.py +6 -6
  61. huaweicloudsdkelb/v3/model/l7_policy.py +67 -13
  62. huaweicloudsdkelb/v3/model/l7_rule.py +15 -15
  63. huaweicloudsdkelb/v3/model/list_all_members_request.py +3 -3
  64. huaweicloudsdkelb/v3/model/list_all_members_response.py +4 -4
  65. huaweicloudsdkelb/v3/model/list_certificates_request.py +64 -6
  66. huaweicloudsdkelb/v3/model/list_flavors_request.py +21 -21
  67. huaweicloudsdkelb/v3/model/list_flavors_response.py +6 -6
  68. huaweicloudsdkelb/v3/model/list_health_monitors_request.py +12 -12
  69. huaweicloudsdkelb/v3/model/list_ip_groups_request.py +53 -24
  70. huaweicloudsdkelb/v3/model/list_ip_groups_response.py +6 -6
  71. huaweicloudsdkelb/v3/model/list_l7_policies_request.py +3 -3
  72. huaweicloudsdkelb/v3/model/list_l7_rules_request.py +3 -3
  73. huaweicloudsdkelb/v3/model/list_listeners_request.py +24 -24
  74. huaweicloudsdkelb/v3/model/list_load_balancers_request.py +30 -30
  75. huaweicloudsdkelb/v3/model/list_logtanks_request.py +3 -3
  76. huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py +6 -6
  77. huaweicloudsdkelb/v3/model/list_members_request.py +3 -3
  78. huaweicloudsdkelb/v3/model/list_pools_request.py +105 -18
  79. huaweicloudsdkelb/v3/model/list_security_policies_request.py +3 -3
  80. huaweicloudsdkelb/v3/model/listener.py +27 -27
  81. huaweicloudsdkelb/v3/model/listener_ref.py +3 -3
  82. huaweicloudsdkelb/v3/model/load_balancer.py +27 -27
  83. huaweicloudsdkelb/v3/model/load_balancer_status_policy.py +3 -3
  84. huaweicloudsdkelb/v3/model/master_slave_health_monitor.py +6 -6
  85. huaweicloudsdkelb/v3/model/master_slave_member.py +3 -3
  86. huaweicloudsdkelb/v3/model/master_slave_pool.py +15 -15
  87. huaweicloudsdkelb/v3/model/member.py +13 -158
  88. huaweicloudsdkelb/v3/model/member_info.py +656 -0
  89. huaweicloudsdkelb/v3/model/page_info.py +9 -9
  90. huaweicloudsdkelb/v3/model/pool.py +110 -27
  91. huaweicloudsdkelb/v3/model/pool_health.py +115 -0
  92. huaweicloudsdkelb/v3/model/prepaid_create_option.py +12 -12
  93. huaweicloudsdkelb/v3/model/quota.py +12 -12
  94. huaweicloudsdkelb/v3/model/quota_info.py +3 -3
  95. huaweicloudsdkelb/v3/model/redirect_pools_config.py +144 -0
  96. huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py +81 -6
  97. huaweicloudsdkelb/v3/model/redirect_pools_sticky_session_config.py +144 -0
  98. huaweicloudsdkelb/v3/model/redirect_url_config.py +65 -9
  99. huaweicloudsdkelb/v3/model/remove_header_config.py +114 -0
  100. huaweicloudsdkelb/v3/model/remove_headers_config.py +114 -0
  101. huaweicloudsdkelb/v3/model/rewrite_url_config.py +9 -9
  102. huaweicloudsdkelb/v3/model/session_persistence.py +6 -6
  103. huaweicloudsdkelb/v3/model/show_certificate_private_key_echo_request.py +84 -0
  104. huaweicloudsdkelb/v3/model/show_certificate_private_key_echo_response.py +145 -0
  105. huaweicloudsdkelb/v3/model/show_flavor_request.py +3 -3
  106. huaweicloudsdkelb/v3/model/show_flavor_response.py +3 -3
  107. huaweicloudsdkelb/v3/model/show_ip_group_request.py +3 -3
  108. huaweicloudsdkelb/v3/model/show_ip_group_response.py +3 -3
  109. huaweicloudsdkelb/v3/model/traffic_limit_config.py +173 -0
  110. huaweicloudsdkelb/v3/model/upadate_ip_group_ip_option.py +6 -6
  111. huaweicloudsdkelb/v3/model/update_certificate_option.py +3 -3
  112. huaweicloudsdkelb/v3/model/update_fixted_response_config.py +78 -3
  113. huaweicloudsdkelb/v3/model/update_health_monitor_option.py +9 -9
  114. huaweicloudsdkelb/v3/model/update_insert_header_config.py +170 -0
  115. huaweicloudsdkelb/v3/model/update_insert_headers_config.py +114 -0
  116. huaweicloudsdkelb/v3/model/update_ip_group_option.py +9 -9
  117. huaweicloudsdkelb/v3/model/update_ip_group_request.py +3 -3
  118. huaweicloudsdkelb/v3/model/update_ip_group_response.py +3 -3
  119. huaweicloudsdkelb/v3/model/update_ip_list_option.py +9 -9
  120. huaweicloudsdkelb/v3/model/update_ip_list_request.py +3 -3
  121. huaweicloudsdkelb/v3/model/update_ip_list_response.py +3 -3
  122. huaweicloudsdkelb/v3/model/update_l7_policy_option.py +58 -4
  123. huaweicloudsdkelb/v3/model/update_l7_rule_option.py +3 -3
  124. huaweicloudsdkelb/v3/model/update_listener_ip_group_option.py +6 -6
  125. huaweicloudsdkelb/v3/model/update_listener_option.py +24 -24
  126. huaweicloudsdkelb/v3/model/update_load_balancer_option.py +24 -24
  127. huaweicloudsdkelb/v3/model/update_load_balancer_response.py +6 -6
  128. huaweicloudsdkelb/v3/model/update_pool_option.py +37 -12
  129. huaweicloudsdkelb/v3/model/update_pool_session_persistence_option.py +6 -6
  130. huaweicloudsdkelb/v3/model/update_redirect_pools_config.py +143 -0
  131. huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py +81 -6
  132. huaweicloudsdkelb/v3/model/update_redirect_pools_sticky_session_config.py +144 -0
  133. huaweicloudsdkelb/v3/model/update_redirect_url_config.py +53 -3
  134. huaweicloudsdkelb/v3/model/update_remove_header_config.py +114 -0
  135. huaweicloudsdkelb/v3/model/update_remove_headers_config.py +114 -0
  136. huaweicloudsdkelb/v3/model/update_rewrite_url_config.py +173 -0
  137. huaweicloudsdkelb/v3/model/update_traffic_limit_config.py +173 -0
  138. {huaweicloudsdkelb-3.1.105.dist-info → huaweicloudsdkelb-3.1.107.dist-info}/METADATA +2 -2
  139. {huaweicloudsdkelb-3.1.105.dist-info → huaweicloudsdkelb-3.1.107.dist-info}/RECORD +142 -113
  140. {huaweicloudsdkelb-3.1.105.dist-info → huaweicloudsdkelb-3.1.107.dist-info}/LICENSE +0 -0
  141. {huaweicloudsdkelb-3.1.105.dist-info → huaweicloudsdkelb-3.1.107.dist-info}/WHEEL +0 -0
  142. {huaweicloudsdkelb-3.1.105.dist-info → huaweicloudsdkelb-3.1.107.dist-info}/top_level.txt +0 -0
@@ -29,7 +29,8 @@ class UpdatePoolOption:
29
29
  'protection_status': 'str',
30
30
  'protection_reason': 'str',
31
31
  'any_port_enable': 'bool',
32
- 'connection_drain': 'ConnectionDrain'
32
+ 'connection_drain': 'ConnectionDrain',
33
+ 'pool_health': 'PoolHealth'
33
34
  }
34
35
 
35
36
  attribute_map = {
@@ -45,10 +46,11 @@ class UpdatePoolOption:
45
46
  'protection_status': 'protection_status',
46
47
  'protection_reason': 'protection_reason',
47
48
  'any_port_enable': 'any_port_enable',
48
- 'connection_drain': 'connection_drain'
49
+ 'connection_drain': 'connection_drain',
50
+ 'pool_health': 'pool_health'
49
51
  }
50
52
 
51
- 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):
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):
52
54
  """UpdatePoolOption
53
55
 
54
56
  The model defined in huaweicloud sdk
@@ -57,7 +59,7 @@ class UpdatePoolOption:
57
59
  :type admin_state_up: bool
58
60
  :param description: 后端云服务器组的描述信息。
59
61
  :type description: str
60
- :param lb_algorithm: 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test)
62
+ :param lb_algorithm: 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 4_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。](tag:hws_eu 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test)
61
63
  :type lb_algorithm: str
62
64
  :param name: 后端云服务器组的名称。
63
65
  :type name: str
@@ -65,7 +67,7 @@ class UpdatePoolOption:
65
67
  :type session_persistence: :class:`huaweicloudsdkelb.v3.UpdatePoolSessionPersistenceOption`
66
68
  :param slow_start:
67
69
  :type slow_start: :class:`huaweicloudsdkelb.v3.UpdatePoolSlowStartOption`
68
- :param member_deletion_protection_enable: 是否开启删除保护。 取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt)
70
+ :param member_deletion_protection_enable: 是否开启删除保护。 取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
69
71
  :type member_deletion_protection_enable: bool
70
72
  :param vpc_id: 后端云服务器组关联的虚拟私有云的ID。 只有vpc_id为空时允许更新。
71
73
  :type vpc_id: str
@@ -75,10 +77,12 @@ class UpdatePoolOption:
75
77
  :type protection_status: str
76
78
  :param protection_reason: 设置保护的原因 >仅当protection_status为consoleProtection时有效。
77
79
  :type protection_reason: str
78
- :param any_port_enable: 后端是否开启端口透传,开启后,后端服务器端口与前端监听器端口保持一致。取值:false不开启,true开启,默认false。 > 关闭端口透传后,请求会转发给后端服务器protocol_port字段指定端口。
80
+ :param any_port_enable: 后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。取值:false不开启,true开启。 使用说明: - 仅QUIC,TCP,UDP的pool支持。
79
81
  :type any_port_enable: bool
80
82
  :param connection_drain:
81
83
  :type connection_drain: :class:`huaweicloudsdkelb.v3.ConnectionDrain`
84
+ :param pool_health:
85
+ :type pool_health: :class:`huaweicloudsdkelb.v3.PoolHealth`
82
86
  """
83
87
 
84
88
 
@@ -96,6 +100,7 @@ class UpdatePoolOption:
96
100
  self._protection_reason = None
97
101
  self._any_port_enable = None
98
102
  self._connection_drain = None
103
+ self._pool_health = None
99
104
  self.discriminator = None
100
105
 
101
106
  if admin_state_up is not None:
@@ -124,6 +129,8 @@ class UpdatePoolOption:
124
129
  self.any_port_enable = any_port_enable
125
130
  if connection_drain is not None:
126
131
  self.connection_drain = connection_drain
132
+ if pool_health is not None:
133
+ self.pool_health = pool_health
127
134
 
128
135
  @property
129
136
  def admin_state_up(self):
@@ -173,7 +180,7 @@ class UpdatePoolOption:
173
180
  def lb_algorithm(self):
174
181
  """Gets the lb_algorithm of this UpdatePoolOption.
175
182
 
176
- 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test)
183
+ 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 4_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。](tag:hws_eu 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test)
177
184
 
178
185
  :return: The lb_algorithm of this UpdatePoolOption.
179
186
  :rtype: str
@@ -184,7 +191,7 @@ class UpdatePoolOption:
184
191
  def lb_algorithm(self, lb_algorithm):
185
192
  """Sets the lb_algorithm of this UpdatePoolOption.
186
193
 
187
- 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test)
194
+ 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 4_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。](tag:hws_eu 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test)
188
195
 
189
196
  :param lb_algorithm: The lb_algorithm of this UpdatePoolOption.
190
197
  :type lb_algorithm: str
@@ -253,7 +260,7 @@ class UpdatePoolOption:
253
260
  def member_deletion_protection_enable(self):
254
261
  """Gets the member_deletion_protection_enable of this UpdatePoolOption.
255
262
 
256
- 是否开启删除保护。 取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt)
263
+ 是否开启删除保护。 取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
257
264
 
258
265
  :return: The member_deletion_protection_enable of this UpdatePoolOption.
259
266
  :rtype: bool
@@ -264,7 +271,7 @@ class UpdatePoolOption:
264
271
  def member_deletion_protection_enable(self, member_deletion_protection_enable):
265
272
  """Sets the member_deletion_protection_enable of this UpdatePoolOption.
266
273
 
267
- 是否开启删除保护。 取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt)
274
+ 是否开启删除保护。 取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
268
275
 
269
276
  :param member_deletion_protection_enable: The member_deletion_protection_enable of this UpdatePoolOption.
270
277
  :type member_deletion_protection_enable: bool
@@ -363,7 +370,7 @@ class UpdatePoolOption:
363
370
  def any_port_enable(self):
364
371
  """Gets the any_port_enable of this UpdatePoolOption.
365
372
 
366
- 后端是否开启端口透传,开启后,后端服务器端口与前端监听器端口保持一致。取值:false不开启,true开启,默认false。 > 关闭端口透传后,请求会转发给后端服务器protocol_port字段指定端口。
373
+ 后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。取值:false不开启,true开启。 使用说明: - 仅QUIC,TCP,UDP的pool支持。
367
374
 
368
375
  :return: The any_port_enable of this UpdatePoolOption.
369
376
  :rtype: bool
@@ -374,7 +381,7 @@ class UpdatePoolOption:
374
381
  def any_port_enable(self, any_port_enable):
375
382
  """Sets the any_port_enable of this UpdatePoolOption.
376
383
 
377
- 后端是否开启端口透传,开启后,后端服务器端口与前端监听器端口保持一致。取值:false不开启,true开启,默认false。 > 关闭端口透传后,请求会转发给后端服务器protocol_port字段指定端口。
384
+ 后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。关闭后,请求会转发给后端服务器protocol_port字段指定端口。取值:false不开启,true开启。 使用说明: - 仅QUIC,TCP,UDP的pool支持。
378
385
 
379
386
  :param any_port_enable: The any_port_enable of this UpdatePoolOption.
380
387
  :type any_port_enable: bool
@@ -399,6 +406,24 @@ class UpdatePoolOption:
399
406
  """
400
407
  self._connection_drain = connection_drain
401
408
 
409
+ @property
410
+ def pool_health(self):
411
+ """Gets the pool_health of this UpdatePoolOption.
412
+
413
+ :return: The pool_health of this UpdatePoolOption.
414
+ :rtype: :class:`huaweicloudsdkelb.v3.PoolHealth`
415
+ """
416
+ return self._pool_health
417
+
418
+ @pool_health.setter
419
+ def pool_health(self, pool_health):
420
+ """Sets the pool_health of this UpdatePoolOption.
421
+
422
+ :param pool_health: The pool_health of this UpdatePoolOption.
423
+ :type pool_health: :class:`huaweicloudsdkelb.v3.PoolHealth`
424
+ """
425
+ self._pool_health = pool_health
426
+
402
427
  def to_dict(self):
403
428
  """Returns the model properties as a dict"""
404
429
  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,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [不支持该字段,请勿使用。](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,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [不支持该字段,请勿使用。](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,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,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,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [不支持该字段,请勿使用。](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,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [不支持该字段,请勿使用。](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,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [不支持该字段,请勿使用。](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,fcs,dt,hk_tm) [支持字母、数字、中划线(-)、下划线(_)和点号(.),最大长度255个字符。](tag:hws_eu,hcso_dt) 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [不支持该字段,请勿使用。](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,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,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,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,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
@@ -0,0 +1,143 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateRedirectPoolsConfig:
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
+ 'pool_id': 'str',
21
+ 'weight': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'pool_id': 'pool_id',
26
+ 'weight': 'weight'
27
+ }
28
+
29
+ def __init__(self, pool_id=None, weight=None):
30
+ """UpdateRedirectPoolsConfig
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param pool_id: 所在后端服务器组ID。
35
+ :type pool_id: str
36
+ :param weight: 转发策略主机组的权重,取值范围为[1,100],默认为1。请求将根据该权重进行负载分发到不同的主机组。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。
37
+ :type weight: str
38
+ """
39
+
40
+
41
+
42
+ self._pool_id = None
43
+ self._weight = None
44
+ self.discriminator = None
45
+
46
+ self.pool_id = pool_id
47
+ if weight is not None:
48
+ self.weight = weight
49
+
50
+ @property
51
+ def pool_id(self):
52
+ """Gets the pool_id of this UpdateRedirectPoolsConfig.
53
+
54
+ 所在后端服务器组ID。
55
+
56
+ :return: The pool_id of this UpdateRedirectPoolsConfig.
57
+ :rtype: str
58
+ """
59
+ return self._pool_id
60
+
61
+ @pool_id.setter
62
+ def pool_id(self, pool_id):
63
+ """Sets the pool_id of this UpdateRedirectPoolsConfig.
64
+
65
+ 所在后端服务器组ID。
66
+
67
+ :param pool_id: The pool_id of this UpdateRedirectPoolsConfig.
68
+ :type pool_id: str
69
+ """
70
+ self._pool_id = pool_id
71
+
72
+ @property
73
+ def weight(self):
74
+ """Gets the weight of this UpdateRedirectPoolsConfig.
75
+
76
+ 转发策略主机组的权重,取值范围为[1,100],默认为1。请求将根据该权重进行负载分发到不同的主机组。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。
77
+
78
+ :return: The weight of this UpdateRedirectPoolsConfig.
79
+ :rtype: str
80
+ """
81
+ return self._weight
82
+
83
+ @weight.setter
84
+ def weight(self, weight):
85
+ """Sets the weight of this UpdateRedirectPoolsConfig.
86
+
87
+ 转发策略主机组的权重,取值范围为[1,100],默认为1。请求将根据该权重进行负载分发到不同的主机组。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。
88
+
89
+ :param weight: The weight of this UpdateRedirectPoolsConfig.
90
+ :type weight: str
91
+ """
92
+ self._weight = weight
93
+
94
+ def to_dict(self):
95
+ """Returns the model properties as a dict"""
96
+ result = {}
97
+
98
+ for attr, _ in six.iteritems(self.openapi_types):
99
+ value = getattr(self, attr)
100
+ if isinstance(value, list):
101
+ result[attr] = list(map(
102
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
103
+ value
104
+ ))
105
+ elif hasattr(value, "to_dict"):
106
+ result[attr] = value.to_dict()
107
+ elif isinstance(value, dict):
108
+ result[attr] = dict(map(
109
+ lambda item: (item[0], item[1].to_dict())
110
+ if hasattr(item[1], "to_dict") else item,
111
+ value.items()
112
+ ))
113
+ else:
114
+ if attr in self.sensitive_list:
115
+ result[attr] = "****"
116
+ else:
117
+ result[attr] = value
118
+
119
+ return result
120
+
121
+ def to_str(self):
122
+ """Returns the string representation of the model"""
123
+ import simplejson as json
124
+ if six.PY2:
125
+ import sys
126
+ reload(sys)
127
+ sys.setdefaultencoding("utf-8")
128
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
129
+
130
+ def __repr__(self):
131
+ """For `print`"""
132
+ return self.to_str()
133
+
134
+ def __eq__(self, other):
135
+ """Returns true if both objects are equal"""
136
+ if not isinstance(other, UpdateRedirectPoolsConfig):
137
+ return False
138
+
139
+ return self.__dict__ == other.__dict__
140
+
141
+ def __ne__(self, other):
142
+ """Returns true if both objects are not equal"""
143
+ return not self == other
@@ -18,15 +18,21 @@ class UpdateRedirectPoolsExtendConfig:
18
18
 
19
19
  openapi_types = {
20
20
  'rewrite_url_enable': 'bool',
21
- 'rewrite_url_config': 'CreateRewriteUrlConfig'
21
+ 'rewrite_url_config': 'UpdateRewriteUrlConfig',
22
+ 'insert_headers_config': 'UpdateInsertHeadersConfig',
23
+ 'remove_headers_config': 'UpdateRemoveHeadersConfig',
24
+ 'traffic_limit_config': 'UpdateTrafficLimitConfig'
22
25
  }
23
26
 
24
27
  attribute_map = {
25
28
  'rewrite_url_enable': 'rewrite_url_enable',
26
- 'rewrite_url_config': 'rewrite_url_config'
29
+ 'rewrite_url_config': 'rewrite_url_config',
30
+ 'insert_headers_config': 'insert_headers_config',
31
+ 'remove_headers_config': 'remove_headers_config',
32
+ 'traffic_limit_config': 'traffic_limit_config'
27
33
  }
28
34
 
29
- def __init__(self, rewrite_url_enable=None, rewrite_url_config=None):
35
+ def __init__(self, rewrite_url_enable=None, rewrite_url_config=None, insert_headers_config=None, remove_headers_config=None, traffic_limit_config=None):
30
36
  """UpdateRedirectPoolsExtendConfig
31
37
 
32
38
  The model defined in huaweicloud sdk
@@ -34,19 +40,34 @@ class UpdateRedirectPoolsExtendConfig:
34
40
  :param rewrite_url_enable: 是否开启url重定向
35
41
  :type rewrite_url_enable: bool
36
42
  :param rewrite_url_config:
37
- :type rewrite_url_config: :class:`huaweicloudsdkelb.v3.CreateRewriteUrlConfig`
43
+ :type rewrite_url_config: :class:`huaweicloudsdkelb.v3.UpdateRewriteUrlConfig`
44
+ :param insert_headers_config:
45
+ :type insert_headers_config: :class:`huaweicloudsdkelb.v3.UpdateInsertHeadersConfig`
46
+ :param remove_headers_config:
47
+ :type remove_headers_config: :class:`huaweicloudsdkelb.v3.UpdateRemoveHeadersConfig`
48
+ :param traffic_limit_config:
49
+ :type traffic_limit_config: :class:`huaweicloudsdkelb.v3.UpdateTrafficLimitConfig`
38
50
  """
39
51
 
40
52
 
41
53
 
42
54
  self._rewrite_url_enable = None
43
55
  self._rewrite_url_config = None
56
+ self._insert_headers_config = None
57
+ self._remove_headers_config = None
58
+ self._traffic_limit_config = None
44
59
  self.discriminator = None
45
60
 
46
61
  if rewrite_url_enable is not None:
47
62
  self.rewrite_url_enable = rewrite_url_enable
48
63
  if rewrite_url_config is not None:
49
64
  self.rewrite_url_config = rewrite_url_config
65
+ if insert_headers_config is not None:
66
+ self.insert_headers_config = insert_headers_config
67
+ if remove_headers_config is not None:
68
+ self.remove_headers_config = remove_headers_config
69
+ if traffic_limit_config is not None:
70
+ self.traffic_limit_config = traffic_limit_config
50
71
 
51
72
  @property
52
73
  def rewrite_url_enable(self):
@@ -75,7 +96,7 @@ class UpdateRedirectPoolsExtendConfig:
75
96
  """Gets the rewrite_url_config of this UpdateRedirectPoolsExtendConfig.
76
97
 
77
98
  :return: The rewrite_url_config of this UpdateRedirectPoolsExtendConfig.
78
- :rtype: :class:`huaweicloudsdkelb.v3.CreateRewriteUrlConfig`
99
+ :rtype: :class:`huaweicloudsdkelb.v3.UpdateRewriteUrlConfig`
79
100
  """
80
101
  return self._rewrite_url_config
81
102
 
@@ -84,10 +105,64 @@ class UpdateRedirectPoolsExtendConfig:
84
105
  """Sets the rewrite_url_config of this UpdateRedirectPoolsExtendConfig.
85
106
 
86
107
  :param rewrite_url_config: The rewrite_url_config of this UpdateRedirectPoolsExtendConfig.
87
- :type rewrite_url_config: :class:`huaweicloudsdkelb.v3.CreateRewriteUrlConfig`
108
+ :type rewrite_url_config: :class:`huaweicloudsdkelb.v3.UpdateRewriteUrlConfig`
88
109
  """
89
110
  self._rewrite_url_config = rewrite_url_config
90
111
 
112
+ @property
113
+ def insert_headers_config(self):
114
+ """Gets the insert_headers_config of this UpdateRedirectPoolsExtendConfig.
115
+
116
+ :return: The insert_headers_config of this UpdateRedirectPoolsExtendConfig.
117
+ :rtype: :class:`huaweicloudsdkelb.v3.UpdateInsertHeadersConfig`
118
+ """
119
+ return self._insert_headers_config
120
+
121
+ @insert_headers_config.setter
122
+ def insert_headers_config(self, insert_headers_config):
123
+ """Sets the insert_headers_config of this UpdateRedirectPoolsExtendConfig.
124
+
125
+ :param insert_headers_config: The insert_headers_config of this UpdateRedirectPoolsExtendConfig.
126
+ :type insert_headers_config: :class:`huaweicloudsdkelb.v3.UpdateInsertHeadersConfig`
127
+ """
128
+ self._insert_headers_config = insert_headers_config
129
+
130
+ @property
131
+ def remove_headers_config(self):
132
+ """Gets the remove_headers_config of this UpdateRedirectPoolsExtendConfig.
133
+
134
+ :return: The remove_headers_config of this UpdateRedirectPoolsExtendConfig.
135
+ :rtype: :class:`huaweicloudsdkelb.v3.UpdateRemoveHeadersConfig`
136
+ """
137
+ return self._remove_headers_config
138
+
139
+ @remove_headers_config.setter
140
+ def remove_headers_config(self, remove_headers_config):
141
+ """Sets the remove_headers_config of this UpdateRedirectPoolsExtendConfig.
142
+
143
+ :param remove_headers_config: The remove_headers_config of this UpdateRedirectPoolsExtendConfig.
144
+ :type remove_headers_config: :class:`huaweicloudsdkelb.v3.UpdateRemoveHeadersConfig`
145
+ """
146
+ self._remove_headers_config = remove_headers_config
147
+
148
+ @property
149
+ def traffic_limit_config(self):
150
+ """Gets the traffic_limit_config of this UpdateRedirectPoolsExtendConfig.
151
+
152
+ :return: The traffic_limit_config of this UpdateRedirectPoolsExtendConfig.
153
+ :rtype: :class:`huaweicloudsdkelb.v3.UpdateTrafficLimitConfig`
154
+ """
155
+ return self._traffic_limit_config
156
+
157
+ @traffic_limit_config.setter
158
+ def traffic_limit_config(self, traffic_limit_config):
159
+ """Sets the traffic_limit_config of this UpdateRedirectPoolsExtendConfig.
160
+
161
+ :param traffic_limit_config: The traffic_limit_config of this UpdateRedirectPoolsExtendConfig.
162
+ :type traffic_limit_config: :class:`huaweicloudsdkelb.v3.UpdateTrafficLimitConfig`
163
+ """
164
+ self._traffic_limit_config = traffic_limit_config
165
+
91
166
  def to_dict(self):
92
167
  """Returns the model properties as a dict"""
93
168
  result = {}
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateRedirectPoolsStickySessionConfig:
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
+ 'enable': 'bool',
21
+ 'timeout': 'int'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'enable': 'enable',
26
+ 'timeout': 'timeout'
27
+ }
28
+
29
+ def __init__(self, enable=None, timeout=None):
30
+ """UpdateRedirectPoolsStickySessionConfig
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param enable: 转发策略主机组会话保持开启的开关。 默认值为false,表示关闭主机组会话保持。
35
+ :type enable: bool
36
+ :param timeout: 会话保持的时间。 适用范围:范围为[1,1440](分钟),默认值1440。 [荷兰region不支持QUIC。](tag:dt,dt_test)
37
+ :type timeout: int
38
+ """
39
+
40
+
41
+
42
+ self._enable = None
43
+ self._timeout = None
44
+ self.discriminator = None
45
+
46
+ if enable is not None:
47
+ self.enable = enable
48
+ if timeout is not None:
49
+ self.timeout = timeout
50
+
51
+ @property
52
+ def enable(self):
53
+ """Gets the enable of this UpdateRedirectPoolsStickySessionConfig.
54
+
55
+ 转发策略主机组会话保持开启的开关。 默认值为false,表示关闭主机组会话保持。
56
+
57
+ :return: The enable of this UpdateRedirectPoolsStickySessionConfig.
58
+ :rtype: bool
59
+ """
60
+ return self._enable
61
+
62
+ @enable.setter
63
+ def enable(self, enable):
64
+ """Sets the enable of this UpdateRedirectPoolsStickySessionConfig.
65
+
66
+ 转发策略主机组会话保持开启的开关。 默认值为false,表示关闭主机组会话保持。
67
+
68
+ :param enable: The enable of this UpdateRedirectPoolsStickySessionConfig.
69
+ :type enable: bool
70
+ """
71
+ self._enable = enable
72
+
73
+ @property
74
+ def timeout(self):
75
+ """Gets the timeout of this UpdateRedirectPoolsStickySessionConfig.
76
+
77
+ 会话保持的时间。 适用范围:范围为[1,1440](分钟),默认值1440。 [荷兰region不支持QUIC。](tag:dt,dt_test)
78
+
79
+ :return: The timeout of this UpdateRedirectPoolsStickySessionConfig.
80
+ :rtype: int
81
+ """
82
+ return self._timeout
83
+
84
+ @timeout.setter
85
+ def timeout(self, timeout):
86
+ """Sets the timeout of this UpdateRedirectPoolsStickySessionConfig.
87
+
88
+ 会话保持的时间。 适用范围:范围为[1,1440](分钟),默认值1440。 [荷兰region不支持QUIC。](tag:dt,dt_test)
89
+
90
+ :param timeout: The timeout of this UpdateRedirectPoolsStickySessionConfig.
91
+ :type timeout: int
92
+ """
93
+ self._timeout = timeout
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, UpdateRedirectPoolsStickySessionConfig):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other