Skip to content

Commit

Permalink
Add resource desc (#8)
Browse files Browse the repository at this point in the history
* add resource description

* add resource description

Co-authored-by: Vitaly Velikodny <vitaly.velikodny@gcorelabs.com>
  • Loading branch information
vvelikodny and Vitaly Velikodny authored Feb 4, 2022
1 parent 04bdb63 commit 9753162
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ const (

type CreateRequest struct {
Cname string `json:"cname,omitempty"`
Description string `json:"description"`
OriginGroup int `json:"originGroup,omitempty"`
Origin string `json:"origin,omitempty"`
SecondaryHostnames []string `json:"secondaryHostnames,omitempty"`
}

type UpdateRequest struct {
Description string `json:"description"`
Active bool `json:"active"`
OriginGroup int `json:"originGroup"`
SecondaryHostnames []string `json:"secondaryHostnames,omitempty"`
Expand All @@ -57,6 +59,7 @@ type Resource struct {
Client int64 `json:"client"`
OriginGroup int64 `json:"originGroup"`
Cname string `json:"cname"`
Description string `json:"description"`
SecondaryHostnames []string `json:"secondaryHostnames"`
Shielded bool `json:"shielded"`
SSlEnabled bool `json:"sslEnabled"`
Expand Down

0 comments on commit 9753162

Please sign in to comment.