Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SEC-13917] Add suppression-rule resource type #1868

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-08-26 18:14:52.742428",
"spec_repo_commit": "0857d88a"
"regenerated": "2024-08-27 08:15:20.379098",
"spec_repo_commit": "f621bf7a"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-08-26 18:14:52.760097",
"spec_repo_commit": "0857d88a"
"regenerated": "2024-08-27 08:15:20.397373",
"spec_repo_commit": "f621bf7a"
}
}
}
8 changes: 6 additions & 2 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ components:
type: string
ResourceID:
description: 'Identifier, formatted as `type:id`. Supported types: `connection`,
`dashboard`, `notebook`, `security-rule`, `slo`.'
`dashboard`, `notebook`, `security-rule`, `slo`, `suppression-rule`.'
example: dashboard:abc-def-ghi
in: path
name: resource_id
Expand Down Expand Up @@ -32720,6 +32720,8 @@ paths:

- Monitors: `monitor`

- Suppression Rules: `suppression-rule`


#### Supported relations for resources

Expand All @@ -32743,7 +32745,9 @@ paths:

Synthetic Private Locations | `viewer`, `editor`

Monitors | `viewer`, `editor`'
Monitors | `viewer`, `editor`

Suppression Rules | `viewer`, `editor`'
operationId: UpdateRestrictionPolicy
parameters:
- $ref: '#/components/parameters/ResourceID'
Expand Down
8 changes: 5 additions & 3 deletions lib/datadog_api_client/v2/api/restriction_policies_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def delete_restriction_policy(resource_id, opts = {})
#
# Deletes the restriction policy associated with a specified resource.
#
# @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `security-rule`, `slo`.
# @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `security-rule`, `slo`, `suppression-rule`.
# @param opts [Hash] the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
def delete_restriction_policy_with_http_info(resource_id, opts = {})
Expand Down Expand Up @@ -100,7 +100,7 @@ def get_restriction_policy(resource_id, opts = {})
#
# Retrieves the restriction policy associated with a specified resource.
#
# @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `security-rule`, `slo`.
# @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `security-rule`, `slo`, `suppression-rule`.
# @param opts [Hash] the optional parameters
# @return [Array<(RestrictionPolicyResponse, Integer, Hash)>] RestrictionPolicyResponse data, response status code and response headers
def get_restriction_policy_with_http_info(resource_id, opts = {})
Expand Down Expand Up @@ -176,6 +176,7 @@ def update_restriction_policy(resource_id, body, opts = {})
# - Synthetic Tests: `synthetics-test`
# - Synthetic Private Locations: `synthetics-private-location`
# - Monitors: `monitor`
# - Suppression Rules: `suppression-rule`
#
# #### Supported relations for resources
# Resource Type | Supported Relations
Expand All @@ -189,8 +190,9 @@ def update_restriction_policy(resource_id, body, opts = {})
# Synthetic Tests | `viewer`, `editor`
# Synthetic Private Locations | `viewer`, `editor`
# Monitors | `viewer`, `editor`
# Suppression Rules | `viewer`, `editor`
#
# @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `security-rule`, `slo`.
# @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `security-rule`, `slo`, `suppression-rule`.
# @param body [RestrictionPolicyUpdateRequest] Restriction policy payload
# @param opts [Hash] the optional parameters
# @return [Array<(RestrictionPolicyResponse, Integer, Hash)>] RestrictionPolicyResponse data, response status code and response headers
Expand Down
Loading