Skip to content

[ACCESSINT-158] Add low code resources to restriction policy APIs #462

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-01-15 18:03:10.176525",
"spec_repo_commit": "e54847a1"
"regenerated": "2025-01-16 23:13:34.260376",
"spec_repo_commit": "0ad24d9f"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-01-15 18:03:10.191590",
"spec_repo_commit": "e54847a1"
"regenerated": "2025-01-16 23:13:34.280676",
"spec_repo_commit": "0ad24d9f"
}
}
}
21 changes: 19 additions & 2 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,8 @@ components:
type: string
ResourceID:
description: 'Identifier, formatted as `type:id`. Supported types: `connection`,
`dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`.'
`dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`,
`app-builder-app`, `connection`, `connection-group`.'
example: dashboard:abc-def-ghi
in: path
name: resource_id
Expand Down Expand Up @@ -41037,6 +41038,14 @@ paths:

- Monitors: `monitor`

- Workflows: `workflow`

- App Builder Apps: `app-builder-app`

- Connections: `connection`

- Connection Groups: `connection-group`


#### Supported relations for resources

Expand All @@ -41062,7 +41071,15 @@ paths:

Monitors | `viewer`, `editor`

Reference Tables | `viewer`, `editor`'
Reference Tables | `viewer`, `editor`

Workflows | `viewer`, `editor`

App Builder Apps | `viewer`, `runner`, `editor`

Connections | `viewer`, `resolver`, `editor`

Connection Groups | `viewer`, `editor`'
operationId: UpdateRestrictionPolicy
parameters:
- $ref: '#/components/parameters/ResourceID'
Expand Down
16 changes: 16 additions & 0 deletions src/datadogV2/api/api_restriction_policies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,10 @@ impl RestrictionPoliciesAPI {
/// - Synthetic Tests: `synthetics-test`
/// - Synthetic Private Locations: `synthetics-private-location`
/// - Monitors: `monitor`
/// - Workflows: `workflow`
/// - App Builder Apps: `app-builder-app`
/// - Connections: `connection`
/// - Connection Groups: `connection-group`
///
/// #### Supported relations for resources
/// Resource Type | Supported Relations
Expand All @@ -348,6 +352,10 @@ impl RestrictionPoliciesAPI {
/// Synthetic Private Locations | `viewer`, `editor`
/// Monitors | `viewer`, `editor`
/// Reference Tables | `viewer`, `editor`
/// Workflows | `viewer`, `editor`
/// App Builder Apps | `viewer`, `runner`, `editor`
/// Connections | `viewer`, `resolver`, `editor`
/// Connection Groups | `viewer`, `editor`
pub async fn update_restriction_policy(
&self,
resource_id: String,
Expand Down Expand Up @@ -388,6 +396,10 @@ impl RestrictionPoliciesAPI {
/// - Synthetic Tests: `synthetics-test`
/// - Synthetic Private Locations: `synthetics-private-location`
/// - Monitors: `monitor`
/// - Workflows: `workflow`
/// - App Builder Apps: `app-builder-app`
/// - Connections: `connection`
/// - Connection Groups: `connection-group`
///
/// #### Supported relations for resources
/// Resource Type | Supported Relations
Expand All @@ -402,6 +414,10 @@ impl RestrictionPoliciesAPI {
/// Synthetic Private Locations | `viewer`, `editor`
/// Monitors | `viewer`, `editor`
/// Reference Tables | `viewer`, `editor`
/// Workflows | `viewer`, `editor`
/// App Builder Apps | `viewer`, `runner`, `editor`
/// Connections | `viewer`, `resolver`, `editor`
/// Connection Groups | `viewer`, `editor`
pub async fn update_restriction_policy_with_http_info(
&self,
resource_id: String,
Expand Down
Loading