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
8 changes: 8 additions & 0 deletions src/datadog_api_client/v2/model/layer_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def openapi_types(_):
"name": (str,),
"restrictions": ([TimeRestriction],),
"rotation_start": (datetime,),
"time_zone": (str,),
}

attribute_map = {
Expand All @@ -41,6 +42,7 @@ def openapi_types(_):
"name": "name",
"restrictions": "restrictions",
"rotation_start": "rotation_start",
"time_zone": "time_zone",
}

def __init__(
Expand All @@ -51,6 +53,7 @@ def __init__(
name: Union[str, UnsetType] = unset,
restrictions: Union[List[TimeRestriction], UnsetType] = unset,
rotation_start: Union[datetime, UnsetType] = unset,
time_zone: Union[str, UnsetType] = unset,
**kwargs,
):
"""
Expand All @@ -73,6 +76,9 @@ def __init__(

:param rotation_start: The date/time when the rotation starts (ISO 8601).
:type rotation_start: datetime, optional

:param time_zone: The time zone for this layer.
:type time_zone: str, optional
"""
if effective_date is not unset:
kwargs["effective_date"] = effective_date
Expand All @@ -86,4 +92,6 @@ def __init__(
kwargs["restrictions"] = restrictions
if rotation_start is not unset:
kwargs["rotation_start"] = rotation_start
if time_zone is not unset:
kwargs["time_zone"] = time_zone
super().__init__(kwargs)
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def openapi_types(_):
"name": (str,),
"restrictions": ([TimeRestriction],),
"rotation_start": (datetime,),
"time_zone": (str,),
}

attribute_map = {
Expand All @@ -49,6 +50,7 @@ def openapi_types(_):
"name": "name",
"restrictions": "restrictions",
"rotation_start": "rotation_start",
"time_zone": "time_zone",
}

def __init__(
Expand All @@ -60,6 +62,7 @@ def __init__(
rotation_start: datetime,
end_date: Union[datetime, UnsetType] = unset,
restrictions: Union[List[TimeRestriction], UnsetType] = unset,
time_zone: Union[str, UnsetType] = unset,
**kwargs,
):
"""
Expand All @@ -85,11 +88,16 @@ def __init__(

:param rotation_start: The date/time when the rotation for this layer starts (in ISO 8601).
:type rotation_start: datetime

:param time_zone: The time zone for this layer.
:type time_zone: str, optional
"""
if end_date is not unset:
kwargs["end_date"] = end_date
if restrictions is not unset:
kwargs["restrictions"] = restrictions
if time_zone is not unset:
kwargs["time_zone"] = time_zone
super().__init__(kwargs)

self_.effective_date = effective_date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def openapi_types(_):
"name": (str,),
"restrictions": ([TimeRestriction],),
"rotation_start": (datetime,),
"time_zone": (str,),
}

attribute_map = {
Expand All @@ -51,6 +52,7 @@ def openapi_types(_):
"name": "name",
"restrictions": "restrictions",
"rotation_start": "rotation_start",
"time_zone": "time_zone",
}

def __init__(
Expand All @@ -63,6 +65,7 @@ def __init__(
end_date: Union[datetime, UnsetType] = unset,
id: Union[str, UnsetType] = unset,
restrictions: Union[List[TimeRestriction], UnsetType] = unset,
time_zone: Union[str, UnsetType] = unset,
**kwargs,
):
"""
Expand Down Expand Up @@ -92,13 +95,18 @@ def __init__(

:param rotation_start: The date/time at which the rotation begins (ISO 8601 format).
:type rotation_start: datetime

:param time_zone: The time zone for this layer.
:type time_zone: str, optional
"""
if end_date is not unset:
kwargs["end_date"] = end_date
if id is not unset:
kwargs["id"] = id
if restrictions is not unset:
kwargs["restrictions"] = restrictions
if time_zone is not unset:
kwargs["time_zone"] = time_zone
super().__init__(kwargs)

self_.effective_date = effective_date
Expand Down