Skip to content

Commit d6264e6

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add monitor to restriction policy api public spec (#2098)
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 2e7dc23 commit d6264e6

File tree

3 files changed

+30
-23
lines changed

3 files changed

+30
-23
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-08 08:10:16.011231",
8-
"spec_repo_commit": "c8305c07"
7+
"regenerated": "2024-08-08 20:00:58.505321",
8+
"spec_repo_commit": "643e3eaf"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-08 08:10:16.028642",
13-
"spec_repo_commit": "c8305c07"
12+
"regenerated": "2024-08-08 20:00:58.522985",
13+
"spec_repo_commit": "643e3eaf"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32602,34 +32602,38 @@ paths:
3260232602

3260332603
- Service Level Objectives: `slo`
3260432604

32605-
- Synthetic Global Variable: `synthetic-global-variable`
32605+
- Synthetic Global Variables: `synthetic-global-variable`
3260632606

32607-
- Synthetic Test: `synthetic-test`
32607+
- Synthetic Tests: `synthetic-test`
3260832608

32609-
- Synthetic Private Location: `synthetic-private-location`
32609+
- Synthetic Private Locations: `synthetic-private-location`
32610+
32611+
- Monitors: `monitor`
3261032612

3261132613

3261232614
#### Supported relations for resources
3261332615

32614-
Resource Type | Supported Relations
32616+
Resource Type | Supported Relations
32617+
32618+
----------------------------|--------------------------
3261532619

32616-
---------------------------|--------------------------
32620+
Dashboards | `viewer`, `editor`
3261732621

32618-
Dashboards | `viewer`, `editor`
32622+
Notebooks | `viewer`, `editor`
3261932623

32620-
Notebooks | `viewer`, `editor`
32624+
Powerpacks | `viewer`, `editor`
3262132625

32622-
Powerpacks | `viewer`, `editor`
32626+
Security Rules | `viewer`, `editor`
3262332627

32624-
Security Rules | `viewer`, `editor`
32628+
Service Level Objectives | `viewer`, `editor`
3262532629

32626-
Service Level Objectives | `viewer`, `editor`
32630+
Synthetic Global Variables | `viewer`, `editor`
3262732631

32628-
Synthetic Global Variable | `viewer`, `editor`
32632+
Synthetic Tests | `viewer`, `editor`
3262932633

32630-
Synthetic Test | `viewer`, `editor`
32634+
Synthetic Private Locations | `viewer`, `editor`
3263132635

32632-
Synthetic Private Location | `viewer`, `editor`'
32636+
Monitors | `viewer`, `editor`'
3263332637
operationId: UpdateRestrictionPolicy
3263432638
parameters:
3263532639
- $ref: '#/components/parameters/ResourceID'

src/datadog_api_client/v2/api/restriction_policies_api.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,10 @@ 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``
150+
* Synthetic Global Variables: ``synthetic-global-variable``
151+
* Synthetic Tests: ``synthetic-test``
152+
* Synthetic Private Locations: ``synthetic-private-location``
153+
* Monitors: ``monitor``
153154
154155
**Supported relations for resources**
155156
@@ -168,11 +169,13 @@ def update_restriction_policy(
168169
- ``viewer`` , ``editor``
169170
* - Service Level Objectives
170171
- ``viewer`` , ``editor``
171-
* - Synthetic Global Variable
172+
* - Synthetic Global Variables
172173
- ``viewer`` , ``editor``
173-
* - Synthetic Test
174+
* - Synthetic Tests
174175
- ``viewer`` , ``editor``
175-
* - Synthetic Private Location
176+
* - Synthetic Private Locations
177+
- ``viewer`` , ``editor``
178+
* - Monitors
176179
- ``viewer`` , ``editor``
177180
178181

0 commit comments

Comments
 (0)