Skip to content

Commit

Permalink
Merge pull request #1052 from jacobbednarz/add-priority-for-lockdown-…
Browse files Browse the repository at this point in the history
…create-update
  • Loading branch information
jacobbednarz authored Aug 18, 2022
2 parents b92cb8f + 012bb8a commit 536be84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/1052.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
zonelockdown: add `Priority` to `ZoneLockdownCreateParams` and `ZoneLockdownUpdateParams`
```
2 changes: 2 additions & 0 deletions lockdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ type ZoneLockdownCreateParams struct {
URLs []string `json:"urls"`
Configurations []ZoneLockdownConfig `json:"configurations"`
Paused bool `json:"paused"`
Priority int `json:"priority,omitempty"`
}

// ZoneLockdownUpdateParams contains required and optional params
Expand All @@ -61,6 +62,7 @@ type ZoneLockdownUpdateParams struct {
URLs []string `json:"urls"`
Configurations []ZoneLockdownConfig `json:"configurations"`
Paused bool `json:"paused"`
Priority int `json:"priority,omitempty"`
}

type LockdownListParams struct {
Expand Down

0 comments on commit 536be84

Please sign in to comment.