huaweicloudsdkelb 3.1.116__py2.py3-none-any.whl → 3.1.117__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.
- huaweicloudsdkelb/v2/elb_async_client.py +2 -0
- huaweicloudsdkelb/v2/elb_client.py +2 -0
- huaweicloudsdkelb/v2/model/list_members_request.py +32 -3
- huaweicloudsdkelb/v3/elb_async_client.py +5 -1
- huaweicloudsdkelb/v3/elb_client.py +5 -1
- huaweicloudsdkelb/v3/model/availability_zone.py +3 -3
- huaweicloudsdkelb/v3/model/batch_add_available_zones_request.py +3 -3
- huaweicloudsdkelb/v3/model/batch_create_members_option.py +12 -12
- huaweicloudsdkelb/v3/model/batch_member.py +21 -21
- huaweicloudsdkelb/v3/model/batch_update_member.py +24 -24
- huaweicloudsdkelb/v3/model/batch_update_members_option.py +6 -6
- huaweicloudsdkelb/v3/model/connection_drain.py +6 -6
- huaweicloudsdkelb/v3/model/create_health_monitor_option.py +12 -12
- huaweicloudsdkelb/v3/model/create_l7_policy_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_listener_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_load_balancer_option.py +3 -3
- huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_master_slave_member_option.py +12 -12
- huaweicloudsdkelb/v3/model/create_master_slave_pool_option.py +30 -30
- huaweicloudsdkelb/v3/model/create_member_option.py +18 -18
- huaweicloudsdkelb/v3/model/create_pool_option.py +48 -48
- huaweicloudsdkelb/v3/model/create_pool_response.py +3 -3
- huaweicloudsdkelb/v3/model/create_pool_session_persistence_option.py +9 -9
- huaweicloudsdkelb/v3/model/create_pool_slow_start_option.py +6 -6
- huaweicloudsdkelb/v3/model/delete_member_request.py +3 -3
- huaweicloudsdkelb/v3/model/flavor.py +3 -3
- huaweicloudsdkelb/v3/model/health_monitor.py +12 -12
- huaweicloudsdkelb/v3/model/l7_policy.py +3 -3
- huaweicloudsdkelb/v3/model/list_all_members_request.py +21 -21
- huaweicloudsdkelb/v3/model/list_availability_zones_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_availability_zones_response.py +3 -3
- huaweicloudsdkelb/v3/model/list_flavors_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_health_monitors_request.py +6 -6
- huaweicloudsdkelb/v3/model/list_l7_policies_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_listeners_request.py +12 -12
- huaweicloudsdkelb/v3/model/list_load_balancers_request.py +9 -9
- huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py +36 -36
- huaweicloudsdkelb/v3/model/list_members_request.py +21 -21
- huaweicloudsdkelb/v3/model/list_pools_request.py +39 -39
- huaweicloudsdkelb/v3/model/listener.py +12 -12
- huaweicloudsdkelb/v3/model/listener_insert_headers.py +30 -30
- huaweicloudsdkelb/v3/model/listener_member_info.py +3 -3
- huaweicloudsdkelb/v3/model/load_balancer.py +9 -9
- huaweicloudsdkelb/v3/model/load_balancer_status.py +3 -3
- huaweicloudsdkelb/v3/model/master_slave_health_monitor.py +6 -6
- huaweicloudsdkelb/v3/model/master_slave_member.py +18 -18
- huaweicloudsdkelb/v3/model/master_slave_pool.py +33 -33
- huaweicloudsdkelb/v3/model/member.py +21 -21
- huaweicloudsdkelb/v3/model/member_info.py +24 -24
- huaweicloudsdkelb/v3/model/member_ref.py +3 -3
- huaweicloudsdkelb/v3/model/member_status.py +3 -3
- huaweicloudsdkelb/v3/model/pool.py +66 -66
- huaweicloudsdkelb/v3/model/pool_health.py +3 -3
- huaweicloudsdkelb/v3/model/quota.py +6 -6
- huaweicloudsdkelb/v3/model/session_persistence.py +9 -9
- huaweicloudsdkelb/v3/model/slow_start.py +6 -6
- huaweicloudsdkelb/v3/model/update_health_monitor_option.py +9 -9
- huaweicloudsdkelb/v3/model/update_listener_option.py +6 -6
- huaweicloudsdkelb/v3/model/update_load_balancer_option.py +12 -12
- huaweicloudsdkelb/v3/model/update_member_option.py +9 -9
- huaweicloudsdkelb/v3/model/update_pool_option.py +15 -15
- huaweicloudsdkelb/v3/model/update_rule_condition.py +3 -3
- {huaweicloudsdkelb-3.1.116.dist-info → huaweicloudsdkelb-3.1.117.dist-info}/METADATA +2 -2
- {huaweicloudsdkelb-3.1.116.dist-info → huaweicloudsdkelb-3.1.117.dist-info}/RECORD +67 -67
- {huaweicloudsdkelb-3.1.116.dist-info → huaweicloudsdkelb-3.1.117.dist-info}/LICENSE +0 -0
- {huaweicloudsdkelb-3.1.116.dist-info → huaweicloudsdkelb-3.1.117.dist-info}/WHEEL +0 -0
- {huaweicloudsdkelb-3.1.116.dist-info → huaweicloudsdkelb-3.1.117.dist-info}/top_level.txt +0 -0
@@ -39,15 +39,15 @@ class CreateMasterSlaveMemberOption:
|
|
39
39
|
|
40
40
|
The model defined in huaweicloud sdk
|
41
41
|
|
42
|
-
:param address: 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。 该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id
|
42
|
+
:param address: 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。 该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
43
43
|
:type address: str
|
44
|
-
:param admin_state_up:
|
44
|
+
:param admin_state_up: 后端服务器的管理状态。 取值:true。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
|
45
45
|
:type admin_state_up: bool
|
46
|
-
:param name:
|
46
|
+
:param name: 后端服务器名称。
|
47
47
|
:type name: str
|
48
48
|
:param protocol_port: 后端服务器业务端口。 >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。
|
49
49
|
:type protocol_port: int
|
50
|
-
:param subnet_cidr_id:
|
50
|
+
:param subnet_cidr_id: 后端服务器所在的子网ID,可以是子网的IPv4子网ID或IPv6子网ID。 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
|
51
51
|
:type subnet_cidr_id: str
|
52
52
|
:param role: 后端服务器的主备状态。 取值范围: - master:主后端服务器。 - slave:备后端服务器。
|
53
53
|
:type role: str
|
@@ -77,7 +77,7 @@ class CreateMasterSlaveMemberOption:
|
|
77
77
|
def address(self):
|
78
78
|
"""Gets the address of this CreateMasterSlaveMemberOption.
|
79
79
|
|
80
|
-
后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。 该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id
|
80
|
+
后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。 该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
81
81
|
|
82
82
|
:return: The address of this CreateMasterSlaveMemberOption.
|
83
83
|
:rtype: str
|
@@ -88,7 +88,7 @@ class CreateMasterSlaveMemberOption:
|
|
88
88
|
def address(self, address):
|
89
89
|
"""Sets the address of this CreateMasterSlaveMemberOption.
|
90
90
|
|
91
|
-
后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。 该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id
|
91
|
+
后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。 该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
92
92
|
|
93
93
|
:param address: The address of this CreateMasterSlaveMemberOption.
|
94
94
|
:type address: str
|
@@ -99,7 +99,7 @@ class CreateMasterSlaveMemberOption:
|
|
99
99
|
def admin_state_up(self):
|
100
100
|
"""Gets the admin_state_up of this CreateMasterSlaveMemberOption.
|
101
101
|
|
102
|
-
|
102
|
+
后端服务器的管理状态。 取值:true。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
|
103
103
|
|
104
104
|
:return: The admin_state_up of this CreateMasterSlaveMemberOption.
|
105
105
|
:rtype: bool
|
@@ -110,7 +110,7 @@ class CreateMasterSlaveMemberOption:
|
|
110
110
|
def admin_state_up(self, admin_state_up):
|
111
111
|
"""Sets the admin_state_up of this CreateMasterSlaveMemberOption.
|
112
112
|
|
113
|
-
|
113
|
+
后端服务器的管理状态。 取值:true。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
|
114
114
|
|
115
115
|
:param admin_state_up: The admin_state_up of this CreateMasterSlaveMemberOption.
|
116
116
|
:type admin_state_up: bool
|
@@ -121,7 +121,7 @@ class CreateMasterSlaveMemberOption:
|
|
121
121
|
def name(self):
|
122
122
|
"""Gets the name of this CreateMasterSlaveMemberOption.
|
123
123
|
|
124
|
-
|
124
|
+
后端服务器名称。
|
125
125
|
|
126
126
|
:return: The name of this CreateMasterSlaveMemberOption.
|
127
127
|
:rtype: str
|
@@ -132,7 +132,7 @@ class CreateMasterSlaveMemberOption:
|
|
132
132
|
def name(self, name):
|
133
133
|
"""Sets the name of this CreateMasterSlaveMemberOption.
|
134
134
|
|
135
|
-
|
135
|
+
后端服务器名称。
|
136
136
|
|
137
137
|
:param name: The name of this CreateMasterSlaveMemberOption.
|
138
138
|
:type name: str
|
@@ -165,7 +165,7 @@ class CreateMasterSlaveMemberOption:
|
|
165
165
|
def subnet_cidr_id(self):
|
166
166
|
"""Gets the subnet_cidr_id of this CreateMasterSlaveMemberOption.
|
167
167
|
|
168
|
-
|
168
|
+
后端服务器所在的子网ID,可以是子网的IPv4子网ID或IPv6子网ID。 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
|
169
169
|
|
170
170
|
:return: The subnet_cidr_id of this CreateMasterSlaveMemberOption.
|
171
171
|
:rtype: str
|
@@ -176,7 +176,7 @@ class CreateMasterSlaveMemberOption:
|
|
176
176
|
def subnet_cidr_id(self, subnet_cidr_id):
|
177
177
|
"""Sets the subnet_cidr_id of this CreateMasterSlaveMemberOption.
|
178
178
|
|
179
|
-
|
179
|
+
后端服务器所在的子网ID,可以是子网的IPv4子网ID或IPv6子网ID。 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
|
180
180
|
|
181
181
|
:param subnet_cidr_id: The subnet_cidr_id of this CreateMasterSlaveMemberOption.
|
182
182
|
:type subnet_cidr_id: str
|
@@ -57,29 +57,29 @@ class CreateMasterSlavePoolOption:
|
|
57
57
|
|
58
58
|
The model defined in huaweicloud sdk
|
59
59
|
|
60
|
-
:param description:
|
60
|
+
:param description: 后端服务器组的描述信息。
|
61
61
|
:type description: str
|
62
|
-
:param lb_algorithm:
|
62
|
+
:param lb_algorithm: 后端服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test)
|
63
63
|
:type lb_algorithm: str
|
64
|
-
:param loadbalancer_id:
|
64
|
+
:param loadbalancer_id: 后端服务器组关联的LB的ID。 使用说明:listener_id,loadbalancer_id,type至少指定一个。
|
65
65
|
:type loadbalancer_id: str
|
66
|
-
:param listener_id:
|
66
|
+
:param listener_id: 后端服务器组关联的监听器的ID。 使用说明:listener_id,loadbalancer_id,type至少指定一个。
|
67
67
|
:type listener_id: str
|
68
|
-
:param name:
|
68
|
+
:param name: 后端服务器组的名称。
|
69
69
|
:type name: str
|
70
|
-
:param project_id:
|
70
|
+
:param project_id: 后端服务器组所属的项目ID。
|
71
71
|
:type project_id: str
|
72
|
-
:param protocol:
|
72
|
+
:param protocol: 后端服务器组的后端协议。 取值:TCP、UDP、QUIC、TLS。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时,pool的protocol必须为TCP。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP(且只能使用ip_version为v4的TCP pool)。 - 其他协议监听器不支持主备后端服务器组。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
|
73
73
|
:type protocol: str
|
74
74
|
:param session_persistence:
|
75
75
|
:type session_persistence: :class:`huaweicloudsdkelb.v3.CreatePoolSessionPersistenceOption`
|
76
|
-
:param vpc_id:
|
76
|
+
:param vpc_id: 后端服务器组关联的虚拟私有云的ID。 指定了vpc_id的约束: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。 没有指定vpc_id的约束: - 后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。
|
77
77
|
:type vpc_id: str
|
78
78
|
:param type: 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。
|
79
79
|
:type type: str
|
80
|
-
:param ip_version:
|
80
|
+
:param ip_version: 后端服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test)
|
81
81
|
:type ip_version: str
|
82
|
-
:param members: 主备主机组的后端服务器。 只能添加2
|
82
|
+
:param members: 主备主机组的后端服务器。 只能添加2个后端服务器,必须有一个为主,一个为备。
|
83
83
|
:type members: list[:class:`huaweicloudsdkelb.v3.CreateMasterSlaveMemberOption`]
|
84
84
|
:param healthmonitor:
|
85
85
|
:type healthmonitor: :class:`huaweicloudsdkelb.v3.CreateMasterSlaveHealthMonitorOption`
|
@@ -138,7 +138,7 @@ class CreateMasterSlavePoolOption:
|
|
138
138
|
def description(self):
|
139
139
|
"""Gets the description of this CreateMasterSlavePoolOption.
|
140
140
|
|
141
|
-
|
141
|
+
后端服务器组的描述信息。
|
142
142
|
|
143
143
|
:return: The description of this CreateMasterSlavePoolOption.
|
144
144
|
:rtype: str
|
@@ -149,7 +149,7 @@ class CreateMasterSlavePoolOption:
|
|
149
149
|
def description(self, description):
|
150
150
|
"""Sets the description of this CreateMasterSlavePoolOption.
|
151
151
|
|
152
|
-
|
152
|
+
后端服务器组的描述信息。
|
153
153
|
|
154
154
|
:param description: The description of this CreateMasterSlavePoolOption.
|
155
155
|
:type description: str
|
@@ -160,7 +160,7 @@ class CreateMasterSlavePoolOption:
|
|
160
160
|
def lb_algorithm(self):
|
161
161
|
"""Gets the lb_algorithm of this CreateMasterSlavePoolOption.
|
162
162
|
|
163
|
-
|
163
|
+
后端服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test)
|
164
164
|
|
165
165
|
:return: The lb_algorithm of this CreateMasterSlavePoolOption.
|
166
166
|
:rtype: str
|
@@ -171,7 +171,7 @@ class CreateMasterSlavePoolOption:
|
|
171
171
|
def lb_algorithm(self, lb_algorithm):
|
172
172
|
"""Sets the lb_algorithm of this CreateMasterSlavePoolOption.
|
173
173
|
|
174
|
-
|
174
|
+
后端服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [不支持QUIC_CID。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test)
|
175
175
|
|
176
176
|
:param lb_algorithm: The lb_algorithm of this CreateMasterSlavePoolOption.
|
177
177
|
:type lb_algorithm: str
|
@@ -182,7 +182,7 @@ class CreateMasterSlavePoolOption:
|
|
182
182
|
def loadbalancer_id(self):
|
183
183
|
"""Gets the loadbalancer_id of this CreateMasterSlavePoolOption.
|
184
184
|
|
185
|
-
|
185
|
+
后端服务器组关联的LB的ID。 使用说明:listener_id,loadbalancer_id,type至少指定一个。
|
186
186
|
|
187
187
|
:return: The loadbalancer_id of this CreateMasterSlavePoolOption.
|
188
188
|
:rtype: str
|
@@ -193,7 +193,7 @@ class CreateMasterSlavePoolOption:
|
|
193
193
|
def loadbalancer_id(self, loadbalancer_id):
|
194
194
|
"""Sets the loadbalancer_id of this CreateMasterSlavePoolOption.
|
195
195
|
|
196
|
-
|
196
|
+
后端服务器组关联的LB的ID。 使用说明:listener_id,loadbalancer_id,type至少指定一个。
|
197
197
|
|
198
198
|
:param loadbalancer_id: The loadbalancer_id of this CreateMasterSlavePoolOption.
|
199
199
|
:type loadbalancer_id: str
|
@@ -204,7 +204,7 @@ class CreateMasterSlavePoolOption:
|
|
204
204
|
def listener_id(self):
|
205
205
|
"""Gets the listener_id of this CreateMasterSlavePoolOption.
|
206
206
|
|
207
|
-
|
207
|
+
后端服务器组关联的监听器的ID。 使用说明:listener_id,loadbalancer_id,type至少指定一个。
|
208
208
|
|
209
209
|
:return: The listener_id of this CreateMasterSlavePoolOption.
|
210
210
|
:rtype: str
|
@@ -215,7 +215,7 @@ class CreateMasterSlavePoolOption:
|
|
215
215
|
def listener_id(self, listener_id):
|
216
216
|
"""Sets the listener_id of this CreateMasterSlavePoolOption.
|
217
217
|
|
218
|
-
|
218
|
+
后端服务器组关联的监听器的ID。 使用说明:listener_id,loadbalancer_id,type至少指定一个。
|
219
219
|
|
220
220
|
:param listener_id: The listener_id of this CreateMasterSlavePoolOption.
|
221
221
|
:type listener_id: str
|
@@ -226,7 +226,7 @@ class CreateMasterSlavePoolOption:
|
|
226
226
|
def name(self):
|
227
227
|
"""Gets the name of this CreateMasterSlavePoolOption.
|
228
228
|
|
229
|
-
|
229
|
+
后端服务器组的名称。
|
230
230
|
|
231
231
|
:return: The name of this CreateMasterSlavePoolOption.
|
232
232
|
:rtype: str
|
@@ -237,7 +237,7 @@ class CreateMasterSlavePoolOption:
|
|
237
237
|
def name(self, name):
|
238
238
|
"""Sets the name of this CreateMasterSlavePoolOption.
|
239
239
|
|
240
|
-
|
240
|
+
后端服务器组的名称。
|
241
241
|
|
242
242
|
:param name: The name of this CreateMasterSlavePoolOption.
|
243
243
|
:type name: str
|
@@ -248,7 +248,7 @@ class CreateMasterSlavePoolOption:
|
|
248
248
|
def project_id(self):
|
249
249
|
"""Gets the project_id of this CreateMasterSlavePoolOption.
|
250
250
|
|
251
|
-
|
251
|
+
后端服务器组所属的项目ID。
|
252
252
|
|
253
253
|
:return: The project_id of this CreateMasterSlavePoolOption.
|
254
254
|
:rtype: str
|
@@ -259,7 +259,7 @@ class CreateMasterSlavePoolOption:
|
|
259
259
|
def project_id(self, project_id):
|
260
260
|
"""Sets the project_id of this CreateMasterSlavePoolOption.
|
261
261
|
|
262
|
-
|
262
|
+
后端服务器组所属的项目ID。
|
263
263
|
|
264
264
|
:param project_id: The project_id of this CreateMasterSlavePoolOption.
|
265
265
|
:type project_id: str
|
@@ -270,7 +270,7 @@ class CreateMasterSlavePoolOption:
|
|
270
270
|
def protocol(self):
|
271
271
|
"""Gets the protocol of this CreateMasterSlavePoolOption.
|
272
272
|
|
273
|
-
|
273
|
+
后端服务器组的后端协议。 取值:TCP、UDP、QUIC、TLS。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时,pool的protocol必须为TCP。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP(且只能使用ip_version为v4的TCP pool)。 - 其他协议监听器不支持主备后端服务器组。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
|
274
274
|
|
275
275
|
:return: The protocol of this CreateMasterSlavePoolOption.
|
276
276
|
:rtype: str
|
@@ -281,7 +281,7 @@ class CreateMasterSlavePoolOption:
|
|
281
281
|
def protocol(self, protocol):
|
282
282
|
"""Sets the protocol of this CreateMasterSlavePoolOption.
|
283
283
|
|
284
|
-
|
284
|
+
后端服务器组的后端协议。 取值:TCP、UDP、QUIC、TLS。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时,pool的protocol必须为TCP。 - listener的protocol为TLS时,pool的protocol必须为TLS或TCP(且只能使用ip_version为v4的TCP pool)。 - 其他协议监听器不支持主备后端服务器组。 [不支持QUIC。](tag:tm,hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
|
285
285
|
|
286
286
|
:param protocol: The protocol of this CreateMasterSlavePoolOption.
|
287
287
|
:type protocol: str
|
@@ -310,7 +310,7 @@ class CreateMasterSlavePoolOption:
|
|
310
310
|
def vpc_id(self):
|
311
311
|
"""Gets the vpc_id of this CreateMasterSlavePoolOption.
|
312
312
|
|
313
|
-
|
313
|
+
后端服务器组关联的虚拟私有云的ID。 指定了vpc_id的约束: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。 没有指定vpc_id的约束: - 后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。
|
314
314
|
|
315
315
|
:return: The vpc_id of this CreateMasterSlavePoolOption.
|
316
316
|
:rtype: str
|
@@ -321,7 +321,7 @@ class CreateMasterSlavePoolOption:
|
|
321
321
|
def vpc_id(self, vpc_id):
|
322
322
|
"""Sets the vpc_id of this CreateMasterSlavePoolOption.
|
323
323
|
|
324
|
-
|
324
|
+
后端服务器组关联的虚拟私有云的ID。 指定了vpc_id的约束: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。 没有指定vpc_id的约束: - 后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。
|
325
325
|
|
326
326
|
:param vpc_id: The vpc_id of this CreateMasterSlavePoolOption.
|
327
327
|
:type vpc_id: str
|
@@ -354,7 +354,7 @@ class CreateMasterSlavePoolOption:
|
|
354
354
|
def ip_version(self):
|
355
355
|
"""Gets the ip_version of this CreateMasterSlavePoolOption.
|
356
356
|
|
357
|
-
|
357
|
+
后端服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test)
|
358
358
|
|
359
359
|
:return: The ip_version of this CreateMasterSlavePoolOption.
|
360
360
|
:rtype: str
|
@@ -365,7 +365,7 @@ class CreateMasterSlavePoolOption:
|
|
365
365
|
def ip_version(self, ip_version):
|
366
366
|
"""Sets the ip_version of this CreateMasterSlavePoolOption.
|
367
367
|
|
368
|
-
|
368
|
+
后端服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test)
|
369
369
|
|
370
370
|
:param ip_version: The ip_version of this CreateMasterSlavePoolOption.
|
371
371
|
:type ip_version: str
|
@@ -376,7 +376,7 @@ class CreateMasterSlavePoolOption:
|
|
376
376
|
def members(self):
|
377
377
|
"""Gets the members of this CreateMasterSlavePoolOption.
|
378
378
|
|
379
|
-
主备主机组的后端服务器。 只能添加2
|
379
|
+
主备主机组的后端服务器。 只能添加2个后端服务器,必须有一个为主,一个为备。
|
380
380
|
|
381
381
|
:return: The members of this CreateMasterSlavePoolOption.
|
382
382
|
:rtype: list[:class:`huaweicloudsdkelb.v3.CreateMasterSlaveMemberOption`]
|
@@ -387,7 +387,7 @@ class CreateMasterSlavePoolOption:
|
|
387
387
|
def members(self, members):
|
388
388
|
"""Sets the members of this CreateMasterSlavePoolOption.
|
389
389
|
|
390
|
-
主备主机组的后端服务器。 只能添加2
|
390
|
+
主备主机组的后端服务器。 只能添加2个后端服务器,必须有一个为主,一个为备。
|
391
391
|
|
392
392
|
:param members: The members of this CreateMasterSlavePoolOption.
|
393
393
|
:type members: list[:class:`huaweicloudsdkelb.v3.CreateMasterSlaveMemberOption`]
|
@@ -41,19 +41,19 @@ class CreateMemberOption:
|
|
41
41
|
|
42
42
|
The model defined in huaweicloud sdk
|
43
43
|
|
44
|
-
:param address: 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id
|
44
|
+
:param address: 参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [ 不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
45
45
|
:type address: str
|
46
|
-
:param admin_state_up:
|
46
|
+
:param admin_state_up: 参数解释:后端服务器的管理状态。 约束限制:虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 取值范围:true、false。
|
47
47
|
:type admin_state_up: bool
|
48
|
-
:param name:
|
48
|
+
:param name: 参数解释:后端服务器名称。注意:该名称并非ECS名称,若不传则返回为空。
|
49
49
|
:type name: str
|
50
|
-
:param project_id:
|
50
|
+
:param project_id: 参数解释:后端服务器所在的项目ID。
|
51
51
|
:type project_id: str
|
52
52
|
:param protocol_port: 参数解释:后端服务器业务端口。 约束限制: - 在开启端口透传的pool下创建member传该字段不生效,可不传该字段。 [- 网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu)
|
53
53
|
:type protocol_port: int
|
54
|
-
:param subnet_cidr_id:
|
54
|
+
:param subnet_cidr_id: 参数解释:后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 约束限制: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
|
55
55
|
:type subnet_cidr_id: str
|
56
|
-
:param weight:
|
56
|
+
:param weight: 参数解释:后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 约束限制:若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 取值范围:0-100,默认1。
|
57
57
|
:type weight: int
|
58
58
|
"""
|
59
59
|
|
@@ -86,7 +86,7 @@ class CreateMemberOption:
|
|
86
86
|
def address(self):
|
87
87
|
"""Gets the address of this CreateMemberOption.
|
88
88
|
|
89
|
-
参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id
|
89
|
+
参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [ 不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
90
90
|
|
91
91
|
:return: The address of this CreateMemberOption.
|
92
92
|
:rtype: str
|
@@ -97,7 +97,7 @@ class CreateMemberOption:
|
|
97
97
|
def address(self, address):
|
98
98
|
"""Sets the address of this CreateMemberOption.
|
99
99
|
|
100
|
-
参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id
|
100
|
+
参数解释:后端服务器对应的IP地址。 约束限制: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。 [ 不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
101
101
|
|
102
102
|
:param address: The address of this CreateMemberOption.
|
103
103
|
:type address: str
|
@@ -108,7 +108,7 @@ class CreateMemberOption:
|
|
108
108
|
def admin_state_up(self):
|
109
109
|
"""Gets the admin_state_up of this CreateMemberOption.
|
110
110
|
|
111
|
-
|
111
|
+
参数解释:后端服务器的管理状态。 约束限制:虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 取值范围:true、false。
|
112
112
|
|
113
113
|
:return: The admin_state_up of this CreateMemberOption.
|
114
114
|
:rtype: bool
|
@@ -119,7 +119,7 @@ class CreateMemberOption:
|
|
119
119
|
def admin_state_up(self, admin_state_up):
|
120
120
|
"""Sets the admin_state_up of this CreateMemberOption.
|
121
121
|
|
122
|
-
|
122
|
+
参数解释:后端服务器的管理状态。 约束限制:虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 取值范围:true、false。
|
123
123
|
|
124
124
|
:param admin_state_up: The admin_state_up of this CreateMemberOption.
|
125
125
|
:type admin_state_up: bool
|
@@ -130,7 +130,7 @@ class CreateMemberOption:
|
|
130
130
|
def name(self):
|
131
131
|
"""Gets the name of this CreateMemberOption.
|
132
132
|
|
133
|
-
|
133
|
+
参数解释:后端服务器名称。注意:该名称并非ECS名称,若不传则返回为空。
|
134
134
|
|
135
135
|
:return: The name of this CreateMemberOption.
|
136
136
|
:rtype: str
|
@@ -141,7 +141,7 @@ class CreateMemberOption:
|
|
141
141
|
def name(self, name):
|
142
142
|
"""Sets the name of this CreateMemberOption.
|
143
143
|
|
144
|
-
|
144
|
+
参数解释:后端服务器名称。注意:该名称并非ECS名称,若不传则返回为空。
|
145
145
|
|
146
146
|
:param name: The name of this CreateMemberOption.
|
147
147
|
:type name: str
|
@@ -152,7 +152,7 @@ class CreateMemberOption:
|
|
152
152
|
def project_id(self):
|
153
153
|
"""Gets the project_id of this CreateMemberOption.
|
154
154
|
|
155
|
-
|
155
|
+
参数解释:后端服务器所在的项目ID。
|
156
156
|
|
157
157
|
:return: The project_id of this CreateMemberOption.
|
158
158
|
:rtype: str
|
@@ -163,7 +163,7 @@ class CreateMemberOption:
|
|
163
163
|
def project_id(self, project_id):
|
164
164
|
"""Sets the project_id of this CreateMemberOption.
|
165
165
|
|
166
|
-
|
166
|
+
参数解释:后端服务器所在的项目ID。
|
167
167
|
|
168
168
|
:param project_id: The project_id of this CreateMemberOption.
|
169
169
|
:type project_id: str
|
@@ -196,7 +196,7 @@ class CreateMemberOption:
|
|
196
196
|
def subnet_cidr_id(self):
|
197
197
|
"""Gets the subnet_cidr_id of this CreateMemberOption.
|
198
198
|
|
199
|
-
|
199
|
+
参数解释:后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 约束限制: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
|
200
200
|
|
201
201
|
:return: The subnet_cidr_id of this CreateMemberOption.
|
202
202
|
:rtype: str
|
@@ -207,7 +207,7 @@ class CreateMemberOption:
|
|
207
207
|
def subnet_cidr_id(self, subnet_cidr_id):
|
208
208
|
"""Sets the subnet_cidr_id of this CreateMemberOption.
|
209
209
|
|
210
|
-
|
210
|
+
参数解释:后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 约束限制: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
|
211
211
|
|
212
212
|
:param subnet_cidr_id: The subnet_cidr_id of this CreateMemberOption.
|
213
213
|
:type subnet_cidr_id: str
|
@@ -218,7 +218,7 @@ class CreateMemberOption:
|
|
218
218
|
def weight(self):
|
219
219
|
"""Gets the weight of this CreateMemberOption.
|
220
220
|
|
221
|
-
|
221
|
+
参数解释:后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 约束限制:若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 取值范围:0-100,默认1。
|
222
222
|
|
223
223
|
:return: The weight of this CreateMemberOption.
|
224
224
|
:rtype: int
|
@@ -229,7 +229,7 @@ class CreateMemberOption:
|
|
229
229
|
def weight(self, weight):
|
230
230
|
"""Sets the weight of this CreateMemberOption.
|
231
231
|
|
232
|
-
|
232
|
+
参数解释:后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 约束限制:若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。 取值范围:0-100,默认1。
|
233
233
|
|
234
234
|
:param weight: The weight of this CreateMemberOption.
|
235
235
|
:type weight: int
|