@@ -11,6 +11,7 @@ def create(
1111 description : Optional [str ] = None ,
1212 permission_names : Optional [List [str ]] = None ,
1313 tenant_id : Optional [str ] = None ,
14+ default : Optional [bool ] = None ,
1415 ):
1516 """
1617 Create a new role.
@@ -19,6 +20,8 @@ def create(
1920 name (str): role name.
2021 description (str): Optional description to briefly explain what this role allows.
2122 permission_names (List[str]): Optional list of names of permissions this role grants.
23+ tenant_id (str): Optional tenant ID to create the role in.
24+ default (bool): Optional marks this role as default role.
2225
2326 Raise:
2427 AuthException: raised if creation operation fails
@@ -32,6 +35,7 @@ def create(
3235 "description" : description ,
3336 "permissionNames" : permission_names ,
3437 "tenantId" : tenant_id ,
38+ "default" : default ,
3539 },
3640 pswd = self ._auth .management_key ,
3741 )
@@ -43,6 +47,7 @@ def update(
4347 description : Optional [str ] = None ,
4448 permission_names : Optional [List [str ]] = None ,
4549 tenant_id : Optional [str ] = None ,
50+ default : Optional [bool ] = None ,
4651 ):
4752 """
4853 Update an existing role with the given various fields. IMPORTANT: All parameters are used as overrides
@@ -53,6 +58,8 @@ def update(
5358 new_name (str): role updated name.
5459 description (str): Optional description to briefly explain what this role allows.
5560 permission_names (List[str]): Optional list of names of permissions this role grants.
61+ tenant_id (str): Optional tenant ID to update the role in.
62+ default (bool): Optional marks this role as default role.
5663
5764 Raise:
5865 AuthException: raised if update operation fails
@@ -66,6 +73,7 @@ def update(
6673 "description" : description ,
6774 "permissionNames" : permission_names ,
6875 "tenantId" : tenant_id ,
76+ "default" : default ,
6977 },
7078 pswd = self ._auth .management_key ,
7179 )
0 commit comments