From 68852b12f3e8c36091c168c442ebd330d4c000ad Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 18 Jul 2025 16:53:19 +0000 Subject: [PATCH] Regenerate client from commit 0f24b8e of spec repo --- .generated-info | 4 +- .generator/schemas/v2/openapi.yaml | 99 +++++++++++++++++++ docs/datadog_api_client.v2.model.rst | 56 +++++++++++ .../v2/model/action_connection_attributes.py | 6 +- .../action_connection_attributes_update.py | 7 +- .../v2/model/action_connection_integration.py | 2 + .../action_connection_integration_update.py | 2 + .../v2/model/datadog_api_key.py | 75 ++++++++++++++ .../v2/model/datadog_api_key_type.py | 35 +++++++ .../v2/model/datadog_api_key_update.py | 78 +++++++++++++++ .../v2/model/datadog_credentials.py | 50 ++++++++++ .../v2/model/datadog_credentials_update.py | 50 ++++++++++ .../v2/model/datadog_integration.py | 49 +++++++++ .../v2/model/datadog_integration_type.py | 35 +++++++ .../v2/model/datadog_integration_update.py | 57 +++++++++++ src/datadog_api_client/v2/models/__init__.py | 16 +++ 16 files changed, 617 insertions(+), 4 deletions(-) create mode 100644 src/datadog_api_client/v2/model/datadog_api_key.py create mode 100644 src/datadog_api_client/v2/model/datadog_api_key_type.py create mode 100644 src/datadog_api_client/v2/model/datadog_api_key_update.py create mode 100644 src/datadog_api_client/v2/model/datadog_credentials.py create mode 100644 src/datadog_api_client/v2/model/datadog_credentials_update.py create mode 100644 src/datadog_api_client/v2/model/datadog_integration.py create mode 100644 src/datadog_api_client/v2/model/datadog_integration_type.py create mode 100644 src/datadog_api_client/v2/model/datadog_integration_update.py diff --git a/.generated-info b/.generated-info index 0a41bcb5ab..9314bdd465 100644 --- a/.generated-info +++ b/.generated-info @@ -1,4 +1,4 @@ { - "spec_repo_commit": "dc49df4", - "generated": "2025-07-18 13:57:41.438" + "spec_repo_commit": "0f24b8e", + "generated": "2025-07-18 16:53:18.934" } diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 8f845b4f20..5a4d2ba122 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -2016,11 +2016,13 @@ components: description: The definition of `ActionConnectionIntegration` object. oneOf: - $ref: '#/components/schemas/AWSIntegration' + - $ref: '#/components/schemas/DatadogIntegration' - $ref: '#/components/schemas/HTTPIntegration' ActionConnectionIntegrationUpdate: description: The definition of `ActionConnectionIntegrationUpdate` object. oneOf: - $ref: '#/components/schemas/AWSIntegrationUpdate' + - $ref: '#/components/schemas/DatadogIntegrationUpdate' - $ref: '#/components/schemas/HTTPIntegrationUpdate' ActionQuery: description: An action query. This query type is used to trigger an action, @@ -12378,6 +12380,103 @@ components: required: - databaseMonitoringTrigger type: object + DatadogAPIKey: + description: The definition of the `DatadogAPIKey` object. + properties: + api_key: + description: The `DatadogAPIKey` `api_key`. + example: '' + type: string + app_key: + description: The `DatadogAPIKey` `app_key`. + example: '' + type: string + datacenter: + description: The `DatadogAPIKey` `datacenter`. + example: '' + type: string + subdomain: + description: Custom subdomain used for Datadog URLs generated with this + Connection. For example, if this org uses `https://acme.datadoghq.com` + to access Datadog, set this field to `acme`. If this field is omitted, + generated URLs will use the default site URL for its datacenter (see [https://docs.datadoghq.com/getting_started/site](https://docs.datadoghq.com/getting_started/site)). + type: string + type: + $ref: '#/components/schemas/DatadogAPIKeyType' + required: + - type + - datacenter + - api_key + - app_key + type: object + DatadogAPIKeyType: + description: The definition of the `DatadogAPIKey` object. + enum: + - DatadogAPIKey + example: DatadogAPIKey + type: string + x-enum-varnames: + - DATADOGAPIKEY + DatadogAPIKeyUpdate: + description: The definition of the `DatadogAPIKey` object. + properties: + api_key: + description: The `DatadogAPIKeyUpdate` `api_key`. + type: string + app_key: + description: The `DatadogAPIKeyUpdate` `app_key`. + type: string + datacenter: + description: The `DatadogAPIKeyUpdate` `datacenter`. + type: string + subdomain: + description: Custom subdomain used for Datadog URLs generated with this + Connection. For example, if this org uses `https://acme.datadoghq.com` + to access Datadog, set this field to `acme`. If this field is omitted, + generated URLs will use the default site URL for its datacenter (see [https://docs.datadoghq.com/getting_started/site](https://docs.datadoghq.com/getting_started/site)). + type: string + type: + $ref: '#/components/schemas/DatadogAPIKeyType' + required: + - type + type: object + DatadogCredentials: + description: The definition of the `DatadogCredentials` object. + oneOf: + - $ref: '#/components/schemas/DatadogAPIKey' + DatadogCredentialsUpdate: + description: The definition of the `DatadogCredentialsUpdate` object. + oneOf: + - $ref: '#/components/schemas/DatadogAPIKeyUpdate' + DatadogIntegration: + description: The definition of the `DatadogIntegration` object. + properties: + credentials: + $ref: '#/components/schemas/DatadogCredentials' + type: + $ref: '#/components/schemas/DatadogIntegrationType' + required: + - type + - credentials + type: object + DatadogIntegrationType: + description: The definition of the `DatadogIntegrationType` object. + enum: + - Datadog + example: Datadog + type: string + x-enum-varnames: + - DATADOG + DatadogIntegrationUpdate: + description: The definition of the `DatadogIntegrationUpdate` object. + properties: + credentials: + $ref: '#/components/schemas/DatadogCredentialsUpdate' + type: + $ref: '#/components/schemas/DatadogIntegrationType' + required: + - type + type: object Dataset: description: Dataset object. properties: diff --git a/docs/datadog_api_client.v2.model.rst b/docs/datadog_api_client.v2.model.rst index 6bc79571c0..a405f1f8e2 100644 --- a/docs/datadog_api_client.v2.model.rst +++ b/docs/datadog_api_client.v2.model.rst @@ -4750,6 +4750,62 @@ datadog\_api\_client.v2.model.database\_monitoring\_trigger\_wrapper module :members: :show-inheritance: +datadog\_api\_client.v2.model.datadog\_api\_key module +------------------------------------------------------ + +.. automodule:: datadog_api_client.v2.model.datadog_api_key + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.datadog\_api\_key\_type module +------------------------------------------------------------ + +.. automodule:: datadog_api_client.v2.model.datadog_api_key_type + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.datadog\_api\_key\_update module +-------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.datadog_api_key_update + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.datadog\_credentials module +--------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.datadog_credentials + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.datadog\_credentials\_update module +----------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.datadog_credentials_update + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.datadog\_integration module +--------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.datadog_integration + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.datadog\_integration\_type module +--------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.datadog_integration_type + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.datadog\_integration\_update module +----------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.datadog_integration_update + :members: + :show-inheritance: + datadog\_api\_client.v2.model.dataset module -------------------------------------------- diff --git a/src/datadog_api_client/v2/model/action_connection_attributes.py b/src/datadog_api_client/v2/model/action_connection_attributes.py index 5d7ec6e05b..84d3d129c5 100644 --- a/src/datadog_api_client/v2/model/action_connection_attributes.py +++ b/src/datadog_api_client/v2/model/action_connection_attributes.py @@ -14,6 +14,7 @@ if TYPE_CHECKING: from datadog_api_client.v2.model.action_connection_integration import ActionConnectionIntegration from datadog_api_client.v2.model.aws_integration import AWSIntegration + from datadog_api_client.v2.model.datadog_integration import DatadogIntegration from datadog_api_client.v2.model.http_integration import HTTPIntegration @@ -33,7 +34,10 @@ def openapi_types(_): } def __init__( - self_, integration: Union[ActionConnectionIntegration, AWSIntegration, HTTPIntegration], name: str, **kwargs + self_, + integration: Union[ActionConnectionIntegration, AWSIntegration, DatadogIntegration, HTTPIntegration], + name: str, + **kwargs, ): """ The definition of ``ActionConnectionAttributes`` object. diff --git a/src/datadog_api_client/v2/model/action_connection_attributes_update.py b/src/datadog_api_client/v2/model/action_connection_attributes_update.py index e30d087e72..be6d8f42a5 100644 --- a/src/datadog_api_client/v2/model/action_connection_attributes_update.py +++ b/src/datadog_api_client/v2/model/action_connection_attributes_update.py @@ -16,6 +16,7 @@ if TYPE_CHECKING: from datadog_api_client.v2.model.action_connection_integration_update import ActionConnectionIntegrationUpdate from datadog_api_client.v2.model.aws_integration_update import AWSIntegrationUpdate + from datadog_api_client.v2.model.datadog_integration_update import DatadogIntegrationUpdate from datadog_api_client.v2.model.http_integration_update import HTTPIntegrationUpdate @@ -37,7 +38,11 @@ def openapi_types(_): def __init__( self_, integration: Union[ - ActionConnectionIntegrationUpdate, AWSIntegrationUpdate, HTTPIntegrationUpdate, UnsetType + ActionConnectionIntegrationUpdate, + AWSIntegrationUpdate, + DatadogIntegrationUpdate, + HTTPIntegrationUpdate, + UnsetType, ] = unset, name: Union[str, UnsetType] = unset, **kwargs, diff --git a/src/datadog_api_client/v2/model/action_connection_integration.py b/src/datadog_api_client/v2/model/action_connection_integration.py index 23301ee351..a507174551 100644 --- a/src/datadog_api_client/v2/model/action_connection_integration.py +++ b/src/datadog_api_client/v2/model/action_connection_integration.py @@ -36,11 +36,13 @@ def _composed_schemas(_): # classes don't exist yet because their module has not finished # loading from datadog_api_client.v2.model.aws_integration import AWSIntegration + from datadog_api_client.v2.model.datadog_integration import DatadogIntegration from datadog_api_client.v2.model.http_integration import HTTPIntegration return { "oneOf": [ AWSIntegration, + DatadogIntegration, HTTPIntegration, ], } diff --git a/src/datadog_api_client/v2/model/action_connection_integration_update.py b/src/datadog_api_client/v2/model/action_connection_integration_update.py index 20760fbd0c..08f9d385f0 100644 --- a/src/datadog_api_client/v2/model/action_connection_integration_update.py +++ b/src/datadog_api_client/v2/model/action_connection_integration_update.py @@ -36,11 +36,13 @@ def _composed_schemas(_): # classes don't exist yet because their module has not finished # loading from datadog_api_client.v2.model.aws_integration_update import AWSIntegrationUpdate + from datadog_api_client.v2.model.datadog_integration_update import DatadogIntegrationUpdate from datadog_api_client.v2.model.http_integration_update import HTTPIntegrationUpdate return { "oneOf": [ AWSIntegrationUpdate, + DatadogIntegrationUpdate, HTTPIntegrationUpdate, ], } diff --git a/src/datadog_api_client/v2/model/datadog_api_key.py b/src/datadog_api_client/v2/model/datadog_api_key.py new file mode 100644 index 0000000000..6600d4edcf --- /dev/null +++ b/src/datadog_api_client/v2/model/datadog_api_key.py @@ -0,0 +1,75 @@ +# 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.v2.model.datadog_api_key_type import DatadogAPIKeyType + + +class DatadogAPIKey(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.datadog_api_key_type import DatadogAPIKeyType + + return { + "api_key": (str,), + "app_key": (str,), + "datacenter": (str,), + "subdomain": (str,), + "type": (DatadogAPIKeyType,), + } + + attribute_map = { + "api_key": "api_key", + "app_key": "app_key", + "datacenter": "datacenter", + "subdomain": "subdomain", + "type": "type", + } + + def __init__( + self_, + api_key: str, + app_key: str, + datacenter: str, + type: DatadogAPIKeyType, + subdomain: Union[str, UnsetType] = unset, + **kwargs, + ): + """ + The definition of the ``DatadogAPIKey`` object. + + :param api_key: The ``DatadogAPIKey`` ``api_key``. + :type api_key: str + + :param app_key: The ``DatadogAPIKey`` ``app_key``. + :type app_key: str + + :param datacenter: The ``DatadogAPIKey`` ``datacenter``. + :type datacenter: str + + :param subdomain: Custom subdomain used for Datadog URLs generated with this Connection. For example, if this org uses ``https://acme.datadoghq.com`` to access Datadog, set this field to ``acme``. If this field is omitted, generated URLs will use the default site URL for its datacenter (see `https://docs.datadoghq.com/getting_started/site `_ ). + :type subdomain: str, optional + + :param type: The definition of the ``DatadogAPIKey`` object. + :type type: DatadogAPIKeyType + """ + if subdomain is not unset: + kwargs["subdomain"] = subdomain + super().__init__(kwargs) + + self_.api_key = api_key + self_.app_key = app_key + self_.datacenter = datacenter + self_.type = type diff --git a/src/datadog_api_client/v2/model/datadog_api_key_type.py b/src/datadog_api_client/v2/model/datadog_api_key_type.py new file mode 100644 index 0000000000..f3edfca90b --- /dev/null +++ b/src/datadog_api_client/v2/model/datadog_api_key_type.py @@ -0,0 +1,35 @@ +# 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 datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class DatadogAPIKeyType(ModelSimple): + """ + The definition of the `DatadogAPIKey` object. + + :param value: If omitted defaults to "DatadogAPIKey". Must be one of ["DatadogAPIKey"]. + :type value: str + """ + + allowed_values = { + "DatadogAPIKey", + } + DATADOGAPIKEY: ClassVar["DatadogAPIKeyType"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +DatadogAPIKeyType.DATADOGAPIKEY = DatadogAPIKeyType("DatadogAPIKey") diff --git a/src/datadog_api_client/v2/model/datadog_api_key_update.py b/src/datadog_api_client/v2/model/datadog_api_key_update.py new file mode 100644 index 0000000000..ce6236c8d9 --- /dev/null +++ b/src/datadog_api_client/v2/model/datadog_api_key_update.py @@ -0,0 +1,78 @@ +# 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.v2.model.datadog_api_key_type import DatadogAPIKeyType + + +class DatadogAPIKeyUpdate(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.datadog_api_key_type import DatadogAPIKeyType + + return { + "api_key": (str,), + "app_key": (str,), + "datacenter": (str,), + "subdomain": (str,), + "type": (DatadogAPIKeyType,), + } + + attribute_map = { + "api_key": "api_key", + "app_key": "app_key", + "datacenter": "datacenter", + "subdomain": "subdomain", + "type": "type", + } + + def __init__( + self_, + type: DatadogAPIKeyType, + api_key: Union[str, UnsetType] = unset, + app_key: Union[str, UnsetType] = unset, + datacenter: Union[str, UnsetType] = unset, + subdomain: Union[str, UnsetType] = unset, + **kwargs, + ): + """ + The definition of the ``DatadogAPIKey`` object. + + :param api_key: The ``DatadogAPIKeyUpdate`` ``api_key``. + :type api_key: str, optional + + :param app_key: The ``DatadogAPIKeyUpdate`` ``app_key``. + :type app_key: str, optional + + :param datacenter: The ``DatadogAPIKeyUpdate`` ``datacenter``. + :type datacenter: str, optional + + :param subdomain: Custom subdomain used for Datadog URLs generated with this Connection. For example, if this org uses ``https://acme.datadoghq.com`` to access Datadog, set this field to ``acme``. If this field is omitted, generated URLs will use the default site URL for its datacenter (see `https://docs.datadoghq.com/getting_started/site `_ ). + :type subdomain: str, optional + + :param type: The definition of the ``DatadogAPIKey`` object. + :type type: DatadogAPIKeyType + """ + if api_key is not unset: + kwargs["api_key"] = api_key + if app_key is not unset: + kwargs["app_key"] = app_key + if datacenter is not unset: + kwargs["datacenter"] = datacenter + if subdomain is not unset: + kwargs["subdomain"] = subdomain + super().__init__(kwargs) + + self_.type = type diff --git a/src/datadog_api_client/v2/model/datadog_credentials.py b/src/datadog_api_client/v2/model/datadog_credentials.py new file mode 100644 index 0000000000..016c37a290 --- /dev/null +++ b/src/datadog_api_client/v2/model/datadog_credentials.py @@ -0,0 +1,50 @@ +# 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 datadog_api_client.model_utils import ( + ModelComposed, + cached_property, +) + + +class DatadogCredentials(ModelComposed): + def __init__(self, **kwargs): + """ + The definition of the ``DatadogCredentials`` object. + + :param api_key: The `DatadogAPIKey` `api_key`. + :type api_key: str + + :param app_key: The `DatadogAPIKey` `app_key`. + :type app_key: str + + :param datacenter: The `DatadogAPIKey` `datacenter`. + :type datacenter: str + + :param subdomain: Custom subdomain used for Datadog URLs generated with this Connection. For example, if this org uses `https://acme.datadoghq.com` to access Datadog, set this field to `acme`. If this field is omitted, generated URLs will use the default site URL for its datacenter (see [https://docs.datadoghq.com/getting_started/site](https://docs.datadoghq.com/getting_started/site)). + :type subdomain: str, optional + + :param type: The definition of the `DatadogAPIKey` object. + :type type: DatadogAPIKeyType + """ + super().__init__(kwargs) + + @cached_property + def _composed_schemas(_): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + from datadog_api_client.v2.model.datadog_api_key import DatadogAPIKey + + return { + "oneOf": [ + DatadogAPIKey, + ], + } diff --git a/src/datadog_api_client/v2/model/datadog_credentials_update.py b/src/datadog_api_client/v2/model/datadog_credentials_update.py new file mode 100644 index 0000000000..6b633eff7f --- /dev/null +++ b/src/datadog_api_client/v2/model/datadog_credentials_update.py @@ -0,0 +1,50 @@ +# 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 datadog_api_client.model_utils import ( + ModelComposed, + cached_property, +) + + +class DatadogCredentialsUpdate(ModelComposed): + def __init__(self, **kwargs): + """ + The definition of the ``DatadogCredentialsUpdate`` object. + + :param api_key: The `DatadogAPIKeyUpdate` `api_key`. + :type api_key: str, optional + + :param app_key: The `DatadogAPIKeyUpdate` `app_key`. + :type app_key: str, optional + + :param datacenter: The `DatadogAPIKeyUpdate` `datacenter`. + :type datacenter: str, optional + + :param subdomain: Custom subdomain used for Datadog URLs generated with this Connection. For example, if this org uses `https://acme.datadoghq.com` to access Datadog, set this field to `acme`. If this field is omitted, generated URLs will use the default site URL for its datacenter (see [https://docs.datadoghq.com/getting_started/site](https://docs.datadoghq.com/getting_started/site)). + :type subdomain: str, optional + + :param type: The definition of the `DatadogAPIKey` object. + :type type: DatadogAPIKeyType + """ + super().__init__(kwargs) + + @cached_property + def _composed_schemas(_): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + from datadog_api_client.v2.model.datadog_api_key_update import DatadogAPIKeyUpdate + + return { + "oneOf": [ + DatadogAPIKeyUpdate, + ], + } diff --git a/src/datadog_api_client/v2/model/datadog_integration.py b/src/datadog_api_client/v2/model/datadog_integration.py new file mode 100644 index 0000000000..5dd3180ac2 --- /dev/null +++ b/src/datadog_api_client/v2/model/datadog_integration.py @@ -0,0 +1,49 @@ +# 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, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.datadog_credentials import DatadogCredentials + from datadog_api_client.v2.model.datadog_integration_type import DatadogIntegrationType + from datadog_api_client.v2.model.datadog_api_key import DatadogAPIKey + + +class DatadogIntegration(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.datadog_credentials import DatadogCredentials + from datadog_api_client.v2.model.datadog_integration_type import DatadogIntegrationType + + return { + "credentials": (DatadogCredentials,), + "type": (DatadogIntegrationType,), + } + + attribute_map = { + "credentials": "credentials", + "type": "type", + } + + def __init__(self_, credentials: Union[DatadogCredentials, DatadogAPIKey], type: DatadogIntegrationType, **kwargs): + """ + The definition of the ``DatadogIntegration`` object. + + :param credentials: The definition of the ``DatadogCredentials`` object. + :type credentials: DatadogCredentials + + :param type: The definition of the ``DatadogIntegrationType`` object. + :type type: DatadogIntegrationType + """ + super().__init__(kwargs) + + self_.credentials = credentials + self_.type = type diff --git a/src/datadog_api_client/v2/model/datadog_integration_type.py b/src/datadog_api_client/v2/model/datadog_integration_type.py new file mode 100644 index 0000000000..86d78499a3 --- /dev/null +++ b/src/datadog_api_client/v2/model/datadog_integration_type.py @@ -0,0 +1,35 @@ +# 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 datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class DatadogIntegrationType(ModelSimple): + """ + The definition of the `DatadogIntegrationType` object. + + :param value: If omitted defaults to "Datadog". Must be one of ["Datadog"]. + :type value: str + """ + + allowed_values = { + "Datadog", + } + DATADOG: ClassVar["DatadogIntegrationType"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +DatadogIntegrationType.DATADOG = DatadogIntegrationType("Datadog") diff --git a/src/datadog_api_client/v2/model/datadog_integration_update.py b/src/datadog_api_client/v2/model/datadog_integration_update.py new file mode 100644 index 0000000000..ad6f5056bf --- /dev/null +++ b/src/datadog_api_client/v2/model/datadog_integration_update.py @@ -0,0 +1,57 @@ +# 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.v2.model.datadog_credentials_update import DatadogCredentialsUpdate + from datadog_api_client.v2.model.datadog_integration_type import DatadogIntegrationType + from datadog_api_client.v2.model.datadog_api_key_update import DatadogAPIKeyUpdate + + +class DatadogIntegrationUpdate(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.datadog_credentials_update import DatadogCredentialsUpdate + from datadog_api_client.v2.model.datadog_integration_type import DatadogIntegrationType + + return { + "credentials": (DatadogCredentialsUpdate,), + "type": (DatadogIntegrationType,), + } + + attribute_map = { + "credentials": "credentials", + "type": "type", + } + + def __init__( + self_, + type: DatadogIntegrationType, + credentials: Union[DatadogCredentialsUpdate, DatadogAPIKeyUpdate, UnsetType] = unset, + **kwargs, + ): + """ + The definition of the ``DatadogIntegrationUpdate`` object. + + :param credentials: The definition of the ``DatadogCredentialsUpdate`` object. + :type credentials: DatadogCredentialsUpdate, optional + + :param type: The definition of the ``DatadogIntegrationType`` object. + :type type: DatadogIntegrationType + """ + if credentials is not unset: + kwargs["credentials"] = credentials + super().__init__(kwargs) + + self_.type = type diff --git a/src/datadog_api_client/v2/models/__init__.py b/src/datadog_api_client/v2/models/__init__.py index b83232b42f..101101d186 100644 --- a/src/datadog_api_client/v2/models/__init__.py +++ b/src/datadog_api_client/v2/models/__init__.py @@ -966,6 +966,14 @@ from datadog_api_client.v2.model.data_transform_properties import DataTransformProperties from datadog_api_client.v2.model.data_transform_type import DataTransformType from datadog_api_client.v2.model.database_monitoring_trigger_wrapper import DatabaseMonitoringTriggerWrapper +from datadog_api_client.v2.model.datadog_api_key import DatadogAPIKey +from datadog_api_client.v2.model.datadog_api_key_type import DatadogAPIKeyType +from datadog_api_client.v2.model.datadog_api_key_update import DatadogAPIKeyUpdate +from datadog_api_client.v2.model.datadog_credentials import DatadogCredentials +from datadog_api_client.v2.model.datadog_credentials_update import DatadogCredentialsUpdate +from datadog_api_client.v2.model.datadog_integration import DatadogIntegration +from datadog_api_client.v2.model.datadog_integration_type import DatadogIntegrationType +from datadog_api_client.v2.model.datadog_integration_update import DatadogIntegrationUpdate from datadog_api_client.v2.model.dataset import Dataset from datadog_api_client.v2.model.dataset_attributes import DatasetAttributes from datadog_api_client.v2.model.dataset_create_request import DatasetCreateRequest @@ -4316,6 +4324,14 @@ "DataTransformProperties", "DataTransformType", "DatabaseMonitoringTriggerWrapper", + "DatadogAPIKey", + "DatadogAPIKeyType", + "DatadogAPIKeyUpdate", + "DatadogCredentials", + "DatadogCredentialsUpdate", + "DatadogIntegration", + "DatadogIntegrationType", + "DatadogIntegrationUpdate", "Dataset", "DatasetAttributes", "DatasetCreateRequest",