huaweicloudsdkelb 3.1.104__py2.py3-none-any.whl → 3.1.106__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.104.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/METADATA +2 -2
  139. {huaweicloudsdkelb-3.1.104.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/RECORD +142 -113
  140. {huaweicloudsdkelb-3.1.104.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/LICENSE +0 -0
  141. {huaweicloudsdkelb-3.1.104.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/WHEEL +0 -0
  142. {huaweicloudsdkelb-3.1.104.dist-info → huaweicloudsdkelb-3.1.106.dist-info}/top_level.txt +0 -0
@@ -69,7 +69,7 @@ class Quota:
69
69
  :type listener: int
70
70
  :param l7policy: 转发策略配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
71
71
  :type l7policy: int
72
- :param condition_per_policy: 转发策略配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
72
+ :param condition_per_policy: 单个转发策略下所有转发规则的condition总数配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
73
73
  :type condition_per_policy: int
74
74
  :param pool: 后端云服务器组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
75
75
  :type pool: int
@@ -79,13 +79,13 @@ class Quota:
79
79
  :type member: int
80
80
  :param members_per_pool: 单个pool下的member的配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
81
81
  :type members_per_pool: int
82
- :param listeners_per_pool: 单个pool下的member的配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
82
+ :param listeners_per_pool: 单个监听器下的pool的配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
83
83
  :type listeners_per_pool: int
84
84
  :param ipgroup: IP地址组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
85
85
  :type ipgroup: int
86
- :param ipgroup_bindings: IP地址组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
86
+ :param ipgroup_bindings: 单个IP地址组可以关联的监听器数量配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
87
87
  :type ipgroup_bindings: int
88
- :param ipgroup_max_length: IP地址组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
88
+ :param ipgroup_max_length: 单个监听器下关联的所有IP地址组的ip列表中的IP总数不能超过ipgroup_max_length。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
89
89
  :type ipgroup_max_length: int
90
90
  :param security_policy: 自定义安全策略配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
91
91
  :type security_policy: int
@@ -244,7 +244,7 @@ class Quota:
244
244
  def condition_per_policy(self):
245
245
  """Gets the condition_per_policy of this Quota.
246
246
 
247
- 转发策略配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
247
+ 单个转发策略下所有转发规则的condition总数配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
248
248
 
249
249
  :return: The condition_per_policy of this Quota.
250
250
  :rtype: int
@@ -255,7 +255,7 @@ class Quota:
255
255
  def condition_per_policy(self, condition_per_policy):
256
256
  """Sets the condition_per_policy of this Quota.
257
257
 
258
- 转发策略配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
258
+ 单个转发策略下所有转发规则的condition总数配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
259
259
 
260
260
  :param condition_per_policy: The condition_per_policy of this Quota.
261
261
  :type condition_per_policy: int
@@ -354,7 +354,7 @@ class Quota:
354
354
  def listeners_per_pool(self):
355
355
  """Gets the listeners_per_pool of this Quota.
356
356
 
357
- 单个pool下的member的配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
357
+ 单个监听器下的pool的配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
358
358
 
359
359
  :return: The listeners_per_pool of this Quota.
360
360
  :rtype: int
@@ -365,7 +365,7 @@ class Quota:
365
365
  def listeners_per_pool(self, listeners_per_pool):
366
366
  """Sets the listeners_per_pool of this Quota.
367
367
 
368
- 单个pool下的member的配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
368
+ 单个监听器下的pool的配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
369
369
 
370
370
  :param listeners_per_pool: The listeners_per_pool of this Quota.
371
371
  :type listeners_per_pool: int
@@ -398,7 +398,7 @@ class Quota:
398
398
  def ipgroup_bindings(self):
399
399
  """Gets the ipgroup_bindings of this Quota.
400
400
 
401
- IP地址组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
401
+ 单个IP地址组可以关联的监听器数量配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
402
402
 
403
403
  :return: The ipgroup_bindings of this Quota.
404
404
  :rtype: int
@@ -409,7 +409,7 @@ class Quota:
409
409
  def ipgroup_bindings(self, ipgroup_bindings):
410
410
  """Sets the ipgroup_bindings of this Quota.
411
411
 
412
- IP地址组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
412
+ 单个IP地址组可以关联的监听器数量配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
413
413
 
414
414
  :param ipgroup_bindings: The ipgroup_bindings of this Quota.
415
415
  :type ipgroup_bindings: int
@@ -420,7 +420,7 @@ class Quota:
420
420
  def ipgroup_max_length(self):
421
421
  """Gets the ipgroup_max_length of this Quota.
422
422
 
423
- IP地址组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
423
+ 单个监听器下关联的所有IP地址组的ip列表中的IP总数不能超过ipgroup_max_length。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
424
424
 
425
425
  :return: The ipgroup_max_length of this Quota.
426
426
  :rtype: int
@@ -431,7 +431,7 @@ class Quota:
431
431
  def ipgroup_max_length(self, ipgroup_max_length):
432
432
  """Sets the ipgroup_max_length of this Quota.
433
433
 
434
- IP地址组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
434
+ 单个监听器下关联的所有IP地址组的ip列表中的IP总数不能超过ipgroup_max_length。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
435
435
 
436
436
  :param ipgroup_max_length: The ipgroup_max_length of this Quota.
437
437
  :type ipgroup_max_length: int
@@ -35,7 +35,7 @@ class QuotaInfo:
35
35
 
36
36
  The model defined in huaweicloud sdk
37
37
 
38
- :param quota_key: 资源类型。 取值:loadbalancer、listener、ipgroup、pool、member、members_per_pool、 healthmonitor、l7policy、certificate、security_policy、condition_per_policy、listeners_per_pool、ipgroup_bindings、ipgroup_max_length。 其中members_per_pool表示一个pool下最多可关联的member数量。
38
+ :param quota_key: 资源类型。 取值:loadbalancer、listener、ipgroup、pool、member、healthmonitor、l7policy、certificate、security_policy、listeners_per_loadbalancer、listeners_per_pool、members_per_pool、condition_per_policy、ipgroup_bindings、ipgroup_max_length。
39
39
  :type quota_key: str
40
40
  :param quota_limit: 总配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
41
41
  :type quota_limit: int
@@ -62,7 +62,7 @@ class QuotaInfo:
62
62
  def quota_key(self):
63
63
  """Gets the quota_key of this QuotaInfo.
64
64
 
65
- 资源类型。 取值:loadbalancer、listener、ipgroup、pool、member、members_per_pool、 healthmonitor、l7policy、certificate、security_policy、condition_per_policy、listeners_per_pool、ipgroup_bindings、ipgroup_max_length。 其中members_per_pool表示一个pool下最多可关联的member数量。
65
+ 资源类型。 取值:loadbalancer、listener、ipgroup、pool、member、healthmonitor、l7policy、certificate、security_policy、listeners_per_loadbalancer、listeners_per_pool、members_per_pool、condition_per_policy、ipgroup_bindings、ipgroup_max_length。
66
66
 
67
67
  :return: The quota_key of this QuotaInfo.
68
68
  :rtype: str
@@ -73,7 +73,7 @@ class QuotaInfo:
73
73
  def quota_key(self, quota_key):
74
74
  """Sets the quota_key of this QuotaInfo.
75
75
 
76
- 资源类型。 取值:loadbalancer、listener、ipgroup、pool、member、members_per_pool、 healthmonitor、l7policy、certificate、security_policy、condition_per_policy、listeners_per_pool、ipgroup_bindings、ipgroup_max_length。 其中members_per_pool表示一个pool下最多可关联的member数量。
76
+ 资源类型。 取值:loadbalancer、listener、ipgroup、pool、member、healthmonitor、l7policy、certificate、security_policy、listeners_per_loadbalancer、listeners_per_pool、members_per_pool、condition_per_policy、ipgroup_bindings、ipgroup_max_length。
77
77
 
78
78
  :param quota_key: The quota_key of this QuotaInfo.
79
79
  :type quota_key: str
@@ -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 RedirectPoolsConfig:
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': 'int'
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
+ """RedirectPoolsConfig
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param pool_id: 所在后端服务器组ID。
35
+ :type pool_id: str
36
+ :param weight: 转发策略主机组的权重,范围为[0,100], 请求将根据该权重进行负载分发到不同的主机组。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。
37
+ :type weight: int
38
+ """
39
+
40
+
41
+
42
+ self._pool_id = None
43
+ self._weight = None
44
+ self.discriminator = None
45
+
46
+ if pool_id is not None:
47
+ self.pool_id = pool_id
48
+ if weight is not None:
49
+ self.weight = weight
50
+
51
+ @property
52
+ def pool_id(self):
53
+ """Gets the pool_id of this RedirectPoolsConfig.
54
+
55
+ 所在后端服务器组ID。
56
+
57
+ :return: The pool_id of this RedirectPoolsConfig.
58
+ :rtype: str
59
+ """
60
+ return self._pool_id
61
+
62
+ @pool_id.setter
63
+ def pool_id(self, pool_id):
64
+ """Sets the pool_id of this RedirectPoolsConfig.
65
+
66
+ 所在后端服务器组ID。
67
+
68
+ :param pool_id: The pool_id of this RedirectPoolsConfig.
69
+ :type pool_id: str
70
+ """
71
+ self._pool_id = pool_id
72
+
73
+ @property
74
+ def weight(self):
75
+ """Gets the weight of this RedirectPoolsConfig.
76
+
77
+ 转发策略主机组的权重,范围为[0,100], 请求将根据该权重进行负载分发到不同的主机组。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。
78
+
79
+ :return: The weight of this RedirectPoolsConfig.
80
+ :rtype: int
81
+ """
82
+ return self._weight
83
+
84
+ @weight.setter
85
+ def weight(self, weight):
86
+ """Sets the weight of this RedirectPoolsConfig.
87
+
88
+ 转发策略主机组的权重,范围为[0,100], 请求将根据该权重进行负载分发到不同的主机组。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。
89
+
90
+ :param weight: The weight of this RedirectPoolsConfig.
91
+ :type weight: int
92
+ """
93
+ self._weight = weight
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, RedirectPoolsConfig):
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
@@ -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,10 +33,12 @@ 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
@@ -51,6 +55,10 @@ class RedirectUrlConfig:
51
55
  :type query: str
52
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,14 +69,26 @@ 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):
@@ -202,6 +222,42 @@ class RedirectUrlConfig:
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 = {}