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

Add rum application to restriction policy #2459

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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-03-20 15:01:19.638714",
"spec_repo_commit": "0f5c928e"
"regenerated": "2025-03-24 15:09:07.499812",
"spec_repo_commit": "f532b3e9"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-03-20 15:01:19.653993",
"spec_repo_commit": "0f5c928e"
"regenerated": "2025-03-24 15:09:07.523942",
"spec_repo_commit": "f532b3e9"
}
}
}
8 changes: 6 additions & 2 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
@@ -655,7 +655,7 @@ components:
ResourceID:
description: 'Identifier, formatted as `type:id`. Supported types: `connection`,
`dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`,
`app-builder-app`, `connection`, `connection-group`.'
`app-builder-app`, `connection`, `connection-group`, `rum-application`.'
example: dashboard:abc-def-ghi
in: path
name: resource_id
@@ -45481,6 +45481,8 @@ paths:

- Connection Groups: `connection-group`

- RUM Applications: `rum-application`


#### Supported relations for resources

@@ -45514,7 +45516,9 @@ paths:

Connections | `viewer`, `resolver`, `editor`

Connection Groups | `viewer`, `editor`'
Connection Groups | `viewer`, `editor`

RUM Application | `viewer`, `editor`'
operationId: UpdateRestrictionPolicy
parameters:
- $ref: '#/components/parameters/ResourceID'
9 changes: 6 additions & 3 deletions src/datadog_api_client/v2/api/restriction_policies_api.py
Original file line number Diff line number Diff line change
@@ -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`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group`` , ``rum-application``.
:type resource_id: str
:rtype: None
"""
@@ -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`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group`` , ``rum-application``.
:type resource_id: str
:rtype: RestrictionPolicyResponse
"""
@@ -167,6 +167,7 @@ def update_restriction_policy(
* App Builder Apps: ``app-builder-app``
* Connections: ``connection``
* Connection Groups: ``connection-group``
* RUM Applications: ``rum-application``

**Supported relations for resources**

@@ -203,9 +204,11 @@ def update_restriction_policy(
- ``viewer`` , ``resolver`` , ``editor``
* - Connection Groups
- ``viewer`` , ``editor``
* - RUM Application
- ``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`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group`` , ``rum-application``.
:type resource_id: str
:param body: Restriction policy payload
:type body: RestrictionPolicyUpdateRequest