Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR hdinsight/resource-manager] [HDInsight] Change accessModes and applicationType from enum to string #6545

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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