Skip to content
Open
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
86 changes: 64 additions & 22 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -948,11 +948,17 @@ components:
schema:
type: string
ResourceID:
description: 'Identifier, formatted as `type:id`. Supported types: `dashboard`,
`integration-service`, `integration-webhook`, `notebook`, `reference-table`,
`security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`,
`rum-application`, `cross-org-connection`, `spreadsheet`, `on-call-schedule`,
`on-call-escalation-policy`, `on-call-team-routing-rules.'
description: 'Identifier, formatted as `type:id`. Supported types: `apm-service-ingestion-configuration`,
`app-builder-app`, `apps-datastore`, `aws-integration-configuration`, `azure-integration-configuration`,
`case-management-project`, `connection`, `connection-group`, `cross-org-connection`,
`dashboard`, `feature-flag`, `form`, `gcp-integration-configuration`, `integration`,
`integration-account`, `integration-service`, `integration-webhook`, `logs-archive`,
`logs-pipeline`, `logs-workspace`, `monitor`, `notebook`, `obs-pipelines-live-capture`,
`obs-pipelines-pipeline`, `on-call-escalation-policy`, `on-call-schedule`,
`on-call-team-routing-rules`, `powerpack`, `private-action-runner`, `reference-table`,
`rum-application`, `seat`, `security-rule`, `slo`, `spreadsheet`, `suppression-rule`,
`synthetics-global-variable`, `synthetics-private-location`, `synthetics-test`,
`workflow`.'
example: dashboard:abc-def-ghi
in: path
name: resource_id
Expand Down Expand Up @@ -70552,49 +70558,85 @@ paths:

Restriction policies can be applied to the following resources:

- APM Service Ingestion Configuration: `apm-service-ingestion-configuration`

- App Builder Apps: `app-builder-app`

- Apps Datastore: `apps-datastore`

- AWS Integration Configuration: `aws-integration-configuration`

- Azure Integration Configuration: `azure-integration-configuration`

- Case Management Project: `case-management-project`

- Connections: `connection`

- Connection Groups: `connection-group`

- Cross Org Connections: `cross-org-connection`

- Dashboards: `dashboard`

- Feature Flag: `feature-flag`

- Form: `form`

- GCP Integration Configuration: `gcp-integration-configuration`

- Integration: `integration`

- Integration Accounts: `integration-account`

- Integration Services: `integration-service`

- Integration Webhooks: `integration-webhook`

- Notebooks: `notebook`
- Logs Archive: `logs-archive`

- Powerpacks: `powerpack`
- Logs Pipeline: `logs-pipeline`

- Reference Tables: `reference-table`
- Logs Workspace: `logs-workspace`

- Security Rules: `security-rule`
- Monitors: `monitor`

- Service Level Objectives: `slo`
- Notebooks: `notebook`

- Synthetic Global Variables: `synthetics-global-variable`
- Observability Pipelines Live Capture: `obs-pipelines-live-capture`

- Synthetic Tests: `synthetics-test`
- Observability Pipelines Pipeline: `obs-pipelines-pipeline`

- Synthetic Private Locations: `synthetics-private-location`
- On-Call Escalation Policies: `on-call-escalation-policy`

- Monitors: `monitor`
- On-Call Schedules: `on-call-schedule`

- Workflows: `workflow`
- On-Call Team Routing Rules: `on-call-team-routing-rules`

- App Builder Apps: `app-builder-app`
- Powerpacks: `powerpack`

- Connections: `connection`
- Private Action Runner: `private-action-runner`

- Connection Groups: `connection-group`
- Reference Tables: `reference-table`

- RUM Applications: `rum-application`

- Cross Org Connections: `cross-org-connection`
- Seat: `seat`

- Security Rules: `security-rule`

- Service Level Objectives: `slo`

- Spreadsheets: `spreadsheet`

- On-Call Schedules: `on-call-schedule`
- Suppression Rule: `suppression-rule`

- On-Call Escalation Policies: `on-call-escalation-policy`
- Synthetic Global Variables: `synthetics-global-variable`

- On-Call Team Routing Rules: `on-call-team-routing-rules`
- Synthetic Private Locations: `synthetics-private-location`

- Synthetic Tests: `synthetics-test`

- Workflows: `workflow`


#### Supported relations for resources
Expand Down
46 changes: 32 additions & 14 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: ``dashboard`` , ``integration-service`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group`` , ``rum-application`` , ``cross-org-connection`` , ``spreadsheet`` , ``on-call-schedule`` , ``on-call-escalation-policy`` , `on-call-team-routing-rules.
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``apm-service-ingestion-configuration`` , ``app-builder-app`` , ``apps-datastore`` , ``aws-integration-configuration`` , ``azure-integration-configuration`` , ``case-management-project`` , ``connection`` , ``connection-group`` , ``cross-org-connection`` , ``dashboard`` , ``feature-flag`` , ``form`` , ``gcp-integration-configuration`` , ``integration`` , ``integration-account`` , ``integration-service`` , ``integration-webhook`` , ``logs-archive`` , ``logs-pipeline`` , ``logs-workspace`` , ``monitor`` , ``notebook`` , ``obs-pipelines-live-capture`` , ``obs-pipelines-pipeline`` , ``on-call-escalation-policy`` , ``on-call-schedule`` , ``on-call-team-routing-rules`` , ``powerpack`` , ``private-action-runner`` , ``reference-table`` , ``rum-application`` , ``seat`` , ``security-rule`` , ``slo`` , ``spreadsheet`` , ``suppression-rule`` , ``synthetics-global-variable`` , ``synthetics-private-location`` , ``synthetics-test`` , ``workflow``.
: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: ``dashboard`` , ``integration-service`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group`` , ``rum-application`` , ``cross-org-connection`` , ``spreadsheet`` , ``on-call-schedule`` , ``on-call-escalation-policy`` , `on-call-team-routing-rules.
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``apm-service-ingestion-configuration`` , ``app-builder-app`` , ``apps-datastore`` , ``aws-integration-configuration`` , ``azure-integration-configuration`` , ``case-management-project`` , ``connection`` , ``connection-group`` , ``cross-org-connection`` , ``dashboard`` , ``feature-flag`` , ``form`` , ``gcp-integration-configuration`` , ``integration`` , ``integration-account`` , ``integration-service`` , ``integration-webhook`` , ``logs-archive`` , ``logs-pipeline`` , ``logs-workspace`` , ``monitor`` , ``notebook`` , ``obs-pipelines-live-capture`` , ``obs-pipelines-pipeline`` , ``on-call-escalation-policy`` , ``on-call-schedule`` , ``on-call-team-routing-rules`` , ``powerpack`` , ``private-action-runner`` , ``reference-table`` , ``rum-application`` , ``seat`` , ``security-rule`` , ``slo`` , ``spreadsheet`` , ``suppression-rule`` , ``synthetics-global-variable`` , ``synthetics-private-location`` , ``synthetics-test`` , ``workflow``.
:type resource_id: str
:rtype: RestrictionPolicyResponse
"""
Expand All @@ -153,28 +153,46 @@ def update_restriction_policy(

Restriction policies can be applied to the following resources:

* APM Service Ingestion Configuration: ``apm-service-ingestion-configuration``
* App Builder Apps: ``app-builder-app``
* Apps Datastore: ``apps-datastore``
* AWS Integration Configuration: ``aws-integration-configuration``
* Azure Integration Configuration: ``azure-integration-configuration``
* Case Management Project: ``case-management-project``
* Connections: ``connection``
* Connection Groups: ``connection-group``
* Cross Org Connections: ``cross-org-connection``
* Dashboards: ``dashboard``
* Feature Flag: ``feature-flag``
* Form: ``form``
* GCP Integration Configuration: ``gcp-integration-configuration``
* Integration: ``integration``
* Integration Accounts: ``integration-account``
* Integration Services: ``integration-service``
* Integration Webhooks: ``integration-webhook``
* Logs Archive: ``logs-archive``
* Logs Pipeline: ``logs-pipeline``
* Logs Workspace: ``logs-workspace``
* Monitors: ``monitor``
* Notebooks: ``notebook``
* Observability Pipelines Live Capture: ``obs-pipelines-live-capture``
* Observability Pipelines Pipeline: ``obs-pipelines-pipeline``
* On-Call Escalation Policies: ``on-call-escalation-policy``
* On-Call Schedules: ``on-call-schedule``
* On-Call Team Routing Rules: ``on-call-team-routing-rules``
* Powerpacks: ``powerpack``
* Private Action Runner: ``private-action-runner``
* Reference Tables: ``reference-table``
* RUM Applications: ``rum-application``
* Seat: ``seat``
* Security Rules: ``security-rule``
* Service Level Objectives: ``slo``
* Spreadsheets: ``spreadsheet``
* Suppression Rule: ``suppression-rule``
* Synthetic Global Variables: ``synthetics-global-variable``
* Synthetic Tests: ``synthetics-test``
* Synthetic Private Locations: ``synthetics-private-location``
* Monitors: ``monitor``
* Synthetic Tests: ``synthetics-test``
* Workflows: ``workflow``
* App Builder Apps: ``app-builder-app``
* Connections: ``connection``
* Connection Groups: ``connection-group``
* RUM Applications: ``rum-application``
* Cross Org Connections: ``cross-org-connection``
* Spreadsheets: ``spreadsheet``
* On-Call Schedules: ``on-call-schedule``
* On-Call Escalation Policies: ``on-call-escalation-policy``
* On-Call Team Routing Rules: ``on-call-team-routing-rules``

**Supported relations for resources**

Expand Down Expand Up @@ -229,7 +247,7 @@ def update_restriction_policy(
- ``viewer`` , ``editor``


:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``dashboard`` , ``integration-service`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group`` , ``rum-application`` , ``cross-org-connection`` , ``spreadsheet`` , ``on-call-schedule`` , ``on-call-escalation-policy`` , `on-call-team-routing-rules.
:param resource_id: Identifier, formatted as ``type:id``. Supported types: ``apm-service-ingestion-configuration`` , ``app-builder-app`` , ``apps-datastore`` , ``aws-integration-configuration`` , ``azure-integration-configuration`` , ``case-management-project`` , ``connection`` , ``connection-group`` , ``cross-org-connection`` , ``dashboard`` , ``feature-flag`` , ``form`` , ``gcp-integration-configuration`` , ``integration`` , ``integration-account`` , ``integration-service`` , ``integration-webhook`` , ``logs-archive`` , ``logs-pipeline`` , ``logs-workspace`` , ``monitor`` , ``notebook`` , ``obs-pipelines-live-capture`` , ``obs-pipelines-pipeline`` , ``on-call-escalation-policy`` , ``on-call-schedule`` , ``on-call-team-routing-rules`` , ``powerpack`` , ``private-action-runner`` , ``reference-table`` , ``rum-application`` , ``seat`` , ``security-rule`` , ``slo`` , ``spreadsheet`` , ``suppression-rule`` , ``synthetics-global-variable`` , ``synthetics-private-location`` , ``synthetics-test`` , ``workflow``.
:type resource_id: str
:param body: Restriction policy payload
:type body: RestrictionPolicyUpdateRequest
Expand Down