Skip to content

[AutoPR graphrbac/data-plane] Fix #4346 - RequiredResourceAccess missing on GET #3709

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
Oct 29, 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
8 changes: 8 additions & 0 deletions azure-graphrbac/azure/graphrbac/models/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ class Application(DirectoryObject):
:param oauth2_allow_implicit_flow: Whether to allow implicit grant flow
for OAuth2
:type oauth2_allow_implicit_flow: bool
:param required_resource_access: Specifies resources that this application
requires access to and the set of OAuth permission scopes and application
roles that it needs under each of those resources. This pre-configuration
of required resource access drives the consent experience.
:type required_resource_access:
list[~azure.graphrbac.models.RequiredResourceAccess]
"""

_validation = {
Expand All @@ -74,6 +80,7 @@ class Application(DirectoryObject):
'reply_urls': {'key': 'replyUrls', 'type': '[str]'},
'homepage': {'key': 'homepage', 'type': 'str'},
'oauth2_allow_implicit_flow': {'key': 'oauth2AllowImplicitFlow', 'type': 'bool'},
'required_resource_access': {'key': 'requiredResourceAccess', 'type': '[RequiredResourceAccess]'},
}

def __init__(self, **kwargs):
Expand All @@ -87,4 +94,5 @@ def __init__(self, **kwargs):
self.reply_urls = kwargs.get('reply_urls', None)
self.homepage = kwargs.get('homepage', None)
self.oauth2_allow_implicit_flow = kwargs.get('oauth2_allow_implicit_flow', None)
self.required_resource_access = kwargs.get('required_resource_access', None)
self.object_type = 'Application'
10 changes: 9 additions & 1 deletion azure-graphrbac/azure/graphrbac/models/application_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ class Application(DirectoryObject):
:param oauth2_allow_implicit_flow: Whether to allow implicit grant flow
for OAuth2
:type oauth2_allow_implicit_flow: bool
:param required_resource_access: Specifies resources that this application
requires access to and the set of OAuth permission scopes and application
roles that it needs under each of those resources. This pre-configuration
of required resource access drives the consent experience.
:type required_resource_access:
list[~azure.graphrbac.models.RequiredResourceAccess]
"""

_validation = {
Expand All @@ -74,9 +80,10 @@ class Application(DirectoryObject):
'reply_urls': {'key': 'replyUrls', 'type': '[str]'},
'homepage': {'key': 'homepage', 'type': 'str'},
'oauth2_allow_implicit_flow': {'key': 'oauth2AllowImplicitFlow', 'type': 'bool'},
'required_resource_access': {'key': 'requiredResourceAccess', 'type': '[RequiredResourceAccess]'},
}

def __init__(self, *, additional_properties=None, app_id: str=None, app_roles=None, app_permissions=None, available_to_other_tenants: bool=None, display_name: str=None, identifier_uris=None, reply_urls=None, homepage: str=None, oauth2_allow_implicit_flow: bool=None, **kwargs) -> None:
def __init__(self, *, additional_properties=None, app_id: str=None, app_roles=None, app_permissions=None, available_to_other_tenants: bool=None, display_name: str=None, identifier_uris=None, reply_urls=None, homepage: str=None, oauth2_allow_implicit_flow: bool=None, required_resource_access=None, **kwargs) -> None:
super(Application, self).__init__(additional_properties=additional_properties, **kwargs)
self.app_id = app_id
self.app_roles = app_roles
Expand All @@ -87,4 +94,5 @@ def __init__(self, *, additional_properties=None, app_id: str=None, app_roles=No
self.reply_urls = reply_urls
self.homepage = homepage
self.oauth2_allow_implicit_flow = oauth2_allow_implicit_flow
self.required_resource_access = required_resource_access
self.object_type = 'Application'
3 changes: 2 additions & 1 deletion azure-graphrbac/azure/graphrbac/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "0.51.1"
VERSION = "0.52.0"