diff --git a/.apigentools-info b/.apigentools-info index fa503b26be..7ec681136f 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -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" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 65222d02bf..87935c5f60 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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` diff --git a/src/datadog_api_client/v2/api/restriction_policies_api.py b/src/datadog_api_client/v2/api/restriction_policies_api.py index da074f603a..19be363ef3 100644 --- a/src/datadog_api_client/v2/api/restriction_policies_api.py +++ b/src/datadog_api_client/v2/api/restriction_policies_api.py @@ -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 """ @@ -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 """ @@ -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`` @@ -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 @@ -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