Skip to content

Commit

Permalink
Disable additionalProperties for Downtime Schedule UpdateRequest oneO…
Browse files Browse the repository at this point in the history
…fs (#1873)

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>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Mar 7, 2024
1 parent 853d819 commit 1599551
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 22 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-03-06 21:27:59.909956",
"spec_repo_commit": "d76a4666"
"regenerated": "2024-03-07 14:48:21.110074",
"spec_repo_commit": "dbf17f07"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-03-06 21:27:59.934443",
"spec_repo_commit": "d76a4666"
"regenerated": "2024-03-07 14:48:21.127279",
"spec_repo_commit": "dbf17f07"
}
}
}
3 changes: 2 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6114,7 +6114,7 @@ components:
type: string
type: object
DowntimeScheduleOneTimeCreateUpdateRequest:
additionalProperties: {}
additionalProperties: false
description: A one-time downtime definition.
properties:
end:
Expand Down Expand Up @@ -6249,6 +6249,7 @@ components:
- recurrences
type: object
DowntimeScheduleRecurrencesUpdateRequest:
additionalProperties: false
description: A recurring downtime schedule definition.
properties:
recurrences:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,14 @@
from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
date,
datetime,
none_type,
unset,
UnsetType,
UUID,
)


class DowntimeScheduleOneTimeCreateUpdateRequest(ModelNormal):
@cached_property
def additional_properties_type(_):
return (
bool,
date,
datetime,
dict,
float,
int,
list,
str,
UUID,
none_type,
)

@cached_property
def openapi_types(_):
return {
Expand Down

0 comments on commit 1599551

Please sign in to comment.