Skip to content

Commit e6df7a4

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
ACCESSINT-23 Add synthetic resources to restriction policy api spec (#2085)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 83c4855 commit e6df7a4

File tree

3 files changed

+32
-11
lines changed

3 files changed

+32
-11
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-08-01 14:34:28.948043",
8-
"spec_repo_commit": "d28278c6"
7+
"regenerated": "2024-08-01 17:35:37.919014",
8+
"spec_repo_commit": "0ac23b7a"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-01 14:34:28.967083",
13-
"spec_repo_commit": "d28278c6"
12+
"regenerated": "2024-08-01 17:35:37.936141",
13+
"spec_repo_commit": "0ac23b7a"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32507,22 +32507,34 @@ paths:
3250732507

3250832508
- Service Level Objectives: `slo`
3250932509

32510+
- Synthetic Global Variable: `synthetic-global-variable`
32511+
32512+
- Synthetic Test: `synthetic-test`
32513+
32514+
- Synthetic Private Location: `synthetic-private-location`
32515+
3251032516

3251132517
#### Supported relations for resources
3251232518

32513-
Resource Type | Supported Relations
32519+
Resource Type | Supported Relations
32520+
32521+
---------------------------|--------------------------
32522+
32523+
Dashboards | `viewer`, `editor`
32524+
32525+
Notebooks | `viewer`, `editor`
3251432526

32515-
-------------------------|--------------------------
32527+
Powerpacks | `viewer`, `editor`
3251632528

32517-
Dashboards | `viewer`, `editor`
32529+
Security Rules | `viewer`, `editor`
3251832530

32519-
Notebooks | `viewer`, `editor`
32531+
Service Level Objectives | `viewer`, `editor`
3252032532

32521-
Powerpacks | `viewer`, `editor`
32533+
Synthetic Global Variable | `viewer`, `editor`
3252232534

32523-
Security Rules | `viewer`, `editor`
32535+
Synthetic Test | `viewer`, `editor`
3252432536

32525-
Service Level Objectives | `viewer`, `editor`'
32537+
Synthetic Private Location | `viewer`, `editor`'
3252632538
operationId: UpdateRestrictionPolicy
3252732539
parameters:
3252832540
- $ref: '#/components/parameters/ResourceID'

src/datadog_api_client/v2/api/restriction_policies_api.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ def update_restriction_policy(
147147
* Powerpacks: ``powerpack``
148148
* Security Rules: ``security-rule``
149149
* Service Level Objectives: ``slo``
150+
* Synthetic Global Variable: ``synthetic-global-variable``
151+
* Synthetic Test: ``synthetic-test``
152+
* Synthetic Private Location: ``synthetic-private-location``
150153
151154
**Supported relations for resources**
152155
@@ -165,6 +168,12 @@ def update_restriction_policy(
165168
- ``viewer`` , ``editor``
166169
* - Service Level Objectives
167170
- ``viewer`` , ``editor``
171+
* - Synthetic Global Variable
172+
- ``viewer`` , ``editor``
173+
* - Synthetic Test
174+
- ``viewer`` , ``editor``
175+
* - Synthetic Private Location
176+
- ``viewer`` , ``editor``
168177
169178
170179
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``notebook`` , ``security-rule`` , ``slo``.

0 commit comments

Comments
 (0)