-
Notifications
You must be signed in to change notification settings - Fork 45
/
model_batch_update_priority_request_body.go
26 lines (19 loc) · 2.02 KB
/
model_batch_update_priority_request_body.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
package model
import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
"strings"
)
// BatchUpdatePriorityRequestBody 批量更新转发策略优先级的请求参数。
type BatchUpdatePriorityRequestBody struct {
// 待更新的l7policy的ID。
Id string `json:"id"`
// 参数解释: 转发策略的优先级。数字越小表示优先级越高。各域名之间优先级独立,相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 若关联的listener开启了enhance_l7policy_enable,且不传该字段, 则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 若监听器下没有转发策略,则新建的转发策略的优先级为1。 约束限制: - 同一个监听器下不允许重复的优先级数值。 - 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 - 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 - 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 [- 共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) 取值范围:1-10000 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
Priority int32 `json:"priority"`
}
func (o BatchUpdatePriorityRequestBody) String() string {
data, err := utils.Marshal(o)
if err != nil {
return "BatchUpdatePriorityRequestBody struct{}"
}
return strings.Join([]string{"BatchUpdatePriorityRequestBody", string(data)}, " ")
}