diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 1907f9ce406..71b4528bc8d 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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 @@ -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 @@ -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 diff --git a/lib/datadog_api_client/v2/models/layer_attributes.rb b/lib/datadog_api_client/v2/models/layer_attributes.rb index 739d19f658a..6a0e80e9286 100644 --- a/lib/datadog_api_client/v2/models/layer_attributes.rb +++ b/lib/datadog_api_client/v2/models/layer_attributes.rb @@ -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. @@ -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 @@ -63,7 +67,8 @@ def self.openapi_types :'interval' => :'LayerAttributesInterval', :'name' => :'String', :'restrictions' => :'Array', - :'rotation_start' => :'Time' + :'rotation_start' => :'Time', + :'time_zone' => :'String' } end @@ -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. @@ -144,6 +153,7 @@ def ==(o) name == o.name && restrictions == o.restrictions && rotation_start == o.rotation_start && + time_zone == o.time_zone && additional_properties == o.additional_properties end @@ -151,7 +161,7 @@ def ==(o) # @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 diff --git a/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items.rb b/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items.rb index 084b29a74a4..f13f117161f 100644 --- a/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items.rb +++ b/lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items.rb @@ -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. @@ -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 @@ -68,7 +72,8 @@ def self.openapi_types :'members' => :'Array', :'name' => :'String', :'restrictions' => :'Array', - :'rotation_start' => :'Time' + :'rotation_start' => :'Time', + :'time_zone' => :'String' } end @@ -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 @@ -218,6 +227,7 @@ def ==(o) name == o.name && restrictions == o.restrictions && rotation_start == o.rotation_start && + time_zone == o.time_zone && additional_properties == o.additional_properties end @@ -225,7 +235,7 @@ def ==(o) # @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 diff --git a/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb b/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb index 77db73da022..d66f7880ec4 100644 --- a/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb +++ b/lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb @@ -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. @@ -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 @@ -74,7 +78,8 @@ def self.openapi_types :'members' => :'Array', :'name' => :'String', :'restrictions' => :'Array', - :'rotation_start' => :'Time' + :'rotation_start' => :'Time', + :'time_zone' => :'String' } end @@ -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 @@ -229,6 +238,7 @@ def ==(o) name == o.name && restrictions == o.restrictions && rotation_start == o.rotation_start && + time_zone == o.time_zone && additional_properties == o.additional_properties end @@ -236,7 +246,7 @@ def ==(o) # @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