Skip to content
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
235 changes: 227 additions & 8 deletions azure-mgmt-network/azure/mgmt/network/__init__.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"autorest": "1.2.2", "date": "2017-08-16T22:35:25Z", "version": ""}
{"autorest": "1.2.2", "date": "2017-08-17T15:39:08Z", "version": ""}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"autorest": "1.2.2", "date": "2017-08-16T22:38:40Z", "version": ""}
{"autorest": "1.2.2", "date": "2017-08-17T15:40:07Z", "version": ""}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"autorest": "1.2.2", "date": "2017-08-16T22:41:33Z", "version": ""}
{"autorest": "1.2.2", "date": "2017-08-17T15:41:10Z", "version": ""}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"autorest": "1.2.2", "date": "2017-08-16T22:44:59Z", "version": ""}
{"autorest": "1.2.2", "date": "2017-08-17T15:42:19Z", "version": ""}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"autorest": "1.2.2", "date": "2017-08-16T22:59:57Z", "version": ""}
{"autorest": "1.2.2", "date": "2017-08-17T15:43:49Z", "version": ""}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from .network_security_group import NetworkSecurityGroup
from .route import Route
from .route_table import RouteTable
from .private_access_service_properties_format import PrivateAccessServicePropertiesFormat
from .service_endpoint_properties_format import ServiceEndpointPropertiesFormat
from .public_ip_address_dns_settings import PublicIPAddressDnsSettings
from .public_ip_address import PublicIPAddress
from .ip_configuration import IPConfiguration
Expand Down Expand Up @@ -58,6 +58,7 @@
from .application_gateway_ssl_predefined_policy import ApplicationGatewaySslPredefinedPolicy
from .resource import Resource
from .dns_name_availability_result import DnsNameAvailabilityResult
from .endpoint_service_result import EndpointServiceResult
from .express_route_circuit_authorization import ExpressRouteCircuitAuthorization
from .express_route_circuit_peering_config import ExpressRouteCircuitPeeringConfig
from .route_filter_rule import RouteFilterRule
Expand Down Expand Up @@ -126,7 +127,6 @@
from .connectivity_issue import ConnectivityIssue
from .connectivity_hop import ConnectivityHop
from .connectivity_information import ConnectivityInformation
from .private_access_service_result import PrivateAccessServiceResult
from .patch_route_filter_rule import PatchRouteFilterRule
from .patch_route_filter import PatchRouteFilter
from .bgp_community import BGPCommunity
Expand Down Expand Up @@ -158,19 +158,27 @@
from .virtual_network_gateway_connection import VirtualNetworkGatewayConnection
from .connection_reset_shared_key import ConnectionResetSharedKey
from .connection_shared_key import ConnectionSharedKey
from .virtual_network_connection_gateway_reference import VirtualNetworkConnectionGatewayReference
from .virtual_network_gateway_connection_list_entity import VirtualNetworkGatewayConnectionListEntity
from .application_gateway_paged import ApplicationGatewayPaged
from .application_gateway_ssl_predefined_policy_paged import ApplicationGatewaySslPredefinedPolicyPaged
from .endpoint_service_result_paged import EndpointServiceResultPaged
from .express_route_circuit_authorization_paged import ExpressRouteCircuitAuthorizationPaged
from .express_route_circuit_peering_paged import ExpressRouteCircuitPeeringPaged
from .express_route_circuit_paged import ExpressRouteCircuitPaged
from .express_route_service_provider_paged import ExpressRouteServiceProviderPaged
from .load_balancer_paged import LoadBalancerPaged
from .backend_address_pool_paged import BackendAddressPoolPaged
from .frontend_ip_configuration_paged import FrontendIPConfigurationPaged
from .inbound_nat_rule_paged import InboundNatRulePaged
from .load_balancing_rule_paged import LoadBalancingRulePaged
from .network_interface_paged import NetworkInterfacePaged
from .probe_paged import ProbePaged
from .network_interface_ip_configuration_paged import NetworkInterfaceIPConfigurationPaged
from .network_security_group_paged import NetworkSecurityGroupPaged
from .security_rule_paged import SecurityRulePaged
from .network_watcher_paged import NetworkWatcherPaged
from .packet_capture_result_paged import PacketCaptureResultPaged
from .private_access_service_result_paged import PrivateAccessServiceResultPaged
from .public_ip_address_paged import PublicIPAddressPaged
from .route_filter_paged import RouteFilterPaged
from .route_filter_rule_paged import RouteFilterRulePaged
Expand All @@ -183,6 +191,7 @@
from .subnet_paged import SubnetPaged
from .virtual_network_peering_paged import VirtualNetworkPeeringPaged
from .virtual_network_gateway_paged import VirtualNetworkGatewayPaged
from .virtual_network_gateway_connection_list_entity_paged import VirtualNetworkGatewayConnectionListEntityPaged
from .virtual_network_gateway_connection_paged import VirtualNetworkGatewayConnectionPaged
from .local_network_gateway_paged import LocalNetworkGatewayPaged
from .network_management_client_enums import (
Expand Down Expand Up @@ -217,6 +226,7 @@
LoadDistribution,
ProbeProtocol,
NetworkOperationStatus,
EffectiveSecurityRuleProtocol,
EffectiveRouteSource,
EffectiveRouteState,
ProvisioningState,
Expand Down Expand Up @@ -260,7 +270,7 @@
'NetworkSecurityGroup',
'Route',
'RouteTable',
'PrivateAccessServicePropertiesFormat',
'ServiceEndpointPropertiesFormat',
'PublicIPAddressDnsSettings',
'PublicIPAddress',
'IPConfiguration',
Expand Down Expand Up @@ -300,6 +310,7 @@
'ApplicationGatewaySslPredefinedPolicy',
'Resource',
'DnsNameAvailabilityResult',
'EndpointServiceResult',
'ExpressRouteCircuitAuthorization',
'ExpressRouteCircuitPeeringConfig',
'RouteFilterRule',
Expand Down Expand Up @@ -368,7 +379,6 @@
'ConnectivityIssue',
'ConnectivityHop',
'ConnectivityInformation',
'PrivateAccessServiceResult',
'PatchRouteFilterRule',
'PatchRouteFilter',
'BGPCommunity',
Expand Down Expand Up @@ -400,19 +410,27 @@
'VirtualNetworkGatewayConnection',
'ConnectionResetSharedKey',
'ConnectionSharedKey',
'VirtualNetworkConnectionGatewayReference',
'VirtualNetworkGatewayConnectionListEntity',
'ApplicationGatewayPaged',
'ApplicationGatewaySslPredefinedPolicyPaged',
'EndpointServiceResultPaged',
'ExpressRouteCircuitAuthorizationPaged',
'ExpressRouteCircuitPeeringPaged',
'ExpressRouteCircuitPaged',
'ExpressRouteServiceProviderPaged',
'LoadBalancerPaged',
'BackendAddressPoolPaged',
'FrontendIPConfigurationPaged',
'InboundNatRulePaged',
'LoadBalancingRulePaged',
'NetworkInterfacePaged',
'ProbePaged',
'NetworkInterfaceIPConfigurationPaged',
'NetworkSecurityGroupPaged',
'SecurityRulePaged',
'NetworkWatcherPaged',
'PacketCaptureResultPaged',
'PrivateAccessServiceResultPaged',
'PublicIPAddressPaged',
'RouteFilterPaged',
'RouteFilterRulePaged',
Expand All @@ -425,6 +443,7 @@
'SubnetPaged',
'VirtualNetworkPeeringPaged',
'VirtualNetworkGatewayPaged',
'VirtualNetworkGatewayConnectionListEntityPaged',
'VirtualNetworkGatewayConnectionPaged',
'LocalNetworkGatewayPaged',
'TransportProtocol',
Expand Down Expand Up @@ -458,6 +477,7 @@
'LoadDistribution',
'ProbeProtocol',
'NetworkOperationStatus',
'EffectiveSecurityRuleProtocol',
'EffectiveRouteSource',
'EffectiveRouteState',
'ProvisioningState',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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.paging import Paged


class BackendAddressPoolPaged(Paged):
"""
A paging container for iterating over a list of :class:`BackendAddressPool <azure.mgmt.network.v2017_06_01.models.BackendAddressPool>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[BackendAddressPool]'}
}

def __init__(self, *args, **kwargs):

super(BackendAddressPoolPaged, self).__init__(*args, **kwargs)
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,27 @@ class EffectiveNetworkSecurityGroup(Model):
applied.
:type network_security_group: :class:`SubResource
<azure.mgmt.network.v2017_06_01.models.SubResource>`
:param association:
:param association: Associated resources.
:type association: :class:`EffectiveNetworkSecurityGroupAssociation
<azure.mgmt.network.v2017_06_01.models.EffectiveNetworkSecurityGroupAssociation>`
:param effective_security_rules: A collection of effective security rules.
:type effective_security_rules: list of
:class:`EffectiveNetworkSecurityRule
<azure.mgmt.network.v2017_06_01.models.EffectiveNetworkSecurityRule>`
:param tag_map: Mapping of tags to list of IP Addresses included within
the tag.
:type tag_map: dict
"""

_attribute_map = {
'network_security_group': {'key': 'networkSecurityGroup', 'type': 'SubResource'},
'association': {'key': 'association', 'type': 'EffectiveNetworkSecurityGroupAssociation'},
'effective_security_rules': {'key': 'effectiveSecurityRules', 'type': '[EffectiveNetworkSecurityRule]'},
'tag_map': {'key': 'tagMap', 'type': '{[str]}'},
}

def __init__(self, network_security_group=None, association=None, effective_security_rules=None):
def __init__(self, network_security_group=None, association=None, effective_security_rules=None, tag_map=None):
self.network_security_group = network_security_group
self.association = association
self.effective_security_rules = effective_security_rules
self.tag_map = tag_map
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,25 @@
class EffectiveNetworkSecurityGroupListResult(Model):
"""Response for list effective network security groups API service call.

Variables are only populated by the server, and will be ignored when
sending a request.

:param value: A list of effective network security groups.
:type value: list of :class:`EffectiveNetworkSecurityGroup
<azure.mgmt.network.v2017_06_01.models.EffectiveNetworkSecurityGroup>`
:param next_link: The URL to get the next set of results.
:type next_link: str
:ivar next_link: The URL to get the next set of results.
:vartype next_link: str
"""

_validation = {
'next_link': {'readonly': True},
}

_attribute_map = {
'value': {'key': 'value', 'type': '[EffectiveNetworkSecurityGroup]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}

def __init__(self, value=None, next_link=None):
def __init__(self, value=None):
self.value = value
self.next_link = next_link
self.next_link = None
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,34 @@ class EffectiveNetworkSecurityRule(Model):
created by the user).
:type name: str
:param protocol: The network protocol this rule applies to. Possible
values are: 'Tcp', 'Udp', and '*'. Possible values include: 'Tcp', 'Udp',
'*'
:type protocol: str or :class:`SecurityRuleProtocol
<azure.mgmt.network.v2017_06_01.models.SecurityRuleProtocol>`
values are: 'Tcp', 'Udp', and 'All'. Possible values include: 'Tcp',
'Udp', 'All'
:type protocol: str or :class:`EffectiveSecurityRuleProtocol
<azure.mgmt.network.v2017_06_01.models.EffectiveSecurityRuleProtocol>`
:param source_port_range: The source port or range.
:type source_port_range: str
:param destination_port_range: The destination port or range.
:type destination_port_range: str
:param source_port_ranges: The source port ranges. Expected values include
a single integer between 0 and 65535, a range using '-' as seperator (e.g.
100-400), or an asterix (*)
:type source_port_ranges: list of str
:param destination_port_ranges: The destination port ranges. Expected
values include a single integer between 0 and 65535, a range using '-' as
seperator (e.g. 100-400), or an asterix (*)
:type destination_port_ranges: list of str
:param source_address_prefix: The source address prefix.
:type source_address_prefix: str
:param destination_address_prefix: The destination address prefix.
:type destination_address_prefix: str
:param source_address_prefixes: The source address prefixes. Expected
values include CIDR IP ranges, Default Tags (VirtualNetwork,
AureLoadBalancer, Internet), System Tags, and the asterix (*).
:type source_address_prefixes: list of str
:param destination_address_prefixes: The destination address prefixes.
Expected values include CIDR IP ranges, Default Tags (VirtualNetwork,
AureLoadBalancer, Internet), System Tags, and the asterix (*).
:type destination_address_prefixes: list of str
:param expanded_source_address_prefix: The expanded source address prefix.
:type expanded_source_address_prefix: list of str
:param expanded_destination_address_prefix: Expanded destination address
Expand All @@ -53,22 +69,30 @@ class EffectiveNetworkSecurityRule(Model):
'protocol': {'key': 'protocol', 'type': 'str'},
'source_port_range': {'key': 'sourcePortRange', 'type': 'str'},
'destination_port_range': {'key': 'destinationPortRange', 'type': 'str'},
'source_port_ranges': {'key': 'sourcePortRanges', 'type': '[str]'},
'destination_port_ranges': {'key': 'destinationPortRanges', 'type': '[str]'},
'source_address_prefix': {'key': 'sourceAddressPrefix', 'type': 'str'},
'destination_address_prefix': {'key': 'destinationAddressPrefix', 'type': 'str'},
'source_address_prefixes': {'key': 'sourceAddressPrefixes', 'type': '[str]'},
'destination_address_prefixes': {'key': 'destinationAddressPrefixes', 'type': '[str]'},
'expanded_source_address_prefix': {'key': 'expandedSourceAddressPrefix', 'type': '[str]'},
'expanded_destination_address_prefix': {'key': 'expandedDestinationAddressPrefix', 'type': '[str]'},
'access': {'key': 'access', 'type': 'str'},
'priority': {'key': 'priority', 'type': 'int'},
'direction': {'key': 'direction', 'type': 'str'},
}

def __init__(self, name=None, protocol=None, source_port_range=None, destination_port_range=None, source_address_prefix=None, destination_address_prefix=None, expanded_source_address_prefix=None, expanded_destination_address_prefix=None, access=None, priority=None, direction=None):
def __init__(self, name=None, protocol=None, source_port_range=None, destination_port_range=None, source_port_ranges=None, destination_port_ranges=None, source_address_prefix=None, destination_address_prefix=None, source_address_prefixes=None, destination_address_prefixes=None, expanded_source_address_prefix=None, expanded_destination_address_prefix=None, access=None, priority=None, direction=None):
self.name = name
self.protocol = protocol
self.source_port_range = source_port_range
self.destination_port_range = destination_port_range
self.source_port_ranges = source_port_ranges
self.destination_port_ranges = destination_port_ranges
self.source_address_prefix = source_address_prefix
self.destination_address_prefix = destination_address_prefix
self.source_address_prefixes = source_address_prefixes
self.destination_address_prefixes = destination_address_prefixes
self.expanded_source_address_prefix = expanded_source_address_prefix
self.expanded_destination_address_prefix = expanded_destination_address_prefix
self.access = access
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,25 @@
class EffectiveRouteListResult(Model):
"""Response for list effective route API service call.

Variables are only populated by the server, and will be ignored when
sending a request.

:param value: A list of effective routes.
:type value: list of :class:`EffectiveRoute
<azure.mgmt.network.v2017_06_01.models.EffectiveRoute>`
:param next_link: The URL to get the next set of results.
:type next_link: str
:ivar next_link: The URL to get the next set of results.
:vartype next_link: str
"""

_validation = {
'next_link': {'readonly': True},
}

_attribute_map = {
'value': {'key': 'value', 'type': '[EffectiveRoute]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}

def __init__(self, value=None, next_link=None):
def __init__(self, value=None):
self.value = value
self.next_link = next_link
self.next_link = None
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@
from .sub_resource import SubResource


class PrivateAccessServiceResult(SubResource):
"""Private access service.
class EndpointServiceResult(SubResource):
"""Endpoint service.

Variables are only populated by the server, and will be ignored when
sending a request.

:param id: Resource ID.
:type id: str
:ivar name: Name of the private access value.
:ivar name: Name of the endpoint service.
:vartype name: str
:ivar type: Type of the private access value.
:ivar type: Type of the endpoint service.
:vartype type: str
"""

Expand All @@ -38,6 +38,6 @@ class PrivateAccessServiceResult(SubResource):
}

def __init__(self, id=None):
super(PrivateAccessServiceResult, self).__init__(id=id)
super(EndpointServiceResult, self).__init__(id=id)
self.name = None
self.type = None
Loading