Skip to content
Closed
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 @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -125,6 +135,7 @@
from .operation_paged import OperationPaged
from .hd_insight_management_client_enums import (
DirectoryType,
DaysOfWeek,
OSType,
Tier,
JsonWebKeyEncryptionAlgorithm,
Expand All @@ -136,6 +147,11 @@
__all__ = [
'ClusterDefinition',
'SecurityProfile',
'AutoscaleTimeAndCapacity',
'AutoscaleSchedule',
'AutoscaleCapacity',
'AutoscaleRecurrence',
'Autoscale',
'HardwareProfile',
'VirtualNetworkProfile',
'DataDisksGroups',
Expand Down Expand Up @@ -193,6 +209,7 @@
'RuntimeScriptActionDetailPaged',
'OperationPaged',
'DirectoryType',
'DaysOfWeek',
'OSType',
'Tier',
'JsonWebKeyEncryptionAlgorithm',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,21 @@ 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 = {
'access_modes': {'key': 'accessModes', 'type': '[str]'},
'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):
Expand All @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,28 @@ 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 = {
'access_modes': {'key': 'accessModes', 'type': '[str]'},
'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
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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
Loading