diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 1907f9ce40..71b4528bc8 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/src/datadog_api_client/v2/model/layer_attributes.py b/src/datadog_api_client/v2/model/layer_attributes.py index 9496901068..f43eba74a0 100644 --- a/src/datadog_api_client/v2/model/layer_attributes.py +++ b/src/datadog_api_client/v2/model/layer_attributes.py @@ -32,6 +32,7 @@ def openapi_types(_): "name": (str,), "restrictions": ([TimeRestriction],), "rotation_start": (datetime,), + "time_zone": (str,), } attribute_map = { @@ -41,6 +42,7 @@ def openapi_types(_): "name": "name", "restrictions": "restrictions", "rotation_start": "rotation_start", + "time_zone": "time_zone", } def __init__( @@ -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, ): """ @@ -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 @@ -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) diff --git a/src/datadog_api_client/v2/model/schedule_create_request_data_attributes_layers_items.py b/src/datadog_api_client/v2/model/schedule_create_request_data_attributes_layers_items.py index 9457eceedd..8e2069d9af 100644 --- a/src/datadog_api_client/v2/model/schedule_create_request_data_attributes_layers_items.py +++ b/src/datadog_api_client/v2/model/schedule_create_request_data_attributes_layers_items.py @@ -39,6 +39,7 @@ def openapi_types(_): "name": (str,), "restrictions": ([TimeRestriction],), "rotation_start": (datetime,), + "time_zone": (str,), } attribute_map = { @@ -49,6 +50,7 @@ def openapi_types(_): "name": "name", "restrictions": "restrictions", "rotation_start": "rotation_start", + "time_zone": "time_zone", } def __init__( @@ -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, ): """ @@ -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 diff --git a/src/datadog_api_client/v2/model/schedule_update_request_data_attributes_layers_items.py b/src/datadog_api_client/v2/model/schedule_update_request_data_attributes_layers_items.py index d5a8e50b2f..39a447454e 100644 --- a/src/datadog_api_client/v2/model/schedule_update_request_data_attributes_layers_items.py +++ b/src/datadog_api_client/v2/model/schedule_update_request_data_attributes_layers_items.py @@ -40,6 +40,7 @@ def openapi_types(_): "name": (str,), "restrictions": ([TimeRestriction],), "rotation_start": (datetime,), + "time_zone": (str,), } attribute_map = { @@ -51,6 +52,7 @@ def openapi_types(_): "name": "name", "restrictions": "restrictions", "rotation_start": "rotation_start", + "time_zone": "time_zone", } def __init__( @@ -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, ): """ @@ -92,6 +95,9 @@ 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 @@ -99,6 +105,8 @@ def __init__( 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