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 afc85ab41a95..34869d3ab4aa 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 @@ -12,6 +12,11 @@ try: from .cluster_definition_py3 import ClusterDefinition from .security_profile_py3 import SecurityProfile + from .autoscale_time_and_capacity_py3 import AutoscaleTimeAndCapacity + from .autoscale_schedule_py3 import AutoscaleSchedule + from .autoscale_capacity_py3 import AutoscaleCapacity + from .autoscale_recurrence_py3 import AutoscaleRecurrence + from .autoscale_py3 import Autoscale from .hardware_profile_py3 import HardwareProfile from .virtual_network_profile_py3 import VirtualNetworkProfile from .data_disks_groups_py3 import DataDisksGroups @@ -67,6 +72,11 @@ except (SyntaxError, ImportError): from .cluster_definition import ClusterDefinition from .security_profile import SecurityProfile + from .autoscale_time_and_capacity import AutoscaleTimeAndCapacity + from .autoscale_schedule import AutoscaleSchedule + from .autoscale_capacity import AutoscaleCapacity + from .autoscale_recurrence import AutoscaleRecurrence + from .autoscale import Autoscale from .hardware_profile import HardwareProfile from .virtual_network_profile import VirtualNetworkProfile from .data_disks_groups import DataDisksGroups @@ -125,6 +135,7 @@ from .operation_paged import OperationPaged from .hd_insight_management_client_enums import ( DirectoryType, + DaysOfWeek, OSType, Tier, JsonWebKeyEncryptionAlgorithm, @@ -136,6 +147,11 @@ __all__ = [ 'ClusterDefinition', 'SecurityProfile', + 'AutoscaleTimeAndCapacity', + 'AutoscaleSchedule', + 'AutoscaleCapacity', + 'AutoscaleRecurrence', + 'Autoscale', 'HardwareProfile', 'VirtualNetworkProfile', 'DataDisksGroups', @@ -193,6 +209,7 @@ 'RuntimeScriptActionDetailPaged', 'OperationPaged', 'DirectoryType', + 'DaysOfWeek', 'OSType', 'Tier', 'JsonWebKeyEncryptionAlgorithm', diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint.py index b4536fc4f42d..eb2ad6b92447 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint.py @@ -23,6 +23,12 @@ class ApplicationGetHttpsEndpoint(Model): :type destination_port: int :param public_port: The public port to connect to. :type public_port: int + :param sub_domain_suffix: The subDomainSuffix of the application and can + not greater than 3 characters. + :type sub_domain_suffix: str + :param disable_gateway_auth: The value indicates whether to disable + GatewayAuth. + :type disable_gateway_auth: bool """ _attribute_map = { @@ -30,6 +36,8 @@ class ApplicationGetHttpsEndpoint(Model): 'location': {'key': 'location', 'type': 'str'}, 'destination_port': {'key': 'destinationPort', 'type': 'int'}, 'public_port': {'key': 'publicPort', 'type': 'int'}, + 'sub_domain_suffix': {'key': 'subDomainSuffix', 'type': 'str'}, + 'disable_gateway_auth': {'key': 'disableGatewayAuth', 'type': 'bool'}, } def __init__(self, **kwargs): @@ -38,3 +46,5 @@ def __init__(self, **kwargs): self.location = kwargs.get('location', None) self.destination_port = kwargs.get('destination_port', None) self.public_port = kwargs.get('public_port', None) + self.sub_domain_suffix = kwargs.get('sub_domain_suffix', None) + self.disable_gateway_auth = kwargs.get('disable_gateway_auth', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint_py3.py index e23d24ac3368..f2794c5385e4 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint_py3.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint_py3.py @@ -23,6 +23,12 @@ class ApplicationGetHttpsEndpoint(Model): :type destination_port: int :param public_port: The public port to connect to. :type public_port: int + :param sub_domain_suffix: The subDomainSuffix of the application and can + not greater than 3 characters. + :type sub_domain_suffix: str + :param disable_gateway_auth: The value indicates whether to disable + GatewayAuth. + :type disable_gateway_auth: bool """ _attribute_map = { @@ -30,11 +36,15 @@ class ApplicationGetHttpsEndpoint(Model): 'location': {'key': 'location', 'type': 'str'}, 'destination_port': {'key': 'destinationPort', 'type': 'int'}, 'public_port': {'key': 'publicPort', 'type': 'int'}, + 'sub_domain_suffix': {'key': 'subDomainSuffix', 'type': 'str'}, + 'disable_gateway_auth': {'key': 'disableGatewayAuth', 'type': 'bool'}, } - def __init__(self, *, access_modes=None, location: str=None, destination_port: int=None, public_port: int=None, **kwargs) -> None: + def __init__(self, *, access_modes=None, location: str=None, destination_port: int=None, public_port: int=None, sub_domain_suffix: str=None, disable_gateway_auth: bool=None, **kwargs) -> None: super(ApplicationGetHttpsEndpoint, self).__init__(**kwargs) self.access_modes = access_modes self.location = location self.destination_port = destination_port self.public_port = public_port + self.sub_domain_suffix = sub_domain_suffix + self.disable_gateway_auth = disable_gateway_auth diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale.py new file mode 100644 index 000000000000..eb6e23771b56 --- /dev/null +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Autoscale(Model): + """The autoscale request parameters. + + :param capacity: Parameters for load-based autoscale + :type capacity: ~azure.mgmt.hdinsight.models.AutoscaleCapacity + :param recurrence: Parameters for schedule-based autoscale + :type recurrence: ~azure.mgmt.hdinsight.models.AutoscaleRecurrence + """ + + _attribute_map = { + 'capacity': {'key': 'capacity', 'type': 'AutoscaleCapacity'}, + 'recurrence': {'key': 'recurrence', 'type': 'AutoscaleRecurrence'}, + } + + def __init__(self, **kwargs): + super(Autoscale, self).__init__(**kwargs) + self.capacity = kwargs.get('capacity', None) + self.recurrence = kwargs.get('recurrence', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_capacity.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_capacity.py new file mode 100644 index 000000000000..5f9ec31c286e --- /dev/null +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_capacity.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AutoscaleCapacity(Model): + """The load-based autoscale request parameters. + + :param min_instance_count: The minimum instance count of the cluster + :type min_instance_count: int + :param max_instance_count: The maximum instance count of the cluster + :type max_instance_count: int + """ + + _attribute_map = { + 'min_instance_count': {'key': 'minInstanceCount', 'type': 'int'}, + 'max_instance_count': {'key': 'maxInstanceCount', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(AutoscaleCapacity, self).__init__(**kwargs) + self.min_instance_count = kwargs.get('min_instance_count', None) + self.max_instance_count = kwargs.get('max_instance_count', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_capacity_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_capacity_py3.py new file mode 100644 index 000000000000..ab28416f69d2 --- /dev/null +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_capacity_py3.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AutoscaleCapacity(Model): + """The load-based autoscale request parameters. + + :param min_instance_count: The minimum instance count of the cluster + :type min_instance_count: int + :param max_instance_count: The maximum instance count of the cluster + :type max_instance_count: int + """ + + _attribute_map = { + 'min_instance_count': {'key': 'minInstanceCount', 'type': 'int'}, + 'max_instance_count': {'key': 'maxInstanceCount', 'type': 'int'}, + } + + def __init__(self, *, min_instance_count: int=None, max_instance_count: int=None, **kwargs) -> None: + super(AutoscaleCapacity, self).__init__(**kwargs) + self.min_instance_count = min_instance_count + self.max_instance_count = max_instance_count diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_py3.py new file mode 100644 index 000000000000..8e982788b484 --- /dev/null +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_py3.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Autoscale(Model): + """The autoscale request parameters. + + :param capacity: Parameters for load-based autoscale + :type capacity: ~azure.mgmt.hdinsight.models.AutoscaleCapacity + :param recurrence: Parameters for schedule-based autoscale + :type recurrence: ~azure.mgmt.hdinsight.models.AutoscaleRecurrence + """ + + _attribute_map = { + 'capacity': {'key': 'capacity', 'type': 'AutoscaleCapacity'}, + 'recurrence': {'key': 'recurrence', 'type': 'AutoscaleRecurrence'}, + } + + def __init__(self, *, capacity=None, recurrence=None, **kwargs) -> None: + super(Autoscale, self).__init__(**kwargs) + self.capacity = capacity + self.recurrence = recurrence diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_recurrence.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_recurrence.py new file mode 100644 index 000000000000..3e81e4ba2425 --- /dev/null +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_recurrence.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AutoscaleRecurrence(Model): + """Schedule-based autoscale request parameters. + + :param time_zone: The time zone for the autoscale schedule times + :type time_zone: str + :param schedule: Array of schedule-based autoscale rules + :type schedule: list[~azure.mgmt.hdinsight.models.AutoscaleSchedule] + """ + + _attribute_map = { + 'time_zone': {'key': 'timeZone', 'type': 'str'}, + 'schedule': {'key': 'schedule', 'type': '[AutoscaleSchedule]'}, + } + + def __init__(self, **kwargs): + super(AutoscaleRecurrence, self).__init__(**kwargs) + self.time_zone = kwargs.get('time_zone', None) + self.schedule = kwargs.get('schedule', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_recurrence_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_recurrence_py3.py new file mode 100644 index 000000000000..e948c71fdca2 --- /dev/null +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_recurrence_py3.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AutoscaleRecurrence(Model): + """Schedule-based autoscale request parameters. + + :param time_zone: The time zone for the autoscale schedule times + :type time_zone: str + :param schedule: Array of schedule-based autoscale rules + :type schedule: list[~azure.mgmt.hdinsight.models.AutoscaleSchedule] + """ + + _attribute_map = { + 'time_zone': {'key': 'timeZone', 'type': 'str'}, + 'schedule': {'key': 'schedule', 'type': '[AutoscaleSchedule]'}, + } + + def __init__(self, *, time_zone: str=None, schedule=None, **kwargs) -> None: + super(AutoscaleRecurrence, self).__init__(**kwargs) + self.time_zone = time_zone + self.schedule = schedule diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_schedule.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_schedule.py new file mode 100644 index 000000000000..bf71fdd43c72 --- /dev/null +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_schedule.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AutoscaleSchedule(Model): + """Parameters for a schedule-based autoscale rule, consisting of an array of + days + a time and capacity. + + :param days: Days of the week for a schedule-based autoscale rule + :type days: list[str or ~azure.mgmt.hdinsight.models.DaysOfWeek] + :param time_and_capacity: Time and capacity for a schedule-based autoscale + rule + :type time_and_capacity: + ~azure.mgmt.hdinsight.models.AutoscaleTimeAndCapacity + """ + + _attribute_map = { + 'days': {'key': 'days', 'type': '[DaysOfWeek]'}, + 'time_and_capacity': {'key': 'timeAndCapacity', 'type': 'AutoscaleTimeAndCapacity'}, + } + + def __init__(self, **kwargs): + super(AutoscaleSchedule, self).__init__(**kwargs) + self.days = kwargs.get('days', None) + self.time_and_capacity = kwargs.get('time_and_capacity', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_schedule_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_schedule_py3.py new file mode 100644 index 000000000000..c1754cb38b96 --- /dev/null +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_schedule_py3.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AutoscaleSchedule(Model): + """Parameters for a schedule-based autoscale rule, consisting of an array of + days + a time and capacity. + + :param days: Days of the week for a schedule-based autoscale rule + :type days: list[str or ~azure.mgmt.hdinsight.models.DaysOfWeek] + :param time_and_capacity: Time and capacity for a schedule-based autoscale + rule + :type time_and_capacity: + ~azure.mgmt.hdinsight.models.AutoscaleTimeAndCapacity + """ + + _attribute_map = { + 'days': {'key': 'days', 'type': '[DaysOfWeek]'}, + 'time_and_capacity': {'key': 'timeAndCapacity', 'type': 'AutoscaleTimeAndCapacity'}, + } + + def __init__(self, *, days=None, time_and_capacity=None, **kwargs) -> None: + super(AutoscaleSchedule, self).__init__(**kwargs) + self.days = days + self.time_and_capacity = time_and_capacity diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_time_and_capacity.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_time_and_capacity.py new file mode 100644 index 000000000000..e4744c1d57ca --- /dev/null +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_time_and_capacity.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AutoscaleTimeAndCapacity(Model): + """Time and capacity request parameters. + + :param time: 24-hour time in the form xx:xx + :type time: str + :param min_instance_count: The minimum instance count of the cluster + :type min_instance_count: int + :param max_instance_count: The maximum instance count of the cluster + :type max_instance_count: int + """ + + _attribute_map = { + 'time': {'key': 'time', 'type': 'str'}, + 'min_instance_count': {'key': 'minInstanceCount', 'type': 'int'}, + 'max_instance_count': {'key': 'maxInstanceCount', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(AutoscaleTimeAndCapacity, self).__init__(**kwargs) + self.time = kwargs.get('time', None) + self.min_instance_count = kwargs.get('min_instance_count', None) + self.max_instance_count = kwargs.get('max_instance_count', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_time_and_capacity_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_time_and_capacity_py3.py new file mode 100644 index 000000000000..ff8622ffd5ae --- /dev/null +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/autoscale_time_and_capacity_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AutoscaleTimeAndCapacity(Model): + """Time and capacity request parameters. + + :param time: 24-hour time in the form xx:xx + :type time: str + :param min_instance_count: The minimum instance count of the cluster + :type min_instance_count: int + :param max_instance_count: The maximum instance count of the cluster + :type max_instance_count: int + """ + + _attribute_map = { + 'time': {'key': 'time', 'type': 'str'}, + 'min_instance_count': {'key': 'minInstanceCount', 'type': 'int'}, + 'max_instance_count': {'key': 'maxInstanceCount', 'type': 'int'}, + } + + def __init__(self, *, time: str=None, min_instance_count: int=None, max_instance_count: int=None, **kwargs) -> None: + super(AutoscaleTimeAndCapacity, self).__init__(**kwargs) + self.time = time + self.min_instance_count = min_instance_count + self.max_instance_count = max_instance_count 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 34fee1d526d2..d58b9dad7770 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 @@ -17,6 +17,17 @@ class DirectoryType(str, Enum): active_directory = "ActiveDirectory" +class DaysOfWeek(str, Enum): + + monday = "Monday" + tuesday = "Tuesday" + wednesday = "Wednesday" + thursday = "Thursday" + friday = "Friday" + saturday = "Saturday" + sunday = "Sunday" + + class OSType(str, Enum): windows = "Windows" diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/role.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/role.py index 51ee38b3ec0b..ebee34fbe29a 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/role.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/role.py @@ -21,6 +21,8 @@ class Role(Model): :type min_instance_count: int :param target_instance_count: The instance count of the cluster. :type target_instance_count: int + :param autoscale_configuration: The autoscale configurations. + :type autoscale_configuration: ~azure.mgmt.hdinsight.models.Autoscale :param hardware_profile: The hardware profile. :type hardware_profile: ~azure.mgmt.hdinsight.models.HardwareProfile :param os_profile: The operating system profile. @@ -39,6 +41,7 @@ class Role(Model): 'name': {'key': 'name', 'type': 'str'}, 'min_instance_count': {'key': 'minInstanceCount', 'type': 'int'}, 'target_instance_count': {'key': 'targetInstanceCount', 'type': 'int'}, + 'autoscale_configuration': {'key': 'autoscale', 'type': 'Autoscale'}, 'hardware_profile': {'key': 'hardwareProfile', 'type': 'HardwareProfile'}, 'os_profile': {'key': 'osProfile', 'type': 'OsProfile'}, 'virtual_network_profile': {'key': 'virtualNetworkProfile', 'type': 'VirtualNetworkProfile'}, @@ -51,6 +54,7 @@ def __init__(self, **kwargs): self.name = kwargs.get('name', None) self.min_instance_count = kwargs.get('min_instance_count', None) self.target_instance_count = kwargs.get('target_instance_count', None) + self.autoscale_configuration = kwargs.get('autoscale_configuration', None) self.hardware_profile = kwargs.get('hardware_profile', None) self.os_profile = kwargs.get('os_profile', None) self.virtual_network_profile = kwargs.get('virtual_network_profile', None) diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/role_py3.py b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/role_py3.py index efcc4734449b..9d2143ce66bf 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/role_py3.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/role_py3.py @@ -21,6 +21,8 @@ class Role(Model): :type min_instance_count: int :param target_instance_count: The instance count of the cluster. :type target_instance_count: int + :param autoscale_configuration: The autoscale configurations. + :type autoscale_configuration: ~azure.mgmt.hdinsight.models.Autoscale :param hardware_profile: The hardware profile. :type hardware_profile: ~azure.mgmt.hdinsight.models.HardwareProfile :param os_profile: The operating system profile. @@ -39,6 +41,7 @@ class Role(Model): 'name': {'key': 'name', 'type': 'str'}, 'min_instance_count': {'key': 'minInstanceCount', 'type': 'int'}, 'target_instance_count': {'key': 'targetInstanceCount', 'type': 'int'}, + 'autoscale_configuration': {'key': 'autoscale', 'type': 'Autoscale'}, 'hardware_profile': {'key': 'hardwareProfile', 'type': 'HardwareProfile'}, 'os_profile': {'key': 'osProfile', 'type': 'OsProfile'}, 'virtual_network_profile': {'key': 'virtualNetworkProfile', 'type': 'VirtualNetworkProfile'}, @@ -46,11 +49,12 @@ class Role(Model): 'script_actions': {'key': 'scriptActions', 'type': '[ScriptAction]'}, } - def __init__(self, *, name: str=None, min_instance_count: int=None, target_instance_count: int=None, hardware_profile=None, os_profile=None, virtual_network_profile=None, data_disks_groups=None, script_actions=None, **kwargs) -> None: + def __init__(self, *, name: str=None, min_instance_count: int=None, target_instance_count: int=None, autoscale_configuration=None, hardware_profile=None, os_profile=None, virtual_network_profile=None, data_disks_groups=None, script_actions=None, **kwargs) -> None: super(Role, self).__init__(**kwargs) self.name = name self.min_instance_count = min_instance_count self.target_instance_count = target_instance_count + self.autoscale_configuration = autoscale_configuration self.hardware_profile = hardware_profile self.os_profile = os_profile self.virtual_network_profile = virtual_network_profile 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 9ed7b1240a1c..e0ec669828cb 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/version.py +++ b/sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/version.py @@ -9,4 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "1.0.0" +VERSION = "0.1.0" +