diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 90e1196820..6eeb7ac78a 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -78894,6 +78894,49 @@ components: type: string x-enum-varnames: - PUBLISHREQUEST + PupBumpTestData: + description: Pup bump test resource data. + properties: + attributes: + $ref: "#/components/schemas/PupBumpTestDataAttributes" + id: + description: Pup bump test identifier. + example: "pup-bump-test-1" + type: string + type: + $ref: "#/components/schemas/PupBumpTestType" + required: + - id + - type + - attributes + type: object + PupBumpTestDataAttributes: + description: Attributes of the pup bump test resource. + properties: + message: + description: A test message. + example: "hello from pup bump test" + type: string + required: + - message + type: object + PupBumpTestResponse: + description: Response for the pup bump test endpoint. + properties: + data: + $ref: "#/components/schemas/PupBumpTestData" + required: + - data + type: object + PupBumpTestType: + default: pup_bump_test + description: Pup bump test resource type. + enum: + - pup_bump_test + example: "pup_bump_test" + type: string + x-enum-varnames: + - PUP_BUMP_TEST PutAppsDatastoreItemResponseArray: description: Response after successfully inserting multiple items into a datastore, containing the identifiers of the created items. properties: @@ -169631,6 +169674,41 @@ paths: x-unstable: |- **Note**: This endpoint is in preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). + /api/v2/pup_bump_test: + get: + description: |- + Temporary test-only endpoint used to exercise the pup dependency-bump + generation and merge pipeline. Not a real product feature. + operationId: GetPupBumpTest + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + attributes: + message: "hello from pup bump test" + id: "pup-bump-test-1" + type: pup_bump_test + schema: + $ref: "#/components/schemas/PupBumpTestResponse" + description: OK + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Not Found + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: Get pup bump test resource + tags: + - Pup Bump Test + x-unstable: |- + **Note**: This endpoint is in preview and is subject to change. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/query/scalar: post: description: |- @@ -203918,6 +203996,10 @@ tags: **Note**: Sending server-side events impacts billing. Review the [pricing page](https://www.datadoghq.com/pricing/?product=product-analytics#products) and contact your Customer Success Manager for more information. name: Product Analytics + - description: |- + Temporary test-only tag used to exercise the pup dependency-bump + generation and merge pipeline. Not a real product feature. + name: Pup Bump Test - description: |- Manage your Real User Monitoring (RUM) applications, and search or aggregate your RUM events over HTTP. See the [RUM & Session Replay page](https://docs.datadoghq.com/real_user_monitoring/) for more information name: RUM diff --git a/docs/datadog_api_client.v2.api.rst b/docs/datadog_api_client.v2.api.rst index 6a00bda396..1debe4652a 100644 --- a/docs/datadog_api_client.v2.api.rst +++ b/docs/datadog_api_client.v2.api.rst @@ -655,6 +655,13 @@ datadog\_api\_client.v2.api.product\_analytics\_api module :members: :show-inheritance: +datadog\_api\_client.v2.api.pup\_bump\_test\_api module +------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.api.pup_bump_test_api + :members: + :show-inheritance: + datadog\_api\_client.v2.api.reference\_tables\_api module --------------------------------------------------------- diff --git a/docs/datadog_api_client.v2.model.rst b/docs/datadog_api_client.v2.model.rst index f8ad6785c8..2d99b4b30b 100644 --- a/docs/datadog_api_client.v2.model.rst +++ b/docs/datadog_api_client.v2.model.rst @@ -33198,6 +33198,34 @@ datadog\_api\_client.v2.model.publish\_request\_type module :members: :show-inheritance: +datadog\_api\_client.v2.model.pup\_bump\_test\_data module +---------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.pup_bump_test_data + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.pup\_bump\_test\_data\_attributes module +---------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.pup_bump_test_data_attributes + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.pup\_bump\_test\_response module +-------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.pup_bump_test_response + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.pup\_bump\_test\_type module +---------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.pup_bump_test_type + :members: + :show-inheritance: + datadog\_api\_client.v2.model.put\_apps\_datastore\_item\_response\_array module -------------------------------------------------------------------------------- diff --git a/examples/v2/pup-bump-test/GetPupBumpTest.py b/examples/v2/pup-bump-test/GetPupBumpTest.py new file mode 100644 index 0000000000..4f54462df9 --- /dev/null +++ b/examples/v2/pup-bump-test/GetPupBumpTest.py @@ -0,0 +1,14 @@ +""" +Get pup bump test resource returns "OK" response +""" + +from datadog_api_client import ApiClient, Configuration +from datadog_api_client.v2.api.pup_bump_test_api import PupBumpTestApi + +configuration = Configuration() +configuration.unstable_operations["get_pup_bump_test"] = True +with ApiClient(configuration) as api_client: + api_instance = PupBumpTestApi(api_client) + response = api_instance.get_pup_bump_test() + + print(response) diff --git a/src/datadog_api_client/configuration.py b/src/datadog_api_client/configuration.py index 87a66d2fbd..cf874691a0 100644 --- a/src/datadog_api_client/configuration.py +++ b/src/datadog_api_client/configuration.py @@ -684,6 +684,7 @@ def __init__( "v2.update_connection": False, "v2.get_pruned_trace_by_id": False, "v2.get_trace_by_id": False, + "v2.get_pup_bump_test": False, "v2.get_asm_service_by_name": False, "v2.get_rum_sdk_config": False, "v2.update_rum_sdk_config": False, diff --git a/src/datadog_api_client/v2/api/pup_bump_test_api.py b/src/datadog_api_client/v2/api/pup_bump_test_api.py new file mode 100644 index 0000000000..eda65b598d --- /dev/null +++ b/src/datadog_api_client/v2/api/pup_bump_test_api.py @@ -0,0 +1,51 @@ +# 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 Any, Dict + +from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint +from datadog_api_client.configuration import Configuration +from datadog_api_client.v2.model.pup_bump_test_response import PupBumpTestResponse + + +class PupBumpTestApi: + """ + Temporary test-only tag used to exercise the pup dependency-bump + generation and merge pipeline. Not a real product feature. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient(Configuration()) + self.api_client = api_client + + self._get_pup_bump_test_endpoint = _Endpoint( + settings={ + "response_type": (PupBumpTestResponse,), + "auth": ["apiKeyAuth", "appKeyAuth"], + "endpoint_path": "/api/v2/pup_bump_test", + "operation_id": "get_pup_bump_test", + "http_method": "GET", + "version": "v2", + }, + params_map={}, + headers_map={ + "accept": ["application/json"], + }, + api_client=api_client, + ) + + def get_pup_bump_test( + self, + ) -> PupBumpTestResponse: + """Get pup bump test resource. + + Temporary test-only endpoint used to exercise the pup dependency-bump + generation and merge pipeline. Not a real product feature. + + :rtype: PupBumpTestResponse + """ + kwargs: Dict[str, Any] = {} + return self._get_pup_bump_test_endpoint.call_with_http_info(**kwargs) diff --git a/src/datadog_api_client/v2/apis/__init__.py b/src/datadog_api_client/v2/apis/__init__.py index 52e811b35a..b3ad136dae 100644 --- a/src/datadog_api_client/v2/apis/__init__.py +++ b/src/datadog_api_client/v2/apis/__init__.py @@ -91,6 +91,7 @@ from datadog_api_client.v2.api.powerpack_api import PowerpackApi from datadog_api_client.v2.api.processes_api import ProcessesApi from datadog_api_client.v2.api.product_analytics_api import ProductAnalyticsApi +from datadog_api_client.v2.api.pup_bump_test_api import PupBumpTestApi from datadog_api_client.v2.api.rum_api import RUMApi from datadog_api_client.v2.api.rum_insights_api import RUMInsightsApi from datadog_api_client.v2.api.rum_remote_config_api import RUMRemoteConfigApi @@ -233,6 +234,7 @@ "PowerpackApi", "ProcessesApi", "ProductAnalyticsApi", + "PupBumpTestApi", "RUMApi", "RUMInsightsApi", "RUMRemoteConfigApi", diff --git a/src/datadog_api_client/v2/model/pup_bump_test_data.py b/src/datadog_api_client/v2/model/pup_bump_test_data.py new file mode 100644 index 0000000000..0445147481 --- /dev/null +++ b/src/datadog_api_client/v2/model/pup_bump_test_data.py @@ -0,0 +1,54 @@ +# 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 TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.pup_bump_test_data_attributes import PupBumpTestDataAttributes + from datadog_api_client.v2.model.pup_bump_test_type import PupBumpTestType + + +class PupBumpTestData(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.pup_bump_test_data_attributes import PupBumpTestDataAttributes + from datadog_api_client.v2.model.pup_bump_test_type import PupBumpTestType + + return { + "attributes": (PupBumpTestDataAttributes,), + "id": (str,), + "type": (PupBumpTestType,), + } + + attribute_map = { + "attributes": "attributes", + "id": "id", + "type": "type", + } + + def __init__(self_, attributes: PupBumpTestDataAttributes, id: str, type: PupBumpTestType, **kwargs): + """ + Pup bump test resource data. + + :param attributes: Attributes of the pup bump test resource. + :type attributes: PupBumpTestDataAttributes + + :param id: Pup bump test identifier. + :type id: str + + :param type: Pup bump test resource type. + :type type: PupBumpTestType + """ + super().__init__(kwargs) + + self_.attributes = attributes + self_.id = id + self_.type = type diff --git a/src/datadog_api_client/v2/model/pup_bump_test_data_attributes.py b/src/datadog_api_client/v2/model/pup_bump_test_data_attributes.py new file mode 100644 index 0000000000..b148c1b241 --- /dev/null +++ b/src/datadog_api_client/v2/model/pup_bump_test_data_attributes.py @@ -0,0 +1,33 @@ +# 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 ( + ModelNormal, + cached_property, +) + + +class PupBumpTestDataAttributes(ModelNormal): + @cached_property + def openapi_types(_): + return { + "message": (str,), + } + + attribute_map = { + "message": "message", + } + + def __init__(self_, message: str, **kwargs): + """ + Attributes of the pup bump test resource. + + :param message: A test message. + :type message: str + """ + super().__init__(kwargs) + + self_.message = message diff --git a/src/datadog_api_client/v2/model/pup_bump_test_response.py b/src/datadog_api_client/v2/model/pup_bump_test_response.py new file mode 100644 index 0000000000..346779dfd2 --- /dev/null +++ b/src/datadog_api_client/v2/model/pup_bump_test_response.py @@ -0,0 +1,40 @@ +# 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 TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.pup_bump_test_data import PupBumpTestData + + +class PupBumpTestResponse(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.pup_bump_test_data import PupBumpTestData + + return { + "data": (PupBumpTestData,), + } + + attribute_map = { + "data": "data", + } + + def __init__(self_, data: PupBumpTestData, **kwargs): + """ + Response for the pup bump test endpoint. + + :param data: Pup bump test resource data. + :type data: PupBumpTestData + """ + super().__init__(kwargs) + + self_.data = data diff --git a/src/datadog_api_client/v2/model/pup_bump_test_type.py b/src/datadog_api_client/v2/model/pup_bump_test_type.py new file mode 100644 index 0000000000..501298306b --- /dev/null +++ b/src/datadog_api_client/v2/model/pup_bump_test_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 PupBumpTestType(ModelSimple): + """ + Pup bump test resource type. + + :param value: If omitted defaults to "pup_bump_test". Must be one of ["pup_bump_test"]. + :type value: str + """ + + allowed_values = { + "pup_bump_test", + } + PUP_BUMP_TEST: ClassVar["PupBumpTestType"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +PupBumpTestType.PUP_BUMP_TEST = PupBumpTestType("pup_bump_test") diff --git a/src/datadog_api_client/v2/models/__init__.py b/src/datadog_api_client/v2/models/__init__.py index eef2bea108..1d6e501576 100644 --- a/src/datadog_api_client/v2/models/__init__.py +++ b/src/datadog_api_client/v2/models/__init__.py @@ -6642,6 +6642,10 @@ from datadog_api_client.v2.model.publish_form_data_attributes import PublishFormDataAttributes from datadog_api_client.v2.model.publish_form_request import PublishFormRequest from datadog_api_client.v2.model.publish_request_type import PublishRequestType +from datadog_api_client.v2.model.pup_bump_test_data import PupBumpTestData +from datadog_api_client.v2.model.pup_bump_test_data_attributes import PupBumpTestDataAttributes +from datadog_api_client.v2.model.pup_bump_test_response import PupBumpTestResponse +from datadog_api_client.v2.model.pup_bump_test_type import PupBumpTestType from datadog_api_client.v2.model.put_apps_datastore_item_response_array import PutAppsDatastoreItemResponseArray from datadog_api_client.v2.model.put_apps_datastore_item_response_data import PutAppsDatastoreItemResponseData from datadog_api_client.v2.model.put_incident_notification_rule_request import PutIncidentNotificationRuleRequest @@ -14681,6 +14685,10 @@ "PublishFormDataAttributes", "PublishFormRequest", "PublishRequestType", + "PupBumpTestData", + "PupBumpTestDataAttributes", + "PupBumpTestResponse", + "PupBumpTestType", "PutAppsDatastoreItemResponseArray", "PutAppsDatastoreItemResponseData", "PutIncidentNotificationRuleRequest", diff --git a/tests/v2/features/pup_bump_test.feature b/tests/v2/features/pup_bump_test.feature new file mode 100644 index 0000000000..43a2dd7634 --- /dev/null +++ b/tests/v2/features/pup_bump_test.feature @@ -0,0 +1,21 @@ +@endpoint(pup-bump-test) @endpoint(pup-bump-test-v2) +Feature: Pup Bump Test + Temporary test-only tag used to exercise the pup dependency-bump + generation and merge pipeline. Not a real product feature. + + Background: + Given a valid "apiKeyAuth" key in the system + And a valid "appKeyAuth" key in the system + And an instance of "PupBumpTest" API + And operation "GetPupBumpTest" enabled + And new "GetPupBumpTest" request + + @generated @skip @team:DataDog/monitor-app + Scenario: Get pup bump test resource returns "Not Found" response + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:DataDog/monitor-app + Scenario: Get pup bump test resource returns "OK" response + When the request is sent + Then the response status is 200 OK diff --git a/tests/v2/features/undo.json b/tests/v2/features/undo.json index e72767d8e0..84e827a40b 100644 --- a/tests/v2/features/undo.json +++ b/tests/v2/features/undo.json @@ -6284,6 +6284,12 @@ "type": "safe" } }, + "GetPupBumpTest": { + "tag": "Pup Bump Test", + "undo": { + "type": "safe" + } + }, "QueryScalarData": { "tag": "Metrics", "undo": {