Skip to content

Commit c76c6e1

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add reference-table type to restriction policy OpenAPI spec (#2306)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 977d2fa commit c76c6e1

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

.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": "2024-12-10 19:50:09.732319",
8-
"spec_repo_commit": "5da0cd35"
7+
"regenerated": "2024-12-10 21:05:11.810192",
8+
"spec_repo_commit": "1c4c91d4"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-10 19:50:09.751594",
13-
"spec_repo_commit": "5da0cd35"
12+
"regenerated": "2024-12-10 21:05:11.828443",
13+
"spec_repo_commit": "1c4c91d4"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ components:
597597
type: string
598598
ResourceID:
599599
description: 'Identifier, formatted as `type:id`. Supported types: `connection`,
600-
`dashboard`, `notebook`, `security-rule`, `slo`.'
600+
`dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`.'
601601
example: dashboard:abc-def-ghi
602602
in: path
603603
name: resource_id
@@ -37844,6 +37844,8 @@ paths:
3784437844

3784537845
- Powerpacks: `powerpack`
3784637846

37847+
- Reference Tables: `reference-table`
37848+
3784737849
- Security Rules: `security-rule`
3784837850

3784937851
- Service Level Objectives: `slo`
@@ -37879,7 +37881,9 @@ paths:
3787937881

3788037882
Synthetic Private Locations | `viewer`, `editor`
3788137883

37882-
Monitors | `viewer`, `editor`'
37884+
Monitors | `viewer`, `editor`
37885+
37886+
Reference Tables | `viewer`, `editor`'
3788337887
operationId: UpdateRestrictionPolicy
3788437888
parameters:
3788537889
- $ref: '#/components/parameters/ResourceID'

src/datadog_api_client/v2/api/restriction_policies_api.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def delete_restriction_policy(
103103
104104
Deletes the restriction policy associated with a specified resource.
105105
106-
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``notebook`` , ``security-rule`` , ``slo``.
106+
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo``.
107107
:type resource_id: str
108108
:rtype: None
109109
"""
@@ -120,7 +120,7 @@ def get_restriction_policy(
120120
121121
Retrieves the restriction policy associated with a specified resource.
122122
123-
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``notebook`` , ``security-rule`` , ``slo``.
123+
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo``.
124124
:type resource_id: str
125125
:rtype: RestrictionPolicyResponse
126126
"""
@@ -145,6 +145,7 @@ def update_restriction_policy(
145145
* Dashboards: ``dashboard``
146146
* Notebooks: ``notebook``
147147
* Powerpacks: ``powerpack``
148+
* Reference Tables: ``reference-table``
148149
* Security Rules: ``security-rule``
149150
* Service Level Objectives: ``slo``
150151
* Synthetic Global Variables: ``synthetics-global-variable``
@@ -177,9 +178,11 @@ def update_restriction_policy(
177178
- ``viewer`` , ``editor``
178179
* - Monitors
179180
- ``viewer`` , ``editor``
181+
* - Reference Tables
182+
- ``viewer`` , ``editor``
180183
181184
182-
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``notebook`` , ``security-rule`` , ``slo``.
185+
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo``.
183186
:type resource_id: str
184187
:param body: Restriction policy payload
185188
:type body: RestrictionPolicyUpdateRequest

0 commit comments

Comments
 (0)