Skip to content

Commit

Permalink
Allow empty string for name and description fields
Browse files Browse the repository at this point in the history
  • Loading branch information
lingxiankong committed Apr 9, 2018
1 parent 56a0b53 commit 2fcdd51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openstack/loadbalancer/v2/l7policies/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,17 +153,17 @@ type UpdateOptsBuilder interface {
// UpdateOpts is the common options struct used in this package's Update
// operation.
type UpdateOpts struct {
// Name of the L7 policy.
Name string `json:"name,omitempty"`
// Name of the L7 policy, empty string is allowed.
Name *string `json:"name,omitempty"`

// The L7 policy action. One of REDIRECT_TO_POOL, REDIRECT_TO_URL, or REJECT.
Action Action `json:"action,omitempty"`

// The position of this policy on the listener.
Position int32 `json:"position,omitempty"`

// A human-readable description for the resource.
Description string `json:"description,omitempty"`
// A human-readable description for the resource, empty string is allowed.
Description *string `json:"description,omitempty"`

// Requests matching this policy will be redirected to the pool with this ID.
// Only valid if action is REDIRECT_TO_POOL.
Expand Down

0 comments on commit 2fcdd51

Please sign in to comment.