Skip to content

[AutoPR] authorization/resource-manager #3845

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions azure-mgmt-authorization/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
Release History
===============

0.51.1 (2018-11-27)
+++++++++++++++++++

**Bugfixes**

- Missing principal_type in role assignment class #3802

0.51.0 (2018-11-12)
+++++++++++++++++++

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ class RoleAssignment(Model):
:type role_definition_id: str
:param principal_id: The principal ID.
:type principal_id: str
:param principal_type: The principal type of the assigned principal ID.
Possible values include: 'User', 'Group', 'ServicePrincipal', 'Unknown',
'DirectoryRoleTemplate', 'ForeignGroup', 'Application', 'MSI',
'DirectoryObjectOrGroup', 'Everyone'
:type principal_type: str or
~azure.mgmt.authorization.v2018_09_01_preview.models.PrincipalType
:param can_delegate: The Delegation flag for the roleassignment
:type can_delegate: bool
"""
Expand All @@ -47,6 +53,7 @@ class RoleAssignment(Model):
'scope': {'key': 'properties.scope', 'type': 'str'},
'role_definition_id': {'key': 'properties.roleDefinitionId', 'type': 'str'},
'principal_id': {'key': 'properties.principalId', 'type': 'str'},
'principal_type': {'key': 'properties.principalType', 'type': 'str'},
'can_delegate': {'key': 'properties.canDelegate', 'type': 'bool'},
}

Expand All @@ -58,4 +65,5 @@ def __init__(self, **kwargs):
self.scope = kwargs.get('scope', None)
self.role_definition_id = kwargs.get('role_definition_id', None)
self.principal_id = kwargs.get('principal_id', None)
self.principal_type = kwargs.get('principal_type', None)
self.can_delegate = kwargs.get('can_delegate', None)
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ class RoleAssignment(Model):
:type role_definition_id: str
:param principal_id: The principal ID.
:type principal_id: str
:param principal_type: The principal type of the assigned principal ID.
Possible values include: 'User', 'Group', 'ServicePrincipal', 'Unknown',
'DirectoryRoleTemplate', 'ForeignGroup', 'Application', 'MSI',
'DirectoryObjectOrGroup', 'Everyone'
:type principal_type: str or
~azure.mgmt.authorization.v2018_09_01_preview.models.PrincipalType
:param can_delegate: The Delegation flag for the roleassignment
:type can_delegate: bool
"""
Expand All @@ -47,15 +53,17 @@ class RoleAssignment(Model):
'scope': {'key': 'properties.scope', 'type': 'str'},
'role_definition_id': {'key': 'properties.roleDefinitionId', 'type': 'str'},
'principal_id': {'key': 'properties.principalId', 'type': 'str'},
'principal_type': {'key': 'properties.principalType', 'type': 'str'},
'can_delegate': {'key': 'properties.canDelegate', 'type': 'bool'},
}

def __init__(self, *, scope: str=None, role_definition_id: str=None, principal_id: str=None, can_delegate: bool=None, **kwargs) -> None:
def __init__(self, *, scope: str=None, role_definition_id: str=None, principal_id: str=None, principal_type=None, can_delegate: bool=None, **kwargs) -> None:
super(RoleAssignment, self).__init__(**kwargs)
self.id = None
self.name = None
self.type = None
self.scope = scope
self.role_definition_id = role_definition_id
self.principal_id = principal_id
self.principal_type = principal_type
self.can_delegate = can_delegate
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "0.51.0"
VERSION = "0.51.1"