Skip to content

Commit caa5a43

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b63f6b63 of spec repo
1 parent 30bb59d commit caa5a43

8 files changed

Lines changed: 76 additions & 15 deletions

File tree

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-04-03 16:27:55.129965",
8-
"spec_repo_commit": "4468962d"
7+
"regenerated": "2025-04-03 19:16:20.952882",
8+
"spec_repo_commit": "b63f6b63"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-03 16:27:55.144771",
13-
"spec_repo_commit": "4468962d"
12+
"regenerated": "2025-04-03 19:16:20.972793",
13+
"spec_repo_commit": "b63f6b63"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1623,10 +1623,7 @@ components:
16231623
- - 0.5
16241624
- 1.0
16251625
items:
1626-
description: List of distribution point.
1627-
oneOf:
1628-
- $ref: '#/components/schemas/DistributionPointTimestamp'
1629-
- $ref: '#/components/schemas/DistributionPointData'
1626+
$ref: '#/components/schemas/DistributionPointItems'
16301627
maxItems: 2
16311628
minItems: 2
16321629
type: array
@@ -1637,6 +1634,11 @@ components:
16371634
format: double
16381635
type: number
16391636
type: array
1637+
DistributionPointItems:
1638+
description: List of distribution point.
1639+
oneOf:
1640+
- $ref: '#/components/schemas/DistributionPointTimestamp'
1641+
- $ref: '#/components/schemas/DistributionPointData'
16401642
DistributionPointTimestamp:
16411643
description: Distribution point timestamp. It should be in seconds and current.
16421644
format: double

.generator/schemas/v2/openapi.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,8 +654,8 @@ components:
654654
type: string
655655
ResourceID:
656656
description: 'Identifier, formatted as `type:id`. Supported types: `connection`,
657-
`dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`,
658-
`app-builder-app`, `connection`, `connection-group`.'
657+
`dashboard`, `integration-account`, `integration-webhook`, `notebook`, `reference-table`,
658+
`security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`.'
659659
example: dashboard:abc-def-ghi
660660
in: path
661661
name: resource_id
@@ -45734,6 +45734,10 @@ paths:
4573445734

4573545735
- Dashboards: `dashboard`
4573645736

45737+
- Integration Accounts: `integration-account`
45738+
45739+
- Integration Webhooks: `integration-webhook`
45740+
4573745741
- Notebooks: `notebook`
4573845742

4573945743
- Powerpacks: `powerpack`
@@ -45769,6 +45773,10 @@ paths:
4576945773

4577045774
Dashboards | `viewer`, `editor`
4577145775

45776+
Integration Accounts | `viewer`, `editor`
45777+
45778+
Integration Webhooks | `viewer`, `editor`
45779+
4577245780
Notebooks | `viewer`, `editor`
4577345781

4577445782
Powerpacks | `viewer`, `editor`

docs/datadog_api_client.v1.model.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,13 @@ datadog\_api\_client.v1.model.distribution\_point module
585585
:members:
586586
:show-inheritance:
587587

588+
datadog\_api\_client.v1.model.distribution\_point\_items module
589+
---------------------------------------------------------------
590+
591+
.. automodule:: datadog_api_client.v1.model.distribution_point_items
592+
:members:
593+
:show-inheritance:
594+
588595
datadog\_api\_client.v1.model.distribution\_points\_content\_encoding module
589596
----------------------------------------------------------------------------
590597

src/datadog_api_client/v1/model/distribution_point.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class DistributionPoint(ModelSimple):
1515
Array of distribution points.
1616
1717
18-
:type value: [float, [float]]
18+
:type value: [DistributionPointItems]
1919
"""
2020

2121
validations = {
@@ -27,6 +27,8 @@ class DistributionPoint(ModelSimple):
2727

2828
@cached_property
2929
def openapi_types(_):
30+
from datadog_api_client.v1.model.distribution_point_items import DistributionPointItems
31+
3032
return {
31-
"value": ([float, [float]],),
33+
"value": ([DistributionPointItems],),
3234
}
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+
7+
from datadog_api_client.model_utils import (
8+
ModelComposed,
9+
cached_property,
10+
)
11+
12+
13+
class DistributionPointItems(ModelComposed):
14+
def __init__(self, **kwargs):
15+
"""
16+
List of distribution point.
17+
"""
18+
super().__init__(kwargs)
19+
20+
@cached_property
21+
def _composed_schemas(_):
22+
# we need this here to make our import statements work
23+
# we must store _composed_schemas in here so the code is only run
24+
# when we invoke this method. If we kept this at the class
25+
# level we would get an error because the class level
26+
# code would be run when this module is imported, and these composed
27+
# classes don't exist yet because their module has not finished
28+
# loading
29+
return {
30+
"oneOf": [
31+
float,
32+
[float],
33+
],
34+
}

src/datadog_api_client/v1/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
from datadog_api_client.v1.model.delete_shared_dashboard_response import DeleteSharedDashboardResponse
8282
from datadog_api_client.v1.model.deleted_monitor import DeletedMonitor
8383
from datadog_api_client.v1.model.distribution_point import DistributionPoint
84+
from datadog_api_client.v1.model.distribution_point_items import DistributionPointItems
8485
from datadog_api_client.v1.model.distribution_points_content_encoding import DistributionPointsContentEncoding
8586
from datadog_api_client.v1.model.distribution_points_payload import DistributionPointsPayload
8687
from datadog_api_client.v1.model.distribution_points_series import DistributionPointsSeries
@@ -1167,6 +1168,7 @@
11671168
"DeleteSharedDashboardResponse",
11681169
"DeletedMonitor",
11691170
"DistributionPoint",
1171+
"DistributionPointItems",
11701172
"DistributionPointsContentEncoding",
11711173
"DistributionPointsPayload",
11721174
"DistributionPointsSeries",

src/datadog_api_client/v2/api/restriction_policies_api.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def delete_restriction_policy(
112112
113113
Deletes the restriction policy associated with a specified resource.
114114
115-
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group``.
115+
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``integration-account`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group``.
116116
:type resource_id: str
117117
:rtype: None
118118
"""
@@ -129,7 +129,7 @@ def get_restriction_policy(
129129
130130
Retrieves the restriction policy associated with a specified resource.
131131
132-
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group``.
132+
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``integration-account`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group``.
133133
:type resource_id: str
134134
:rtype: RestrictionPolicyResponse
135135
"""
@@ -154,6 +154,8 @@ def update_restriction_policy(
154154
Restriction policies can be applied to the following resources:
155155
156156
* Dashboards: ``dashboard``
157+
* Integration Accounts: ``integration-account``
158+
* Integration Webhooks: ``integration-webhook``
157159
* Notebooks: ``notebook``
158160
* Powerpacks: ``powerpack``
159161
* Reference Tables: ``reference-table``
@@ -177,6 +179,10 @@ def update_restriction_policy(
177179
- Supported Relations
178180
* - Dashboards
179181
- ``viewer`` , ``editor``
182+
* - Integration Accounts
183+
- ``viewer`` , ``editor``
184+
* - Integration Webhooks
185+
- ``viewer`` , ``editor``
180186
* - Notebooks
181187
- ``viewer`` , ``editor``
182188
* - Powerpacks
@@ -205,7 +211,7 @@ def update_restriction_policy(
205211
- ``viewer`` , ``editor``
206212
207213
208-
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group``.
214+
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``integration-account`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group``.
209215
:type resource_id: str
210216
:param body: Restriction policy payload
211217
:type body: RestrictionPolicyUpdateRequest

0 commit comments

Comments
 (0)