@@ -95,12 +95,17 @@ func (u *TemplateError) UnmarshalJSON(body []byte) error {
9595// PropertiesError : has no documentation (yet)
9696type PropertiesError struct {
9797 dropbox.Tagged
98+ // TemplateNotFound : Template does not exist for the given identifier.
99+ TemplateNotFound string `json:"template_not_found,omitempty"`
98100 // Path : has no documentation (yet)
99101 Path * LookupError `json:"path,omitempty"`
100102}
101103
102104// Valid tag values for PropertiesError
103105const (
106+ PropertiesErrorTemplateNotFound = "template_not_found"
107+ PropertiesErrorRestrictedContent = "restricted_content"
108+ PropertiesErrorOther = "other"
104109 PropertiesErrorPath = "path"
105110 PropertiesErrorUnsupportedFolder = "unsupported_folder"
106111)
@@ -119,6 +124,12 @@ func (u *PropertiesError) UnmarshalJSON(body []byte) error {
119124 }
120125 u .Tag = w .Tag
121126 switch u .Tag {
127+ case "template_not_found" :
128+ err = json .Unmarshal (body , & u .TemplateNotFound )
129+
130+ if err != nil {
131+ return err
132+ }
122133 case "path" :
123134 err = json .Unmarshal (w .Path , & u .Path )
124135
@@ -132,24 +143,104 @@ func (u *PropertiesError) UnmarshalJSON(body []byte) error {
132143// InvalidPropertyGroupError : has no documentation (yet)
133144type InvalidPropertyGroupError struct {
134145 dropbox.Tagged
146+ // TemplateNotFound : Template does not exist for the given identifier.
147+ TemplateNotFound string `json:"template_not_found,omitempty"`
148+ // Path : has no documentation (yet)
149+ Path * LookupError `json:"path,omitempty"`
135150}
136151
137152// Valid tag values for InvalidPropertyGroupError
138153const (
154+ InvalidPropertyGroupErrorTemplateNotFound = "template_not_found"
155+ InvalidPropertyGroupErrorRestrictedContent = "restricted_content"
156+ InvalidPropertyGroupErrorOther = "other"
157+ InvalidPropertyGroupErrorPath = "path"
158+ InvalidPropertyGroupErrorUnsupportedFolder = "unsupported_folder"
139159 InvalidPropertyGroupErrorPropertyFieldTooLarge = "property_field_too_large"
140160 InvalidPropertyGroupErrorDoesNotFitTemplate = "does_not_fit_template"
141161)
142162
163+ // UnmarshalJSON deserializes into a InvalidPropertyGroupError instance
164+ func (u * InvalidPropertyGroupError ) UnmarshalJSON (body []byte ) error {
165+ type wrap struct {
166+ dropbox.Tagged
167+ // Path : has no documentation (yet)
168+ Path json.RawMessage `json:"path,omitempty"`
169+ }
170+ var w wrap
171+ var err error
172+ if err = json .Unmarshal (body , & w ); err != nil {
173+ return err
174+ }
175+ u .Tag = w .Tag
176+ switch u .Tag {
177+ case "template_not_found" :
178+ err = json .Unmarshal (body , & u .TemplateNotFound )
179+
180+ if err != nil {
181+ return err
182+ }
183+ case "path" :
184+ err = json .Unmarshal (w .Path , & u .Path )
185+
186+ if err != nil {
187+ return err
188+ }
189+ }
190+ return nil
191+ }
192+
143193// AddPropertiesError : has no documentation (yet)
144194type AddPropertiesError struct {
145195 dropbox.Tagged
196+ // TemplateNotFound : Template does not exist for the given identifier.
197+ TemplateNotFound string `json:"template_not_found,omitempty"`
198+ // Path : has no documentation (yet)
199+ Path * LookupError `json:"path,omitempty"`
146200}
147201
148202// Valid tag values for AddPropertiesError
149203const (
204+ AddPropertiesErrorTemplateNotFound = "template_not_found"
205+ AddPropertiesErrorRestrictedContent = "restricted_content"
206+ AddPropertiesErrorOther = "other"
207+ AddPropertiesErrorPath = "path"
208+ AddPropertiesErrorUnsupportedFolder = "unsupported_folder"
209+ AddPropertiesErrorPropertyFieldTooLarge = "property_field_too_large"
210+ AddPropertiesErrorDoesNotFitTemplate = "does_not_fit_template"
150211 AddPropertiesErrorPropertyGroupAlreadyExists = "property_group_already_exists"
151212)
152213
214+ // UnmarshalJSON deserializes into a AddPropertiesError instance
215+ func (u * AddPropertiesError ) UnmarshalJSON (body []byte ) error {
216+ type wrap struct {
217+ dropbox.Tagged
218+ // Path : has no documentation (yet)
219+ Path json.RawMessage `json:"path,omitempty"`
220+ }
221+ var w wrap
222+ var err error
223+ if err = json .Unmarshal (body , & w ); err != nil {
224+ return err
225+ }
226+ u .Tag = w .Tag
227+ switch u .Tag {
228+ case "template_not_found" :
229+ err = json .Unmarshal (body , & u .TemplateNotFound )
230+
231+ if err != nil {
232+ return err
233+ }
234+ case "path" :
235+ err = json .Unmarshal (w .Path , & u .Path )
236+
237+ if err != nil {
238+ return err
239+ }
240+ }
241+ return nil
242+ }
243+
153244// PropertyGroupTemplate : Defines how a property group may be structured.
154245type PropertyGroupTemplate struct {
155246 // Name : Display name for the template. Template names can be up to 256
@@ -306,16 +397,43 @@ func (u *LookupError) UnmarshalJSON(body []byte) error {
306397// ModifyTemplateError : has no documentation (yet)
307398type ModifyTemplateError struct {
308399 dropbox.Tagged
400+ // TemplateNotFound : Template does not exist for the given identifier.
401+ TemplateNotFound string `json:"template_not_found,omitempty"`
309402}
310403
311404// Valid tag values for ModifyTemplateError
312405const (
406+ ModifyTemplateErrorTemplateNotFound = "template_not_found"
407+ ModifyTemplateErrorRestrictedContent = "restricted_content"
408+ ModifyTemplateErrorOther = "other"
313409 ModifyTemplateErrorConflictingPropertyNames = "conflicting_property_names"
314410 ModifyTemplateErrorTooManyProperties = "too_many_properties"
315411 ModifyTemplateErrorTooManyTemplates = "too_many_templates"
316412 ModifyTemplateErrorTemplateAttributeTooLarge = "template_attribute_too_large"
317413)
318414
415+ // UnmarshalJSON deserializes into a ModifyTemplateError instance
416+ func (u * ModifyTemplateError ) UnmarshalJSON (body []byte ) error {
417+ type wrap struct {
418+ dropbox.Tagged
419+ }
420+ var w wrap
421+ var err error
422+ if err = json .Unmarshal (body , & w ); err != nil {
423+ return err
424+ }
425+ u .Tag = w .Tag
426+ switch u .Tag {
427+ case "template_not_found" :
428+ err = json .Unmarshal (body , & u .TemplateNotFound )
429+
430+ if err != nil {
431+ return err
432+ }
433+ }
434+ return nil
435+ }
436+
319437// OverwritePropertyGroupArg : has no documentation (yet)
320438type OverwritePropertyGroupArg struct {
321439 // Path : A unique identifier for the file or folder.
@@ -584,19 +702,30 @@ func NewRemovePropertiesArg(Path string, PropertyTemplateIds []string) *RemovePr
584702// RemovePropertiesError : has no documentation (yet)
585703type RemovePropertiesError struct {
586704 dropbox.Tagged
705+ // TemplateNotFound : Template does not exist for the given identifier.
706+ TemplateNotFound string `json:"template_not_found,omitempty"`
707+ // Path : has no documentation (yet)
708+ Path * LookupError `json:"path,omitempty"`
587709 // PropertyGroupLookup : has no documentation (yet)
588710 PropertyGroupLookup * LookUpPropertiesError `json:"property_group_lookup,omitempty"`
589711}
590712
591713// Valid tag values for RemovePropertiesError
592714const (
715+ RemovePropertiesErrorTemplateNotFound = "template_not_found"
716+ RemovePropertiesErrorRestrictedContent = "restricted_content"
717+ RemovePropertiesErrorOther = "other"
718+ RemovePropertiesErrorPath = "path"
719+ RemovePropertiesErrorUnsupportedFolder = "unsupported_folder"
593720 RemovePropertiesErrorPropertyGroupLookup = "property_group_lookup"
594721)
595722
596723// UnmarshalJSON deserializes into a RemovePropertiesError instance
597724func (u * RemovePropertiesError ) UnmarshalJSON (body []byte ) error {
598725 type wrap struct {
599726 dropbox.Tagged
727+ // Path : has no documentation (yet)
728+ Path json.RawMessage `json:"path,omitempty"`
600729 // PropertyGroupLookup : has no documentation (yet)
601730 PropertyGroupLookup json.RawMessage `json:"property_group_lookup,omitempty"`
602731 }
@@ -607,6 +736,18 @@ func (u *RemovePropertiesError) UnmarshalJSON(body []byte) error {
607736 }
608737 u .Tag = w .Tag
609738 switch u .Tag {
739+ case "template_not_found" :
740+ err = json .Unmarshal (body , & u .TemplateNotFound )
741+
742+ if err != nil {
743+ return err
744+ }
745+ case "path" :
746+ err = json .Unmarshal (w .Path , & u .Path )
747+
748+ if err != nil {
749+ return err
750+ }
610751 case "property_group_lookup" :
611752 err = json .Unmarshal (w .PropertyGroupLookup , & u .PropertyGroupLookup )
612753
@@ -688,19 +829,32 @@ func NewUpdatePropertiesArg(Path string, UpdatePropertyGroups []*PropertyGroupUp
688829// UpdatePropertiesError : has no documentation (yet)
689830type UpdatePropertiesError struct {
690831 dropbox.Tagged
832+ // TemplateNotFound : Template does not exist for the given identifier.
833+ TemplateNotFound string `json:"template_not_found,omitempty"`
834+ // Path : has no documentation (yet)
835+ Path * LookupError `json:"path,omitempty"`
691836 // PropertyGroupLookup : has no documentation (yet)
692837 PropertyGroupLookup * LookUpPropertiesError `json:"property_group_lookup,omitempty"`
693838}
694839
695840// Valid tag values for UpdatePropertiesError
696841const (
697- UpdatePropertiesErrorPropertyGroupLookup = "property_group_lookup"
842+ UpdatePropertiesErrorTemplateNotFound = "template_not_found"
843+ UpdatePropertiesErrorRestrictedContent = "restricted_content"
844+ UpdatePropertiesErrorOther = "other"
845+ UpdatePropertiesErrorPath = "path"
846+ UpdatePropertiesErrorUnsupportedFolder = "unsupported_folder"
847+ UpdatePropertiesErrorPropertyFieldTooLarge = "property_field_too_large"
848+ UpdatePropertiesErrorDoesNotFitTemplate = "does_not_fit_template"
849+ UpdatePropertiesErrorPropertyGroupLookup = "property_group_lookup"
698850)
699851
700852// UnmarshalJSON deserializes into a UpdatePropertiesError instance
701853func (u * UpdatePropertiesError ) UnmarshalJSON (body []byte ) error {
702854 type wrap struct {
703855 dropbox.Tagged
856+ // Path : has no documentation (yet)
857+ Path json.RawMessage `json:"path,omitempty"`
704858 // PropertyGroupLookup : has no documentation (yet)
705859 PropertyGroupLookup json.RawMessage `json:"property_group_lookup,omitempty"`
706860 }
@@ -711,6 +865,18 @@ func (u *UpdatePropertiesError) UnmarshalJSON(body []byte) error {
711865 }
712866 u .Tag = w .Tag
713867 switch u .Tag {
868+ case "template_not_found" :
869+ err = json .Unmarshal (body , & u .TemplateNotFound )
870+
871+ if err != nil {
872+ return err
873+ }
874+ case "path" :
875+ err = json .Unmarshal (w .Path , & u .Path )
876+
877+ if err != nil {
878+ return err
879+ }
714880 case "property_group_lookup" :
715881 err = json .Unmarshal (w .PropertyGroupLookup , & u .PropertyGroupLookup )
716882
0 commit comments