33# Copyright 2019-Present Datadog, Inc.
44from __future__ import annotations
55
6- from typing import Union
6+ from typing import List , Union
77
88from 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 )
0 commit comments