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

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

Merged
Merged
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": "2025-04-04 16:55:45.187360",
"spec_repo_commit": "da94868e"
"regenerated": "2025-04-04 20:19:29.358542",
"spec_repo_commit": "3909ab62"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-04-04 16:55:45.204117",
"spec_repo_commit": "da94868e"
"regenerated": "2025-04-04 20:19:29.373801",
"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
Expand Up @@ -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
Expand Down Expand Up @@ -45734,6 +45734,10 @@ paths:

- Dashboards: `dashboard`

- Integration Accounts: `integration-account`

- Integration Webhooks: `integration-webhook`

- Notebooks: `notebook`

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

Dashboards | `viewer`, `editor`

Integration Accounts | `viewer`, `editor`

Integration Webhooks | `viewer`, `editor`

Notebooks | `viewer`, `editor`

Powerpacks | `viewer`, `editor`
Expand Down
12 changes: 9 additions & 3 deletions src/datadog_api_client/v2/api/restriction_policies_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def delete_restriction_policy(

Deletes the restriction policy associated with a specified resource.

:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group``.
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``integration-account`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group``.
:type resource_id: str
:rtype: None
"""
Expand All @@ -129,7 +129,7 @@ def get_restriction_policy(

Retrieves the restriction policy associated with a specified resource.

:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group``.
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``integration-account`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group``.
:type resource_id: str
:rtype: RestrictionPolicyResponse
"""
Expand All @@ -154,6 +154,8 @@ def update_restriction_policy(
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``
Expand All @@ -177,6 +179,10 @@ def update_restriction_policy(
- Supported Relations
* - Dashboards
- ``viewer`` , ``editor``
* - Integration Accounts
- ``viewer`` , ``editor``
* - Integration Webhooks
- ``viewer`` , ``editor``
* - Notebooks
- ``viewer`` , ``editor``
* - Powerpacks
Expand Down Expand Up @@ -205,7 +211,7 @@ def update_restriction_policy(
- ``viewer`` , ``editor``


:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group``.
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``integration-account`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group``.
:type resource_id: str
:param body: Restriction policy payload
:type body: RestrictionPolicyUpdateRequest
Expand Down