Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR network/resource-manager] #Network Updated Applicaiton Gateway Autoscale Configuration #3300

Merged
merged 1 commit into from
Sep 11, 2018
Merged
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 @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -711,7 +709,6 @@
'ApplicationGatewayUrlPathMap',
'ApplicationGatewayFirewallDisabledRuleGroup',
'ApplicationGatewayWebApplicationFirewallConfiguration',
'ApplicationGatewayAutoscaleBounds',
'ApplicationGatewayAutoscaleConfiguration',
'ApplicationGateway',
'ApplicationGatewayFirewallRule',
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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