From 087da1aae2c7ca363a4249ad234a232e006f8e4f Mon Sep 17 00:00:00 2001 From: Marwan Ahmed Date: Sun, 12 Apr 2020 22:45:20 -0700 Subject: [PATCH] [AKS] update aks vendored sdk to 9.0.1 (#1528) * update aks vendored sdk to 9.0.1 * update model version --- src/aks-preview/azext_aks_preview/_validators.py | 2 +- .../azure_mgmt_preview_aks/v2020_03_01/models/_models.py | 4 ++++ .../v2020_03_01/models/_models_py3.py | 6 +++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/aks-preview/azext_aks_preview/_validators.py b/src/aks-preview/azext_aks_preview/_validators.py index b8bd09757ba..d28e410bfd5 100644 --- a/src/aks-preview/azext_aks_preview/_validators.py +++ b/src/aks-preview/azext_aks_preview/_validators.py @@ -16,7 +16,7 @@ from azure.cli.core.util import CLIError import azure.cli.core.keys as keys -from .vendored_sdks.azure_mgmt_preview_aks.v2020_02_01.models import ManagedClusterPropertiesAutoScalerProfile +from .vendored_sdks.azure_mgmt_preview_aks.v2020_03_01.models import ManagedClusterPropertiesAutoScalerProfile logger = get_logger(__name__) diff --git a/src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_03_01/models/_models.py b/src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_03_01/models/_models.py index 345ff38857e..92c24b12459 100644 --- a/src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_03_01/models/_models.py +++ b/src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_03_01/models/_models.py @@ -1778,6 +1778,8 @@ def __init__(self, **kwargs): class ManagedClusterPropertiesAutoScalerProfile(Model): """Parameters to be applied to the cluster-autoscaler when enabled. + :param balance_similar_node_groups: + :type balance_similar_node_groups: str :param scan_interval: :type scan_interval: str :param scale_down_delay_after_add: @@ -1797,6 +1799,7 @@ class ManagedClusterPropertiesAutoScalerProfile(Model): """ _attribute_map = { + 'balance_similar_node_groups': {'key': 'balance-similar-node-groups', 'type': 'str'}, 'scan_interval': {'key': 'scan-interval', 'type': 'str'}, 'scale_down_delay_after_add': {'key': 'scale-down-delay-after-add', 'type': 'str'}, 'scale_down_delay_after_delete': {'key': 'scale-down-delay-after-delete', 'type': 'str'}, @@ -1809,6 +1812,7 @@ class ManagedClusterPropertiesAutoScalerProfile(Model): def __init__(self, **kwargs): super(ManagedClusterPropertiesAutoScalerProfile, self).__init__(**kwargs) + self.balance_similar_node_groups = kwargs.get('balance_similar_node_groups', None) self.scan_interval = kwargs.get('scan_interval', None) self.scale_down_delay_after_add = kwargs.get('scale_down_delay_after_add', None) self.scale_down_delay_after_delete = kwargs.get('scale_down_delay_after_delete', None) diff --git a/src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_03_01/models/_models_py3.py b/src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_03_01/models/_models_py3.py index 89bd3328670..ca7a88f2bdc 100644 --- a/src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_03_01/models/_models_py3.py +++ b/src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_03_01/models/_models_py3.py @@ -1778,6 +1778,8 @@ def __init__(self, *, kubernetes_version: str=None, is_preview: bool=None, **kwa class ManagedClusterPropertiesAutoScalerProfile(Model): """Parameters to be applied to the cluster-autoscaler when enabled. + :param balance_similar_node_groups: + :type balance_similar_node_groups: str :param scan_interval: :type scan_interval: str :param scale_down_delay_after_add: @@ -1797,6 +1799,7 @@ class ManagedClusterPropertiesAutoScalerProfile(Model): """ _attribute_map = { + 'balance_similar_node_groups': {'key': 'balance-similar-node-groups', 'type': 'str'}, 'scan_interval': {'key': 'scan-interval', 'type': 'str'}, 'scale_down_delay_after_add': {'key': 'scale-down-delay-after-add', 'type': 'str'}, 'scale_down_delay_after_delete': {'key': 'scale-down-delay-after-delete', 'type': 'str'}, @@ -1807,8 +1810,9 @@ class ManagedClusterPropertiesAutoScalerProfile(Model): 'max_graceful_termination_sec': {'key': 'max-graceful-termination-sec', 'type': 'str'}, } - def __init__(self, *, scan_interval: str=None, scale_down_delay_after_add: str=None, scale_down_delay_after_delete: str=None, scale_down_delay_after_failure: str=None, scale_down_unneeded_time: str=None, scale_down_unready_time: str=None, scale_down_utilization_threshold: str=None, max_graceful_termination_sec: str=None, **kwargs) -> None: + def __init__(self, *, balance_similar_node_groups: str=None, scan_interval: str=None, scale_down_delay_after_add: str=None, scale_down_delay_after_delete: str=None, scale_down_delay_after_failure: str=None, scale_down_unneeded_time: str=None, scale_down_unready_time: str=None, scale_down_utilization_threshold: str=None, max_graceful_termination_sec: str=None, **kwargs) -> None: super(ManagedClusterPropertiesAutoScalerProfile, self).__init__(**kwargs) + self.balance_similar_node_groups = balance_similar_node_groups self.scan_interval = scan_interval self.scale_down_delay_after_add = scale_down_delay_after_add self.scale_down_delay_after_delete = scale_down_delay_after_delete