@@ -30,6 +30,8 @@ type ScheduleUpdateRequestDataAttributesLayersItems struct {
3030 Restrictions []TimeRestriction `json:"restrictions,omitempty"`
3131 // The date/time at which the rotation begins (ISO 8601 format).
3232 RotationStart time.Time `json:"rotation_start"`
33+ // The time zone for this layer.
34+ TimeZone * string `json:"time_zone,omitempty"`
3335 // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
3436 UnparsedObject map [string ]interface {} `json:"-"`
3537 AdditionalProperties map [string ]interface {} `json:"-"`
@@ -256,6 +258,34 @@ func (o *ScheduleUpdateRequestDataAttributesLayersItems) SetRotationStart(v time
256258 o .RotationStart = v
257259}
258260
261+ // GetTimeZone returns the TimeZone field value if set, zero value otherwise.
262+ func (o * ScheduleUpdateRequestDataAttributesLayersItems ) GetTimeZone () string {
263+ if o == nil || o .TimeZone == nil {
264+ var ret string
265+ return ret
266+ }
267+ return * o .TimeZone
268+ }
269+
270+ // GetTimeZoneOk returns a tuple with the TimeZone field value if set, nil otherwise
271+ // and a boolean to check if the value has been set.
272+ func (o * ScheduleUpdateRequestDataAttributesLayersItems ) GetTimeZoneOk () (* string , bool ) {
273+ if o == nil || o .TimeZone == nil {
274+ return nil , false
275+ }
276+ return o .TimeZone , true
277+ }
278+
279+ // HasTimeZone returns a boolean if a field has been set.
280+ func (o * ScheduleUpdateRequestDataAttributesLayersItems ) HasTimeZone () bool {
281+ return o != nil && o .TimeZone != nil
282+ }
283+
284+ // SetTimeZone gets a reference to the given string and assigns it to the TimeZone field.
285+ func (o * ScheduleUpdateRequestDataAttributesLayersItems ) SetTimeZone (v string ) {
286+ o .TimeZone = & v
287+ }
288+
259289// MarshalJSON serializes the struct using spec logic.
260290func (o ScheduleUpdateRequestDataAttributesLayersItems ) MarshalJSON () ([]byte , error ) {
261291 toSerialize := map [string ]interface {}{}
@@ -288,6 +318,9 @@ func (o ScheduleUpdateRequestDataAttributesLayersItems) MarshalJSON() ([]byte, e
288318 } else {
289319 toSerialize ["rotation_start" ] = o .RotationStart .Format ("2006-01-02T15:04:05.000Z07:00" )
290320 }
321+ if o .TimeZone != nil {
322+ toSerialize ["time_zone" ] = o .TimeZone
323+ }
291324
292325 for key , value := range o .AdditionalProperties {
293326 toSerialize [key ] = value
@@ -306,6 +339,7 @@ func (o *ScheduleUpdateRequestDataAttributesLayersItems) UnmarshalJSON(bytes []b
306339 Name * string `json:"name"`
307340 Restrictions []TimeRestriction `json:"restrictions,omitempty"`
308341 RotationStart * time.Time `json:"rotation_start"`
342+ TimeZone * string `json:"time_zone,omitempty"`
309343 }{}
310344 if err = datadog .Unmarshal (bytes , & all ); err != nil {
311345 return datadog .Unmarshal (bytes , & o .UnparsedObject )
@@ -327,7 +361,7 @@ func (o *ScheduleUpdateRequestDataAttributesLayersItems) UnmarshalJSON(bytes []b
327361 }
328362 additionalProperties := make (map [string ]interface {})
329363 if err = datadog .Unmarshal (bytes , & additionalProperties ); err == nil {
330- datadog .DeleteKeys (additionalProperties , & []string {"effective_date" , "end_date" , "id" , "interval" , "members" , "name" , "restrictions" , "rotation_start" })
364+ datadog .DeleteKeys (additionalProperties , & []string {"effective_date" , "end_date" , "id" , "interval" , "members" , "name" , "restrictions" , "rotation_start" , "time_zone" })
331365 } else {
332366 return err
333367 }
@@ -344,6 +378,7 @@ func (o *ScheduleUpdateRequestDataAttributesLayersItems) UnmarshalJSON(bytes []b
344378 o .Name = * all .Name
345379 o .Restrictions = all .Restrictions
346380 o .RotationStart = * all .RotationStart
381+ o .TimeZone = all .TimeZone
347382
348383 if len (additionalProperties ) > 0 {
349384 o .AdditionalProperties = additionalProperties
0 commit comments