Skip to content

Commit f4cc37a

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[LOGSAC-1298] Add logs-pipeline type to restriction policy OpenAPI spec (#3434)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent fff03f3 commit f4cc37a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ components:
938938
`integration-service`, `integration-webhook`, `notebook`, `reference-table`,
939939
`security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`,
940940
`rum-application`, `cross-org-connection`, `spreadsheet`, `on-call-schedule`,
941-
`on-call-escalation-policy`, `on-call-team-routing-rules.'
941+
`on-call-escalation-policy`, `on-call-team-routing-rules`, `logs-pipeline`.'
942942
example: dashboard:abc-def-ghi
943943
in: path
944944
name: resource_id
@@ -71303,6 +71303,8 @@ paths:
7130371303

7130471304
- On-Call Team Routing Rules: `on-call-team-routing-rules`
7130571305

71306+
- Logs Pipelines: `logs-pipeline`
71307+
7130671308

7130771309
#### Supported relations for resources
7130871310

@@ -71352,7 +71354,9 @@ paths:
7135271354

7135371355
On-Call Escalation Policies | `viewer`, `editor`
7135471356

71355-
On-Call Team Routing Rules | `viewer`, `editor`'
71357+
On-Call Team Routing Rules | `viewer`, `editor`
71358+
71359+
Logs Pipelines | `viewer`, `processors_editor`, `editor`'
7135671360
operationId: UpdateRestrictionPolicy
7135771361
parameters:
7135871362
- $ref: '#/components/parameters/ResourceID'

api/datadogV2/api_restriction_policies.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ func (r *UpdateRestrictionPolicyOptionalParameters) WithAllowSelfLockout(allowSe
205205
// - On-Call Schedules: `on-call-schedule`
206206
// - On-Call Escalation Policies: `on-call-escalation-policy`
207207
// - On-Call Team Routing Rules: `on-call-team-routing-rules`
208+
// - Logs Pipelines: `logs-pipeline`
208209
//
209210
// #### Supported relations for resources
210211
// Resource Type | Supported Relations
@@ -231,6 +232,7 @@ func (r *UpdateRestrictionPolicyOptionalParameters) WithAllowSelfLockout(allowSe
231232
// On-Call Schedules | `viewer`, `overrider`, `editor`
232233
// On-Call Escalation Policies | `viewer`, `editor`
233234
// On-Call Team Routing Rules | `viewer`, `editor`
235+
// Logs Pipelines | `viewer`, `processors_editor`, `editor`
234236
func (a *RestrictionPoliciesApi) UpdateRestrictionPolicy(ctx _context.Context, resourceId string, body RestrictionPolicyUpdateRequest, o ...UpdateRestrictionPolicyOptionalParameters) (RestrictionPolicyResponse, *_nethttp.Response, error) {
235237
var (
236238
localVarHTTPMethod = _nethttp.MethodPost

0 commit comments

Comments
 (0)