Skip to content

Commit 097ea95

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Mark downtime v2 start response as required (#1601)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent a16f3b7 commit 097ea95

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.5",
7-
"regenerated": "2023-07-24 17:29:02.187302",
8-
"spec_repo_commit": "e6622470"
7+
"regenerated": "2023-07-25 19:30:12.351518",
8+
"spec_repo_commit": "40749a6c"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-07-24 17:29:02.199608",
13-
"spec_repo_commit": "e6622470"
12+
"regenerated": "2023-07-25 19:30:12.365309",
13+
"spec_repo_commit": "40749a6c"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4116,6 +4116,8 @@ components:
41164116
example: 2020-01-02 03:04:00+00:00
41174117
format: date-time
41184118
type: string
4119+
required:
4120+
- start
41194121
type: object
41204122
DowntimeScheduleRecurrenceCreateUpdateRequest:
41214123
additionalProperties: {}

src/datadog_api_client/v2/model/downtime_schedule_one_time_response.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,18 @@ def openapi_types(_):
2828
"start": "start",
2929
}
3030

31-
def __init__(
32-
self_, end: Union[datetime, none_type, UnsetType] = unset, start: Union[datetime, UnsetType] = unset, **kwargs
33-
):
31+
def __init__(self_, start: datetime, end: Union[datetime, none_type, UnsetType] = unset, **kwargs):
3432
"""
3533
A one-time downtime definition.
3634
3735
:param end: ISO-8601 Datetime to end the downtime.
3836
:type end: datetime, none_type, optional
3937
4038
:param start: ISO-8601 Datetime to start the downtime.
41-
:type start: datetime, optional
39+
:type start: datetime
4240
"""
4341
if end is not unset:
4442
kwargs["end"] = end
45-
if start is not unset:
46-
kwargs["start"] = start
4743
super().__init__(kwargs)
44+
45+
self_.start = start

src/datadog_api_client/v2/model/downtime_schedule_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self, **kwargs):
3333
:type end: datetime, none_type, optional
3434
3535
:param start: ISO-8601 Datetime to start the downtime.
36-
:type start: datetime, optional
36+
:type start: datetime
3737
"""
3838
super().__init__(kwargs)
3939

0 commit comments

Comments
 (0)