Skip to content

Commit

Permalink
Generated from 18e8f73649a26d6acdba575f35b0e3af6fe3cd8c (#6545)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
AutorestCI committed Jul 31, 2019
1 parent 8e8539c commit 5b6753e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@
ResourceIdentityType,
HDInsightClusterProvisioningState,
AsyncOperationState,
ApplicationHttpsEndpointAccessMode,
ApplicationType,
FilterMode,
)

Expand Down Expand Up @@ -258,7 +256,5 @@
'ResourceIdentityType',
'HDInsightClusterProvisioningState',
'AsyncOperationState',
'ApplicationHttpsEndpointAccessMode',
'ApplicationType',
'FilterMode',
]
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5b6753e

Please sign in to comment.