Skip to content

Comments

[AutoPR authorization/resource-manager] All updates#1916

Merged
lmazuel merged 7 commits intomasterfrom
restapi_auto_authorization/resource-manager
Mar 13, 2018
Merged

[AutoPR authorization/resource-manager] All updates#1916
lmazuel merged 7 commits intomasterfrom
restapi_auto_authorization/resource-manager

Conversation

@lmazuel
Copy link
Member

@lmazuel lmazuel commented Feb 6, 2018

@yugangw-msft Ready to install as 0.40.0

@lmazuel
Copy link
Member Author

lmazuel commented Feb 21, 2018

Tests KO since 2018-01-01-preview is not out yet.

@lmazuel
Copy link
Member Author

lmazuel commented Feb 28, 2018

@AutorestCI rebase

AutorestCI and others added 4 commits February 28, 2018 18:23
…sion for classicadmin in powershell (#1993)

* Generated from 80afa52b390ebc93e528ab47d32fe4f95bae49cf

fix the hardcoding of api version for classicadmin in sdk

* Generated from 228c368e8b1956804f353314932a9a506630e8dd

fix 2017 version preview file
@AutorestCI
Copy link
Contributor

Rebase done and pushed to the branch

@AutorestCI AutorestCI force-pushed the restapi_auto_authorization/resource-manager branch from 2bf12ff to 62edb5d Compare February 28, 2018 18:23
@Azure Azure deleted a comment from AutorestCI Feb 28, 2018
@lmazuel
Copy link
Member Author

lmazuel commented Feb 28, 2018

@AutorestCI
Copy link
Contributor

Nothing to rebuild, this PR is up to date

@darshanhs90
Copy link

you might need to rerecord the tests,since this was recorded before the new api version was rolled out


Refers to: azure-mgmt-authorization/tests/recordings/test_mgmt_authorization.test_authorization.yaml:29 in 62edb5d. [](commit_id = 62edb5d, deletion_comment = False)

@darshanhs90
Copy link

The api version is out now.


In reply to: 367439171 [](ancestors = 367439171)

@lmazuel
Copy link
Member Author

lmazuel commented Feb 28, 2018

@yugangw-msft for review as well

… to be in sync with the filters present in service (#2094)

* Generated from f8898998fb594903a540b2013f9bd29e852e0487

Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs

* Generated from f8898998fb594903a540b2013f9bd29e852e0487

Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
@AutorestCI
Copy link
Contributor

AutorestCI commented Mar 7, 2018

(message created by the CI based on PR content)

Installation instruction

Package azure-mgmt-authorization

You can install the package azure-mgmt-authorization of this PR using the following command:
pip install "git+https://github.com/Azure/azure-sdk-for-python@restapi_auto_authorization/resource-manager#egg=azure-mgmt-authorization&subdirectory=azure-mgmt-authorization"

You can build a wheel to distribute for test using the following command:
pip wheel --no-deps "git+https://github.com/Azure/azure-sdk-for-python@restapi_auto_authorization/resource-manager#egg=azure-mgmt-authorization&subdirectory=azure-mgmt-authorization"

If you have a local clone of this repository, you can also do:

  • git checkout restapi_auto_authorization/resource-manager
  • pip install -e ./azure-mgmt-authorization

Or build a wheel file to distribute for testing:

  • git checkout restapi_auto_authorization/resource-manager
  • pip wheel --no-deps ./azure-mgmt-authorization

Package azure-mgmt

You can install the package azure-mgmt of this PR using the following command:
pip install "git+https://github.com/Azure/azure-sdk-for-python@restapi_auto_authorization/resource-manager#egg=azure-mgmt&subdirectory=azure-mgmt"

You can build a wheel to distribute for test using the following command:
pip wheel --no-deps "git+https://github.com/Azure/azure-sdk-for-python@restapi_auto_authorization/resource-manager#egg=azure-mgmt&subdirectory=azure-mgmt"

If you have a local clone of this repository, you can also do:

  • git checkout restapi_auto_authorization/resource-manager
  • pip install -e ./azure-mgmt

Or build a wheel file to distribute for testing:

  • git checkout restapi_auto_authorization/resource-manager
  • pip wheel --no-deps ./azure-mgmt

Direct download

Your files can be directly downloaded here:

@codecov-io
Copy link

codecov-io commented Mar 9, 2018

Codecov Report

Merging #1916 into master will decrease coverage by 1.1%.
The diff coverage is 45.03%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1916      +/-   ##
==========================================
- Coverage   53.06%   51.95%   -1.11%     
==========================================
  Files        4774     5141     +367     
  Lines      119483   132364   +12881     
==========================================
+ Hits        63406    68776    +5370     
- Misses      56077    63588    +7511
Impacted Files Coverage Δ
...t/authorization/authorization_management_client.py 100% <100%> (ø) ⬆️
...zation/azure/mgmt/authorization/models/__init__.py 100% <100%> (ø) ⬆️
...-authorization/azure/mgmt/authorization/version.py 100% <100%> (ø) ⬆️
...on/azure/mgmt/authorization/operations/__init__.py 100% <100%> (ø) ⬆️
...tion/azure/mgmt/authorization/models/permission.py 100% <100%> (ø) ⬆️
.../azure/mgmt/authorization/models/permission_py3.py 100% <100%> (ø)
...thorization/models/provider_operations_metadata.py 36.36% <12.5%> (-3.64%) ⬇️
...re/mgmt/authorization/models/provider_operation.py 36.36% <12.5%> (-8.09%) ⬇️
...mgmt/authorization/models/classic_administrator.py 40% <14.28%> (-10%) ⬇️
...azure/mgmt/authorization/models/role_definition.py 35.71% <18.18%> (-14.29%) ⬇️
... and 573 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f746c62...7e57cf5. Read the comment docs.

@yugangw-msft
Copy link

@lmazuel , I have verified, could you please publish it?

'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'ClassicAdministratorProperties'},
'email_address': {'key': 'properties.emailAddress', 'type': 'str'},
Copy link
Member Author

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

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)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new data_actions / not_data_actions

:type origin: str
:param properties: The operation properties.
:type properties: object
:param is_data_action: The dataAction flag to specify the operation type.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new is_data_action

'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'RoleAssignmentPropertiesWithScope'},
'scope': {'key': 'properties.scope', 'type': 'str'},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flattening


_attribute_map = {
'properties': {'key': 'properties', 'type': 'RoleAssignmentProperties'},
'role_definition_id': {'key': 'properties.roleDefinitionId', 'type': 'str'},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flattening

:param deserializer: An objec model deserializer.
:ivar api_version: The API version to use for this operation. Constant value: "2015-07-01".
:param deserializer: An object model deserializer.
:ivar api_version: The API version to use for this operation. Constant value: "2018-01-01-preview".
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new api version


def create_by_id(
self, role_assignment_id, properties=None, custom_headers=None, raw=False, **operation_config):
self, role_id, parameters, custom_headers=None, raw=False, **operation_config):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new name

@lmazuel lmazuel merged commit 0409ece into master Mar 13, 2018
@lmazuel lmazuel deleted the restapi_auto_authorization/resource-manager branch March 13, 2018 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants