From bec1e15313601668345cf89fadde5d778b24a174 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 28 Jan 2026 16:07:51 +0000 Subject: [PATCH] Regenerate client from commit a3c2cdc of spec repo --- .generator/schemas/v2/openapi.yaml | 32 +++++++++++++------ .../v2/model/create_component_request_data.py | 7 ++-- .../model/create_degradation_request_data.py | 14 +++----- .../model/create_status_page_request_data.py | 16 +++------- .../v2/model/patch_component_request_data.py | 20 ++++-------- .../model/patch_degradation_request_data.py | 18 ++++------- .../model/patch_status_page_request_data.py | 22 ++++--------- 7 files changed, 52 insertions(+), 77 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 5423824d0a..147e01bf6b 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -13283,6 +13283,7 @@ components: type: $ref: '#/components/schemas/StatusPagesComponentGroupType' required: + - attributes - type type: object CreateComponentRequestDataAttributes: @@ -13367,7 +13368,7 @@ components: properties: id: description: The ID of the group. - example: '' + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string type: @@ -13569,6 +13570,7 @@ components: type: $ref: '#/components/schemas/PatchDegradationRequestDataType' required: + - attributes - type type: object CreateDegradationRequestDataAttributes: @@ -13604,7 +13606,7 @@ components: properties: id: description: The ID of the component. Must be a component of type `component`. - example: '' + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string name: @@ -14327,6 +14329,7 @@ components: type: $ref: '#/components/schemas/StatusPageDataType' required: + - attributes - type type: object CreateStatusPageRequestDataAttributes: @@ -18391,7 +18394,7 @@ components: properties: id: description: The ID of the component. - example: '' + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string name: @@ -18436,7 +18439,7 @@ components: properties: id: description: Identifier of the component affected at the time of the update. - example: '' + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string name: @@ -18512,7 +18515,7 @@ components: properties: id: description: The ID of the status page. - example: '' + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string type: @@ -43661,11 +43664,14 @@ components: $ref: '#/components/schemas/PatchComponentRequestDataAttributes' id: description: The ID of the component. + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string type: $ref: '#/components/schemas/StatusPagesComponentGroupType' required: + - attributes + - id - type type: object PatchComponentRequestDataAttributes: @@ -43704,11 +43710,14 @@ components: $ref: '#/components/schemas/PatchDegradationRequestDataAttributes' id: description: The ID of the degradation. + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string type: $ref: '#/components/schemas/PatchDegradationRequestDataType' required: + - attributes + - id - type type: object PatchDegradationRequestDataAttributes: @@ -43739,7 +43748,7 @@ components: properties: id: description: The ID of the component. Must be a component of type `component`. - example: '' + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string name: @@ -43844,11 +43853,14 @@ components: $ref: '#/components/schemas/PatchStatusPageRequestDataAttributes' id: description: The ID of the status page. + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string type: $ref: '#/components/schemas/StatusPageDataType' required: + - attributes + - id - type type: object PatchStatusPageRequestDataAttributes: @@ -58776,7 +58788,7 @@ components: properties: id: description: The ID of the group the component belongs to. - example: '' + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string type: @@ -58815,7 +58827,7 @@ components: properties: id: description: The ID of the status page the component belongs to. - example: '' + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string type: @@ -58957,7 +58969,7 @@ components: nullable: true properties: id: - example: '' + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string type: @@ -58999,7 +59011,7 @@ components: properties: id: description: The ID of the status page. - example: '' + example: 1234abcd-12ab-34cd-56ef-123456abcdef format: uuid type: string type: diff --git a/src/datadog_api_client/v2/model/create_component_request_data.py b/src/datadog_api_client/v2/model/create_component_request_data.py index a4ace364ed..50fd8b1487 100644 --- a/src/datadog_api_client/v2/model/create_component_request_data.py +++ b/src/datadog_api_client/v2/model/create_component_request_data.py @@ -48,8 +48,8 @@ def openapi_types(_): def __init__( self_, + attributes: CreateComponentRequestDataAttributes, type: StatusPagesComponentGroupType, - attributes: Union[CreateComponentRequestDataAttributes, UnsetType] = unset, relationships: Union[CreateComponentRequestDataRelationships, UnsetType] = unset, **kwargs, ): @@ -57,7 +57,7 @@ def __init__( :param attributes: The supported attributes for creating a component. - :type attributes: CreateComponentRequestDataAttributes, optional + :type attributes: CreateComponentRequestDataAttributes :param relationships: The supported relationships for creating a component. :type relationships: CreateComponentRequestDataRelationships, optional @@ -65,10 +65,9 @@ def __init__( :param type: Components resource type. :type type: StatusPagesComponentGroupType """ - if attributes is not unset: - kwargs["attributes"] = attributes if relationships is not unset: kwargs["relationships"] = relationships super().__init__(kwargs) + self_.attributes = attributes self_.type = type diff --git a/src/datadog_api_client/v2/model/create_degradation_request_data.py b/src/datadog_api_client/v2/model/create_degradation_request_data.py index a930122ead..cb1a703506 100644 --- a/src/datadog_api_client/v2/model/create_degradation_request_data.py +++ b/src/datadog_api_client/v2/model/create_degradation_request_data.py @@ -3,13 +3,11 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import Union, TYPE_CHECKING +from typing import TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, cached_property, - unset, - UnsetType, ) @@ -39,22 +37,18 @@ def openapi_types(_): } def __init__( - self_, - type: PatchDegradationRequestDataType, - attributes: Union[CreateDegradationRequestDataAttributes, UnsetType] = unset, - **kwargs, + self_, attributes: CreateDegradationRequestDataAttributes, type: PatchDegradationRequestDataType, **kwargs ): """ :param attributes: The supported attributes for creating a degradation. - :type attributes: CreateDegradationRequestDataAttributes, optional + :type attributes: CreateDegradationRequestDataAttributes :param type: Degradations resource type. :type type: PatchDegradationRequestDataType """ - if attributes is not unset: - kwargs["attributes"] = attributes super().__init__(kwargs) + self_.attributes = attributes self_.type = type diff --git a/src/datadog_api_client/v2/model/create_status_page_request_data.py b/src/datadog_api_client/v2/model/create_status_page_request_data.py index 6fe4fb7719..96461cb03e 100644 --- a/src/datadog_api_client/v2/model/create_status_page_request_data.py +++ b/src/datadog_api_client/v2/model/create_status_page_request_data.py @@ -3,13 +3,11 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import Union, TYPE_CHECKING +from typing import TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, cached_property, - unset, - UnsetType, ) @@ -38,23 +36,17 @@ def openapi_types(_): "type": "type", } - def __init__( - self_, - type: StatusPageDataType, - attributes: Union[CreateStatusPageRequestDataAttributes, UnsetType] = unset, - **kwargs, - ): + def __init__(self_, attributes: CreateStatusPageRequestDataAttributes, type: StatusPageDataType, **kwargs): """ :param attributes: The supported attributes for creating a status page. - :type attributes: CreateStatusPageRequestDataAttributes, optional + :type attributes: CreateStatusPageRequestDataAttributes :param type: Status pages resource type. :type type: StatusPageDataType """ - if attributes is not unset: - kwargs["attributes"] = attributes super().__init__(kwargs) + self_.attributes = attributes self_.type = type diff --git a/src/datadog_api_client/v2/model/patch_component_request_data.py b/src/datadog_api_client/v2/model/patch_component_request_data.py index 4cba6162b9..1096a5ac9c 100644 --- a/src/datadog_api_client/v2/model/patch_component_request_data.py +++ b/src/datadog_api_client/v2/model/patch_component_request_data.py @@ -3,13 +3,11 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import Union, TYPE_CHECKING +from typing import TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, cached_property, - unset, - UnsetType, UUID, ) @@ -40,28 +38,22 @@ def openapi_types(_): } def __init__( - self_, - type: StatusPagesComponentGroupType, - attributes: Union[PatchComponentRequestDataAttributes, UnsetType] = unset, - id: Union[UUID, UnsetType] = unset, - **kwargs, + self_, attributes: PatchComponentRequestDataAttributes, id: UUID, type: StatusPagesComponentGroupType, **kwargs ): """ :param attributes: The supported attributes for updating a component. - :type attributes: PatchComponentRequestDataAttributes, optional + :type attributes: PatchComponentRequestDataAttributes :param id: The ID of the component. - :type id: UUID, optional + :type id: UUID :param type: Components resource type. :type type: StatusPagesComponentGroupType """ - if attributes is not unset: - kwargs["attributes"] = attributes - if id is not unset: - kwargs["id"] = id super().__init__(kwargs) + self_.attributes = attributes + self_.id = id self_.type = type diff --git a/src/datadog_api_client/v2/model/patch_degradation_request_data.py b/src/datadog_api_client/v2/model/patch_degradation_request_data.py index 5c005e6933..d5f1cad450 100644 --- a/src/datadog_api_client/v2/model/patch_degradation_request_data.py +++ b/src/datadog_api_client/v2/model/patch_degradation_request_data.py @@ -3,13 +3,11 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import Union, TYPE_CHECKING +from typing import TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, cached_property, - unset, - UnsetType, UUID, ) @@ -43,27 +41,25 @@ def openapi_types(_): def __init__( self_, + attributes: PatchDegradationRequestDataAttributes, + id: UUID, type: PatchDegradationRequestDataType, - attributes: Union[PatchDegradationRequestDataAttributes, UnsetType] = unset, - id: Union[UUID, UnsetType] = unset, **kwargs, ): """ :param attributes: The supported attributes for updating a degradation. - :type attributes: PatchDegradationRequestDataAttributes, optional + :type attributes: PatchDegradationRequestDataAttributes :param id: The ID of the degradation. - :type id: UUID, optional + :type id: UUID :param type: Degradations resource type. :type type: PatchDegradationRequestDataType """ - if attributes is not unset: - kwargs["attributes"] = attributes - if id is not unset: - kwargs["id"] = id super().__init__(kwargs) + self_.attributes = attributes + self_.id = id self_.type = type diff --git a/src/datadog_api_client/v2/model/patch_status_page_request_data.py b/src/datadog_api_client/v2/model/patch_status_page_request_data.py index 846dfaaa9f..e023426196 100644 --- a/src/datadog_api_client/v2/model/patch_status_page_request_data.py +++ b/src/datadog_api_client/v2/model/patch_status_page_request_data.py @@ -3,13 +3,11 @@ # Copyright 2019-Present Datadog, Inc. from __future__ import annotations -from typing import Union, TYPE_CHECKING +from typing import TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, cached_property, - unset, - UnsetType, UUID, ) @@ -41,29 +39,21 @@ def openapi_types(_): "type": "type", } - def __init__( - self_, - type: StatusPageDataType, - attributes: Union[PatchStatusPageRequestDataAttributes, UnsetType] = unset, - id: Union[UUID, UnsetType] = unset, - **kwargs, - ): + def __init__(self_, attributes: PatchStatusPageRequestDataAttributes, id: UUID, type: StatusPageDataType, **kwargs): """ :param attributes: The supported attributes for updating a status page. - :type attributes: PatchStatusPageRequestDataAttributes, optional + :type attributes: PatchStatusPageRequestDataAttributes :param id: The ID of the status page. - :type id: UUID, optional + :type id: UUID :param type: Status pages resource type. :type type: StatusPageDataType """ - if attributes is not unset: - kwargs["attributes"] = attributes - if id is not unset: - kwargs["id"] = id super().__init__(kwargs) + self_.attributes = attributes + self_.id = id self_.type = type