Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28204,6 +28204,10 @@ components:
description: The date/time when the rotation starts (ISO 8601).
format: date-time
type: string
time_zone:
description: The time zone for this layer.
example: America/New_York
type: string
type: object
LayerAttributesInterval:
description: Defines how often the rotation repeats, using a combination of
Expand Down Expand Up @@ -44308,6 +44312,10 @@ components:
example: '2025-01-01T00:00:00Z'
format: date-time
type: string
time_zone:
description: The time zone for this layer.
example: America/New_York
type: string
required:
- name
- interval
Expand Down Expand Up @@ -44658,6 +44666,10 @@ components:
example: '2025-02-01T00:00:00Z'
format: date-time
type: string
time_zone:
description: The time zone for this layer.
example: America/New_York
type: string
required:
- effective_date
- interval
Expand Down
16 changes: 13 additions & 3 deletions lib/datadog_api_client/v2/models/layer_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ class LayerAttributes
# The date/time when the rotation starts (ISO 8601).
attr_accessor :rotation_start

# The time zone for this layer.
attr_accessor :time_zone

attr_accessor :additional_properties

# Attribute mapping from ruby-style variable name to JSON key.
Expand All @@ -50,7 +53,8 @@ def self.attribute_map
:'interval' => :'interval',
:'name' => :'name',
:'restrictions' => :'restrictions',
:'rotation_start' => :'rotation_start'
:'rotation_start' => :'rotation_start',
:'time_zone' => :'time_zone'
}
end

Expand All @@ -63,7 +67,8 @@ def self.openapi_types
:'interval' => :'LayerAttributesInterval',
:'name' => :'String',
:'restrictions' => :'Array<TimeRestriction>',
:'rotation_start' => :'Time'
:'rotation_start' => :'Time',
:'time_zone' => :'String'
}
end

Expand Down Expand Up @@ -110,6 +115,10 @@ def initialize(attributes = {})
if attributes.key?(:'rotation_start')
self.rotation_start = attributes[:'rotation_start']
end

if attributes.key?(:'time_zone')
self.time_zone = attributes[:'time_zone']
end
end

# Returns the object in the form of hash, with additionalProperties support.
Expand Down Expand Up @@ -144,14 +153,15 @@ def ==(o)
name == o.name &&
restrictions == o.restrictions &&
rotation_start == o.rotation_start &&
time_zone == o.time_zone &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[effective_date, end_date, interval, name, restrictions, rotation_start, additional_properties].hash
[effective_date, end_date, interval, name, restrictions, rotation_start, time_zone, additional_properties].hash
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ class ScheduleCreateRequestDataAttributesLayersItems
# The date/time when the rotation for this layer starts (in ISO 8601).
attr_reader :rotation_start

# The time zone for this layer.
attr_accessor :time_zone

attr_accessor :additional_properties

# Attribute mapping from ruby-style variable name to JSON key.
Expand All @@ -54,7 +57,8 @@ def self.attribute_map
:'members' => :'members',
:'name' => :'name',
:'restrictions' => :'restrictions',
:'rotation_start' => :'rotation_start'
:'rotation_start' => :'rotation_start',
:'time_zone' => :'time_zone'
}
end

Expand All @@ -68,7 +72,8 @@ def self.openapi_types
:'members' => :'Array<ScheduleRequestDataAttributesLayersItemsMembersItems>',
:'name' => :'String',
:'restrictions' => :'Array<TimeRestriction>',
:'rotation_start' => :'Time'
:'rotation_start' => :'Time',
:'time_zone' => :'String'
}
end

Expand Down Expand Up @@ -121,6 +126,10 @@ def initialize(attributes = {})
if attributes.key?(:'rotation_start')
self.rotation_start = attributes[:'rotation_start']
end

if attributes.key?(:'time_zone')
self.time_zone = attributes[:'time_zone']
end
end

# Check to see if the all the properties in the model are valid
Expand Down Expand Up @@ -218,14 +227,15 @@ def ==(o)
name == o.name &&
restrictions == o.restrictions &&
rotation_start == o.rotation_start &&
time_zone == o.time_zone &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[effective_date, end_date, interval, members, name, restrictions, rotation_start, additional_properties].hash
[effective_date, end_date, interval, members, name, restrictions, rotation_start, time_zone, additional_properties].hash
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ class ScheduleUpdateRequestDataAttributesLayersItems
# The date/time at which the rotation begins (ISO 8601 format).
attr_reader :rotation_start

# The time zone for this layer.
attr_accessor :time_zone

attr_accessor :additional_properties

# Attribute mapping from ruby-style variable name to JSON key.
Expand All @@ -59,7 +62,8 @@ def self.attribute_map
:'members' => :'members',
:'name' => :'name',
:'restrictions' => :'restrictions',
:'rotation_start' => :'rotation_start'
:'rotation_start' => :'rotation_start',
:'time_zone' => :'time_zone'
}
end

Expand All @@ -74,7 +78,8 @@ def self.openapi_types
:'members' => :'Array<ScheduleRequestDataAttributesLayersItemsMembersItems>',
:'name' => :'String',
:'restrictions' => :'Array<TimeRestriction>',
:'rotation_start' => :'Time'
:'rotation_start' => :'Time',
:'time_zone' => :'String'
}
end

Expand Down Expand Up @@ -131,6 +136,10 @@ def initialize(attributes = {})
if attributes.key?(:'rotation_start')
self.rotation_start = attributes[:'rotation_start']
end

if attributes.key?(:'time_zone')
self.time_zone = attributes[:'time_zone']
end
end

# Check to see if the all the properties in the model are valid
Expand Down Expand Up @@ -229,14 +238,15 @@ def ==(o)
name == o.name &&
restrictions == o.restrictions &&
rotation_start == o.rotation_start &&
time_zone == o.time_zone &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[effective_date, end_date, id, interval, members, name, restrictions, rotation_start, additional_properties].hash
[effective_date, end_date, id, interval, members, name, restrictions, rotation_start, time_zone, additional_properties].hash
end
end
end
Loading