Skip to main content

Microsoft Azure Graph RBAC Client Library for Python

Project description

Microsoft Azure SDK for Python

This is the Microsoft Azure Graph RBAC Client Library.

This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.

For a more complete set of Azure libraries, see the azure bundle package.

Compatibility

IMPORTANT: If you have an earlier version of the azure package (version < 1.0), you should uninstall it before installing this package.

You can check the version using pip:

pip freeze

If you see azure==0.11.0 (or any version below 1.0), uninstall it first:

pip uninstall azure

Usage

For code examples, see Graph RBAC on docs.microsoft.com.

Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in the Issues section of the project.

Release History

0.50.0 (2018-10-10)

Features

  • signed_in_user.get : Return the currently logged-in User object

  • signed_in_user.list_owned_objects : All objects owned by current user

  • deleted_applications.restore : Restore an application deleted in the last 30 days

  • deleted_applications.list : List all applications deleted in the last 30 days

  • deleted_applications.hard_delete : Delete for real an application in the deleted list

  • groups.list_owners : List owner of the group

  • groups.add_owner : Add owner to this group

  • Application and ServicePrincipals have now the attribute “app_roles” which is a list of AppRole class. To implement this.

  • Client class can be used as a context manager to keep the underlying HTTP session open for performance

  • Model ADGroup has a attributes mail_enabled and mail_nickname

  • Model KeyCredential has a new atrribute custom_key_identifier

  • Added operation group oauth2_operations (operations “get” and “grant”)

Bug fixes

  • Fix applications.list_owners access to next page

  • Fix service_principal.list_owners access to next page

Breaking changes

  • ApplicationAddOwnerParameters has been renamed AddOwnerParameters

  • objects.get_current_user has been removed. Use signed_in_user.get instead. The main difference is this new method returns a DirectoryObjectList, where every elements could be sub-type of DirectoryObject (User, Group, etc.)

  • objects.get_objects_by_object_ids now returns a DirectoryObjectList, where every element could be sub-type of DirectoryObject (User, Group, etc.)

  • GetObjectsParameters.include_directory_object_references is no longer required.

  • Groups.get_members now returns a DirectoryObjectList, where every element could be sub-type of DirectoryObject (User, Group, etc.)

General Breaking changes

This version uses a next-generation code generator that might introduce breaking changes.

  • Model signatures now use only keyword-argument syntax. All positional arguments must be re-written as keyword-arguments. To keep auto-completion in most cases, models are now generated for Python 2 and Python 3. Python 3 uses the “*” syntax for keyword-only arguments.

  • Enum types now use the “str” mixin (class AzureEnum(str, Enum)) to improve the behavior when unrecognized enum values are encountered. While this is not a breaking change, the distinctions are important, and are documented here: https://docs.python.org/3/library/enum.html#others At a glance:

    • “is” should not be used at all.

    • “format” will return the string value, where “%s” string formatting will return NameOfEnum.stringvalue. Format syntax should be prefered.

  • New Long Running Operation:

    • Return type changes from msrestazure.azure_operation.AzureOperationPoller to msrest.polling.LROPoller. External API is the same.

    • Return type is now always a msrest.polling.LROPoller, regardless of the optional parameters used.

    • The behavior has changed when using raw=True. Instead of returning the initial call result as ClientRawResponse, without polling, now this returns an LROPoller. After polling, the final resource will be returned as a ClientRawResponse.

    • New polling parameter. The default behavior is Polling=True which will poll using ARM algorithm. When Polling=False, the response of the initial call will be returned without polling.

    • polling parameter accepts instances of subclasses of msrest.polling.PollingMethod.

    • add_done_callback will no longer raise if called after polling is finished, but will instead execute the callback right away.

Note

  • azure-mgmt-nspkg is not installed anymore on Python 3 (PEP420-based namespace package)

0.40.0 (2018-02-05)

Disclaimer

To prepare future versions, all Model creation should use keyword only arguments.

Breaking changes

  • ApplicationCreateParameters changed __init__ signature, breaks if positional arguments was used.

  • ApplicationUpdateParameters changed __init__ signature, breaks if positional arguments was used.

  • CheckGroupMembershipParameters changed __init__ signature, breaks if positional arguments was used.

  • GetObjectsParameters changed __init__ signature, breaks if positional arguments was used.

  • GroupAddMemberParameters changed __init__ signature, breaks if positional arguments was used.

  • GroupCreateParameters changed __init__ signature, breaks if positional arguments was used.

  • GroupGetMemberGroupsParameters changed __init__ signature, breaks if positional arguments was used.

  • ServicePrincipalCreateParameters changed __init__ signature, breaks if positional arguments was used.

  • UserCreateParameters changed __init__ signature, breaks if positional arguments was used.

  • UserGetMemberGroupsParameters changed __init__ signature, breaks if positional arguments was used.

  • UserUpdateParameters changed __init__ signature, breaks if positional arguments was used.

  • groups.is_member_of now takes an instance of CheckGroupMembershipParameters, and not group_id, member_id parameters

  • groups.add_member now have an optional parameter “additional_properties”, breaks if positional arguments was used.

  • groups.create now takes an instance of GroupCreateParameters, and not display_name, mail_nickname parameters

  • groups.get_member_groups now have an optional parameter “additional_properties”, breaks if positional arguments was used.

  • service_principals.get_member_groups now have an optional parameter “additional_properties”, breaks if positional arguments was used.

Features

  • Enable additional_properties on all Models. to dynamically harvest new properties.

  • Better hierarchy resolution and new generic Model like AADObject. This adds several new attribute to a lot of models.

  • Operation groups now have a “models” attribute.

  • Add applications.list_owners

  • Add applications.add_owner

  • Add service_principals.list_owners

0.33.0 (2017-11-01)

Features

  • add “required_resource_access” when applicable

Bugfixes

  • Get/Delete of Users now encode for you if you provide the UPN.

0.32.0 (2017-09-22)

Features

  • Add Application.oauth2_allow_implicit_flow (create, update, get)

  • Add to User: immutable_id, given_name, surname, user_type, account_enabled

  • Add to UserCreate: given_name, surname, user_type, mail

  • Add to UserUpdate: immutable_id, given_name, surname, user_type, user_principal_name

Bugfixes

  • Renamed User.signInName to an array User.signInNames

0.31.0 (2017-08-09)

  • Add domains operation group

  • Add usage locations to user

  • Add several new attributes to AADObject

0.30.0 (2017-04-20)

  • ApiVersion is now 1.6 for the whole package

  • This wheel package is now built with the azure wheel extension

0.30.0rc6 (2016-09-14)

Bugfixes

  • ‘list’ methods returned only 100 entries (#653)

0.30.0rc5 (2016-06-23)

  • Initial preview release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

azure-graphrbac-0.50.0.zip (116.9 kB view details)

Uploaded Source

Built Distribution

azure_graphrbac-0.50.0-py2.py3-none-any.whl (107.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file azure-graphrbac-0.50.0.zip.

File metadata

  • Download URL: azure-graphrbac-0.50.0.zip
  • Upload date:
  • Size: 116.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3

File hashes

Hashes for azure-graphrbac-0.50.0.zip
Algorithm Hash digest
SHA256 fe637f8d77ef86da1130aa3bd85a15f1f4e4f4e72472b302627233e2fff9fcc6
MD5 4dea5331e72735b25a781b7bd57807d6
BLAKE2b-256 38744c7eb5244bd9f2ec31bb50d9e188465a95ee2d26db6155e3e0f502dde74f

See more details on using hashes here.

File details

Details for the file azure_graphrbac-0.50.0-py2.py3-none-any.whl.

File metadata

  • Download URL: azure_graphrbac-0.50.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 107.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3

File hashes

Hashes for azure_graphrbac-0.50.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7ecb7d09a5246825e2bef156f79250181990273f629125899e0664a77c125189
MD5 8a3180daa53b2e597cac552374da44ea
BLAKE2b-256 2cb10fb8d3932c6ec6329e30e6ce0b7754046ecdda46b6076bb024d853fc1fcb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page