Skip to content

Commit 231177a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 44373f1 of spec repo
1 parent eb0c868 commit 231177a

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
@@ -57004,6 +57004,59 @@ components:
5700457004
- id
5700557005
- type
5700657006
type: object
57007+
OAuth2WellKnownSitesAttributes:
57008+
description: Attributes containing the list of public OAuth2 sites.
57009+
properties:
57010+
sites:
57011+
description: Array of public OAuth2 site URLs for the environment.
57012+
example:
57013+
- datadoghq.com
57014+
- datadoghq.eu
57015+
- us5.datadoghq.com
57016+
- us3.datadoghq.com
57017+
- ap1.datadoghq.com
57018+
- ap2.datadoghq.com
57019+
items:
57020+
description: Public OAuth2 site URL.
57021+
example: app.datadoghq.com
57022+
type: string
57023+
type: array
57024+
required:
57025+
- sites
57026+
type: object
57027+
OAuth2WellKnownSitesData:
57028+
description: Data object containing OAuth2 well-known sites information.
57029+
properties:
57030+
attributes:
57031+
$ref: "#/components/schemas/OAuth2WellKnownSitesAttributes"
57032+
id:
57033+
description: Environment identifier.
57034+
example: prod
57035+
type: string
57036+
type:
57037+
$ref: "#/components/schemas/OAuth2WellKnownSitesEnvType"
57038+
required:
57039+
- id
57040+
- type
57041+
- attributes
57042+
type: object
57043+
OAuth2WellKnownSitesEnvType:
57044+
default: env
57045+
description: JSON:API resource type for OAuth2 well-known sites environment.
57046+
enum:
57047+
- env
57048+
example: env
57049+
type: string
57050+
x-enum-varnames:
57051+
- ENV
57052+
OAuth2WellKnownSitesResponse:
57053+
description: Response payload containing the list of public OAuth2 sites for discovery.
57054+
properties:
57055+
data:
57056+
$ref: "#/components/schemas/OAuth2WellKnownSitesData"
57057+
required:
57058+
- data
57059+
type: object
5700757060
OAuthClientRegistrationError:
5700857061
description: Error payload returned by OAuth2 dynamic client registration as defined by RFC 7591.
5700957062
properties:
@@ -140737,6 +140790,40 @@ paths:
140737140790
summary: Get all aggregated DNS traffic
140738140791
tags:
140739140792
- Cloud Network Monitoring
140793+
/api/v2/oauth2/.well-known/sites:
140794+
get:
140795+
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.
140796+
operationId: GetOAuth2WellKnownSites
140797+
responses:
140798+
"200":
140799+
content:
140800+
application/json:
140801+
examples:
140802+
default:
140803+
value:
140804+
data:
140805+
attributes:
140806+
sites:
140807+
- datadoghq.com
140808+
- datadoghq.eu
140809+
- us5.datadoghq.com
140810+
- us3.datadoghq.com
140811+
- ap1.datadoghq.com
140812+
- ap2.datadoghq.com
140813+
id: prod
140814+
type: env
140815+
schema:
140816+
$ref: "#/components/schemas/OAuth2WellKnownSitesResponse"
140817+
description: OK
140818+
"429":
140819+
$ref: "#/components/responses/TooManyRequestsResponse"
140820+
security: []
140821+
summary: Get OAuth2 well-known sites
140822+
tags:
140823+
- OAuth2 Client Public
140824+
x-unstable: |-
140825+
**Note**: This endpoint is in preview and is subject to change.
140826+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
140740140827
/api/v2/oauth2/clients/{client_uuid}/scopes_restriction:
140741140828
delete:
140742140829
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
@@ -24154,6 +24154,34 @@ datadog\_api\_client.v2.model.nullable\_user\_relationship\_data module
2415424154
:members:
2415524155
:show-inheritance:
2415624156

24157+
datadog\_api\_client.v2.model.o\_auth2\_well\_known\_sites\_attributes module
24158+
-----------------------------------------------------------------------------
24159+
24160+
.. automodule:: datadog_api_client.v2.model.o_auth2_well_known_sites_attributes
24161+
:members:
24162+
:show-inheritance:
24163+
24164+
datadog\_api\_client.v2.model.o\_auth2\_well\_known\_sites\_data module
24165+
-----------------------------------------------------------------------
24166+
24167+
.. automodule:: datadog_api_client.v2.model.o_auth2_well_known_sites_data
24168+
:members:
24169+
:show-inheritance:
24170+
24171+
datadog\_api\_client.v2.model.o\_auth2\_well\_known\_sites\_env\_type module
24172+
----------------------------------------------------------------------------
24173+
24174+
.. automodule:: datadog_api_client.v2.model.o_auth2_well_known_sites_env_type
24175+
:members:
24176+
:show-inheritance:
24177+
24178+
datadog\_api\_client.v2.model.o\_auth2\_well\_known\_sites\_response module
24179+
---------------------------------------------------------------------------
24180+
24181+
.. automodule:: datadog_api_client.v2.model.o_auth2_well_known_sites_response
24182+
:members:
24183+
:show-inheritance:
24184+
2415724185
datadog\_api\_client.v2.model.o\_auth\_client\_registration\_error module
2415824186
-------------------------------------------------------------------------
2415924187

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
@@ -4524,6 +4524,10 @@
45244524
from datadog_api_client.v2.model.nullable_relationship_to_user_data import NullableRelationshipToUserData
45254525
from datadog_api_client.v2.model.nullable_user_relationship import NullableUserRelationship
45264526
from datadog_api_client.v2.model.nullable_user_relationship_data import NullableUserRelationshipData
4527+
from datadog_api_client.v2.model.o_auth2_well_known_sites_attributes import OAuth2WellKnownSitesAttributes
4528+
from datadog_api_client.v2.model.o_auth2_well_known_sites_data import OAuth2WellKnownSitesData
4529+
from datadog_api_client.v2.model.o_auth2_well_known_sites_env_type import OAuth2WellKnownSitesEnvType
4530+
from datadog_api_client.v2.model.o_auth2_well_known_sites_response import OAuth2WellKnownSitesResponse
45274531
from datadog_api_client.v2.model.o_auth_client_registration_error import OAuthClientRegistrationError
45284532
from datadog_api_client.v2.model.o_auth_client_registration_grant_type import OAuthClientRegistrationGrantType
45294533
from datadog_api_client.v2.model.o_auth_client_registration_request import OAuthClientRegistrationRequest
@@ -12195,6 +12199,10 @@
1219512199
"NullableRelationshipToUserData",
1219612200
"NullableUserRelationship",
1219712201
"NullableUserRelationshipData",
12202+
"OAuth2WellKnownSitesAttributes",
12203+
"OAuth2WellKnownSitesData",
12204+
"OAuth2WellKnownSitesEnvType",
12205+
"OAuth2WellKnownSitesResponse",
1219812206
"OAuthClientRegistrationError",
1219912207
"OAuthClientRegistrationGrantType",
1220012208
"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)