Skip to content

[docs] add integration-account and integration-webhook to restriction policy OpenAPI spec #579

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

Merged
Merged
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
@@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-04-04 16:55:39.734664",
"spec_repo_commit": "da94868e"
"regenerated": "2025-04-04 20:19:30.053070",
"spec_repo_commit": "3909ab62"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-04-04 16:55:39.750591",
"spec_repo_commit": "da94868e"
"regenerated": "2025-04-04 20:19:30.068607",
"spec_repo_commit": "3909ab62"
}
}
}
12 changes: 10 additions & 2 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
@@ -654,8 +654,8 @@ components:
type: string
ResourceID:
description: 'Identifier, formatted as `type:id`. Supported types: `connection`,
`dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`,
`app-builder-app`, `connection`, `connection-group`.'
`dashboard`, `integration-account`, `integration-webhook`, `notebook`, `reference-table`,
`security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`.'
example: dashboard:abc-def-ghi
in: path
name: resource_id
@@ -45734,6 +45734,10 @@ paths:

- Dashboards: `dashboard`

- Integration Accounts: `integration-account`

- Integration Webhooks: `integration-webhook`

- Notebooks: `notebook`

- Powerpacks: `powerpack`
@@ -45769,6 +45773,10 @@ paths:

Dashboards | `viewer`, `editor`

Integration Accounts | `viewer`, `editor`

Integration Webhooks | `viewer`, `editor`

Notebooks | `viewer`, `editor`

Powerpacks | `viewer`, `editor`
8 changes: 8 additions & 0 deletions src/datadogV2/api/api_restriction_policies.rs
Original file line number Diff line number Diff line change
@@ -325,6 +325,8 @@ impl RestrictionPoliciesAPI {
/// #### Supported resources
/// Restriction policies can be applied to the following resources:
/// - Dashboards: `dashboard`
/// - Integration Accounts: `integration-account`
/// - Integration Webhooks: `integration-webhook`
/// - Notebooks: `notebook`
/// - Powerpacks: `powerpack`
/// - Reference Tables: `reference-table`
@@ -343,6 +345,8 @@ impl RestrictionPoliciesAPI {
/// Resource Type | Supported Relations
/// ----------------------------|--------------------------
/// Dashboards | `viewer`, `editor`
/// Integration Accounts | `viewer`, `editor`
/// Integration Webhooks | `viewer`, `editor`
/// Notebooks | `viewer`, `editor`
/// Powerpacks | `viewer`, `editor`
/// Security Rules | `viewer`, `editor`
@@ -387,6 +391,8 @@ impl RestrictionPoliciesAPI {
/// #### Supported resources
/// Restriction policies can be applied to the following resources:
/// - Dashboards: `dashboard`
/// - Integration Accounts: `integration-account`
/// - Integration Webhooks: `integration-webhook`
/// - Notebooks: `notebook`
/// - Powerpacks: `powerpack`
/// - Reference Tables: `reference-table`
@@ -405,6 +411,8 @@ impl RestrictionPoliciesAPI {
/// Resource Type | Supported Relations
/// ----------------------------|--------------------------
/// Dashboards | `viewer`, `editor`
/// Integration Accounts | `viewer`, `editor`
/// Integration Webhooks | `viewer`, `editor`
/// Notebooks | `viewer`, `editor`
/// Powerpacks | `viewer`, `editor`
/// Security Rules | `viewer`, `editor`