Skip to content

Commit 86a83fb

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

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
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'

services/restriction_policies/src/v2/RestrictionPoliciesApi.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,23 +370,23 @@ export class RestrictionPoliciesApiResponseProcessor {
370370

371371
export interface RestrictionPoliciesApiDeleteRestrictionPolicyRequest {
372372
/**
373-
* 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.
373+
* 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`.
374374
* @type string
375375
*/
376376
resourceId: string;
377377
}
378378

379379
export interface RestrictionPoliciesApiGetRestrictionPolicyRequest {
380380
/**
381-
* 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.
381+
* 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`.
382382
* @type string
383383
*/
384384
resourceId: string;
385385
}
386386

387387
export interface RestrictionPoliciesApiUpdateRestrictionPolicyRequest {
388388
/**
389-
* 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.
389+
* 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`.
390390
* @type string
391391
*/
392392
resourceId: string;
@@ -493,6 +493,7 @@ export class RestrictionPoliciesApi {
493493
* - On-Call Schedules: `on-call-schedule`
494494
* - On-Call Escalation Policies: `on-call-escalation-policy`
495495
* - On-Call Team Routing Rules: `on-call-team-routing-rules`
496+
* - Logs Pipelines: `logs-pipeline`
496497
*
497498
* #### Supported relations for resources
498499
* Resource Type | Supported Relations
@@ -519,6 +520,7 @@ export class RestrictionPoliciesApi {
519520
* On-Call Schedules | `viewer`, `overrider`, `editor`
520521
* On-Call Escalation Policies | `viewer`, `editor`
521522
* On-Call Team Routing Rules | `viewer`, `editor`
523+
* Logs Pipelines | `viewer`, `processors_editor`, `editor`
522524
* @param param The request object
523525
*/
524526
public updateRestrictionPolicy(

0 commit comments

Comments
 (0)