Skip to content

Commit 1fe5362

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit ce8fb3b of spec repo
1 parent df8b4ad commit 1fe5362

28 files changed

Lines changed: 1940 additions & 0 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 531 additions & 0 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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23426,6 +23426,83 @@ datadog\_api\_client.v2.model.nullable\_user\_relationship\_data module
2342623426
:members:
2342723427
:show-inheritance:
2342823428

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+
2342923506
datadog\_api\_client.v2.model.observability\_pipeline module
2343023507
------------------------------------------------------------
2343123508

@@ -40219,6 +40296,34 @@ datadog\_api\_client.v2.model.upsert\_cloud\_inventory\_sync\_config\_request\_d
4021940296
:members:
4022040297
:show-inheritance:
4022140298

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+
4022240327
datadog\_api\_client.v2.model.urgency module
4022340328
--------------------------------------------
4022440329

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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,10 @@ def __init__(
578578
"v2.update_monitor_user_template": False,
579579
"v2.validate_existing_monitor_user_template": False,
580580
"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,
581585
"v2.bulk_update_org_group_memberships": False,
582586
"v2.create_org_group": False,
583587
"v2.create_org_group_policy": False,

0 commit comments

Comments
 (0)