Skip to content

Commit 838e925

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 1e9d9ba of spec repo
1 parent 386a156 commit 838e925

33 files changed

Lines changed: 1911 additions & 304 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 531 additions & 101 deletions
Large diffs are not rendered by default.

docs/datadog_api_client.v2.api.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,13 @@ datadog\_api\_client.v2.api.network\_device\_monitoring\_api module
473473
:members:
474474
:show-inheritance:
475475

476+
datadog\_api\_client.v2.api.o\_auth2\_client\_public\_api module
477+
----------------------------------------------------------------
478+
479+
.. automodule:: datadog_api_client.v2.api.o_auth2_client_public_api
480+
:members:
481+
:show-inheritance:
482+
476483
datadog\_api\_client.v2.api.observability\_pipelines\_api module
477484
----------------------------------------------------------------
478485

docs/datadog_api_client.v2.model.rst

Lines changed: 105 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7872,27 +7872,6 @@ datadog\_api\_client.v2.model.cost\_tag\_metadata\_daily\_filter module
78727872
:members:
78737873
:show-inheritance:
78747874

7875-
datadog\_api\_client.v2.model.cost\_tag\_metadata\_month module
7876-
---------------------------------------------------------------
7877-
7878-
.. automodule:: datadog_api_client.v2.model.cost_tag_metadata_month
7879-
:members:
7880-
:show-inheritance:
7881-
7882-
datadog\_api\_client.v2.model.cost\_tag\_metadata\_month\_type module
7883-
---------------------------------------------------------------------
7884-
7885-
.. automodule:: datadog_api_client.v2.model.cost_tag_metadata_month_type
7886-
:members:
7887-
:show-inheritance:
7888-
7889-
datadog\_api\_client.v2.model.cost\_tag\_metadata\_months\_response module
7890-
--------------------------------------------------------------------------
7891-
7892-
.. automodule:: datadog_api_client.v2.model.cost_tag_metadata_months_response
7893-
:members:
7894-
:show-inheritance:
7895-
78967875
datadog\_api\_client.v2.model.cost\_tag\_type module
78977876
----------------------------------------------------
78987877

@@ -23447,6 +23426,83 @@ datadog\_api\_client.v2.model.nullable\_user\_relationship\_data module
2344723426
:members:
2344823427
:show-inheritance:
2344923428

23429+
datadog\_api\_client.v2.model.o\_auth\_client\_registration\_error module
23430+
-------------------------------------------------------------------------
23431+
23432+
.. automodule:: datadog_api_client.v2.model.o_auth_client_registration_error
23433+
:members:
23434+
:show-inheritance:
23435+
23436+
datadog\_api\_client.v2.model.o\_auth\_client\_registration\_grant\_type module
23437+
-------------------------------------------------------------------------------
23438+
23439+
.. automodule:: datadog_api_client.v2.model.o_auth_client_registration_grant_type
23440+
:members:
23441+
:show-inheritance:
23442+
23443+
datadog\_api\_client.v2.model.o\_auth\_client\_registration\_request module
23444+
---------------------------------------------------------------------------
23445+
23446+
.. automodule:: datadog_api_client.v2.model.o_auth_client_registration_request
23447+
:members:
23448+
:show-inheritance:
23449+
23450+
datadog\_api\_client.v2.model.o\_auth\_client\_registration\_response module
23451+
----------------------------------------------------------------------------
23452+
23453+
.. automodule:: datadog_api_client.v2.model.o_auth_client_registration_response
23454+
:members:
23455+
:show-inheritance:
23456+
23457+
datadog\_api\_client.v2.model.o\_auth\_client\_registration\_response\_type module
23458+
----------------------------------------------------------------------------------
23459+
23460+
.. automodule:: datadog_api_client.v2.model.o_auth_client_registration_response_type
23461+
:members:
23462+
:show-inheritance:
23463+
23464+
datadog\_api\_client.v2.model.o\_auth\_oidc\_scope module
23465+
---------------------------------------------------------
23466+
23467+
.. automodule:: datadog_api_client.v2.model.o_auth_oidc_scope
23468+
:members:
23469+
:show-inheritance:
23470+
23471+
datadog\_api\_client.v2.model.o\_auth\_scopes\_restriction module
23472+
-----------------------------------------------------------------
23473+
23474+
.. automodule:: datadog_api_client.v2.model.o_auth_scopes_restriction
23475+
:members:
23476+
:show-inheritance:
23477+
23478+
datadog\_api\_client.v2.model.o\_auth\_scopes\_restriction\_response module
23479+
---------------------------------------------------------------------------
23480+
23481+
.. automodule:: datadog_api_client.v2.model.o_auth_scopes_restriction_response
23482+
:members:
23483+
:show-inheritance:
23484+
23485+
datadog\_api\_client.v2.model.o\_auth\_scopes\_restriction\_response\_attributes module
23486+
---------------------------------------------------------------------------------------
23487+
23488+
.. automodule:: datadog_api_client.v2.model.o_auth_scopes_restriction_response_attributes
23489+
:members:
23490+
:show-inheritance:
23491+
23492+
datadog\_api\_client.v2.model.o\_auth\_scopes\_restriction\_response\_data module
23493+
---------------------------------------------------------------------------------
23494+
23495+
.. automodule:: datadog_api_client.v2.model.o_auth_scopes_restriction_response_data
23496+
:members:
23497+
:show-inheritance:
23498+
23499+
datadog\_api\_client.v2.model.o\_auth\_scopes\_restriction\_type module
23500+
-----------------------------------------------------------------------
23501+
23502+
.. automodule:: datadog_api_client.v2.model.o_auth_scopes_restriction_type
23503+
:members:
23504+
:show-inheritance:
23505+
2345023506
datadog\_api\_client.v2.model.observability\_pipeline module
2345123507
------------------------------------------------------------
2345223508

@@ -40240,6 +40296,34 @@ datadog\_api\_client.v2.model.upsert\_cloud\_inventory\_sync\_config\_request\_d
4024040296
:members:
4024140297
:show-inheritance:
4024240298

40299+
datadog\_api\_client.v2.model.upsert\_o\_auth\_scopes\_restriction\_data module
40300+
-------------------------------------------------------------------------------
40301+
40302+
.. automodule:: datadog_api_client.v2.model.upsert_o_auth_scopes_restriction_data
40303+
:members:
40304+
:show-inheritance:
40305+
40306+
datadog\_api\_client.v2.model.upsert\_o\_auth\_scopes\_restriction\_data\_attributes module
40307+
-------------------------------------------------------------------------------------------
40308+
40309+
.. automodule:: datadog_api_client.v2.model.upsert_o_auth_scopes_restriction_data_attributes
40310+
:members:
40311+
:show-inheritance:
40312+
40313+
datadog\_api\_client.v2.model.upsert\_o\_auth\_scopes\_restriction\_request module
40314+
----------------------------------------------------------------------------------
40315+
40316+
.. automodule:: datadog_api_client.v2.model.upsert_o_auth_scopes_restriction_request
40317+
:members:
40318+
:show-inheritance:
40319+
40320+
datadog\_api\_client.v2.model.upsert\_o\_auth\_scopes\_restriction\_type module
40321+
-------------------------------------------------------------------------------
40322+
40323+
.. automodule:: datadog_api_client.v2.model.upsert_o_auth_scopes_restriction_type
40324+
:members:
40325+
:show-inheritance:
40326+
4024340327
datadog\_api\_client.v2.model.urgency module
4024440328
--------------------------------------------
4024540329

examples/v2/cloud-cost-management/ListCostTagMetadataMonths.py

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
"""
2+
Delete an OAuth2 client scopes restriction returns "No Content" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.o_auth2_client_public_api import OAuth2ClientPublicApi
7+
from uuid import UUID
8+
9+
configuration = Configuration()
10+
configuration.unstable_operations["delete_scopes_restriction"] = True
11+
with ApiClient(configuration) as api_client:
12+
api_instance = OAuth2ClientPublicApi(api_client)
13+
api_instance.delete_scopes_restriction(
14+
client_uuid=UUID("fafa8e1c-36a5-11f0-a83d-da7ad0900001"),
15+
)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"""
2+
Get an OAuth2 client scopes restriction returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.o_auth2_client_public_api import OAuth2ClientPublicApi
7+
from uuid import UUID
8+
9+
configuration = Configuration()
10+
configuration.unstable_operations["get_scopes_restriction"] = True
11+
with ApiClient(configuration) as api_client:
12+
api_instance = OAuth2ClientPublicApi(api_client)
13+
response = api_instance.get_scopes_restriction(
14+
client_uuid=UUID("fafa8e1c-36a5-11f0-a83d-da7ad0900001"),
15+
)
16+
17+
print(response)
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
"""
2+
Register an OAuth2 client returns "Created" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.o_auth2_client_public_api import OAuth2ClientPublicApi
7+
from datadog_api_client.v2.model.o_auth_client_registration_grant_type import OAuthClientRegistrationGrantType
8+
from datadog_api_client.v2.model.o_auth_client_registration_request import OAuthClientRegistrationRequest
9+
from datadog_api_client.v2.model.o_auth_client_registration_response_type import OAuthClientRegistrationResponseType
10+
11+
body = OAuthClientRegistrationRequest(
12+
client_name="Example MCP Client",
13+
client_uri="https://example.com",
14+
grant_types=[
15+
OAuthClientRegistrationGrantType.AUTHORIZATION_CODE,
16+
OAuthClientRegistrationGrantType.REFRESH_TOKEN,
17+
],
18+
jwks_uri="https://example.com/.well-known/jwks.json",
19+
logo_uri="https://example.com/logo.png",
20+
policy_uri="https://example.com/privacy",
21+
redirect_uris=[
22+
"https://example.com/oauth/callback",
23+
],
24+
response_types=[
25+
OAuthClientRegistrationResponseType.CODE,
26+
],
27+
scope="openid profile",
28+
token_endpoint_auth_method="none",
29+
tos_uri="https://example.com/tos",
30+
)
31+
32+
configuration = Configuration()
33+
configuration.unstable_operations["register_o_auth_client"] = True
34+
with ApiClient(configuration) as api_client:
35+
api_instance = OAuth2ClientPublicApi(api_client)
36+
response = api_instance.register_o_auth_client(body=body)
37+
38+
print(response)
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
"""
2+
Upsert an OAuth2 client scopes restriction returns "OK" response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v2.api.o_auth2_client_public_api import OAuth2ClientPublicApi
7+
from datadog_api_client.v2.model.o_auth_oidc_scope import OAuthOidcScope
8+
from datadog_api_client.v2.model.upsert_o_auth_scopes_restriction_data import UpsertOAuthScopesRestrictionData
9+
from datadog_api_client.v2.model.upsert_o_auth_scopes_restriction_data_attributes import (
10+
UpsertOAuthScopesRestrictionDataAttributes,
11+
)
12+
from datadog_api_client.v2.model.upsert_o_auth_scopes_restriction_request import UpsertOAuthScopesRestrictionRequest
13+
from datadog_api_client.v2.model.upsert_o_auth_scopes_restriction_type import UpsertOAuthScopesRestrictionType
14+
from uuid import UUID
15+
16+
body = UpsertOAuthScopesRestrictionRequest(
17+
data=UpsertOAuthScopesRestrictionData(
18+
attributes=UpsertOAuthScopesRestrictionDataAttributes(
19+
oidc_scopes=[
20+
OAuthOidcScope.OPENID,
21+
OAuthOidcScope.EMAIL,
22+
],
23+
permission_scopes=[
24+
"dashboards_read",
25+
"metrics_read",
26+
],
27+
),
28+
type=UpsertOAuthScopesRestrictionType.UPSERT_SCOPES_RESTRICTION,
29+
),
30+
)
31+
32+
configuration = Configuration()
33+
configuration.unstable_operations["upsert_scopes_restriction"] = True
34+
with ApiClient(configuration) as api_client:
35+
api_instance = OAuth2ClientPublicApi(api_client)
36+
response = api_instance.upsert_scopes_restriction(
37+
client_uuid=UUID("fafa8e1c-36a5-11f0-a83d-da7ad0900001"), body=body
38+
)
39+
40+
print(response)

src/datadog_api_client/configuration.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,6 @@ def __init__(
445445
"v2.list_cost_tag_key_sources": False,
446446
"v2.list_cost_tag_metadata": False,
447447
"v2.list_cost_tag_metadata_metrics": False,
448-
"v2.list_cost_tag_metadata_months": False,
449448
"v2.list_cost_tag_metadata_orchestrators": False,
450449
"v2.search_cost_recommendations": False,
451450
"v2.create_dashboard_secure_embed": False,
@@ -579,6 +578,10 @@ def __init__(
579578
"v2.update_monitor_user_template": False,
580579
"v2.validate_existing_monitor_user_template": False,
581580
"v2.validate_monitor_user_template": False,
581+
"v2.delete_scopes_restriction": False,
582+
"v2.get_scopes_restriction": False,
583+
"v2.register_o_auth_client": False,
584+
"v2.upsert_scopes_restriction": False,
582585
"v2.bulk_update_org_group_memberships": False,
583586
"v2.create_org_group": False,
584587
"v2.create_org_group_policy": False,

src/datadog_api_client/v2/api/cloud_cost_management_api.py

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
from datadog_api_client.v2.model.cost_tag_metadata_daily_filter import CostTagMetadataDailyFilter
6666
from datadog_api_client.v2.model.cost_currency_response import CostCurrencyResponse
6767
from datadog_api_client.v2.model.cost_metrics_response import CostMetricsResponse
68-
from datadog_api_client.v2.model.cost_tag_metadata_months_response import CostTagMetadataMonthsResponse
6968
from datadog_api_client.v2.model.cost_orchestrators_response import CostOrchestratorsResponse
7069
from datadog_api_client.v2.model.cost_tag_key_sources_response import CostTagKeySourcesResponse
7170
from datadog_api_client.v2.model.cost_tags_response import CostTagsResponse
@@ -1283,29 +1282,6 @@ def __init__(self, api_client=None):
12831282
api_client=api_client,
12841283
)
12851284

1286-
self._list_cost_tag_metadata_months_endpoint = _Endpoint(
1287-
settings={
1288-
"response_type": (CostTagMetadataMonthsResponse,),
1289-
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
1290-
"endpoint_path": "/api/v2/cost/tag_metadata/months",
1291-
"operation_id": "list_cost_tag_metadata_months",
1292-
"http_method": "GET",
1293-
"version": "v2",
1294-
},
1295-
params_map={
1296-
"filter_provider": {
1297-
"required": True,
1298-
"openapi_types": (str,),
1299-
"attribute": "filter[provider]",
1300-
"location": "query",
1301-
},
1302-
},
1303-
headers_map={
1304-
"accept": ["application/json"],
1305-
},
1306-
api_client=api_client,
1307-
)
1308-
13091285
self._list_cost_tag_metadata_orchestrators_endpoint = _Endpoint(
13101286
settings={
13111287
"response_type": (CostOrchestratorsResponse,),
@@ -2796,27 +2772,6 @@ def list_cost_tag_metadata_metrics(
27962772

27972773
return self._list_cost_tag_metadata_metrics_endpoint.call_with_http_info(**kwargs)
27982774

2799-
def list_cost_tag_metadata_months(
2800-
self,
2801-
filter_provider: str,
2802-
) -> CostTagMetadataMonthsResponse:
2803-
"""List Cloud Cost Management tag metadata months.
2804-
2805-
List months that have Cloud Cost Management tag metadata for a given provider,
2806-
ordered most-recent first. The response is capped at 36 months.
2807-
2808-
:param filter_provider: Provider to scope the query to. Use the value of the ``providername`` tag in CCM
2809-
(for example, ``aws`` , ``azure`` , ``gcp`` , ``Oracle`` , ``Confluent Cloud`` , ``Snowflake`` ).
2810-
For costs uploaded through the Custom Costs API, use ``custom``.
2811-
Values are case-sensitive.
2812-
:type filter_provider: str
2813-
:rtype: CostTagMetadataMonthsResponse
2814-
"""
2815-
kwargs: Dict[str, Any] = {}
2816-
kwargs["filter_provider"] = filter_provider
2817-
2818-
return self._list_cost_tag_metadata_months_endpoint.call_with_http_info(**kwargs)
2819-
28202775
def list_cost_tag_metadata_orchestrators(
28212776
self,
28222777
filter_month: str,

0 commit comments

Comments
 (0)