diff --git a/azure-mgmt-apimanagement/MANIFEST.in b/azure-mgmt-apimanagement/MANIFEST.in index bb37a2723dae..6ceb27f7a96e 100644 --- a/azure-mgmt-apimanagement/MANIFEST.in +++ b/azure-mgmt-apimanagement/MANIFEST.in @@ -1 +1,4 @@ include *.rst +include azure/__init__.py +include azure/mgmt/__init__.py + diff --git a/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_contract.py b/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_contract.py index e231f588b45d..b36d4717e4d4 100644 --- a/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_contract.py +++ b/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_contract.py @@ -32,8 +32,8 @@ class UserContract(Resource): :type state: str or ~azure.mgmt.apimanagement.models.UserState :param note: Optional note about a user set by the administrator. :type note: str - :ivar identities: Collection of user identities. - :vartype identities: + :param identities: Collection of user identities. + :type identities: list[~azure.mgmt.apimanagement.models.UserIdentityContract] :param first_name: First name. :type first_name: str @@ -54,7 +54,6 @@ class UserContract(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'identities': {'readonly': True}, 'groups': {'readonly': True}, } @@ -76,7 +75,7 @@ def __init__(self, **kwargs): super(UserContract, self).__init__(**kwargs) self.state = kwargs.get('state', "active") self.note = kwargs.get('note', None) - self.identities = None + self.identities = kwargs.get('identities', None) self.first_name = kwargs.get('first_name', None) self.last_name = kwargs.get('last_name', None) self.email = kwargs.get('email', None) diff --git a/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_contract_py3.py b/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_contract_py3.py index b1069e94e4c7..3c2d23be38af 100644 --- a/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_contract_py3.py +++ b/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_contract_py3.py @@ -32,8 +32,8 @@ class UserContract(Resource): :type state: str or ~azure.mgmt.apimanagement.models.UserState :param note: Optional note about a user set by the administrator. :type note: str - :ivar identities: Collection of user identities. - :vartype identities: + :param identities: Collection of user identities. + :type identities: list[~azure.mgmt.apimanagement.models.UserIdentityContract] :param first_name: First name. :type first_name: str @@ -54,7 +54,6 @@ class UserContract(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'identities': {'readonly': True}, 'groups': {'readonly': True}, } @@ -72,11 +71,11 @@ class UserContract(Resource): 'groups': {'key': 'properties.groups', 'type': '[GroupContractProperties]'}, } - def __init__(self, *, state="active", note: str=None, first_name: str=None, last_name: str=None, email: str=None, registration_date=None, **kwargs) -> None: + def __init__(self, *, state="active", note: str=None, identities=None, first_name: str=None, last_name: str=None, email: str=None, registration_date=None, **kwargs) -> None: super(UserContract, self).__init__(**kwargs) self.state = state self.note = note - self.identities = None + self.identities = identities self.first_name = first_name self.last_name = last_name self.email = email diff --git a/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_create_parameters.py b/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_create_parameters.py index abcd03a8f7cc..c2a08c3fd236 100644 --- a/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_create_parameters.py +++ b/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_create_parameters.py @@ -15,9 +15,6 @@ class UserCreateParameters(Model): """User create details. - Variables are only populated by the server, and will be ignored when - sending a request. - All required parameters must be populated in order to send to Azure. :param state: Account state. Specifies whether the user is active or not. @@ -28,8 +25,8 @@ class UserCreateParameters(Model): :type state: str or ~azure.mgmt.apimanagement.models.UserState :param note: Optional note about a user set by the administrator. :type note: str - :ivar identities: Collection of user identities. - :vartype identities: + :param identities: Collection of user identities. + :type identities: list[~azure.mgmt.apimanagement.models.UserIdentityContract] :param email: Required. Email address. Must not be empty and must be unique within the service instance. @@ -48,7 +45,6 @@ class UserCreateParameters(Model): """ _validation = { - 'identities': {'readonly': True}, 'email': {'required': True, 'max_length': 254, 'min_length': 1}, 'first_name': {'required': True, 'max_length': 100, 'min_length': 1}, 'last_name': {'required': True, 'max_length': 100, 'min_length': 1}, @@ -69,7 +65,7 @@ def __init__(self, **kwargs): super(UserCreateParameters, self).__init__(**kwargs) self.state = kwargs.get('state', "active") self.note = kwargs.get('note', None) - self.identities = None + self.identities = kwargs.get('identities', None) self.email = kwargs.get('email', None) self.first_name = kwargs.get('first_name', None) self.last_name = kwargs.get('last_name', None) diff --git a/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_create_parameters_py3.py b/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_create_parameters_py3.py index 86aa48cc8924..240440728fdb 100644 --- a/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_create_parameters_py3.py +++ b/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_create_parameters_py3.py @@ -15,9 +15,6 @@ class UserCreateParameters(Model): """User create details. - Variables are only populated by the server, and will be ignored when - sending a request. - All required parameters must be populated in order to send to Azure. :param state: Account state. Specifies whether the user is active or not. @@ -28,8 +25,8 @@ class UserCreateParameters(Model): :type state: str or ~azure.mgmt.apimanagement.models.UserState :param note: Optional note about a user set by the administrator. :type note: str - :ivar identities: Collection of user identities. - :vartype identities: + :param identities: Collection of user identities. + :type identities: list[~azure.mgmt.apimanagement.models.UserIdentityContract] :param email: Required. Email address. Must not be empty and must be unique within the service instance. @@ -48,7 +45,6 @@ class UserCreateParameters(Model): """ _validation = { - 'identities': {'readonly': True}, 'email': {'required': True, 'max_length': 254, 'min_length': 1}, 'first_name': {'required': True, 'max_length': 100, 'min_length': 1}, 'last_name': {'required': True, 'max_length': 100, 'min_length': 1}, @@ -65,11 +61,11 @@ class UserCreateParameters(Model): 'confirmation': {'key': 'properties.confirmation', 'type': 'str'}, } - def __init__(self, *, email: str, first_name: str, last_name: str, state="active", note: str=None, password: str=None, confirmation=None, **kwargs) -> None: + def __init__(self, *, email: str, first_name: str, last_name: str, state="active", note: str=None, identities=None, password: str=None, confirmation=None, **kwargs) -> None: super(UserCreateParameters, self).__init__(**kwargs) self.state = state self.note = note - self.identities = None + self.identities = identities self.email = email self.first_name = first_name self.last_name = last_name diff --git a/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_entity_base_parameters.py b/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_entity_base_parameters.py index 4f5724636981..f190379aa298 100644 --- a/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_entity_base_parameters.py +++ b/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_entity_base_parameters.py @@ -15,9 +15,6 @@ class UserEntityBaseParameters(Model): """User Entity Base Parameters set. - Variables are only populated by the server, and will be ignored when - sending a request. - :param state: Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active. Possible values @@ -26,15 +23,11 @@ class UserEntityBaseParameters(Model): :type state: str or ~azure.mgmt.apimanagement.models.UserState :param note: Optional note about a user set by the administrator. :type note: str - :ivar identities: Collection of user identities. - :vartype identities: + :param identities: Collection of user identities. + :type identities: list[~azure.mgmt.apimanagement.models.UserIdentityContract] """ - _validation = { - 'identities': {'readonly': True}, - } - _attribute_map = { 'state': {'key': 'state', 'type': 'str'}, 'note': {'key': 'note', 'type': 'str'}, @@ -45,4 +38,4 @@ def __init__(self, **kwargs): super(UserEntityBaseParameters, self).__init__(**kwargs) self.state = kwargs.get('state', "active") self.note = kwargs.get('note', None) - self.identities = None + self.identities = kwargs.get('identities', None) diff --git a/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_entity_base_parameters_py3.py b/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_entity_base_parameters_py3.py index 1e3fe35a8fcb..cd8a291e9a3a 100644 --- a/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_entity_base_parameters_py3.py +++ b/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_entity_base_parameters_py3.py @@ -15,9 +15,6 @@ class UserEntityBaseParameters(Model): """User Entity Base Parameters set. - Variables are only populated by the server, and will be ignored when - sending a request. - :param state: Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active. Possible values @@ -26,23 +23,19 @@ class UserEntityBaseParameters(Model): :type state: str or ~azure.mgmt.apimanagement.models.UserState :param note: Optional note about a user set by the administrator. :type note: str - :ivar identities: Collection of user identities. - :vartype identities: + :param identities: Collection of user identities. + :type identities: list[~azure.mgmt.apimanagement.models.UserIdentityContract] """ - _validation = { - 'identities': {'readonly': True}, - } - _attribute_map = { 'state': {'key': 'state', 'type': 'str'}, 'note': {'key': 'note', 'type': 'str'}, 'identities': {'key': 'identities', 'type': '[UserIdentityContract]'}, } - def __init__(self, *, state="active", note: str=None, **kwargs) -> None: + def __init__(self, *, state="active", note: str=None, identities=None, **kwargs) -> None: super(UserEntityBaseParameters, self).__init__(**kwargs) self.state = state self.note = note - self.identities = None + self.identities = identities diff --git a/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_update_parameters.py b/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_update_parameters.py index 004573972d31..2adc28870a0f 100644 --- a/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_update_parameters.py +++ b/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_update_parameters.py @@ -15,9 +15,6 @@ class UserUpdateParameters(Model): """User update parameters. - Variables are only populated by the server, and will be ignored when - sending a request. - :param state: Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active. Possible values @@ -26,8 +23,8 @@ class UserUpdateParameters(Model): :type state: str or ~azure.mgmt.apimanagement.models.UserState :param note: Optional note about a user set by the administrator. :type note: str - :ivar identities: Collection of user identities. - :vartype identities: + :param identities: Collection of user identities. + :type identities: list[~azure.mgmt.apimanagement.models.UserIdentityContract] :param email: Email address. Must not be empty and must be unique within the service instance. @@ -41,7 +38,6 @@ class UserUpdateParameters(Model): """ _validation = { - 'identities': {'readonly': True}, 'email': {'max_length': 254, 'min_length': 1}, 'first_name': {'max_length': 100, 'min_length': 1}, 'last_name': {'max_length': 100, 'min_length': 1}, @@ -61,7 +57,7 @@ def __init__(self, **kwargs): super(UserUpdateParameters, self).__init__(**kwargs) self.state = kwargs.get('state', "active") self.note = kwargs.get('note', None) - self.identities = None + self.identities = kwargs.get('identities', None) self.email = kwargs.get('email', None) self.password = kwargs.get('password', None) self.first_name = kwargs.get('first_name', None) diff --git a/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_update_parameters_py3.py b/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_update_parameters_py3.py index 1d70413aff74..8208852bdcb2 100644 --- a/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_update_parameters_py3.py +++ b/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/user_update_parameters_py3.py @@ -15,9 +15,6 @@ class UserUpdateParameters(Model): """User update parameters. - Variables are only populated by the server, and will be ignored when - sending a request. - :param state: Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active. Possible values @@ -26,8 +23,8 @@ class UserUpdateParameters(Model): :type state: str or ~azure.mgmt.apimanagement.models.UserState :param note: Optional note about a user set by the administrator. :type note: str - :ivar identities: Collection of user identities. - :vartype identities: + :param identities: Collection of user identities. + :type identities: list[~azure.mgmt.apimanagement.models.UserIdentityContract] :param email: Email address. Must not be empty and must be unique within the service instance. @@ -41,7 +38,6 @@ class UserUpdateParameters(Model): """ _validation = { - 'identities': {'readonly': True}, 'email': {'max_length': 254, 'min_length': 1}, 'first_name': {'max_length': 100, 'min_length': 1}, 'last_name': {'max_length': 100, 'min_length': 1}, @@ -57,11 +53,11 @@ class UserUpdateParameters(Model): 'last_name': {'key': 'properties.lastName', 'type': 'str'}, } - def __init__(self, *, state="active", note: str=None, email: str=None, password: str=None, first_name: str=None, last_name: str=None, **kwargs) -> None: + def __init__(self, *, state="active", note: str=None, identities=None, email: str=None, password: str=None, first_name: str=None, last_name: str=None, **kwargs) -> None: super(UserUpdateParameters, self).__init__(**kwargs) self.state = state self.note = note - self.identities = None + self.identities = identities self.email = email self.password = password self.first_name = first_name