Skip to content

Commit 89dc0c9

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add feature-flag type to restriction policies (#1847)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 097b605 commit 89dc0c9

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,7 @@ components:
15531553
type: string
15541554
ResourceID:
15551555
description: |-
1556-
Identifier, formatted as `type:id`. Supported types: `dashboard`, `integration-service`, `integration-webhook`, `notebook`, `powerpack`, `reference-table`, `security-rule`, `slo`, `synthetics-global-variable`, `synthetics-test`, `synthetics-private-location`, `monitor`, `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`, `case-management-project`, `monitor-notification-rule`, `status-page`.
1556+
Identifier, formatted as `type:id`. Supported types: `dashboard`, `integration-service`, `integration-webhook`, `notebook`, `powerpack`, `reference-table`, `security-rule`, `slo`, `synthetics-global-variable`, `synthetics-test`, `synthetics-private-location`, `monitor`, `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`, `case-management-project`, `monitor-notification-rule`, `status-page`, `feature-flag`.
15571557
example: "dashboard:abc-def-ghi"
15581558
in: path
15591559
name: resource_id
@@ -173255,6 +173255,7 @@ paths:
173255173255
- Case Management Projects: `case-management-project`
173256173256
- Monitor Notification Rules: `monitor-notification-rule`
173257173257
- Status Pages: `status-page`
173258+
- Feature Flags: `feature-flag`
173258173259

173259173260
#### Supported relations for resources
173260173261
Resource Type | Supported Relations
@@ -173285,6 +173286,7 @@ paths:
173285173286
Case Management Projects | `viewer`, `contributor`, `manager`
173286173287
Monitor Notification Rules | `viewer`, `editor`
173287173288
Status Pages | `viewer`, `responder`, `manager`
173289+
Feature Flags | `viewer`, `contributor`, `editor`
173288173290
operationId: UpdateRestrictionPolicy
173289173291
parameters:
173290173292
- $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
@@ -359,6 +359,7 @@ impl RestrictionPoliciesAPI {
359359
/// - Case Management Projects: `case-management-project`
360360
/// - Monitor Notification Rules: `monitor-notification-rule`
361361
/// - Status Pages: `status-page`
362+
/// - Feature Flags: `feature-flag`
362363
///
363364
/// #### Supported relations for resources
364365
/// Resource Type | Supported Relations
@@ -389,6 +390,7 @@ impl RestrictionPoliciesAPI {
389390
/// Case Management Projects | `viewer`, `contributor`, `manager`
390391
/// Monitor Notification Rules | `viewer`, `editor`
391392
/// Status Pages | `viewer`, `responder`, `manager`
393+
/// Feature Flags | `viewer`, `contributor`, `editor`
392394
pub async fn update_restriction_policy(
393395
&self,
394396
resource_id: String,
@@ -445,6 +447,7 @@ impl RestrictionPoliciesAPI {
445447
/// - Case Management Projects: `case-management-project`
446448
/// - Monitor Notification Rules: `monitor-notification-rule`
447449
/// - Status Pages: `status-page`
450+
/// - Feature Flags: `feature-flag`
448451
///
449452
/// #### Supported relations for resources
450453
/// Resource Type | Supported Relations
@@ -475,6 +478,7 @@ impl RestrictionPoliciesAPI {
475478
/// Case Management Projects | `viewer`, `contributor`, `manager`
476479
/// Monitor Notification Rules | `viewer`, `editor`
477480
/// Status Pages | `viewer`, `responder`, `manager`
481+
/// Feature Flags | `viewer`, `contributor`, `editor`
478482
pub async fn update_restriction_policy_with_http_info(
479483
&self,
480484
resource_id: String,

0 commit comments

Comments
 (0)