diff --git a/azure-graphrbac/azure/graphrbac/models/application.py b/azure-graphrbac/azure/graphrbac/models/application.py index 694eaa66deac..ab8a5cabaa01 100644 --- a/azure-graphrbac/azure/graphrbac/models/application.py +++ b/azure-graphrbac/azure/graphrbac/models/application.py @@ -58,6 +58,11 @@ class Application(DirectoryObject): of required resource access drives the consent experience. :type required_resource_access: list[~azure.graphrbac.models.RequiredResourceAccess] + :param key_credentials: A collection of KeyCredential objects. + :type key_credentials: list[~azure.graphrbac.models.KeyCredential] + :param password_credentials: A collection of PasswordCredential objects + :type password_credentials: + list[~azure.graphrbac.models.PasswordCredential] """ _validation = { @@ -81,6 +86,8 @@ class Application(DirectoryObject): 'homepage': {'key': 'homepage', 'type': 'str'}, 'oauth2_allow_implicit_flow': {'key': 'oauth2AllowImplicitFlow', 'type': 'bool'}, 'required_resource_access': {'key': 'requiredResourceAccess', 'type': '[RequiredResourceAccess]'}, + 'key_credentials': {'key': 'keyCredentials', 'type': '[KeyCredential]'}, + 'password_credentials': {'key': 'passwordCredentials', 'type': '[PasswordCredential]'}, } def __init__(self, **kwargs): @@ -95,4 +102,6 @@ def __init__(self, **kwargs): 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.key_credentials = kwargs.get('key_credentials', None) + self.password_credentials = kwargs.get('password_credentials', 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 77fa6aa3c3b5..8b525e1fb6a8 100644 --- a/azure-graphrbac/azure/graphrbac/models/application_py3.py +++ b/azure-graphrbac/azure/graphrbac/models/application_py3.py @@ -58,6 +58,11 @@ class Application(DirectoryObject): of required resource access drives the consent experience. :type required_resource_access: list[~azure.graphrbac.models.RequiredResourceAccess] + :param key_credentials: A collection of KeyCredential objects. + :type key_credentials: list[~azure.graphrbac.models.KeyCredential] + :param password_credentials: A collection of PasswordCredential objects + :type password_credentials: + list[~azure.graphrbac.models.PasswordCredential] """ _validation = { @@ -81,9 +86,11 @@ class Application(DirectoryObject): 'homepage': {'key': 'homepage', 'type': 'str'}, 'oauth2_allow_implicit_flow': {'key': 'oauth2AllowImplicitFlow', 'type': 'bool'}, 'required_resource_access': {'key': 'requiredResourceAccess', 'type': '[RequiredResourceAccess]'}, + 'key_credentials': {'key': 'keyCredentials', 'type': '[KeyCredential]'}, + 'password_credentials': {'key': 'passwordCredentials', 'type': '[PasswordCredential]'}, } - 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: + 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, key_credentials=None, password_credentials=None, **kwargs) -> None: super(Application, self).__init__(additional_properties=additional_properties, **kwargs) self.app_id = app_id self.app_roles = app_roles @@ -95,4 +102,6 @@ def __init__(self, *, additional_properties=None, app_id: str=None, app_roles=No self.homepage = homepage self.oauth2_allow_implicit_flow = oauth2_allow_implicit_flow self.required_resource_access = required_resource_access + self.key_credentials = key_credentials + self.password_credentials = password_credentials self.object_type = 'Application' diff --git a/azure-graphrbac/azure/graphrbac/models/key_credential.py b/azure-graphrbac/azure/graphrbac/models/key_credential.py index ed56f7672311..c777e448af65 100644 --- a/azure-graphrbac/azure/graphrbac/models/key_credential.py +++ b/azure-graphrbac/azure/graphrbac/models/key_credential.py @@ -32,7 +32,7 @@ class KeyCredential(Model): 'Symmetric'. :type type: str :param custom_key_identifier: Custom Key Identifier - :type custom_key_identifier: bytearray + :type custom_key_identifier: str """ _attribute_map = { @@ -43,7 +43,7 @@ class KeyCredential(Model): 'key_id': {'key': 'keyId', 'type': 'str'}, 'usage': {'key': 'usage', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'custom_key_identifier': {'key': 'customKeyIdentifier', 'type': 'bytearray'}, + 'custom_key_identifier': {'key': 'customKeyIdentifier', 'type': 'str'}, } def __init__(self, **kwargs): diff --git a/azure-graphrbac/azure/graphrbac/models/key_credential_py3.py b/azure-graphrbac/azure/graphrbac/models/key_credential_py3.py index b6550d8d11de..c9fbf1b8f00b 100644 --- a/azure-graphrbac/azure/graphrbac/models/key_credential_py3.py +++ b/azure-graphrbac/azure/graphrbac/models/key_credential_py3.py @@ -32,7 +32,7 @@ class KeyCredential(Model): 'Symmetric'. :type type: str :param custom_key_identifier: Custom Key Identifier - :type custom_key_identifier: bytearray + :type custom_key_identifier: str """ _attribute_map = { @@ -43,10 +43,10 @@ class KeyCredential(Model): 'key_id': {'key': 'keyId', 'type': 'str'}, 'usage': {'key': 'usage', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'custom_key_identifier': {'key': 'customKeyIdentifier', 'type': 'bytearray'}, + 'custom_key_identifier': {'key': 'customKeyIdentifier', 'type': 'str'}, } - def __init__(self, *, additional_properties=None, start_date=None, end_date=None, value: str=None, key_id: str=None, usage: str=None, type: str=None, custom_key_identifier: bytearray=None, **kwargs) -> None: + def __init__(self, *, additional_properties=None, start_date=None, end_date=None, value: str=None, key_id: str=None, usage: str=None, type: str=None, custom_key_identifier: str=None, **kwargs) -> None: super(KeyCredential, self).__init__(**kwargs) self.additional_properties = additional_properties self.start_date = start_date diff --git a/azure-graphrbac/azure/graphrbac/models/password_credential.py b/azure-graphrbac/azure/graphrbac/models/password_credential.py index 28d9e2709458..44b07ce43a4b 100644 --- a/azure-graphrbac/azure/graphrbac/models/password_credential.py +++ b/azure-graphrbac/azure/graphrbac/models/password_credential.py @@ -26,6 +26,8 @@ class PasswordCredential(Model): :type key_id: str :param value: Key value. :type value: str + :param custom_key_identifier: Custom Key Identifier + :type custom_key_identifier: bytearray """ _attribute_map = { @@ -34,6 +36,7 @@ class PasswordCredential(Model): 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, 'key_id': {'key': 'keyId', 'type': 'str'}, 'value': {'key': 'value', 'type': 'str'}, + 'custom_key_identifier': {'key': 'customKeyIdentifier', 'type': 'bytearray'}, } def __init__(self, **kwargs): @@ -43,3 +46,4 @@ def __init__(self, **kwargs): self.end_date = kwargs.get('end_date', None) self.key_id = kwargs.get('key_id', None) self.value = kwargs.get('value', None) + self.custom_key_identifier = kwargs.get('custom_key_identifier', None) diff --git a/azure-graphrbac/azure/graphrbac/models/password_credential_py3.py b/azure-graphrbac/azure/graphrbac/models/password_credential_py3.py index 102f23659286..480bed0b6032 100644 --- a/azure-graphrbac/azure/graphrbac/models/password_credential_py3.py +++ b/azure-graphrbac/azure/graphrbac/models/password_credential_py3.py @@ -26,6 +26,8 @@ class PasswordCredential(Model): :type key_id: str :param value: Key value. :type value: str + :param custom_key_identifier: Custom Key Identifier + :type custom_key_identifier: bytearray """ _attribute_map = { @@ -34,12 +36,14 @@ class PasswordCredential(Model): 'end_date': {'key': 'endDate', 'type': 'iso-8601'}, 'key_id': {'key': 'keyId', 'type': 'str'}, 'value': {'key': 'value', 'type': 'str'}, + 'custom_key_identifier': {'key': 'customKeyIdentifier', 'type': 'bytearray'}, } - def __init__(self, *, additional_properties=None, start_date=None, end_date=None, key_id: str=None, value: str=None, **kwargs) -> None: + def __init__(self, *, additional_properties=None, start_date=None, end_date=None, key_id: str=None, value: str=None, custom_key_identifier: bytearray=None, **kwargs) -> None: super(PasswordCredential, self).__init__(**kwargs) self.additional_properties = additional_properties self.start_date = start_date self.end_date = end_date self.key_id = key_id self.value = value + self.custom_key_identifier = custom_key_identifier