Skip to content

Commit 008976a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit fd9f2a4 of spec repo
1 parent cad8a33 commit 008976a

19 files changed

Lines changed: 530 additions & 30 deletions

.generator/schemas/v1/openapi.yaml

Lines changed: 118 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -791,11 +791,6 @@ components:
791791
items:
792792
$ref: "#/components/schemas/ResourceProviderConfig"
793793
type: array
794-
secretless_auth_enabled:
795-
description: |-
796-
(Preview) When enabled, Datadog authenticates with this app registration using federated workload identity credentials instead of a client secret.
797-
example: true
798-
type: boolean
799794
tenant_name:
800795
description: Your Azure Active Directory ID.
801796
example: "testc44-1234-5678-9101-cc00736ftest"
@@ -1282,6 +1277,123 @@ components:
12821277
type: string
12831278
x-enum-varnames:
12841279
- CHECK_STATUS
1280+
CloudcraftWidgetDefinition:
1281+
description: This widget displays a Cloudcraft topology of cloud resources for the selected provider.
1282+
properties:
1283+
custom_links:
1284+
description: List of custom links.
1285+
items:
1286+
$ref: "#/components/schemas/WidgetCustomLink"
1287+
type: array
1288+
description:
1289+
description: The description of the widget.
1290+
type: string
1291+
group_by:
1292+
description: List of tags or attributes used to group the cloud resources in the widget.
1293+
example:
1294+
- ""
1295+
items:
1296+
description: Tag or attribute used to group cloud resources.
1297+
type: string
1298+
type: array
1299+
highlighted:
1300+
description: Search query that visually highlights matching resources in the diagram.
1301+
example: ""
1302+
type: string
1303+
overlay:
1304+
$ref: "#/components/schemas/CloudcraftWidgetDefinitionOverlay"
1305+
overlay_filter:
1306+
description: Filter applied to the selected overlay.
1307+
example: ""
1308+
type: string
1309+
projection:
1310+
$ref: "#/components/schemas/CloudcraftWidgetDefinitionProjection"
1311+
provider:
1312+
$ref: "#/components/schemas/CloudcraftWidgetDefinitionProvider"
1313+
query_string:
1314+
description: Query string used to filter the cloud resources displayed in the widget.
1315+
example: ""
1316+
type: string
1317+
show_empty_groups:
1318+
description: Whether to show empty outline groups in the diagram.
1319+
example: false
1320+
type: boolean
1321+
title:
1322+
description: Title of your widget.
1323+
type: string
1324+
title_align:
1325+
$ref: "#/components/schemas/WidgetTextAlign"
1326+
title_size:
1327+
description: Size of the title.
1328+
type: string
1329+
type:
1330+
$ref: "#/components/schemas/CloudcraftWidgetDefinitionType"
1331+
required:
1332+
- type
1333+
- query_string
1334+
- provider
1335+
- overlay
1336+
- overlay_filter
1337+
- group_by
1338+
- projection
1339+
- highlighted
1340+
- show_empty_groups
1341+
type: object
1342+
CloudcraftWidgetDefinitionOverlay:
1343+
description: Overlay applied on top of the Cloudcraft topology.
1344+
enum:
1345+
- Observability
1346+
- CloudCost
1347+
- Security
1348+
- NDMReachability
1349+
- Monitors
1350+
- APM
1351+
- Default
1352+
example: Observability
1353+
type: string
1354+
x-enum-varnames:
1355+
- OBSERVABILITY
1356+
- CLOUD_COST
1357+
- SECURITY
1358+
- NDM_REACHABILITY
1359+
- MONITORS
1360+
- APM
1361+
- DEFAULT
1362+
CloudcraftWidgetDefinitionProjection:
1363+
description: Projection used to render the Cloudcraft topology.
1364+
enum:
1365+
- isometric
1366+
- 2d
1367+
example: isometric
1368+
type: string
1369+
x-enum-varnames:
1370+
- ISOMETRIC
1371+
- TWO_D
1372+
CloudcraftWidgetDefinitionProvider:
1373+
description: Cloud provider for the Cloudcraft widget.
1374+
enum:
1375+
- aws
1376+
- azure
1377+
- gcp
1378+
- ndm
1379+
- oci
1380+
example: aws
1381+
type: string
1382+
x-enum-varnames:
1383+
- AWS
1384+
- AZURE
1385+
- GCP
1386+
- NDM
1387+
- OCI
1388+
CloudcraftWidgetDefinitionType:
1389+
default: cloudcraft
1390+
description: Type of the Cloudcraft widget.
1391+
enum:
1392+
- cloudcraft
1393+
example: cloudcraft
1394+
type: string
1395+
x-enum-varnames:
1396+
- CLOUDCRAFT
12851397
CohortWidgetDefinition:
12861398
additionalProperties: false
12871399
description: The cohort widget visualizes user retention over time.
@@ -25597,6 +25709,7 @@ components:
2559725709
- $ref: "#/components/schemas/BarChartWidgetDefinition"
2559825710
- $ref: "#/components/schemas/ChangeWidgetDefinition"
2559925711
- $ref: "#/components/schemas/CheckStatusWidgetDefinition"
25712+
- $ref: "#/components/schemas/CloudcraftWidgetDefinition"
2560025713
- $ref: "#/components/schemas/CohortWidgetDefinition"
2560125714
- $ref: "#/components/schemas/DistributionWidgetDefinition"
2560225715
- $ref: "#/components/schemas/EventStreamWidgetDefinition"

docs/datadog_api_client.v1.model.rst

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,41 @@ datadog\_api\_client.v1.model.check\_status\_widget\_definition\_type module
487487
:members:
488488
:show-inheritance:
489489

490+
datadog\_api\_client.v1.model.cloudcraft\_widget\_definition module
491+
-------------------------------------------------------------------
492+
493+
.. automodule:: datadog_api_client.v1.model.cloudcraft_widget_definition
494+
:members:
495+
:show-inheritance:
496+
497+
datadog\_api\_client.v1.model.cloudcraft\_widget\_definition\_overlay module
498+
----------------------------------------------------------------------------
499+
500+
.. automodule:: datadog_api_client.v1.model.cloudcraft_widget_definition_overlay
501+
:members:
502+
:show-inheritance:
503+
504+
datadog\_api\_client.v1.model.cloudcraft\_widget\_definition\_projection module
505+
-------------------------------------------------------------------------------
506+
507+
.. automodule:: datadog_api_client.v1.model.cloudcraft_widget_definition_projection
508+
:members:
509+
:show-inheritance:
510+
511+
datadog\_api\_client.v1.model.cloudcraft\_widget\_definition\_provider module
512+
-----------------------------------------------------------------------------
513+
514+
.. automodule:: datadog_api_client.v1.model.cloudcraft_widget_definition_provider
515+
:members:
516+
:show-inheritance:
517+
518+
datadog\_api\_client.v1.model.cloudcraft\_widget\_definition\_type module
519+
-------------------------------------------------------------------------
520+
521+
.. automodule:: datadog_api_client.v1.model.cloudcraft_widget_definition_type
522+
:members:
523+
:show-inheritance:
524+
490525
datadog\_api\_client.v1.model.cohort\_widget\_definition module
491526
---------------------------------------------------------------
492527

examples/v1/azure-integration/UpdateAzureHostFilters.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
namespace="Microsoft.Compute",
3131
),
3232
],
33-
secretless_auth_enabled=True,
3433
tenant_name="testc44-1234-5678-9101-cc00736ftest",
3534
usage_metrics_enabled=True,
3635
)

examples/v1/azure-integration/UpdateAzureIntegration.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
new_client_id="9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
2222
new_tenant_name="9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
2323
resource_collection_enabled=True,
24-
secretless_auth_enabled=True,
2524
tenant_name="9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
2625
)
2726

src/datadog_api_client/v1/model/azure_account.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ def openapi_types(_):
3838
"new_tenant_name": (str,),
3939
"resource_collection_enabled": (bool,),
4040
"resource_provider_configs": ([ResourceProviderConfig],),
41-
"secretless_auth_enabled": (bool,),
4241
"tenant_name": (str,),
4342
"usage_metrics_enabled": (bool,),
4443
}
@@ -59,7 +58,6 @@ def openapi_types(_):
5958
"new_tenant_name": "new_tenant_name",
6059
"resource_collection_enabled": "resource_collection_enabled",
6160
"resource_provider_configs": "resource_provider_configs",
62-
"secretless_auth_enabled": "secretless_auth_enabled",
6361
"tenant_name": "tenant_name",
6462
"usage_metrics_enabled": "usage_metrics_enabled",
6563
}
@@ -81,7 +79,6 @@ def __init__(
8179
new_tenant_name: Union[str, UnsetType] = unset,
8280
resource_collection_enabled: Union[bool, UnsetType] = unset,
8381
resource_provider_configs: Union[List[ResourceProviderConfig], UnsetType] = unset,
84-
secretless_auth_enabled: Union[bool, UnsetType] = unset,
8582
tenant_name: Union[str, UnsetType] = unset,
8683
usage_metrics_enabled: Union[bool, UnsetType] = unset,
8784
**kwargs,
@@ -138,9 +135,6 @@ def __init__(
138135
:param resource_provider_configs: Configuration settings applied to resources from the specified Azure resource providers.
139136
:type resource_provider_configs: [ResourceProviderConfig], optional
140137
141-
:param secretless_auth_enabled: (Preview) When enabled, Datadog authenticates with this app registration using federated workload identity credentials instead of a client secret.
142-
:type secretless_auth_enabled: bool, optional
143-
144138
:param tenant_name: Your Azure Active Directory ID.
145139
:type tenant_name: str, optional
146140
@@ -177,8 +171,6 @@ def __init__(
177171
kwargs["resource_collection_enabled"] = resource_collection_enabled
178172
if resource_provider_configs is not unset:
179173
kwargs["resource_provider_configs"] = resource_provider_configs
180-
if secretless_auth_enabled is not unset:
181-
kwargs["secretless_auth_enabled"] = secretless_auth_enabled
182174
if tenant_name is not unset:
183175
kwargs["tenant_name"] = tenant_name
184176
if usage_metrics_enabled is not unset:
Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
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, Union, TYPE_CHECKING
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
if TYPE_CHECKING:
17+
from datadog_api_client.v1.model.widget_custom_link import WidgetCustomLink
18+
from datadog_api_client.v1.model.cloudcraft_widget_definition_overlay import CloudcraftWidgetDefinitionOverlay
19+
from datadog_api_client.v1.model.cloudcraft_widget_definition_projection import CloudcraftWidgetDefinitionProjection
20+
from datadog_api_client.v1.model.cloudcraft_widget_definition_provider import CloudcraftWidgetDefinitionProvider
21+
from datadog_api_client.v1.model.widget_text_align import WidgetTextAlign
22+
from datadog_api_client.v1.model.cloudcraft_widget_definition_type import CloudcraftWidgetDefinitionType
23+
24+
25+
class CloudcraftWidgetDefinition(ModelNormal):
26+
@cached_property
27+
def openapi_types(_):
28+
from datadog_api_client.v1.model.widget_custom_link import WidgetCustomLink
29+
from datadog_api_client.v1.model.cloudcraft_widget_definition_overlay import CloudcraftWidgetDefinitionOverlay
30+
from datadog_api_client.v1.model.cloudcraft_widget_definition_projection import (
31+
CloudcraftWidgetDefinitionProjection,
32+
)
33+
from datadog_api_client.v1.model.cloudcraft_widget_definition_provider import CloudcraftWidgetDefinitionProvider
34+
from datadog_api_client.v1.model.widget_text_align import WidgetTextAlign
35+
from datadog_api_client.v1.model.cloudcraft_widget_definition_type import CloudcraftWidgetDefinitionType
36+
37+
return {
38+
"custom_links": ([WidgetCustomLink],),
39+
"description": (str,),
40+
"group_by": ([str],),
41+
"highlighted": (str,),
42+
"overlay": (CloudcraftWidgetDefinitionOverlay,),
43+
"overlay_filter": (str,),
44+
"projection": (CloudcraftWidgetDefinitionProjection,),
45+
"provider": (CloudcraftWidgetDefinitionProvider,),
46+
"query_string": (str,),
47+
"show_empty_groups": (bool,),
48+
"title": (str,),
49+
"title_align": (WidgetTextAlign,),
50+
"title_size": (str,),
51+
"type": (CloudcraftWidgetDefinitionType,),
52+
}
53+
54+
attribute_map = {
55+
"custom_links": "custom_links",
56+
"description": "description",
57+
"group_by": "group_by",
58+
"highlighted": "highlighted",
59+
"overlay": "overlay",
60+
"overlay_filter": "overlay_filter",
61+
"projection": "projection",
62+
"provider": "provider",
63+
"query_string": "query_string",
64+
"show_empty_groups": "show_empty_groups",
65+
"title": "title",
66+
"title_align": "title_align",
67+
"title_size": "title_size",
68+
"type": "type",
69+
}
70+
71+
def __init__(
72+
self_,
73+
group_by: List[str],
74+
highlighted: str,
75+
overlay: CloudcraftWidgetDefinitionOverlay,
76+
overlay_filter: str,
77+
projection: CloudcraftWidgetDefinitionProjection,
78+
provider: CloudcraftWidgetDefinitionProvider,
79+
query_string: str,
80+
show_empty_groups: bool,
81+
type: CloudcraftWidgetDefinitionType,
82+
custom_links: Union[List[WidgetCustomLink], UnsetType] = unset,
83+
description: Union[str, UnsetType] = unset,
84+
title: Union[str, UnsetType] = unset,
85+
title_align: Union[WidgetTextAlign, UnsetType] = unset,
86+
title_size: Union[str, UnsetType] = unset,
87+
**kwargs,
88+
):
89+
"""
90+
This widget displays a Cloudcraft topology of cloud resources for the selected provider.
91+
92+
:param custom_links: List of custom links.
93+
:type custom_links: [WidgetCustomLink], optional
94+
95+
:param description: The description of the widget.
96+
:type description: str, optional
97+
98+
:param group_by: List of tags or attributes used to group the cloud resources in the widget.
99+
:type group_by: [str]
100+
101+
:param highlighted: Search query that visually highlights matching resources in the diagram.
102+
:type highlighted: str
103+
104+
:param overlay: Overlay applied on top of the Cloudcraft topology.
105+
:type overlay: CloudcraftWidgetDefinitionOverlay
106+
107+
:param overlay_filter: Filter applied to the selected overlay.
108+
:type overlay_filter: str
109+
110+
:param projection: Projection used to render the Cloudcraft topology.
111+
:type projection: CloudcraftWidgetDefinitionProjection
112+
113+
:param provider: Cloud provider for the Cloudcraft widget.
114+
:type provider: CloudcraftWidgetDefinitionProvider
115+
116+
:param query_string: Query string used to filter the cloud resources displayed in the widget.
117+
:type query_string: str
118+
119+
:param show_empty_groups: Whether to show empty outline groups in the diagram.
120+
:type show_empty_groups: bool
121+
122+
:param title: Title of your widget.
123+
:type title: str, optional
124+
125+
:param title_align: How to align the text on the widget.
126+
:type title_align: WidgetTextAlign, optional
127+
128+
:param title_size: Size of the title.
129+
:type title_size: str, optional
130+
131+
:param type: Type of the Cloudcraft widget.
132+
:type type: CloudcraftWidgetDefinitionType
133+
"""
134+
if custom_links is not unset:
135+
kwargs["custom_links"] = custom_links
136+
if description is not unset:
137+
kwargs["description"] = description
138+
if title is not unset:
139+
kwargs["title"] = title
140+
if title_align is not unset:
141+
kwargs["title_align"] = title_align
142+
if title_size is not unset:
143+
kwargs["title_size"] = title_size
144+
super().__init__(kwargs)
145+
146+
self_.group_by = group_by
147+
self_.highlighted = highlighted
148+
self_.overlay = overlay
149+
self_.overlay_filter = overlay_filter
150+
self_.projection = projection
151+
self_.provider = provider
152+
self_.query_string = query_string
153+
self_.show_empty_groups = show_empty_groups
154+
self_.type = type

0 commit comments

Comments
 (0)