Skip to content

Commit

Permalink
[AKS] update aks vendored sdk to 9.0.1 (#1528)
Browse files Browse the repository at this point in the history
* update aks vendored sdk to 9.0.1

* update model version
  • Loading branch information
marwanad authored Apr 13, 2020
1 parent d56c776 commit 087da1a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/aks-preview/azext_aks_preview/_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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'},
Expand All @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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'},
Expand All @@ -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
Expand Down

0 comments on commit 087da1a

Please sign in to comment.