@@ -25,6 +25,7 @@ class RoleUpdateAttributes(ModelNormal):
2525 def openapi_types (_ ):
2626 return {
2727 "created_at" : (datetime ,),
28+ "default_permissions_opt_out" : (bool ,),
2829 "modified_at" : (datetime ,),
2930 "name" : (str ,),
3031 "receives_permissions_from" : ([str ],),
@@ -33,6 +34,7 @@ def openapi_types(_):
3334
3435 attribute_map = {
3536 "created_at" : "created_at" ,
37+ "default_permissions_opt_out" : "default_permissions_opt_out" ,
3638 "modified_at" : "modified_at" ,
3739 "name" : "name" ,
3840 "receives_permissions_from" : "receives_permissions_from" ,
@@ -46,6 +48,7 @@ def openapi_types(_):
4648 def __init__ (
4749 self_ ,
4850 created_at : Union [datetime , UnsetType ] = unset ,
51+ default_permissions_opt_out : Union [bool , UnsetType ] = unset ,
4952 modified_at : Union [datetime , UnsetType ] = unset ,
5053 name : Union [str , UnsetType ] = unset ,
5154 receives_permissions_from : Union [List [str ], UnsetType ] = unset ,
@@ -58,6 +61,11 @@ def __init__(
5861 :param created_at: Creation time of the role.
5962 :type created_at: datetime, optional
6063
64+ :param default_permissions_opt_out: Whether to exclude restricted default permissions from this role.
65+ Restricted default permissions are automatically assigned to every role by default. Set this field to ``true`` to exclude them.
66+ Some of these permissions can only be excluded after Minimal Access Roles is enabled for the organization.
67+ :type default_permissions_opt_out: bool, optional
68+
6169 :param modified_at: Time of last role modification.
6270 :type modified_at: datetime, optional
6371
@@ -74,6 +82,8 @@ def __init__(
7482 """
7583 if created_at is not unset :
7684 kwargs ["created_at" ] = created_at
85+ if default_permissions_opt_out is not unset :
86+ kwargs ["default_permissions_opt_out" ] = default_permissions_opt_out
7787 if modified_at is not unset :
7888 kwargs ["modified_at" ] = modified_at
7989 if name is not unset :
0 commit comments