huaweicloudsdkelb 3.1.86__py2.py3-none-any.whl → 3.1.132__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 (213) hide show
  1. huaweicloudsdkelb/v2/elb_async_client.py +2 -0
  2. huaweicloudsdkelb/v2/elb_client.py +2 -0
  3. huaweicloudsdkelb/v2/model/list_members_request.py +32 -3
  4. huaweicloudsdkelb/v2/region/elb_region.py +19 -1
  5. huaweicloudsdkelb/v3/__init__.py +29 -0
  6. huaweicloudsdkelb/v3/elb_async_client.py +175 -34
  7. huaweicloudsdkelb/v3/elb_client.py +175 -34
  8. huaweicloudsdkelb/v3/model/__init__.py +29 -0
  9. huaweicloudsdkelb/v3/model/autoscaling_ref.py +6 -6
  10. huaweicloudsdkelb/v3/model/availability_zone.py +15 -15
  11. huaweicloudsdkelb/v3/model/bandwidth_ref.py +3 -3
  12. huaweicloudsdkelb/v3/model/batch_add_available_zones_request.py +3 -3
  13. huaweicloudsdkelb/v3/model/batch_add_available_zones_response.py +6 -6
  14. huaweicloudsdkelb/v3/model/batch_create_members_option.py +12 -12
  15. huaweicloudsdkelb/v3/model/batch_create_members_request.py +3 -3
  16. huaweicloudsdkelb/v3/model/batch_delete_ip_list_option.py +3 -3
  17. huaweicloudsdkelb/v3/model/batch_delete_ip_list_request.py +3 -3
  18. huaweicloudsdkelb/v3/model/batch_delete_ip_list_response.py +3 -3
  19. huaweicloudsdkelb/v3/model/batch_delete_members_request.py +3 -3
  20. huaweicloudsdkelb/v3/model/batch_member.py +85 -27
  21. huaweicloudsdkelb/v3/model/batch_update_member.py +85 -27
  22. huaweicloudsdkelb/v3/model/batch_update_members_option.py +9 -9
  23. huaweicloudsdkelb/v3/model/batch_update_members_request.py +3 -3
  24. huaweicloudsdkelb/v3/model/batch_update_policies_priority_request_body.py +3 -3
  25. huaweicloudsdkelb/v3/model/batch_update_priority_request_body.py +6 -6
  26. huaweicloudsdkelb/v3/model/certificate_info.py +93 -6
  27. huaweicloudsdkelb/v3/model/change_loadbalancer_charge_mode_request_body.py +3 -3
  28. huaweicloudsdkelb/v3/model/connection_drain.py +6 -6
  29. huaweicloudsdkelb/v3/model/count_preoccupy_ip_num_request.py +6 -6
  30. huaweicloudsdkelb/v3/model/create_certificate_option.py +5 -4
  31. huaweicloudsdkelb/v3/model/create_certificate_private_key_echo_request.py +111 -0
  32. huaweicloudsdkelb/v3/model/create_certificate_private_key_echo_request_body.py +114 -0
  33. huaweicloudsdkelb/v3/model/create_certificate_private_key_echo_response.py +145 -0
  34. huaweicloudsdkelb/v3/model/create_fixted_response_config.py +87 -12
  35. huaweicloudsdkelb/v3/model/create_health_monitor_option.py +18 -18
  36. huaweicloudsdkelb/v3/model/create_insert_header_config.py +170 -0
  37. huaweicloudsdkelb/v3/model/create_insert_headers_config.py +114 -0
  38. huaweicloudsdkelb/v3/model/create_ip_group_ip_option.py +6 -6
  39. huaweicloudsdkelb/v3/model/create_ip_group_option.py +15 -15
  40. huaweicloudsdkelb/v3/model/create_ip_group_response.py +3 -3
  41. huaweicloudsdkelb/v3/model/create_l7_policy_option.py +91 -37
  42. huaweicloudsdkelb/v3/model/create_l7_policy_response.py +3 -3
  43. huaweicloudsdkelb/v3/model/create_l7_policy_rule_option.py +21 -21
  44. huaweicloudsdkelb/v3/model/create_l7_rule_request.py +3 -3
  45. huaweicloudsdkelb/v3/model/create_l7_rule_response.py +3 -3
  46. huaweicloudsdkelb/v3/model/create_listener_ip_group_option.py +9 -9
  47. huaweicloudsdkelb/v3/model/create_listener_option.py +84 -84
  48. huaweicloudsdkelb/v3/model/create_listener_quic_config_option.py +6 -6
  49. huaweicloudsdkelb/v3/model/create_listener_response.py +3 -3
  50. huaweicloudsdkelb/v3/model/create_load_balancer_bandwidth_option.py +18 -18
  51. huaweicloudsdkelb/v3/model/create_load_balancer_option.py +76 -105
  52. huaweicloudsdkelb/v3/model/create_load_balancer_public_ip_option.py +12 -12
  53. huaweicloudsdkelb/v3/model/create_load_balancer_response.py +9 -9
  54. huaweicloudsdkelb/v3/model/create_loadbalancer_autoscaling_option.py +6 -6
  55. huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py +9 -9
  56. huaweicloudsdkelb/v3/model/create_master_slave_member_option.py +12 -12
  57. huaweicloudsdkelb/v3/model/create_master_slave_pool_option.py +33 -33
  58. huaweicloudsdkelb/v3/model/create_member_option.py +21 -21
  59. huaweicloudsdkelb/v3/model/create_member_request.py +3 -3
  60. huaweicloudsdkelb/v3/model/create_member_response.py +3 -3
  61. huaweicloudsdkelb/v3/model/create_pool_option.py +102 -48
  62. huaweicloudsdkelb/v3/model/create_pool_response.py +3 -3
  63. huaweicloudsdkelb/v3/model/create_pool_session_persistence_option.py +9 -9
  64. huaweicloudsdkelb/v3/model/create_pool_slow_start_option.py +6 -6
  65. huaweicloudsdkelb/v3/model/create_redirect_pools_config.py +143 -0
  66. huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py +81 -6
  67. huaweicloudsdkelb/v3/model/create_redirect_pools_sticky_session_config.py +144 -0
  68. huaweicloudsdkelb/v3/model/create_redirect_url_config.py +71 -21
  69. huaweicloudsdkelb/v3/model/create_remove_header_config.py +114 -0
  70. huaweicloudsdkelb/v3/model/create_remove_headers_config.py +114 -0
  71. huaweicloudsdkelb/v3/model/create_rewrite_url_config.py +9 -9
  72. huaweicloudsdkelb/v3/model/create_rule_condition.py +6 -6
  73. huaweicloudsdkelb/v3/model/create_rule_option.py +24 -24
  74. huaweicloudsdkelb/v3/model/create_traffic_limit_config.py +173 -0
  75. huaweicloudsdkelb/v3/model/delete_ip_group_request.py +3 -3
  76. huaweicloudsdkelb/v3/model/delete_l7_policy_request.py +3 -3
  77. huaweicloudsdkelb/v3/model/delete_master_slave_pool_request.py +3 -3
  78. huaweicloudsdkelb/v3/model/delete_member_request.py +6 -6
  79. huaweicloudsdkelb/v3/model/delete_pool_request.py +3 -3
  80. huaweicloudsdkelb/v3/model/eip_info.py +9 -9
  81. huaweicloudsdkelb/v3/model/fixted_response_config.py +87 -12
  82. huaweicloudsdkelb/v3/model/flavor.py +79 -21
  83. huaweicloudsdkelb/v3/model/flavor_info.py +18 -18
  84. huaweicloudsdkelb/v3/model/global_eip_info.py +9 -9
  85. huaweicloudsdkelb/v3/model/health_monitor.py +18 -18
  86. huaweicloudsdkelb/v3/model/insert_header_config.py +170 -0
  87. huaweicloudsdkelb/v3/model/insert_headers_config.py +114 -0
  88. huaweicloudsdkelb/v3/model/ip_group.py +119 -90
  89. huaweicloudsdkelb/v3/model/ip_group_ip.py +3 -3
  90. huaweicloudsdkelb/v3/model/ip_info.py +6 -6
  91. huaweicloudsdkelb/v3/model/l7_policy.py +103 -49
  92. huaweicloudsdkelb/v3/model/l7_rule.py +36 -36
  93. huaweicloudsdkelb/v3/model/list_all_members_request.py +24 -24
  94. huaweicloudsdkelb/v3/model/list_all_members_response.py +4 -4
  95. huaweicloudsdkelb/v3/model/list_availability_zones_request.py +3 -3
  96. huaweicloudsdkelb/v3/model/list_availability_zones_response.py +38 -9
  97. huaweicloudsdkelb/v3/model/list_certificates_request.py +64 -6
  98. huaweicloudsdkelb/v3/model/list_flavors_request.py +21 -21
  99. huaweicloudsdkelb/v3/model/list_flavors_response.py +6 -6
  100. huaweicloudsdkelb/v3/model/list_health_monitors_request.py +15 -15
  101. huaweicloudsdkelb/v3/model/list_ip_groups_request.py +53 -24
  102. huaweicloudsdkelb/v3/model/list_ip_groups_response.py +6 -6
  103. huaweicloudsdkelb/v3/model/list_l7_policies_request.py +51 -51
  104. huaweicloudsdkelb/v3/model/list_l7_policies_response.py +6 -6
  105. huaweicloudsdkelb/v3/model/list_l7_rules_request.py +6 -6
  106. huaweicloudsdkelb/v3/model/list_l7_rules_response.py +6 -6
  107. huaweicloudsdkelb/v3/model/list_listeners_request.py +42 -42
  108. huaweicloudsdkelb/v3/model/list_listeners_response.py +6 -6
  109. huaweicloudsdkelb/v3/model/list_load_balancers_request.py +36 -36
  110. huaweicloudsdkelb/v3/model/list_logtanks_request.py +3 -3
  111. huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py +39 -39
  112. huaweicloudsdkelb/v3/model/list_members_request.py +27 -27
  113. huaweicloudsdkelb/v3/model/list_pools_request.py +135 -48
  114. huaweicloudsdkelb/v3/model/list_security_policies_request.py +3 -3
  115. huaweicloudsdkelb/v3/model/listener.py +96 -96
  116. huaweicloudsdkelb/v3/model/listener_insert_headers.py +30 -30
  117. huaweicloudsdkelb/v3/model/listener_ip_group.py +9 -9
  118. huaweicloudsdkelb/v3/model/listener_member_info.py +3 -3
  119. huaweicloudsdkelb/v3/model/listener_quic_config.py +6 -6
  120. huaweicloudsdkelb/v3/model/listener_ref.py +3 -3
  121. huaweicloudsdkelb/v3/model/load_balancer.py +129 -129
  122. huaweicloudsdkelb/v3/model/load_balancer_ref.py +3 -3
  123. huaweicloudsdkelb/v3/model/load_balancer_status.py +3 -3
  124. huaweicloudsdkelb/v3/model/load_balancer_status_policy.py +3 -3
  125. huaweicloudsdkelb/v3/model/load_balancer_status_pool.py +3 -3
  126. huaweicloudsdkelb/v3/model/logtank.py +3 -3
  127. huaweicloudsdkelb/v3/model/master_slave_health_monitor.py +12 -12
  128. huaweicloudsdkelb/v3/model/master_slave_member.py +18 -18
  129. huaweicloudsdkelb/v3/model/master_slave_pool.py +42 -42
  130. huaweicloudsdkelb/v3/model/member.py +46 -191
  131. huaweicloudsdkelb/v3/model/member_info.py +656 -0
  132. huaweicloudsdkelb/v3/model/member_ref.py +3 -3
  133. huaweicloudsdkelb/v3/model/member_status.py +6 -6
  134. huaweicloudsdkelb/v3/model/page_info.py +9 -9
  135. huaweicloudsdkelb/v3/model/pool.py +146 -63
  136. huaweicloudsdkelb/v3/model/pool_health.py +115 -0
  137. huaweicloudsdkelb/v3/model/pool_ref.py +3 -3
  138. huaweicloudsdkelb/v3/model/prepaid_create_option.py +12 -12
  139. huaweicloudsdkelb/v3/model/public_ip_info.py +9 -9
  140. huaweicloudsdkelb/v3/model/quota.py +21 -21
  141. huaweicloudsdkelb/v3/model/quota_info.py +3 -3
  142. huaweicloudsdkelb/v3/model/redirect_pools_config.py +144 -0
  143. huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py +81 -6
  144. huaweicloudsdkelb/v3/model/redirect_pools_sticky_session_config.py +144 -0
  145. huaweicloudsdkelb/v3/model/redirect_url_config.py +83 -27
  146. huaweicloudsdkelb/v3/model/remove_header_config.py +114 -0
  147. huaweicloudsdkelb/v3/model/remove_headers_config.py +114 -0
  148. huaweicloudsdkelb/v3/model/rewrite_url_config.py +9 -9
  149. huaweicloudsdkelb/v3/model/rule_condition.py +6 -6
  150. huaweicloudsdkelb/v3/model/rule_ref.py +3 -3
  151. huaweicloudsdkelb/v3/model/session_persistence.py +9 -9
  152. huaweicloudsdkelb/v3/model/show_certificate_private_key_echo_request.py +84 -0
  153. huaweicloudsdkelb/v3/model/show_certificate_private_key_echo_response.py +145 -0
  154. huaweicloudsdkelb/v3/model/show_flavor_request.py +3 -3
  155. huaweicloudsdkelb/v3/model/show_flavor_response.py +3 -3
  156. huaweicloudsdkelb/v3/model/show_ip_group_request.py +3 -3
  157. huaweicloudsdkelb/v3/model/show_ip_group_response.py +3 -3
  158. huaweicloudsdkelb/v3/model/show_l7_policy_request.py +3 -3
  159. huaweicloudsdkelb/v3/model/show_l7_policy_response.py +3 -3
  160. huaweicloudsdkelb/v3/model/show_l7_rule_response.py +3 -3
  161. huaweicloudsdkelb/v3/model/show_listener_response.py +3 -3
  162. huaweicloudsdkelb/v3/model/show_load_balancer_response.py +3 -3
  163. huaweicloudsdkelb/v3/model/show_load_balancer_status_response.py +3 -3
  164. huaweicloudsdkelb/v3/model/show_master_slave_pool_request.py +3 -3
  165. huaweicloudsdkelb/v3/model/show_member_request.py +3 -3
  166. huaweicloudsdkelb/v3/model/show_pool_request.py +3 -3
  167. huaweicloudsdkelb/v3/model/slow_start.py +6 -6
  168. huaweicloudsdkelb/v3/model/tag.py +6 -6
  169. huaweicloudsdkelb/v3/model/traffic_limit_config.py +173 -0
  170. huaweicloudsdkelb/v3/model/upadate_ip_group_ip_option.py +6 -6
  171. huaweicloudsdkelb/v3/model/update_certificate_option.py +3 -3
  172. huaweicloudsdkelb/v3/model/update_fixted_response_config.py +87 -12
  173. huaweicloudsdkelb/v3/model/update_health_monitor_option.py +15 -15
  174. huaweicloudsdkelb/v3/model/update_insert_header_config.py +170 -0
  175. huaweicloudsdkelb/v3/model/update_insert_headers_config.py +114 -0
  176. huaweicloudsdkelb/v3/model/update_ip_group_option.py +9 -9
  177. huaweicloudsdkelb/v3/model/update_ip_group_request.py +3 -3
  178. huaweicloudsdkelb/v3/model/update_ip_group_response.py +3 -3
  179. huaweicloudsdkelb/v3/model/update_ip_list_option.py +9 -9
  180. huaweicloudsdkelb/v3/model/update_ip_list_request.py +3 -3
  181. huaweicloudsdkelb/v3/model/update_ip_list_response.py +3 -3
  182. huaweicloudsdkelb/v3/model/update_l7_policy_option.py +76 -22
  183. huaweicloudsdkelb/v3/model/update_l7_policy_request.py +3 -3
  184. huaweicloudsdkelb/v3/model/update_l7_policy_response.py +3 -3
  185. huaweicloudsdkelb/v3/model/update_l7_rule_option.py +18 -18
  186. huaweicloudsdkelb/v3/model/update_l7_rule_response.py +3 -3
  187. huaweicloudsdkelb/v3/model/update_listener_ip_group_option.py +9 -9
  188. huaweicloudsdkelb/v3/model/update_listener_option.py +66 -66
  189. huaweicloudsdkelb/v3/model/update_listener_quic_config_option.py +6 -6
  190. huaweicloudsdkelb/v3/model/update_listener_response.py +3 -3
  191. huaweicloudsdkelb/v3/model/update_load_balancer_option.py +48 -48
  192. huaweicloudsdkelb/v3/model/update_load_balancer_response.py +9 -9
  193. huaweicloudsdkelb/v3/model/update_loadbalancer_autoscaling_option.py +6 -6
  194. huaweicloudsdkelb/v3/model/update_member_option.py +12 -12
  195. huaweicloudsdkelb/v3/model/update_member_request.py +3 -3
  196. huaweicloudsdkelb/v3/model/update_pool_option.py +52 -27
  197. huaweicloudsdkelb/v3/model/update_pool_request.py +3 -3
  198. huaweicloudsdkelb/v3/model/update_pool_session_persistence_option.py +6 -6
  199. huaweicloudsdkelb/v3/model/update_redirect_pools_config.py +143 -0
  200. huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py +84 -9
  201. huaweicloudsdkelb/v3/model/update_redirect_pools_sticky_session_config.py +144 -0
  202. huaweicloudsdkelb/v3/model/update_redirect_url_config.py +71 -21
  203. huaweicloudsdkelb/v3/model/update_remove_header_config.py +114 -0
  204. huaweicloudsdkelb/v3/model/update_remove_headers_config.py +114 -0
  205. huaweicloudsdkelb/v3/model/update_rewrite_url_config.py +173 -0
  206. huaweicloudsdkelb/v3/model/update_rule_condition.py +6 -6
  207. huaweicloudsdkelb/v3/model/update_traffic_limit_config.py +173 -0
  208. huaweicloudsdkelb/v3/region/elb_region.py +19 -1
  209. {huaweicloudsdkelb-3.1.86.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/METADATA +2 -2
  210. {huaweicloudsdkelb-3.1.86.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/RECORD +213 -184
  211. {huaweicloudsdkelb-3.1.86.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/WHEEL +1 -1
  212. {huaweicloudsdkelb-3.1.86.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/LICENSE +0 -0
  213. {huaweicloudsdkelb-3.1.86.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/top_level.txt +0 -0
@@ -18,41 +18,62 @@ class RedirectPoolsExtendConfig:
18
18
 
19
19
  openapi_types = {
20
20
  'rewrite_url_enable': 'bool',
21
- 'rewrite_url_config': 'RewriteUrlConfig'
21
+ 'rewrite_url_config': 'RewriteUrlConfig',
22
+ 'insert_headers_config': 'InsertHeadersConfig',
23
+ 'remove_headers_config': 'RemoveHeadersConfig',
24
+ 'traffic_limit_config': 'TrafficLimitConfig'
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
  """RedirectPoolsExtendConfig
31
37
 
32
38
  The model defined in huaweicloud sdk
33
39
 
34
- :param rewrite_url_enable: 是否开启url重定向
40
+ :param rewrite_url_enable: 参数解释:是否开启url重定向。
35
41
  :type rewrite_url_enable: bool
36
42
  :param rewrite_url_config:
37
43
  :type rewrite_url_config: :class:`huaweicloudsdkelb.v3.RewriteUrlConfig`
44
+ :param insert_headers_config:
45
+ :type insert_headers_config: :class:`huaweicloudsdkelb.v3.InsertHeadersConfig`
46
+ :param remove_headers_config:
47
+ :type remove_headers_config: :class:`huaweicloudsdkelb.v3.RemoveHeadersConfig`
48
+ :param traffic_limit_config:
49
+ :type traffic_limit_config: :class:`huaweicloudsdkelb.v3.TrafficLimitConfig`
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):
53
74
  """Gets the rewrite_url_enable of this RedirectPoolsExtendConfig.
54
75
 
55
- 是否开启url重定向
76
+ 参数解释:是否开启url重定向。
56
77
 
57
78
  :return: The rewrite_url_enable of this RedirectPoolsExtendConfig.
58
79
  :rtype: bool
@@ -63,7 +84,7 @@ class RedirectPoolsExtendConfig:
63
84
  def rewrite_url_enable(self, rewrite_url_enable):
64
85
  """Sets the rewrite_url_enable of this RedirectPoolsExtendConfig.
65
86
 
66
- 是否开启url重定向
87
+ 参数解释:是否开启url重定向。
67
88
 
68
89
  :param rewrite_url_enable: The rewrite_url_enable of this RedirectPoolsExtendConfig.
69
90
  :type rewrite_url_enable: bool
@@ -88,6 +109,60 @@ class RedirectPoolsExtendConfig:
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 RedirectPoolsExtendConfig.
115
+
116
+ :return: The insert_headers_config of this RedirectPoolsExtendConfig.
117
+ :rtype: :class:`huaweicloudsdkelb.v3.InsertHeadersConfig`
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 RedirectPoolsExtendConfig.
124
+
125
+ :param insert_headers_config: The insert_headers_config of this RedirectPoolsExtendConfig.
126
+ :type insert_headers_config: :class:`huaweicloudsdkelb.v3.InsertHeadersConfig`
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 RedirectPoolsExtendConfig.
133
+
134
+ :return: The remove_headers_config of this RedirectPoolsExtendConfig.
135
+ :rtype: :class:`huaweicloudsdkelb.v3.RemoveHeadersConfig`
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 RedirectPoolsExtendConfig.
142
+
143
+ :param remove_headers_config: The remove_headers_config of this RedirectPoolsExtendConfig.
144
+ :type remove_headers_config: :class:`huaweicloudsdkelb.v3.RemoveHeadersConfig`
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 RedirectPoolsExtendConfig.
151
+
152
+ :return: The traffic_limit_config of this RedirectPoolsExtendConfig.
153
+ :rtype: :class:`huaweicloudsdkelb.v3.TrafficLimitConfig`
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 RedirectPoolsExtendConfig.
160
+
161
+ :param traffic_limit_config: The traffic_limit_config of this RedirectPoolsExtendConfig.
162
+ :type traffic_limit_config: :class:`huaweicloudsdkelb.v3.TrafficLimitConfig`
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 RedirectPoolsStickySessionConfig:
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
+ """RedirectPoolsStickySessionConfig
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 RedirectPoolsStickySessionConfig.
54
+
55
+ 参数解释:转发策略主机组会话保持开启的开关。 默认取值:false,表示关闭主机组会话保持。
56
+
57
+ :return: The enable of this RedirectPoolsStickySessionConfig.
58
+ :rtype: bool
59
+ """
60
+ return self._enable
61
+
62
+ @enable.setter
63
+ def enable(self, enable):
64
+ """Sets the enable of this RedirectPoolsStickySessionConfig.
65
+
66
+ 参数解释:转发策略主机组会话保持开启的开关。 默认取值:false,表示关闭主机组会话保持。
67
+
68
+ :param enable: The enable of this RedirectPoolsStickySessionConfig.
69
+ :type enable: bool
70
+ """
71
+ self._enable = enable
72
+
73
+ @property
74
+ def timeout(self):
75
+ """Gets the timeout of this RedirectPoolsStickySessionConfig.
76
+
77
+ 参数解释:会话保持的时间。 取值范围:1-1440(分钟) 默认取值:1440 [荷兰region不支持QUIC。](tag:dt,dt_test)
78
+
79
+ :return: The timeout of this RedirectPoolsStickySessionConfig.
80
+ :rtype: int
81
+ """
82
+ return self._timeout
83
+
84
+ @timeout.setter
85
+ def timeout(self, timeout):
86
+ """Sets the timeout of this RedirectPoolsStickySessionConfig.
87
+
88
+ 参数解释:会话保持的时间。 取值范围:1-1440(分钟) 默认取值:1440 [荷兰region不支持QUIC。](tag:dt,dt_test)
89
+
90
+ :param timeout: The timeout of this RedirectPoolsStickySessionConfig.
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, RedirectPoolsStickySessionConfig):
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
@@ -22,7 +22,9 @@ class RedirectUrlConfig:
22
22
  'port': 'str',
23
23
  'path': 'str',
24
24
  'query': 'str',
25
- 'status_code': 'str'
25
+ 'status_code': 'str',
26
+ 'insert_headers_config': 'InsertHeadersConfig',
27
+ 'remove_headers_config': 'RemoveHeadersConfig'
26
28
  }
27
29
 
28
30
  attribute_map = {
@@ -31,26 +33,32 @@ class RedirectUrlConfig:
31
33
  'port': 'port',
32
34
  'path': 'path',
33
35
  'query': 'query',
34
- 'status_code': 'status_code'
36
+ 'status_code': 'status_code',
37
+ 'insert_headers_config': 'insert_headers_config',
38
+ 'remove_headers_config': 'remove_headers_config'
35
39
  }
36
40
 
37
- def __init__(self, protocol=None, host=None, port=None, path=None, query=None, status_code=None):
41
+ def __init__(self, protocol=None, host=None, port=None, path=None, query=None, status_code=None, insert_headers_config=None, remove_headers_config=None):
38
42
  """RedirectUrlConfig
39
43
 
40
44
  The model defined in huaweicloud sdk
41
45
 
42
- :param protocol: 重定向的协议。默认值${protocol}表示继承原值(即与被转发请求保持一致)。 取值: - HTTP - HTTPS - ${protocol}
46
+ :param protocol: 参数解释:重定向的协议。 取值范围: - HTTP - HTTPS - ${protocol},表示继承原值(即与被转发请求保持一致)。
43
47
  :type protocol: str
44
- :param host: 重定向的主机名。字符串只能包含英文字母、数字、“-”、“.”。 且必须以字母、数字开头。默认值${host}表示继承原值(即与被转发请求保持一致)。
48
+ :param host: 参数解释:重定向的主机名。 取值范围:只能包含英文字母、数字、“-”、“.”。且必须以字母、数字开头。 默认取值:${host} 表示继承原值(即与被转发请求保持一致)。
45
49
  :type host: str
46
- :param port: 重定向到的端口。默认值${port}表示继承原值(即与被转发请求保持一致)。
50
+ :param port: 参数解释:重定向到的端口。 默认取值:默认值${port}表示继承原值(即与被转发请求保持一致)。
47
51
  :type port: str
48
- :param path: 重定向的路径。默认值${path}表示继承原值(即与被转发请求保持一致)。 支持英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。
52
+ :param path: 参数解释:重定向的路径。 取值范围:支持英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 默认取值:${path} 表示继承原值(即与被转发请求保持一致)。
49
53
  :type path: str
50
- :param query: 重定向的查询字符串。默认${query}表示继承原值(即与被转发请求保持一致)。举例如下: 若该字段被设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer, 此时${query}表示type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。 只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。
54
+ :param query: 参数解释:重定向的查询字符串。举例如下: 将query设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。在例子中${query}表示type=loadbalancer取值范围:只能包含英文字母、数字和特殊字符:!$&'()\\*+,-./:;=?@^_`。字母区分大小写。其中$1,$2会匹配请求url通配符星号(\\*) 默认取值:${query}表示继承原值(即与被转发请求保持一致)
51
55
  :type query: str
52
- :param status_code: 重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308
56
+ :param status_code: 参数解释:重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308
53
57
  :type status_code: str
58
+ :param insert_headers_config:
59
+ :type insert_headers_config: :class:`huaweicloudsdkelb.v3.InsertHeadersConfig`
60
+ :param remove_headers_config:
61
+ :type remove_headers_config: :class:`huaweicloudsdkelb.v3.RemoveHeadersConfig`
54
62
  """
55
63
 
56
64
 
@@ -61,20 +69,32 @@ class RedirectUrlConfig:
61
69
  self._path = None
62
70
  self._query = None
63
71
  self._status_code = None
72
+ self._insert_headers_config = None
73
+ self._remove_headers_config = None
64
74
  self.discriminator = None
65
75
 
66
- self.protocol = protocol
67
- self.host = host
68
- self.port = port
69
- self.path = path
70
- self.query = query
71
- self.status_code = status_code
76
+ if protocol is not None:
77
+ self.protocol = protocol
78
+ if host is not None:
79
+ self.host = host
80
+ if port is not None:
81
+ self.port = port
82
+ if path is not None:
83
+ self.path = path
84
+ if query is not None:
85
+ self.query = query
86
+ if status_code is not None:
87
+ self.status_code = status_code
88
+ if insert_headers_config is not None:
89
+ self.insert_headers_config = insert_headers_config
90
+ if remove_headers_config is not None:
91
+ self.remove_headers_config = remove_headers_config
72
92
 
73
93
  @property
74
94
  def protocol(self):
75
95
  """Gets the protocol of this RedirectUrlConfig.
76
96
 
77
- 重定向的协议。默认值${protocol}表示继承原值(即与被转发请求保持一致)。 取值: - HTTP - HTTPS - ${protocol}
97
+ 参数解释:重定向的协议。 取值范围: - HTTP - HTTPS - ${protocol},表示继承原值(即与被转发请求保持一致)。
78
98
 
79
99
  :return: The protocol of this RedirectUrlConfig.
80
100
  :rtype: str
@@ -85,7 +105,7 @@ class RedirectUrlConfig:
85
105
  def protocol(self, protocol):
86
106
  """Sets the protocol of this RedirectUrlConfig.
87
107
 
88
- 重定向的协议。默认值${protocol}表示继承原值(即与被转发请求保持一致)。 取值: - HTTP - HTTPS - ${protocol}
108
+ 参数解释:重定向的协议。 取值范围: - HTTP - HTTPS - ${protocol},表示继承原值(即与被转发请求保持一致)。
89
109
 
90
110
  :param protocol: The protocol of this RedirectUrlConfig.
91
111
  :type protocol: str
@@ -96,7 +116,7 @@ class RedirectUrlConfig:
96
116
  def host(self):
97
117
  """Gets the host of this RedirectUrlConfig.
98
118
 
99
- 重定向的主机名。字符串只能包含英文字母、数字、“-”、“.”。 且必须以字母、数字开头。默认值${host}表示继承原值(即与被转发请求保持一致)。
119
+ 参数解释:重定向的主机名。 取值范围:只能包含英文字母、数字、“-”、“.”。且必须以字母、数字开头。 默认取值:${host} 表示继承原值(即与被转发请求保持一致)。
100
120
 
101
121
  :return: The host of this RedirectUrlConfig.
102
122
  :rtype: str
@@ -107,7 +127,7 @@ class RedirectUrlConfig:
107
127
  def host(self, host):
108
128
  """Sets the host of this RedirectUrlConfig.
109
129
 
110
- 重定向的主机名。字符串只能包含英文字母、数字、“-”、“.”。 且必须以字母、数字开头。默认值${host}表示继承原值(即与被转发请求保持一致)。
130
+ 参数解释:重定向的主机名。 取值范围:只能包含英文字母、数字、“-”、“.”。且必须以字母、数字开头。 默认取值:${host} 表示继承原值(即与被转发请求保持一致)。
111
131
 
112
132
  :param host: The host of this RedirectUrlConfig.
113
133
  :type host: str
@@ -118,7 +138,7 @@ class RedirectUrlConfig:
118
138
  def port(self):
119
139
  """Gets the port of this RedirectUrlConfig.
120
140
 
121
- 重定向到的端口。默认值${port}表示继承原值(即与被转发请求保持一致)。
141
+ 参数解释:重定向到的端口。 默认取值:默认值${port}表示继承原值(即与被转发请求保持一致)。
122
142
 
123
143
  :return: The port of this RedirectUrlConfig.
124
144
  :rtype: str
@@ -129,7 +149,7 @@ class RedirectUrlConfig:
129
149
  def port(self, port):
130
150
  """Sets the port of this RedirectUrlConfig.
131
151
 
132
- 重定向到的端口。默认值${port}表示继承原值(即与被转发请求保持一致)。
152
+ 参数解释:重定向到的端口。 默认取值:默认值${port}表示继承原值(即与被转发请求保持一致)。
133
153
 
134
154
  :param port: The port of this RedirectUrlConfig.
135
155
  :type port: str
@@ -140,7 +160,7 @@ class RedirectUrlConfig:
140
160
  def path(self):
141
161
  """Gets the path of this RedirectUrlConfig.
142
162
 
143
- 重定向的路径。默认值${path}表示继承原值(即与被转发请求保持一致)。 支持英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。
163
+ 参数解释:重定向的路径。 取值范围:支持英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 默认取值:${path} 表示继承原值(即与被转发请求保持一致)。
144
164
 
145
165
  :return: The path of this RedirectUrlConfig.
146
166
  :rtype: str
@@ -151,7 +171,7 @@ class RedirectUrlConfig:
151
171
  def path(self, path):
152
172
  """Sets the path of this RedirectUrlConfig.
153
173
 
154
- 重定向的路径。默认值${path}表示继承原值(即与被转发请求保持一致)。 支持英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。
174
+ 参数解释:重定向的路径。 取值范围:支持英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 默认取值:${path} 表示继承原值(即与被转发请求保持一致)。
155
175
 
156
176
  :param path: The path of this RedirectUrlConfig.
157
177
  :type path: str
@@ -162,7 +182,7 @@ class RedirectUrlConfig:
162
182
  def query(self):
163
183
  """Gets the query of this RedirectUrlConfig.
164
184
 
165
- 重定向的查询字符串。默认${query}表示继承原值(即与被转发请求保持一致)。举例如下: 若该字段被设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer, 此时${query}表示type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。 只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。
185
+ 参数解释:重定向的查询字符串。举例如下: 将query设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。在例子中${query}表示type=loadbalancer取值范围:只能包含英文字母、数字和特殊字符:!$&'()\\*+,-./:;=?@^_`。字母区分大小写。其中$1,$2会匹配请求url通配符星号(\\*) 默认取值:${query}表示继承原值(即与被转发请求保持一致)
166
186
 
167
187
  :return: The query of this RedirectUrlConfig.
168
188
  :rtype: str
@@ -173,7 +193,7 @@ class RedirectUrlConfig:
173
193
  def query(self, query):
174
194
  """Sets the query of this RedirectUrlConfig.
175
195
 
176
- 重定向的查询字符串。默认${query}表示继承原值(即与被转发请求保持一致)。举例如下: 若该字段被设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer, 此时${query}表示type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。 只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。
196
+ 参数解释:重定向的查询字符串。举例如下: 将query设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.example.com:8080/elb?type=loadbalancer)时,将会重定向到 https://www.example.com:8080/elb?type=loadbalancer&name=my_name。在例子中${query}表示type=loadbalancer取值范围:只能包含英文字母、数字和特殊字符:!$&'()\\*+,-./:;=?@^_`。字母区分大小写。其中$1,$2会匹配请求url通配符星号(\\*) 默认取值:${query}表示继承原值(即与被转发请求保持一致)
177
197
 
178
198
  :param query: The query of this RedirectUrlConfig.
179
199
  :type query: str
@@ -184,7 +204,7 @@ class RedirectUrlConfig:
184
204
  def status_code(self):
185
205
  """Gets the status_code of this RedirectUrlConfig.
186
206
 
187
- 重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308
207
+ 参数解释:重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308
188
208
 
189
209
  :return: The status_code of this RedirectUrlConfig.
190
210
  :rtype: str
@@ -195,13 +215,49 @@ class RedirectUrlConfig:
195
215
  def status_code(self, status_code):
196
216
  """Sets the status_code of this RedirectUrlConfig.
197
217
 
198
- 重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308
218
+ 参数解释:重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308
199
219
 
200
220
  :param status_code: The status_code of this RedirectUrlConfig.
201
221
  :type status_code: str
202
222
  """
203
223
  self._status_code = status_code
204
224
 
225
+ @property
226
+ def insert_headers_config(self):
227
+ """Gets the insert_headers_config of this RedirectUrlConfig.
228
+
229
+ :return: The insert_headers_config of this RedirectUrlConfig.
230
+ :rtype: :class:`huaweicloudsdkelb.v3.InsertHeadersConfig`
231
+ """
232
+ return self._insert_headers_config
233
+
234
+ @insert_headers_config.setter
235
+ def insert_headers_config(self, insert_headers_config):
236
+ """Sets the insert_headers_config of this RedirectUrlConfig.
237
+
238
+ :param insert_headers_config: The insert_headers_config of this RedirectUrlConfig.
239
+ :type insert_headers_config: :class:`huaweicloudsdkelb.v3.InsertHeadersConfig`
240
+ """
241
+ self._insert_headers_config = insert_headers_config
242
+
243
+ @property
244
+ def remove_headers_config(self):
245
+ """Gets the remove_headers_config of this RedirectUrlConfig.
246
+
247
+ :return: The remove_headers_config of this RedirectUrlConfig.
248
+ :rtype: :class:`huaweicloudsdkelb.v3.RemoveHeadersConfig`
249
+ """
250
+ return self._remove_headers_config
251
+
252
+ @remove_headers_config.setter
253
+ def remove_headers_config(self, remove_headers_config):
254
+ """Sets the remove_headers_config of this RedirectUrlConfig.
255
+
256
+ :param remove_headers_config: The remove_headers_config of this RedirectUrlConfig.
257
+ :type remove_headers_config: :class:`huaweicloudsdkelb.v3.RemoveHeadersConfig`
258
+ """
259
+ self._remove_headers_config = remove_headers_config
260
+
205
261
  def to_dict(self):
206
262
  """Returns the model properties as a dict"""
207
263
  result = {}
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RemoveHeaderConfig:
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
+ 'key': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'key': 'key'
25
+ }
26
+
27
+ def __init__(self, key=None):
28
+ """RemoveHeaderConfig
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param key: 参数解释:被移除的请求头的参数名。 约束限制:不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out 取值范围:1-40个字符,字母a-z(不区分大小写)、数字,短划线-和下划线_。
33
+ :type key: str
34
+ """
35
+
36
+
37
+
38
+ self._key = None
39
+ self.discriminator = None
40
+
41
+ self.key = key
42
+
43
+ @property
44
+ def key(self):
45
+ """Gets the key of this RemoveHeaderConfig.
46
+
47
+ 参数解释:被移除的请求头的参数名。 约束限制:不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out 取值范围:1-40个字符,字母a-z(不区分大小写)、数字,短划线-和下划线_。
48
+
49
+ :return: The key of this RemoveHeaderConfig.
50
+ :rtype: str
51
+ """
52
+ return self._key
53
+
54
+ @key.setter
55
+ def key(self, key):
56
+ """Sets the key of this RemoveHeaderConfig.
57
+
58
+ 参数解释:被移除的请求头的参数名。 约束限制:不能移除以下请求头参数: connection、upgrade、content-length、transfer-encoding、keep-alive、te、host、cookie、remoteip、authority、x-forwarded-host、x-forwarded-for、x-forwarded-for-port、x-forwarded-tls-certificate-id、x-forwarded-tls-protocol、x-forwarded-tls-cipher、x-forwarded-elb-ip、x-forwarded-port、x-forwarded-elb-id、x-forwarded-elb-vip、x-real-ip、x-forwarded-proto、x-nuwa-trace-ne-in、x-nuwa-trace-ne-out 取值范围:1-40个字符,字母a-z(不区分大小写)、数字,短划线-和下划线_。
59
+
60
+ :param key: The key of this RemoveHeaderConfig.
61
+ :type key: str
62
+ """
63
+ self._key = key
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, RemoveHeaderConfig):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other