Skip to content

Commit 7687f7d

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

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'

lib/datadog_api_client/v2/api/restriction_policies_api.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def delete_restriction_policy(resource_id, opts = {})
3535
#
3636
# Deletes the restriction policy associated with a specified resource.
3737
#
38-
# @param resource_id [String] 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.
38+
# @param resource_id [String] 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`.
3939
# @param opts [Hash] the optional parameters
4040
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
4141
def delete_restriction_policy_with_http_info(resource_id, opts = {})
@@ -100,7 +100,7 @@ def get_restriction_policy(resource_id, opts = {})
100100
#
101101
# Retrieves the restriction policy associated with a specified resource.
102102
#
103-
# @param resource_id [String] 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.
103+
# @param resource_id [String] 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`.
104104
# @param opts [Hash] the optional parameters
105105
# @return [Array<(RestrictionPolicyResponse, Integer, Hash)>] RestrictionPolicyResponse data, response status code and response headers
106106
def get_restriction_policy_with_http_info(resource_id, opts = {})
@@ -189,6 +189,7 @@ def update_restriction_policy(resource_id, body, opts = {})
189189
# - On-Call Schedules: `on-call-schedule`
190190
# - On-Call Escalation Policies: `on-call-escalation-policy`
191191
# - On-Call Team Routing Rules: `on-call-team-routing-rules`
192+
# - Logs Pipelines: `logs-pipeline`
192193
#
193194
# #### Supported relations for resources
194195
# Resource Type | Supported Relations
@@ -215,8 +216,9 @@ def update_restriction_policy(resource_id, body, opts = {})
215216
# On-Call Schedules | `viewer`, `overrider`, `editor`
216217
# On-Call Escalation Policies | `viewer`, `editor`
217218
# On-Call Team Routing Rules | `viewer`, `editor`
219+
# Logs Pipelines | `viewer`, `processors_editor`, `editor`
218220
#
219-
# @param resource_id [String] 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.
221+
# @param resource_id [String] 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`.
220222
# @param body [RestrictionPolicyUpdateRequest] Restriction policy payload
221223
# @param opts [Hash] the optional parameters
222224
# @option opts [Boolean] :allow_self_lockout Allows admins (users with the `user_access_manage` permission) to remove their own access from the resource if set to `true`. By default, this is set to `false`, preventing admins from locking themselves out.

0 commit comments

Comments
 (0)