Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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: |-
Expand Down Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions docs/datadog_api_client.v2.api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
---------------------------------------------------------

Expand Down
28 changes: 28 additions & 0 deletions docs/datadog_api_client.v2.model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
--------------------------------------------------------------------------------

Expand Down
14 changes: 14 additions & 0 deletions examples/v2/pup-bump-test/GetPupBumpTest.py
Original file line number Diff line number Diff line change
@@ -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)
1 change: 1 addition & 0 deletions src/datadog_api_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
51 changes: 51 additions & 0 deletions src/datadog_api_client/v2/api/pup_bump_test_api.py
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 2 additions & 0 deletions src/datadog_api_client/v2/apis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -233,6 +234,7 @@
"PowerpackApi",
"ProcessesApi",
"ProductAnalyticsApi",
"PupBumpTestApi",
"RUMApi",
"RUMInsightsApi",
"RUMRemoteConfigApi",
Expand Down
54 changes: 54 additions & 0 deletions src/datadog_api_client/v2/model/pup_bump_test_data.py
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
40 changes: 40 additions & 0 deletions src/datadog_api_client/v2/model/pup_bump_test_response.py
Original file line number Diff line number Diff line change
@@ -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
Loading
Loading