From 08405072d4e6e6d9fa1dd1d65fd6219c5ce81421 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 2 Jul 2021 02:27:21 +0000 Subject: [PATCH] CodeGen from PR 15050 in Azure/azure-rest-api-specs python track2 config (#15050) * python track2 config * redis * redis --- sdk/hdinsight/azure-mgmt-hdinsight/_meta.json | 6 +++--- .../azure/mgmt/hdinsight/_version.py | 2 +- .../azure/mgmt/hdinsight/models/_models.py | 14 ++++---------- .../azure/mgmt/hdinsight/models/_models_py3.py | 15 +++++---------- 4 files changed, 13 insertions(+), 24 deletions(-) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/_meta.json b/sdk/hdinsight/azure-mgmt-hdinsight/_meta.json index 9b927b1d2f00..7e690c2cc5bf 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/_meta.json +++ b/sdk/hdinsight/azure-mgmt-hdinsight/_meta.json @@ -1,11 +1,11 @@ { "autorest": "3.4.2", "use": [ - "@autorest/python@5.8.0", + "@autorest/python@5.8.1", "@autorest/modelerfour@4.19.2" ], - "commit": "6a38cb16662cd02a3659665f9242d5ce011e032e", + "commit": "3566c94f1f4e3716b3801bdec259328151dcdeae", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest_command": "autorest specification/hdinsight/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.0 --use=@autorest/modelerfour@4.19.2 --version=3.4.2", + "autorest_command": "autorest specification/hdinsight/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.1 --use=@autorest/modelerfour@4.19.2 --version=3.4.2", "readme": "specification/hdinsight/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/_version.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/_version.py index 142a0420b39b..e5754a47ce68 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/_version.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "8.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_models.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_models.py index 7f3faeb12bd2..c6849e56791e 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_models.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_models.py @@ -2734,10 +2734,9 @@ def __init__( class SecurityProfile(msrest.serialization.Model): """The security profile which contains Ssh public key for the HDInsight cluster. - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar directory_type: The directory type. Default value: "ActiveDirectory". - :vartype directory_type: str + :param directory_type: The directory type. The only acceptable values to pass in are None and + "ActiveDirectory". The default value is None. + :type directory_type: str :param domain: The organization's active directory domain. :type domain: str :param organizational_unit_dn: The organizational unit within the Active Directory to place the @@ -2758,10 +2757,6 @@ class SecurityProfile(msrest.serialization.Model): :type msi_resource_id: str """ - _validation = { - 'directory_type': {'constant': True}, - } - _attribute_map = { 'directory_type': {'key': 'directoryType', 'type': 'str'}, 'domain': {'key': 'domain', 'type': 'str'}, @@ -2774,13 +2769,12 @@ class SecurityProfile(msrest.serialization.Model): 'msi_resource_id': {'key': 'msiResourceId', 'type': 'str'}, } - directory_type = "ActiveDirectory" - def __init__( self, **kwargs ): super(SecurityProfile, self).__init__(**kwargs) + self.directory_type = kwargs.get('directory_type', None) self.domain = kwargs.get('domain', None) self.organizational_unit_dn = kwargs.get('organizational_unit_dn', None) self.ldaps_urls = kwargs.get('ldaps_urls', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_models_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_models_py3.py index 7942dccd68bb..3d2b7c2fcb4e 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_models_py3.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_models_py3.py @@ -3074,10 +3074,9 @@ def __init__( class SecurityProfile(msrest.serialization.Model): """The security profile which contains Ssh public key for the HDInsight cluster. - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar directory_type: The directory type. Default value: "ActiveDirectory". - :vartype directory_type: str + :param directory_type: The directory type. The only acceptable values to pass in are None and + "ActiveDirectory". The default value is None. + :type directory_type: str :param domain: The organization's active directory domain. :type domain: str :param organizational_unit_dn: The organizational unit within the Active Directory to place the @@ -3098,10 +3097,6 @@ class SecurityProfile(msrest.serialization.Model): :type msi_resource_id: str """ - _validation = { - 'directory_type': {'constant': True}, - } - _attribute_map = { 'directory_type': {'key': 'directoryType', 'type': 'str'}, 'domain': {'key': 'domain', 'type': 'str'}, @@ -3114,11 +3109,10 @@ class SecurityProfile(msrest.serialization.Model): 'msi_resource_id': {'key': 'msiResourceId', 'type': 'str'}, } - directory_type = "ActiveDirectory" - def __init__( self, *, + directory_type: Optional[str] = None, domain: Optional[str] = None, organizational_unit_dn: Optional[str] = None, ldaps_urls: Optional[List[str]] = None, @@ -3130,6 +3124,7 @@ def __init__( **kwargs ): super(SecurityProfile, self).__init__(**kwargs) + self.directory_type = directory_type self.domain = domain self.organizational_unit_dn = organizational_unit_dn self.ldaps_urls = ldaps_urls