@@ -30,6 +30,12 @@ class RoleAssignment(Model):
30
30
:type role_definition_id: str
31
31
:param principal_id: The principal ID.
32
32
:type principal_id: str
33
+ :param principal_type: The principal type of the assigned principal ID.
34
+ Possible values include: 'User', 'Group', 'ServicePrincipal', 'Unknown',
35
+ 'DirectoryRoleTemplate', 'ForeignGroup', 'Application', 'MSI',
36
+ 'DirectoryObjectOrGroup', 'Everyone'
37
+ :type principal_type: str or
38
+ ~azure.mgmt.authorization.v2018_09_01_preview.models.PrincipalType
33
39
:param can_delegate: The Delegation flag for the roleassignment
34
40
:type can_delegate: bool
35
41
"""
@@ -47,15 +53,17 @@ class RoleAssignment(Model):
47
53
'scope' : {'key' : 'properties.scope' , 'type' : 'str' },
48
54
'role_definition_id' : {'key' : 'properties.roleDefinitionId' , 'type' : 'str' },
49
55
'principal_id' : {'key' : 'properties.principalId' , 'type' : 'str' },
56
+ 'principal_type' : {'key' : 'properties.principalType' , 'type' : 'str' },
50
57
'can_delegate' : {'key' : 'properties.canDelegate' , 'type' : 'bool' },
51
58
}
52
59
53
- def __init__ (self , * , scope : str = None , role_definition_id : str = None , principal_id : str = None , can_delegate : bool = None , ** kwargs ) -> None :
60
+ def __init__ (self , * , scope : str = None , role_definition_id : str = None , principal_id : str = None , principal_type = None , can_delegate : bool = None , ** kwargs ) -> None :
54
61
super (RoleAssignment , self ).__init__ (** kwargs )
55
62
self .id = None
56
63
self .name = None
57
64
self .type = None
58
65
self .scope = scope
59
66
self .role_definition_id = role_definition_id
60
67
self .principal_id = principal_id
68
+ self .principal_type = principal_type
61
69
self .can_delegate = can_delegate
0 commit comments