-
Notifications
You must be signed in to change notification settings - Fork 45
/
model_list_pools_request.go
95 lines (65 loc) · 6.13 KB
/
model_list_pools_request.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
package model
import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
"strings"
)
// ListPoolsRequest Request Object
type ListPoolsRequest struct {
// 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
Marker *string `json:"marker,omitempty"`
// 参数解释:每页返回的个数。 取值范围:0-2000 默认取值:2000
Limit *int32 `json:"limit,omitempty"`
// 是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
PageReverse *bool `json:"page_reverse,omitempty"`
// 后端云服务器组的描述信息。 支持多值查询,查询条件格式:*description=xxx&description=xxx*。
Description *[]string `json:"description,omitempty"`
// 后端云服务器组的管理状态。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
AdminStateUp *bool `json:"admin_state_up,omitempty"`
// 后端云服务器组关联的健康检查的ID。 支持多值查询,查询条件格式:*healthmonitor_id=xxx&healthmonitor_id=xxx*。
HealthmonitorId *[]string `json:"healthmonitor_id,omitempty"`
// 后端云服务器组的ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。
Id *[]string `json:"id,omitempty"`
// 后端云服务器组的名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。
Name *[]string `json:"name,omitempty"`
// 后端云服务器组绑定的负载均衡器ID。 支持多值查询,查询条件格式:*loadbalancer_id=xxx&loadbalancer_id=xxx*。
LoadbalancerId *[]string `json:"loadbalancer_id,omitempty"`
// 后端云服务器组的后端协议。 取值:TCP、UDP、[IP、](tag:hws_eu)TLS、HTTP、HTTPS、QUIC和GRPC。 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt,dt_test)
Protocol *[]string `json:"protocol,omitempty"`
// 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 [- 2_TUPLE_HASH:二元组hash算法,仅IP类型的pool支持。 - 3_TUPLE_HASH:三元组hash算法,仅IP类型的pool支持。 - 4_TUPLE_HASH:五元组hash算法,仅IP类型的pool支持。](tag:hws_eu) 支持多值查询,查询条件格式:*lb_algorithm=xxx&lb_algorithm=xxx*。 [不支持QUIC_CID。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC_CID。](tag:dt,dt_test)
LbAlgorithm *[]string `json:"lb_algorithm,omitempty"`
// 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权; 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式:*enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`
// 后端云服务器组支持的IP版本。 支持多值查询,查询条件格式:*ip_version=xxx&ip_version=xxx*。
IpVersion *[]string `json:"ip_version,omitempty"`
// 后端云服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。
MemberAddress *[]string `json:"member_address,omitempty"`
// 后端云服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。
MemberDeviceId *[]string `json:"member_device_id,omitempty"`
// 是否开启删除保护,false不开启,true开启,不传查询全部。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
MemberDeletionProtectionEnable *bool `json:"member_deletion_protection_enable,omitempty"`
// 关联的监听器ID,包括通过l7policy关联的。 支持多值查询,查询条件格式:*listener_id=xxx&listener_id=xxx*。
ListenerId *[]string `json:"listener_id,omitempty"`
// 后端云服务器ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_instance_id=xxx&member_instance_id=xxx*。
MemberInstanceId *[]string `json:"member_instance_id,omitempty"`
// 后端云服务器组关联的虚拟私有云的ID。
VpcId *[]string `json:"vpc_id,omitempty"`
// 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 - 空字符串(\"\"):允许任意类型的后端
Type *[]string `json:"type,omitempty"`
// 修改保护状态, 取值: - nonProtection: 不保护,默认值为nonProtection - consoleProtection: 控制台修改保护
ProtectionStatus *[]string `json:"protection_status,omitempty"`
// 查询是否开启延迟注销的功能,查询条件格式:*connection_drain=true或者*connection_drain=false
ConnectionDrain *bool `json:"connection_drain,omitempty"`
// 查询是否开启后端全下线转发功能,查询条件格式:*pool_health=minimum_healthy_member_count=0或者*pool_health=minimum_healthy_member_count=1
PoolHealth *string `json:"pool_health,omitempty"`
// 后端是否开启端口透传。开启后,后端服务器端口与前端监听器端口保持一致。取值:false不开启,true开启。
AnyPortEnable *bool `json:"any_port_enable,omitempty"`
// 可用区组
PublicBorderGroup *string `json:"public_border_group,omitempty"`
}
func (o ListPoolsRequest) String() string {
data, err := utils.Marshal(o)
if err != nil {
return "ListPoolsRequest struct{}"
}
return strings.Join([]string{"ListPoolsRequest", string(data)}, " ")
}