From 77de76d3e5b5cf61a94a4269223688d0ed28c110 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 7 Sep 2018 21:26:35 +0000 Subject: [PATCH] Generated from 3f05c42217afb66ec792fa88ca138894ca6c2faf Updated AppGW Autoscale Configuration --- .../network/v2018_08_01/models/__init__.py | 3 -- .../application_gateway_autoscale_bounds.py | 42 ------------------- ...pplication_gateway_autoscale_bounds_py3.py | 42 ------------------- ...ication_gateway_autoscale_configuration.py | 12 +++--- ...ion_gateway_autoscale_configuration_py3.py | 14 +++---- 5 files changed, 13 insertions(+), 100 deletions(-) delete mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_autoscale_bounds.py delete mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_autoscale_bounds_py3.py diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/__init__.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/__init__.py index 8c576e48e4b5..7f0c080ebfd6 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/__init__.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/__init__.py @@ -62,7 +62,6 @@ from .application_gateway_url_path_map_py3 import ApplicationGatewayUrlPathMap from .application_gateway_firewall_disabled_rule_group_py3 import ApplicationGatewayFirewallDisabledRuleGroup from .application_gateway_web_application_firewall_configuration_py3 import ApplicationGatewayWebApplicationFirewallConfiguration - from .application_gateway_autoscale_bounds_py3 import ApplicationGatewayAutoscaleBounds from .application_gateway_autoscale_configuration_py3 import ApplicationGatewayAutoscaleConfiguration from .application_gateway_py3 import ApplicationGateway from .application_gateway_firewall_rule_py3 import ApplicationGatewayFirewallRule @@ -317,7 +316,6 @@ from .application_gateway_url_path_map import ApplicationGatewayUrlPathMap from .application_gateway_firewall_disabled_rule_group import ApplicationGatewayFirewallDisabledRuleGroup from .application_gateway_web_application_firewall_configuration import ApplicationGatewayWebApplicationFirewallConfiguration - from .application_gateway_autoscale_bounds import ApplicationGatewayAutoscaleBounds from .application_gateway_autoscale_configuration import ApplicationGatewayAutoscaleConfiguration from .application_gateway import ApplicationGateway from .application_gateway_firewall_rule import ApplicationGatewayFirewallRule @@ -711,7 +709,6 @@ 'ApplicationGatewayUrlPathMap', 'ApplicationGatewayFirewallDisabledRuleGroup', 'ApplicationGatewayWebApplicationFirewallConfiguration', - 'ApplicationGatewayAutoscaleBounds', 'ApplicationGatewayAutoscaleConfiguration', 'ApplicationGateway', 'ApplicationGatewayFirewallRule', diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_autoscale_bounds.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_autoscale_bounds.py deleted file mode 100644 index f36b8744e511..000000000000 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_autoscale_bounds.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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 ApplicationGatewayAutoscaleBounds(Model): - """Application Gateway autoscale bounds on number of Application Gateway - instance. - - All required parameters must be populated in order to send to Azure. - - :param min: Required. Lower bound on number of Application Gateway - instances. - :type min: int - :param max: Required. Upper bound on number of Application Gateway - instances. - :type max: int - """ - - _validation = { - 'min': {'required': True}, - 'max': {'required': True}, - } - - _attribute_map = { - 'min': {'key': 'min', 'type': 'int'}, - 'max': {'key': 'max', 'type': 'int'}, - } - - def __init__(self, **kwargs): - super(ApplicationGatewayAutoscaleBounds, self).__init__(**kwargs) - self.min = kwargs.get('min', None) - self.max = kwargs.get('max', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_autoscale_bounds_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_autoscale_bounds_py3.py deleted file mode 100644 index fd93bf10f8f2..000000000000 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_autoscale_bounds_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# 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 ApplicationGatewayAutoscaleBounds(Model): - """Application Gateway autoscale bounds on number of Application Gateway - instance. - - All required parameters must be populated in order to send to Azure. - - :param min: Required. Lower bound on number of Application Gateway - instances. - :type min: int - :param max: Required. Upper bound on number of Application Gateway - instances. - :type max: int - """ - - _validation = { - 'min': {'required': True}, - 'max': {'required': True}, - } - - _attribute_map = { - 'min': {'key': 'min', 'type': 'int'}, - 'max': {'key': 'max', 'type': 'int'}, - } - - def __init__(self, *, min: int, max: int, **kwargs) -> None: - super(ApplicationGatewayAutoscaleBounds, self).__init__(**kwargs) - self.min = min - self.max = max diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_autoscale_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_autoscale_configuration.py index d54bc1195211..ae12d7fb1ad6 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_autoscale_configuration.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_autoscale_configuration.py @@ -17,19 +17,19 @@ class ApplicationGatewayAutoscaleConfiguration(Model): All required parameters must be populated in order to send to Azure. - :param bounds: Required. Autoscale bounds - :type bounds: - ~azure.mgmt.network.v2018_08_01.models.ApplicationGatewayAutoscaleBounds + :param min_capacity: Required. Lower bound on number of Application + Gateway instances + :type min_capacity: int """ _validation = { - 'bounds': {'required': True}, + 'min_capacity': {'required': True, 'minimum': 2}, } _attribute_map = { - 'bounds': {'key': 'bounds', 'type': 'ApplicationGatewayAutoscaleBounds'}, + 'min_capacity': {'key': 'minCapacity', 'type': 'int'}, } def __init__(self, **kwargs): super(ApplicationGatewayAutoscaleConfiguration, self).__init__(**kwargs) - self.bounds = kwargs.get('bounds', None) + self.min_capacity = kwargs.get('min_capacity', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_autoscale_configuration_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_autoscale_configuration_py3.py index 2daa488a4ece..b5408acfde22 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_autoscale_configuration_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_autoscale_configuration_py3.py @@ -17,19 +17,19 @@ class ApplicationGatewayAutoscaleConfiguration(Model): All required parameters must be populated in order to send to Azure. - :param bounds: Required. Autoscale bounds - :type bounds: - ~azure.mgmt.network.v2018_08_01.models.ApplicationGatewayAutoscaleBounds + :param min_capacity: Required. Lower bound on number of Application + Gateway instances + :type min_capacity: int """ _validation = { - 'bounds': {'required': True}, + 'min_capacity': {'required': True, 'minimum': 2}, } _attribute_map = { - 'bounds': {'key': 'bounds', 'type': 'ApplicationGatewayAutoscaleBounds'}, + 'min_capacity': {'key': 'minCapacity', 'type': 'int'}, } - def __init__(self, *, bounds, **kwargs) -> None: + def __init__(self, *, min_capacity: int, **kwargs) -> None: super(ApplicationGatewayAutoscaleConfiguration, self).__init__(**kwargs) - self.bounds = bounds + self.min_capacity = min_capacity