Skip to content

Commit 593548e

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add name_aliases field to PermissionAttributes for ListPermissions endpoint (#3612)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 951da3f commit 593548e

File tree

5 files changed

+24
-10
lines changed

5 files changed

+24
-10
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49128,6 +49128,11 @@ components:
4912849128
name:
4912949129
description: Name of the permission.
4913049130
type: string
49131+
name_aliases:
49132+
description: List of alias names for the permission.
49133+
items:
49134+
type: string
49135+
type: array
4913149136
restricted:
4913249137
description: Whether or not the permission is restricted.
4913349138
type: boolean
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2022-01-06T00:52:01.679Z"
1+
"2026-03-13T15:14:58.673Z"

cassettes/v2/Roles_1048039038/List-permissions-returns-OK-response_3504400379/recording.har

Lines changed: 9 additions & 9 deletions
Large diffs are not rendered by default.

features/v2/roles.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ Feature: Roles
217217
And the response "data" has item with field "attributes.restricted" with value true
218218
And the response "data" has item with field "attributes.restricted" with value false
219219
And the response "data" has item with field "attributes.name" with value "admin"
220+
And the response "data" has item with field "attributes.name_aliases" with value []
220221

221222
@generated @skip @team:DataDog/aaa-core-access
222223
Scenario: List role templates returns "OK" response

packages/datadog-api-client-v2/models/PermissionAttributes.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ export class PermissionAttributes {
3434
* Name of the permission.
3535
*/
3636
"name"?: string;
37+
/**
38+
* List of alias names for the permission.
39+
*/
40+
"nameAliases"?: Array<string>;
3741
/**
3842
* Whether or not the permission is restricted.
3943
*/
@@ -80,6 +84,10 @@ export class PermissionAttributes {
8084
baseName: "name",
8185
type: "string",
8286
},
87+
nameAliases: {
88+
baseName: "name_aliases",
89+
type: "Array<string>",
90+
},
8391
restricted: {
8492
baseName: "restricted",
8593
type: "boolean",

0 commit comments

Comments
 (0)