-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate client from commit 7edfcfcc of spec repo
- Loading branch information
ci.datadog-api-spec
committed
Sep 25, 2023
1 parent
922f10b
commit a5444b0
Showing
8 changed files
with
173 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
src/datadog_api_client/v1/model/monitor_options_scheduling_options_custom_schedule.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. | ||
# This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
# Copyright 2019-Present Datadog, Inc. | ||
from __future__ import annotations | ||
|
||
from typing import Union, TYPE_CHECKING | ||
|
||
from datadog_api_client.model_utils import ( | ||
ModelNormal, | ||
cached_property, | ||
unset, | ||
UnsetType, | ||
) | ||
|
||
|
||
if TYPE_CHECKING: | ||
from datadog_api_client.v1.model.monitor_options_scheduling_options_custom_schedule_recurrences import ( | ||
MonitorOptionsSchedulingOptionsCustomScheduleRecurrences, | ||
) | ||
|
||
|
||
class MonitorOptionsSchedulingOptionsCustomSchedule(ModelNormal): | ||
@cached_property | ||
def openapi_types(_): | ||
from datadog_api_client.v1.model.monitor_options_scheduling_options_custom_schedule_recurrences import ( | ||
MonitorOptionsSchedulingOptionsCustomScheduleRecurrences, | ||
) | ||
|
||
return { | ||
"recurrences": (MonitorOptionsSchedulingOptionsCustomScheduleRecurrences,), | ||
} | ||
|
||
attribute_map = { | ||
"recurrences": "recurrences", | ||
} | ||
|
||
def __init__( | ||
self_, recurrences: Union[MonitorOptionsSchedulingOptionsCustomScheduleRecurrences, UnsetType] = unset, **kwargs | ||
): | ||
""" | ||
Configuration options for the custom schedule. | ||
:param recurrences: Configuration recurrences set on the monitor options for custom schedule. | ||
:type recurrences: MonitorOptionsSchedulingOptionsCustomScheduleRecurrences, optional | ||
""" | ||
if recurrences is not unset: | ||
kwargs["recurrences"] = recurrences | ||
super().__init__(kwargs) |
56 changes: 56 additions & 0 deletions
56
...dog_api_client/v1/model/monitor_options_scheduling_options_custom_schedule_recurrences.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. | ||
# This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
# Copyright 2019-Present Datadog, Inc. | ||
from __future__ import annotations | ||
|
||
from typing import Union | ||
|
||
from datadog_api_client.model_utils import ( | ||
ModelNormal, | ||
cached_property, | ||
unset, | ||
UnsetType, | ||
) | ||
|
||
|
||
class MonitorOptionsSchedulingOptionsCustomScheduleRecurrences(ModelNormal): | ||
@cached_property | ||
def openapi_types(_): | ||
return { | ||
"rrule": (str,), | ||
"start": (str,), | ||
"timezone": (str,), | ||
} | ||
|
||
attribute_map = { | ||
"rrule": "rrule", | ||
"start": "start", | ||
"timezone": "timezone", | ||
} | ||
|
||
def __init__( | ||
self_, | ||
rrule: Union[str, UnsetType] = unset, | ||
start: Union[str, UnsetType] = unset, | ||
timezone: Union[str, UnsetType] = unset, | ||
**kwargs, | ||
): | ||
""" | ||
Configuration recurrences set on the monitor options for custom schedule. | ||
:param rrule: Defines the recurrence rule (RRULE) for a given schedule. | ||
:type rrule: str, optional | ||
:param start: Defines the timestamp on when the schedule should start. | ||
:type start: str, optional | ||
:param timezone: Defines the timezone the schedule runs on. | ||
:type timezone: str, optional | ||
""" | ||
if rrule is not unset: | ||
kwargs["rrule"] = rrule | ||
if start is not unset: | ||
kwargs["start"] = start | ||
if timezone is not unset: | ||
kwargs["timezone"] = timezone | ||
super().__init__(kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters