From 8dcb9a8d39a21f735e1ac3363c5e6193aebb78dc Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 30 Jul 2019 06:16:54 +0000 Subject: [PATCH] Generated from 18e8f73649a26d6acdba575f35b0e3af6fe3cd8c Problem: in previous pr #6665 we modify accessModes and applicationType to enum, this will bring breaking change in java sdk. Solution: remove the two enum, change it to string type --- .../azure/mgmt/hdinsight/models/__init__.py | 4 ---- .../models/_hd_insight_management_client_enums.py | 11 ----------- .../azure/mgmt/hdinsight/models/_models.py | 9 +++------ .../azure/mgmt/hdinsight/models/_models_py3.py | 11 ++++------- 4 files changed, 7 insertions(+), 28 deletions(-) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/__init__.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/__init__.py index a8f11e1c76da..bc05048c8542 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/__init__.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/__init__.py @@ -168,8 +168,6 @@ ResourceIdentityType, HDInsightClusterProvisioningState, AsyncOperationState, - ApplicationHttpsEndpointAccessMode, - ApplicationType, FilterMode, ) @@ -258,7 +256,5 @@ 'ResourceIdentityType', 'HDInsightClusterProvisioningState', 'AsyncOperationState', - 'ApplicationHttpsEndpointAccessMode', - 'ApplicationType', 'FilterMode', ] diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_hd_insight_management_client_enums.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_hd_insight_management_client_enums.py index fb336a78012d..94a5c11f6993 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_hd_insight_management_client_enums.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/_hd_insight_management_client_enums.py @@ -71,17 +71,6 @@ class AsyncOperationState(str, Enum): failed = "Failed" -class ApplicationHttpsEndpointAccessMode(str, Enum): - - web_page = "WebPage" - - -class ApplicationType(str, Enum): - - custom_application = "CustomApplication" - rserver = "RServer" - - class FilterMode(str, Enum): exclude = "Exclude" 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 d25ef85c7d88..5d0a85487098 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 @@ -147,8 +147,7 @@ class ApplicationGetHttpsEndpoint(Model): """Gets the application HTTP endpoints. :param access_modes: The list of access modes for the application. - :type access_modes: list[str or - ~azure.mgmt.hdinsight.models.ApplicationHttpsEndpointAccessMode] + :type access_modes: list[str] :param location: The location of the endpoint. :type location: str :param destination_port: The destination port to connect to. @@ -203,10 +202,8 @@ class ApplicationProperties(Model): list[~azure.mgmt.hdinsight.models.ApplicationGetEndpoint] :ivar provisioning_state: The provisioning state of the application. :vartype provisioning_state: str - :param application_type: The application type. Possible values include: - 'CustomApplication', 'RServer' - :type application_type: str or - ~azure.mgmt.hdinsight.models.ApplicationType + :param application_type: The application type. + :type application_type: str :ivar application_state: The application state. :vartype application_state: str :param errors: The list of errors. 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 c9de03666896..a43af82d227c 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 @@ -147,8 +147,7 @@ class ApplicationGetHttpsEndpoint(Model): """Gets the application HTTP endpoints. :param access_modes: The list of access modes for the application. - :type access_modes: list[str or - ~azure.mgmt.hdinsight.models.ApplicationHttpsEndpointAccessMode] + :type access_modes: list[str] :param location: The location of the endpoint. :type location: str :param destination_port: The destination port to connect to. @@ -203,10 +202,8 @@ class ApplicationProperties(Model): list[~azure.mgmt.hdinsight.models.ApplicationGetEndpoint] :ivar provisioning_state: The provisioning state of the application. :vartype provisioning_state: str - :param application_type: The application type. Possible values include: - 'CustomApplication', 'RServer' - :type application_type: str or - ~azure.mgmt.hdinsight.models.ApplicationType + :param application_type: The application type. + :type application_type: str :ivar application_state: The application state. :vartype application_state: str :param errors: The list of errors. @@ -238,7 +235,7 @@ class ApplicationProperties(Model): 'marketplace_identifier': {'key': 'marketplaceIdentifier', 'type': 'str'}, } - def __init__(self, *, compute_profile=None, install_script_actions=None, uninstall_script_actions=None, https_endpoints=None, ssh_endpoints=None, application_type=None, errors=None, **kwargs) -> None: + def __init__(self, *, compute_profile=None, install_script_actions=None, uninstall_script_actions=None, https_endpoints=None, ssh_endpoints=None, application_type: str=None, errors=None, **kwargs) -> None: super(ApplicationProperties, self).__init__(**kwargs) self.compute_profile = compute_profile self.install_script_actions = install_script_actions