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] Microsot.Network/virtualnetworkgateways Reset VPN Client Shared Key #3264

Merged
merged 3 commits into from
Sep 10, 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
39 changes: 39 additions & 0 deletions azure-mgmt-network/azure/mgmt/network/network_management_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,19 @@ def application_security_groups(self):
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def available_delegations(self):
"""Instance depends on the API version:

* 2018-08-01: :class:`AvailableDelegationsOperations<azure.mgmt.network.v2018_08_01.operations.AvailableDelegationsOperations>`
"""
api_version = self._get_api_version('available_delegations')
if api_version == '2018-08-01':
from .v2018_08_01.operations import AvailableDelegationsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def available_endpoint_services(self):
"""Instance depends on the API version:
Expand Down Expand Up @@ -368,6 +381,19 @@ def available_endpoint_services(self):
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def available_resource_group_delegations(self):
"""Instance depends on the API version:

* 2018-08-01: :class:`AvailableResourceGroupDelegationsOperations<azure.mgmt.network.v2018_08_01.operations.AvailableResourceGroupDelegationsOperations>`
"""
api_version = self._get_api_version('available_resource_group_delegations')
if api_version == '2018-08-01':
from .v2018_08_01.operations import AvailableResourceGroupDelegationsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def azure_firewall_fqdn_tags(self):
"""Instance depends on the API version:
Expand Down Expand Up @@ -1432,6 +1458,19 @@ def network_interfaces(self):
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def network_profiles(self):
"""Instance depends on the API version:

* 2018-08-01: :class:`NetworkProfilesOperations<azure.mgmt.network.v2018_08_01.operations.NetworkProfilesOperations>`
"""
api_version = self._get_api_version('network_profiles')
if api_version == '2018-08-01':
from .v2018_08_01.operations import NetworkProfilesOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def network_security_groups(self):
"""Instance depends on the API version:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
from .ip_tag_py3 import IpTag
from .public_ip_address_py3 import PublicIPAddress
from .ip_configuration_py3 import IPConfiguration
from .ip_configuration_profile_py3 import IPConfigurationProfile
from .resource_navigation_link_py3 import ResourceNavigationLink
from .service_association_link_py3 import ServiceAssociationLink
from .delegation_py3 import Delegation
from .subnet_py3 import Subnet
from .frontend_ip_configuration_py3 import FrontendIPConfiguration
from .virtual_network_tap_py3 import VirtualNetworkTap
Expand Down Expand Up @@ -61,7 +64,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 All @@ -72,6 +74,7 @@
from .application_gateway_ssl_predefined_policy_py3 import ApplicationGatewaySslPredefinedPolicy
from .resource_py3 import Resource
from .tags_object_py3 import TagsObject
from .available_delegation_py3 import AvailableDelegation
from .azure_firewall_ip_configuration_py3 import AzureFirewallIPConfiguration
from .azure_firewall_rc_action_py3 import AzureFirewallRCAction
from .azure_firewall_application_rule_protocol_py3 import AzureFirewallApplicationRuleProtocol
Expand Down Expand Up @@ -112,6 +115,8 @@
from .express_route_circuit_reference_py3 import ExpressRouteCircuitReference
from .express_route_cross_connection_peering_py3 import ExpressRouteCrossConnectionPeering
from .express_route_cross_connection_py3 import ExpressRouteCrossConnection
from .virtual_hub_id_py3 import VirtualHubId
from .express_route_circuit_peering_id_py3 import ExpressRouteCircuitPeeringId
from .express_route_gateway_properties_auto_scale_configuration_bounds_py3 import ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds
from .express_route_gateway_properties_auto_scale_configuration_py3 import ExpressRouteGatewayPropertiesAutoScaleConfiguration
from .express_route_connection_py3 import ExpressRouteConnection
Expand All @@ -133,6 +138,11 @@
from .effective_network_security_group_list_result_py3 import EffectiveNetworkSecurityGroupListResult
from .effective_route_py3 import EffectiveRoute
from .effective_route_list_result_py3 import EffectiveRouteListResult
from .container_network_interface_configuration_py3 import ContainerNetworkInterfaceConfiguration
from .container_py3 import Container
from .container_network_interface_ip_configuration_py3 import ContainerNetworkInterfaceIpConfiguration
from .container_network_interface_py3 import ContainerNetworkInterface
from .network_profile_py3 import NetworkProfile
from .error_response_py3 import ErrorResponse, ErrorResponseException
from .network_watcher_py3 import NetworkWatcher
from .topology_parameters_py3 import TopologyParameters
Expand Down Expand Up @@ -274,7 +284,10 @@
from .ip_tag import IpTag
from .public_ip_address import PublicIPAddress
from .ip_configuration import IPConfiguration
from .ip_configuration_profile import IPConfigurationProfile
from .resource_navigation_link import ResourceNavigationLink
from .service_association_link import ServiceAssociationLink
from .delegation import Delegation
from .subnet import Subnet
from .frontend_ip_configuration import FrontendIPConfiguration
from .virtual_network_tap import VirtualNetworkTap
Expand Down Expand Up @@ -306,7 +319,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 All @@ -317,6 +329,7 @@
from .application_gateway_ssl_predefined_policy import ApplicationGatewaySslPredefinedPolicy
from .resource import Resource
from .tags_object import TagsObject
from .available_delegation import AvailableDelegation
from .azure_firewall_ip_configuration import AzureFirewallIPConfiguration
from .azure_firewall_rc_action import AzureFirewallRCAction
from .azure_firewall_application_rule_protocol import AzureFirewallApplicationRuleProtocol
Expand Down Expand Up @@ -357,6 +370,8 @@
from .express_route_circuit_reference import ExpressRouteCircuitReference
from .express_route_cross_connection_peering import ExpressRouteCrossConnectionPeering
from .express_route_cross_connection import ExpressRouteCrossConnection
from .virtual_hub_id import VirtualHubId
from .express_route_circuit_peering_id import ExpressRouteCircuitPeeringId
from .express_route_gateway_properties_auto_scale_configuration_bounds import ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds
from .express_route_gateway_properties_auto_scale_configuration import ExpressRouteGatewayPropertiesAutoScaleConfiguration
from .express_route_connection import ExpressRouteConnection
Expand All @@ -378,6 +393,11 @@
from .effective_network_security_group_list_result import EffectiveNetworkSecurityGroupListResult
from .effective_route import EffectiveRoute
from .effective_route_list_result import EffectiveRouteListResult
from .container_network_interface_configuration import ContainerNetworkInterfaceConfiguration
from .container import Container
from .container_network_interface_ip_configuration import ContainerNetworkInterfaceIpConfiguration
from .container_network_interface import ContainerNetworkInterface
from .network_profile import NetworkProfile
from .error_response import ErrorResponse, ErrorResponseException
from .network_watcher import NetworkWatcher
from .topology_parameters import TopologyParameters
Expand Down Expand Up @@ -502,6 +522,7 @@
from .application_gateway_paged import ApplicationGatewayPaged
from .application_gateway_ssl_predefined_policy_paged import ApplicationGatewaySslPredefinedPolicyPaged
from .application_security_group_paged import ApplicationSecurityGroupPaged
from .available_delegation_paged import AvailableDelegationPaged
from .azure_firewall_paged import AzureFirewallPaged
from .azure_firewall_fqdn_tag_paged import AzureFirewallFqdnTagPaged
from .ddos_protection_plan_paged import DdosProtectionPlanPaged
Expand All @@ -522,6 +543,7 @@
from .probe_paged import ProbePaged
from .network_interface_ip_configuration_paged import NetworkInterfaceIPConfigurationPaged
from .network_interface_tap_configuration_paged import NetworkInterfaceTapConfigurationPaged
from .network_profile_paged import NetworkProfilePaged
from .network_security_group_paged import NetworkSecurityGroupPaged
from .security_rule_paged import SecurityRulePaged
from .network_watcher_paged import NetworkWatcherPaged
Expand Down Expand Up @@ -656,7 +678,10 @@
'IpTag',
'PublicIPAddress',
'IPConfiguration',
'IPConfigurationProfile',
'ResourceNavigationLink',
'ServiceAssociationLink',
'Delegation',
'Subnet',
'FrontendIPConfiguration',
'VirtualNetworkTap',
Expand Down Expand Up @@ -688,7 +713,6 @@
'ApplicationGatewayUrlPathMap',
'ApplicationGatewayFirewallDisabledRuleGroup',
'ApplicationGatewayWebApplicationFirewallConfiguration',
'ApplicationGatewayAutoscaleBounds',
'ApplicationGatewayAutoscaleConfiguration',
'ApplicationGateway',
'ApplicationGatewayFirewallRule',
Expand All @@ -699,6 +723,7 @@
'ApplicationGatewaySslPredefinedPolicy',
'Resource',
'TagsObject',
'AvailableDelegation',
'AzureFirewallIPConfiguration',
'AzureFirewallRCAction',
'AzureFirewallApplicationRuleProtocol',
Expand Down Expand Up @@ -739,6 +764,8 @@
'ExpressRouteCircuitReference',
'ExpressRouteCrossConnectionPeering',
'ExpressRouteCrossConnection',
'VirtualHubId',
'ExpressRouteCircuitPeeringId',
'ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds',
'ExpressRouteGatewayPropertiesAutoScaleConfiguration',
'ExpressRouteConnection',
Expand All @@ -760,6 +787,11 @@
'EffectiveNetworkSecurityGroupListResult',
'EffectiveRoute',
'EffectiveRouteListResult',
'ContainerNetworkInterfaceConfiguration',
'Container',
'ContainerNetworkInterfaceIpConfiguration',
'ContainerNetworkInterface',
'NetworkProfile',
'ErrorResponse', 'ErrorResponseException',
'NetworkWatcher',
'TopologyParameters',
Expand Down Expand Up @@ -884,6 +916,7 @@
'ApplicationGatewayPaged',
'ApplicationGatewaySslPredefinedPolicyPaged',
'ApplicationSecurityGroupPaged',
'AvailableDelegationPaged',
'AzureFirewallPaged',
'AzureFirewallFqdnTagPaged',
'DdosProtectionPlanPaged',
Expand All @@ -904,6 +937,7 @@
'ProbePaged',
'NetworkInterfaceIPConfigurationPaged',
'NetworkInterfaceTapConfigurationPaged',
'NetworkProfilePaged',
'NetworkSecurityGroupPaged',
'SecurityRulePaged',
'NetworkWatcherPaged',
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
Loading