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
@@ -19,26 +19,38 @@ class CreateFixtedResponseConfig:
19
19
  openapi_types = {
20
20
  'status_code': 'str',
21
21
  'content_type': 'str',
22
- 'message_body': 'str'
22
+ 'message_body': 'str',
23
+ 'insert_headers_config': 'CreateInsertHeadersConfig',
24
+ 'remove_headers_config': 'CreateRemoveHeadersConfig',
25
+ 'traffic_limit_config': 'CreateTrafficLimitConfig'
23
26
  }
24
27
 
25
28
  attribute_map = {
26
29
  'status_code': 'status_code',
27
30
  'content_type': 'content_type',
28
- 'message_body': 'message_body'
31
+ 'message_body': 'message_body',
32
+ 'insert_headers_config': 'insert_headers_config',
33
+ 'remove_headers_config': 'remove_headers_config',
34
+ 'traffic_limit_config': 'traffic_limit_config'
29
35
  }
30
36
 
31
- def __init__(self, status_code=None, content_type=None, message_body=None):
37
+ def __init__(self, status_code=None, content_type=None, message_body=None, insert_headers_config=None, remove_headers_config=None, traffic_limit_config=None):
32
38
  """CreateFixtedResponseConfig
33
39
 
34
40
  The model defined in huaweicloud sdk
35
41
 
36
- :param status_code: 返回码。支持200~299,400~499,500~599。
42
+ :param status_code: 参数解释:返回码。 取值范围:200-299400-499500-599。
37
43
  :type status_code: str
38
- :param content_type: 返回body的格式。 取值范围: - text/plain,默认值 - text/css - text/html - application/javascript - application/json
44
+ :param content_type: 参数解释:返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json 默认取值:text/plain
39
45
  :type content_type: str
40
- :param message_body: 返回消息内容。
46
+ :param message_body: 参数解释:返回消息内容。
41
47
  :type message_body: str
48
+ :param insert_headers_config:
49
+ :type insert_headers_config: :class:`huaweicloudsdkelb.v3.CreateInsertHeadersConfig`
50
+ :param remove_headers_config:
51
+ :type remove_headers_config: :class:`huaweicloudsdkelb.v3.CreateRemoveHeadersConfig`
52
+ :param traffic_limit_config:
53
+ :type traffic_limit_config: :class:`huaweicloudsdkelb.v3.CreateTrafficLimitConfig`
42
54
  """
43
55
 
44
56
 
@@ -46,6 +58,9 @@ class CreateFixtedResponseConfig:
46
58
  self._status_code = None
47
59
  self._content_type = None
48
60
  self._message_body = None
61
+ self._insert_headers_config = None
62
+ self._remove_headers_config = None
63
+ self._traffic_limit_config = None
49
64
  self.discriminator = None
50
65
 
51
66
  self.status_code = status_code
@@ -53,12 +68,18 @@ class CreateFixtedResponseConfig:
53
68
  self.content_type = content_type
54
69
  if message_body is not None:
55
70
  self.message_body = message_body
71
+ if insert_headers_config is not None:
72
+ self.insert_headers_config = insert_headers_config
73
+ if remove_headers_config is not None:
74
+ self.remove_headers_config = remove_headers_config
75
+ if traffic_limit_config is not None:
76
+ self.traffic_limit_config = traffic_limit_config
56
77
 
57
78
  @property
58
79
  def status_code(self):
59
80
  """Gets the status_code of this CreateFixtedResponseConfig.
60
81
 
61
- 返回码。支持200~299,400~499,500~599。
82
+ 参数解释:返回码。 取值范围:200-299400-499500-599。
62
83
 
63
84
  :return: The status_code of this CreateFixtedResponseConfig.
64
85
  :rtype: str
@@ -69,7 +90,7 @@ class CreateFixtedResponseConfig:
69
90
  def status_code(self, status_code):
70
91
  """Sets the status_code of this CreateFixtedResponseConfig.
71
92
 
72
- 返回码。支持200~299,400~499,500~599。
93
+ 参数解释:返回码。 取值范围:200-299400-499500-599。
73
94
 
74
95
  :param status_code: The status_code of this CreateFixtedResponseConfig.
75
96
  :type status_code: str
@@ -80,7 +101,7 @@ class CreateFixtedResponseConfig:
80
101
  def content_type(self):
81
102
  """Gets the content_type of this CreateFixtedResponseConfig.
82
103
 
83
- 返回body的格式。 取值范围: - text/plain,默认值 - text/css - text/html - application/javascript - application/json
104
+ 参数解释:返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json 默认取值:text/plain
84
105
 
85
106
  :return: The content_type of this CreateFixtedResponseConfig.
86
107
  :rtype: str
@@ -91,7 +112,7 @@ class CreateFixtedResponseConfig:
91
112
  def content_type(self, content_type):
92
113
  """Sets the content_type of this CreateFixtedResponseConfig.
93
114
 
94
- 返回body的格式。 取值范围: - text/plain,默认值 - text/css - text/html - application/javascript - application/json
115
+ 参数解释:返回body的格式。 取值范围: - text/plain - text/css - text/html - application/javascript - application/json 默认取值:text/plain
95
116
 
96
117
  :param content_type: The content_type of this CreateFixtedResponseConfig.
97
118
  :type content_type: str
@@ -102,7 +123,7 @@ class CreateFixtedResponseConfig:
102
123
  def message_body(self):
103
124
  """Gets the message_body of this CreateFixtedResponseConfig.
104
125
 
105
- 返回消息内容。
126
+ 参数解释:返回消息内容。
106
127
 
107
128
  :return: The message_body of this CreateFixtedResponseConfig.
108
129
  :rtype: str
@@ -113,13 +134,67 @@ class CreateFixtedResponseConfig:
113
134
  def message_body(self, message_body):
114
135
  """Sets the message_body of this CreateFixtedResponseConfig.
115
136
 
116
- 返回消息内容。
137
+ 参数解释:返回消息内容。
117
138
 
118
139
  :param message_body: The message_body of this CreateFixtedResponseConfig.
119
140
  :type message_body: str
120
141
  """
121
142
  self._message_body = message_body
122
143
 
144
+ @property
145
+ def insert_headers_config(self):
146
+ """Gets the insert_headers_config of this CreateFixtedResponseConfig.
147
+
148
+ :return: The insert_headers_config of this CreateFixtedResponseConfig.
149
+ :rtype: :class:`huaweicloudsdkelb.v3.CreateInsertHeadersConfig`
150
+ """
151
+ return self._insert_headers_config
152
+
153
+ @insert_headers_config.setter
154
+ def insert_headers_config(self, insert_headers_config):
155
+ """Sets the insert_headers_config of this CreateFixtedResponseConfig.
156
+
157
+ :param insert_headers_config: The insert_headers_config of this CreateFixtedResponseConfig.
158
+ :type insert_headers_config: :class:`huaweicloudsdkelb.v3.CreateInsertHeadersConfig`
159
+ """
160
+ self._insert_headers_config = insert_headers_config
161
+
162
+ @property
163
+ def remove_headers_config(self):
164
+ """Gets the remove_headers_config of this CreateFixtedResponseConfig.
165
+
166
+ :return: The remove_headers_config of this CreateFixtedResponseConfig.
167
+ :rtype: :class:`huaweicloudsdkelb.v3.CreateRemoveHeadersConfig`
168
+ """
169
+ return self._remove_headers_config
170
+
171
+ @remove_headers_config.setter
172
+ def remove_headers_config(self, remove_headers_config):
173
+ """Sets the remove_headers_config of this CreateFixtedResponseConfig.
174
+
175
+ :param remove_headers_config: The remove_headers_config of this CreateFixtedResponseConfig.
176
+ :type remove_headers_config: :class:`huaweicloudsdkelb.v3.CreateRemoveHeadersConfig`
177
+ """
178
+ self._remove_headers_config = remove_headers_config
179
+
180
+ @property
181
+ def traffic_limit_config(self):
182
+ """Gets the traffic_limit_config of this CreateFixtedResponseConfig.
183
+
184
+ :return: The traffic_limit_config of this CreateFixtedResponseConfig.
185
+ :rtype: :class:`huaweicloudsdkelb.v3.CreateTrafficLimitConfig`
186
+ """
187
+ return self._traffic_limit_config
188
+
189
+ @traffic_limit_config.setter
190
+ def traffic_limit_config(self, traffic_limit_config):
191
+ """Sets the traffic_limit_config of this CreateFixtedResponseConfig.
192
+
193
+ :param traffic_limit_config: The traffic_limit_config of this CreateFixtedResponseConfig.
194
+ :type traffic_limit_config: :class:`huaweicloudsdkelb.v3.CreateTrafficLimitConfig`
195
+ """
196
+ self._traffic_limit_config = traffic_limit_config
197
+
123
198
  def to_dict(self):
124
199
  """Returns the model properties as a dict"""
125
200
  result = {}
@@ -55,31 +55,31 @@ class CreateHealthMonitorOption:
55
55
 
56
56
  The model defined in huaweicloud sdk
57
57
 
58
- :param admin_state_up: 健康检查的管理状态。 取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。
58
+ :param admin_state_up: 参数解释:健康检查的管理状态。 取值范围: - true:表示开启健康检查。 - false表示关闭健康检查。 默认取值:true
59
59
  :type admin_state_up: bool
60
60
  :param delay: 健康检查间隔。取值:1-50s。
61
61
  :type delay: int
62
62
  :param domain_name: 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 默认为空,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。
63
63
  :type domain_name: str
64
- :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS设置该字段,其他协议设置不会生效。
64
+ :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为GRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。
65
65
  :type expected_codes: str
66
- :param http_method: HTTP请求方法。 取值:GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH,默认GET。 使用说明:当type为HTTP/HTTPS时生效。 不支持该字段,请勿使用。
66
+ :param http_method: HTTP请求方法。 取值:GET、HEAD、POST,默认GET。 使用说明:当type为HTTP/HTTPS时生效。
67
67
  :type http_method: str
68
68
  :param max_retries: 健康检查连续成功多少次后,将后端服务器的健康检查状态由OFFLINE判定为ONLINE。取值范围:1-10。
69
69
  :type max_retries: int
70
70
  :param max_retries_down: 健康检查连续失败多少次后,将后端服务器的健康检查状态由ONLINE判定为OFFLINE。取值范围:1-10,默认3。
71
71
  :type max_retries_down: int
72
- :param monitor_port: 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。 >当绑定的pool开启了端口透传功能时,该字段为必填。
72
+ :param monitor_port: 健康检查端口号。取值:1-65535,默认为空,表示使用后端服务器端口号。 [当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) >当绑定的pool开启了端口透传功能时,该字段为必填。
73
73
  :type monitor_port: int
74
74
  :param name: 健康检查名称。
75
75
  :type name: str
76
- :param pool_id: 健康检查所在的后端云服务器组ID
76
+ :param pool_id: 健康检查所在的后端服务器组ID
77
77
  :type pool_id: str
78
78
  :param project_id: 健康检查所在的项目ID。
79
79
  :type project_id: str
80
80
  :param timeout: 一次健康检查请求的超时时间。 建议该值小于delay的值。
81
81
  :type timeout: int
82
- :param type: 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
82
+ :param type: 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、GRPC和TLS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
83
83
  :type type: str
84
84
  :param url_path: 健康检查请求的请求路径。以\"/\"开头,默认为\"/\"。 支持使用字母、数字和短划线(-)、正斜线(/)、半角句号(.)、百分号(%)、半角问号(?)、井号(#)和and(&)以及扩展字符集_;~!()*[]@$^:',+ 使用说明:当type为HTTP/HTTPS时生效。
85
85
  :type url_path: str
@@ -131,7 +131,7 @@ class CreateHealthMonitorOption:
131
131
  def admin_state_up(self):
132
132
  """Gets the admin_state_up of this CreateHealthMonitorOption.
133
133
 
134
- 健康检查的管理状态。 取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。
134
+ 参数解释:健康检查的管理状态。 取值范围: - true:表示开启健康检查。 - false表示关闭健康检查。 默认取值:true
135
135
 
136
136
  :return: The admin_state_up of this CreateHealthMonitorOption.
137
137
  :rtype: bool
@@ -142,7 +142,7 @@ class CreateHealthMonitorOption:
142
142
  def admin_state_up(self, admin_state_up):
143
143
  """Sets the admin_state_up of this CreateHealthMonitorOption.
144
144
 
145
- 健康检查的管理状态。 取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。
145
+ 参数解释:健康检查的管理状态。 取值范围: - true:表示开启健康检查。 - false表示关闭健康检查。 默认取值:true
146
146
 
147
147
  :param admin_state_up: The admin_state_up of this CreateHealthMonitorOption.
148
148
  :type admin_state_up: bool
@@ -197,7 +197,7 @@ class CreateHealthMonitorOption:
197
197
  def expected_codes(self):
198
198
  """Gets the expected_codes of this CreateHealthMonitorOption.
199
199
 
200
- 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS设置该字段,其他协议设置不会生效。
200
+ 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为GRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。
201
201
 
202
202
  :return: The expected_codes of this CreateHealthMonitorOption.
203
203
  :rtype: str
@@ -208,7 +208,7 @@ class CreateHealthMonitorOption:
208
208
  def expected_codes(self, expected_codes):
209
209
  """Sets the expected_codes of this CreateHealthMonitorOption.
210
210
 
211
- 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS设置该字段,其他协议设置不会生效。
211
+ 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为GRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。
212
212
 
213
213
  :param expected_codes: The expected_codes of this CreateHealthMonitorOption.
214
214
  :type expected_codes: str
@@ -219,7 +219,7 @@ class CreateHealthMonitorOption:
219
219
  def http_method(self):
220
220
  """Gets the http_method of this CreateHealthMonitorOption.
221
221
 
222
- HTTP请求方法。 取值:GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH,默认GET。 使用说明:当type为HTTP/HTTPS时生效。 不支持该字段,请勿使用。
222
+ HTTP请求方法。 取值:GET、HEAD、POST,默认GET。 使用说明:当type为HTTP/HTTPS时生效。
223
223
 
224
224
  :return: The http_method of this CreateHealthMonitorOption.
225
225
  :rtype: str
@@ -230,7 +230,7 @@ class CreateHealthMonitorOption:
230
230
  def http_method(self, http_method):
231
231
  """Sets the http_method of this CreateHealthMonitorOption.
232
232
 
233
- HTTP请求方法。 取值:GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH,默认GET。 使用说明:当type为HTTP/HTTPS时生效。 不支持该字段,请勿使用。
233
+ HTTP请求方法。 取值:GET、HEAD、POST,默认GET。 使用说明:当type为HTTP/HTTPS时生效。
234
234
 
235
235
  :param http_method: The http_method of this CreateHealthMonitorOption.
236
236
  :type http_method: str
@@ -285,7 +285,7 @@ class CreateHealthMonitorOption:
285
285
  def monitor_port(self):
286
286
  """Gets the monitor_port of this CreateHealthMonitorOption.
287
287
 
288
- 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。 >当绑定的pool开启了端口透传功能时,该字段为必填。
288
+ 健康检查端口号。取值:1-65535,默认为空,表示使用后端服务器端口号。 [当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) >当绑定的pool开启了端口透传功能时,该字段为必填。
289
289
 
290
290
  :return: The monitor_port of this CreateHealthMonitorOption.
291
291
  :rtype: int
@@ -296,7 +296,7 @@ class CreateHealthMonitorOption:
296
296
  def monitor_port(self, monitor_port):
297
297
  """Sets the monitor_port of this CreateHealthMonitorOption.
298
298
 
299
- 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。 >当绑定的pool开启了端口透传功能时,该字段为必填。
299
+ 健康检查端口号。取值:1-65535,默认为空,表示使用后端服务器端口号。 [当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) >当绑定的pool开启了端口透传功能时,该字段为必填。
300
300
 
301
301
  :param monitor_port: The monitor_port of this CreateHealthMonitorOption.
302
302
  :type monitor_port: int
@@ -329,7 +329,7 @@ class CreateHealthMonitorOption:
329
329
  def pool_id(self):
330
330
  """Gets the pool_id of this CreateHealthMonitorOption.
331
331
 
332
- 健康检查所在的后端云服务器组ID
332
+ 健康检查所在的后端服务器组ID
333
333
 
334
334
  :return: The pool_id of this CreateHealthMonitorOption.
335
335
  :rtype: str
@@ -340,7 +340,7 @@ class CreateHealthMonitorOption:
340
340
  def pool_id(self, pool_id):
341
341
  """Sets the pool_id of this CreateHealthMonitorOption.
342
342
 
343
- 健康检查所在的后端云服务器组ID
343
+ 健康检查所在的后端服务器组ID
344
344
 
345
345
  :param pool_id: The pool_id of this CreateHealthMonitorOption.
346
346
  :type pool_id: str
@@ -395,7 +395,7 @@ class CreateHealthMonitorOption:
395
395
  def type(self):
396
396
  """Gets the type of this CreateHealthMonitorOption.
397
397
 
398
- 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
398
+ 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、GRPC和TLS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
399
399
 
400
400
  :return: The type of this CreateHealthMonitorOption.
401
401
  :rtype: str
@@ -406,7 +406,7 @@ class CreateHealthMonitorOption:
406
406
  def type(self, type):
407
407
  """Sets the type of this CreateHealthMonitorOption.
408
408
 
409
- 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
409
+ 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS、GRPC和TLS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 [- 若pool的protocol为IP,则type可以是TCP、HTTP、HTTPS。](tag:hws_eu) - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC - 若pool的protocol为GRPC,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 - 若pool的protocol为TLS,则type可以是TCP、HTTP、HTTPS、TLS、GRPC。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
410
410
 
411
411
  :param type: The type of this CreateHealthMonitorOption.
412
412
  :type type: str
@@ -0,0 +1,170 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateInsertHeaderConfig:
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
+ 'value_type': 'str',
22
+ 'value': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'key': 'key',
27
+ 'value_type': 'value_type',
28
+ 'value': 'value'
29
+ }
30
+
31
+ def __init__(self, key=None, value_type=None, value=None):
32
+ """CreateInsertHeaderConfig
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :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(不区分大小写)、数字,短划线-和下划线_。
37
+ :type key: str
38
+ :param value_type: 参数解释:请求头参数类别。 取值范围:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。
39
+ :type value_type: str
40
+ :param value: 参数解释:请求头参数的值。 约束限制:当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符,支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。
41
+ :type value: str
42
+ """
43
+
44
+
45
+
46
+ self._key = None
47
+ self._value_type = None
48
+ self._value = None
49
+ self.discriminator = None
50
+
51
+ self.key = key
52
+ self.value_type = value_type
53
+ self.value = value
54
+
55
+ @property
56
+ def key(self):
57
+ """Gets the key of this CreateInsertHeaderConfig.
58
+
59
+ 参数解释:请求头参数名。 约束限制:不能是以下字符: 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(不区分大小写)、数字,短划线-和下划线_。
60
+
61
+ :return: The key of this CreateInsertHeaderConfig.
62
+ :rtype: str
63
+ """
64
+ return self._key
65
+
66
+ @key.setter
67
+ def key(self, key):
68
+ """Sets the key of this CreateInsertHeaderConfig.
69
+
70
+ 参数解释:请求头参数名。 约束限制:不能是以下字符: 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(不区分大小写)、数字,短划线-和下划线_。
71
+
72
+ :param key: The key of this CreateInsertHeaderConfig.
73
+ :type key: str
74
+ """
75
+ self._key = key
76
+
77
+ @property
78
+ def value_type(self):
79
+ """Gets the value_type of this CreateInsertHeaderConfig.
80
+
81
+ 参数解释:请求头参数类别。 取值范围:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。
82
+
83
+ :return: The value_type of this CreateInsertHeaderConfig.
84
+ :rtype: str
85
+ """
86
+ return self._value_type
87
+
88
+ @value_type.setter
89
+ def value_type(self, value_type):
90
+ """Sets the value_type of this CreateInsertHeaderConfig.
91
+
92
+ 参数解释:请求头参数类别。 取值范围:USER_DEFINED,REFERENCE_HEADER,SYSTEM_DEFINED。
93
+
94
+ :param value_type: The value_type of this CreateInsertHeaderConfig.
95
+ :type value_type: str
96
+ """
97
+ self._value_type = value_type
98
+
99
+ @property
100
+ def value(self):
101
+ """Gets the value of this CreateInsertHeaderConfig.
102
+
103
+ 参数解释:请求头参数的值。 约束限制:当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符,支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。
104
+
105
+ :return: The value of this CreateInsertHeaderConfig.
106
+ :rtype: str
107
+ """
108
+ return self._value
109
+
110
+ @value.setter
111
+ def value(self, value):
112
+ """Sets the value of this CreateInsertHeaderConfig.
113
+
114
+ 参数解释:请求头参数的值。 约束限制:当value_type为SYSTEM_DEFINED时,value只可从CLIENT-PORT,CLIENT-IP, ELB-PROTOCOL, ELB-ID, ELB-PORT, ELB-EIP, ELB-VIP中取值。 取值范围:1-128个字符,支持ascii码值32<=ch<=127范围内可打印字符,*和英文问号?。不能以空格开头或结尾。
115
+
116
+ :param value: The value of this CreateInsertHeaderConfig.
117
+ :type value: str
118
+ """
119
+ self._value = value
120
+
121
+ def to_dict(self):
122
+ """Returns the model properties as a dict"""
123
+ result = {}
124
+
125
+ for attr, _ in six.iteritems(self.openapi_types):
126
+ value = getattr(self, attr)
127
+ if isinstance(value, list):
128
+ result[attr] = list(map(
129
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
130
+ value
131
+ ))
132
+ elif hasattr(value, "to_dict"):
133
+ result[attr] = value.to_dict()
134
+ elif isinstance(value, dict):
135
+ result[attr] = dict(map(
136
+ lambda item: (item[0], item[1].to_dict())
137
+ if hasattr(item[1], "to_dict") else item,
138
+ value.items()
139
+ ))
140
+ else:
141
+ if attr in self.sensitive_list:
142
+ result[attr] = "****"
143
+ else:
144
+ result[attr] = value
145
+
146
+ return result
147
+
148
+ def to_str(self):
149
+ """Returns the string representation of the model"""
150
+ import simplejson as json
151
+ if six.PY2:
152
+ import sys
153
+ reload(sys)
154
+ sys.setdefaultencoding("utf-8")
155
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
156
+
157
+ def __repr__(self):
158
+ """For `print`"""
159
+ return self.to_str()
160
+
161
+ def __eq__(self, other):
162
+ """Returns true if both objects are equal"""
163
+ if not isinstance(other, CreateInsertHeaderConfig):
164
+ return False
165
+
166
+ return self.__dict__ == other.__dict__
167
+
168
+ def __ne__(self, other):
169
+ """Returns true if both objects are not equal"""
170
+ return not self == other
@@ -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 CreateInsertHeadersConfig:
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
+ 'configs': 'list[CreateInsertHeaderConfig]'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'configs': 'configs'
25
+ }
26
+
27
+ def __init__(self, configs=None):
28
+ """CreateInsertHeadersConfig
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param configs: 参数解释:要添加请求头参数列表。
33
+ :type configs: list[:class:`huaweicloudsdkelb.v3.CreateInsertHeaderConfig`]
34
+ """
35
+
36
+
37
+
38
+ self._configs = None
39
+ self.discriminator = None
40
+
41
+ self.configs = configs
42
+
43
+ @property
44
+ def configs(self):
45
+ """Gets the configs of this CreateInsertHeadersConfig.
46
+
47
+ 参数解释:要添加请求头参数列表。
48
+
49
+ :return: The configs of this CreateInsertHeadersConfig.
50
+ :rtype: list[:class:`huaweicloudsdkelb.v3.CreateInsertHeaderConfig`]
51
+ """
52
+ return self._configs
53
+
54
+ @configs.setter
55
+ def configs(self, configs):
56
+ """Sets the configs of this CreateInsertHeadersConfig.
57
+
58
+ 参数解释:要添加请求头参数列表。
59
+
60
+ :param configs: The configs of this CreateInsertHeadersConfig.
61
+ :type configs: list[:class:`huaweicloudsdkelb.v3.CreateInsertHeaderConfig`]
62
+ """
63
+ self._configs = configs
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, CreateInsertHeadersConfig):
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
@@ -31,9 +31,9 @@ class CreateIpGroupIpOption:
31
31
 
32
32
  The model defined in huaweicloud sdk
33
33
 
34
- :param ip: IP地址。支持IPv4、IPv6。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
34
+ :param ip: IP地址或IP地址段。支持IPv4、IPv6。IP地址段格式为ip-ip,例如192.168.1.2-192.168.2.253或者2001:0DB8:02de::0e12-2001:0DB8:02de::0e13,终止IP需要大于起始IP. [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
35
35
  :type ip: str
36
- :param description: 备注信息。
36
+ :param description: 参数解释:备注信息。
37
37
  :type description: str
38
38
  """
39
39
 
@@ -51,7 +51,7 @@ class CreateIpGroupIpOption:
51
51
  def ip(self):
52
52
  """Gets the ip of this CreateIpGroupIpOption.
53
53
 
54
- IP地址。支持IPv4、IPv6。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
54
+ IP地址或IP地址段。支持IPv4、IPv6。IP地址段格式为ip-ip,例如192.168.1.2-192.168.2.253或者2001:0DB8:02de::0e12-2001:0DB8:02de::0e13,终止IP需要大于起始IP. [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
55
55
 
56
56
  :return: The ip of this CreateIpGroupIpOption.
57
57
  :rtype: str
@@ -62,7 +62,7 @@ class CreateIpGroupIpOption:
62
62
  def ip(self, ip):
63
63
  """Sets the ip of this CreateIpGroupIpOption.
64
64
 
65
- IP地址。支持IPv4、IPv6。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
65
+ IP地址或IP地址段。支持IPv4、IPv6。IP地址段格式为ip-ip,例如192.168.1.2-192.168.2.253或者2001:0DB8:02de::0e12-2001:0DB8:02de::0e13,终止IP需要大于起始IP. [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
66
66
 
67
67
  :param ip: The ip of this CreateIpGroupIpOption.
68
68
  :type ip: str
@@ -73,7 +73,7 @@ class CreateIpGroupIpOption:
73
73
  def description(self):
74
74
  """Gets the description of this CreateIpGroupIpOption.
75
75
 
76
- 备注信息。
76
+ 参数解释:备注信息。
77
77
 
78
78
  :return: The description of this CreateIpGroupIpOption.
79
79
  :rtype: str
@@ -84,7 +84,7 @@ class CreateIpGroupIpOption:
84
84
  def description(self, description):
85
85
  """Sets the description of this CreateIpGroupIpOption.
86
86
 
87
- 备注信息。
87
+ 参数解释:备注信息。
88
88
 
89
89
  :param description: The description of this CreateIpGroupIpOption.
90
90
  :type description: str