Skip to content

Commit 64e5402

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

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'

packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.ts

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

333333
export interface RestrictionPoliciesApiDeleteRestrictionPolicyRequest {
334334
/**
335-
* 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.
335+
* 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`.
336336
* @type string
337337
*/
338338
resourceId: string;
339339
}
340340

341341
export interface RestrictionPoliciesApiGetRestrictionPolicyRequest {
342342
/**
343-
* 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.
343+
* 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`.
344344
* @type string
345345
*/
346346
resourceId: string;
347347
}
348348

349349
export interface RestrictionPoliciesApiUpdateRestrictionPolicyRequest {
350350
/**
351-
* 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.
351+
* 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`.
352352
* @type string
353353
*/
354354
resourceId: string;
@@ -452,6 +452,7 @@ export class RestrictionPoliciesApi {
452452
* - On-Call Schedules: `on-call-schedule`
453453
* - On-Call Escalation Policies: `on-call-escalation-policy`
454454
* - On-Call Team Routing Rules: `on-call-team-routing-rules`
455+
* - Logs Pipelines: `logs-pipeline`
455456
*
456457
* #### Supported relations for resources
457458
* Resource Type | Supported Relations
@@ -478,6 +479,7 @@ export class RestrictionPoliciesApi {
478479
* On-Call Schedules | `viewer`, `overrider`, `editor`
479480
* On-Call Escalation Policies | `viewer`, `editor`
480481
* On-Call Team Routing Rules | `viewer`, `editor`
482+
* Logs Pipelines | `viewer`, `processors_editor`, `editor`
481483
* @param param The request object
482484
*/
483485
public updateRestrictionPolicy(

0 commit comments

Comments
 (0)