Skip to content

Commit f986754

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[BGL-1927] Add timezone to on-call layer (#2785)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent e62dbad commit f986754

File tree

4 files changed

+51
-9
lines changed

4 files changed

+51
-9
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28204,6 +28204,10 @@ components:
2820428204
description: The date/time when the rotation starts (ISO 8601).
2820528205
format: date-time
2820628206
type: string
28207+
time_zone:
28208+
description: The time zone for this layer.
28209+
example: America/New_York
28210+
type: string
2820728211
type: object
2820828212
LayerAttributesInterval:
2820928213
description: Defines how often the rotation repeats, using a combination of
@@ -44308,6 +44312,10 @@ components:
4430844312
example: '2025-01-01T00:00:00Z'
4430944313
format: date-time
4431044314
type: string
44315+
time_zone:
44316+
description: The time zone for this layer.
44317+
example: America/New_York
44318+
type: string
4431144319
required:
4431244320
- name
4431344321
- interval
@@ -44658,6 +44666,10 @@ components:
4465844666
example: '2025-02-01T00:00:00Z'
4465944667
format: date-time
4466044668
type: string
44669+
time_zone:
44670+
description: The time zone for this layer.
44671+
example: America/New_York
44672+
type: string
4466144673
required:
4466244674
- effective_date
4466344675
- interval

lib/datadog_api_client/v2/models/layer_attributes.rb

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ class LayerAttributes
3939
# The date/time when the rotation starts (ISO 8601).
4040
attr_accessor :rotation_start
4141

42+
# The time zone for this layer.
43+
attr_accessor :time_zone
44+
4245
attr_accessor :additional_properties
4346

4447
# Attribute mapping from ruby-style variable name to JSON key.
@@ -50,7 +53,8 @@ def self.attribute_map
5053
:'interval' => :'interval',
5154
:'name' => :'name',
5255
:'restrictions' => :'restrictions',
53-
:'rotation_start' => :'rotation_start'
56+
:'rotation_start' => :'rotation_start',
57+
:'time_zone' => :'time_zone'
5458
}
5559
end
5660

@@ -63,7 +67,8 @@ def self.openapi_types
6367
:'interval' => :'LayerAttributesInterval',
6468
:'name' => :'String',
6569
:'restrictions' => :'Array<TimeRestriction>',
66-
:'rotation_start' => :'Time'
70+
:'rotation_start' => :'Time',
71+
:'time_zone' => :'String'
6772
}
6873
end
6974

@@ -110,6 +115,10 @@ def initialize(attributes = {})
110115
if attributes.key?(:'rotation_start')
111116
self.rotation_start = attributes[:'rotation_start']
112117
end
118+
119+
if attributes.key?(:'time_zone')
120+
self.time_zone = attributes[:'time_zone']
121+
end
113122
end
114123

115124
# Returns the object in the form of hash, with additionalProperties support.
@@ -144,14 +153,15 @@ def ==(o)
144153
name == o.name &&
145154
restrictions == o.restrictions &&
146155
rotation_start == o.rotation_start &&
156+
time_zone == o.time_zone &&
147157
additional_properties == o.additional_properties
148158
end
149159

150160
# Calculates hash code according to all attributes.
151161
# @return [Integer] Hash code
152162
# @!visibility private
153163
def hash
154-
[effective_date, end_date, interval, name, restrictions, rotation_start, additional_properties].hash
164+
[effective_date, end_date, interval, name, restrictions, rotation_start, time_zone, additional_properties].hash
155165
end
156166
end
157167
end

lib/datadog_api_client/v2/models/schedule_create_request_data_attributes_layers_items.rb

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ class ScheduleCreateRequestDataAttributesLayersItems
4242
# The date/time when the rotation for this layer starts (in ISO 8601).
4343
attr_reader :rotation_start
4444

45+
# The time zone for this layer.
46+
attr_accessor :time_zone
47+
4548
attr_accessor :additional_properties
4649

4750
# Attribute mapping from ruby-style variable name to JSON key.
@@ -54,7 +57,8 @@ def self.attribute_map
5457
:'members' => :'members',
5558
:'name' => :'name',
5659
:'restrictions' => :'restrictions',
57-
:'rotation_start' => :'rotation_start'
60+
:'rotation_start' => :'rotation_start',
61+
:'time_zone' => :'time_zone'
5862
}
5963
end
6064

@@ -68,7 +72,8 @@ def self.openapi_types
6872
:'members' => :'Array<ScheduleRequestDataAttributesLayersItemsMembersItems>',
6973
:'name' => :'String',
7074
:'restrictions' => :'Array<TimeRestriction>',
71-
:'rotation_start' => :'Time'
75+
:'rotation_start' => :'Time',
76+
:'time_zone' => :'String'
7277
}
7378
end
7479

@@ -121,6 +126,10 @@ def initialize(attributes = {})
121126
if attributes.key?(:'rotation_start')
122127
self.rotation_start = attributes[:'rotation_start']
123128
end
129+
130+
if attributes.key?(:'time_zone')
131+
self.time_zone = attributes[:'time_zone']
132+
end
124133
end
125134

126135
# Check to see if the all the properties in the model are valid
@@ -218,14 +227,15 @@ def ==(o)
218227
name == o.name &&
219228
restrictions == o.restrictions &&
220229
rotation_start == o.rotation_start &&
230+
time_zone == o.time_zone &&
221231
additional_properties == o.additional_properties
222232
end
223233

224234
# Calculates hash code according to all attributes.
225235
# @return [Integer] Hash code
226236
# @!visibility private
227237
def hash
228-
[effective_date, end_date, interval, members, name, restrictions, rotation_start, additional_properties].hash
238+
[effective_date, end_date, interval, members, name, restrictions, rotation_start, time_zone, additional_properties].hash
229239
end
230240
end
231241
end

lib/datadog_api_client/v2/models/schedule_update_request_data_attributes_layers_items.rb

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ class ScheduleUpdateRequestDataAttributesLayersItems
4646
# The date/time at which the rotation begins (ISO 8601 format).
4747
attr_reader :rotation_start
4848

49+
# The time zone for this layer.
50+
attr_accessor :time_zone
51+
4952
attr_accessor :additional_properties
5053

5154
# Attribute mapping from ruby-style variable name to JSON key.
@@ -59,7 +62,8 @@ def self.attribute_map
5962
:'members' => :'members',
6063
:'name' => :'name',
6164
:'restrictions' => :'restrictions',
62-
:'rotation_start' => :'rotation_start'
65+
:'rotation_start' => :'rotation_start',
66+
:'time_zone' => :'time_zone'
6367
}
6468
end
6569

@@ -74,7 +78,8 @@ def self.openapi_types
7478
:'members' => :'Array<ScheduleRequestDataAttributesLayersItemsMembersItems>',
7579
:'name' => :'String',
7680
:'restrictions' => :'Array<TimeRestriction>',
77-
:'rotation_start' => :'Time'
81+
:'rotation_start' => :'Time',
82+
:'time_zone' => :'String'
7883
}
7984
end
8085

@@ -131,6 +136,10 @@ def initialize(attributes = {})
131136
if attributes.key?(:'rotation_start')
132137
self.rotation_start = attributes[:'rotation_start']
133138
end
139+
140+
if attributes.key?(:'time_zone')
141+
self.time_zone = attributes[:'time_zone']
142+
end
134143
end
135144

136145
# Check to see if the all the properties in the model are valid
@@ -229,14 +238,15 @@ def ==(o)
229238
name == o.name &&
230239
restrictions == o.restrictions &&
231240
rotation_start == o.rotation_start &&
241+
time_zone == o.time_zone &&
232242
additional_properties == o.additional_properties
233243
end
234244

235245
# Calculates hash code according to all attributes.
236246
# @return [Integer] Hash code
237247
# @!visibility private
238248
def hash
239-
[effective_date, end_date, id, interval, members, name, restrictions, rotation_start, additional_properties].hash
249+
[effective_date, end_date, id, interval, members, name, restrictions, rotation_start, time_zone, additional_properties].hash
240250
end
241251
end
242252
end

0 commit comments

Comments
 (0)