-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[AutoPR authorization/resource-manager] All updates #1916
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
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b03ec7e
Generated from 5e122049229875c775c412be46ee2548b94cceef
AutorestCI 35ac780
Generated from 6a6fa572480fbef059499165c601d7a489bbf1a4
AutorestCI 67dbf25
[AutoPR authorization/resource-manager] fix the hardcoding of api ver…
AutorestCI 62edb5d
Migrate tests to new framework
lmazuel 6e7d3a2
[AutoPR authorization/resource-manager] update roledefinition filters…
AutorestCI 91687e5
New records
lmazuel 7e57cf5
azure-mgmt-authorization 0.40.0
lmazuel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
azure-mgmt-authorization/azure/mgmt/authorization/models/classic_administrator_py3.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| # coding=utf-8 | ||
| # -------------------------------------------------------------------------- | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. See License.txt in the project root for | ||
| # license information. | ||
| # | ||
| # Code generated by Microsoft (R) AutoRest Code Generator. | ||
| # Changes may cause incorrect behavior and will be lost if the code is | ||
| # regenerated. | ||
| # -------------------------------------------------------------------------- | ||
|
|
||
| from msrest.serialization import Model | ||
|
|
||
|
|
||
| class ClassicAdministrator(Model): | ||
| """Classic Administrators. | ||
|
|
||
| :param id: The ID of the administrator. | ||
| :type id: str | ||
| :param name: The name of the administrator. | ||
| :type name: str | ||
| :param type: The type of the administrator. | ||
| :type type: str | ||
| :param email_address: The email address of the administrator. | ||
| :type email_address: str | ||
| :param role: The role of the administrator. | ||
| :type role: str | ||
| """ | ||
|
|
||
| _attribute_map = { | ||
| 'id': {'key': 'id', 'type': 'str'}, | ||
| 'name': {'key': 'name', 'type': 'str'}, | ||
| 'type': {'key': 'type', 'type': 'str'}, | ||
| 'email_address': {'key': 'properties.emailAddress', 'type': 'str'}, | ||
| 'role': {'key': 'properties.role', 'type': 'str'}, | ||
| } | ||
|
|
||
| def __init__(self, *, id: str=None, name: str=None, type: str=None, email_address: str=None, role: str=None, **kwargs) -> None: | ||
| super(ClassicAdministrator, self).__init__(**kwargs) | ||
| self.id = id | ||
| self.name = name | ||
| self.type = type | ||
| self.email_address = email_address | ||
| self.role = role |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,13 +19,22 @@ class Permission(Model): | |
| :type actions: list[str] | ||
| :param not_actions: Denied actions. | ||
| :type not_actions: list[str] | ||
| :param data_actions: Allowed Data actions. | ||
| :type data_actions: list[str] | ||
| :param not_data_actions: Denied Data actions. | ||
| :type not_data_actions: list[str] | ||
| """ | ||
|
|
||
| _attribute_map = { | ||
| 'actions': {'key': 'actions', 'type': '[str]'}, | ||
| 'not_actions': {'key': 'notActions', 'type': '[str]'}, | ||
| 'data_actions': {'key': 'dataActions', 'type': '[str]'}, | ||
| 'not_data_actions': {'key': 'notDataActions', 'type': '[str]'}, | ||
| } | ||
|
|
||
| def __init__(self, actions=None, not_actions=None): | ||
| self.actions = actions | ||
| self.not_actions = not_actions | ||
| def __init__(self, **kwargs): | ||
| super(Permission, self).__init__(**kwargs) | ||
| self.actions = kwargs.get('actions', None) | ||
| self.not_actions = kwargs.get('not_actions', None) | ||
| self.data_actions = kwargs.get('data_actions', None) | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. new data_actions / not_data_actions |
||
| self.not_data_actions = kwargs.get('not_data_actions', None) | ||
40 changes: 40 additions & 0 deletions
40
azure-mgmt-authorization/azure/mgmt/authorization/models/permission_py3.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # coding=utf-8 | ||
| # -------------------------------------------------------------------------- | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. See License.txt in the project root for | ||
| # license information. | ||
| # | ||
| # Code generated by Microsoft (R) AutoRest Code Generator. | ||
| # Changes may cause incorrect behavior and will be lost if the code is | ||
| # regenerated. | ||
| # -------------------------------------------------------------------------- | ||
|
|
||
| from msrest.serialization import Model | ||
|
|
||
|
|
||
| class Permission(Model): | ||
| """Role definition permissions. | ||
|
|
||
| :param actions: Allowed actions. | ||
| :type actions: list[str] | ||
| :param not_actions: Denied actions. | ||
| :type not_actions: list[str] | ||
| :param data_actions: Allowed Data actions. | ||
| :type data_actions: list[str] | ||
| :param not_data_actions: Denied Data actions. | ||
| :type not_data_actions: list[str] | ||
| """ | ||
|
|
||
| _attribute_map = { | ||
| 'actions': {'key': 'actions', 'type': '[str]'}, | ||
| 'not_actions': {'key': 'notActions', 'type': '[str]'}, | ||
| 'data_actions': {'key': 'dataActions', 'type': '[str]'}, | ||
| 'not_data_actions': {'key': 'notDataActions', 'type': '[str]'}, | ||
| } | ||
|
|
||
| def __init__(self, *, actions=None, not_actions=None, data_actions=None, not_data_actions=None, **kwargs) -> None: | ||
| super(Permission, self).__init__(**kwargs) | ||
| self.actions = actions | ||
| self.not_actions = not_actions | ||
| self.data_actions = data_actions | ||
| self.not_data_actions = not_data_actions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,6 +25,8 @@ class ProviderOperation(Model): | |
| :type origin: str | ||
| :param properties: The operation properties. | ||
| :type properties: object | ||
| :param is_data_action: The dataAction flag to specify the operation type. | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. new is_data_action |
||
| :type is_data_action: bool | ||
| """ | ||
|
|
||
| _attribute_map = { | ||
|
|
@@ -33,11 +35,14 @@ class ProviderOperation(Model): | |
| 'description': {'key': 'description', 'type': 'str'}, | ||
| 'origin': {'key': 'origin', 'type': 'str'}, | ||
| 'properties': {'key': 'properties', 'type': 'object'}, | ||
| 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, | ||
| } | ||
|
|
||
| def __init__(self, name=None, display_name=None, description=None, origin=None, properties=None): | ||
| self.name = name | ||
| self.display_name = display_name | ||
| self.description = description | ||
| self.origin = origin | ||
| self.properties = properties | ||
| def __init__(self, **kwargs): | ||
| super(ProviderOperation, self).__init__(**kwargs) | ||
| self.name = kwargs.get('name', None) | ||
| self.display_name = kwargs.get('display_name', None) | ||
| self.description = kwargs.get('description', None) | ||
| self.origin = kwargs.get('origin', None) | ||
| self.properties = kwargs.get('properties', None) | ||
| self.is_data_action = kwargs.get('is_data_action', None) | ||
48 changes: 48 additions & 0 deletions
48
azure-mgmt-authorization/azure/mgmt/authorization/models/provider_operation_py3.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| # coding=utf-8 | ||
| # -------------------------------------------------------------------------- | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. See License.txt in the project root for | ||
| # license information. | ||
| # | ||
| # Code generated by Microsoft (R) AutoRest Code Generator. | ||
| # Changes may cause incorrect behavior and will be lost if the code is | ||
| # regenerated. | ||
| # -------------------------------------------------------------------------- | ||
|
|
||
| from msrest.serialization import Model | ||
|
|
||
|
|
||
| class ProviderOperation(Model): | ||
| """Operation. | ||
|
|
||
| :param name: The operation name. | ||
| :type name: str | ||
| :param display_name: The operation display name. | ||
| :type display_name: str | ||
| :param description: The operation description. | ||
| :type description: str | ||
| :param origin: The operation origin. | ||
| :type origin: str | ||
| :param properties: The operation properties. | ||
| :type properties: object | ||
| :param is_data_action: The dataAction flag to specify the operation type. | ||
| :type is_data_action: bool | ||
| """ | ||
|
|
||
| _attribute_map = { | ||
| 'name': {'key': 'name', 'type': 'str'}, | ||
| 'display_name': {'key': 'displayName', 'type': 'str'}, | ||
| 'description': {'key': 'description', 'type': 'str'}, | ||
| 'origin': {'key': 'origin', 'type': 'str'}, | ||
| 'properties': {'key': 'properties', 'type': 'object'}, | ||
| 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, | ||
| } | ||
|
|
||
| def __init__(self, *, name: str=None, display_name: str=None, description: str=None, origin: str=None, properties=None, is_data_action: bool=None, **kwargs) -> None: | ||
| super(ProviderOperation, self).__init__(**kwargs) | ||
| self.name = name | ||
| self.display_name = display_name | ||
| self.description = description | ||
| self.origin = origin | ||
| self.properties = properties | ||
| self.is_data_action = is_data_action |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
breaking:
properties.email_address => email_address
properties.role => role