huaweicloudsdkelb 3.1.132__py2.py3-none-any.whl → 3.1.133__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 (112) hide show
  1. huaweicloudsdkelb/v3/__init__.py +39 -0
  2. huaweicloudsdkelb/v3/elb_async_client.py +742 -22
  3. huaweicloudsdkelb/v3/elb_client.py +742 -22
  4. huaweicloudsdkelb/v3/model/__init__.py +39 -0
  5. huaweicloudsdkelb/v3/model/availability_zone.py +6 -6
  6. huaweicloudsdkelb/v3/model/base_job.py +347 -0
  7. huaweicloudsdkelb/v3/model/batch_add_available_zones_response.py +6 -6
  8. huaweicloudsdkelb/v3/model/batch_create_load_balancer_option.py +1022 -0
  9. huaweicloudsdkelb/v3/model/batch_create_load_balancers_request.py +111 -0
  10. huaweicloudsdkelb/v3/model/batch_create_load_balancers_request_body.py +110 -0
  11. huaweicloudsdkelb/v3/model/batch_create_load_balancers_response.py +203 -0
  12. huaweicloudsdkelb/v3/model/batch_member.py +38 -13
  13. huaweicloudsdkelb/v3/model/batch_update_member.py +32 -7
  14. huaweicloudsdkelb/v3/model/batch_update_priority_request_body.py +3 -3
  15. huaweicloudsdkelb/v3/model/certificate_info.py +39 -10
  16. huaweicloudsdkelb/v3/model/clone_loadbalancer_request.py +139 -0
  17. huaweicloudsdkelb/v3/model/clone_loadbalancer_request_body.py +139 -0
  18. huaweicloudsdkelb/v3/model/clone_loadbalancer_response.py +174 -0
  19. huaweicloudsdkelb/v3/model/clone_loadbalancer_response_body_loadbalancer_list.py +115 -0
  20. huaweicloudsdkelb/v3/model/cors_config.py +260 -0
  21. huaweicloudsdkelb/v3/model/count_preoccupy_ip_num_request.py +73 -15
  22. huaweicloudsdkelb/v3/model/create_certificate_option.py +35 -6
  23. huaweicloudsdkelb/v3/model/create_cors_config.py +260 -0
  24. huaweicloudsdkelb/v3/model/create_health_monitor_option.py +3 -3
  25. huaweicloudsdkelb/v3/model/create_l7_policy_option.py +6 -6
  26. huaweicloudsdkelb/v3/model/create_listener_option.py +126 -39
  27. huaweicloudsdkelb/v3/model/create_load_balancer_bandwidth_option.py +3 -3
  28. huaweicloudsdkelb/v3/model/create_load_balancer_option.py +36 -36
  29. huaweicloudsdkelb/v3/model/create_load_balancer_public_ip_option.py +3 -3
  30. huaweicloudsdkelb/v3/model/create_load_balancer_response.py +6 -6
  31. huaweicloudsdkelb/v3/model/create_master_slave_member_option.py +2 -1
  32. huaweicloudsdkelb/v3/model/create_master_slave_pool_option.py +31 -6
  33. huaweicloudsdkelb/v3/model/create_member_option.py +3 -3
  34. huaweicloudsdkelb/v3/model/create_pool_option.py +46 -21
  35. huaweicloudsdkelb/v3/model/create_pool_session_persistence_option.py +6 -6
  36. huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py +28 -3
  37. huaweicloudsdkelb/v3/model/create_redirect_url_config.py +3 -3
  38. huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_option.py +144 -0
  39. huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_request.py +139 -0
  40. huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_request_body.py +110 -0
  41. huaweicloudsdkelb/v3/model/delete_load_balancer_cascade_response.py +85 -0
  42. huaweicloudsdkelb/v3/model/delete_pool_cascade_request.py +114 -0
  43. huaweicloudsdkelb/v3/model/delete_pool_cascade_response.py +85 -0
  44. huaweicloudsdkelb/v3/model/feature_config.py +394 -0
  45. huaweicloudsdkelb/v3/model/flavor.py +9 -9
  46. huaweicloudsdkelb/v3/model/global_eip_info.py +3 -3
  47. huaweicloudsdkelb/v3/model/health_monitor.py +9 -9
  48. huaweicloudsdkelb/v3/model/job_entities.py +144 -0
  49. huaweicloudsdkelb/v3/model/l7_policy.py +44 -15
  50. huaweicloudsdkelb/v3/model/l7_rule.py +9 -9
  51. huaweicloudsdkelb/v3/model/list_all_members_request.py +3 -3
  52. huaweicloudsdkelb/v3/model/list_availability_zones_request.py +35 -6
  53. huaweicloudsdkelb/v3/model/list_certificates_request.py +30 -1
  54. huaweicloudsdkelb/v3/model/list_feature_configs_request.py +115 -0
  55. huaweicloudsdkelb/v3/model/list_feature_configs_response.py +170 -0
  56. huaweicloudsdkelb/v3/model/list_flavors_request.py +119 -3
  57. huaweicloudsdkelb/v3/model/list_health_monitors_request.py +3 -3
  58. huaweicloudsdkelb/v3/model/list_ip_groups_request.py +3 -3
  59. huaweicloudsdkelb/v3/model/list_jobs_request.py +260 -0
  60. huaweicloudsdkelb/v3/model/list_jobs_response.py +145 -0
  61. huaweicloudsdkelb/v3/model/list_l7_policies_request.py +3 -3
  62. huaweicloudsdkelb/v3/model/list_l7_rules_request.py +3 -3
  63. huaweicloudsdkelb/v3/model/list_listeners_request.py +79 -21
  64. huaweicloudsdkelb/v3/model/list_load_balancers_request.py +15 -15
  65. huaweicloudsdkelb/v3/model/list_loadbalancer_feature_request.py +114 -0
  66. huaweicloudsdkelb/v3/model/list_loadbalancer_feature_response.py +145 -0
  67. huaweicloudsdkelb/v3/model/list_logtanks_request.py +3 -3
  68. huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py +3 -3
  69. huaweicloudsdkelb/v3/model/list_members_request.py +3 -3
  70. huaweicloudsdkelb/v3/model/list_pools_request.py +67 -9
  71. huaweicloudsdkelb/v3/model/list_quota_details_request.py +3 -3
  72. huaweicloudsdkelb/v3/model/listener.py +154 -39
  73. huaweicloudsdkelb/v3/model/load_balancer.py +21 -21
  74. huaweicloudsdkelb/v3/model/load_balancer_status_policy.py +3 -3
  75. huaweicloudsdkelb/v3/model/loadbalancer_feature.py +170 -0
  76. huaweicloudsdkelb/v3/model/main_job.py +376 -0
  77. huaweicloudsdkelb/v3/model/master_slave_member.py +26 -1
  78. huaweicloudsdkelb/v3/model/master_slave_pool.py +37 -12
  79. huaweicloudsdkelb/v3/model/member.py +32 -7
  80. huaweicloudsdkelb/v3/model/member_health_check_failed_reason.py +170 -0
  81. huaweicloudsdkelb/v3/model/member_info.py +34 -9
  82. huaweicloudsdkelb/v3/model/member_status.py +28 -3
  83. huaweicloudsdkelb/v3/model/pool.py +43 -18
  84. huaweicloudsdkelb/v3/model/quic_cid_hash_strategy.py +142 -0
  85. huaweicloudsdkelb/v3/model/quota.py +87 -3
  86. huaweicloudsdkelb/v3/model/quota_info.py +3 -3
  87. huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py +28 -3
  88. huaweicloudsdkelb/v3/model/session_persistence.py +6 -6
  89. huaweicloudsdkelb/v3/model/show_ip_group_related_listeners_request.py +114 -0
  90. huaweicloudsdkelb/v3/model/show_ip_group_related_listeners_response.py +116 -0
  91. huaweicloudsdkelb/v3/model/show_job_request.py +114 -0
  92. huaweicloudsdkelb/v3/model/show_job_response.py +141 -0
  93. huaweicloudsdkelb/v3/model/sub_job.py +376 -0
  94. huaweicloudsdkelb/v3/model/target_loadbalancer_param.py +434 -0
  95. huaweicloudsdkelb/v3/model/update_certificate_option.py +35 -6
  96. huaweicloudsdkelb/v3/model/update_health_monitor_option.py +3 -3
  97. huaweicloudsdkelb/v3/model/update_l7_policy_option.py +3 -3
  98. huaweicloudsdkelb/v3/model/update_listener_option.py +120 -33
  99. huaweicloudsdkelb/v3/model/update_load_balancer_option.py +15 -15
  100. huaweicloudsdkelb/v3/model/update_load_balancer_response.py +6 -6
  101. huaweicloudsdkelb/v3/model/update_pool_option.py +31 -6
  102. huaweicloudsdkelb/v3/model/update_pool_session_persistence_option.py +6 -6
  103. huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py +28 -3
  104. huaweicloudsdkelb/v3/model/upgrade_loadbalancer_request.py +139 -0
  105. huaweicloudsdkelb/v3/model/upgrade_loadbalancer_response.py +145 -0
  106. huaweicloudsdkelb/v3/model/upgrade_prepaid_option.py +200 -0
  107. huaweicloudsdkelb/v3/model/upgrade_v3_request_body.py +313 -0
  108. {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/METADATA +2 -2
  109. {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/RECORD +112 -73
  110. {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/LICENSE +0 -0
  111. {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/WHEEL +0 -0
  112. {huaweicloudsdkelb-3.1.132.dist-info → huaweicloudsdkelb-3.1.133.dist-info}/top_level.txt +0 -0
@@ -21,7 +21,9 @@ class CountPreoccupyIpNumRequest:
21
21
  'ip_target_enable': 'bool',
22
22
  'ip_version': 'int',
23
23
  'loadbalancer_id': 'str',
24
- 'availability_zone_id': 'list[str]'
24
+ 'availability_zone_id': 'list[str]',
25
+ 'scene': 'str',
26
+ 'nat64_enable': 'bool'
25
27
  }
26
28
 
27
29
  attribute_map = {
@@ -29,24 +31,30 @@ class CountPreoccupyIpNumRequest:
29
31
  'ip_target_enable': 'ip_target_enable',
30
32
  'ip_version': 'ip_version',
31
33
  'loadbalancer_id': 'loadbalancer_id',
32
- 'availability_zone_id': 'availability_zone_id'
34
+ 'availability_zone_id': 'availability_zone_id',
35
+ 'scene': 'scene',
36
+ 'nat64_enable': 'nat64_enable'
33
37
  }
34
38
 
35
- def __init__(self, l7_flavor_id=None, ip_target_enable=None, ip_version=None, loadbalancer_id=None, availability_zone_id=None):
39
+ def __init__(self, l7_flavor_id=None, ip_target_enable=None, ip_version=None, loadbalancer_id=None, availability_zone_id=None, scene=None, nat64_enable=None):
36
40
  """CountPreoccupyIpNumRequest
37
41
 
38
42
  The model defined in huaweicloud sdk
39
43
 
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)
44
+ :param l7_flavor_id: 负载均衡器七层规格的ID。传入该字段表示计算创建该规格的LB的预占IP数量,或变更LB的原七层规格到该规格所需要的新增预占IP数量。 适用场景:创建负LB,变更LB规格。 [不支持传入l7_flavor_id](tag:hcso,hk_vdf,srg,fcs)
41
45
  :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,dt_test)
46
+ :param ip_target_enable: VPC后端转发开关。 取值true表示计算创建开启跨VPC后端转发的LB的预占IP数量,或开启LB跨VPC后端转发所需要的新增预占IP数量。 取值false表示计算创建不开启跨VPC后端转发的LB的预占IP。 不传等价false。 适用场景:创建LBLB开启跨VPC后端转发。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
43
47
  :type ip_target_enable: bool
44
48
  :param ip_version: 负载均衡器IP地址类型,取值4,6 。 取值4表示计算创建支持IPv4地址的LB的预占IP。 取值6表示计算创建支持IPv6地址的LB的预占IP。 适用场景:创建LB。 [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
45
49
  :type ip_version: int
46
- :param loadbalancer_id: 负载均衡器ID。计算LB规格变更或创建LB中的第一个七层监听器的预占IP。 适用场景:变更LB规格,创建LB中的第一个七层监听器。
50
+ :param loadbalancer_id: 负载均衡器ID。计算LB变更或创建LB中的第一个七层监听器的新增预占IP。 适用场景:变更LB规格,开启跨VPC后端转发,开启/不开启地址族转换功能,创建LB中的第一个七层监听器。
47
51
  :type loadbalancer_id: str
48
- :param availability_zone_id: 计算创建AZ列表为availability_zone_id的负载局衡器实例的预占IP。 适用场景:创建LB。 使用说明:传入loadbalancer_id时,该参数无效。
52
+ :param availability_zone_id: 计算创建AZ列表为availability_zone_id的负载均衡器实例的预占IP。 适用场景:创建LB。 使用说明:传入loadbalancer_id时,该参数无效。
49
53
  :type availability_zone_id: list[str]
54
+ :param scene: 参数解释:计算共享型升级为独享型ELB负载均衡器实例的所需预占IP。 约束限制:必须同时传入loadbalancer_id。 取值范围:UPGRADE - 共享型升级为独享型ELB场景。
55
+ :type scene: str
56
+ :param nat64_enable: 参数解释: 开启地址族转换。传入该字段表示计算创建LB及该LB下开启/不开启地址族转换特性的监听器所需要的预占IP,或者指定LB创建开启/不开启地址族转换特性的监听器所需要的新增预占IP。 取值范围: true:开启地址族转换特性。 false:不开启地址族转换特性。 默认取值: false
57
+ :type nat64_enable: bool
50
58
  """
51
59
 
52
60
 
@@ -56,6 +64,8 @@ class CountPreoccupyIpNumRequest:
56
64
  self._ip_version = None
57
65
  self._loadbalancer_id = None
58
66
  self._availability_zone_id = None
67
+ self._scene = None
68
+ self._nat64_enable = None
59
69
  self.discriminator = None
60
70
 
61
71
  if l7_flavor_id is not None:
@@ -68,12 +78,16 @@ class CountPreoccupyIpNumRequest:
68
78
  self.loadbalancer_id = loadbalancer_id
69
79
  if availability_zone_id is not None:
70
80
  self.availability_zone_id = availability_zone_id
81
+ if scene is not None:
82
+ self.scene = scene
83
+ if nat64_enable is not None:
84
+ self.nat64_enable = nat64_enable
71
85
 
72
86
  @property
73
87
  def l7_flavor_id(self):
74
88
  """Gets the l7_flavor_id of this CountPreoccupyIpNumRequest.
75
89
 
76
- 负载均衡器七层规格的ID。传入该字段表示计算创建该规格的LB,或变更LB的原七层规格到该规格所需要的预占IP 适用场景:创建负LB,变更LB规格。 [不支持传入l7_flavor_id](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b)
90
+ 负载均衡器七层规格的ID。传入该字段表示计算创建该规格的LB的预占IP数量,或变更LB的原七层规格到该规格所需要的新增预占IP数量。 适用场景:创建负LB,变更LB规格。 [不支持传入l7_flavor_id](tag:hcso,hk_vdf,srg,fcs)
77
91
 
78
92
  :return: The l7_flavor_id of this CountPreoccupyIpNumRequest.
79
93
  :rtype: str
@@ -84,7 +98,7 @@ class CountPreoccupyIpNumRequest:
84
98
  def l7_flavor_id(self, l7_flavor_id):
85
99
  """Sets the l7_flavor_id of this CountPreoccupyIpNumRequest.
86
100
 
87
- 负载均衡器七层规格的ID。传入该字段表示计算创建该规格的LB,或变更LB的原七层规格到该规格所需要的预占IP 适用场景:创建负LB,变更LB规格。 [不支持传入l7_flavor_id](tag:hcso,hk_vdf,fcs,fcs_vm,mix,hcso_g42,hcso_g42_b)
101
+ 负载均衡器七层规格的ID。传入该字段表示计算创建该规格的LB的预占IP数量,或变更LB的原七层规格到该规格所需要的新增预占IP数量。 适用场景:创建负LB,变更LB规格。 [不支持传入l7_flavor_id](tag:hcso,hk_vdf,srg,fcs)
88
102
 
89
103
  :param l7_flavor_id: The l7_flavor_id of this CountPreoccupyIpNumRequest.
90
104
  :type l7_flavor_id: str
@@ -95,7 +109,7 @@ class CountPreoccupyIpNumRequest:
95
109
  def ip_target_enable(self):
96
110
  """Gets the ip_target_enable of this CountPreoccupyIpNumRequest.
97
111
 
98
- 是否开启跨VPC转发。 取值true表示计算创建或变更为开启跨VPC转发的LB的预占IP 取值false表示计算创建或变更为不开启跨VPC转发的LB的预占IP。不传等价false。 适用场景:创建LB,变更LB规格。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
112
+ VPC后端转发开关。 取值true表示计算创建开启跨VPC后端转发的LB的预占IP数量,或开启LB跨VPC后端转发所需要的新增预占IP数量。 取值false表示计算创建不开启跨VPC后端转发的LB的预占IP。 不传等价false。 适用场景:创建LBLB开启跨VPC后端转发。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
99
113
 
100
114
  :return: The ip_target_enable of this CountPreoccupyIpNumRequest.
101
115
  :rtype: bool
@@ -106,7 +120,7 @@ class CountPreoccupyIpNumRequest:
106
120
  def ip_target_enable(self, ip_target_enable):
107
121
  """Sets the ip_target_enable of this CountPreoccupyIpNumRequest.
108
122
 
109
- 是否开启跨VPC转发。 取值true表示计算创建或变更为开启跨VPC转发的LB的预占IP 取值false表示计算创建或变更为不开启跨VPC转发的LB的预占IP。不传等价false。 适用场景:创建LB,变更LB规格。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
123
+ VPC后端转发开关。 取值true表示计算创建开启跨VPC后端转发的LB的预占IP数量,或开启LB跨VPC后端转发所需要的新增预占IP数量。 取值false表示计算创建不开启跨VPC后端转发的LB的预占IP。 不传等价false。 适用场景:创建LBLB开启跨VPC后端转发。 [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
110
124
 
111
125
  :param ip_target_enable: The ip_target_enable of this CountPreoccupyIpNumRequest.
112
126
  :type ip_target_enable: bool
@@ -139,7 +153,7 @@ class CountPreoccupyIpNumRequest:
139
153
  def loadbalancer_id(self):
140
154
  """Gets the loadbalancer_id of this CountPreoccupyIpNumRequest.
141
155
 
142
- 负载均衡器ID。计算LB规格变更或创建LB中的第一个七层监听器的预占IP。 适用场景:变更LB规格,创建LB中的第一个七层监听器。
156
+ 负载均衡器ID。计算LB变更或创建LB中的第一个七层监听器的新增预占IP。 适用场景:变更LB规格,开启跨VPC后端转发,开启/不开启地址族转换功能,创建LB中的第一个七层监听器。
143
157
 
144
158
  :return: The loadbalancer_id of this CountPreoccupyIpNumRequest.
145
159
  :rtype: str
@@ -150,7 +164,7 @@ class CountPreoccupyIpNumRequest:
150
164
  def loadbalancer_id(self, loadbalancer_id):
151
165
  """Sets the loadbalancer_id of this CountPreoccupyIpNumRequest.
152
166
 
153
- 负载均衡器ID。计算LB规格变更或创建LB中的第一个七层监听器的预占IP。 适用场景:变更LB规格,创建LB中的第一个七层监听器。
167
+ 负载均衡器ID。计算LB变更或创建LB中的第一个七层监听器的新增预占IP。 适用场景:变更LB规格,开启跨VPC后端转发,开启/不开启地址族转换功能,创建LB中的第一个七层监听器。
154
168
 
155
169
  :param loadbalancer_id: The loadbalancer_id of this CountPreoccupyIpNumRequest.
156
170
  :type loadbalancer_id: str
@@ -161,7 +175,7 @@ class CountPreoccupyIpNumRequest:
161
175
  def availability_zone_id(self):
162
176
  """Gets the availability_zone_id of this CountPreoccupyIpNumRequest.
163
177
 
164
- 计算创建AZ列表为availability_zone_id的负载局衡器实例的预占IP。 适用场景:创建LB。 使用说明:传入loadbalancer_id时,该参数无效。
178
+ 计算创建AZ列表为availability_zone_id的负载均衡器实例的预占IP。 适用场景:创建LB。 使用说明:传入loadbalancer_id时,该参数无效。
165
179
 
166
180
  :return: The availability_zone_id of this CountPreoccupyIpNumRequest.
167
181
  :rtype: list[str]
@@ -172,13 +186,57 @@ class CountPreoccupyIpNumRequest:
172
186
  def availability_zone_id(self, availability_zone_id):
173
187
  """Sets the availability_zone_id of this CountPreoccupyIpNumRequest.
174
188
 
175
- 计算创建AZ列表为availability_zone_id的负载局衡器实例的预占IP。 适用场景:创建LB。 使用说明:传入loadbalancer_id时,该参数无效。
189
+ 计算创建AZ列表为availability_zone_id的负载均衡器实例的预占IP。 适用场景:创建LB。 使用说明:传入loadbalancer_id时,该参数无效。
176
190
 
177
191
  :param availability_zone_id: The availability_zone_id of this CountPreoccupyIpNumRequest.
178
192
  :type availability_zone_id: list[str]
179
193
  """
180
194
  self._availability_zone_id = availability_zone_id
181
195
 
196
+ @property
197
+ def scene(self):
198
+ """Gets the scene of this CountPreoccupyIpNumRequest.
199
+
200
+ 参数解释:计算共享型升级为独享型ELB负载均衡器实例的所需预占IP。 约束限制:必须同时传入loadbalancer_id。 取值范围:UPGRADE - 共享型升级为独享型ELB场景。
201
+
202
+ :return: The scene of this CountPreoccupyIpNumRequest.
203
+ :rtype: str
204
+ """
205
+ return self._scene
206
+
207
+ @scene.setter
208
+ def scene(self, scene):
209
+ """Sets the scene of this CountPreoccupyIpNumRequest.
210
+
211
+ 参数解释:计算共享型升级为独享型ELB负载均衡器实例的所需预占IP。 约束限制:必须同时传入loadbalancer_id。 取值范围:UPGRADE - 共享型升级为独享型ELB场景。
212
+
213
+ :param scene: The scene of this CountPreoccupyIpNumRequest.
214
+ :type scene: str
215
+ """
216
+ self._scene = scene
217
+
218
+ @property
219
+ def nat64_enable(self):
220
+ """Gets the nat64_enable of this CountPreoccupyIpNumRequest.
221
+
222
+ 参数解释: 开启地址族转换。传入该字段表示计算创建LB及该LB下开启/不开启地址族转换特性的监听器所需要的预占IP,或者指定LB创建开启/不开启地址族转换特性的监听器所需要的新增预占IP。 取值范围: true:开启地址族转换特性。 false:不开启地址族转换特性。 默认取值: false
223
+
224
+ :return: The nat64_enable of this CountPreoccupyIpNumRequest.
225
+ :rtype: bool
226
+ """
227
+ return self._nat64_enable
228
+
229
+ @nat64_enable.setter
230
+ def nat64_enable(self, nat64_enable):
231
+ """Sets the nat64_enable of this CountPreoccupyIpNumRequest.
232
+
233
+ 参数解释: 开启地址族转换。传入该字段表示计算创建LB及该LB下开启/不开启地址族转换特性的监听器所需要的预占IP,或者指定LB创建开启/不开启地址族转换特性的监听器所需要的新增预占IP。 取值范围: true:开启地址族转换特性。 false:不开启地址族转换特性。 默认取值: false
234
+
235
+ :param nat64_enable: The nat64_enable of this CountPreoccupyIpNumRequest.
236
+ :type nat64_enable: bool
237
+ """
238
+ self._nat64_enable = nat64_enable
239
+
182
240
  def to_dict(self):
183
241
  """Returns the model properties as a dict"""
184
242
  result = {}
@@ -27,7 +27,8 @@ class CreateCertificateOption:
27
27
  'type': 'str',
28
28
  'enterprise_project_id': 'str',
29
29
  'enc_certificate': 'str',
30
- 'enc_private_key': 'str'
30
+ 'enc_private_key': 'str',
31
+ 'scm_certificate_id': 'str'
31
32
  }
32
33
 
33
34
  attribute_map = {
@@ -41,10 +42,11 @@ class CreateCertificateOption:
41
42
  'type': 'type',
42
43
  'enterprise_project_id': 'enterprise_project_id',
43
44
  'enc_certificate': 'enc_certificate',
44
- 'enc_private_key': 'enc_private_key'
45
+ 'enc_private_key': 'enc_private_key',
46
+ 'scm_certificate_id': 'scm_certificate_id'
45
47
  }
46
48
 
47
- def __init__(self, admin_state_up=None, certificate=None, description=None, domain=None, name=None, private_key=None, project_id=None, type=None, enterprise_project_id=None, enc_certificate=None, enc_private_key=None):
49
+ def __init__(self, admin_state_up=None, certificate=None, description=None, domain=None, name=None, private_key=None, project_id=None, type=None, enterprise_project_id=None, enc_certificate=None, enc_private_key=None, scm_certificate_id=None):
48
50
  """CreateCertificateOption
49
51
 
50
52
  The model defined in huaweicloud sdk
@@ -55,7 +57,7 @@ class CreateCertificateOption:
55
57
  :type certificate: str
56
58
  :param description: 证书的描述。
57
59
  :type description: str
58
- :param domain: 服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"\\*\"。例:\\*.test.com
60
+ :param domain: 服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分隔,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分隔,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"\\*\"。例:\\*.test.com
59
61
  :type domain: str
60
62
  :param name: 证书的名称。
61
63
  :type name: str
@@ -71,6 +73,8 @@ class CreateCertificateOption:
71
73
  :type enc_certificate: str
72
74
  :param enc_private_key: HTTPS协议使用的SM加密证书私钥。 取值:PEM编码格式。最大长度8192字符。 使用说明:仅type为server_sm时有效且必选。
73
75
  :type enc_private_key: str
76
+ :param scm_certificate_id: SM证书ID。
77
+ :type scm_certificate_id: str
74
78
  """
75
79
 
76
80
 
@@ -86,6 +90,7 @@ class CreateCertificateOption:
86
90
  self._enterprise_project_id = None
87
91
  self._enc_certificate = None
88
92
  self._enc_private_key = None
93
+ self._scm_certificate_id = None
89
94
  self.discriminator = None
90
95
 
91
96
  if admin_state_up is not None:
@@ -110,6 +115,8 @@ class CreateCertificateOption:
110
115
  self.enc_certificate = enc_certificate
111
116
  if enc_private_key is not None:
112
117
  self.enc_private_key = enc_private_key
118
+ if scm_certificate_id is not None:
119
+ self.scm_certificate_id = scm_certificate_id
113
120
 
114
121
  @property
115
122
  def admin_state_up(self):
@@ -181,7 +188,7 @@ class CreateCertificateOption:
181
188
  def domain(self):
182
189
  """Gets the domain of this CreateCertificateOption.
183
190
 
184
- 服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"\\*\"。例:\\*.test.com
191
+ 服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分隔,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分隔,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"\\*\"。例:\\*.test.com
185
192
 
186
193
  :return: The domain of this CreateCertificateOption.
187
194
  :rtype: str
@@ -192,7 +199,7 @@ class CreateCertificateOption:
192
199
  def domain(self, domain):
193
200
  """Sets the domain of this CreateCertificateOption.
194
201
 
195
- 服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"\\*\"。例:\\*.test.com
202
+ 服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分隔,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分隔,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"\\*\"。例:\\*.test.com
196
203
 
197
204
  :param domain: The domain of this CreateCertificateOption.
198
205
  :type domain: str
@@ -353,6 +360,28 @@ class CreateCertificateOption:
353
360
  """
354
361
  self._enc_private_key = enc_private_key
355
362
 
363
+ @property
364
+ def scm_certificate_id(self):
365
+ """Gets the scm_certificate_id of this CreateCertificateOption.
366
+
367
+ SM证书ID。
368
+
369
+ :return: The scm_certificate_id of this CreateCertificateOption.
370
+ :rtype: str
371
+ """
372
+ return self._scm_certificate_id
373
+
374
+ @scm_certificate_id.setter
375
+ def scm_certificate_id(self, scm_certificate_id):
376
+ """Sets the scm_certificate_id of this CreateCertificateOption.
377
+
378
+ SM证书ID。
379
+
380
+ :param scm_certificate_id: The scm_certificate_id of this CreateCertificateOption.
381
+ :type scm_certificate_id: str
382
+ """
383
+ self._scm_certificate_id = scm_certificate_id
384
+
356
385
  def to_dict(self):
357
386
  """Returns the model properties as a dict"""
358
387
  result = {}
@@ -0,0 +1,260 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateCorsConfig:
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
+ 'allow_origin': 'list[str]',
21
+ 'allow_methods': 'list[str]',
22
+ 'allow_headers': 'list[str]',
23
+ 'expose_headers': 'list[str]',
24
+ 'allow_credentials': 'bool',
25
+ 'max_age': 'int'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'allow_origin': 'allow_origin',
30
+ 'allow_methods': 'allow_methods',
31
+ 'allow_headers': 'allow_headers',
32
+ 'expose_headers': 'expose_headers',
33
+ 'allow_credentials': 'allow_credentials',
34
+ 'max_age': 'max_age'
35
+ }
36
+
37
+ def __init__(self, allow_origin=None, allow_methods=None, allow_headers=None, expose_headers=None, allow_credentials=None, max_age=None):
38
+ """CreateCorsConfig
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param allow_origin: 参数解释:允许的访问来源列表。支持只配置一个元素*,或配置一个或多个值。 约束限制: - 单个值必须以http://或者https://开头,后边加一个正确的域名或一级泛域名。(例:http://*.test.abc.example.com) - 单个值可以不加端口,也可以指定端口,端口范围:1~65535。
43
+ :type allow_origin: list[str]
44
+ :param allow_methods: 参数解释:选择跨域访问时允许的 HTTP 方法。
45
+ :type allow_methods: list[str]
46
+ :param allow_headers: 参数解释:允许跨域的 Header 列表。
47
+ :type allow_headers: list[str]
48
+ :param expose_headers: 参数解释:允许暴露的Header列表。
49
+ :type expose_headers: list[str]
50
+ :param allow_credentials: 参数解释:是否允许携带凭证信息。 取值范围: - true:是。 - false:否。
51
+ :type allow_credentials: bool
52
+ :param max_age: 参数解释:预检请求在浏览器的最大缓存时间,单位:秒。 取值范围:-1~172800。
53
+ :type max_age: int
54
+ """
55
+
56
+
57
+
58
+ self._allow_origin = None
59
+ self._allow_methods = None
60
+ self._allow_headers = None
61
+ self._expose_headers = None
62
+ self._allow_credentials = None
63
+ self._max_age = None
64
+ self.discriminator = None
65
+
66
+ if allow_origin is not None:
67
+ self.allow_origin = allow_origin
68
+ if allow_methods is not None:
69
+ self.allow_methods = allow_methods
70
+ if allow_headers is not None:
71
+ self.allow_headers = allow_headers
72
+ if expose_headers is not None:
73
+ self.expose_headers = expose_headers
74
+ if allow_credentials is not None:
75
+ self.allow_credentials = allow_credentials
76
+ if max_age is not None:
77
+ self.max_age = max_age
78
+
79
+ @property
80
+ def allow_origin(self):
81
+ """Gets the allow_origin of this CreateCorsConfig.
82
+
83
+ 参数解释:允许的访问来源列表。支持只配置一个元素*,或配置一个或多个值。 约束限制: - 单个值必须以http://或者https://开头,后边加一个正确的域名或一级泛域名。(例:http://*.test.abc.example.com) - 单个值可以不加端口,也可以指定端口,端口范围:1~65535。
84
+
85
+ :return: The allow_origin of this CreateCorsConfig.
86
+ :rtype: list[str]
87
+ """
88
+ return self._allow_origin
89
+
90
+ @allow_origin.setter
91
+ def allow_origin(self, allow_origin):
92
+ """Sets the allow_origin of this CreateCorsConfig.
93
+
94
+ 参数解释:允许的访问来源列表。支持只配置一个元素*,或配置一个或多个值。 约束限制: - 单个值必须以http://或者https://开头,后边加一个正确的域名或一级泛域名。(例:http://*.test.abc.example.com) - 单个值可以不加端口,也可以指定端口,端口范围:1~65535。
95
+
96
+ :param allow_origin: The allow_origin of this CreateCorsConfig.
97
+ :type allow_origin: list[str]
98
+ """
99
+ self._allow_origin = allow_origin
100
+
101
+ @property
102
+ def allow_methods(self):
103
+ """Gets the allow_methods of this CreateCorsConfig.
104
+
105
+ 参数解释:选择跨域访问时允许的 HTTP 方法。
106
+
107
+ :return: The allow_methods of this CreateCorsConfig.
108
+ :rtype: list[str]
109
+ """
110
+ return self._allow_methods
111
+
112
+ @allow_methods.setter
113
+ def allow_methods(self, allow_methods):
114
+ """Sets the allow_methods of this CreateCorsConfig.
115
+
116
+ 参数解释:选择跨域访问时允许的 HTTP 方法。
117
+
118
+ :param allow_methods: The allow_methods of this CreateCorsConfig.
119
+ :type allow_methods: list[str]
120
+ """
121
+ self._allow_methods = allow_methods
122
+
123
+ @property
124
+ def allow_headers(self):
125
+ """Gets the allow_headers of this CreateCorsConfig.
126
+
127
+ 参数解释:允许跨域的 Header 列表。
128
+
129
+ :return: The allow_headers of this CreateCorsConfig.
130
+ :rtype: list[str]
131
+ """
132
+ return self._allow_headers
133
+
134
+ @allow_headers.setter
135
+ def allow_headers(self, allow_headers):
136
+ """Sets the allow_headers of this CreateCorsConfig.
137
+
138
+ 参数解释:允许跨域的 Header 列表。
139
+
140
+ :param allow_headers: The allow_headers of this CreateCorsConfig.
141
+ :type allow_headers: list[str]
142
+ """
143
+ self._allow_headers = allow_headers
144
+
145
+ @property
146
+ def expose_headers(self):
147
+ """Gets the expose_headers of this CreateCorsConfig.
148
+
149
+ 参数解释:允许暴露的Header列表。
150
+
151
+ :return: The expose_headers of this CreateCorsConfig.
152
+ :rtype: list[str]
153
+ """
154
+ return self._expose_headers
155
+
156
+ @expose_headers.setter
157
+ def expose_headers(self, expose_headers):
158
+ """Sets the expose_headers of this CreateCorsConfig.
159
+
160
+ 参数解释:允许暴露的Header列表。
161
+
162
+ :param expose_headers: The expose_headers of this CreateCorsConfig.
163
+ :type expose_headers: list[str]
164
+ """
165
+ self._expose_headers = expose_headers
166
+
167
+ @property
168
+ def allow_credentials(self):
169
+ """Gets the allow_credentials of this CreateCorsConfig.
170
+
171
+ 参数解释:是否允许携带凭证信息。 取值范围: - true:是。 - false:否。
172
+
173
+ :return: The allow_credentials of this CreateCorsConfig.
174
+ :rtype: bool
175
+ """
176
+ return self._allow_credentials
177
+
178
+ @allow_credentials.setter
179
+ def allow_credentials(self, allow_credentials):
180
+ """Sets the allow_credentials of this CreateCorsConfig.
181
+
182
+ 参数解释:是否允许携带凭证信息。 取值范围: - true:是。 - false:否。
183
+
184
+ :param allow_credentials: The allow_credentials of this CreateCorsConfig.
185
+ :type allow_credentials: bool
186
+ """
187
+ self._allow_credentials = allow_credentials
188
+
189
+ @property
190
+ def max_age(self):
191
+ """Gets the max_age of this CreateCorsConfig.
192
+
193
+ 参数解释:预检请求在浏览器的最大缓存时间,单位:秒。 取值范围:-1~172800。
194
+
195
+ :return: The max_age of this CreateCorsConfig.
196
+ :rtype: int
197
+ """
198
+ return self._max_age
199
+
200
+ @max_age.setter
201
+ def max_age(self, max_age):
202
+ """Sets the max_age of this CreateCorsConfig.
203
+
204
+ 参数解释:预检请求在浏览器的最大缓存时间,单位:秒。 取值范围:-1~172800。
205
+
206
+ :param max_age: The max_age of this CreateCorsConfig.
207
+ :type max_age: int
208
+ """
209
+ self._max_age = max_age
210
+
211
+ def to_dict(self):
212
+ """Returns the model properties as a dict"""
213
+ result = {}
214
+
215
+ for attr, _ in six.iteritems(self.openapi_types):
216
+ value = getattr(self, attr)
217
+ if isinstance(value, list):
218
+ result[attr] = list(map(
219
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
220
+ value
221
+ ))
222
+ elif hasattr(value, "to_dict"):
223
+ result[attr] = value.to_dict()
224
+ elif isinstance(value, dict):
225
+ result[attr] = dict(map(
226
+ lambda item: (item[0], item[1].to_dict())
227
+ if hasattr(item[1], "to_dict") else item,
228
+ value.items()
229
+ ))
230
+ else:
231
+ if attr in self.sensitive_list:
232
+ result[attr] = "****"
233
+ else:
234
+ result[attr] = value
235
+
236
+ return result
237
+
238
+ def to_str(self):
239
+ """Returns the string representation of the model"""
240
+ import simplejson as json
241
+ if six.PY2:
242
+ import sys
243
+ reload(sys)
244
+ sys.setdefaultencoding("utf-8")
245
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
246
+
247
+ def __repr__(self):
248
+ """For `print`"""
249
+ return self.to_str()
250
+
251
+ def __eq__(self, other):
252
+ """Returns true if both objects are equal"""
253
+ if not isinstance(other, CreateCorsConfig):
254
+ return False
255
+
256
+ return self.__dict__ == other.__dict__
257
+
258
+ def __ne__(self, other):
259
+ """Returns true if both objects are not equal"""
260
+ return not self == other
@@ -69,7 +69,7 @@ class CreateHealthMonitorOption:
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协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) >当绑定的pool开启了端口透传功能时,该字段为必填。
72
+ :param monitor_port: 参数解释:健康检查端口号。 约束限制: - 当绑定的pool开启了端口透传功能时,该字段为必填。 [- 当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) 取值范围:1-65535和null,传null表示使用后端服务器端口号。 默认取值:null
73
73
  :type monitor_port: int
74
74
  :param name: 健康检查名称。
75
75
  :type name: 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协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) >当绑定的pool开启了端口透传功能时,该字段为必填。
288
+ 参数解释:健康检查端口号。 约束限制: - 当绑定的pool开启了端口透传功能时,该字段为必填。 [- 当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) 取值范围:1-65535和null,传null表示使用后端服务器端口号。 默认取值:null
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协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) >当绑定的pool开启了端口透传功能时,该字段为必填。
299
+ 参数解释:健康检查端口号。 约束限制: - 当绑定的pool开启了端口透传功能时,该字段为必填。 [- 当pool协议为IP时,monitor_port必须指定为非0值。](tag:hws_eu) 取值范围:1-65535和null,传null表示使用后端服务器端口号。 默认取值:null
300
300
 
301
301
  :param monitor_port: The monitor_port of this CreateHealthMonitorOption.
302
302
  :type monitor_port: int