From 7c35dc9f89b29d3afd5a3dfbf0a752c1f6cf20c3 Mon Sep 17 00:00:00 2001 From: Vitaly Velikodny Date: Mon, 7 Feb 2022 23:47:24 +0300 Subject: [PATCH] add resource options to resource.CreateRequest (#11) Co-authored-by: Vitaly Velikodny --- resources/resources.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/resources/resources.go b/resources/resources.go index 7aee672..515ed3a 100644 --- a/resources/resources.go +++ b/resources/resources.go @@ -30,11 +30,12 @@ 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"` + Cname string `json:"cname,omitempty"` + Description string `json:"description"` + OriginGroup int `json:"originGroup,omitempty"` + Origin string `json:"origin,omitempty"` + SecondaryHostnames []string `json:"secondaryHostnames,omitempty"` + Options *gcore.Options `json:"options,omitempty"` } type UpdateRequest struct {