Skip to content

Commit f74133d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[BGL-1927] Add timezone to on-call layer (#2958)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 9555415 commit f74133d

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
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

src/datadog_api_client/v2/model/layer_attributes.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def openapi_types(_):
3232
"name": (str,),
3333
"restrictions": ([TimeRestriction],),
3434
"rotation_start": (datetime,),
35+
"time_zone": (str,),
3536
}
3637

3738
attribute_map = {
@@ -41,6 +42,7 @@ def openapi_types(_):
4142
"name": "name",
4243
"restrictions": "restrictions",
4344
"rotation_start": "rotation_start",
45+
"time_zone": "time_zone",
4446
}
4547

4648
def __init__(
@@ -51,6 +53,7 @@ def __init__(
5153
name: Union[str, UnsetType] = unset,
5254
restrictions: Union[List[TimeRestriction], UnsetType] = unset,
5355
rotation_start: Union[datetime, UnsetType] = unset,
56+
time_zone: Union[str, UnsetType] = unset,
5457
**kwargs,
5558
):
5659
"""
@@ -73,6 +76,9 @@ def __init__(
7376
7477
:param rotation_start: The date/time when the rotation starts (ISO 8601).
7578
:type rotation_start: datetime, optional
79+
80+
:param time_zone: The time zone for this layer.
81+
:type time_zone: str, optional
7682
"""
7783
if effective_date is not unset:
7884
kwargs["effective_date"] = effective_date
@@ -86,4 +92,6 @@ def __init__(
8692
kwargs["restrictions"] = restrictions
8793
if rotation_start is not unset:
8894
kwargs["rotation_start"] = rotation_start
95+
if time_zone is not unset:
96+
kwargs["time_zone"] = time_zone
8997
super().__init__(kwargs)

src/datadog_api_client/v2/model/schedule_create_request_data_attributes_layers_items.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def openapi_types(_):
3939
"name": (str,),
4040
"restrictions": ([TimeRestriction],),
4141
"rotation_start": (datetime,),
42+
"time_zone": (str,),
4243
}
4344

4445
attribute_map = {
@@ -49,6 +50,7 @@ def openapi_types(_):
4950
"name": "name",
5051
"restrictions": "restrictions",
5152
"rotation_start": "rotation_start",
53+
"time_zone": "time_zone",
5254
}
5355

5456
def __init__(
@@ -60,6 +62,7 @@ def __init__(
6062
rotation_start: datetime,
6163
end_date: Union[datetime, UnsetType] = unset,
6264
restrictions: Union[List[TimeRestriction], UnsetType] = unset,
65+
time_zone: Union[str, UnsetType] = unset,
6366
**kwargs,
6467
):
6568
"""
@@ -85,11 +88,16 @@ def __init__(
8588
8689
:param rotation_start: The date/time when the rotation for this layer starts (in ISO 8601).
8790
:type rotation_start: datetime
91+
92+
:param time_zone: The time zone for this layer.
93+
:type time_zone: str, optional
8894
"""
8995
if end_date is not unset:
9096
kwargs["end_date"] = end_date
9197
if restrictions is not unset:
9298
kwargs["restrictions"] = restrictions
99+
if time_zone is not unset:
100+
kwargs["time_zone"] = time_zone
93101
super().__init__(kwargs)
94102

95103
self_.effective_date = effective_date

src/datadog_api_client/v2/model/schedule_update_request_data_attributes_layers_items.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def openapi_types(_):
4040
"name": (str,),
4141
"restrictions": ([TimeRestriction],),
4242
"rotation_start": (datetime,),
43+
"time_zone": (str,),
4344
}
4445

4546
attribute_map = {
@@ -51,6 +52,7 @@ def openapi_types(_):
5152
"name": "name",
5253
"restrictions": "restrictions",
5354
"rotation_start": "rotation_start",
55+
"time_zone": "time_zone",
5456
}
5557

5658
def __init__(
@@ -63,6 +65,7 @@ def __init__(
6365
end_date: Union[datetime, UnsetType] = unset,
6466
id: Union[str, UnsetType] = unset,
6567
restrictions: Union[List[TimeRestriction], UnsetType] = unset,
68+
time_zone: Union[str, UnsetType] = unset,
6669
**kwargs,
6770
):
6871
"""
@@ -92,13 +95,18 @@ def __init__(
9295
9396
:param rotation_start: The date/time at which the rotation begins (ISO 8601 format).
9497
:type rotation_start: datetime
98+
99+
:param time_zone: The time zone for this layer.
100+
:type time_zone: str, optional
95101
"""
96102
if end_date is not unset:
97103
kwargs["end_date"] = end_date
98104
if id is not unset:
99105
kwargs["id"] = id
100106
if restrictions is not unset:
101107
kwargs["restrictions"] = restrictions
108+
if time_zone is not unset:
109+
kwargs["time_zone"] = time_zone
102110
super().__init__(kwargs)
103111

104112
self_.effective_date = effective_date

0 commit comments

Comments
 (0)