Skip to content

Commit 2c34292

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[LOGSAC-1298] Add logs-pipeline type to restriction policy OpenAPI spec (#995)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 601a47a commit 2c34292

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-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'

src/datadogV2/api/api_restriction_policies.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ impl RestrictionPoliciesAPI {
346346
/// - On-Call Schedules: `on-call-schedule`
347347
/// - On-Call Escalation Policies: `on-call-escalation-policy`
348348
/// - On-Call Team Routing Rules: `on-call-team-routing-rules`
349+
/// - Logs Pipelines: `logs-pipeline`
349350
///
350351
/// #### Supported relations for resources
351352
/// Resource Type | Supported Relations
@@ -372,6 +373,7 @@ impl RestrictionPoliciesAPI {
372373
/// On-Call Schedules | `viewer`, `overrider`, `editor`
373374
/// On-Call Escalation Policies | `viewer`, `editor`
374375
/// On-Call Team Routing Rules | `viewer`, `editor`
376+
/// Logs Pipelines | `viewer`, `processors_editor`, `editor`
375377
pub async fn update_restriction_policy(
376378
&self,
377379
resource_id: String,
@@ -424,6 +426,7 @@ impl RestrictionPoliciesAPI {
424426
/// - On-Call Schedules: `on-call-schedule`
425427
/// - On-Call Escalation Policies: `on-call-escalation-policy`
426428
/// - On-Call Team Routing Rules: `on-call-team-routing-rules`
429+
/// - Logs Pipelines: `logs-pipeline`
427430
///
428431
/// #### Supported relations for resources
429432
/// Resource Type | Supported Relations
@@ -450,6 +453,7 @@ impl RestrictionPoliciesAPI {
450453
/// On-Call Schedules | `viewer`, `overrider`, `editor`
451454
/// On-Call Escalation Policies | `viewer`, `editor`
452455
/// On-Call Team Routing Rules | `viewer`, `editor`
456+
/// Logs Pipelines | `viewer`, `processors_editor`, `editor`
453457
pub async fn update_restriction_policy_with_http_info(
454458
&self,
455459
resource_id: String,

0 commit comments

Comments
 (0)