diff --git a/.apigentools-info b/.apigentools-info index 7212c0ee36..9646041aee 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-07-07 12:19:28.111174", - "spec_repo_commit": "fa2473ca" + "regenerated": "2025-07-07 15:23:09.317957", + "spec_repo_commit": "d8a905f6" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-07-07 12:19:28.209312", - "spec_repo_commit": "fa2473ca" + "regenerated": "2025-07-07 15:23:09.333471", + "spec_repo_commit": "d8a905f6" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 4fe2bbb80c..3ee86e61f7 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -758,7 +758,7 @@ components: description: 'Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `integration-account`, `integration-service`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, - `connection`, `connection-group`, `rum-application`.' + `connection`, `connection-group`, `rum-application`, `cross-org-connection`.' example: dashboard:abc-def-ghi in: path name: resource_id @@ -56502,6 +56502,8 @@ paths: - RUM Applications: `rum-application` + - Cross Org Connections: `cross-org-connection` + #### Supported relations for resources @@ -56543,7 +56545,9 @@ paths: Connection Groups | `viewer`, `editor` - RUM Application | `viewer`, `editor`' + RUM Application | `viewer`, `editor` + + Cross Org Connections | `viewer`, `editor`' operationId: UpdateRestrictionPolicy parameters: - $ref: '#/components/parameters/ResourceID' 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 9ad3afe47e..b00ec85c09 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`` , ``integration-account`` , ``integration-service`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group`` , ``rum-application``. + :param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``integration-account`` , ``integration-service`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group`` , ``rum-application`` , ``cross-org-connection``. :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`` , ``integration-account`` , ``integration-service`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group`` , ``rum-application``. + :param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``integration-account`` , ``integration-service`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group`` , ``rum-application`` , ``cross-org-connection``. :type resource_id: str :rtype: RestrictionPolicyResponse """ @@ -171,6 +171,7 @@ def update_restriction_policy( * Connections: ``connection`` * Connection Groups: ``connection-group`` * RUM Applications: ``rum-application`` + * Cross Org Connections: ``cross-org-connection`` **Supported relations for resources** @@ -215,9 +216,11 @@ def update_restriction_policy( - ``viewer`` , ``editor`` * - RUM Application - ``viewer`` , ``editor`` + * - Cross Org Connections + - ``viewer`` , ``editor`` - :param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``integration-account`` , ``integration-service`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group`` , ``rum-application``. + :param resource_id: Identifier, formatted as ``type:id``. Supported types: ``connection`` , ``dashboard`` , ``integration-account`` , ``integration-service`` , ``integration-webhook`` , ``notebook`` , ``reference-table`` , ``security-rule`` , ``slo`` , ``workflow`` , ``app-builder-app`` , ``connection`` , ``connection-group`` , ``rum-application`` , ``cross-org-connection``. :type resource_id: str :param body: Restriction policy payload :type body: RestrictionPolicyUpdateRequest