From 1e40eda2a4d06aaac28efe48e4c913f85ae4f793 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Mon, 27 Oct 2025 12:33:50 +0000 Subject: [PATCH] Regenerate client from commit c7d416f of spec repo --- .generator/schemas/v2/openapi.yaml | 8 ++++++-- lib/datadog_api_client/v2/api/restriction_policies_api.rb | 8 +++++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 59c7b8b08efc..efed2daa0411 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -952,7 +952,7 @@ components: `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.' + `on-call-escalation-policy`, `on-call-team-routing-rules`, `logs-pipeline`.' example: dashboard:abc-def-ghi in: path name: resource_id @@ -71283,6 +71283,8 @@ paths: - On-Call Team Routing Rules: `on-call-team-routing-rules` + - Logs Pipelines: `logs-pipeline` + #### Supported relations for resources @@ -71332,7 +71334,9 @@ paths: On-Call Escalation Policies | `viewer`, `editor` - On-Call Team Routing Rules | `viewer`, `editor`' + On-Call Team Routing Rules | `viewer`, `editor` + + Logs Pipelines | `viewer`, `processors_editor`, `editor`' operationId: UpdateRestrictionPolicy parameters: - $ref: '#/components/parameters/ResourceID' diff --git a/lib/datadog_api_client/v2/api/restriction_policies_api.rb b/lib/datadog_api_client/v2/api/restriction_policies_api.rb index a27242cacf28..3b604a64db0e 100644 --- a/lib/datadog_api_client/v2/api/restriction_policies_api.rb +++ b/lib/datadog_api_client/v2/api/restriction_policies_api.rb @@ -35,7 +35,7 @@ def delete_restriction_policy(resource_id, opts = {}) # # Deletes the restriction policy associated with a specified resource. # - # @param resource_id [String] 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 [String] 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`, `logs-pipeline`. # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_restriction_policy_with_http_info(resource_id, opts = {}) @@ -100,7 +100,7 @@ def get_restriction_policy(resource_id, opts = {}) # # Retrieves the restriction policy associated with a specified resource. # - # @param resource_id [String] 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 [String] 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`, `logs-pipeline`. # @param opts [Hash] the optional parameters # @return [Array<(RestrictionPolicyResponse, Integer, Hash)>] RestrictionPolicyResponse data, response status code and response headers def get_restriction_policy_with_http_info(resource_id, opts = {}) @@ -189,6 +189,7 @@ def update_restriction_policy(resource_id, body, opts = {}) # - On-Call Schedules: `on-call-schedule` # - On-Call Escalation Policies: `on-call-escalation-policy` # - On-Call Team Routing Rules: `on-call-team-routing-rules` + # - Logs Pipelines: `logs-pipeline` # # #### Supported relations for resources # Resource Type | Supported Relations @@ -215,8 +216,9 @@ def update_restriction_policy(resource_id, body, opts = {}) # On-Call Schedules | `viewer`, `overrider`, `editor` # On-Call Escalation Policies | `viewer`, `editor` # On-Call Team Routing Rules | `viewer`, `editor` + # Logs Pipelines | `viewer`, `processors_editor`, `editor` # - # @param resource_id [String] 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 [String] 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`, `logs-pipeline`. # @param body [RestrictionPolicyUpdateRequest] Restriction policy payload # @param opts [Hash] the optional parameters # @option opts [Boolean] :allow_self_lockout Allows admins (users with the `user_access_manage` permission) to remove their own access from the resource if set to `true`. By default, this is set to `false`, preventing admins from locking themselves out.