climc: lblistener: allow setting backendgroup to empty

This commit is contained in:
Yousong Zhou
2020-01-14 21:36:50 +08:00
parent 3f684ef94c
commit 2f7f26e640
@@ -21,7 +21,7 @@ type LoadbalancerListenerCreateOptions struct {
ListenerType string `required:"true" choices:"tcp|udp|http|https"`
ListenerPort *int `required:"true"`
BackendServerPort *int
BackendGroup string
BackendGroup *string `json:",allowempty"`
Scheduler string `required:"true" choices:"rr|wrr|wlc|sch|tch"`
@@ -81,7 +81,7 @@ type LoadbalancerListenerListOptions struct {
Loadbalancer string
ListenerType string `choices:"tcp|udp|http|https"`
ListenerPort *int
BackendGroup string
BackendGroup *string `json:",allowempty"`
Scheduler string `choices:"rr|wrr|wlc|sch|tch"`
@@ -137,7 +137,7 @@ type LoadbalancerListenerUpdateOptions struct {
ID string `json:"-"`
Name string
BackendGroup string
BackendGroup *string `json:",allowempty"`
Scheduler string `choices:"rr|wrr|wlc|sch|tch"`