Skip to content

Commit 10ee138

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit eefbf74 of spec repo
1 parent cfeec7a commit 10ee138

14 files changed

Lines changed: 382 additions & 0 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78894,6 +78894,49 @@ components:
7889478894
type: string
7889578895
x-enum-varnames:
7889678896
- PUBLISHREQUEST
78897+
PupBumpTestData:
78898+
description: Pup bump test resource data.
78899+
properties:
78900+
attributes:
78901+
$ref: "#/components/schemas/PupBumpTestDataAttributes"
78902+
id:
78903+
description: Pup bump test identifier.
78904+
example: "pup-bump-test-1"
78905+
type: string
78906+
type:
78907+
$ref: "#/components/schemas/PupBumpTestType"
78908+
required:
78909+
- id
78910+
- type
78911+
- attributes
78912+
type: object
78913+
PupBumpTestDataAttributes:
78914+
description: Attributes of the pup bump test resource.
78915+
properties:
78916+
message:
78917+
description: A test message.
78918+
example: "hello from pup bump test"
78919+
type: string
78920+
required:
78921+
- message
78922+
type: object
78923+
PupBumpTestResponse:
78924+
description: Response for the pup bump test endpoint.
78925+
properties:
78926+
data:
78927+
$ref: "#/components/schemas/PupBumpTestData"
78928+
required:
78929+
- data
78930+
type: object
78931+
PupBumpTestType:
78932+
default: pup_bump_test
78933+
description: Pup bump test resource type.
78934+
enum:
78935+
- pup_bump_test
78936+
example: "pup_bump_test"
78937+
type: string
78938+
x-enum-varnames:
78939+
- PUP_BUMP_TEST
7889778940
PutAppsDatastoreItemResponseArray:
7889878941
description: Response after successfully inserting multiple items into a datastore, containing the identifiers of the created items.
7889978942
properties:
@@ -169631,6 +169674,41 @@ paths:
169631169674
x-unstable: |-
169632169675
**Note**: This endpoint is in preview and is subject to change.
169633169676
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
169677+
/api/v2/pup_bump_test:
169678+
get:
169679+
description: |-
169680+
Temporary test-only endpoint used to exercise the pup dependency-bump
169681+
generation and merge pipeline. Not a real product feature.
169682+
operationId: GetPupBumpTest
169683+
responses:
169684+
"200":
169685+
content:
169686+
application/json:
169687+
examples:
169688+
default:
169689+
value:
169690+
data:
169691+
attributes:
169692+
message: "hello from pup bump test"
169693+
id: "pup-bump-test-1"
169694+
type: pup_bump_test
169695+
schema:
169696+
$ref: "#/components/schemas/PupBumpTestResponse"
169697+
description: OK
169698+
"404":
169699+
content:
169700+
application/json:
169701+
schema:
169702+
$ref: "#/components/schemas/JSONAPIErrorResponse"
169703+
description: Not Found
169704+
"429":
169705+
$ref: "#/components/responses/TooManyRequestsResponse"
169706+
summary: Get pup bump test resource
169707+
tags:
169708+
- Pup Bump Test
169709+
x-unstable: |-
169710+
**Note**: This endpoint is in preview and is subject to change.
169711+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
169634169712
/api/v2/query/scalar:
169635169713
post:
169636169714
description: |-
@@ -203918,6 +203996,10 @@ tags:
203918203996
**Note**: Sending server-side events impacts billing. Review the [pricing page](https://www.datadoghq.com/pricing/?product=product-analytics#products)
203919203997
and contact your Customer Success Manager for more information.
203920203998
name: Product Analytics
203999+
- description: |-
204000+
Temporary test-only tag used to exercise the pup dependency-bump
204001+
generation and merge pipeline. Not a real product feature.
204002+
name: Pup Bump Test
203921204003
- description: |-
203922204004
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
203923204005
name: RUM

docs/datadog_api_client.v2.api.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,13 @@ datadog\_api\_client.v2.api.product\_analytics\_api module
655655
:members:
656656
:show-inheritance:
657657

658+
datadog\_api\_client.v2.api.pup\_bump\_test\_api module
659+
-------------------------------------------------------
660+
661+
.. automodule:: datadog_api_client.v2.api.pup_bump_test_api
662+
:members:
663+
:show-inheritance:
664+
658665
datadog\_api\_client.v2.api.reference\_tables\_api module
659666
---------------------------------------------------------
660667

docs/datadog_api_client.v2.model.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33198,6 +33198,34 @@ datadog\_api\_client.v2.model.publish\_request\_type module
3319833198
:members:
3319933199
:show-inheritance:
3320033200

33201+
datadog\_api\_client.v2.model.pup\_bump\_test\_data module
33202+
----------------------------------------------------------
33203+
33204+
.. automodule:: datadog_api_client.v2.model.pup_bump_test_data
33205+
:members:
33206+
:show-inheritance:
33207+
33208+
datadog\_api\_client.v2.model.pup\_bump\_test\_data\_attributes module
33209+
----------------------------------------------------------------------
33210+
33211+
.. automodule:: datadog_api_client.v2.model.pup_bump_test_data_attributes
33212+
:members:
33213+
:show-inheritance:
33214+
33215+
datadog\_api\_client.v2.model.pup\_bump\_test\_response module
33216+
--------------------------------------------------------------
33217+
33218+
.. automodule:: datadog_api_client.v2.model.pup_bump_test_response
33219+
:members:
33220+
:show-inheritance:
33221+
33222+
datadog\_api\_client.v2.model.pup\_bump\_test\_type module
33223+
----------------------------------------------------------
33224+
33225+
.. automodule:: datadog_api_client.v2.model.pup_bump_test_type
33226+
:members:
33227+
:show-inheritance:
33228+
3320133229
datadog\_api\_client.v2.model.put\_apps\_datastore\_item\_response\_array module
3320233230
--------------------------------------------------------------------------------
3320333231

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""
2+
Get pup bump test resource returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.pup_bump_test_api import PupBumpTestApi
7+
8+
configuration = Configuration()
9+
configuration.unstable_operations["get_pup_bump_test"] = True
10+
with ApiClient(configuration) as api_client:
11+
api_instance = PupBumpTestApi(api_client)
12+
response = api_instance.get_pup_bump_test()
13+
14+
print(response)

src/datadog_api_client/configuration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,7 @@ def __init__(
684684
"v2.update_connection": False,
685685
"v2.get_pruned_trace_by_id": False,
686686
"v2.get_trace_by_id": False,
687+
"v2.get_pup_bump_test": False,
687688
"v2.get_asm_service_by_name": False,
688689
"v2.get_rum_sdk_config": False,
689690
"v2.update_rum_sdk_config": False,
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import Any, Dict
7+
8+
from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint
9+
from datadog_api_client.configuration import Configuration
10+
from datadog_api_client.v2.model.pup_bump_test_response import PupBumpTestResponse
11+
12+
13+
class PupBumpTestApi:
14+
"""
15+
Temporary test-only tag used to exercise the pup dependency-bump
16+
generation and merge pipeline. Not a real product feature.
17+
"""
18+
19+
def __init__(self, api_client=None):
20+
if api_client is None:
21+
api_client = ApiClient(Configuration())
22+
self.api_client = api_client
23+
24+
self._get_pup_bump_test_endpoint = _Endpoint(
25+
settings={
26+
"response_type": (PupBumpTestResponse,),
27+
"auth": ["apiKeyAuth", "appKeyAuth"],
28+
"endpoint_path": "/api/v2/pup_bump_test",
29+
"operation_id": "get_pup_bump_test",
30+
"http_method": "GET",
31+
"version": "v2",
32+
},
33+
params_map={},
34+
headers_map={
35+
"accept": ["application/json"],
36+
},
37+
api_client=api_client,
38+
)
39+
40+
def get_pup_bump_test(
41+
self,
42+
) -> PupBumpTestResponse:
43+
"""Get pup bump test resource.
44+
45+
Temporary test-only endpoint used to exercise the pup dependency-bump
46+
generation and merge pipeline. Not a real product feature.
47+
48+
:rtype: PupBumpTestResponse
49+
"""
50+
kwargs: Dict[str, Any] = {}
51+
return self._get_pup_bump_test_endpoint.call_with_http_info(**kwargs)

src/datadog_api_client/v2/apis/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
from datadog_api_client.v2.api.powerpack_api import PowerpackApi
9292
from datadog_api_client.v2.api.processes_api import ProcessesApi
9393
from datadog_api_client.v2.api.product_analytics_api import ProductAnalyticsApi
94+
from datadog_api_client.v2.api.pup_bump_test_api import PupBumpTestApi
9495
from datadog_api_client.v2.api.rum_api import RUMApi
9596
from datadog_api_client.v2.api.rum_insights_api import RUMInsightsApi
9697
from datadog_api_client.v2.api.rum_remote_config_api import RUMRemoteConfigApi
@@ -233,6 +234,7 @@
233234
"PowerpackApi",
234235
"ProcessesApi",
235236
"ProductAnalyticsApi",
237+
"PupBumpTestApi",
236238
"RUMApi",
237239
"RUMInsightsApi",
238240
"RUMRemoteConfigApi",
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import TYPE_CHECKING
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
)
12+
13+
14+
if TYPE_CHECKING:
15+
from datadog_api_client.v2.model.pup_bump_test_data_attributes import PupBumpTestDataAttributes
16+
from datadog_api_client.v2.model.pup_bump_test_type import PupBumpTestType
17+
18+
19+
class PupBumpTestData(ModelNormal):
20+
@cached_property
21+
def openapi_types(_):
22+
from datadog_api_client.v2.model.pup_bump_test_data_attributes import PupBumpTestDataAttributes
23+
from datadog_api_client.v2.model.pup_bump_test_type import PupBumpTestType
24+
25+
return {
26+
"attributes": (PupBumpTestDataAttributes,),
27+
"id": (str,),
28+
"type": (PupBumpTestType,),
29+
}
30+
31+
attribute_map = {
32+
"attributes": "attributes",
33+
"id": "id",
34+
"type": "type",
35+
}
36+
37+
def __init__(self_, attributes: PupBumpTestDataAttributes, id: str, type: PupBumpTestType, **kwargs):
38+
"""
39+
Pup bump test resource data.
40+
41+
:param attributes: Attributes of the pup bump test resource.
42+
:type attributes: PupBumpTestDataAttributes
43+
44+
:param id: Pup bump test identifier.
45+
:type id: str
46+
47+
:param type: Pup bump test resource type.
48+
:type type: PupBumpTestType
49+
"""
50+
super().__init__(kwargs)
51+
52+
self_.attributes = attributes
53+
self_.id = id
54+
self_.type = type
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
7+
from datadog_api_client.model_utils import (
8+
ModelNormal,
9+
cached_property,
10+
)
11+
12+
13+
class PupBumpTestDataAttributes(ModelNormal):
14+
@cached_property
15+
def openapi_types(_):
16+
return {
17+
"message": (str,),
18+
}
19+
20+
attribute_map = {
21+
"message": "message",
22+
}
23+
24+
def __init__(self_, message: str, **kwargs):
25+
"""
26+
Attributes of the pup bump test resource.
27+
28+
:param message: A test message.
29+
:type message: str
30+
"""
31+
super().__init__(kwargs)
32+
33+
self_.message = message
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import TYPE_CHECKING
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
)
12+
13+
14+
if TYPE_CHECKING:
15+
from datadog_api_client.v2.model.pup_bump_test_data import PupBumpTestData
16+
17+
18+
class PupBumpTestResponse(ModelNormal):
19+
@cached_property
20+
def openapi_types(_):
21+
from datadog_api_client.v2.model.pup_bump_test_data import PupBumpTestData
22+
23+
return {
24+
"data": (PupBumpTestData,),
25+
}
26+
27+
attribute_map = {
28+
"data": "data",
29+
}
30+
31+
def __init__(self_, data: PupBumpTestData, **kwargs):
32+
"""
33+
Response for the pup bump test endpoint.
34+
35+
:param data: Pup bump test resource data.
36+
:type data: PupBumpTestData
37+
"""
38+
super().__init__(kwargs)
39+
40+
self_.data = data

0 commit comments

Comments
 (0)