From 15995519a908cd10489385ef0efc3d6e654acac7 Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Thu, 7 Mar 2024 16:20:23 +0000 Subject: [PATCH] Disable additionalProperties for Downtime Schedule UpdateRequest oneOfs (#1873) Co-authored-by: ci.datadog-api-spec Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> --- .apigentools-info | 8 ++++---- .generator/schemas/v2/openapi.yaml | 3 ++- ...e_schedule_one_time_create_update_request.py | 17 ----------------- 3 files changed, 6 insertions(+), 22 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 85ae025479..435d1e6cf8 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -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" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 9d84bc7546..4593428f90 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -6114,7 +6114,7 @@ components: type: string type: object DowntimeScheduleOneTimeCreateUpdateRequest: - additionalProperties: {} + additionalProperties: false description: A one-time downtime definition. properties: end: @@ -6249,6 +6249,7 @@ components: - recurrences type: object DowntimeScheduleRecurrencesUpdateRequest: + additionalProperties: false description: A recurring downtime schedule definition. properties: recurrences: diff --git a/src/datadog_api_client/v2/model/downtime_schedule_one_time_create_update_request.py b/src/datadog_api_client/v2/model/downtime_schedule_one_time_create_update_request.py index bdcfb5d074..50ac9020e1 100644 --- a/src/datadog_api_client/v2/model/downtime_schedule_one_time_create_update_request.py +++ b/src/datadog_api_client/v2/model/downtime_schedule_one_time_create_update_request.py @@ -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 {