Skip to content

Commit 143aa31

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

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-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:07.184039",
8-
"spec_repo_commit": "5da0cd35"
7+
"regenerated": "2024-12-10 21:05:05.304349",
8+
"spec_repo_commit": "1c4c91d4"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-10 19:50:07.202868",
13-
"spec_repo_commit": "5da0cd35"
12+
"regenerated": "2024-12-10 21:05:05.323580",
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'

lib/datadog_api_client/v2/api/restriction_policies_api.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def delete_restriction_policy(resource_id, opts = {})
3535
#
3636
# Deletes the restriction policy associated with a specified resource.
3737
#
38-
# @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `security-rule`, `slo`.
38+
# @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`.
3939
# @param opts [Hash] the optional parameters
4040
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
4141
def delete_restriction_policy_with_http_info(resource_id, opts = {})
@@ -100,7 +100,7 @@ def get_restriction_policy(resource_id, opts = {})
100100
#
101101
# Retrieves the restriction policy associated with a specified resource.
102102
#
103-
# @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `security-rule`, `slo`.
103+
# @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`.
104104
# @param opts [Hash] the optional parameters
105105
# @return [Array<(RestrictionPolicyResponse, Integer, Hash)>] RestrictionPolicyResponse data, response status code and response headers
106106
def get_restriction_policy_with_http_info(resource_id, opts = {})
@@ -170,6 +170,7 @@ def update_restriction_policy(resource_id, body, opts = {})
170170
# - Dashboards: `dashboard`
171171
# - Notebooks: `notebook`
172172
# - Powerpacks: `powerpack`
173+
# - Reference Tables: `reference-table`
173174
# - Security Rules: `security-rule`
174175
# - Service Level Objectives: `slo`
175176
# - Synthetic Global Variables: `synthetics-global-variable`
@@ -189,8 +190,9 @@ def update_restriction_policy(resource_id, body, opts = {})
189190
# Synthetic Tests | `viewer`, `editor`
190191
# Synthetic Private Locations | `viewer`, `editor`
191192
# Monitors | `viewer`, `editor`
193+
# Reference Tables | `viewer`, `editor`
192194
#
193-
# @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `security-rule`, `slo`.
195+
# @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`.
194196
# @param body [RestrictionPolicyUpdateRequest] Restriction policy payload
195197
# @param opts [Hash] the optional parameters
196198
# @return [Array<(RestrictionPolicyResponse, Integer, Hash)>] RestrictionPolicyResponse data, response status code and response headers

0 commit comments

Comments
 (0)