@@ -23,8 +23,7 @@ type TableResultV2DataAttributesFileMetadataCloudStorage struct {
2323 // Whether this table is synced automatically.
2424 SyncEnabled * bool `json:"sync_enabled,omitempty"`
2525 // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
26- UnparsedObject map [string ]interface {} `json:"-"`
27- AdditionalProperties map [string ]interface {} `json:"-"`
26+ UnparsedObject map [string ]interface {} `json:"-"`
2827}
2928
3029// NewTableResultV2DataAttributesFileMetadataCloudStorage instantiates a new TableResultV2DataAttributesFileMetadataCloudStorage object.
@@ -199,10 +198,6 @@ func (o TableResultV2DataAttributesFileMetadataCloudStorage) MarshalJSON() ([]by
199198 if o .SyncEnabled != nil {
200199 toSerialize ["sync_enabled" ] = o .SyncEnabled
201200 }
202-
203- for key , value := range o .AdditionalProperties {
204- toSerialize [key ] = value
205- }
206201 return datadog .Marshal (toSerialize )
207202}
208203
@@ -221,12 +216,6 @@ func (o *TableResultV2DataAttributesFileMetadataCloudStorage) UnmarshalJSON(byte
221216 if all .AccessDetails == nil {
222217 return fmt .Errorf ("required field access_details missing" )
223218 }
224- additionalProperties := make (map [string ]interface {})
225- if err = datadog .Unmarshal (bytes , & additionalProperties ); err == nil {
226- datadog .DeleteKeys (additionalProperties , & []string {"access_details" , "error_message" , "error_row_count" , "error_type" , "sync_enabled" })
227- } else {
228- return err
229- }
230219
231220 hasInvalidField := false
232221 if all .AccessDetails .UnparsedObject != nil && o .UnparsedObject == nil {
@@ -242,10 +231,6 @@ func (o *TableResultV2DataAttributesFileMetadataCloudStorage) UnmarshalJSON(byte
242231 }
243232 o .SyncEnabled = all .SyncEnabled
244233
245- if len (additionalProperties ) > 0 {
246- o .AdditionalProperties = additionalProperties
247- }
248-
249234 if hasInvalidField {
250235 return datadog .Unmarshal (bytes , & o .UnparsedObject )
251236 }
0 commit comments