Skip to content

Commit a721fe2

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

File tree

7 files changed

+40
-10
lines changed

7 files changed

+40
-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

services/roles/src/v2/models/PermissionAttributes.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ export class PermissionAttributes {
2828
* Name of the permission.
2929
*/
3030
"name"?: string;
31+
/**
32+
* List of alias names for the permission.
33+
*/
34+
"nameAliases"?: Array<string>;
3135
/**
3236
* Whether or not the permission is restricted.
3337
*/
@@ -72,6 +76,10 @@ export class PermissionAttributes {
7276
baseName: "name",
7377
type: "string",
7478
},
79+
nameAliases: {
80+
baseName: "name_aliases",
81+
type: "Array<string>",
82+
},
7583
restricted: {
7684
baseName: "restricted",
7785
type: "boolean",

services/service_accounts/src/v2/models/PermissionAttributes.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ export class PermissionAttributes {
2828
* Name of the permission.
2929
*/
3030
"name"?: string;
31+
/**
32+
* List of alias names for the permission.
33+
*/
34+
"nameAliases"?: Array<string>;
3135
/**
3236
* Whether or not the permission is restricted.
3337
*/
@@ -72,6 +76,10 @@ export class PermissionAttributes {
7276
baseName: "name",
7377
type: "string",
7478
},
79+
nameAliases: {
80+
baseName: "name_aliases",
81+
type: "Array<string>",
82+
},
7583
restricted: {
7684
baseName: "restricted",
7785
type: "boolean",

services/users/src/v2/models/PermissionAttributes.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ export class PermissionAttributes {
2828
* Name of the permission.
2929
*/
3030
"name"?: string;
31+
/**
32+
* List of alias names for the permission.
33+
*/
34+
"nameAliases"?: Array<string>;
3135
/**
3236
* Whether or not the permission is restricted.
3337
*/
@@ -72,6 +76,10 @@ export class PermissionAttributes {
7276
baseName: "name",
7377
type: "string",
7478
},
79+
nameAliases: {
80+
baseName: "name_aliases",
81+
type: "Array<string>",
82+
},
7583
restricted: {
7684
baseName: "restricted",
7785
type: "boolean",

0 commit comments

Comments
 (0)