Skip to content

Commit 5f88e08

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 282b405 of spec repo
1 parent 0180666 commit 5f88e08

11 files changed

Lines changed: 337 additions & 0 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57250,6 +57250,59 @@ components:
5725057250
- id
5725157251
- type
5725257252
type: object
57253+
OAuth2WellKnownSitesAttributes:
57254+
description: Attributes containing the list of public OAuth2 sites.
57255+
properties:
57256+
sites:
57257+
description: Array of public OAuth2 site URLs for the environment.
57258+
example:
57259+
- datadoghq.com
57260+
- datadoghq.eu
57261+
- us5.datadoghq.com
57262+
- us3.datadoghq.com
57263+
- ap1.datadoghq.com
57264+
- ap2.datadoghq.com
57265+
items:
57266+
description: Public OAuth2 site URL.
57267+
example: app.datadoghq.com
57268+
type: string
57269+
type: array
57270+
required:
57271+
- sites
57272+
type: object
57273+
OAuth2WellKnownSitesData:
57274+
description: Data object containing OAuth2 well-known sites information.
57275+
properties:
57276+
attributes:
57277+
$ref: "#/components/schemas/OAuth2WellKnownSitesAttributes"
57278+
id:
57279+
description: Environment identifier.
57280+
example: prod
57281+
type: string
57282+
type:
57283+
$ref: "#/components/schemas/OAuth2WellKnownSitesEnvType"
57284+
required:
57285+
- id
57286+
- type
57287+
- attributes
57288+
type: object
57289+
OAuth2WellKnownSitesEnvType:
57290+
default: env
57291+
description: JSON:API resource type for OAuth2 well-known sites environment.
57292+
enum:
57293+
- env
57294+
example: env
57295+
type: string
57296+
x-enum-varnames:
57297+
- ENV
57298+
OAuth2WellKnownSitesResponse:
57299+
description: Response payload containing the list of public OAuth2 sites for discovery.
57300+
properties:
57301+
data:
57302+
$ref: "#/components/schemas/OAuth2WellKnownSitesData"
57303+
required:
57304+
- data
57305+
type: object
5725357306
OAuthClientRegistrationError:
5725457307
description: Error payload returned by OAuth2 dynamic client registration as defined by RFC 7591.
5725557308
properties:
@@ -141290,6 +141343,40 @@ paths:
141290141343
summary: Get all aggregated DNS traffic
141291141344
tags:
141292141345
- Cloud Network Monitoring
141346+
/api/v2/oauth2/.well-known/sites:
141347+
get:
141348+
description: Retrieve the list of public OAuth2 sites available for the current environment. This endpoint is used for OAuth2 discovery and returns sites where users can authenticate.
141349+
operationId: GetOAuth2WellKnownSites
141350+
responses:
141351+
"200":
141352+
content:
141353+
application/json:
141354+
examples:
141355+
default:
141356+
value:
141357+
data:
141358+
attributes:
141359+
sites:
141360+
- datadoghq.com
141361+
- datadoghq.eu
141362+
- us5.datadoghq.com
141363+
- us3.datadoghq.com
141364+
- ap1.datadoghq.com
141365+
- ap2.datadoghq.com
141366+
id: prod
141367+
type: env
141368+
schema:
141369+
$ref: "#/components/schemas/OAuth2WellKnownSitesResponse"
141370+
description: OK
141371+
"429":
141372+
$ref: "#/components/responses/TooManyRequestsResponse"
141373+
security: []
141374+
summary: Get OAuth2 well-known sites
141375+
tags:
141376+
- OAuth2 Client Public
141377+
x-unstable: |-
141378+
**Note**: This endpoint is in preview and is subject to change.
141379+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
141293141380
/api/v2/oauth2/clients/{client_uuid}/scopes_restriction:
141294141381
delete:
141295141382
description: Delete the scopes restriction configured for the OAuth2 client.

docs/datadog_api_client.v2.model.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24252,6 +24252,34 @@ datadog\_api\_client.v2.model.nullable\_user\_relationship\_data module
2425224252
:members:
2425324253
:show-inheritance:
2425424254

24255+
datadog\_api\_client.v2.model.o\_auth2\_well\_known\_sites\_attributes module
24256+
-----------------------------------------------------------------------------
24257+
24258+
.. automodule:: datadog_api_client.v2.model.o_auth2_well_known_sites_attributes
24259+
:members:
24260+
:show-inheritance:
24261+
24262+
datadog\_api\_client.v2.model.o\_auth2\_well\_known\_sites\_data module
24263+
-----------------------------------------------------------------------
24264+
24265+
.. automodule:: datadog_api_client.v2.model.o_auth2_well_known_sites_data
24266+
:members:
24267+
:show-inheritance:
24268+
24269+
datadog\_api\_client.v2.model.o\_auth2\_well\_known\_sites\_env\_type module
24270+
----------------------------------------------------------------------------
24271+
24272+
.. automodule:: datadog_api_client.v2.model.o_auth2_well_known_sites_env_type
24273+
:members:
24274+
:show-inheritance:
24275+
24276+
datadog\_api\_client.v2.model.o\_auth2\_well\_known\_sites\_response module
24277+
---------------------------------------------------------------------------
24278+
24279+
.. automodule:: datadog_api_client.v2.model.o_auth2_well_known_sites_response
24280+
:members:
24281+
:show-inheritance:
24282+
2425524283
datadog\_api\_client.v2.model.o\_auth\_client\_registration\_error module
2425624284
-------------------------------------------------------------------------
2425724285

src/datadog_api_client/configuration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,7 @@ def __init__(
592592
"v2.validate_existing_monitor_user_template": False,
593593
"v2.validate_monitor_user_template": False,
594594
"v2.delete_scopes_restriction": False,
595+
"v2.get_o_auth2_well_known_sites": False,
595596
"v2.get_scopes_restriction": False,
596597
"v2.register_o_auth_client": False,
597598
"v2.upsert_scopes_restriction": False,

src/datadog_api_client/v2/api/o_auth2_client_public_api.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from datadog_api_client.model_utils import (
1111
UUID,
1212
)
13+
from datadog_api_client.v2.model.o_auth2_well_known_sites_response import OAuth2WellKnownSitesResponse
1314
from datadog_api_client.v2.model.o_auth_scopes_restriction_response import OAuthScopesRestrictionResponse
1415
from datadog_api_client.v2.model.upsert_o_auth_scopes_restriction_request import UpsertOAuthScopesRestrictionRequest
1516
from datadog_api_client.v2.model.o_auth_client_registration_response import OAuthClientRegistrationResponse
@@ -50,6 +51,22 @@ def __init__(self, api_client=None):
5051
api_client=api_client,
5152
)
5253

54+
self._get_o_auth2_well_known_sites_endpoint = _Endpoint(
55+
settings={
56+
"response_type": (OAuth2WellKnownSitesResponse,),
57+
"auth": [],
58+
"endpoint_path": "/api/v2/oauth2/.well-known/sites",
59+
"operation_id": "get_o_auth2_well_known_sites",
60+
"http_method": "GET",
61+
"version": "v2",
62+
},
63+
params_map={},
64+
headers_map={
65+
"accept": ["application/json"],
66+
},
67+
api_client=api_client,
68+
)
69+
5370
self._get_scopes_restriction_endpoint = _Endpoint(
5471
settings={
5572
"response_type": (OAuthScopesRestrictionResponse,),
@@ -136,6 +153,18 @@ def delete_scopes_restriction(
136153

137154
return self._delete_scopes_restriction_endpoint.call_with_http_info(**kwargs)
138155

156+
def get_o_auth2_well_known_sites(
157+
self,
158+
) -> OAuth2WellKnownSitesResponse:
159+
"""Get OAuth2 well-known sites.
160+
161+
Retrieve the list of public OAuth2 sites available for the current environment. This endpoint is used for OAuth2 discovery and returns sites where users can authenticate.
162+
163+
:rtype: OAuth2WellKnownSitesResponse
164+
"""
165+
kwargs: Dict[str, Any] = {}
166+
return self._get_o_auth2_well_known_sites_endpoint.call_with_http_info(**kwargs)
167+
139168
def get_scopes_restriction(
140169
self,
141170
client_uuid: UUID,
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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 List
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
)
12+
13+
14+
class OAuth2WellKnownSitesAttributes(ModelNormal):
15+
@cached_property
16+
def openapi_types(_):
17+
return {
18+
"sites": ([str],),
19+
}
20+
21+
attribute_map = {
22+
"sites": "sites",
23+
}
24+
25+
def __init__(self_, sites: List[str], **kwargs):
26+
"""
27+
Attributes containing the list of public OAuth2 sites.
28+
29+
:param sites: Array of public OAuth2 site URLs for the environment.
30+
:type sites: [str]
31+
"""
32+
super().__init__(kwargs)
33+
34+
self_.sites = sites
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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.o_auth2_well_known_sites_attributes import OAuth2WellKnownSitesAttributes
16+
from datadog_api_client.v2.model.o_auth2_well_known_sites_env_type import OAuth2WellKnownSitesEnvType
17+
18+
19+
class OAuth2WellKnownSitesData(ModelNormal):
20+
@cached_property
21+
def openapi_types(_):
22+
from datadog_api_client.v2.model.o_auth2_well_known_sites_attributes import OAuth2WellKnownSitesAttributes
23+
from datadog_api_client.v2.model.o_auth2_well_known_sites_env_type import OAuth2WellKnownSitesEnvType
24+
25+
return {
26+
"attributes": (OAuth2WellKnownSitesAttributes,),
27+
"id": (str,),
28+
"type": (OAuth2WellKnownSitesEnvType,),
29+
}
30+
31+
attribute_map = {
32+
"attributes": "attributes",
33+
"id": "id",
34+
"type": "type",
35+
}
36+
37+
def __init__(
38+
self_, attributes: OAuth2WellKnownSitesAttributes, id: str, type: OAuth2WellKnownSitesEnvType, **kwargs
39+
):
40+
"""
41+
Data object containing OAuth2 well-known sites information.
42+
43+
:param attributes: Attributes containing the list of public OAuth2 sites.
44+
:type attributes: OAuth2WellKnownSitesAttributes
45+
46+
:param id: Environment identifier.
47+
:type id: str
48+
49+
:param type: JSON:API resource type for OAuth2 well-known sites environment.
50+
:type type: OAuth2WellKnownSitesEnvType
51+
"""
52+
super().__init__(kwargs)
53+
54+
self_.attributes = attributes
55+
self_.id = id
56+
self_.type = type
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
ModelSimple,
9+
cached_property,
10+
)
11+
12+
from typing import ClassVar
13+
14+
15+
class OAuth2WellKnownSitesEnvType(ModelSimple):
16+
"""
17+
JSON:API resource type for OAuth2 well-known sites environment.
18+
19+
:param value: If omitted defaults to "env". Must be one of ["env"].
20+
:type value: str
21+
"""
22+
23+
allowed_values = {
24+
"env",
25+
}
26+
ENV: ClassVar["OAuth2WellKnownSitesEnvType"]
27+
28+
@cached_property
29+
def openapi_types(_):
30+
return {
31+
"value": (str,),
32+
}
33+
34+
35+
OAuth2WellKnownSitesEnvType.ENV = OAuth2WellKnownSitesEnvType("env")
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.o_auth2_well_known_sites_data import OAuth2WellKnownSitesData
16+
17+
18+
class OAuth2WellKnownSitesResponse(ModelNormal):
19+
@cached_property
20+
def openapi_types(_):
21+
from datadog_api_client.v2.model.o_auth2_well_known_sites_data import OAuth2WellKnownSitesData
22+
23+
return {
24+
"data": (OAuth2WellKnownSitesData,),
25+
}
26+
27+
attribute_map = {
28+
"data": "data",
29+
}
30+
31+
def __init__(self_, data: OAuth2WellKnownSitesData, **kwargs):
32+
"""
33+
Response payload containing the list of public OAuth2 sites for discovery.
34+
35+
:param data: Data object containing OAuth2 well-known sites information.
36+
:type data: OAuth2WellKnownSitesData
37+
"""
38+
super().__init__(kwargs)
39+
40+
self_.data = data

src/datadog_api_client/v2/models/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4542,6 +4542,10 @@
45424542
from datadog_api_client.v2.model.nullable_relationship_to_user_data import NullableRelationshipToUserData
45434543
from datadog_api_client.v2.model.nullable_user_relationship import NullableUserRelationship
45444544
from datadog_api_client.v2.model.nullable_user_relationship_data import NullableUserRelationshipData
4545+
from datadog_api_client.v2.model.o_auth2_well_known_sites_attributes import OAuth2WellKnownSitesAttributes
4546+
from datadog_api_client.v2.model.o_auth2_well_known_sites_data import OAuth2WellKnownSitesData
4547+
from datadog_api_client.v2.model.o_auth2_well_known_sites_env_type import OAuth2WellKnownSitesEnvType
4548+
from datadog_api_client.v2.model.o_auth2_well_known_sites_response import OAuth2WellKnownSitesResponse
45454549
from datadog_api_client.v2.model.o_auth_client_registration_error import OAuthClientRegistrationError
45464550
from datadog_api_client.v2.model.o_auth_client_registration_grant_type import OAuthClientRegistrationGrantType
45474551
from datadog_api_client.v2.model.o_auth_client_registration_request import OAuthClientRegistrationRequest
@@ -12255,6 +12259,10 @@
1225512259
"NullableRelationshipToUserData",
1225612260
"NullableUserRelationship",
1225712261
"NullableUserRelationshipData",
12262+
"OAuth2WellKnownSitesAttributes",
12263+
"OAuth2WellKnownSitesData",
12264+
"OAuth2WellKnownSitesEnvType",
12265+
"OAuth2WellKnownSitesResponse",
1225812266
"OAuthClientRegistrationError",
1225912267
"OAuthClientRegistrationGrantType",
1226012268
"OAuthClientRegistrationRequest",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2026-06-02T09:00:00.000Z

0 commit comments

Comments
 (0)