diff --git a/azure-graphrbac/azure/graphrbac/models/application.py b/azure-graphrbac/azure/graphrbac/models/application.py index c6330273a1f7..694eaa66deac 100644 --- a/azure-graphrbac/azure/graphrbac/models/application.py +++ b/azure-graphrbac/azure/graphrbac/models/application.py @@ -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 = { @@ -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): @@ -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' diff --git a/azure-graphrbac/azure/graphrbac/models/application_py3.py b/azure-graphrbac/azure/graphrbac/models/application_py3.py index be0ea5d714c5..77fa6aa3c3b5 100644 --- a/azure-graphrbac/azure/graphrbac/models/application_py3.py +++ b/azure-graphrbac/azure/graphrbac/models/application_py3.py @@ -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 = { @@ -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 @@ -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' diff --git a/azure-graphrbac/azure/graphrbac/version.py b/azure-graphrbac/azure/graphrbac/version.py index 15ed029781f4..2a91c7e542b6 100644 --- a/azure-graphrbac/azure/graphrbac/version.py +++ b/azure-graphrbac/azure/graphrbac/version.py @@ -9,4 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.51.1" +VERSION = "0.52.0" +