@@ -11,6 +11,7 @@ def create(
11
11
description : Optional [str ] = None ,
12
12
permission_names : Optional [List [str ]] = None ,
13
13
tenant_id : Optional [str ] = None ,
14
+ default : Optional [bool ] = None ,
14
15
):
15
16
"""
16
17
Create a new role.
@@ -19,6 +20,8 @@ def create(
19
20
name (str): role name.
20
21
description (str): Optional description to briefly explain what this role allows.
21
22
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.
22
25
23
26
Raise:
24
27
AuthException: raised if creation operation fails
@@ -32,6 +35,7 @@ def create(
32
35
"description" : description ,
33
36
"permissionNames" : permission_names ,
34
37
"tenantId" : tenant_id ,
38
+ "default" : default ,
35
39
},
36
40
pswd = self ._auth .management_key ,
37
41
)
@@ -43,6 +47,7 @@ def update(
43
47
description : Optional [str ] = None ,
44
48
permission_names : Optional [List [str ]] = None ,
45
49
tenant_id : Optional [str ] = None ,
50
+ default : Optional [bool ] = None ,
46
51
):
47
52
"""
48
53
Update an existing role with the given various fields. IMPORTANT: All parameters are used as overrides
@@ -53,6 +58,8 @@ def update(
53
58
new_name (str): role updated name.
54
59
description (str): Optional description to briefly explain what this role allows.
55
60
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.
56
63
57
64
Raise:
58
65
AuthException: raised if update operation fails
@@ -66,6 +73,7 @@ def update(
66
73
"description" : description ,
67
74
"permissionNames" : permission_names ,
68
75
"tenantId" : tenant_id ,
76
+ "default" : default ,
69
77
},
70
78
pswd = self ._auth .management_key ,
71
79
)
0 commit comments