Skip to content

Commit 41745a2

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

5 files changed

Lines changed: 660 additions & 180 deletions

File tree

.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

src/datadog_api_client/v2/model/permission_attributes.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Union
6+
from typing import List, Union
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
@@ -24,6 +24,7 @@ def openapi_types(_):
2424
"display_type": (str,),
2525
"group_name": (str,),
2626
"name": (str,),
27+
"name_aliases": ([str],),
2728
"restricted": (bool,),
2829
}
2930

@@ -34,6 +35,7 @@ def openapi_types(_):
3435
"display_type": "display_type",
3536
"group_name": "group_name",
3637
"name": "name",
38+
"name_aliases": "name_aliases",
3739
"restricted": "restricted",
3840
}
3941

@@ -45,6 +47,7 @@ def __init__(
4547
display_type: Union[str, UnsetType] = unset,
4648
group_name: Union[str, UnsetType] = unset,
4749
name: Union[str, UnsetType] = unset,
50+
name_aliases: Union[List[str], UnsetType] = unset,
4851
restricted: Union[bool, UnsetType] = unset,
4952
**kwargs,
5053
):
@@ -69,6 +72,9 @@ def __init__(
6972
:param name: Name of the permission.
7073
:type name: str, optional
7174
75+
:param name_aliases: List of alias names for the permission.
76+
:type name_aliases: [str], optional
77+
7278
:param restricted: Whether or not the permission is restricted.
7379
:type restricted: bool, optional
7480
"""
@@ -84,6 +90,8 @@ def __init__(
8490
kwargs["group_name"] = group_name
8591
if name is not unset:
8692
kwargs["name"] = name
93+
if name_aliases is not unset:
94+
kwargs["name_aliases"] = name_aliases
8795
if restricted is not unset:
8896
kwargs["restricted"] = restricted
8997
super().__init__(kwargs)
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

0 commit comments

Comments
 (0)