From f4cc37a7c006bd221d1dda223a336477836bebf1 Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Tue, 28 Oct 2025 10:33:54 +0000 Subject: [PATCH] [LOGSAC-1298] Add logs-pipeline type to restriction policy OpenAPI spec (#3434) Co-authored-by: ci.datadog-api-spec --- .generator/schemas/v2/openapi.yaml | 8 ++++++-- api/datadogV2/api_restriction_policies.go | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index ebf63b5fa28..c31c76079af 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -938,7 +938,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 @@ -71303,6 +71303,8 @@ paths: - On-Call Team Routing Rules: `on-call-team-routing-rules` + - Logs Pipelines: `logs-pipeline` + #### Supported relations for resources @@ -71352,7 +71354,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/api/datadogV2/api_restriction_policies.go b/api/datadogV2/api_restriction_policies.go index 97ecb00aca6..74a34750b1d 100644 --- a/api/datadogV2/api_restriction_policies.go +++ b/api/datadogV2/api_restriction_policies.go @@ -205,6 +205,7 @@ func (r *UpdateRestrictionPolicyOptionalParameters) WithAllowSelfLockout(allowSe // - 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 @@ -231,6 +232,7 @@ func (r *UpdateRestrictionPolicyOptionalParameters) WithAllowSelfLockout(allowSe // 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` func (a *RestrictionPoliciesApi) UpdateRestrictionPolicy(ctx _context.Context, resourceId string, body RestrictionPolicyUpdateRequest, o ...UpdateRestrictionPolicyOptionalParameters) (RestrictionPolicyResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost