Skip to content

Commit 3392e32

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add monitor to restriction policy api public spec (#1945)
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 9c13437 commit 3392e32

File tree

3 files changed

+36
-30
lines changed

3 files changed

+36
-30
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:19.875928",
8-
"spec_repo_commit": "c8305c07"
7+
"regenerated": "2024-08-08 20:00:53.893046",
8+
"spec_repo_commit": "643e3eaf"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-08 08:10:19.893544",
13-
"spec_repo_commit": "c8305c07"
12+
"regenerated": "2024-08-08 20:00:53.919209",
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'

lib/datadog_api_client/v2/api/restriction_policies_api.rb

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -172,21 +172,23 @@ def update_restriction_policy(resource_id, body, opts = {})
172172
# - Powerpacks: `powerpack`
173173
# - Security Rules: `security-rule`
174174
# - Service Level Objectives: `slo`
175-
# - Synthetic Global Variable: `synthetic-global-variable`
176-
# - Synthetic Test: `synthetic-test`
177-
# - Synthetic Private Location: `synthetic-private-location`
175+
# - Synthetic Global Variables: `synthetic-global-variable`
176+
# - Synthetic Tests: `synthetic-test`
177+
# - Synthetic Private Locations: `synthetic-private-location`
178+
# - Monitors: `monitor`
178179
#
179180
# #### Supported relations for resources
180-
# Resource Type | Supported Relations
181-
# ---------------------------|--------------------------
182-
# Dashboards | `viewer`, `editor`
183-
# Notebooks | `viewer`, `editor`
184-
# Powerpacks | `viewer`, `editor`
185-
# Security Rules | `viewer`, `editor`
186-
# Service Level Objectives | `viewer`, `editor`
187-
# Synthetic Global Variable | `viewer`, `editor`
188-
# Synthetic Test | `viewer`, `editor`
189-
# Synthetic Private Location | `viewer`, `editor`
181+
# Resource Type | Supported Relations
182+
# ----------------------------|--------------------------
183+
# Dashboards | `viewer`, `editor`
184+
# Notebooks | `viewer`, `editor`
185+
# Powerpacks | `viewer`, `editor`
186+
# Security Rules | `viewer`, `editor`
187+
# Service Level Objectives | `viewer`, `editor`
188+
# Synthetic Global Variables | `viewer`, `editor`
189+
# Synthetic Tests | `viewer`, `editor`
190+
# Synthetic Private Locations | `viewer`, `editor`
191+
# Monitors | `viewer`, `editor`
190192
#
191193
# @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `security-rule`, `slo`.
192194
# @param body [RestrictionPolicyUpdateRequest] Restriction policy payload

0 commit comments

Comments
 (0)