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
@@ -37,9 +37,9 @@ class CountPreoccupyIpNumRequest:
37
37
 
38
38
  The model defined in huaweicloud sdk
39
39
 
40
- :param l7_flavor_id: 负载均衡器七层规格的ID。传入该字段表示计算创建该规格的LB,或变更LB的原七层规格到该规格所需要的预占IP。 适用场景:创建负LB,变更LB规格。 [不支持传入l7_flavor_id](tag:hcso,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b)
40
+ :param l7_flavor_id: 负载均衡器七层规格的ID。传入该字段表示计算创建该规格的LB,或变更LB的原七层规格到该规格所需要的预占IP。 适用场景:创建负LB,变更LB规格。 [不支持传入l7_flavor_id](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b)
41
41
  :type l7_flavor_id: str
42
- :param ip_target_enable: 是否开启跨VPC转发。 取值true表示计算创建或变更为开启跨VPC转发的LB的预占IP。 取值false表示计算创建或变更为不开启跨VPC转发的LB的预占IP。不传等价false。 适用场景:创建LB,变更LB规格。 [荷兰region不支持该字段,请勿使用。](tag:dt)
42
+ :param ip_target_enable: 是否开启跨VPC转发。 取值true表示计算创建或变更为开启跨VPC转发的LB的预占IP。 取值false表示计算创建或变更为不开启跨VPC转发的LB的预占IP。不传等价false。 适用场景:创建LB,变更LB规格。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
43
43
  :type ip_target_enable: bool
44
44
  :param ip_version: 负载均衡器IP地址类型,取值4,6 。 取值4表示计算创建支持IPv4地址的LB的预占IP。 取值6表示计算创建支持IPv6地址的LB的预占IP。 适用场景:创建LB。 [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
45
45
  :type ip_version: int
@@ -73,7 +73,7 @@ class CountPreoccupyIpNumRequest:
73
73
  def l7_flavor_id(self):
74
74
  """Gets the l7_flavor_id of this CountPreoccupyIpNumRequest.
75
75
 
76
- 负载均衡器七层规格的ID。传入该字段表示计算创建该规格的LB,或变更LB的原七层规格到该规格所需要的预占IP。 适用场景:创建负LB,变更LB规格。 [不支持传入l7_flavor_id](tag:hcso,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b)
76
+ 负载均衡器七层规格的ID。传入该字段表示计算创建该规格的LB,或变更LB的原七层规格到该规格所需要的预占IP。 适用场景:创建负LB,变更LB规格。 [不支持传入l7_flavor_id](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b)
77
77
 
78
78
  :return: The l7_flavor_id of this CountPreoccupyIpNumRequest.
79
79
  :rtype: str
@@ -84,7 +84,7 @@ class CountPreoccupyIpNumRequest:
84
84
  def l7_flavor_id(self, l7_flavor_id):
85
85
  """Sets the l7_flavor_id of this CountPreoccupyIpNumRequest.
86
86
 
87
- 负载均衡器七层规格的ID。传入该字段表示计算创建该规格的LB,或变更LB的原七层规格到该规格所需要的预占IP。 适用场景:创建负LB,变更LB规格。 [不支持传入l7_flavor_id](tag:hcso,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b)
87
+ 负载均衡器七层规格的ID。传入该字段表示计算创建该规格的LB,或变更LB的原七层规格到该规格所需要的预占IP。 适用场景:创建负LB,变更LB规格。 [不支持传入l7_flavor_id](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b)
88
88
 
89
89
  :param l7_flavor_id: The l7_flavor_id of this CountPreoccupyIpNumRequest.
90
90
  :type l7_flavor_id: str
@@ -95,7 +95,7 @@ class CountPreoccupyIpNumRequest:
95
95
  def ip_target_enable(self):
96
96
  """Gets the ip_target_enable of this CountPreoccupyIpNumRequest.
97
97
 
98
- 是否开启跨VPC转发。 取值true表示计算创建或变更为开启跨VPC转发的LB的预占IP。 取值false表示计算创建或变更为不开启跨VPC转发的LB的预占IP。不传等价false。 适用场景:创建LB,变更LB规格。 [荷兰region不支持该字段,请勿使用。](tag:dt)
98
+ 是否开启跨VPC转发。 取值true表示计算创建或变更为开启跨VPC转发的LB的预占IP。 取值false表示计算创建或变更为不开启跨VPC转发的LB的预占IP。不传等价false。 适用场景:创建LB,变更LB规格。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
99
99
 
100
100
  :return: The ip_target_enable of this CountPreoccupyIpNumRequest.
101
101
  :rtype: bool
@@ -106,7 +106,7 @@ class CountPreoccupyIpNumRequest:
106
106
  def ip_target_enable(self, ip_target_enable):
107
107
  """Sets the ip_target_enable of this CountPreoccupyIpNumRequest.
108
108
 
109
- 是否开启跨VPC转发。 取值true表示计算创建或变更为开启跨VPC转发的LB的预占IP。 取值false表示计算创建或变更为不开启跨VPC转发的LB的预占IP。不传等价false。 适用场景:创建LB,变更LB规格。 [荷兰region不支持该字段,请勿使用。](tag:dt)
109
+ 是否开启跨VPC转发。 取值true表示计算创建或变更为开启跨VPC转发的LB的预占IP。 取值false表示计算创建或变更为不开启跨VPC转发的LB的预占IP。不传等价false。 适用场景:创建LB,变更LB规格。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
110
110
 
111
111
  :param ip_target_enable: The ip_target_enable of this CountPreoccupyIpNumRequest.
112
112
  :type ip_target_enable: bool
@@ -55,7 +55,7 @@ class CreateCertificateOption:
55
55
  :type certificate: str
56
56
  :param description: 证书的描述。
57
57
  :type description: str
58
- :param domain: 服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"\"。例:.test.com
58
+ :param domain: 服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"\\*\"。例:\\*.test.com
59
59
  :type domain: str
60
60
  :param name: 证书的名称。
61
61
  :type name: str
@@ -90,7 +90,8 @@ class CreateCertificateOption:
90
90
 
91
91
  if admin_state_up is not None:
92
92
  self.admin_state_up = admin_state_up
93
- self.certificate = certificate
93
+ if certificate is not None:
94
+ self.certificate = certificate
94
95
  if description is not None:
95
96
  self.description = description
96
97
  if domain is not None:
@@ -180,7 +181,7 @@ class CreateCertificateOption:
180
181
  def domain(self):
181
182
  """Gets the domain of this CreateCertificateOption.
182
183
 
183
- 服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"\"。例:.test.com
184
+ 服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"\\*\"。例:\\*.test.com
184
185
 
185
186
  :return: The domain of this CreateCertificateOption.
186
187
  :rtype: str
@@ -191,7 +192,7 @@ class CreateCertificateOption:
191
192
  def domain(self, domain):
192
193
  """Sets the domain of this CreateCertificateOption.
193
194
 
194
- 服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"\"。例:.test.com
195
+ 服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"\\*\"。例:\\*.test.com
195
196
 
196
197
  :param domain: The domain of this CreateCertificateOption.
197
198
  :type domain: str
@@ -0,0 +1,111 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateCertificatePrivateKeyEchoRequest:
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
+ 'body': 'CreateCertificatePrivateKeyEchoRequestBody'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'body': 'body'
25
+ }
26
+
27
+ def __init__(self, body=None):
28
+ """CreateCertificatePrivateKeyEchoRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param body: Body of the CreateCertificatePrivateKeyEchoRequest
33
+ :type body: :class:`huaweicloudsdkelb.v3.CreateCertificatePrivateKeyEchoRequestBody`
34
+ """
35
+
36
+
37
+
38
+ self._body = None
39
+ self.discriminator = None
40
+
41
+ if body is not None:
42
+ self.body = body
43
+
44
+ @property
45
+ def body(self):
46
+ """Gets the body of this CreateCertificatePrivateKeyEchoRequest.
47
+
48
+ :return: The body of this CreateCertificatePrivateKeyEchoRequest.
49
+ :rtype: :class:`huaweicloudsdkelb.v3.CreateCertificatePrivateKeyEchoRequestBody`
50
+ """
51
+ return self._body
52
+
53
+ @body.setter
54
+ def body(self, body):
55
+ """Sets the body of this CreateCertificatePrivateKeyEchoRequest.
56
+
57
+ :param body: The body of this CreateCertificatePrivateKeyEchoRequest.
58
+ :type body: :class:`huaweicloudsdkelb.v3.CreateCertificatePrivateKeyEchoRequestBody`
59
+ """
60
+ self._body = body
61
+
62
+ def to_dict(self):
63
+ """Returns the model properties as a dict"""
64
+ result = {}
65
+
66
+ for attr, _ in six.iteritems(self.openapi_types):
67
+ value = getattr(self, attr)
68
+ if isinstance(value, list):
69
+ result[attr] = list(map(
70
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
71
+ value
72
+ ))
73
+ elif hasattr(value, "to_dict"):
74
+ result[attr] = value.to_dict()
75
+ elif isinstance(value, dict):
76
+ result[attr] = dict(map(
77
+ lambda item: (item[0], item[1].to_dict())
78
+ if hasattr(item[1], "to_dict") else item,
79
+ value.items()
80
+ ))
81
+ else:
82
+ if attr in self.sensitive_list:
83
+ result[attr] = "****"
84
+ else:
85
+ result[attr] = value
86
+
87
+ return result
88
+
89
+ def to_str(self):
90
+ """Returns the string representation of the model"""
91
+ import simplejson as json
92
+ if six.PY2:
93
+ import sys
94
+ reload(sys)
95
+ sys.setdefaultencoding("utf-8")
96
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
97
+
98
+ def __repr__(self):
99
+ """For `print`"""
100
+ return self.to_str()
101
+
102
+ def __eq__(self, other):
103
+ """Returns true if both objects are equal"""
104
+ if not isinstance(other, CreateCertificatePrivateKeyEchoRequest):
105
+ return False
106
+
107
+ return self.__dict__ == other.__dict__
108
+
109
+ def __ne__(self, other):
110
+ """Returns true if both objects are not equal"""
111
+ 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 CreateCertificatePrivateKeyEchoRequestBody:
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
+ 'private_key_echo': 'bool'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'private_key_echo': 'private_key_echo'
25
+ }
26
+
27
+ def __init__(self, private_key_echo=None):
28
+ """CreateCertificatePrivateKeyEchoRequestBody
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param private_key_echo: 证书回显开关,项目粒度的,默认情况下,\"private_key_echo\"是true,证书的返回体中展示私钥。 当值为false时,证书的返回体中不展示私钥。
33
+ :type private_key_echo: bool
34
+ """
35
+
36
+
37
+
38
+ self._private_key_echo = None
39
+ self.discriminator = None
40
+
41
+ self.private_key_echo = private_key_echo
42
+
43
+ @property
44
+ def private_key_echo(self):
45
+ """Gets the private_key_echo of this CreateCertificatePrivateKeyEchoRequestBody.
46
+
47
+ 证书回显开关,项目粒度的,默认情况下,\"private_key_echo\"是true,证书的返回体中展示私钥。 当值为false时,证书的返回体中不展示私钥。
48
+
49
+ :return: The private_key_echo of this CreateCertificatePrivateKeyEchoRequestBody.
50
+ :rtype: bool
51
+ """
52
+ return self._private_key_echo
53
+
54
+ @private_key_echo.setter
55
+ def private_key_echo(self, private_key_echo):
56
+ """Sets the private_key_echo of this CreateCertificatePrivateKeyEchoRequestBody.
57
+
58
+ 证书回显开关,项目粒度的,默认情况下,\"private_key_echo\"是true,证书的返回体中展示私钥。 当值为false时,证书的返回体中不展示私钥。
59
+
60
+ :param private_key_echo: The private_key_echo of this CreateCertificatePrivateKeyEchoRequestBody.
61
+ :type private_key_echo: bool
62
+ """
63
+ self._private_key_echo = private_key_echo
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, CreateCertificatePrivateKeyEchoRequestBody):
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
@@ -0,0 +1,145 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class CreateCertificatePrivateKeyEchoResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'request_id': 'str',
22
+ 'private_key_echo': 'bool'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'request_id': 'request_id',
27
+ 'private_key_echo': 'private_key_echo'
28
+ }
29
+
30
+ def __init__(self, request_id=None, private_key_echo=None):
31
+ """CreateCertificatePrivateKeyEchoResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param request_id: 请求ID。 注:自动生成 。
36
+ :type request_id: str
37
+ :param private_key_echo: 证书回显开关,项目粒度的,默认情况下,\"private_key_echo\"是true,证书的返回体中展示私钥。 当值为false时,证书的返回体中不展示私钥。
38
+ :type private_key_echo: bool
39
+ """
40
+
41
+ super(CreateCertificatePrivateKeyEchoResponse, self).__init__()
42
+
43
+ self._request_id = None
44
+ self._private_key_echo = None
45
+ self.discriminator = None
46
+
47
+ if request_id is not None:
48
+ self.request_id = request_id
49
+ if private_key_echo is not None:
50
+ self.private_key_echo = private_key_echo
51
+
52
+ @property
53
+ def request_id(self):
54
+ """Gets the request_id of this CreateCertificatePrivateKeyEchoResponse.
55
+
56
+ 请求ID。 注:自动生成 。
57
+
58
+ :return: The request_id of this CreateCertificatePrivateKeyEchoResponse.
59
+ :rtype: str
60
+ """
61
+ return self._request_id
62
+
63
+ @request_id.setter
64
+ def request_id(self, request_id):
65
+ """Sets the request_id of this CreateCertificatePrivateKeyEchoResponse.
66
+
67
+ 请求ID。 注:自动生成 。
68
+
69
+ :param request_id: The request_id of this CreateCertificatePrivateKeyEchoResponse.
70
+ :type request_id: str
71
+ """
72
+ self._request_id = request_id
73
+
74
+ @property
75
+ def private_key_echo(self):
76
+ """Gets the private_key_echo of this CreateCertificatePrivateKeyEchoResponse.
77
+
78
+ 证书回显开关,项目粒度的,默认情况下,\"private_key_echo\"是true,证书的返回体中展示私钥。 当值为false时,证书的返回体中不展示私钥。
79
+
80
+ :return: The private_key_echo of this CreateCertificatePrivateKeyEchoResponse.
81
+ :rtype: bool
82
+ """
83
+ return self._private_key_echo
84
+
85
+ @private_key_echo.setter
86
+ def private_key_echo(self, private_key_echo):
87
+ """Sets the private_key_echo of this CreateCertificatePrivateKeyEchoResponse.
88
+
89
+ 证书回显开关,项目粒度的,默认情况下,\"private_key_echo\"是true,证书的返回体中展示私钥。 当值为false时,证书的返回体中不展示私钥。
90
+
91
+ :param private_key_echo: The private_key_echo of this CreateCertificatePrivateKeyEchoResponse.
92
+ :type private_key_echo: bool
93
+ """
94
+ self._private_key_echo = private_key_echo
95
+
96
+ def to_dict(self):
97
+ """Returns the model properties as a dict"""
98
+ result = {}
99
+
100
+ for attr, _ in six.iteritems(self.openapi_types):
101
+ value = getattr(self, attr)
102
+ if isinstance(value, list):
103
+ result[attr] = list(map(
104
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
105
+ value
106
+ ))
107
+ elif hasattr(value, "to_dict"):
108
+ result[attr] = value.to_dict()
109
+ elif isinstance(value, dict):
110
+ result[attr] = dict(map(
111
+ lambda item: (item[0], item[1].to_dict())
112
+ if hasattr(item[1], "to_dict") else item,
113
+ value.items()
114
+ ))
115
+ else:
116
+ if attr in self.sensitive_list:
117
+ result[attr] = "****"
118
+ else:
119
+ result[attr] = value
120
+
121
+ return result
122
+
123
+ def to_str(self):
124
+ """Returns the string representation of the model"""
125
+ import simplejson as json
126
+ if six.PY2:
127
+ import sys
128
+ reload(sys)
129
+ sys.setdefaultencoding("utf-8")
130
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
131
+
132
+ def __repr__(self):
133
+ """For `print`"""
134
+ return self.to_str()
135
+
136
+ def __eq__(self, other):
137
+ """Returns true if both objects are equal"""
138
+ if not isinstance(other, CreateCertificatePrivateKeyEchoResponse):
139
+ return False
140
+
141
+ return self.__dict__ == other.__dict__
142
+
143
+ def __ne__(self, other):
144
+ """Returns true if both objects are not equal"""
145
+ return not self == other
@@ -19,16 +19,22 @@ 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
@@ -39,6 +45,12 @@ class CreateFixtedResponseConfig:
39
45
  :type content_type: str
40
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,6 +68,12 @@ 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):
@@ -120,6 +141,60 @@ class CreateFixtedResponseConfig:
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 = {}
@@ -61,9 +61,9 @@ class CreateHealthMonitorOption:
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
@@ -79,7 +79,7 @@ class CreateHealthMonitorOption:
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为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
@@ -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
@@ -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为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为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