diff --git a/azure-mgmt-network/HISTORY.rst b/azure-mgmt-network/HISTORY.rst index 51f2e70bb349..8eb46648c7a6 100644 --- a/azure-mgmt-network/HISTORY.rst +++ b/azure-mgmt-network/HISTORY.rst @@ -2,6 +2,23 @@ Release History =============== + +1.5.0rc1 (2017-09-18) ++++++++++++++++++++++ + +**Features** + +- Add ApiVersion 2017-09-01 (new default) +- Add application_security_groups (ASG) operations group +- Add ASG to network_interface operations +- Add ASG to IP operations +- Add source/destination ASGs to network security rules +- Add DDOS protection and VM protection to vnet operations + +**Bug fix** + +- check_dns_name_availability now correctly defines "domain_name_label" as required and not optional + 1.4.0 (2017-08-23) ++++++++++++++++++ diff --git a/azure-mgmt-network/README.rst b/azure-mgmt-network/README.rst index 6135402f3642..f9535530f7fc 100644 --- a/azure-mgmt-network/README.rst +++ b/azure-mgmt-network/README.rst @@ -1,12 +1,12 @@ Microsoft Azure SDK for Python ============================== -This is the Microsoft Azure Network Resource Management Client Library. +This is the Microsoft Azure Network Management Client Library. Azure Resource Manager (ARM) is the next generation of management APIs that replace the old Azure Service Management (ASM). -This package has been tested with Python 2.7, 3.3, 3.4 and 3.5. +This package has been tested with Python 2.7, 3.3, 3.4, 3.5 and 3.6. For the older Azure Service Management (ASM) libraries, see `azure-servicemanagement-legacy `__ library. diff --git a/azure-mgmt-network/azure/mgmt/network/__init__.py b/azure-mgmt-network/azure/mgmt/network/__init__.py index 8360036bf989..08ece58d9ccf 100644 --- a/azure-mgmt-network/azure/mgmt/network/__init__.py +++ b/azure-mgmt-network/azure/mgmt/network/__init__.py @@ -71,7 +71,7 @@ class NetworkManagementClient(object): :param str base_url: Service URL """ - DEFAULT_API_VERSION='2017-08-01' + DEFAULT_API_VERSION='2017-09-01' def __init__( self, credentials, subscription_id, api_version=DEFAULT_API_VERSION, base_url=None): @@ -85,9 +85,9 @@ def __init__( self._deserialize = Deserializer(client_models) def check_dns_name_availability( - self, location, domain_name_label=None, custom_headers=None, raw=False, **operation_config): - """Checks whether a domain name in the cloudapp.net zone is available for - use. + self, location, domain_name_label, custom_headers=None, raw=False, **operation_config): + """Checks whether a domain name in the cloudapp.azure.com zone is + available for use. :param location: The location of the domain name. :type location: str @@ -101,15 +101,17 @@ def check_dns_name_availability( :param operation_config: :ref:`Operation configuration overrides`. :return: :class:`DnsNameAvailabilityResult - ` or + ` or :class:`ClientRawResponse` if raw=true :rtype: :class:`DnsNameAvailabilityResult - ` or + ` or :class:`ClientRawResponse` :raises: :class:`CloudError` """ - if self.api_version == '2017-08-01': + if self.api_version == '2017-09-01': + from .v2017_09_01 import NetworkManagementClient as ClientClass + elif self.api_version == '2017-08-01': from .v2017_08_01 import NetworkManagementClient as ClientClass elif self.api_version == '2017-06-01': from .v2017_06_01 import NetworkManagementClient as ClientClass @@ -140,6 +142,7 @@ def models(cls, api_version=DEFAULT_API_VERSION): * 2017-03-01: :mod:`v2017_03_01.models` * 2017-06-01: :mod:`v2017_06_01.models` * 2017-08-01: :mod:`v2017_08_01.models` + * 2017-09-01: :mod:`v2017_09_01.models` """ if api_version == '2015-06-15': from .v2015_06_15 import models @@ -159,6 +162,9 @@ def models(cls, api_version=DEFAULT_API_VERSION): elif api_version == '2017-08-01': from .v2017_08_01 import models return models + elif api_version == '2017-09-01': + from .v2017_09_01 import models + return models raise NotImplementedError("APIVersion {} is not available".format(api_version)) @property @@ -171,6 +177,7 @@ def application_gateways(self): * 2017-03-01: :class:`ApplicationGatewaysOperations` * 2017-06-01: :class:`ApplicationGatewaysOperations` * 2017-08-01: :class:`ApplicationGatewaysOperations` + * 2017-09-01: :class:`ApplicationGatewaysOperations` """ if self.api_version == '2015-06-15': from .v2015_06_15.operations import ApplicationGatewaysOperations as OperationClass @@ -184,6 +191,20 @@ def application_gateways(self): from .v2017_06_01.operations import ApplicationGatewaysOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import ApplicationGatewaysOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import ApplicationGatewaysOperations as OperationClass + else: + raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) + return OperationClass(self._client, self.config, self._serialize, self._deserialize) + + @property + def application_security_groups(self): + """Instance depends on the API version: + + * 2017-09-01: :class:`ApplicationSecurityGroupsOperations` + """ + if self.api_version == '2017-09-01': + from .v2017_09_01.operations import ApplicationSecurityGroupsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -194,11 +215,14 @@ def available_endpoint_services(self): * 2017-06-01: :class:`AvailableEndpointServicesOperations` * 2017-08-01: :class:`AvailableEndpointServicesOperations` + * 2017-09-01: :class:`AvailableEndpointServicesOperations` """ if self.api_version == '2017-06-01': from .v2017_06_01.operations import AvailableEndpointServicesOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import AvailableEndpointServicesOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import AvailableEndpointServicesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -211,6 +235,7 @@ def bgp_service_communities(self): * 2017-03-01: :class:`BgpServiceCommunitiesOperations` * 2017-06-01: :class:`BgpServiceCommunitiesOperations` * 2017-08-01: :class:`BgpServiceCommunitiesOperations` + * 2017-09-01: :class:`BgpServiceCommunitiesOperations` """ if self.api_version == '2016-12-01': from .v2016_12_01.operations import BgpServiceCommunitiesOperations as OperationClass @@ -220,6 +245,8 @@ def bgp_service_communities(self): from .v2017_06_01.operations import BgpServiceCommunitiesOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import BgpServiceCommunitiesOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import BgpServiceCommunitiesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -230,11 +257,14 @@ def default_security_rules(self): * 2017-06-01: :class:`DefaultSecurityRulesOperations` * 2017-08-01: :class:`DefaultSecurityRulesOperations` + * 2017-09-01: :class:`DefaultSecurityRulesOperations` """ if self.api_version == '2017-06-01': from .v2017_06_01.operations import DefaultSecurityRulesOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import DefaultSecurityRulesOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import DefaultSecurityRulesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -249,6 +279,7 @@ def express_route_circuit_authorizations(self): * 2017-03-01: :class:`ExpressRouteCircuitAuthorizationsOperations` * 2017-06-01: :class:`ExpressRouteCircuitAuthorizationsOperations` * 2017-08-01: :class:`ExpressRouteCircuitAuthorizationsOperations` + * 2017-09-01: :class:`ExpressRouteCircuitAuthorizationsOperations` """ if self.api_version == '2015-06-15': from .v2015_06_15.operations import ExpressRouteCircuitAuthorizationsOperations as OperationClass @@ -262,6 +293,8 @@ def express_route_circuit_authorizations(self): from .v2017_06_01.operations import ExpressRouteCircuitAuthorizationsOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import ExpressRouteCircuitAuthorizationsOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import ExpressRouteCircuitAuthorizationsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -276,6 +309,7 @@ def express_route_circuit_peerings(self): * 2017-03-01: :class:`ExpressRouteCircuitPeeringsOperations` * 2017-06-01: :class:`ExpressRouteCircuitPeeringsOperations` * 2017-08-01: :class:`ExpressRouteCircuitPeeringsOperations` + * 2017-09-01: :class:`ExpressRouteCircuitPeeringsOperations` """ if self.api_version == '2015-06-15': from .v2015_06_15.operations import ExpressRouteCircuitPeeringsOperations as OperationClass @@ -289,6 +323,8 @@ def express_route_circuit_peerings(self): from .v2017_06_01.operations import ExpressRouteCircuitPeeringsOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import ExpressRouteCircuitPeeringsOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import ExpressRouteCircuitPeeringsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -303,6 +339,7 @@ def express_route_circuits(self): * 2017-03-01: :class:`ExpressRouteCircuitsOperations` * 2017-06-01: :class:`ExpressRouteCircuitsOperations` * 2017-08-01: :class:`ExpressRouteCircuitsOperations` + * 2017-09-01: :class:`ExpressRouteCircuitsOperations` """ if self.api_version == '2015-06-15': from .v2015_06_15.operations import ExpressRouteCircuitsOperations as OperationClass @@ -316,6 +353,8 @@ def express_route_circuits(self): from .v2017_06_01.operations import ExpressRouteCircuitsOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import ExpressRouteCircuitsOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import ExpressRouteCircuitsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -330,6 +369,7 @@ def express_route_service_providers(self): * 2017-03-01: :class:`ExpressRouteServiceProvidersOperations` * 2017-06-01: :class:`ExpressRouteServiceProvidersOperations` * 2017-08-01: :class:`ExpressRouteServiceProvidersOperations` + * 2017-09-01: :class:`ExpressRouteServiceProvidersOperations` """ if self.api_version == '2015-06-15': from .v2015_06_15.operations import ExpressRouteServiceProvidersOperations as OperationClass @@ -343,6 +383,8 @@ def express_route_service_providers(self): from .v2017_06_01.operations import ExpressRouteServiceProvidersOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import ExpressRouteServiceProvidersOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import ExpressRouteServiceProvidersOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -353,11 +395,14 @@ def inbound_nat_rules(self): * 2017-06-01: :class:`InboundNatRulesOperations` * 2017-08-01: :class:`InboundNatRulesOperations` + * 2017-09-01: :class:`InboundNatRulesOperations` """ if self.api_version == '2017-06-01': from .v2017_06_01.operations import InboundNatRulesOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import InboundNatRulesOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import InboundNatRulesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -368,11 +413,14 @@ def load_balancer_backend_address_pools(self): * 2017-06-01: :class:`LoadBalancerBackendAddressPoolsOperations` * 2017-08-01: :class:`LoadBalancerBackendAddressPoolsOperations` + * 2017-09-01: :class:`LoadBalancerBackendAddressPoolsOperations` """ if self.api_version == '2017-06-01': from .v2017_06_01.operations import LoadBalancerBackendAddressPoolsOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import LoadBalancerBackendAddressPoolsOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import LoadBalancerBackendAddressPoolsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -383,11 +431,14 @@ def load_balancer_frontend_ip_configurations(self): * 2017-06-01: :class:`LoadBalancerFrontendIPConfigurationsOperations` * 2017-08-01: :class:`LoadBalancerFrontendIPConfigurationsOperations` + * 2017-09-01: :class:`LoadBalancerFrontendIPConfigurationsOperations` """ if self.api_version == '2017-06-01': from .v2017_06_01.operations import LoadBalancerFrontendIPConfigurationsOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import LoadBalancerFrontendIPConfigurationsOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import LoadBalancerFrontendIPConfigurationsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -398,11 +449,14 @@ def load_balancer_load_balancing_rules(self): * 2017-06-01: :class:`LoadBalancerLoadBalancingRulesOperations` * 2017-08-01: :class:`LoadBalancerLoadBalancingRulesOperations` + * 2017-09-01: :class:`LoadBalancerLoadBalancingRulesOperations` """ if self.api_version == '2017-06-01': from .v2017_06_01.operations import LoadBalancerLoadBalancingRulesOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import LoadBalancerLoadBalancingRulesOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import LoadBalancerLoadBalancingRulesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -413,11 +467,14 @@ def load_balancer_network_interfaces(self): * 2017-06-01: :class:`LoadBalancerNetworkInterfacesOperations` * 2017-08-01: :class:`LoadBalancerNetworkInterfacesOperations` + * 2017-09-01: :class:`LoadBalancerNetworkInterfacesOperations` """ if self.api_version == '2017-06-01': from .v2017_06_01.operations import LoadBalancerNetworkInterfacesOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import LoadBalancerNetworkInterfacesOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import LoadBalancerNetworkInterfacesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -428,11 +485,14 @@ def load_balancer_probes(self): * 2017-06-01: :class:`LoadBalancerProbesOperations` * 2017-08-01: :class:`LoadBalancerProbesOperations` + * 2017-09-01: :class:`LoadBalancerProbesOperations` """ if self.api_version == '2017-06-01': from .v2017_06_01.operations import LoadBalancerProbesOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import LoadBalancerProbesOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import LoadBalancerProbesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -447,6 +507,7 @@ def load_balancers(self): * 2017-03-01: :class:`LoadBalancersOperations` * 2017-06-01: :class:`LoadBalancersOperations` * 2017-08-01: :class:`LoadBalancersOperations` + * 2017-09-01: :class:`LoadBalancersOperations` """ if self.api_version == '2015-06-15': from .v2015_06_15.operations import LoadBalancersOperations as OperationClass @@ -460,6 +521,8 @@ def load_balancers(self): from .v2017_06_01.operations import LoadBalancersOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import LoadBalancersOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import LoadBalancersOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -474,6 +537,7 @@ def local_network_gateways(self): * 2017-03-01: :class:`LocalNetworkGatewaysOperations` * 2017-06-01: :class:`LocalNetworkGatewaysOperations` * 2017-08-01: :class:`LocalNetworkGatewaysOperations` + * 2017-09-01: :class:`LocalNetworkGatewaysOperations` """ if self.api_version == '2015-06-15': from .v2015_06_15.operations import LocalNetworkGatewaysOperations as OperationClass @@ -487,6 +551,8 @@ def local_network_gateways(self): from .v2017_06_01.operations import LocalNetworkGatewaysOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import LocalNetworkGatewaysOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import LocalNetworkGatewaysOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -497,11 +563,14 @@ def network_interface_ip_configurations(self): * 2017-06-01: :class:`NetworkInterfaceIPConfigurationsOperations` * 2017-08-01: :class:`NetworkInterfaceIPConfigurationsOperations` + * 2017-09-01: :class:`NetworkInterfaceIPConfigurationsOperations` """ if self.api_version == '2017-06-01': from .v2017_06_01.operations import NetworkInterfaceIPConfigurationsOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import NetworkInterfaceIPConfigurationsOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import NetworkInterfaceIPConfigurationsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -512,11 +581,14 @@ def network_interface_load_balancers(self): * 2017-06-01: :class:`NetworkInterfaceLoadBalancersOperations` * 2017-08-01: :class:`NetworkInterfaceLoadBalancersOperations` + * 2017-09-01: :class:`NetworkInterfaceLoadBalancersOperations` """ if self.api_version == '2017-06-01': from .v2017_06_01.operations import NetworkInterfaceLoadBalancersOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import NetworkInterfaceLoadBalancersOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import NetworkInterfaceLoadBalancersOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -531,6 +603,7 @@ def network_interfaces(self): * 2017-03-01: :class:`NetworkInterfacesOperations` * 2017-06-01: :class:`NetworkInterfacesOperations` * 2017-08-01: :class:`NetworkInterfacesOperations` + * 2017-09-01: :class:`NetworkInterfacesOperations` """ if self.api_version == '2015-06-15': from .v2015_06_15.operations import NetworkInterfacesOperations as OperationClass @@ -544,6 +617,8 @@ def network_interfaces(self): from .v2017_06_01.operations import NetworkInterfacesOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import NetworkInterfacesOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import NetworkInterfacesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -558,6 +633,7 @@ def network_security_groups(self): * 2017-03-01: :class:`NetworkSecurityGroupsOperations` * 2017-06-01: :class:`NetworkSecurityGroupsOperations` * 2017-08-01: :class:`NetworkSecurityGroupsOperations` + * 2017-09-01: :class:`NetworkSecurityGroupsOperations` """ if self.api_version == '2015-06-15': from .v2015_06_15.operations import NetworkSecurityGroupsOperations as OperationClass @@ -571,6 +647,8 @@ def network_security_groups(self): from .v2017_06_01.operations import NetworkSecurityGroupsOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import NetworkSecurityGroupsOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import NetworkSecurityGroupsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -584,6 +662,7 @@ def network_watchers(self): * 2017-03-01: :class:`NetworkWatchersOperations` * 2017-06-01: :class:`NetworkWatchersOperations` * 2017-08-01: :class:`NetworkWatchersOperations` + * 2017-09-01: :class:`NetworkWatchersOperations` """ if self.api_version == '2016-09-01': from .v2016_09_01.operations import NetworkWatchersOperations as OperationClass @@ -595,6 +674,8 @@ def network_watchers(self): from .v2017_06_01.operations import NetworkWatchersOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import NetworkWatchersOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import NetworkWatchersOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -608,6 +689,7 @@ def packet_captures(self): * 2017-03-01: :class:`PacketCapturesOperations` * 2017-06-01: :class:`PacketCapturesOperations` * 2017-08-01: :class:`PacketCapturesOperations` + * 2017-09-01: :class:`PacketCapturesOperations` """ if self.api_version == '2016-09-01': from .v2016_09_01.operations import PacketCapturesOperations as OperationClass @@ -619,6 +701,8 @@ def packet_captures(self): from .v2017_06_01.operations import PacketCapturesOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import PacketCapturesOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import PacketCapturesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -633,6 +717,7 @@ def public_ip_addresses(self): * 2017-03-01: :class:`PublicIPAddressesOperations` * 2017-06-01: :class:`PublicIPAddressesOperations` * 2017-08-01: :class:`PublicIPAddressesOperations` + * 2017-09-01: :class:`PublicIPAddressesOperations` """ if self.api_version == '2015-06-15': from .v2015_06_15.operations import PublicIPAddressesOperations as OperationClass @@ -646,6 +731,8 @@ def public_ip_addresses(self): from .v2017_06_01.operations import PublicIPAddressesOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import PublicIPAddressesOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import PublicIPAddressesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -658,6 +745,7 @@ def route_filter_rules(self): * 2017-03-01: :class:`RouteFilterRulesOperations` * 2017-06-01: :class:`RouteFilterRulesOperations` * 2017-08-01: :class:`RouteFilterRulesOperations` + * 2017-09-01: :class:`RouteFilterRulesOperations` """ if self.api_version == '2016-12-01': from .v2016_12_01.operations import RouteFilterRulesOperations as OperationClass @@ -667,6 +755,8 @@ def route_filter_rules(self): from .v2017_06_01.operations import RouteFilterRulesOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import RouteFilterRulesOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import RouteFilterRulesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -679,6 +769,7 @@ def route_filters(self): * 2017-03-01: :class:`RouteFiltersOperations` * 2017-06-01: :class:`RouteFiltersOperations` * 2017-08-01: :class:`RouteFiltersOperations` + * 2017-09-01: :class:`RouteFiltersOperations` """ if self.api_version == '2016-12-01': from .v2016_12_01.operations import RouteFiltersOperations as OperationClass @@ -688,6 +779,8 @@ def route_filters(self): from .v2017_06_01.operations import RouteFiltersOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import RouteFiltersOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import RouteFiltersOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -702,6 +795,7 @@ def route_tables(self): * 2017-03-01: :class:`RouteTablesOperations` * 2017-06-01: :class:`RouteTablesOperations` * 2017-08-01: :class:`RouteTablesOperations` + * 2017-09-01: :class:`RouteTablesOperations` """ if self.api_version == '2015-06-15': from .v2015_06_15.operations import RouteTablesOperations as OperationClass @@ -715,6 +809,8 @@ def route_tables(self): from .v2017_06_01.operations import RouteTablesOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import RouteTablesOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import RouteTablesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -729,6 +825,7 @@ def routes(self): * 2017-03-01: :class:`RoutesOperations` * 2017-06-01: :class:`RoutesOperations` * 2017-08-01: :class:`RoutesOperations` + * 2017-09-01: :class:`RoutesOperations` """ if self.api_version == '2015-06-15': from .v2015_06_15.operations import RoutesOperations as OperationClass @@ -742,6 +839,8 @@ def routes(self): from .v2017_06_01.operations import RoutesOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import RoutesOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import RoutesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -756,6 +855,7 @@ def security_rules(self): * 2017-03-01: :class:`SecurityRulesOperations` * 2017-06-01: :class:`SecurityRulesOperations` * 2017-08-01: :class:`SecurityRulesOperations` + * 2017-09-01: :class:`SecurityRulesOperations` """ if self.api_version == '2015-06-15': from .v2015_06_15.operations import SecurityRulesOperations as OperationClass @@ -769,6 +869,8 @@ def security_rules(self): from .v2017_06_01.operations import SecurityRulesOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import SecurityRulesOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import SecurityRulesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -783,6 +885,7 @@ def subnets(self): * 2017-03-01: :class:`SubnetsOperations` * 2017-06-01: :class:`SubnetsOperations` * 2017-08-01: :class:`SubnetsOperations` + * 2017-09-01: :class:`SubnetsOperations` """ if self.api_version == '2015-06-15': from .v2015_06_15.operations import SubnetsOperations as OperationClass @@ -796,6 +899,8 @@ def subnets(self): from .v2017_06_01.operations import SubnetsOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import SubnetsOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import SubnetsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -810,6 +915,7 @@ def usages(self): * 2017-03-01: :class:`UsagesOperations` * 2017-06-01: :class:`UsagesOperations` * 2017-08-01: :class:`UsagesOperations` + * 2017-09-01: :class:`UsagesOperations` """ if self.api_version == '2015-06-15': from .v2015_06_15.operations import UsagesOperations as OperationClass @@ -823,6 +929,8 @@ def usages(self): from .v2017_06_01.operations import UsagesOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import UsagesOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import UsagesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -837,6 +945,7 @@ def virtual_network_gateway_connections(self): * 2017-03-01: :class:`VirtualNetworkGatewayConnectionsOperations` * 2017-06-01: :class:`VirtualNetworkGatewayConnectionsOperations` * 2017-08-01: :class:`VirtualNetworkGatewayConnectionsOperations` + * 2017-09-01: :class:`VirtualNetworkGatewayConnectionsOperations` """ if self.api_version == '2015-06-15': from .v2015_06_15.operations import VirtualNetworkGatewayConnectionsOperations as OperationClass @@ -850,6 +959,8 @@ def virtual_network_gateway_connections(self): from .v2017_06_01.operations import VirtualNetworkGatewayConnectionsOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import VirtualNetworkGatewayConnectionsOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import VirtualNetworkGatewayConnectionsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -864,6 +975,7 @@ def virtual_network_gateways(self): * 2017-03-01: :class:`VirtualNetworkGatewaysOperations` * 2017-06-01: :class:`VirtualNetworkGatewaysOperations` * 2017-08-01: :class:`VirtualNetworkGatewaysOperations` + * 2017-09-01: :class:`VirtualNetworkGatewaysOperations` """ if self.api_version == '2015-06-15': from .v2015_06_15.operations import VirtualNetworkGatewaysOperations as OperationClass @@ -877,6 +989,8 @@ def virtual_network_gateways(self): from .v2017_06_01.operations import VirtualNetworkGatewaysOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import VirtualNetworkGatewaysOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import VirtualNetworkGatewaysOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -890,6 +1004,7 @@ def virtual_network_peerings(self): * 2017-03-01: :class:`VirtualNetworkPeeringsOperations` * 2017-06-01: :class:`VirtualNetworkPeeringsOperations` * 2017-08-01: :class:`VirtualNetworkPeeringsOperations` + * 2017-09-01: :class:`VirtualNetworkPeeringsOperations` """ if self.api_version == '2016-09-01': from .v2016_09_01.operations import VirtualNetworkPeeringsOperations as OperationClass @@ -901,6 +1016,8 @@ def virtual_network_peerings(self): from .v2017_06_01.operations import VirtualNetworkPeeringsOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import VirtualNetworkPeeringsOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import VirtualNetworkPeeringsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) @@ -915,6 +1032,7 @@ def virtual_networks(self): * 2017-03-01: :class:`VirtualNetworksOperations` * 2017-06-01: :class:`VirtualNetworksOperations` * 2017-08-01: :class:`VirtualNetworksOperations` + * 2017-09-01: :class:`VirtualNetworksOperations` """ if self.api_version == '2015-06-15': from .v2015_06_15.operations import VirtualNetworksOperations as OperationClass @@ -928,6 +1046,8 @@ def virtual_networks(self): from .v2017_06_01.operations import VirtualNetworksOperations as OperationClass elif self.api_version == '2017-08-01': from .v2017_08_01.operations import VirtualNetworksOperations as OperationClass + elif self.api_version == '2017-09-01': + from .v2017_09_01.operations import VirtualNetworksOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(self.api_version)) return OperationClass(self._client, self.config, self._serialize, self._deserialize) diff --git a/azure-mgmt-network/azure/mgmt/network/models.py b/azure-mgmt-network/azure/mgmt/network/models.py index 1ff6a0d32501..388a2118f1e7 100644 --- a/azure-mgmt-network/azure/mgmt/network/models.py +++ b/azure-mgmt-network/azure/mgmt/network/models.py @@ -4,4 +4,4 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -from .v2017_06_01.models import * \ No newline at end of file +from .v2017_09_01.models import * \ No newline at end of file diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/build.json b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/build.json index ea3d6c47f53c..42d99e1badb6 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/build.json +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/build.json @@ -1 +1 @@ -{"autorest": "1.2.2", "date": "2017-08-17T15:39:08Z", "version": ""} \ No newline at end of file +{"autorest": "1.2.2", "date": "2017-09-13T15:30:56Z", "version": ""} \ No newline at end of file diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/inbound_nat_rule.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/inbound_nat_rule.py index 94c4565f2351..be5549c7ebeb 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/inbound_nat_rule.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/inbound_nat_rule.py @@ -30,7 +30,7 @@ class InboundNatRule(SubResource): :type protocol: str or :class:`TransportProtocol ` :param frontend_port: The port for the external endpoint. Port numbers for - each Rule must be unique within the Load Balancer. Acceptable values range + each rule must be unique within the Load Balancer. Acceptable values range from 1 to 65534. :type frontend_port: int :param backend_port: The port used for the internal endpoint. Acceptable diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/load_balancing_rule.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/load_balancing_rule.py index 8c05b40890bc..fd90216922aa 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/load_balancing_rule.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/load_balancing_rule.py @@ -38,7 +38,7 @@ class LoadBalancingRule(SubResource): :type load_distribution: str or :class:`LoadDistribution ` :param frontend_port: The port for the external endpoint. Port numbers for - each Rule must be unique within the Load Balancer. Acceptable values are + each rule must be unique within the Load Balancer. Acceptable values are between 1 and 65534. :type frontend_port: int :param backend_port: The port used for internal connections on the diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/build.json b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/build.json index 0bf3f1b39851..088eb209e624 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/build.json +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/build.json @@ -1 +1 @@ -{"autorest": "1.2.2", "date": "2017-08-17T15:40:07Z", "version": ""} \ No newline at end of file +{"autorest": "1.2.2", "date": "2017-09-13T15:31:59Z", "version": ""} \ No newline at end of file diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/inbound_nat_rule.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/inbound_nat_rule.py index 9007f5a1cd9c..0efad79e4b00 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/inbound_nat_rule.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/inbound_nat_rule.py @@ -33,7 +33,7 @@ class InboundNatRule(SubResource): :type protocol: str or :class:`TransportProtocol ` :param frontend_port: The port for the external endpoint. Port numbers for - each Rule must be unique within the Load Balancer. Acceptable values range + each rule must be unique within the Load Balancer. Acceptable values range from 1 to 65534. :type frontend_port: int :param backend_port: The port used for the internal endpoint. Acceptable diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/load_balancing_rule.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/load_balancing_rule.py index 3c18b840dbed..930f50bccc49 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/load_balancing_rule.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/load_balancing_rule.py @@ -38,7 +38,7 @@ class LoadBalancingRule(SubResource): :type load_distribution: str or :class:`LoadDistribution ` :param frontend_port: The port for the external endpoint. Port numbers for - each Rule must be unique within the Load Balancer. Acceptable values are + each rule must be unique within the Load Balancer. Acceptable values are between 1 and 65534. :type frontend_port: int :param backend_port: The port used for internal connections on the diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/build.json b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/build.json index 1ffb29eb7630..fa4a9db6a5bd 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/build.json +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/build.json @@ -1 +1 @@ -{"autorest": "1.2.2", "date": "2017-08-17T15:41:10Z", "version": ""} \ No newline at end of file +{"autorest": "1.2.2", "date": "2017-09-13T15:33:02Z", "version": ""} \ No newline at end of file diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/inbound_nat_rule.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/inbound_nat_rule.py index 85b57f6dce5b..c779e95e2805 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/inbound_nat_rule.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/inbound_nat_rule.py @@ -33,7 +33,7 @@ class InboundNatRule(SubResource): :type protocol: str or :class:`TransportProtocol ` :param frontend_port: The port for the external endpoint. Port numbers for - each Rule must be unique within the Load Balancer. Acceptable values range + each rule must be unique within the Load Balancer. Acceptable values range from 1 to 65534. :type frontend_port: int :param backend_port: The port used for the internal endpoint. Acceptable diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/load_balancing_rule.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/load_balancing_rule.py index adcebd262c1d..7b962cb85855 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/load_balancing_rule.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/load_balancing_rule.py @@ -13,7 +13,7 @@ class LoadBalancingRule(SubResource): - """A loag balancing rule for a load balancer. + """A load balancing rule for a load balancer. :param id: Resource ID. :type id: str @@ -38,7 +38,7 @@ class LoadBalancingRule(SubResource): :type load_distribution: str or :class:`LoadDistribution ` :param frontend_port: The port for the external endpoint. Port numbers for - each Rule must be unique within the Load Balancer. Acceptable values are + each rule must be unique within the Load Balancer. Acceptable values are between 1 and 65534. :type frontend_port: int :param backend_port: The port used for internal connections on the diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/build.json b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/build.json index 498e057b1b54..2a71d3cd5132 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/build.json +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/build.json @@ -1 +1 @@ -{"autorest": "1.2.2", "date": "2017-08-17T15:42:19Z", "version": ""} \ No newline at end of file +{"autorest": "1.2.2", "date": "2017-09-13T15:34:11Z", "version": ""} \ No newline at end of file diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/inbound_nat_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/inbound_nat_rule.py index 00089a5c9292..7782ac0d1349 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/inbound_nat_rule.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/inbound_nat_rule.py @@ -33,7 +33,7 @@ class InboundNatRule(SubResource): :type protocol: str or :class:`TransportProtocol ` :param frontend_port: The port for the external endpoint. Port numbers for - each Rule must be unique within the Load Balancer. Acceptable values range + each rule must be unique within the Load Balancer. Acceptable values range from 1 to 65534. :type frontend_port: int :param backend_port: The port used for the internal endpoint. Acceptable diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/load_balancing_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/load_balancing_rule.py index 8833ed273602..abad987c85c5 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/load_balancing_rule.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/load_balancing_rule.py @@ -13,7 +13,7 @@ class LoadBalancingRule(SubResource): - """A loag balancing rule for a load balancer. + """A load balancing rule for a load balancer. :param id: Resource ID. :type id: str @@ -38,7 +38,7 @@ class LoadBalancingRule(SubResource): :type load_distribution: str or :class:`LoadDistribution ` :param frontend_port: The port for the external endpoint. Port numbers for - each Rule must be unique within the Load Balancer. Acceptable values are + each rule must be unique within the Load Balancer. Acceptable values are between 1 and 65534. :type frontend_port: int :param backend_port: The port used for internal connections on the diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/build.json b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/build.json index 7949357cbd95..489c6de7a5d0 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/build.json +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/build.json @@ -1 +1 @@ -{"autorest": "1.2.2", "date": "2017-08-17T15:43:49Z", "version": ""} \ No newline at end of file +{"autorest": "1.2.2", "date": "2017-09-13T15:35:42Z", "version": ""} \ No newline at end of file diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/inbound_nat_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/inbound_nat_rule.py index 9dc34b2c722b..f57f93fb6953 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/inbound_nat_rule.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/inbound_nat_rule.py @@ -33,7 +33,7 @@ class InboundNatRule(SubResource): :type protocol: str or :class:`TransportProtocol ` :param frontend_port: The port for the external endpoint. Port numbers for - each Rule must be unique within the Load Balancer. Acceptable values range + each rule must be unique within the Load Balancer. Acceptable values range from 1 to 65534. :type frontend_port: int :param backend_port: The port used for the internal endpoint. Acceptable diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/load_balancing_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/load_balancing_rule.py index f3247ec137e1..3436c3b9403a 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/load_balancing_rule.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/load_balancing_rule.py @@ -38,7 +38,7 @@ class LoadBalancingRule(SubResource): :type load_distribution: str or :class:`LoadDistribution ` :param frontend_port: The port for the external endpoint. Port numbers for - each Rule must be unique within the Load Balancer. Acceptable values are + each rule must be unique within the Load Balancer. Acceptable values are between 1 and 65534. :type frontend_port: int :param backend_port: The port used for internal connections on the diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_08_01/build.json b/azure-mgmt-network/azure/mgmt/network/v2017_08_01/build.json index 84a188cf216c..1fcd7286a91e 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_08_01/build.json +++ b/azure-mgmt-network/azure/mgmt/network/v2017_08_01/build.json @@ -1 +1 @@ -{"autorest": "1.2.2", "date": "2017-08-17T16:04:55Z", "version": ""} \ No newline at end of file +{"autorest": "1.2.2", "date": "2017-09-13T15:37:29Z", "version": ""} \ No newline at end of file diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/inbound_nat_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/inbound_nat_rule.py index 32c406f5991b..a2d0c161a28b 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/inbound_nat_rule.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/inbound_nat_rule.py @@ -33,7 +33,7 @@ class InboundNatRule(SubResource): :type protocol: str or :class:`TransportProtocol ` :param frontend_port: The port for the external endpoint. Port numbers for - each Rule must be unique within the Load Balancer. Acceptable values range + each rule must be unique within the Load Balancer. Acceptable values range from 1 to 65534. :type frontend_port: int :param backend_port: The port used for the internal endpoint. Acceptable diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/load_balancing_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/load_balancing_rule.py index a773c70a1684..435c669142a7 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/load_balancing_rule.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/load_balancing_rule.py @@ -38,7 +38,7 @@ class LoadBalancingRule(SubResource): :type load_distribution: str or :class:`LoadDistribution ` :param frontend_port: The port for the external endpoint. Port numbers for - each Rule must be unique within the Load Balancer. Acceptable values are + each rule must be unique within the Load Balancer. Acceptable values are between 1 and 65534. :type frontend_port: int :param backend_port: The port used for internal connections on the diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/usage.py b/azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/usage.py index 6d6cf18bb332..558f64faf65d 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/usage.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/usage.py @@ -18,6 +18,8 @@ class Usage(Model): Variables are only populated by the server, and will be ignored when sending a request. + :ivar id: Resource identifier. + :vartype id: str :ivar unit: An enum describing the unit of measurement. Default value: "Count" . :vartype unit: str @@ -31,6 +33,7 @@ class Usage(Model): """ _validation = { + 'id': {'readonly': True}, 'unit': {'required': True, 'constant': True}, 'current_value': {'required': True}, 'limit': {'required': True}, @@ -38,6 +41,7 @@ class Usage(Model): } _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, 'unit': {'key': 'unit', 'type': 'str'}, 'current_value': {'key': 'currentValue', 'type': 'long'}, 'limit': {'key': 'limit', 'type': 'long'}, @@ -47,6 +51,7 @@ class Usage(Model): unit = "Count" def __init__(self, current_value, limit, name): + self.id = None self.current_value = current_value self.limit = limit self.name = name diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_08_01/network_management_client.py b/azure-mgmt-network/azure/mgmt/network/v2017_08_01/network_management_client.py index b20f680f03c2..1384606936df 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_08_01/network_management_client.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_08_01/network_management_client.py @@ -255,9 +255,9 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) def check_dns_name_availability( - self, location, domain_name_label=None, custom_headers=None, raw=False, **operation_config): - """Checks whether a domain name in the cloudapp.net zone is available for - use. + self, location, domain_name_label, custom_headers=None, raw=False, **operation_config): + """Checks whether a domain name in the cloudapp.azure.com zone is + available for use. :param location: The location of the domain name. :type location: str @@ -291,8 +291,7 @@ def check_dns_name_availability( # Construct parameters query_parameters = {} - if domain_name_label is not None: - query_parameters['domainNameLabel'] = self._serialize.query("domain_name_label", domain_name_label, 'str') + query_parameters['domainNameLabel'] = self._serialize.query("domain_name_label", domain_name_label, 'str') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_08_01/operations/network_interface_load_balancers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_08_01/operations/network_interface_load_balancers_operations.py index 9d1b68fdb936..3c7ff02984ff 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_08_01/operations/network_interface_load_balancers_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_08_01/operations/network_interface_load_balancers_operations.py @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): def list( self, resource_group_name, network_interface_name, custom_headers=None, raw=False, **operation_config): - """Get all load balancers in a network interface. + """List all load balancers in a network interface. :param resource_group_name: The name of the resource group. :type resource_group_name: str diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_08_01/operations/usages_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_08_01/operations/usages_operations.py index 55c7e64cd674..b065e08c5b11 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_08_01/operations/usages_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_08_01/operations/usages_operations.py @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): def list( self, location, custom_headers=None, raw=False, **operation_config): - """Lists compute usages for a subscription. + """List network usages for a subscription. :param location: The location where resource usage is queried. :type location: str diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_08_01/operations/virtual_network_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_08_01/operations/virtual_network_gateways_operations.py index e4c6386421e9..d4ea05a9bb2c 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_08_01/operations/virtual_network_gateways_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_08_01/operations/virtual_network_gateways_operations.py @@ -687,7 +687,97 @@ def get_long_running_status(status_link, headers=None): def get_long_running_output(response): - if response.status_code not in [200]: + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('str', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get_vpn_profile_package_url( + self, resource_group_name, virtual_network_gateway_name, custom_headers=None, raw=False, **operation_config): + """Gets pre-generated VPN profile for P2S client of the virtual network + gateway in the specified resource group. The profile needs to be + generated first using generateVpnProfile. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns str or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnprofilepackageurl' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: exp = CloudError(response) exp.request_id = response.headers.get('x-ms-request-id') raise exp diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/__init__.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/__init__.py new file mode 100644 index 000000000000..2a2f032f38aa --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/__init__.py @@ -0,0 +1,18 @@ +# 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 .network_management_client import NetworkManagementClient +from .version import VERSION + +__all__ = ['NetworkManagementClient'] + +__version__ = VERSION + diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/build.json b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/build.json new file mode 100644 index 000000000000..387bfefb52c7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/build.json @@ -0,0 +1 @@ +{"autorest": "1.2.2", "date": "2017-09-18T20:16:34Z", "version": ""} \ No newline at end of file diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/__init__.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/__init__.py new file mode 100644 index 000000000000..f83c136379ce --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/__init__.py @@ -0,0 +1,524 @@ +# 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 .sub_resource import SubResource +from .backend_address_pool import BackendAddressPool +from .inbound_nat_rule import InboundNatRule +from .application_security_group import ApplicationSecurityGroup +from .security_rule import SecurityRule +from .network_interface_dns_settings import NetworkInterfaceDnsSettings +from .network_interface import NetworkInterface +from .network_security_group import NetworkSecurityGroup +from .route import Route +from .route_table import RouteTable +from .service_endpoint_properties_format import ServiceEndpointPropertiesFormat +from .public_ip_address_sku import PublicIPAddressSku +from .public_ip_address_dns_settings import PublicIPAddressDnsSettings +from .public_ip_address import PublicIPAddress +from .ip_configuration import IPConfiguration +from .resource_navigation_link import ResourceNavigationLink +from .subnet import Subnet +from .network_interface_ip_configuration import NetworkInterfaceIPConfiguration +from .application_gateway_backend_address import ApplicationGatewayBackendAddress +from .application_gateway_backend_address_pool import ApplicationGatewayBackendAddressPool +from .application_gateway_connection_draining import ApplicationGatewayConnectionDraining +from .application_gateway_backend_http_settings import ApplicationGatewayBackendHttpSettings +from .application_gateway_backend_health_server import ApplicationGatewayBackendHealthServer +from .application_gateway_backend_health_http_settings import ApplicationGatewayBackendHealthHttpSettings +from .application_gateway_backend_health_pool import ApplicationGatewayBackendHealthPool +from .application_gateway_backend_health import ApplicationGatewayBackendHealth +from .application_gateway_sku import ApplicationGatewaySku +from .application_gateway_ssl_policy import ApplicationGatewaySslPolicy +from .application_gateway_ip_configuration import ApplicationGatewayIPConfiguration +from .application_gateway_authentication_certificate import ApplicationGatewayAuthenticationCertificate +from .application_gateway_ssl_certificate import ApplicationGatewaySslCertificate +from .application_gateway_frontend_ip_configuration import ApplicationGatewayFrontendIPConfiguration +from .application_gateway_frontend_port import ApplicationGatewayFrontendPort +from .application_gateway_http_listener import ApplicationGatewayHttpListener +from .application_gateway_path_rule import ApplicationGatewayPathRule +from .application_gateway_probe_health_response_match import ApplicationGatewayProbeHealthResponseMatch +from .application_gateway_probe import ApplicationGatewayProbe +from .application_gateway_request_routing_rule import ApplicationGatewayRequestRoutingRule +from .application_gateway_redirect_configuration import ApplicationGatewayRedirectConfiguration +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 import ApplicationGateway +from .application_gateway_firewall_rule import ApplicationGatewayFirewallRule +from .application_gateway_firewall_rule_group import ApplicationGatewayFirewallRuleGroup +from .application_gateway_firewall_rule_set import ApplicationGatewayFirewallRuleSet +from .application_gateway_available_waf_rule_sets_result import ApplicationGatewayAvailableWafRuleSetsResult +from .application_gateway_available_ssl_options import ApplicationGatewayAvailableSslOptions +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 +from .express_route_circuit_stats import ExpressRouteCircuitStats +from .express_route_circuit_peering import ExpressRouteCircuitPeering +from .route_filter import RouteFilter +from .ipv6_express_route_circuit_peering_config import Ipv6ExpressRouteCircuitPeeringConfig +from .express_route_circuit_sku import ExpressRouteCircuitSku +from .express_route_circuit_service_provider_properties import ExpressRouteCircuitServiceProviderProperties +from .express_route_circuit import ExpressRouteCircuit +from .express_route_circuit_arp_table import ExpressRouteCircuitArpTable +from .express_route_circuits_arp_table_list_result import ExpressRouteCircuitsArpTableListResult +from .express_route_circuit_routes_table import ExpressRouteCircuitRoutesTable +from .express_route_circuits_routes_table_list_result import ExpressRouteCircuitsRoutesTableListResult +from .express_route_circuit_routes_table_summary import ExpressRouteCircuitRoutesTableSummary +from .express_route_circuits_routes_table_summary_list_result import ExpressRouteCircuitsRoutesTableSummaryListResult +from .express_route_service_provider_bandwidths_offered import ExpressRouteServiceProviderBandwidthsOffered +from .express_route_service_provider import ExpressRouteServiceProvider +from .load_balancer_sku import LoadBalancerSku +from .frontend_ip_configuration import FrontendIPConfiguration +from .load_balancing_rule import LoadBalancingRule +from .probe import Probe +from .inbound_nat_pool import InboundNatPool +from .outbound_nat_rule import OutboundNatRule +from .load_balancer import LoadBalancer +from .error_details import ErrorDetails +from .error import Error +from .azure_async_operation_result import AzureAsyncOperationResult +from .effective_network_security_group_association import EffectiveNetworkSecurityGroupAssociation +from .effective_network_security_rule import EffectiveNetworkSecurityRule +from .effective_network_security_group import EffectiveNetworkSecurityGroup +from .effective_network_security_group_list_result import EffectiveNetworkSecurityGroupListResult +from .effective_route import EffectiveRoute +from .effective_route_list_result import EffectiveRouteListResult +from .network_watcher import NetworkWatcher +from .topology_parameters import TopologyParameters +from .topology_association import TopologyAssociation +from .topology_resource import TopologyResource +from .topology import Topology +from .verification_ip_flow_parameters import VerificationIPFlowParameters +from .verification_ip_flow_result import VerificationIPFlowResult +from .next_hop_parameters import NextHopParameters +from .next_hop_result import NextHopResult +from .security_group_view_parameters import SecurityGroupViewParameters +from .network_interface_association import NetworkInterfaceAssociation +from .subnet_association import SubnetAssociation +from .security_rule_associations import SecurityRuleAssociations +from .security_group_network_interface import SecurityGroupNetworkInterface +from .security_group_view_result import SecurityGroupViewResult +from .packet_capture_storage_location import PacketCaptureStorageLocation +from .packet_capture_filter import PacketCaptureFilter +from .packet_capture_parameters import PacketCaptureParameters +from .packet_capture import PacketCapture +from .packet_capture_result import PacketCaptureResult +from .packet_capture_query_status_result import PacketCaptureQueryStatusResult +from .troubleshooting_parameters import TroubleshootingParameters +from .query_troubleshooting_parameters import QueryTroubleshootingParameters +from .troubleshooting_recommended_actions import TroubleshootingRecommendedActions +from .troubleshooting_details import TroubleshootingDetails +from .troubleshooting_result import TroubleshootingResult +from .retention_policy_parameters import RetentionPolicyParameters +from .flow_log_status_parameters import FlowLogStatusParameters +from .flow_log_information import FlowLogInformation +from .connectivity_source import ConnectivitySource +from .connectivity_destination import ConnectivityDestination +from .connectivity_parameters import ConnectivityParameters +from .connectivity_issue import ConnectivityIssue +from .connectivity_hop import ConnectivityHop +from .connectivity_information import ConnectivityInformation +from .patch_route_filter_rule import PatchRouteFilterRule +from .patch_route_filter import PatchRouteFilter +from .bgp_community import BGPCommunity +from .bgp_service_community import BgpServiceCommunity +from .usage_name import UsageName +from .usage import Usage +from .virtual_network_peering import VirtualNetworkPeering +from .address_space import AddressSpace +from .dhcp_options import DhcpOptions +from .virtual_network import VirtualNetwork +from .ip_address_availability_result import IPAddressAvailabilityResult +from .virtual_network_usage_name import VirtualNetworkUsageName +from .virtual_network_usage import VirtualNetworkUsage +from .virtual_network_gateway_ip_configuration import VirtualNetworkGatewayIPConfiguration +from .virtual_network_gateway_sku import VirtualNetworkGatewaySku +from .vpn_client_root_certificate import VpnClientRootCertificate +from .vpn_client_revoked_certificate import VpnClientRevokedCertificate +from .vpn_client_configuration import VpnClientConfiguration +from .bgp_settings import BgpSettings +from .bgp_peer_status import BgpPeerStatus +from .gateway_route import GatewayRoute +from .virtual_network_gateway import VirtualNetworkGateway +from .vpn_client_parameters import VpnClientParameters +from .bgp_peer_status_list_result import BgpPeerStatusListResult +from .gateway_route_list_result import GatewayRouteListResult +from .tunnel_connection_health import TunnelConnectionHealth +from .local_network_gateway import LocalNetworkGateway +from .ipsec_policy import IpsecPolicy +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 .application_security_group_paged import ApplicationSecurityGroupPaged +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 .public_ip_address_paged import PublicIPAddressPaged +from .route_filter_paged import RouteFilterPaged +from .route_filter_rule_paged import RouteFilterRulePaged +from .route_table_paged import RouteTablePaged +from .route_paged import RoutePaged +from .bgp_service_community_paged import BgpServiceCommunityPaged +from .usage_paged import UsagePaged +from .virtual_network_paged import VirtualNetworkPaged +from .virtual_network_usage_paged import VirtualNetworkUsagePaged +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 ( + TransportProtocol, + IPAllocationMethod, + IPVersion, + SecurityRuleProtocol, + SecurityRuleAccess, + SecurityRuleDirection, + RouteNextHopType, + PublicIPAddressSkuName, + ApplicationGatewayProtocol, + ApplicationGatewayCookieBasedAffinity, + ApplicationGatewayBackendHealthServerHealth, + ApplicationGatewaySkuName, + ApplicationGatewayTier, + ApplicationGatewaySslProtocol, + ApplicationGatewaySslPolicyType, + ApplicationGatewaySslPolicyName, + ApplicationGatewaySslCipherSuite, + ApplicationGatewayRequestRoutingRuleType, + ApplicationGatewayRedirectType, + ApplicationGatewayOperationalState, + ApplicationGatewayFirewallMode, + AuthorizationUseStatus, + ExpressRouteCircuitPeeringAdvertisedPublicPrefixState, + Access, + ExpressRouteCircuitPeeringType, + ExpressRouteCircuitPeeringState, + ExpressRouteCircuitSkuTier, + ExpressRouteCircuitSkuFamily, + ServiceProviderProvisioningState, + LoadBalancerSkuName, + LoadDistribution, + ProbeProtocol, + NetworkOperationStatus, + EffectiveSecurityRuleProtocol, + EffectiveRouteSource, + EffectiveRouteState, + ProvisioningState, + AssociationType, + Direction, + Protocol, + NextHopType, + PcProtocol, + PcStatus, + PcError, + Origin, + Severity, + IssueType, + ConnectionStatus, + VirtualNetworkPeeringState, + VirtualNetworkGatewayType, + VpnType, + VirtualNetworkGatewaySkuName, + VirtualNetworkGatewaySkuTier, + VpnClientProtocol, + BgpPeerState, + ProcessorArchitecture, + AuthenticationMethod, + VirtualNetworkGatewayConnectionStatus, + VirtualNetworkGatewayConnectionType, + IpsecEncryption, + IpsecIntegrity, + IkeEncryption, + IkeIntegrity, + DhGroup, + PfsGroup, +) + +__all__ = [ + 'SubResource', + 'BackendAddressPool', + 'InboundNatRule', + 'ApplicationSecurityGroup', + 'SecurityRule', + 'NetworkInterfaceDnsSettings', + 'NetworkInterface', + 'NetworkSecurityGroup', + 'Route', + 'RouteTable', + 'ServiceEndpointPropertiesFormat', + 'PublicIPAddressSku', + 'PublicIPAddressDnsSettings', + 'PublicIPAddress', + 'IPConfiguration', + 'ResourceNavigationLink', + 'Subnet', + 'NetworkInterfaceIPConfiguration', + 'ApplicationGatewayBackendAddress', + 'ApplicationGatewayBackendAddressPool', + 'ApplicationGatewayConnectionDraining', + 'ApplicationGatewayBackendHttpSettings', + 'ApplicationGatewayBackendHealthServer', + 'ApplicationGatewayBackendHealthHttpSettings', + 'ApplicationGatewayBackendHealthPool', + 'ApplicationGatewayBackendHealth', + 'ApplicationGatewaySku', + 'ApplicationGatewaySslPolicy', + 'ApplicationGatewayIPConfiguration', + 'ApplicationGatewayAuthenticationCertificate', + 'ApplicationGatewaySslCertificate', + 'ApplicationGatewayFrontendIPConfiguration', + 'ApplicationGatewayFrontendPort', + 'ApplicationGatewayHttpListener', + 'ApplicationGatewayPathRule', + 'ApplicationGatewayProbeHealthResponseMatch', + 'ApplicationGatewayProbe', + 'ApplicationGatewayRequestRoutingRule', + 'ApplicationGatewayRedirectConfiguration', + 'ApplicationGatewayUrlPathMap', + 'ApplicationGatewayFirewallDisabledRuleGroup', + 'ApplicationGatewayWebApplicationFirewallConfiguration', + 'ApplicationGateway', + 'ApplicationGatewayFirewallRule', + 'ApplicationGatewayFirewallRuleGroup', + 'ApplicationGatewayFirewallRuleSet', + 'ApplicationGatewayAvailableWafRuleSetsResult', + 'ApplicationGatewayAvailableSslOptions', + 'ApplicationGatewaySslPredefinedPolicy', + 'Resource', + 'DnsNameAvailabilityResult', + 'EndpointServiceResult', + 'ExpressRouteCircuitAuthorization', + 'ExpressRouteCircuitPeeringConfig', + 'RouteFilterRule', + 'ExpressRouteCircuitStats', + 'ExpressRouteCircuitPeering', + 'RouteFilter', + 'Ipv6ExpressRouteCircuitPeeringConfig', + 'ExpressRouteCircuitSku', + 'ExpressRouteCircuitServiceProviderProperties', + 'ExpressRouteCircuit', + 'ExpressRouteCircuitArpTable', + 'ExpressRouteCircuitsArpTableListResult', + 'ExpressRouteCircuitRoutesTable', + 'ExpressRouteCircuitsRoutesTableListResult', + 'ExpressRouteCircuitRoutesTableSummary', + 'ExpressRouteCircuitsRoutesTableSummaryListResult', + 'ExpressRouteServiceProviderBandwidthsOffered', + 'ExpressRouteServiceProvider', + 'LoadBalancerSku', + 'FrontendIPConfiguration', + 'LoadBalancingRule', + 'Probe', + 'InboundNatPool', + 'OutboundNatRule', + 'LoadBalancer', + 'ErrorDetails', + 'Error', + 'AzureAsyncOperationResult', + 'EffectiveNetworkSecurityGroupAssociation', + 'EffectiveNetworkSecurityRule', + 'EffectiveNetworkSecurityGroup', + 'EffectiveNetworkSecurityGroupListResult', + 'EffectiveRoute', + 'EffectiveRouteListResult', + 'NetworkWatcher', + 'TopologyParameters', + 'TopologyAssociation', + 'TopologyResource', + 'Topology', + 'VerificationIPFlowParameters', + 'VerificationIPFlowResult', + 'NextHopParameters', + 'NextHopResult', + 'SecurityGroupViewParameters', + 'NetworkInterfaceAssociation', + 'SubnetAssociation', + 'SecurityRuleAssociations', + 'SecurityGroupNetworkInterface', + 'SecurityGroupViewResult', + 'PacketCaptureStorageLocation', + 'PacketCaptureFilter', + 'PacketCaptureParameters', + 'PacketCapture', + 'PacketCaptureResult', + 'PacketCaptureQueryStatusResult', + 'TroubleshootingParameters', + 'QueryTroubleshootingParameters', + 'TroubleshootingRecommendedActions', + 'TroubleshootingDetails', + 'TroubleshootingResult', + 'RetentionPolicyParameters', + 'FlowLogStatusParameters', + 'FlowLogInformation', + 'ConnectivitySource', + 'ConnectivityDestination', + 'ConnectivityParameters', + 'ConnectivityIssue', + 'ConnectivityHop', + 'ConnectivityInformation', + 'PatchRouteFilterRule', + 'PatchRouteFilter', + 'BGPCommunity', + 'BgpServiceCommunity', + 'UsageName', + 'Usage', + 'VirtualNetworkPeering', + 'AddressSpace', + 'DhcpOptions', + 'VirtualNetwork', + 'IPAddressAvailabilityResult', + 'VirtualNetworkUsageName', + 'VirtualNetworkUsage', + 'VirtualNetworkGatewayIPConfiguration', + 'VirtualNetworkGatewaySku', + 'VpnClientRootCertificate', + 'VpnClientRevokedCertificate', + 'VpnClientConfiguration', + 'BgpSettings', + 'BgpPeerStatus', + 'GatewayRoute', + 'VirtualNetworkGateway', + 'VpnClientParameters', + 'BgpPeerStatusListResult', + 'GatewayRouteListResult', + 'TunnelConnectionHealth', + 'LocalNetworkGateway', + 'IpsecPolicy', + 'VirtualNetworkGatewayConnection', + 'ConnectionResetSharedKey', + 'ConnectionSharedKey', + 'VirtualNetworkConnectionGatewayReference', + 'VirtualNetworkGatewayConnectionListEntity', + 'ApplicationGatewayPaged', + 'ApplicationGatewaySslPredefinedPolicyPaged', + 'ApplicationSecurityGroupPaged', + 'EndpointServiceResultPaged', + 'ExpressRouteCircuitAuthorizationPaged', + 'ExpressRouteCircuitPeeringPaged', + 'ExpressRouteCircuitPaged', + 'ExpressRouteServiceProviderPaged', + 'LoadBalancerPaged', + 'BackendAddressPoolPaged', + 'FrontendIPConfigurationPaged', + 'InboundNatRulePaged', + 'LoadBalancingRulePaged', + 'NetworkInterfacePaged', + 'ProbePaged', + 'NetworkInterfaceIPConfigurationPaged', + 'NetworkSecurityGroupPaged', + 'SecurityRulePaged', + 'NetworkWatcherPaged', + 'PacketCaptureResultPaged', + 'PublicIPAddressPaged', + 'RouteFilterPaged', + 'RouteFilterRulePaged', + 'RouteTablePaged', + 'RoutePaged', + 'BgpServiceCommunityPaged', + 'UsagePaged', + 'VirtualNetworkPaged', + 'VirtualNetworkUsagePaged', + 'SubnetPaged', + 'VirtualNetworkPeeringPaged', + 'VirtualNetworkGatewayPaged', + 'VirtualNetworkGatewayConnectionListEntityPaged', + 'VirtualNetworkGatewayConnectionPaged', + 'LocalNetworkGatewayPaged', + 'TransportProtocol', + 'IPAllocationMethod', + 'IPVersion', + 'SecurityRuleProtocol', + 'SecurityRuleAccess', + 'SecurityRuleDirection', + 'RouteNextHopType', + 'PublicIPAddressSkuName', + 'ApplicationGatewayProtocol', + 'ApplicationGatewayCookieBasedAffinity', + 'ApplicationGatewayBackendHealthServerHealth', + 'ApplicationGatewaySkuName', + 'ApplicationGatewayTier', + 'ApplicationGatewaySslProtocol', + 'ApplicationGatewaySslPolicyType', + 'ApplicationGatewaySslPolicyName', + 'ApplicationGatewaySslCipherSuite', + 'ApplicationGatewayRequestRoutingRuleType', + 'ApplicationGatewayRedirectType', + 'ApplicationGatewayOperationalState', + 'ApplicationGatewayFirewallMode', + 'AuthorizationUseStatus', + 'ExpressRouteCircuitPeeringAdvertisedPublicPrefixState', + 'Access', + 'ExpressRouteCircuitPeeringType', + 'ExpressRouteCircuitPeeringState', + 'ExpressRouteCircuitSkuTier', + 'ExpressRouteCircuitSkuFamily', + 'ServiceProviderProvisioningState', + 'LoadBalancerSkuName', + 'LoadDistribution', + 'ProbeProtocol', + 'NetworkOperationStatus', + 'EffectiveSecurityRuleProtocol', + 'EffectiveRouteSource', + 'EffectiveRouteState', + 'ProvisioningState', + 'AssociationType', + 'Direction', + 'Protocol', + 'NextHopType', + 'PcProtocol', + 'PcStatus', + 'PcError', + 'Origin', + 'Severity', + 'IssueType', + 'ConnectionStatus', + 'VirtualNetworkPeeringState', + 'VirtualNetworkGatewayType', + 'VpnType', + 'VirtualNetworkGatewaySkuName', + 'VirtualNetworkGatewaySkuTier', + 'VpnClientProtocol', + 'BgpPeerState', + 'ProcessorArchitecture', + 'AuthenticationMethod', + 'VirtualNetworkGatewayConnectionStatus', + 'VirtualNetworkGatewayConnectionType', + 'IpsecEncryption', + 'IpsecIntegrity', + 'IkeEncryption', + 'IkeIntegrity', + 'DhGroup', + 'PfsGroup', +] diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/address_space.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/address_space.py new file mode 100644 index 000000000000..f6376cb109d3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/address_space.py @@ -0,0 +1,29 @@ +# 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 AddressSpace(Model): + """AddressSpace contains an array of IP address ranges that can be used by + subnets of the virtual network. + + :param address_prefixes: A list of address blocks reserved for this + virtual network in CIDR notation. + :type address_prefixes: list of str + """ + + _attribute_map = { + 'address_prefixes': {'key': 'addressPrefixes', 'type': '[str]'}, + } + + def __init__(self, address_prefixes=None): + self.address_prefixes = address_prefixes diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway.py new file mode 100644 index 000000000000..1ee7aebe07e2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway.py @@ -0,0 +1,163 @@ +# 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 .resource import Resource + + +class ApplicationGateway(Resource): + """Application gateway resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict + :param sku: SKU of the application gateway resource. + :type sku: :class:`ApplicationGatewaySku + ` + :param ssl_policy: SSL policy of the application gateway resource. + :type ssl_policy: :class:`ApplicationGatewaySslPolicy + ` + :ivar operational_state: Operational state of the application gateway + resource. Possible values include: 'Stopped', 'Starting', 'Running', + 'Stopping' + :vartype operational_state: str or + :class:`ApplicationGatewayOperationalState + ` + :param gateway_ip_configurations: Subnets of application the gateway + resource. + :type gateway_ip_configurations: list of + :class:`ApplicationGatewayIPConfiguration + ` + :param authentication_certificates: Authentication certificates of the + application gateway resource. + :type authentication_certificates: list of + :class:`ApplicationGatewayAuthenticationCertificate + ` + :param ssl_certificates: SSL certificates of the application gateway + resource. + :type ssl_certificates: list of :class:`ApplicationGatewaySslCertificate + ` + :param frontend_ip_configurations: Frontend IP addresses of the + application gateway resource. + :type frontend_ip_configurations: list of + :class:`ApplicationGatewayFrontendIPConfiguration + ` + :param frontend_ports: Frontend ports of the application gateway resource. + :type frontend_ports: list of :class:`ApplicationGatewayFrontendPort + ` + :param probes: Probes of the application gateway resource. + :type probes: list of :class:`ApplicationGatewayProbe + ` + :param backend_address_pools: Backend address pool of the application + gateway resource. + :type backend_address_pools: list of + :class:`ApplicationGatewayBackendAddressPool + ` + :param backend_http_settings_collection: Backend http settings of the + application gateway resource. + :type backend_http_settings_collection: list of + :class:`ApplicationGatewayBackendHttpSettings + ` + :param http_listeners: Http listeners of the application gateway resource. + :type http_listeners: list of :class:`ApplicationGatewayHttpListener + ` + :param url_path_maps: URL path map of the application gateway resource. + :type url_path_maps: list of :class:`ApplicationGatewayUrlPathMap + ` + :param request_routing_rules: Request routing rules of the application + gateway resource. + :type request_routing_rules: list of + :class:`ApplicationGatewayRequestRoutingRule + ` + :param redirect_configurations: Redirect configurations of the application + gateway resource. + :type redirect_configurations: list of + :class:`ApplicationGatewayRedirectConfiguration + ` + :param web_application_firewall_configuration: Web application firewall + configuration. + :type web_application_firewall_configuration: + :class:`ApplicationGatewayWebApplicationFirewallConfiguration + ` + :param resource_guid: Resource GUID property of the application gateway + resource. + :type resource_guid: str + :param provisioning_state: Provisioning state of the application gateway + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'operational_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'properties.sku', 'type': 'ApplicationGatewaySku'}, + 'ssl_policy': {'key': 'properties.sslPolicy', 'type': 'ApplicationGatewaySslPolicy'}, + 'operational_state': {'key': 'properties.operationalState', 'type': 'str'}, + 'gateway_ip_configurations': {'key': 'properties.gatewayIPConfigurations', 'type': '[ApplicationGatewayIPConfiguration]'}, + 'authentication_certificates': {'key': 'properties.authenticationCertificates', 'type': '[ApplicationGatewayAuthenticationCertificate]'}, + 'ssl_certificates': {'key': 'properties.sslCertificates', 'type': '[ApplicationGatewaySslCertificate]'}, + 'frontend_ip_configurations': {'key': 'properties.frontendIPConfigurations', 'type': '[ApplicationGatewayFrontendIPConfiguration]'}, + 'frontend_ports': {'key': 'properties.frontendPorts', 'type': '[ApplicationGatewayFrontendPort]'}, + 'probes': {'key': 'properties.probes', 'type': '[ApplicationGatewayProbe]'}, + 'backend_address_pools': {'key': 'properties.backendAddressPools', 'type': '[ApplicationGatewayBackendAddressPool]'}, + 'backend_http_settings_collection': {'key': 'properties.backendHttpSettingsCollection', 'type': '[ApplicationGatewayBackendHttpSettings]'}, + 'http_listeners': {'key': 'properties.httpListeners', 'type': '[ApplicationGatewayHttpListener]'}, + 'url_path_maps': {'key': 'properties.urlPathMaps', 'type': '[ApplicationGatewayUrlPathMap]'}, + 'request_routing_rules': {'key': 'properties.requestRoutingRules', 'type': '[ApplicationGatewayRequestRoutingRule]'}, + 'redirect_configurations': {'key': 'properties.redirectConfigurations', 'type': '[ApplicationGatewayRedirectConfiguration]'}, + 'web_application_firewall_configuration': {'key': 'properties.webApplicationFirewallConfiguration', 'type': 'ApplicationGatewayWebApplicationFirewallConfiguration'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, id=None, location=None, tags=None, sku=None, ssl_policy=None, gateway_ip_configurations=None, authentication_certificates=None, ssl_certificates=None, frontend_ip_configurations=None, frontend_ports=None, probes=None, backend_address_pools=None, backend_http_settings_collection=None, http_listeners=None, url_path_maps=None, request_routing_rules=None, redirect_configurations=None, web_application_firewall_configuration=None, resource_guid=None, provisioning_state=None, etag=None): + super(ApplicationGateway, self).__init__(id=id, location=location, tags=tags) + self.sku = sku + self.ssl_policy = ssl_policy + self.operational_state = None + self.gateway_ip_configurations = gateway_ip_configurations + self.authentication_certificates = authentication_certificates + self.ssl_certificates = ssl_certificates + self.frontend_ip_configurations = frontend_ip_configurations + self.frontend_ports = frontend_ports + self.probes = probes + self.backend_address_pools = backend_address_pools + self.backend_http_settings_collection = backend_http_settings_collection + self.http_listeners = http_listeners + self.url_path_maps = url_path_maps + self.request_routing_rules = request_routing_rules + self.redirect_configurations = redirect_configurations + self.web_application_firewall_configuration = web_application_firewall_configuration + self.resource_guid = resource_guid + self.provisioning_state = provisioning_state + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_authentication_certificate.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_authentication_certificate.py new file mode 100644 index 000000000000..18f36b7401a7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_authentication_certificate.py @@ -0,0 +1,51 @@ +# 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 .sub_resource import SubResource + + +class ApplicationGatewayAuthenticationCertificate(SubResource): + """Authentication certificates of an application gateway. + + :param id: Resource ID. + :type id: str + :param data: Certificate public data. + :type data: str + :param provisioning_state: Provisioning state of the authentication + certificate resource. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :type provisioning_state: str + :param name: Name of the resource that is unique within a resource group. + This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'data': {'key': 'properties.data', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, id=None, data=None, provisioning_state=None, name=None, etag=None, type=None): + super(ApplicationGatewayAuthenticationCertificate, self).__init__(id=id) + self.data = data + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_available_ssl_options.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_available_ssl_options.py new file mode 100644 index 000000000000..86e57cd2cab7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_available_ssl_options.py @@ -0,0 +1,72 @@ +# 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 .resource import Resource + + +class ApplicationGatewayAvailableSslOptions(Resource): + """Response for ApplicationGatewayAvailableSslOptions API service call. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict + :param predefined_policies: List of available Ssl predefined policy. + :type predefined_policies: list of :class:`SubResource + ` + :param default_policy: Name of the Ssl predefined policy applied by + default to application gateway. Possible values include: + 'AppGwSslPolicy20150501', 'AppGwSslPolicy20170401', + 'AppGwSslPolicy20170401S' + :type default_policy: str or :class:`ApplicationGatewaySslPolicyName + ` + :param available_cipher_suites: List of available Ssl cipher suites. + :type available_cipher_suites: list of str or + :class:`ApplicationGatewaySslCipherSuite + ` + :param available_protocols: List of available Ssl protocols. + :type available_protocols: list of str or + :class:`ApplicationGatewaySslProtocol + ` + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'predefined_policies': {'key': 'properties.predefinedPolicies', 'type': '[SubResource]'}, + 'default_policy': {'key': 'properties.defaultPolicy', 'type': 'str'}, + 'available_cipher_suites': {'key': 'properties.availableCipherSuites', 'type': '[str]'}, + 'available_protocols': {'key': 'properties.availableProtocols', 'type': '[str]'}, + } + + def __init__(self, id=None, location=None, tags=None, predefined_policies=None, default_policy=None, available_cipher_suites=None, available_protocols=None): + super(ApplicationGatewayAvailableSslOptions, self).__init__(id=id, location=location, tags=tags) + self.predefined_policies = predefined_policies + self.default_policy = default_policy + self.available_cipher_suites = available_cipher_suites + self.available_protocols = available_protocols diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_available_waf_rule_sets_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_available_waf_rule_sets_result.py new file mode 100644 index 000000000000..d2b774673844 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_available_waf_rule_sets_result.py @@ -0,0 +1,28 @@ +# 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 ApplicationGatewayAvailableWafRuleSetsResult(Model): + """Response for ApplicationGatewayAvailableWafRuleSets API service call. + + :param value: The list of application gateway rule sets. + :type value: list of :class:`ApplicationGatewayFirewallRuleSet + ` + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ApplicationGatewayFirewallRuleSet]'}, + } + + def __init__(self, value=None): + self.value = value diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_backend_address.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_backend_address.py new file mode 100644 index 000000000000..5ff5ce4b4a5c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_backend_address.py @@ -0,0 +1,31 @@ +# 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 ApplicationGatewayBackendAddress(Model): + """Backend address of an application gateway. + + :param fqdn: Fully qualified domain name (FQDN). + :type fqdn: str + :param ip_address: IP address + :type ip_address: str + """ + + _attribute_map = { + 'fqdn': {'key': 'fqdn', 'type': 'str'}, + 'ip_address': {'key': 'ipAddress', 'type': 'str'}, + } + + def __init__(self, fqdn=None, ip_address=None): + self.fqdn = fqdn + self.ip_address = ip_address diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_backend_address_pool.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_backend_address_pool.py new file mode 100644 index 000000000000..c39a1f30d5f4 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_backend_address_pool.py @@ -0,0 +1,58 @@ +# 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 .sub_resource import SubResource + + +class ApplicationGatewayBackendAddressPool(SubResource): + """Backend Address Pool of an application gateway. + + :param id: Resource ID. + :type id: str + :param backend_ip_configurations: Collection of references to IPs defined + in network interfaces. + :type backend_ip_configurations: list of + :class:`NetworkInterfaceIPConfiguration + ` + :param backend_addresses: Backend addresses + :type backend_addresses: list of :class:`ApplicationGatewayBackendAddress + ` + :param provisioning_state: Provisioning state of the backend address pool + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Resource that is unique within a resource group. This name + can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'backend_ip_configurations': {'key': 'properties.backendIPConfigurations', 'type': '[NetworkInterfaceIPConfiguration]'}, + 'backend_addresses': {'key': 'properties.backendAddresses', 'type': '[ApplicationGatewayBackendAddress]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, id=None, backend_ip_configurations=None, backend_addresses=None, provisioning_state=None, name=None, etag=None, type=None): + super(ApplicationGatewayBackendAddressPool, self).__init__(id=id) + self.backend_ip_configurations = backend_ip_configurations + self.backend_addresses = backend_addresses + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_backend_health.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_backend_health.py new file mode 100644 index 000000000000..37463fd9f92a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_backend_health.py @@ -0,0 +1,29 @@ +# 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 ApplicationGatewayBackendHealth(Model): + """List of ApplicationGatewayBackendHealthPool resources. + + :param backend_address_pools: + :type backend_address_pools: list of + :class:`ApplicationGatewayBackendHealthPool + ` + """ + + _attribute_map = { + 'backend_address_pools': {'key': 'backendAddressPools', 'type': '[ApplicationGatewayBackendHealthPool]'}, + } + + def __init__(self, backend_address_pools=None): + self.backend_address_pools = backend_address_pools diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_backend_health_http_settings.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_backend_health_http_settings.py new file mode 100644 index 000000000000..51fe608885d6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_backend_health_http_settings.py @@ -0,0 +1,34 @@ +# 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 ApplicationGatewayBackendHealthHttpSettings(Model): + """Application gateway BackendHealthHttp settings. + + :param backend_http_settings: Reference of an + ApplicationGatewayBackendHttpSettings resource. + :type backend_http_settings: :class:`ApplicationGatewayBackendHttpSettings + ` + :param servers: List of ApplicationGatewayBackendHealthServer resources. + :type servers: list of :class:`ApplicationGatewayBackendHealthServer + ` + """ + + _attribute_map = { + 'backend_http_settings': {'key': 'backendHttpSettings', 'type': 'ApplicationGatewayBackendHttpSettings'}, + 'servers': {'key': 'servers', 'type': '[ApplicationGatewayBackendHealthServer]'}, + } + + def __init__(self, backend_http_settings=None, servers=None): + self.backend_http_settings = backend_http_settings + self.servers = servers diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_backend_health_pool.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_backend_health_pool.py new file mode 100644 index 000000000000..c29429e137fb --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_backend_health_pool.py @@ -0,0 +1,36 @@ +# 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 ApplicationGatewayBackendHealthPool(Model): + """Application gateway BackendHealth pool. + + :param backend_address_pool: Reference of an + ApplicationGatewayBackendAddressPool resource. + :type backend_address_pool: :class:`ApplicationGatewayBackendAddressPool + ` + :param backend_http_settings_collection: List of + ApplicationGatewayBackendHealthHttpSettings resources. + :type backend_http_settings_collection: list of + :class:`ApplicationGatewayBackendHealthHttpSettings + ` + """ + + _attribute_map = { + 'backend_address_pool': {'key': 'backendAddressPool', 'type': 'ApplicationGatewayBackendAddressPool'}, + 'backend_http_settings_collection': {'key': 'backendHttpSettingsCollection', 'type': '[ApplicationGatewayBackendHealthHttpSettings]'}, + } + + def __init__(self, backend_address_pool=None, backend_http_settings_collection=None): + self.backend_address_pool = backend_address_pool + self.backend_http_settings_collection = backend_http_settings_collection diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_backend_health_server.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_backend_health_server.py new file mode 100644 index 000000000000..c40a8030a0c6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_backend_health_server.py @@ -0,0 +1,38 @@ +# 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 ApplicationGatewayBackendHealthServer(Model): + """Application gateway backendhealth http settings. + + :param address: IP address or FQDN of backend server. + :type address: str + :param ip_configuration: Reference of IP configuration of backend server. + :type ip_configuration: :class:`NetworkInterfaceIPConfiguration + ` + :param health: Health of backend server. Possible values include: + 'Unknown', 'Up', 'Down', 'Partial', 'Draining' + :type health: str or :class:`ApplicationGatewayBackendHealthServerHealth + ` + """ + + _attribute_map = { + 'address': {'key': 'address', 'type': 'str'}, + 'ip_configuration': {'key': 'ipConfiguration', 'type': 'NetworkInterfaceIPConfiguration'}, + 'health': {'key': 'health', 'type': 'str'}, + } + + def __init__(self, address=None, ip_configuration=None, health=None): + self.address = address + self.ip_configuration = ip_configuration + self.health = health diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_backend_http_settings.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_backend_http_settings.py new file mode 100644 index 000000000000..9fd619aad390 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_backend_http_settings.py @@ -0,0 +1,109 @@ +# 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 .sub_resource import SubResource + + +class ApplicationGatewayBackendHttpSettings(SubResource): + """Backend address pool settings of an application gateway. + + :param id: Resource ID. + :type id: str + :param port: Port + :type port: int + :param protocol: Protocol. Possible values include: 'Http', 'Https' + :type protocol: str or :class:`ApplicationGatewayProtocol + ` + :param cookie_based_affinity: Cookie based affinity. Possible values + include: 'Enabled', 'Disabled' + :type cookie_based_affinity: str or + :class:`ApplicationGatewayCookieBasedAffinity + ` + :param request_timeout: Request timeout in seconds. Application Gateway + will fail the request if response is not received within RequestTimeout. + Acceptable values are from 1 second to 86400 seconds. + :type request_timeout: int + :param probe: Probe resource of an application gateway. + :type probe: :class:`SubResource + ` + :param authentication_certificates: Array of references to application + gateway authentication certificates. + :type authentication_certificates: list of :class:`SubResource + ` + :param connection_draining: Connection draining of the backend http + settings resource. + :type connection_draining: :class:`ApplicationGatewayConnectionDraining + ` + :param host_name: Host header to be sent to the backend servers. + :type host_name: str + :param pick_host_name_from_backend_address: Whether to pick host header + should be picked from the host name of the backend server. Default value + is false. + :type pick_host_name_from_backend_address: bool + :param affinity_cookie_name: Cookie name to use for the affinity cookie. + :type affinity_cookie_name: str + :param probe_enabled: Whether the probe is enabled. Default value is + false. + :type probe_enabled: bool + :param path: Path which should be used as a prefix for all HTTP requests. + Null means no path will be prefixed. Default value is null. + :type path: str + :param provisioning_state: Provisioning state of the backend http settings + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the resource that is unique within a resource group. + This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'port': {'key': 'properties.port', 'type': 'int'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'cookie_based_affinity': {'key': 'properties.cookieBasedAffinity', 'type': 'str'}, + 'request_timeout': {'key': 'properties.requestTimeout', 'type': 'int'}, + 'probe': {'key': 'properties.probe', 'type': 'SubResource'}, + 'authentication_certificates': {'key': 'properties.authenticationCertificates', 'type': '[SubResource]'}, + 'connection_draining': {'key': 'properties.connectionDraining', 'type': 'ApplicationGatewayConnectionDraining'}, + 'host_name': {'key': 'properties.hostName', 'type': 'str'}, + 'pick_host_name_from_backend_address': {'key': 'properties.pickHostNameFromBackendAddress', 'type': 'bool'}, + 'affinity_cookie_name': {'key': 'properties.affinityCookieName', 'type': 'str'}, + 'probe_enabled': {'key': 'properties.probeEnabled', 'type': 'bool'}, + 'path': {'key': 'properties.path', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, id=None, port=None, protocol=None, cookie_based_affinity=None, request_timeout=None, probe=None, authentication_certificates=None, connection_draining=None, host_name=None, pick_host_name_from_backend_address=None, affinity_cookie_name=None, probe_enabled=None, path=None, provisioning_state=None, name=None, etag=None, type=None): + super(ApplicationGatewayBackendHttpSettings, self).__init__(id=id) + self.port = port + self.protocol = protocol + self.cookie_based_affinity = cookie_based_affinity + self.request_timeout = request_timeout + self.probe = probe + self.authentication_certificates = authentication_certificates + self.connection_draining = connection_draining + self.host_name = host_name + self.pick_host_name_from_backend_address = pick_host_name_from_backend_address + self.affinity_cookie_name = affinity_cookie_name + self.probe_enabled = probe_enabled + self.path = path + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_connection_draining.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_connection_draining.py new file mode 100644 index 000000000000..e1912ca67c62 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_connection_draining.py @@ -0,0 +1,39 @@ +# 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 ApplicationGatewayConnectionDraining(Model): + """Connection draining allows open connections to a backend server to be + active for a specified time after the backend server got removed from the + configuration. + + :param enabled: Whether connection draining is enabled or not. + :type enabled: bool + :param drain_timeout_in_sec: The number of seconds connection draining is + active. Acceptable values are from 1 second to 3600 seconds. + :type drain_timeout_in_sec: int + """ + + _validation = { + 'enabled': {'required': True}, + 'drain_timeout_in_sec': {'required': True, 'maximum': 3600, 'minimum': 1}, + } + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'drain_timeout_in_sec': {'key': 'drainTimeoutInSec', 'type': 'int'}, + } + + def __init__(self, enabled, drain_timeout_in_sec): + self.enabled = enabled + self.drain_timeout_in_sec = drain_timeout_in_sec diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_firewall_disabled_rule_group.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_firewall_disabled_rule_group.py new file mode 100644 index 000000000000..11b790332188 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_firewall_disabled_rule_group.py @@ -0,0 +1,36 @@ +# 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 ApplicationGatewayFirewallDisabledRuleGroup(Model): + """Allows to disable rules within a rule group or an entire rule group. + + :param rule_group_name: The name of the rule group that will be disabled. + :type rule_group_name: str + :param rules: The list of rules that will be disabled. If null, all rules + of the rule group will be disabled. + :type rules: list of int + """ + + _validation = { + 'rule_group_name': {'required': True}, + } + + _attribute_map = { + 'rule_group_name': {'key': 'ruleGroupName', 'type': 'str'}, + 'rules': {'key': 'rules', 'type': '[int]'}, + } + + def __init__(self, rule_group_name, rules=None): + self.rule_group_name = rule_group_name + self.rules = rules diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_firewall_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_firewall_rule.py new file mode 100644 index 000000000000..74db98eb4e23 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_firewall_rule.py @@ -0,0 +1,35 @@ +# 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 ApplicationGatewayFirewallRule(Model): + """A web application firewall rule. + + :param rule_id: The identifier of the web application firewall rule. + :type rule_id: int + :param description: The description of the web application firewall rule. + :type description: str + """ + + _validation = { + 'rule_id': {'required': True}, + } + + _attribute_map = { + 'rule_id': {'key': 'ruleId', 'type': 'int'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, rule_id, description=None): + self.rule_id = rule_id + self.description = description diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_firewall_rule_group.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_firewall_rule_group.py new file mode 100644 index 000000000000..23084e196e9e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_firewall_rule_group.py @@ -0,0 +1,43 @@ +# 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 ApplicationGatewayFirewallRuleGroup(Model): + """A web application firewall rule group. + + :param rule_group_name: The name of the web application firewall rule + group. + :type rule_group_name: str + :param description: The description of the web application firewall rule + group. + :type description: str + :param rules: The rules of the web application firewall rule group. + :type rules: list of :class:`ApplicationGatewayFirewallRule + ` + """ + + _validation = { + 'rule_group_name': {'required': True}, + 'rules': {'required': True}, + } + + _attribute_map = { + 'rule_group_name': {'key': 'ruleGroupName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'rules': {'key': 'rules', 'type': '[ApplicationGatewayFirewallRule]'}, + } + + def __init__(self, rule_group_name, rules, description=None): + self.rule_group_name = rule_group_name + self.description = description + self.rules = rules diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_firewall_rule_set.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_firewall_rule_set.py new file mode 100644 index 000000000000..2ae5dc52d741 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_firewall_rule_set.py @@ -0,0 +1,70 @@ +# 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 .resource import Resource + + +class ApplicationGatewayFirewallRuleSet(Resource): + """A web application firewall rule set. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict + :param provisioning_state: The provisioning state of the web application + firewall rule set. + :type provisioning_state: str + :param rule_set_type: The type of the web application firewall rule set. + :type rule_set_type: str + :param rule_set_version: The version of the web application firewall rule + set type. + :type rule_set_version: str + :param rule_groups: The rule groups of the web application firewall rule + set. + :type rule_groups: list of :class:`ApplicationGatewayFirewallRuleGroup + ` + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'rule_set_type': {'required': True}, + 'rule_set_version': {'required': True}, + 'rule_groups': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'rule_set_type': {'key': 'properties.ruleSetType', 'type': 'str'}, + 'rule_set_version': {'key': 'properties.ruleSetVersion', 'type': 'str'}, + 'rule_groups': {'key': 'properties.ruleGroups', 'type': '[ApplicationGatewayFirewallRuleGroup]'}, + } + + def __init__(self, rule_set_type, rule_set_version, rule_groups, id=None, location=None, tags=None, provisioning_state=None): + super(ApplicationGatewayFirewallRuleSet, self).__init__(id=id, location=location, tags=tags) + self.provisioning_state = provisioning_state + self.rule_set_type = rule_set_type + self.rule_set_version = rule_set_version + self.rule_groups = rule_groups diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_frontend_ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_frontend_ip_configuration.py new file mode 100644 index 000000000000..eab81a273ef3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_frontend_ip_configuration.py @@ -0,0 +1,67 @@ +# 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 .sub_resource import SubResource + + +class ApplicationGatewayFrontendIPConfiguration(SubResource): + """Frontend IP configuration of an application gateway. + + :param id: Resource ID. + :type id: str + :param private_ip_address: PrivateIPAddress of the network interface IP + Configuration. + :type private_ip_address: str + :param private_ip_allocation_method: PrivateIP allocation method. Possible + values include: 'Static', 'Dynamic' + :type private_ip_allocation_method: str or :class:`IPAllocationMethod + ` + :param subnet: Reference of the subnet resource. + :type subnet: :class:`SubResource + ` + :param public_ip_address: Reference of the PublicIP resource. + :type public_ip_address: :class:`SubResource + ` + :param provisioning_state: Provisioning state of the public IP resource. + Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the resource that is unique within a resource group. + This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'private_ip_address': {'key': 'properties.privateIPAddress', 'type': 'str'}, + 'private_ip_allocation_method': {'key': 'properties.privateIPAllocationMethod', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'SubResource'}, + 'public_ip_address': {'key': 'properties.publicIPAddress', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, id=None, private_ip_address=None, private_ip_allocation_method=None, subnet=None, public_ip_address=None, provisioning_state=None, name=None, etag=None, type=None): + super(ApplicationGatewayFrontendIPConfiguration, self).__init__(id=id) + self.private_ip_address = private_ip_address + self.private_ip_allocation_method = private_ip_allocation_method + self.subnet = subnet + self.public_ip_address = public_ip_address + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_frontend_port.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_frontend_port.py new file mode 100644 index 000000000000..2b1b32d1b79e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_frontend_port.py @@ -0,0 +1,50 @@ +# 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 .sub_resource import SubResource + + +class ApplicationGatewayFrontendPort(SubResource): + """Frontend port of an application gateway. + + :param id: Resource ID. + :type id: str + :param port: Frontend port + :type port: int + :param provisioning_state: Provisioning state of the frontend port + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the resource that is unique within a resource group. + This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'port': {'key': 'properties.port', 'type': 'int'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, id=None, port=None, provisioning_state=None, name=None, etag=None, type=None): + super(ApplicationGatewayFrontendPort, self).__init__(id=id) + self.port = port + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_http_listener.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_http_listener.py new file mode 100644 index 000000000000..5f477ea495c4 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_http_listener.py @@ -0,0 +1,77 @@ +# 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 .sub_resource import SubResource + + +class ApplicationGatewayHttpListener(SubResource): + """Http listener of an application gateway. + + :param id: Resource ID. + :type id: str + :param frontend_ip_configuration: Frontend IP configuration resource of an + application gateway. + :type frontend_ip_configuration: :class:`SubResource + ` + :param frontend_port: Frontend port resource of an application gateway. + :type frontend_port: :class:`SubResource + ` + :param protocol: Protocol. Possible values include: 'Http', 'Https' + :type protocol: str or :class:`ApplicationGatewayProtocol + ` + :param host_name: Host name of HTTP listener. + :type host_name: str + :param ssl_certificate: SSL certificate resource of an application + gateway. + :type ssl_certificate: :class:`SubResource + ` + :param require_server_name_indication: Applicable only if protocol is + https. Enables SNI for multi-hosting. + :type require_server_name_indication: bool + :param provisioning_state: Provisioning state of the HTTP listener + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the resource that is unique within a resource group. + This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'frontend_ip_configuration': {'key': 'properties.frontendIPConfiguration', 'type': 'SubResource'}, + 'frontend_port': {'key': 'properties.frontendPort', 'type': 'SubResource'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'host_name': {'key': 'properties.hostName', 'type': 'str'}, + 'ssl_certificate': {'key': 'properties.sslCertificate', 'type': 'SubResource'}, + 'require_server_name_indication': {'key': 'properties.requireServerNameIndication', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, id=None, frontend_ip_configuration=None, frontend_port=None, protocol=None, host_name=None, ssl_certificate=None, require_server_name_indication=None, provisioning_state=None, name=None, etag=None, type=None): + super(ApplicationGatewayHttpListener, self).__init__(id=id) + self.frontend_ip_configuration = frontend_ip_configuration + self.frontend_port = frontend_port + self.protocol = protocol + self.host_name = host_name + self.ssl_certificate = ssl_certificate + self.require_server_name_indication = require_server_name_indication + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_ip_configuration.py new file mode 100644 index 000000000000..696562438aaf --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_ip_configuration.py @@ -0,0 +1,54 @@ +# 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 .sub_resource import SubResource + + +class ApplicationGatewayIPConfiguration(SubResource): + """IP configuration of an application gateway. Currently 1 public and 1 + private IP configuration is allowed. + + :param id: Resource ID. + :type id: str + :param subnet: Reference of the subnet resource. A subnet from where + application gateway gets its private address. + :type subnet: :class:`SubResource + ` + :param provisioning_state: Provisioning state of the application gateway + subnet resource. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :type provisioning_state: str + :param name: Name of the resource that is unique within a resource group. + This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, id=None, subnet=None, provisioning_state=None, name=None, etag=None, type=None): + super(ApplicationGatewayIPConfiguration, self).__init__(id=id) + self.subnet = subnet + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_paged.py new file mode 100644 index 000000000000..993b4b5173e7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_paged.py @@ -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 ApplicationGatewayPaged(Paged): + """ + A paging container for iterating over a list of :class:`ApplicationGateway ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ApplicationGateway]'} + } + + def __init__(self, *args, **kwargs): + + super(ApplicationGatewayPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_path_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_path_rule.py new file mode 100644 index 000000000000..6bf41462e7f7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_path_rule.py @@ -0,0 +1,68 @@ +# 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 .sub_resource import SubResource + + +class ApplicationGatewayPathRule(SubResource): + """Path rule of URL path map of an application gateway. + + :param id: Resource ID. + :type id: str + :param paths: Path rules of URL path map. + :type paths: list of str + :param backend_address_pool: Backend address pool resource of URL path map + path rule. + :type backend_address_pool: :class:`SubResource + ` + :param backend_http_settings: Backend http settings resource of URL path + map path rule. + :type backend_http_settings: :class:`SubResource + ` + :param redirect_configuration: Redirect configuration resource of URL path + map path rule. + :type redirect_configuration: :class:`SubResource + ` + :param provisioning_state: Path rule of URL path map resource. Possible + values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the resource that is unique within a resource group. + This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'paths': {'key': 'properties.paths', 'type': '[str]'}, + 'backend_address_pool': {'key': 'properties.backendAddressPool', 'type': 'SubResource'}, + 'backend_http_settings': {'key': 'properties.backendHttpSettings', 'type': 'SubResource'}, + 'redirect_configuration': {'key': 'properties.redirectConfiguration', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, id=None, paths=None, backend_address_pool=None, backend_http_settings=None, redirect_configuration=None, provisioning_state=None, name=None, etag=None, type=None): + super(ApplicationGatewayPathRule, self).__init__(id=id) + self.paths = paths + self.backend_address_pool = backend_address_pool + self.backend_http_settings = backend_http_settings + self.redirect_configuration = redirect_configuration + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_probe.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_probe.py new file mode 100644 index 000000000000..15665a0d4ab6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_probe.py @@ -0,0 +1,93 @@ +# 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 .sub_resource import SubResource + + +class ApplicationGatewayProbe(SubResource): + """Probe of the application gateway. + + :param id: Resource ID. + :type id: str + :param protocol: Protocol. Possible values include: 'Http', 'Https' + :type protocol: str or :class:`ApplicationGatewayProtocol + ` + :param host: Host name to send the probe to. + :type host: str + :param path: Relative path of probe. Valid path starts from '/'. Probe is + sent to ://: + :type path: str + :param interval: The probing interval in seconds. This is the time + interval between two consecutive probes. Acceptable values are from 1 + second to 86400 seconds. + :type interval: int + :param timeout: the probe timeout in seconds. Probe marked as failed if + valid response is not received with this timeout period. Acceptable values + are from 1 second to 86400 seconds. + :type timeout: int + :param unhealthy_threshold: The probe retry count. Backend server is + marked down after consecutive probe failure count reaches + UnhealthyThreshold. Acceptable values are from 1 second to 20. + :type unhealthy_threshold: int + :param pick_host_name_from_backend_http_settings: Whether the host header + should be picked from the backend http settings. Default value is false. + :type pick_host_name_from_backend_http_settings: bool + :param min_servers: Minimum number of servers that are always marked + healthy. Default value is 0. + :type min_servers: int + :param match: Criterion for classifying a healthy probe response. + :type match: :class:`ApplicationGatewayProbeHealthResponseMatch + ` + :param provisioning_state: Provisioning state of the backend http settings + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the resource that is unique within a resource group. + This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'host': {'key': 'properties.host', 'type': 'str'}, + 'path': {'key': 'properties.path', 'type': 'str'}, + 'interval': {'key': 'properties.interval', 'type': 'int'}, + 'timeout': {'key': 'properties.timeout', 'type': 'int'}, + 'unhealthy_threshold': {'key': 'properties.unhealthyThreshold', 'type': 'int'}, + 'pick_host_name_from_backend_http_settings': {'key': 'properties.pickHostNameFromBackendHttpSettings', 'type': 'bool'}, + 'min_servers': {'key': 'properties.minServers', 'type': 'int'}, + 'match': {'key': 'properties.match', 'type': 'ApplicationGatewayProbeHealthResponseMatch'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, id=None, protocol=None, host=None, path=None, interval=None, timeout=None, unhealthy_threshold=None, pick_host_name_from_backend_http_settings=None, min_servers=None, match=None, provisioning_state=None, name=None, etag=None, type=None): + super(ApplicationGatewayProbe, self).__init__(id=id) + self.protocol = protocol + self.host = host + self.path = path + self.interval = interval + self.timeout = timeout + self.unhealthy_threshold = unhealthy_threshold + self.pick_host_name_from_backend_http_settings = pick_host_name_from_backend_http_settings + self.min_servers = min_servers + self.match = match + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_probe_health_response_match.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_probe_health_response_match.py new file mode 100644 index 000000000000..36fe84fe50ff --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_probe_health_response_match.py @@ -0,0 +1,33 @@ +# 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 ApplicationGatewayProbeHealthResponseMatch(Model): + """Application gateway probe health response match. + + :param body: Body that must be contained in the health response. Default + value is empty. + :type body: str + :param status_codes: Allowed ranges of healthy status codes. Default range + of healthy status codes is 200-399. + :type status_codes: list of str + """ + + _attribute_map = { + 'body': {'key': 'body', 'type': 'str'}, + 'status_codes': {'key': 'statusCodes', 'type': '[str]'}, + } + + def __init__(self, body=None, status_codes=None): + self.body = body + self.status_codes = status_codes diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_redirect_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_redirect_configuration.py new file mode 100644 index 000000000000..fe4eb56f2846 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_redirect_configuration.py @@ -0,0 +1,83 @@ +# 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 .sub_resource import SubResource + + +class ApplicationGatewayRedirectConfiguration(SubResource): + """Redirect configuration of an application gateway. + + :param id: Resource ID. + :type id: str + :param redirect_type: Supported http redirection types - Permanent, + Temporary, Found, SeeOther. Possible values include: 'Permanent', 'Found', + 'SeeOther', 'Temporary' + :type redirect_type: str or :class:`ApplicationGatewayRedirectType + ` + :param target_listener: Reference to a listener to redirect the request + to. + :type target_listener: :class:`SubResource + ` + :param target_url: Url to redirect the request to. + :type target_url: str + :param include_path: Include path in the redirected url. + :type include_path: bool + :param include_query_string: Include query string in the redirected url. + :type include_query_string: bool + :param request_routing_rules: Request routing specifying redirect + configuration. + :type request_routing_rules: list of :class:`SubResource + ` + :param url_path_maps: Url path maps specifying default redirect + configuration. + :type url_path_maps: list of :class:`SubResource + ` + :param path_rules: Path rules specifying redirect configuration. + :type path_rules: list of :class:`SubResource + ` + :param name: Name of the resource that is unique within a resource group. + This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'redirect_type': {'key': 'properties.redirectType', 'type': 'str'}, + 'target_listener': {'key': 'properties.targetListener', 'type': 'SubResource'}, + 'target_url': {'key': 'properties.targetUrl', 'type': 'str'}, + 'include_path': {'key': 'properties.includePath', 'type': 'bool'}, + 'include_query_string': {'key': 'properties.includeQueryString', 'type': 'bool'}, + 'request_routing_rules': {'key': 'properties.requestRoutingRules', 'type': '[SubResource]'}, + 'url_path_maps': {'key': 'properties.urlPathMaps', 'type': '[SubResource]'}, + 'path_rules': {'key': 'properties.pathRules', 'type': '[SubResource]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, id=None, redirect_type=None, target_listener=None, target_url=None, include_path=None, include_query_string=None, request_routing_rules=None, url_path_maps=None, path_rules=None, name=None, etag=None, type=None): + super(ApplicationGatewayRedirectConfiguration, self).__init__(id=id) + self.redirect_type = redirect_type + self.target_listener = target_listener + self.target_url = target_url + self.include_path = include_path + self.include_query_string = include_query_string + self.request_routing_rules = request_routing_rules + self.url_path_maps = url_path_maps + self.path_rules = path_rules + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_request_routing_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_request_routing_rule.py new file mode 100644 index 000000000000..e82c968e4e44 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_request_routing_rule.py @@ -0,0 +1,80 @@ +# 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 .sub_resource import SubResource + + +class ApplicationGatewayRequestRoutingRule(SubResource): + """Request routing rule of an application gateway. + + :param id: Resource ID. + :type id: str + :param rule_type: Rule type. Possible values include: 'Basic', + 'PathBasedRouting' + :type rule_type: str or :class:`ApplicationGatewayRequestRoutingRuleType + ` + :param backend_address_pool: Backend address pool resource of the + application gateway. + :type backend_address_pool: :class:`SubResource + ` + :param backend_http_settings: Frontend port resource of the application + gateway. + :type backend_http_settings: :class:`SubResource + ` + :param http_listener: Http listener resource of the application gateway. + :type http_listener: :class:`SubResource + ` + :param url_path_map: URL path map resource of the application gateway. + :type url_path_map: :class:`SubResource + ` + :param redirect_configuration: Redirect configuration resource of the + application gateway. + :type redirect_configuration: :class:`SubResource + ` + :param provisioning_state: Provisioning state of the request routing rule + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the resource that is unique within a resource group. + This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'rule_type': {'key': 'properties.ruleType', 'type': 'str'}, + 'backend_address_pool': {'key': 'properties.backendAddressPool', 'type': 'SubResource'}, + 'backend_http_settings': {'key': 'properties.backendHttpSettings', 'type': 'SubResource'}, + 'http_listener': {'key': 'properties.httpListener', 'type': 'SubResource'}, + 'url_path_map': {'key': 'properties.urlPathMap', 'type': 'SubResource'}, + 'redirect_configuration': {'key': 'properties.redirectConfiguration', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, id=None, rule_type=None, backend_address_pool=None, backend_http_settings=None, http_listener=None, url_path_map=None, redirect_configuration=None, provisioning_state=None, name=None, etag=None, type=None): + super(ApplicationGatewayRequestRoutingRule, self).__init__(id=id) + self.rule_type = rule_type + self.backend_address_pool = backend_address_pool + self.backend_http_settings = backend_http_settings + self.http_listener = http_listener + self.url_path_map = url_path_map + self.redirect_configuration = redirect_configuration + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_sku.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_sku.py new file mode 100644 index 000000000000..173fa2fa24a7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_sku.py @@ -0,0 +1,40 @@ +# 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 ApplicationGatewaySku(Model): + """SKU of an application gateway. + + :param name: Name of an application gateway SKU. Possible values include: + 'Standard_Small', 'Standard_Medium', 'Standard_Large', 'WAF_Medium', + 'WAF_Large' + :type name: str or :class:`ApplicationGatewaySkuName + ` + :param tier: Tier of an application gateway. Possible values include: + 'Standard', 'WAF' + :type tier: str or :class:`ApplicationGatewayTier + ` + :param capacity: Capacity (instance count) of an application gateway. + :type capacity: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, name=None, tier=None, capacity=None): + self.name = name + self.tier = tier + self.capacity = capacity diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_ssl_certificate.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_ssl_certificate.py new file mode 100644 index 000000000000..104629e84a5c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_ssl_certificate.py @@ -0,0 +1,61 @@ +# 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 .sub_resource import SubResource + + +class ApplicationGatewaySslCertificate(SubResource): + """SSL certificates of an application gateway. + + :param id: Resource ID. + :type id: str + :param data: Base-64 encoded pfx certificate. Only applicable in PUT + Request. + :type data: str + :param password: Password for the pfx file specified in data. Only + applicable in PUT request. + :type password: str + :param public_cert_data: Base-64 encoded Public cert data corresponding to + pfx specified in data. Only applicable in GET request. + :type public_cert_data: str + :param provisioning_state: Provisioning state of the SSL certificate + resource Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the resource that is unique within a resource group. + This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'data': {'key': 'properties.data', 'type': 'str'}, + 'password': {'key': 'properties.password', 'type': 'str'}, + 'public_cert_data': {'key': 'properties.publicCertData', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, id=None, data=None, password=None, public_cert_data=None, provisioning_state=None, name=None, etag=None, type=None): + super(ApplicationGatewaySslCertificate, self).__init__(id=id) + self.data = data + self.password = password + self.public_cert_data = public_cert_data + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_ssl_policy.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_ssl_policy.py new file mode 100644 index 000000000000..226622d0b7b4 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_ssl_policy.py @@ -0,0 +1,57 @@ +# 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 ApplicationGatewaySslPolicy(Model): + """Application Gateway Ssl policy. + + :param disabled_ssl_protocols: Ssl protocols to be disabled on application + gateway. + :type disabled_ssl_protocols: list of str or + :class:`ApplicationGatewaySslProtocol + ` + :param policy_type: Type of Ssl Policy. Possible values include: + 'Predefined', 'Custom' + :type policy_type: str or :class:`ApplicationGatewaySslPolicyType + ` + :param policy_name: Name of Ssl predefined policy. Possible values + include: 'AppGwSslPolicy20150501', 'AppGwSslPolicy20170401', + 'AppGwSslPolicy20170401S' + :type policy_name: str or :class:`ApplicationGatewaySslPolicyName + ` + :param cipher_suites: Ssl cipher suites to be enabled in the specified + order to application gateway. + :type cipher_suites: list of str or + :class:`ApplicationGatewaySslCipherSuite + ` + :param min_protocol_version: Minimum version of Ssl protocol to be + supported on application gateway. Possible values include: 'TLSv1_0', + 'TLSv1_1', 'TLSv1_2' + :type min_protocol_version: str or :class:`ApplicationGatewaySslProtocol + ` + """ + + _attribute_map = { + 'disabled_ssl_protocols': {'key': 'disabledSslProtocols', 'type': '[str]'}, + 'policy_type': {'key': 'policyType', 'type': 'str'}, + 'policy_name': {'key': 'policyName', 'type': 'str'}, + 'cipher_suites': {'key': 'cipherSuites', 'type': '[str]'}, + 'min_protocol_version': {'key': 'minProtocolVersion', 'type': 'str'}, + } + + def __init__(self, disabled_ssl_protocols=None, policy_type=None, policy_name=None, cipher_suites=None, min_protocol_version=None): + self.disabled_ssl_protocols = disabled_ssl_protocols + self.policy_type = policy_type + self.policy_name = policy_name + self.cipher_suites = cipher_suites + self.min_protocol_version = min_protocol_version diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_ssl_predefined_policy.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_ssl_predefined_policy.py new file mode 100644 index 000000000000..56edefe47482 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_ssl_predefined_policy.py @@ -0,0 +1,45 @@ +# 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 .sub_resource import SubResource + + +class ApplicationGatewaySslPredefinedPolicy(SubResource): + """An Ssl predefined policy. + + :param id: Resource ID. + :type id: str + :param name: Name of Ssl predefined policy. + :type name: str + :param cipher_suites: Ssl cipher suites to be enabled in the specified + order for application gateway. + :type cipher_suites: list of str or + :class:`ApplicationGatewaySslCipherSuite + ` + :param min_protocol_version: Minimum version of Ssl protocol to be + supported on application gateway. Possible values include: 'TLSv1_0', + 'TLSv1_1', 'TLSv1_2' + :type min_protocol_version: str or :class:`ApplicationGatewaySslProtocol + ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'cipher_suites': {'key': 'properties.cipherSuites', 'type': '[str]'}, + 'min_protocol_version': {'key': 'properties.minProtocolVersion', 'type': 'str'}, + } + + def __init__(self, id=None, name=None, cipher_suites=None, min_protocol_version=None): + super(ApplicationGatewaySslPredefinedPolicy, self).__init__(id=id) + self.name = name + self.cipher_suites = cipher_suites + self.min_protocol_version = min_protocol_version diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_ssl_predefined_policy_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_ssl_predefined_policy_paged.py new file mode 100644 index 000000000000..4b542d6a2719 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_ssl_predefined_policy_paged.py @@ -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 ApplicationGatewaySslPredefinedPolicyPaged(Paged): + """ + A paging container for iterating over a list of :class:`ApplicationGatewaySslPredefinedPolicy ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ApplicationGatewaySslPredefinedPolicy]'} + } + + def __init__(self, *args, **kwargs): + + super(ApplicationGatewaySslPredefinedPolicyPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_url_path_map.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_url_path_map.py new file mode 100644 index 000000000000..b7911bd81b8c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_url_path_map.py @@ -0,0 +1,70 @@ +# 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 .sub_resource import SubResource + + +class ApplicationGatewayUrlPathMap(SubResource): + """UrlPathMaps give a url path to the backend mapping information for + PathBasedRouting. + + :param id: Resource ID. + :type id: str + :param default_backend_address_pool: Default backend address pool resource + of URL path map. + :type default_backend_address_pool: :class:`SubResource + ` + :param default_backend_http_settings: Default backend http settings + resource of URL path map. + :type default_backend_http_settings: :class:`SubResource + ` + :param default_redirect_configuration: Default redirect configuration + resource of URL path map. + :type default_redirect_configuration: :class:`SubResource + ` + :param path_rules: Path rule of URL path map resource. + :type path_rules: list of :class:`ApplicationGatewayPathRule + ` + :param provisioning_state: Provisioning state of the backend http settings + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the resource that is unique within a resource group. + This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'default_backend_address_pool': {'key': 'properties.defaultBackendAddressPool', 'type': 'SubResource'}, + 'default_backend_http_settings': {'key': 'properties.defaultBackendHttpSettings', 'type': 'SubResource'}, + 'default_redirect_configuration': {'key': 'properties.defaultRedirectConfiguration', 'type': 'SubResource'}, + 'path_rules': {'key': 'properties.pathRules', 'type': '[ApplicationGatewayPathRule]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, id=None, default_backend_address_pool=None, default_backend_http_settings=None, default_redirect_configuration=None, path_rules=None, provisioning_state=None, name=None, etag=None, type=None): + super(ApplicationGatewayUrlPathMap, self).__init__(id=id) + self.default_backend_address_pool = default_backend_address_pool + self.default_backend_http_settings = default_backend_http_settings + self.default_redirect_configuration = default_redirect_configuration + self.path_rules = path_rules + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_web_application_firewall_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_web_application_firewall_configuration.py new file mode 100644 index 000000000000..f2997abab3e4 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_web_application_firewall_configuration.py @@ -0,0 +1,55 @@ +# 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 ApplicationGatewayWebApplicationFirewallConfiguration(Model): + """Application gateway web application firewall configuration. + + :param enabled: Whether the web application firewall is enabled or not. + :type enabled: bool + :param firewall_mode: Web application firewall mode. Possible values + include: 'Detection', 'Prevention' + :type firewall_mode: str or :class:`ApplicationGatewayFirewallMode + ` + :param rule_set_type: The type of the web application firewall rule set. + Possible values are: 'OWASP'. + :type rule_set_type: str + :param rule_set_version: The version of the rule set type. + :type rule_set_version: str + :param disabled_rule_groups: The disabled rule groups. + :type disabled_rule_groups: list of + :class:`ApplicationGatewayFirewallDisabledRuleGroup + ` + """ + + _validation = { + 'enabled': {'required': True}, + 'firewall_mode': {'required': True}, + 'rule_set_type': {'required': True}, + 'rule_set_version': {'required': True}, + } + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'firewall_mode': {'key': 'firewallMode', 'type': 'str'}, + 'rule_set_type': {'key': 'ruleSetType', 'type': 'str'}, + 'rule_set_version': {'key': 'ruleSetVersion', 'type': 'str'}, + 'disabled_rule_groups': {'key': 'disabledRuleGroups', 'type': '[ApplicationGatewayFirewallDisabledRuleGroup]'}, + } + + def __init__(self, enabled, firewall_mode, rule_set_type, rule_set_version, disabled_rule_groups=None): + self.enabled = enabled + self.firewall_mode = firewall_mode + self.rule_set_type = rule_set_type + self.rule_set_version = rule_set_version + self.disabled_rule_groups = disabled_rule_groups diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_security_group.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_security_group.py new file mode 100644 index 000000000000..b3ccab1cd8ff --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_security_group.py @@ -0,0 +1,68 @@ +# 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 .resource import Resource + + +class ApplicationSecurityGroup(Resource): + """An application security group in a resource group. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict + :ivar resource_guid: The resource GUID property of the application + security group resource. It uniquely identifies a resource, even if the + user changes its name or migrate the resource across subscriptions or + resource groups. + :vartype resource_guid: str + :ivar provisioning_state: The provisioning state of the application + security group resource. Possible values are: 'Succeeded', 'Updating', + 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'resource_guid': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, id=None, location=None, tags=None): + super(ApplicationSecurityGroup, self).__init__(id=id, location=location, tags=tags) + self.resource_guid = None + self.provisioning_state = None + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_security_group_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_security_group_paged.py new file mode 100644 index 000000000000..a1e17bb067c5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_security_group_paged.py @@ -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 ApplicationSecurityGroupPaged(Paged): + """ + A paging container for iterating over a list of :class:`ApplicationSecurityGroup ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ApplicationSecurityGroup]'} + } + + def __init__(self, *args, **kwargs): + + super(ApplicationSecurityGroupPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/azure_async_operation_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/azure_async_operation_result.py new file mode 100644 index 000000000000..08d185441656 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/azure_async_operation_result.py @@ -0,0 +1,41 @@ +# 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 AzureAsyncOperationResult(Model): + """The response body contains the status of the specified asynchronous + operation, indicating whether it has succeeded, is in progress, or has + failed. Note that this status is distinct from the HTTP status code + returned for the Get Operation Status operation itself. If the asynchronous + operation succeeded, the response body includes the HTTP status code for + the successful request. If the asynchronous operation failed, the response + body includes the HTTP status code for the failed request and error + information regarding the failure. + + :param status: Status of the Azure async operation. Possible values are: + 'InProgress', 'Succeeded', and 'Failed'. Possible values include: + 'InProgress', 'Succeeded', 'Failed' + :type status: str or :class:`NetworkOperationStatus + ` + :param error: + :type error: :class:`Error ` + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'Error'}, + } + + def __init__(self, status=None, error=None): + self.status = status + self.error = error diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/backend_address_pool.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/backend_address_pool.py new file mode 100644 index 000000000000..d4f0f58b3f87 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/backend_address_pool.py @@ -0,0 +1,70 @@ +# 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 .sub_resource import SubResource + + +class BackendAddressPool(SubResource): + """Pool of backend IP addresses. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar backend_ip_configurations: Gets collection of references to IP + addresses defined in network interfaces. + :vartype backend_ip_configurations: list of + :class:`NetworkInterfaceIPConfiguration + ` + :ivar load_balancing_rules: Gets load balancing rules that use this + backend address pool. + :vartype load_balancing_rules: list of :class:`SubResource + ` + :ivar outbound_nat_rule: Gets outbound rules that use this backend address + pool. + :vartype outbound_nat_rule: :class:`SubResource + ` + :param provisioning_state: Get provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'backend_ip_configurations': {'readonly': True}, + 'load_balancing_rules': {'readonly': True}, + 'outbound_nat_rule': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'backend_ip_configurations': {'key': 'properties.backendIPConfigurations', 'type': '[NetworkInterfaceIPConfiguration]'}, + 'load_balancing_rules': {'key': 'properties.loadBalancingRules', 'type': '[SubResource]'}, + 'outbound_nat_rule': {'key': 'properties.outboundNatRule', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, id=None, provisioning_state=None, name=None, etag=None): + super(BackendAddressPool, self).__init__(id=id) + self.backend_ip_configurations = None + self.load_balancing_rules = None + self.outbound_nat_rule = None + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/backend_address_pool_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/backend_address_pool_paged.py new file mode 100644 index 000000000000..a8a19eb4120c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/backend_address_pool_paged.py @@ -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 ` 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) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/bgp_community.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/bgp_community.py new file mode 100644 index 000000000000..078037da9ba0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/bgp_community.py @@ -0,0 +1,51 @@ +# 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 BGPCommunity(Model): + """Contains bgp community information offered in Service Community resources. + + :param service_supported_region: The region which the service support. + e.g. For O365, region is Global. + :type service_supported_region: str + :param community_name: The name of the bgp community. e.g. Skype. + :type community_name: str + :param community_value: The value of the bgp community. For more + information: + https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing. + :type community_value: str + :param community_prefixes: The prefixes that the bgp community contains. + :type community_prefixes: list of str + :param is_authorized_to_use: Customer is authorized to use bgp community + or not. + :type is_authorized_to_use: bool + :param service_group: The service group of the bgp community contains. + :type service_group: str + """ + + _attribute_map = { + 'service_supported_region': {'key': 'serviceSupportedRegion', 'type': 'str'}, + 'community_name': {'key': 'communityName', 'type': 'str'}, + 'community_value': {'key': 'communityValue', 'type': 'str'}, + 'community_prefixes': {'key': 'communityPrefixes', 'type': '[str]'}, + 'is_authorized_to_use': {'key': 'isAuthorizedToUse', 'type': 'bool'}, + 'service_group': {'key': 'serviceGroup', 'type': 'str'}, + } + + def __init__(self, service_supported_region=None, community_name=None, community_value=None, community_prefixes=None, is_authorized_to_use=None, service_group=None): + self.service_supported_region = service_supported_region + self.community_name = community_name + self.community_value = community_value + self.community_prefixes = community_prefixes + self.is_authorized_to_use = is_authorized_to_use + self.service_group = service_group diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/bgp_peer_status.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/bgp_peer_status.py new file mode 100644 index 000000000000..72ef6bc0e5a8 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/bgp_peer_status.py @@ -0,0 +1,71 @@ +# 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 BgpPeerStatus(Model): + """BGP peer status details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar local_address: The virtual network gateway's local address + :vartype local_address: str + :ivar neighbor: The remote BGP peer + :vartype neighbor: str + :ivar asn: The autonomous system number of the remote BGP peer + :vartype asn: int + :ivar state: The BGP peer state. Possible values include: 'Unknown', + 'Stopped', 'Idle', 'Connecting', 'Connected' + :vartype state: str or :class:`BgpPeerState + ` + :ivar connected_duration: For how long the peering has been up + :vartype connected_duration: str + :ivar routes_received: The number of routes learned from this peer + :vartype routes_received: long + :ivar messages_sent: The number of BGP messages sent + :vartype messages_sent: long + :ivar messages_received: The number of BGP messages received + :vartype messages_received: long + """ + + _validation = { + 'local_address': {'readonly': True}, + 'neighbor': {'readonly': True}, + 'asn': {'readonly': True}, + 'state': {'readonly': True}, + 'connected_duration': {'readonly': True}, + 'routes_received': {'readonly': True}, + 'messages_sent': {'readonly': True}, + 'messages_received': {'readonly': True}, + } + + _attribute_map = { + 'local_address': {'key': 'localAddress', 'type': 'str'}, + 'neighbor': {'key': 'neighbor', 'type': 'str'}, + 'asn': {'key': 'asn', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'str'}, + 'connected_duration': {'key': 'connectedDuration', 'type': 'str'}, + 'routes_received': {'key': 'routesReceived', 'type': 'long'}, + 'messages_sent': {'key': 'messagesSent', 'type': 'long'}, + 'messages_received': {'key': 'messagesReceived', 'type': 'long'}, + } + + def __init__(self): + self.local_address = None + self.neighbor = None + self.asn = None + self.state = None + self.connected_duration = None + self.routes_received = None + self.messages_sent = None + self.messages_received = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/bgp_peer_status_list_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/bgp_peer_status_list_result.py new file mode 100644 index 000000000000..bf297d52b3c5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/bgp_peer_status_list_result.py @@ -0,0 +1,28 @@ +# 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 BgpPeerStatusListResult(Model): + """Response for list BGP peer status API service call. + + :param value: List of BGP peers + :type value: list of :class:`BgpPeerStatus + ` + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[BgpPeerStatus]'}, + } + + def __init__(self, value=None): + self.value = value diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/bgp_service_community.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/bgp_service_community.py new file mode 100644 index 000000000000..d24ede91392d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/bgp_service_community.py @@ -0,0 +1,56 @@ +# 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 .resource import Resource + + +class BgpServiceCommunity(Resource): + """Service Community Properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict + :param service_name: The name of the bgp community. e.g. Skype. + :type service_name: str + :param bgp_communities: Get a list of bgp communities. + :type bgp_communities: list of :class:`BGPCommunity + ` + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'service_name': {'key': 'properties.serviceName', 'type': 'str'}, + 'bgp_communities': {'key': 'properties.bgpCommunities', 'type': '[BGPCommunity]'}, + } + + def __init__(self, id=None, location=None, tags=None, service_name=None, bgp_communities=None): + super(BgpServiceCommunity, self).__init__(id=id, location=location, tags=tags) + self.service_name = service_name + self.bgp_communities = bgp_communities diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/bgp_service_community_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/bgp_service_community_paged.py new file mode 100644 index 000000000000..1ecc038756e0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/bgp_service_community_paged.py @@ -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 BgpServiceCommunityPaged(Paged): + """ + A paging container for iterating over a list of :class:`BgpServiceCommunity ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[BgpServiceCommunity]'} + } + + def __init__(self, *args, **kwargs): + + super(BgpServiceCommunityPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/bgp_settings.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/bgp_settings.py new file mode 100644 index 000000000000..d62cc30ab0c7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/bgp_settings.py @@ -0,0 +1,37 @@ +# 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 BgpSettings(Model): + """BGP settings details. + + :param asn: The BGP speaker's ASN. + :type asn: long + :param bgp_peering_address: The BGP peering address and BGP identifier of + this BGP speaker. + :type bgp_peering_address: str + :param peer_weight: The weight added to routes learned from this BGP + speaker. + :type peer_weight: int + """ + + _attribute_map = { + 'asn': {'key': 'asn', 'type': 'long'}, + 'bgp_peering_address': {'key': 'bgpPeeringAddress', 'type': 'str'}, + 'peer_weight': {'key': 'peerWeight', 'type': 'int'}, + } + + def __init__(self, asn=None, bgp_peering_address=None, peer_weight=None): + self.asn = asn + self.bgp_peering_address = bgp_peering_address + self.peer_weight = peer_weight diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connection_reset_shared_key.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connection_reset_shared_key.py new file mode 100644 index 000000000000..10bfdc9ba17d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connection_reset_shared_key.py @@ -0,0 +1,32 @@ +# 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 ConnectionResetSharedKey(Model): + """The virtual network connection reset shared key. + + :param key_length: The virtual network connection reset shared key length, + should between 1 and 128. + :type key_length: int + """ + + _validation = { + 'key_length': {'required': True, 'maximum': 128, 'minimum': 1}, + } + + _attribute_map = { + 'key_length': {'key': 'keyLength', 'type': 'int'}, + } + + def __init__(self, key_length): + self.key_length = key_length diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connection_shared_key.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connection_shared_key.py new file mode 100644 index 000000000000..0dbbc36cc798 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connection_shared_key.py @@ -0,0 +1,31 @@ +# 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 ConnectionSharedKey(Model): + """Response for GetConnectionSharedKey API service call. + + :param value: The virtual network connection shared key value. + :type value: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, value): + self.value = value diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connectivity_destination.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connectivity_destination.py new file mode 100644 index 000000000000..756dfadfdd49 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connectivity_destination.py @@ -0,0 +1,37 @@ +# 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 ConnectivityDestination(Model): + """Parameters that define destination of connection. + + :param resource_id: The ID of the resource to which a connection attempt + will be made. + :type resource_id: str + :param address: The IP address or URI the resource to which a connection + attempt will be made. + :type address: str + :param port: Port on which check connectivity will be performed. + :type port: int + """ + + _attribute_map = { + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'address': {'key': 'address', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + } + + def __init__(self, resource_id=None, address=None, port=None): + self.resource_id = resource_id + self.address = address + self.port = port diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connectivity_hop.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connectivity_hop.py new file mode 100644 index 000000000000..cd6f1f575c37 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connectivity_hop.py @@ -0,0 +1,60 @@ +# 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 ConnectivityHop(Model): + """Information about a hop between the source and the destination. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar type: The type of the hop. + :vartype type: str + :ivar id: The ID of the hop. + :vartype id: str + :ivar address: The IP address of the hop. + :vartype address: str + :ivar resource_id: The ID of the resource corresponding to this hop. + :vartype resource_id: str + :ivar next_hop_ids: List of next hop identifiers. + :vartype next_hop_ids: list of str + :ivar issues: List of issues. + :vartype issues: list of :class:`ConnectivityIssue + ` + """ + + _validation = { + 'type': {'readonly': True}, + 'id': {'readonly': True}, + 'address': {'readonly': True}, + 'resource_id': {'readonly': True}, + 'next_hop_ids': {'readonly': True}, + 'issues': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'address': {'key': 'address', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'next_hop_ids': {'key': 'nextHopIds', 'type': '[str]'}, + 'issues': {'key': 'issues', 'type': '[ConnectivityIssue]'}, + } + + def __init__(self): + self.type = None + self.id = None + self.address = None + self.resource_id = None + self.next_hop_ids = None + self.issues = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connectivity_information.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connectivity_information.py new file mode 100644 index 000000000000..2655d41f6291 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connectivity_information.py @@ -0,0 +1,67 @@ +# 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 ConnectivityInformation(Model): + """Information on the connectivity status. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar hops: List of hops between the source and the destination. + :vartype hops: list of :class:`ConnectivityHop + ` + :ivar connection_status: The connection status. Possible values include: + 'Unknown', 'Connected', 'Disconnected', 'Degraded' + :vartype connection_status: str or :class:`ConnectionStatus + ` + :ivar avg_latency_in_ms: Average latency in milliseconds. + :vartype avg_latency_in_ms: int + :ivar min_latency_in_ms: Minimum latency in milliseconds. + :vartype min_latency_in_ms: int + :ivar max_latency_in_ms: Maximum latency in milliseconds. + :vartype max_latency_in_ms: int + :ivar probes_sent: Total number of probes sent. + :vartype probes_sent: int + :ivar probes_failed: Number of failed probes. + :vartype probes_failed: int + """ + + _validation = { + 'hops': {'readonly': True}, + 'connection_status': {'readonly': True}, + 'avg_latency_in_ms': {'readonly': True}, + 'min_latency_in_ms': {'readonly': True}, + 'max_latency_in_ms': {'readonly': True}, + 'probes_sent': {'readonly': True}, + 'probes_failed': {'readonly': True}, + } + + _attribute_map = { + 'hops': {'key': 'hops', 'type': '[ConnectivityHop]'}, + 'connection_status': {'key': 'connectionStatus', 'type': 'str'}, + 'avg_latency_in_ms': {'key': 'avgLatencyInMs', 'type': 'int'}, + 'min_latency_in_ms': {'key': 'minLatencyInMs', 'type': 'int'}, + 'max_latency_in_ms': {'key': 'maxLatencyInMs', 'type': 'int'}, + 'probes_sent': {'key': 'probesSent', 'type': 'int'}, + 'probes_failed': {'key': 'probesFailed', 'type': 'int'}, + } + + def __init__(self): + self.hops = None + self.connection_status = None + self.avg_latency_in_ms = None + self.min_latency_in_ms = None + self.max_latency_in_ms = None + self.probes_sent = None + self.probes_failed = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connectivity_issue.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connectivity_issue.py new file mode 100644 index 000000000000..aabd82b86e80 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connectivity_issue.py @@ -0,0 +1,57 @@ +# 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 ConnectivityIssue(Model): + """Information about an issue encountered in the process of checking for + connectivity. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar origin: The origin of the issue. Possible values include: 'Local', + 'Inbound', 'Outbound' + :vartype origin: str or :class:`Origin + ` + :ivar severity: The severity of the issue. Possible values include: + 'Error', 'Warning' + :vartype severity: str or :class:`Severity + ` + :ivar type: The type of issue. Possible values include: 'Unknown', + 'AgentStopped', 'GuestFirewall', 'DnsResolution', 'SocketBind', + 'NetworkSecurityRule', 'UserDefinedRoute', 'PortThrottled', 'Platform' + :vartype type: str or :class:`IssueType + ` + :ivar context: Provides additional context on the issue. + :vartype context: list of dict + """ + + _validation = { + 'origin': {'readonly': True}, + 'severity': {'readonly': True}, + 'type': {'readonly': True}, + 'context': {'readonly': True}, + } + + _attribute_map = { + 'origin': {'key': 'origin', 'type': 'str'}, + 'severity': {'key': 'severity', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'context': {'key': 'context', 'type': '[{str}]'}, + } + + def __init__(self): + self.origin = None + self.severity = None + self.type = None + self.context = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connectivity_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connectivity_parameters.py new file mode 100644 index 000000000000..3d662e37f9d4 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connectivity_parameters.py @@ -0,0 +1,38 @@ +# 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 ConnectivityParameters(Model): + """Parameters that determine how the connectivity check will be performed. + + :param source: + :type source: :class:`ConnectivitySource + ` + :param destination: + :type destination: :class:`ConnectivityDestination + ` + """ + + _validation = { + 'source': {'required': True}, + 'destination': {'required': True}, + } + + _attribute_map = { + 'source': {'key': 'source', 'type': 'ConnectivitySource'}, + 'destination': {'key': 'destination', 'type': 'ConnectivityDestination'}, + } + + def __init__(self, source, destination): + self.source = source + self.destination = destination diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connectivity_source.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connectivity_source.py new file mode 100644 index 000000000000..8c7034e63c32 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/connectivity_source.py @@ -0,0 +1,37 @@ +# 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 ConnectivitySource(Model): + """Parameters that define the source of the connection. + + :param resource_id: The ID of the resource from which a connectivity check + will be initiated. + :type resource_id: str + :param port: The source port from which a connectivity check will be + performed. + :type port: int + """ + + _validation = { + 'resource_id': {'required': True}, + } + + _attribute_map = { + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + } + + def __init__(self, resource_id, port=None): + self.resource_id = resource_id + self.port = port diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/dhcp_options.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/dhcp_options.py new file mode 100644 index 000000000000..c528964cb2f0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/dhcp_options.py @@ -0,0 +1,29 @@ +# 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 DhcpOptions(Model): + """DhcpOptions contains an array of DNS servers available to VMs deployed in + the virtual network. Standard DHCP option for a subnet overrides VNET DHCP + options. + + :param dns_servers: The list of DNS servers IP addresses. + :type dns_servers: list of str + """ + + _attribute_map = { + 'dns_servers': {'key': 'dnsServers', 'type': '[str]'}, + } + + def __init__(self, dns_servers=None): + self.dns_servers = dns_servers diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/dns_name_availability_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/dns_name_availability_result.py new file mode 100644 index 000000000000..4be1851d2f59 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/dns_name_availability_result.py @@ -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.serialization import Model + + +class DnsNameAvailabilityResult(Model): + """Response for the CheckDnsNameAvailability API service call. + + :param available: Domain availability (True/False). + :type available: bool + """ + + _attribute_map = { + 'available': {'key': 'available', 'type': 'bool'}, + } + + def __init__(self, available=None): + self.available = available diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/effective_network_security_group.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/effective_network_security_group.py new file mode 100644 index 000000000000..e72344dfaaf6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/effective_network_security_group.py @@ -0,0 +1,45 @@ +# 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 EffectiveNetworkSecurityGroup(Model): + """Effective network security group. + + :param network_security_group: The ID of network security group that is + applied. + :type network_security_group: :class:`SubResource + ` + :param association: Associated resources. + :type association: :class:`EffectiveNetworkSecurityGroupAssociation + ` + :param effective_security_rules: A collection of effective security rules. + :type effective_security_rules: list of + :class:`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, 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 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/effective_network_security_group_association.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/effective_network_security_group_association.py new file mode 100644 index 000000000000..1c9ebc6c2c72 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/effective_network_security_group_association.py @@ -0,0 +1,33 @@ +# 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 EffectiveNetworkSecurityGroupAssociation(Model): + """The effective network security group association. + + :param subnet: The ID of the subnet if assigned. + :type subnet: :class:`SubResource + ` + :param network_interface: The ID of the network interface if assigned. + :type network_interface: :class:`SubResource + ` + """ + + _attribute_map = { + 'subnet': {'key': 'subnet', 'type': 'SubResource'}, + 'network_interface': {'key': 'networkInterface', 'type': 'SubResource'}, + } + + def __init__(self, subnet=None, network_interface=None): + self.subnet = subnet + self.network_interface = network_interface diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/effective_network_security_group_list_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/effective_network_security_group_list_result.py new file mode 100644 index 000000000000..67ff555ed802 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/effective_network_security_group_list_result.py @@ -0,0 +1,39 @@ +# 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 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 + ` + :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): + self.value = value + self.next_link = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/effective_network_security_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/effective_network_security_rule.py new file mode 100644 index 000000000000..19e8a0398c46 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/effective_network_security_rule.py @@ -0,0 +1,100 @@ +# 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 EffectiveNetworkSecurityRule(Model): + """Effective network security rules. + + :param name: The name of the security rule specified by the user (if + created by the user). + :type name: str + :param protocol: The network protocol this rule applies to. Possible + values are: 'Tcp', 'Udp', and 'All'. Possible values include: 'Tcp', + 'Udp', 'All' + :type protocol: str or :class:`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 + prefix. + :type expanded_destination_address_prefix: list of str + :param access: Whether network traffic is allowed or denied. Possible + values are: 'Allow' and 'Deny'. Possible values include: 'Allow', 'Deny' + :type access: str or :class:`SecurityRuleAccess + ` + :param priority: The priority of the rule. + :type priority: int + :param direction: The direction of the rule. Possible values are: 'Inbound + and Outbound'. Possible values include: 'Inbound', 'Outbound' + :type direction: str or :class:`SecurityRuleDirection + ` + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + '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_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 + self.priority = priority + self.direction = direction diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/effective_route.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/effective_route.py new file mode 100644 index 000000000000..27e69fb32f92 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/effective_route.py @@ -0,0 +1,59 @@ +# 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 EffectiveRoute(Model): + """Effective Route. + + :param name: The name of the user defined route. This is optional. + :type name: str + :param source: Who created the route. Possible values are: 'Unknown', + 'User', 'VirtualNetworkGateway', and 'Default'. Possible values include: + 'Unknown', 'User', 'VirtualNetworkGateway', 'Default' + :type source: str or :class:`EffectiveRouteSource + ` + :param state: The value of effective route. Possible values are: 'Active' + and 'Invalid'. Possible values include: 'Active', 'Invalid' + :type state: str or :class:`EffectiveRouteState + ` + :param address_prefix: The address prefixes of the effective routes in + CIDR notation. + :type address_prefix: list of str + :param next_hop_ip_address: The IP address of the next hop of the + effective route. + :type next_hop_ip_address: list of str + :param next_hop_type: The type of Azure hop the packet should be sent to. + Possible values are: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', + 'VirtualAppliance', and 'None'. Possible values include: + 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', + 'None' + :type next_hop_type: str or :class:`RouteNextHopType + ` + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'address_prefix': {'key': 'addressPrefix', 'type': '[str]'}, + 'next_hop_ip_address': {'key': 'nextHopIpAddress', 'type': '[str]'}, + 'next_hop_type': {'key': 'nextHopType', 'type': 'str'}, + } + + def __init__(self, name=None, source=None, state=None, address_prefix=None, next_hop_ip_address=None, next_hop_type=None): + self.name = name + self.source = source + self.state = state + self.address_prefix = address_prefix + self.next_hop_ip_address = next_hop_ip_address + self.next_hop_type = next_hop_type diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/effective_route_list_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/effective_route_list_result.py new file mode 100644 index 000000000000..7a8dda9641d9 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/effective_route_list_result.py @@ -0,0 +1,39 @@ +# 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 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 + ` + :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): + self.value = value + self.next_link = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/endpoint_service_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/endpoint_service_result.py new file mode 100644 index 000000000000..9098a41ff164 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/endpoint_service_result.py @@ -0,0 +1,43 @@ +# 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 .sub_resource import SubResource + + +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 endpoint service. + :vartype name: str + :ivar type: Type of the endpoint service. + :vartype type: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, id=None): + super(EndpointServiceResult, self).__init__(id=id) + self.name = None + self.type = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/endpoint_service_result_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/endpoint_service_result_paged.py new file mode 100644 index 000000000000..535512810b5b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/endpoint_service_result_paged.py @@ -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 EndpointServiceResultPaged(Paged): + """ + A paging container for iterating over a list of :class:`EndpointServiceResult ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[EndpointServiceResult]'} + } + + def __init__(self, *args, **kwargs): + + super(EndpointServiceResultPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/error.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/error.py new file mode 100644 index 000000000000..2c4f8b2aa347 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/error.py @@ -0,0 +1,44 @@ +# 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 Error(Model): + """Error. + + :param code: + :type code: str + :param message: + :type message: str + :param target: + :type target: str + :param details: + :type details: list of :class:`ErrorDetails + ` + :param inner_error: + :type inner_error: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ErrorDetails]'}, + 'inner_error': {'key': 'innerError', 'type': 'str'}, + } + + def __init__(self, code=None, message=None, target=None, details=None, inner_error=None): + self.code = code + self.message = message + self.target = target + self.details = details + self.inner_error = inner_error diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/error_details.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/error_details.py new file mode 100644 index 000000000000..47f2ac4111b1 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/error_details.py @@ -0,0 +1,35 @@ +# 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 ErrorDetails(Model): + """ErrorDetails. + + :param code: + :type code: str + :param target: + :type target: str + :param message: + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, code=None, target=None, message=None): + self.code = code + self.target = target + self.message = message diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit.py new file mode 100644 index 000000000000..a0683330bded --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit.py @@ -0,0 +1,110 @@ +# 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 .resource import Resource + + +class ExpressRouteCircuit(Resource): + """ExpressRouteCircuit resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict + :param sku: The SKU. + :type sku: :class:`ExpressRouteCircuitSku + ` + :param allow_classic_operations: Allow classic operations + :type allow_classic_operations: bool + :param circuit_provisioning_state: The CircuitProvisioningState state of + the resource. + :type circuit_provisioning_state: str + :param service_provider_provisioning_state: The + ServiceProviderProvisioningState state of the resource. Possible values + are 'NotProvisioned', 'Provisioning', 'Provisioned', and 'Deprovisioning'. + Possible values include: 'NotProvisioned', 'Provisioning', 'Provisioned', + 'Deprovisioning' + :type service_provider_provisioning_state: str or + :class:`ServiceProviderProvisioningState + ` + :param authorizations: The list of authorizations. + :type authorizations: list of :class:`ExpressRouteCircuitAuthorization + ` + :param peerings: The list of peerings. + :type peerings: list of :class:`ExpressRouteCircuitPeering + ` + :param service_key: The ServiceKey. + :type service_key: str + :param service_provider_notes: The ServiceProviderNotes. + :type service_provider_notes: str + :param service_provider_properties: The ServiceProviderProperties. + :type service_provider_properties: + :class:`ExpressRouteCircuitServiceProviderProperties + ` + :param provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param gateway_manager_etag: The GatewayManager Etag. + :type gateway_manager_etag: str + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'ExpressRouteCircuitSku'}, + 'allow_classic_operations': {'key': 'properties.allowClassicOperations', 'type': 'bool'}, + 'circuit_provisioning_state': {'key': 'properties.circuitProvisioningState', 'type': 'str'}, + 'service_provider_provisioning_state': {'key': 'properties.serviceProviderProvisioningState', 'type': 'str'}, + 'authorizations': {'key': 'properties.authorizations', 'type': '[ExpressRouteCircuitAuthorization]'}, + 'peerings': {'key': 'properties.peerings', 'type': '[ExpressRouteCircuitPeering]'}, + 'service_key': {'key': 'properties.serviceKey', 'type': 'str'}, + 'service_provider_notes': {'key': 'properties.serviceProviderNotes', 'type': 'str'}, + 'service_provider_properties': {'key': 'properties.serviceProviderProperties', 'type': 'ExpressRouteCircuitServiceProviderProperties'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'gateway_manager_etag': {'key': 'properties.gatewayManagerEtag', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, id=None, location=None, tags=None, sku=None, allow_classic_operations=None, circuit_provisioning_state=None, service_provider_provisioning_state=None, authorizations=None, peerings=None, service_key=None, service_provider_notes=None, service_provider_properties=None, provisioning_state=None, gateway_manager_etag=None): + super(ExpressRouteCircuit, self).__init__(id=id, location=location, tags=tags) + self.sku = sku + self.allow_classic_operations = allow_classic_operations + self.circuit_provisioning_state = circuit_provisioning_state + self.service_provider_provisioning_state = service_provider_provisioning_state + self.authorizations = authorizations + self.peerings = peerings + self.service_key = service_key + self.service_provider_notes = service_provider_notes + self.service_provider_properties = service_provider_properties + self.provisioning_state = provisioning_state + self.gateway_manager_etag = gateway_manager_etag + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_arp_table.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_arp_table.py new file mode 100644 index 000000000000..a2f8f716bf8a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_arp_table.py @@ -0,0 +1,39 @@ +# 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 ExpressRouteCircuitArpTable(Model): + """The ARP table associated with the ExpressRouteCircuit. + + :param age: Age + :type age: int + :param interface: Interface + :type interface: str + :param ip_address: The IP address. + :type ip_address: str + :param mac_address: The MAC address. + :type mac_address: str + """ + + _attribute_map = { + 'age': {'key': 'age', 'type': 'int'}, + 'interface': {'key': 'interface', 'type': 'str'}, + 'ip_address': {'key': 'ipAddress', 'type': 'str'}, + 'mac_address': {'key': 'macAddress', 'type': 'str'}, + } + + def __init__(self, age=None, interface=None, ip_address=None, mac_address=None): + self.age = age + self.interface = interface + self.ip_address = ip_address + self.mac_address = mac_address diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_authorization.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_authorization.py new file mode 100644 index 000000000000..27f8049af861 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_authorization.py @@ -0,0 +1,60 @@ +# 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 .sub_resource import SubResource + + +class ExpressRouteCircuitAuthorization(SubResource): + """Authorization in an ExpressRouteCircuit resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param authorization_key: The authorization key. + :type authorization_key: str + :param authorization_use_status: AuthorizationUseStatus. Possible values + are: 'Available' and 'InUse'. Possible values include: 'Available', + 'InUse' + :type authorization_use_status: str or :class:`AuthorizationUseStatus + ` + :param provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'authorization_key': {'key': 'properties.authorizationKey', 'type': 'str'}, + 'authorization_use_status': {'key': 'properties.authorizationUseStatus', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, id=None, authorization_key=None, authorization_use_status=None, provisioning_state=None, name=None): + super(ExpressRouteCircuitAuthorization, self).__init__(id=id) + self.authorization_key = authorization_key + self.authorization_use_status = authorization_use_status + self.provisioning_state = provisioning_state + self.name = name + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_authorization_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_authorization_paged.py new file mode 100644 index 000000000000..1c928504fd68 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_authorization_paged.py @@ -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 ExpressRouteCircuitAuthorizationPaged(Paged): + """ + A paging container for iterating over a list of :class:`ExpressRouteCircuitAuthorization ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ExpressRouteCircuitAuthorization]'} + } + + def __init__(self, *args, **kwargs): + + super(ExpressRouteCircuitAuthorizationPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_paged.py new file mode 100644 index 000000000000..532b4f4ae38f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_paged.py @@ -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 ExpressRouteCircuitPaged(Paged): + """ + A paging container for iterating over a list of :class:`ExpressRouteCircuit ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ExpressRouteCircuit]'} + } + + def __init__(self, *args, **kwargs): + + super(ExpressRouteCircuitPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_peering.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_peering.py new file mode 100644 index 000000000000..0de98eeae25c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_peering.py @@ -0,0 +1,124 @@ +# 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 .sub_resource import SubResource + + +class ExpressRouteCircuitPeering(SubResource): + """Peering in an ExpressRouteCircuit resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param peering_type: The PeeringType. Possible values are: + 'AzurePublicPeering', 'AzurePrivatePeering', and 'MicrosoftPeering'. + Possible values include: 'AzurePublicPeering', 'AzurePrivatePeering', + 'MicrosoftPeering' + :type peering_type: str or :class:`ExpressRouteCircuitPeeringType + ` + :param state: The state of peering. Possible values are: 'Disabled' and + 'Enabled'. Possible values include: 'Disabled', 'Enabled' + :type state: str or :class:`ExpressRouteCircuitPeeringState + ` + :param azure_asn: The Azure ASN. + :type azure_asn: int + :param peer_asn: The peer ASN. + :type peer_asn: int + :param primary_peer_address_prefix: The primary address prefix. + :type primary_peer_address_prefix: str + :param secondary_peer_address_prefix: The secondary address prefix. + :type secondary_peer_address_prefix: str + :param primary_azure_port: The primary port. + :type primary_azure_port: str + :param secondary_azure_port: The secondary port. + :type secondary_azure_port: str + :param shared_key: The shared key. + :type shared_key: str + :param vlan_id: The VLAN ID. + :type vlan_id: int + :param microsoft_peering_config: The Microsoft peering configuration. + :type microsoft_peering_config: :class:`ExpressRouteCircuitPeeringConfig + ` + :param stats: Gets peering stats. + :type stats: :class:`ExpressRouteCircuitStats + ` + :param provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param gateway_manager_etag: The GatewayManager Etag. + :type gateway_manager_etag: str + :param last_modified_by: Gets whether the provider or the customer last + modified the peering. + :type last_modified_by: str + :param route_filter: The reference of the RouteFilter resource. + :type route_filter: :class:`RouteFilter + ` + :param ipv6_peering_config: The IPv6 peering configuration. + :type ipv6_peering_config: :class:`Ipv6ExpressRouteCircuitPeeringConfig + ` + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'peering_type': {'key': 'properties.peeringType', 'type': 'str'}, + 'state': {'key': 'properties.state', 'type': 'str'}, + 'azure_asn': {'key': 'properties.azureASN', 'type': 'int'}, + 'peer_asn': {'key': 'properties.peerASN', 'type': 'int'}, + 'primary_peer_address_prefix': {'key': 'properties.primaryPeerAddressPrefix', 'type': 'str'}, + 'secondary_peer_address_prefix': {'key': 'properties.secondaryPeerAddressPrefix', 'type': 'str'}, + 'primary_azure_port': {'key': 'properties.primaryAzurePort', 'type': 'str'}, + 'secondary_azure_port': {'key': 'properties.secondaryAzurePort', 'type': 'str'}, + 'shared_key': {'key': 'properties.sharedKey', 'type': 'str'}, + 'vlan_id': {'key': 'properties.vlanId', 'type': 'int'}, + 'microsoft_peering_config': {'key': 'properties.microsoftPeeringConfig', 'type': 'ExpressRouteCircuitPeeringConfig'}, + 'stats': {'key': 'properties.stats', 'type': 'ExpressRouteCircuitStats'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'gateway_manager_etag': {'key': 'properties.gatewayManagerEtag', 'type': 'str'}, + 'last_modified_by': {'key': 'properties.lastModifiedBy', 'type': 'str'}, + 'route_filter': {'key': 'properties.routeFilter', 'type': 'RouteFilter'}, + 'ipv6_peering_config': {'key': 'properties.ipv6PeeringConfig', 'type': 'Ipv6ExpressRouteCircuitPeeringConfig'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, id=None, peering_type=None, state=None, azure_asn=None, peer_asn=None, primary_peer_address_prefix=None, secondary_peer_address_prefix=None, primary_azure_port=None, secondary_azure_port=None, shared_key=None, vlan_id=None, microsoft_peering_config=None, stats=None, provisioning_state=None, gateway_manager_etag=None, last_modified_by=None, route_filter=None, ipv6_peering_config=None, name=None): + super(ExpressRouteCircuitPeering, self).__init__(id=id) + self.peering_type = peering_type + self.state = state + self.azure_asn = azure_asn + self.peer_asn = peer_asn + self.primary_peer_address_prefix = primary_peer_address_prefix + self.secondary_peer_address_prefix = secondary_peer_address_prefix + self.primary_azure_port = primary_azure_port + self.secondary_azure_port = secondary_azure_port + self.shared_key = shared_key + self.vlan_id = vlan_id + self.microsoft_peering_config = microsoft_peering_config + self.stats = stats + self.provisioning_state = provisioning_state + self.gateway_manager_etag = gateway_manager_etag + self.last_modified_by = last_modified_by + self.route_filter = route_filter + self.ipv6_peering_config = ipv6_peering_config + self.name = name + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_peering_config.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_peering_config.py new file mode 100644 index 000000000000..259c72c643c7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_peering_config.py @@ -0,0 +1,55 @@ +# 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 ExpressRouteCircuitPeeringConfig(Model): + """Specifies the peering configuration. + + :param advertised_public_prefixes: The reference of + AdvertisedPublicPrefixes. + :type advertised_public_prefixes: list of str + :param advertised_communities: The communities of bgp peering. Spepcified + for microsoft peering + :type advertised_communities: list of str + :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of + the Peering resource. Possible values are 'NotConfigured', 'Configuring', + 'Configured', and 'ValidationNeeded'. Possible values include: + 'NotConfigured', 'Configuring', 'Configured', 'ValidationNeeded' + :type advertised_public_prefixes_state: str or + :class:`ExpressRouteCircuitPeeringAdvertisedPublicPrefixState + ` + :param legacy_mode: The legacy mode of the peering. + :type legacy_mode: int + :param customer_asn: The CustomerASN of the peering. + :type customer_asn: int + :param routing_registry_name: The RoutingRegistryName of the + configuration. + :type routing_registry_name: str + """ + + _attribute_map = { + 'advertised_public_prefixes': {'key': 'advertisedPublicPrefixes', 'type': '[str]'}, + 'advertised_communities': {'key': 'advertisedCommunities', 'type': '[str]'}, + 'advertised_public_prefixes_state': {'key': 'advertisedPublicPrefixesState', 'type': 'str'}, + 'legacy_mode': {'key': 'legacyMode', 'type': 'int'}, + 'customer_asn': {'key': 'customerASN', 'type': 'int'}, + 'routing_registry_name': {'key': 'routingRegistryName', 'type': 'str'}, + } + + def __init__(self, advertised_public_prefixes=None, advertised_communities=None, advertised_public_prefixes_state=None, legacy_mode=None, customer_asn=None, routing_registry_name=None): + self.advertised_public_prefixes = advertised_public_prefixes + self.advertised_communities = advertised_communities + self.advertised_public_prefixes_state = advertised_public_prefixes_state + self.legacy_mode = legacy_mode + self.customer_asn = customer_asn + self.routing_registry_name = routing_registry_name diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_peering_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_peering_paged.py new file mode 100644 index 000000000000..4a089503f783 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_peering_paged.py @@ -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 ExpressRouteCircuitPeeringPaged(Paged): + """ + A paging container for iterating over a list of :class:`ExpressRouteCircuitPeering ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ExpressRouteCircuitPeering]'} + } + + def __init__(self, *args, **kwargs): + + super(ExpressRouteCircuitPeeringPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_routes_table.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_routes_table.py new file mode 100644 index 000000000000..e84fae6e0973 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_routes_table.py @@ -0,0 +1,43 @@ +# 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 ExpressRouteCircuitRoutesTable(Model): + """The routes table associated with the ExpressRouteCircuit. + + :param network: network + :type network: str + :param next_hop: nextHop + :type next_hop: str + :param loc_prf: locPrf + :type loc_prf: str + :param weight: weight. + :type weight: int + :param path: path + :type path: str + """ + + _attribute_map = { + 'network': {'key': 'network', 'type': 'str'}, + 'next_hop': {'key': 'nextHop', 'type': 'str'}, + 'loc_prf': {'key': 'locPrf', 'type': 'str'}, + 'weight': {'key': 'weight', 'type': 'int'}, + 'path': {'key': 'path', 'type': 'str'}, + } + + def __init__(self, network=None, next_hop=None, loc_prf=None, weight=None, path=None): + self.network = network + self.next_hop = next_hop + self.loc_prf = loc_prf + self.weight = weight + self.path = path diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_routes_table_summary.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_routes_table_summary.py new file mode 100644 index 000000000000..3ff1b42d0c1b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_routes_table_summary.py @@ -0,0 +1,45 @@ +# 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 ExpressRouteCircuitRoutesTableSummary(Model): + """The routes table associated with the ExpressRouteCircuit. + + :param neighbor: Neighbor + :type neighbor: str + :param v: BGP version number spoken to the neighbor. + :type v: int + :param as_property: Autonomous system number. + :type as_property: int + :param up_down: The length of time that the BGP session has been in the + Established state, or the current status if not in the Established state. + :type up_down: str + :param state_pfx_rcd: Current state of the BGP session, and the number of + prefixes that have been received from a neighbor or peer group. + :type state_pfx_rcd: str + """ + + _attribute_map = { + 'neighbor': {'key': 'neighbor', 'type': 'str'}, + 'v': {'key': 'v', 'type': 'int'}, + 'as_property': {'key': 'as', 'type': 'int'}, + 'up_down': {'key': 'upDown', 'type': 'str'}, + 'state_pfx_rcd': {'key': 'statePfxRcd', 'type': 'str'}, + } + + def __init__(self, neighbor=None, v=None, as_property=None, up_down=None, state_pfx_rcd=None): + self.neighbor = neighbor + self.v = v + self.as_property = as_property + self.up_down = up_down + self.state_pfx_rcd = state_pfx_rcd diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_service_provider_properties.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_service_provider_properties.py new file mode 100644 index 000000000000..b7ada851e235 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_service_provider_properties.py @@ -0,0 +1,35 @@ +# 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 ExpressRouteCircuitServiceProviderProperties(Model): + """Contains ServiceProviderProperties in an ExpressRouteCircuit. + + :param service_provider_name: The serviceProviderName. + :type service_provider_name: str + :param peering_location: The peering location. + :type peering_location: str + :param bandwidth_in_mbps: The BandwidthInMbps. + :type bandwidth_in_mbps: int + """ + + _attribute_map = { + 'service_provider_name': {'key': 'serviceProviderName', 'type': 'str'}, + 'peering_location': {'key': 'peeringLocation', 'type': 'str'}, + 'bandwidth_in_mbps': {'key': 'bandwidthInMbps', 'type': 'int'}, + } + + def __init__(self, service_provider_name=None, peering_location=None, bandwidth_in_mbps=None): + self.service_provider_name = service_provider_name + self.peering_location = peering_location + self.bandwidth_in_mbps = bandwidth_in_mbps diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_sku.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_sku.py new file mode 100644 index 000000000000..9622ded843f1 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_sku.py @@ -0,0 +1,39 @@ +# 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 ExpressRouteCircuitSku(Model): + """Contains SKU in an ExpressRouteCircuit. + + :param name: The name of the SKU. + :type name: str + :param tier: The tier of the SKU. Possible values are 'Standard' and + 'Premium'. Possible values include: 'Standard', 'Premium' + :type tier: str or :class:`ExpressRouteCircuitSkuTier + ` + :param family: The family of the SKU. Possible values are: 'UnlimitedData' + and 'MeteredData'. Possible values include: 'UnlimitedData', 'MeteredData' + :type family: str or :class:`ExpressRouteCircuitSkuFamily + ` + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + } + + def __init__(self, name=None, tier=None, family=None): + self.name = name + self.tier = tier + self.family = family diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_stats.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_stats.py new file mode 100644 index 000000000000..1215bda40383 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_stats.py @@ -0,0 +1,39 @@ +# 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 ExpressRouteCircuitStats(Model): + """Contains stats associated with the peering. + + :param primarybytes_in: Gets BytesIn of the peering. + :type primarybytes_in: long + :param primarybytes_out: Gets BytesOut of the peering. + :type primarybytes_out: long + :param secondarybytes_in: Gets BytesIn of the peering. + :type secondarybytes_in: long + :param secondarybytes_out: Gets BytesOut of the peering. + :type secondarybytes_out: long + """ + + _attribute_map = { + 'primarybytes_in': {'key': 'primarybytesIn', 'type': 'long'}, + 'primarybytes_out': {'key': 'primarybytesOut', 'type': 'long'}, + 'secondarybytes_in': {'key': 'secondarybytesIn', 'type': 'long'}, + 'secondarybytes_out': {'key': 'secondarybytesOut', 'type': 'long'}, + } + + def __init__(self, primarybytes_in=None, primarybytes_out=None, secondarybytes_in=None, secondarybytes_out=None): + self.primarybytes_in = primarybytes_in + self.primarybytes_out = primarybytes_out + self.secondarybytes_in = secondarybytes_in + self.secondarybytes_out = secondarybytes_out diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuits_arp_table_list_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuits_arp_table_list_result.py new file mode 100644 index 000000000000..51431dc651eb --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuits_arp_table_list_result.py @@ -0,0 +1,32 @@ +# 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 ExpressRouteCircuitsArpTableListResult(Model): + """Response for ListArpTable associated with the Express Route Circuits API. + + :param value: Gets list of the ARP table. + :type value: list of :class:`ExpressRouteCircuitArpTable + ` + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ExpressRouteCircuitArpTable]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, value=None, next_link=None): + self.value = value + self.next_link = next_link diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuits_routes_table_list_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuits_routes_table_list_result.py new file mode 100644 index 000000000000..957326c5359d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuits_routes_table_list_result.py @@ -0,0 +1,33 @@ +# 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 ExpressRouteCircuitsRoutesTableListResult(Model): + """Response for ListRoutesTable associated with the Express Route Circuits + API. + + :param value: The list of routes table. + :type value: list of :class:`ExpressRouteCircuitRoutesTable + ` + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ExpressRouteCircuitRoutesTable]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, value=None, next_link=None): + self.value = value + self.next_link = next_link diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuits_routes_table_summary_list_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuits_routes_table_summary_list_result.py new file mode 100644 index 000000000000..db62dab03a89 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuits_routes_table_summary_list_result.py @@ -0,0 +1,33 @@ +# 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 ExpressRouteCircuitsRoutesTableSummaryListResult(Model): + """Response for ListRoutesTable associated with the Express Route Circuits + API. + + :param value: A list of the routes table. + :type value: list of :class:`ExpressRouteCircuitRoutesTableSummary + ` + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ExpressRouteCircuitRoutesTableSummary]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, value=None, next_link=None): + self.value = value + self.next_link = next_link diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_service_provider.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_service_provider.py new file mode 100644 index 000000000000..b9cf4442f217 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_service_provider.py @@ -0,0 +1,61 @@ +# 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 .resource import Resource + + +class ExpressRouteServiceProvider(Resource): + """A ExpressRouteResourceProvider object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict + :param peering_locations: Get a list of peering locations. + :type peering_locations: list of str + :param bandwidths_offered: Gets bandwidths offered. + :type bandwidths_offered: list of + :class:`ExpressRouteServiceProviderBandwidthsOffered + ` + :param provisioning_state: Gets the provisioning state of the resource. + :type provisioning_state: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'peering_locations': {'key': 'properties.peeringLocations', 'type': '[str]'}, + 'bandwidths_offered': {'key': 'properties.bandwidthsOffered', 'type': '[ExpressRouteServiceProviderBandwidthsOffered]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, id=None, location=None, tags=None, peering_locations=None, bandwidths_offered=None, provisioning_state=None): + super(ExpressRouteServiceProvider, self).__init__(id=id, location=location, tags=tags) + self.peering_locations = peering_locations + self.bandwidths_offered = bandwidths_offered + self.provisioning_state = provisioning_state diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_service_provider_bandwidths_offered.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_service_provider_bandwidths_offered.py new file mode 100644 index 000000000000..b1b2c8a76447 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_service_provider_bandwidths_offered.py @@ -0,0 +1,31 @@ +# 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 ExpressRouteServiceProviderBandwidthsOffered(Model): + """Contains bandwidths offered in ExpressRouteServiceProvider resources. + + :param offer_name: The OfferName. + :type offer_name: str + :param value_in_mbps: The ValueInMbps. + :type value_in_mbps: int + """ + + _attribute_map = { + 'offer_name': {'key': 'offerName', 'type': 'str'}, + 'value_in_mbps': {'key': 'valueInMbps', 'type': 'int'}, + } + + def __init__(self, offer_name=None, value_in_mbps=None): + self.offer_name = offer_name + self.value_in_mbps = value_in_mbps diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_service_provider_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_service_provider_paged.py new file mode 100644 index 000000000000..b83f86ec1ccd --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_service_provider_paged.py @@ -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 ExpressRouteServiceProviderPaged(Paged): + """ + A paging container for iterating over a list of :class:`ExpressRouteServiceProvider ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ExpressRouteServiceProvider]'} + } + + def __init__(self, *args, **kwargs): + + super(ExpressRouteServiceProviderPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/flow_log_information.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/flow_log_information.py new file mode 100644 index 000000000000..33195e4a466b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/flow_log_information.py @@ -0,0 +1,48 @@ +# 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 FlowLogInformation(Model): + """Information on the configuration of flow log. + + :param target_resource_id: The ID of the resource to configure for flow + logging. + :type target_resource_id: str + :param storage_id: ID of the storage account which is used to store the + flow log. + :type storage_id: str + :param enabled: Flag to enable/disable flow logging. + :type enabled: bool + :param retention_policy: + :type retention_policy: :class:`RetentionPolicyParameters + ` + """ + + _validation = { + 'target_resource_id': {'required': True}, + 'storage_id': {'required': True}, + 'enabled': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + 'storage_id': {'key': 'properties.storageId', 'type': 'str'}, + 'enabled': {'key': 'properties.enabled', 'type': 'bool'}, + 'retention_policy': {'key': 'properties.retentionPolicy', 'type': 'RetentionPolicyParameters'}, + } + + def __init__(self, target_resource_id, storage_id, enabled, retention_policy=None): + self.target_resource_id = target_resource_id + self.storage_id = storage_id + self.enabled = enabled + self.retention_policy = retention_policy diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/flow_log_status_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/flow_log_status_parameters.py new file mode 100644 index 000000000000..1dae2ff24447 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/flow_log_status_parameters.py @@ -0,0 +1,32 @@ +# 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 FlowLogStatusParameters(Model): + """Parameters that define a resource to query flow log status. + + :param target_resource_id: The target resource where getting the flow + logging status. + :type target_resource_id: str + """ + + _validation = { + 'target_resource_id': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + } + + def __init__(self, target_resource_id): + self.target_resource_id = target_resource_id diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/frontend_ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/frontend_ip_configuration.py new file mode 100644 index 000000000000..27c0d8e6d373 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/frontend_ip_configuration.py @@ -0,0 +1,97 @@ +# 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 .sub_resource import SubResource + + +class FrontendIPConfiguration(SubResource): + """Frontend IP address of the load balancer. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar inbound_nat_rules: Read only. Inbound rules URIs that use this + frontend IP. + :vartype inbound_nat_rules: list of :class:`SubResource + ` + :ivar inbound_nat_pools: Read only. Inbound pools URIs that use this + frontend IP. + :vartype inbound_nat_pools: list of :class:`SubResource + ` + :ivar outbound_nat_rules: Read only. Outbound rules URIs that use this + frontend IP. + :vartype outbound_nat_rules: list of :class:`SubResource + ` + :ivar load_balancing_rules: Gets load balancing rules URIs that use this + frontend IP. + :vartype load_balancing_rules: list of :class:`SubResource + ` + :param private_ip_address: The private IP address of the IP configuration. + :type private_ip_address: str + :param private_ip_allocation_method: The Private IP allocation method. + Possible values are: 'Static' and 'Dynamic'. Possible values include: + 'Static', 'Dynamic' + :type private_ip_allocation_method: str or :class:`IPAllocationMethod + ` + :param subnet: The reference of the subnet resource. + :type subnet: :class:`Subnet + ` + :param public_ip_address: The reference of the Public IP resource. + :type public_ip_address: :class:`PublicIPAddress + ` + :param provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'inbound_nat_rules': {'readonly': True}, + 'inbound_nat_pools': {'readonly': True}, + 'outbound_nat_rules': {'readonly': True}, + 'load_balancing_rules': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'inbound_nat_rules': {'key': 'properties.inboundNatRules', 'type': '[SubResource]'}, + 'inbound_nat_pools': {'key': 'properties.inboundNatPools', 'type': '[SubResource]'}, + 'outbound_nat_rules': {'key': 'properties.outboundNatRules', 'type': '[SubResource]'}, + 'load_balancing_rules': {'key': 'properties.loadBalancingRules', 'type': '[SubResource]'}, + 'private_ip_address': {'key': 'properties.privateIPAddress', 'type': 'str'}, + 'private_ip_allocation_method': {'key': 'properties.privateIPAllocationMethod', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'Subnet'}, + 'public_ip_address': {'key': 'properties.publicIPAddress', 'type': 'PublicIPAddress'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, id=None, private_ip_address=None, private_ip_allocation_method=None, subnet=None, public_ip_address=None, provisioning_state=None, name=None, etag=None): + super(FrontendIPConfiguration, self).__init__(id=id) + self.inbound_nat_rules = None + self.inbound_nat_pools = None + self.outbound_nat_rules = None + self.load_balancing_rules = None + self.private_ip_address = private_ip_address + self.private_ip_allocation_method = private_ip_allocation_method + self.subnet = subnet + self.public_ip_address = public_ip_address + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/frontend_ip_configuration_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/frontend_ip_configuration_paged.py new file mode 100644 index 000000000000..fd3fa9f1aefc --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/frontend_ip_configuration_paged.py @@ -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 FrontendIPConfigurationPaged(Paged): + """ + A paging container for iterating over a list of :class:`FrontendIPConfiguration ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[FrontendIPConfiguration]'} + } + + def __init__(self, *args, **kwargs): + + super(FrontendIPConfigurationPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/gateway_route.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/gateway_route.py new file mode 100644 index 000000000000..d3e0d4163c35 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/gateway_route.py @@ -0,0 +1,64 @@ +# 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 GatewayRoute(Model): + """Gateway routing details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar local_address: The gateway's local address + :vartype local_address: str + :ivar network: The route's network prefix + :vartype network: str + :ivar next_hop: The route's next hop + :vartype next_hop: str + :ivar source_peer: The peer this route was learned from + :vartype source_peer: str + :ivar origin: The source this route was learned from + :vartype origin: str + :ivar as_path: The route's AS path sequence + :vartype as_path: str + :ivar weight: The route's weight + :vartype weight: int + """ + + _validation = { + 'local_address': {'readonly': True}, + 'network': {'readonly': True}, + 'next_hop': {'readonly': True}, + 'source_peer': {'readonly': True}, + 'origin': {'readonly': True}, + 'as_path': {'readonly': True}, + 'weight': {'readonly': True}, + } + + _attribute_map = { + 'local_address': {'key': 'localAddress', 'type': 'str'}, + 'network': {'key': 'network', 'type': 'str'}, + 'next_hop': {'key': 'nextHop', 'type': 'str'}, + 'source_peer': {'key': 'sourcePeer', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'as_path': {'key': 'asPath', 'type': 'str'}, + 'weight': {'key': 'weight', 'type': 'int'}, + } + + def __init__(self): + self.local_address = None + self.network = None + self.next_hop = None + self.source_peer = None + self.origin = None + self.as_path = None + self.weight = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/gateway_route_list_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/gateway_route_list_result.py new file mode 100644 index 000000000000..3b7b6e561c46 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/gateway_route_list_result.py @@ -0,0 +1,28 @@ +# 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 GatewayRouteListResult(Model): + """List of virtual network gateway routes. + + :param value: List of gateway routes + :type value: list of :class:`GatewayRoute + ` + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[GatewayRoute]'}, + } + + def __init__(self, value=None): + self.value = value diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/inbound_nat_pool.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/inbound_nat_pool.py new file mode 100644 index 000000000000..b1cb2605cd24 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/inbound_nat_pool.py @@ -0,0 +1,76 @@ +# 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 .sub_resource import SubResource + + +class InboundNatPool(SubResource): + """Inbound NAT pool of the load balancer. + + :param id: Resource ID. + :type id: str + :param frontend_ip_configuration: A reference to frontend IP addresses. + :type frontend_ip_configuration: :class:`SubResource + ` + :param protocol: Possible values include: 'Udp', 'Tcp', 'All' + :type protocol: str or :class:`TransportProtocol + ` + :param frontend_port_range_start: The first port number in the range of + external ports that will be used to provide Inbound Nat to NICs associated + with a load balancer. Acceptable values range between 1 and 65534. + :type frontend_port_range_start: int + :param frontend_port_range_end: The last port number in the range of + external ports that will be used to provide Inbound Nat to NICs associated + with a load balancer. Acceptable values range between 1 and 65535. + :type frontend_port_range_end: int + :param backend_port: The port used for internal connections on the + endpoint. Acceptable values are between 1 and 65535. + :type backend_port: int + :param provisioning_state: Gets the provisioning state of the PublicIP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'protocol': {'required': True}, + 'frontend_port_range_start': {'required': True}, + 'frontend_port_range_end': {'required': True}, + 'backend_port': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'frontend_ip_configuration': {'key': 'properties.frontendIPConfiguration', 'type': 'SubResource'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'frontend_port_range_start': {'key': 'properties.frontendPortRangeStart', 'type': 'int'}, + 'frontend_port_range_end': {'key': 'properties.frontendPortRangeEnd', 'type': 'int'}, + 'backend_port': {'key': 'properties.backendPort', 'type': 'int'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, protocol, frontend_port_range_start, frontend_port_range_end, backend_port, id=None, frontend_ip_configuration=None, provisioning_state=None, name=None, etag=None): + super(InboundNatPool, self).__init__(id=id) + self.frontend_ip_configuration = frontend_ip_configuration + self.protocol = protocol + self.frontend_port_range_start = frontend_port_range_start + self.frontend_port_range_end = frontend_port_range_end + self.backend_port = backend_port + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/inbound_nat_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/inbound_nat_rule.py new file mode 100644 index 000000000000..3671633a55b3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/inbound_nat_rule.py @@ -0,0 +1,91 @@ +# 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 .sub_resource import SubResource + + +class InboundNatRule(SubResource): + """Inbound NAT rule of the load balancer. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param frontend_ip_configuration: A reference to frontend IP addresses. + :type frontend_ip_configuration: :class:`SubResource + ` + :ivar backend_ip_configuration: A reference to a private IP address + defined on a network interface of a VM. Traffic sent to the frontend port + of each of the frontend IP configurations is forwarded to the backend IP. + :vartype backend_ip_configuration: :class:`NetworkInterfaceIPConfiguration + ` + :param protocol: Possible values include: 'Udp', 'Tcp', 'All' + :type protocol: str or :class:`TransportProtocol + ` + :param frontend_port: The port for the external endpoint. Port numbers for + each rule must be unique within the Load Balancer. Acceptable values range + from 1 to 65534. + :type frontend_port: int + :param backend_port: The port used for the internal endpoint. Acceptable + values range from 1 to 65535. + :type backend_port: int + :param idle_timeout_in_minutes: The timeout for the TCP idle connection. + The value can be set between 4 and 30 minutes. The default value is 4 + minutes. This element is only used when the protocol is set to TCP. + :type idle_timeout_in_minutes: int + :param enable_floating_ip: Configures a virtual machine's endpoint for the + floating IP capability required to configure a SQL AlwaysOn Availability + Group. This setting is required when using the SQL AlwaysOn Availability + Groups in SQL server. This setting can't be changed after you create the + endpoint. + :type enable_floating_ip: bool + :param provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'backend_ip_configuration': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'frontend_ip_configuration': {'key': 'properties.frontendIPConfiguration', 'type': 'SubResource'}, + 'backend_ip_configuration': {'key': 'properties.backendIPConfiguration', 'type': 'NetworkInterfaceIPConfiguration'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'frontend_port': {'key': 'properties.frontendPort', 'type': 'int'}, + 'backend_port': {'key': 'properties.backendPort', 'type': 'int'}, + 'idle_timeout_in_minutes': {'key': 'properties.idleTimeoutInMinutes', 'type': 'int'}, + 'enable_floating_ip': {'key': 'properties.enableFloatingIP', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, id=None, frontend_ip_configuration=None, protocol=None, frontend_port=None, backend_port=None, idle_timeout_in_minutes=None, enable_floating_ip=None, provisioning_state=None, name=None, etag=None): + super(InboundNatRule, self).__init__(id=id) + self.frontend_ip_configuration = frontend_ip_configuration + self.backend_ip_configuration = None + self.protocol = protocol + self.frontend_port = frontend_port + self.backend_port = backend_port + self.idle_timeout_in_minutes = idle_timeout_in_minutes + self.enable_floating_ip = enable_floating_ip + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/inbound_nat_rule_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/inbound_nat_rule_paged.py new file mode 100644 index 000000000000..c5c0cdf66d39 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/inbound_nat_rule_paged.py @@ -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 InboundNatRulePaged(Paged): + """ + A paging container for iterating over a list of :class:`InboundNatRule ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[InboundNatRule]'} + } + + def __init__(self, *args, **kwargs): + + super(InboundNatRulePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/ip_address_availability_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/ip_address_availability_result.py new file mode 100644 index 000000000000..ee967ea66dcf --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/ip_address_availability_result.py @@ -0,0 +1,32 @@ +# 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 IPAddressAvailabilityResult(Model): + """Response for CheckIPAddressAvailability API service call. + + :param available: Private IP address availability. + :type available: bool + :param available_ip_addresses: Contains other available private IP + addresses if the asked for address is taken. + :type available_ip_addresses: list of str + """ + + _attribute_map = { + 'available': {'key': 'available', 'type': 'bool'}, + 'available_ip_addresses': {'key': 'availableIPAddresses', 'type': '[str]'}, + } + + def __init__(self, available=None, available_ip_addresses=None): + self.available = available + self.available_ip_addresses = available_ip_addresses diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/ip_configuration.py new file mode 100644 index 000000000000..ef79ca318fdf --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/ip_configuration.py @@ -0,0 +1,63 @@ +# 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 .sub_resource import SubResource + + +class IPConfiguration(SubResource): + """IP configuration. + + :param id: Resource ID. + :type id: str + :param private_ip_address: The private IP address of the IP configuration. + :type private_ip_address: str + :param private_ip_allocation_method: The private IP allocation method. + Possible values are 'Static' and 'Dynamic'. Possible values include: + 'Static', 'Dynamic' + :type private_ip_allocation_method: str or :class:`IPAllocationMethod + ` + :param subnet: The reference of the subnet resource. + :type subnet: :class:`Subnet + ` + :param public_ip_address: The reference of the public IP resource. + :type public_ip_address: :class:`PublicIPAddress + ` + :param provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'private_ip_address': {'key': 'properties.privateIPAddress', 'type': 'str'}, + 'private_ip_allocation_method': {'key': 'properties.privateIPAllocationMethod', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'Subnet'}, + 'public_ip_address': {'key': 'properties.publicIPAddress', 'type': 'PublicIPAddress'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, id=None, private_ip_address=None, private_ip_allocation_method=None, subnet=None, public_ip_address=None, provisioning_state=None, name=None, etag=None): + super(IPConfiguration, self).__init__(id=id) + self.private_ip_address = private_ip_address + self.private_ip_allocation_method = private_ip_allocation_method + self.subnet = subnet + self.public_ip_address = public_ip_address + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/ipsec_policy.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/ipsec_policy.py new file mode 100644 index 000000000000..9c23d9e78d0d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/ipsec_policy.py @@ -0,0 +1,86 @@ +# 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 IpsecPolicy(Model): + """An IPSec Policy configuration for a virtual network gateway connection. + + :param sa_life_time_seconds: The IPSec Security Association (also called + Quick Mode or Phase 2 SA) lifetime in seconds for a site to site VPN + tunnel. + :type sa_life_time_seconds: int + :param sa_data_size_kilobytes: The IPSec Security Association (also called + Quick Mode or Phase 2 SA) payload size in KB for a site to site VPN + tunnel. + :type sa_data_size_kilobytes: int + :param ipsec_encryption: The IPSec encryption algorithm (IKE phase 1). + Possible values include: 'None', 'DES', 'DES3', 'AES128', 'AES192', + 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256' + :type ipsec_encryption: str or :class:`IpsecEncryption + ` + :param ipsec_integrity: The IPSec integrity algorithm (IKE phase 1). + Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', + 'GCMAES192', 'GCMAES256' + :type ipsec_integrity: str or :class:`IpsecIntegrity + ` + :param ike_encryption: The IKE encryption algorithm (IKE phase 2). + Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256' + :type ike_encryption: str or :class:`IkeEncryption + ` + :param ike_integrity: The IKE integrity algorithm (IKE phase 2). Possible + values include: 'MD5', 'SHA1', 'SHA256', 'SHA384' + :type ike_integrity: str or :class:`IkeIntegrity + ` + :param dh_group: The DH Groups used in IKE Phase 1 for initial SA. + Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', + 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24' + :type dh_group: str or :class:`DhGroup + ` + :param pfs_group: The DH Groups used in IKE Phase 2 for new child SA. + Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048', 'ECP256', + 'ECP384', 'PFS24' + :type pfs_group: str or :class:`PfsGroup + ` + """ + + _validation = { + 'sa_life_time_seconds': {'required': True}, + 'sa_data_size_kilobytes': {'required': True}, + 'ipsec_encryption': {'required': True}, + 'ipsec_integrity': {'required': True}, + 'ike_encryption': {'required': True}, + 'ike_integrity': {'required': True}, + 'dh_group': {'required': True}, + 'pfs_group': {'required': True}, + } + + _attribute_map = { + 'sa_life_time_seconds': {'key': 'saLifeTimeSeconds', 'type': 'int'}, + 'sa_data_size_kilobytes': {'key': 'saDataSizeKilobytes', 'type': 'int'}, + 'ipsec_encryption': {'key': 'ipsecEncryption', 'type': 'str'}, + 'ipsec_integrity': {'key': 'ipsecIntegrity', 'type': 'str'}, + 'ike_encryption': {'key': 'ikeEncryption', 'type': 'str'}, + 'ike_integrity': {'key': 'ikeIntegrity', 'type': 'str'}, + 'dh_group': {'key': 'dhGroup', 'type': 'str'}, + 'pfs_group': {'key': 'pfsGroup', 'type': 'str'}, + } + + def __init__(self, sa_life_time_seconds, sa_data_size_kilobytes, ipsec_encryption, ipsec_integrity, ike_encryption, ike_integrity, dh_group, pfs_group): + self.sa_life_time_seconds = sa_life_time_seconds + self.sa_data_size_kilobytes = sa_data_size_kilobytes + self.ipsec_encryption = ipsec_encryption + self.ipsec_integrity = ipsec_integrity + self.ike_encryption = ike_encryption + self.ike_integrity = ike_integrity + self.dh_group = dh_group + self.pfs_group = pfs_group diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/ipv6_express_route_circuit_peering_config.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/ipv6_express_route_circuit_peering_config.py new file mode 100644 index 000000000000..1932022c7ee5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/ipv6_express_route_circuit_peering_config.py @@ -0,0 +1,47 @@ +# 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 Ipv6ExpressRouteCircuitPeeringConfig(Model): + """Contains IPv6 peering config. + + :param primary_peer_address_prefix: The primary address prefix. + :type primary_peer_address_prefix: str + :param secondary_peer_address_prefix: The secondary address prefix. + :type secondary_peer_address_prefix: str + :param microsoft_peering_config: The Microsoft peering configuration. + :type microsoft_peering_config: :class:`ExpressRouteCircuitPeeringConfig + ` + :param route_filter: The reference of the RouteFilter resource. + :type route_filter: :class:`RouteFilter + ` + :param state: The state of peering. Possible values are: 'Disabled' and + 'Enabled'. Possible values include: 'Disabled', 'Enabled' + :type state: str or :class:`ExpressRouteCircuitPeeringState + ` + """ + + _attribute_map = { + 'primary_peer_address_prefix': {'key': 'primaryPeerAddressPrefix', 'type': 'str'}, + 'secondary_peer_address_prefix': {'key': 'secondaryPeerAddressPrefix', 'type': 'str'}, + 'microsoft_peering_config': {'key': 'microsoftPeeringConfig', 'type': 'ExpressRouteCircuitPeeringConfig'}, + 'route_filter': {'key': 'routeFilter', 'type': 'RouteFilter'}, + 'state': {'key': 'state', 'type': 'str'}, + } + + def __init__(self, primary_peer_address_prefix=None, secondary_peer_address_prefix=None, microsoft_peering_config=None, route_filter=None, state=None): + self.primary_peer_address_prefix = primary_peer_address_prefix + self.secondary_peer_address_prefix = secondary_peer_address_prefix + self.microsoft_peering_config = microsoft_peering_config + self.route_filter = route_filter + self.state = state diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/load_balancer.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/load_balancer.py new file mode 100644 index 000000000000..ed22d0c45379 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/load_balancer.py @@ -0,0 +1,117 @@ +# 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 .resource import Resource + + +class LoadBalancer(Resource): + """LoadBalancer resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict + :param sku: The load balancer SKU. + :type sku: :class:`LoadBalancerSku + ` + :param frontend_ip_configurations: Object representing the frontend IPs to + be used for the load balancer + :type frontend_ip_configurations: list of :class:`FrontendIPConfiguration + ` + :param backend_address_pools: Collection of backend address pools used by + a load balancer + :type backend_address_pools: list of :class:`BackendAddressPool + ` + :param load_balancing_rules: Object collection representing the load + balancing rules Gets the provisioning + :type load_balancing_rules: list of :class:`LoadBalancingRule + ` + :param probes: Collection of probe objects used in the load balancer + :type probes: list of :class:`Probe + ` + :param inbound_nat_rules: Collection of inbound NAT Rules used by a load + balancer. Defining inbound NAT rules on your load balancer is mutually + exclusive with defining an inbound NAT pool. Inbound NAT pools are + referenced from virtual machine scale sets. NICs that are associated with + individual virtual machines cannot reference an Inbound NAT pool. They + have to reference individual inbound NAT rules. + :type inbound_nat_rules: list of :class:`InboundNatRule + ` + :param inbound_nat_pools: Defines an external port range for inbound NAT + to a single backend port on NICs associated with a load balancer. Inbound + NAT rules are created automatically for each NIC associated with the Load + Balancer using an external port from this range. Defining an Inbound NAT + pool on your Load Balancer is mutually exclusive with defining inbound Nat + rules. Inbound NAT pools are referenced from virtual machine scale sets. + NICs that are associated with individual virtual machines cannot reference + an inbound NAT pool. They have to reference individual inbound NAT rules. + :type inbound_nat_pools: list of :class:`InboundNatPool + ` + :param outbound_nat_rules: The outbound NAT rules. + :type outbound_nat_rules: list of :class:`OutboundNatRule + ` + :param resource_guid: The resource GUID property of the load balancer + resource. + :type resource_guid: str + :param provisioning_state: Gets the provisioning state of the PublicIP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'LoadBalancerSku'}, + 'frontend_ip_configurations': {'key': 'properties.frontendIPConfigurations', 'type': '[FrontendIPConfiguration]'}, + 'backend_address_pools': {'key': 'properties.backendAddressPools', 'type': '[BackendAddressPool]'}, + 'load_balancing_rules': {'key': 'properties.loadBalancingRules', 'type': '[LoadBalancingRule]'}, + 'probes': {'key': 'properties.probes', 'type': '[Probe]'}, + 'inbound_nat_rules': {'key': 'properties.inboundNatRules', 'type': '[InboundNatRule]'}, + 'inbound_nat_pools': {'key': 'properties.inboundNatPools', 'type': '[InboundNatPool]'}, + 'outbound_nat_rules': {'key': 'properties.outboundNatRules', 'type': '[OutboundNatRule]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, id=None, location=None, tags=None, sku=None, frontend_ip_configurations=None, backend_address_pools=None, load_balancing_rules=None, probes=None, inbound_nat_rules=None, inbound_nat_pools=None, outbound_nat_rules=None, resource_guid=None, provisioning_state=None, etag=None): + super(LoadBalancer, self).__init__(id=id, location=location, tags=tags) + self.sku = sku + self.frontend_ip_configurations = frontend_ip_configurations + self.backend_address_pools = backend_address_pools + self.load_balancing_rules = load_balancing_rules + self.probes = probes + self.inbound_nat_rules = inbound_nat_rules + self.inbound_nat_pools = inbound_nat_pools + self.outbound_nat_rules = outbound_nat_rules + self.resource_guid = resource_guid + self.provisioning_state = provisioning_state + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/load_balancer_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/load_balancer_paged.py new file mode 100644 index 000000000000..fec85a1a70f5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/load_balancer_paged.py @@ -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 LoadBalancerPaged(Paged): + """ + A paging container for iterating over a list of :class:`LoadBalancer ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[LoadBalancer]'} + } + + def __init__(self, *args, **kwargs): + + super(LoadBalancerPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/load_balancer_sku.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/load_balancer_sku.py new file mode 100644 index 000000000000..de375dfe987f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/load_balancer_sku.py @@ -0,0 +1,29 @@ +# 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 LoadBalancerSku(Model): + """SKU of a load balancer. + + :param name: Name of a load balancer SKU. Possible values include: + 'Basic', 'Standard' + :type name: str or :class:`LoadBalancerSkuName + ` + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, name=None): + self.name = name diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/load_balancing_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/load_balancing_rule.py new file mode 100644 index 000000000000..a5a5f79f2ce7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/load_balancing_rule.py @@ -0,0 +1,108 @@ +# 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 .sub_resource import SubResource + + +class LoadBalancingRule(SubResource): + """A load balancing rule for a load balancer. + + :param id: Resource ID. + :type id: str + :param frontend_ip_configuration: A reference to frontend IP addresses. + :type frontend_ip_configuration: :class:`SubResource + ` + :param backend_address_pool: A reference to a pool of DIPs. Inbound + traffic is randomly load balanced across IPs in the backend IPs. + :type backend_address_pool: :class:`SubResource + ` + :param probe: The reference of the load balancer probe used by the load + balancing rule. + :type probe: :class:`SubResource + ` + :param protocol: Possible values include: 'Udp', 'Tcp', 'All' + :type protocol: str or :class:`TransportProtocol + ` + :param load_distribution: The load distribution policy for this rule. + Possible values are 'Default', 'SourceIP', and 'SourceIPProtocol'. + Possible values include: 'Default', 'SourceIP', 'SourceIPProtocol' + :type load_distribution: str or :class:`LoadDistribution + ` + :param frontend_port: The port for the external endpoint. Port numbers for + each rule must be unique within the Load Balancer. Acceptable values are + between 0 and 65534. Note that value 0 enables "Any Port" + :type frontend_port: int + :param backend_port: The port used for internal connections on the + endpoint. Acceptable values are between 0 and 65535. Note that value 0 + enables "Any Port" + :type backend_port: int + :param idle_timeout_in_minutes: The timeout for the TCP idle connection. + The value can be set between 4 and 30 minutes. The default value is 4 + minutes. This element is only used when the protocol is set to TCP. + :type idle_timeout_in_minutes: int + :param enable_floating_ip: Configures a virtual machine's endpoint for the + floating IP capability required to configure a SQL AlwaysOn Availability + Group. This setting is required when using the SQL AlwaysOn Availability + Groups in SQL server. This setting can't be changed after you create the + endpoint. + :type enable_floating_ip: bool + :param disable_outbound_snat: Configures SNAT for the VMs in the backend + pool to use the publicIP address specified in the frontend of the load + balancing rule. + :type disable_outbound_snat: bool + :param provisioning_state: Gets the provisioning state of the PublicIP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'protocol': {'required': True}, + 'frontend_port': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'frontend_ip_configuration': {'key': 'properties.frontendIPConfiguration', 'type': 'SubResource'}, + 'backend_address_pool': {'key': 'properties.backendAddressPool', 'type': 'SubResource'}, + 'probe': {'key': 'properties.probe', 'type': 'SubResource'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'load_distribution': {'key': 'properties.loadDistribution', 'type': 'str'}, + 'frontend_port': {'key': 'properties.frontendPort', 'type': 'int'}, + 'backend_port': {'key': 'properties.backendPort', 'type': 'int'}, + 'idle_timeout_in_minutes': {'key': 'properties.idleTimeoutInMinutes', 'type': 'int'}, + 'enable_floating_ip': {'key': 'properties.enableFloatingIP', 'type': 'bool'}, + 'disable_outbound_snat': {'key': 'properties.disableOutboundSnat', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, protocol, frontend_port, id=None, frontend_ip_configuration=None, backend_address_pool=None, probe=None, load_distribution=None, backend_port=None, idle_timeout_in_minutes=None, enable_floating_ip=None, disable_outbound_snat=None, provisioning_state=None, name=None, etag=None): + super(LoadBalancingRule, self).__init__(id=id) + self.frontend_ip_configuration = frontend_ip_configuration + self.backend_address_pool = backend_address_pool + self.probe = probe + self.protocol = protocol + self.load_distribution = load_distribution + self.frontend_port = frontend_port + self.backend_port = backend_port + self.idle_timeout_in_minutes = idle_timeout_in_minutes + self.enable_floating_ip = enable_floating_ip + self.disable_outbound_snat = disable_outbound_snat + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/load_balancing_rule_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/load_balancing_rule_paged.py new file mode 100644 index 000000000000..c7fe0281bd8d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/load_balancing_rule_paged.py @@ -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 LoadBalancingRulePaged(Paged): + """ + A paging container for iterating over a list of :class:`LoadBalancingRule ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[LoadBalancingRule]'} + } + + def __init__(self, *args, **kwargs): + + super(LoadBalancingRulePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/local_network_gateway.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/local_network_gateway.py new file mode 100644 index 000000000000..c607c4f082d0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/local_network_gateway.py @@ -0,0 +1,78 @@ +# 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 .resource import Resource + + +class LocalNetworkGateway(Resource): + """A common class for general resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict + :param local_network_address_space: Local network site address space. + :type local_network_address_space: :class:`AddressSpace + ` + :param gateway_ip_address: IP address of local network gateway. + :type gateway_ip_address: str + :param bgp_settings: Local network gateway's BGP speaker settings. + :type bgp_settings: :class:`BgpSettings + ` + :param resource_guid: The resource GUID property of the + LocalNetworkGateway resource. + :type resource_guid: str + :ivar provisioning_state: The provisioning state of the + LocalNetworkGateway resource. Possible values are: 'Updating', 'Deleting', + and 'Failed'. + :vartype provisioning_state: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'local_network_address_space': {'key': 'properties.localNetworkAddressSpace', 'type': 'AddressSpace'}, + 'gateway_ip_address': {'key': 'properties.gatewayIpAddress', 'type': 'str'}, + 'bgp_settings': {'key': 'properties.bgpSettings', 'type': 'BgpSettings'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, id=None, location=None, tags=None, local_network_address_space=None, gateway_ip_address=None, bgp_settings=None, resource_guid=None, etag=None): + super(LocalNetworkGateway, self).__init__(id=id, location=location, tags=tags) + self.local_network_address_space = local_network_address_space + self.gateway_ip_address = gateway_ip_address + self.bgp_settings = bgp_settings + self.resource_guid = resource_guid + self.provisioning_state = None + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/local_network_gateway_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/local_network_gateway_paged.py new file mode 100644 index 000000000000..00211553ef48 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/local_network_gateway_paged.py @@ -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 LocalNetworkGatewayPaged(Paged): + """ + A paging container for iterating over a list of :class:`LocalNetworkGateway ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[LocalNetworkGateway]'} + } + + def __init__(self, *args, **kwargs): + + super(LocalNetworkGatewayPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_interface.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_interface.py new file mode 100644 index 000000000000..5f3cd92991e7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_interface.py @@ -0,0 +1,103 @@ +# 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 .resource import Resource + + +class NetworkInterface(Resource): + """A network interface in a resource group. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict + :param virtual_machine: The reference of a virtual machine. + :type virtual_machine: :class:`SubResource + ` + :param network_security_group: The reference of the NetworkSecurityGroup + resource. + :type network_security_group: :class:`NetworkSecurityGroup + ` + :param ip_configurations: A list of IPConfigurations of the network + interface. + :type ip_configurations: list of :class:`NetworkInterfaceIPConfiguration + ` + :param dns_settings: The DNS settings in network interface. + :type dns_settings: :class:`NetworkInterfaceDnsSettings + ` + :param mac_address: The MAC address of the network interface. + :type mac_address: str + :param primary: Gets whether this is a primary network interface on a + virtual machine. + :type primary: bool + :param enable_accelerated_networking: If the network interface is + accelerated networking enabled. + :type enable_accelerated_networking: bool + :param enable_ip_forwarding: Indicates whether IP forwarding is enabled on + this network interface. + :type enable_ip_forwarding: bool + :param resource_guid: The resource GUID property of the network interface + resource. + :type resource_guid: str + :param provisioning_state: The provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'virtual_machine': {'key': 'properties.virtualMachine', 'type': 'SubResource'}, + 'network_security_group': {'key': 'properties.networkSecurityGroup', 'type': 'NetworkSecurityGroup'}, + 'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[NetworkInterfaceIPConfiguration]'}, + 'dns_settings': {'key': 'properties.dnsSettings', 'type': 'NetworkInterfaceDnsSettings'}, + 'mac_address': {'key': 'properties.macAddress', 'type': 'str'}, + 'primary': {'key': 'properties.primary', 'type': 'bool'}, + 'enable_accelerated_networking': {'key': 'properties.enableAcceleratedNetworking', 'type': 'bool'}, + 'enable_ip_forwarding': {'key': 'properties.enableIPForwarding', 'type': 'bool'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, id=None, location=None, tags=None, virtual_machine=None, network_security_group=None, ip_configurations=None, dns_settings=None, mac_address=None, primary=None, enable_accelerated_networking=None, enable_ip_forwarding=None, resource_guid=None, provisioning_state=None, etag=None): + super(NetworkInterface, self).__init__(id=id, location=location, tags=tags) + self.virtual_machine = virtual_machine + self.network_security_group = network_security_group + self.ip_configurations = ip_configurations + self.dns_settings = dns_settings + self.mac_address = mac_address + self.primary = primary + self.enable_accelerated_networking = enable_accelerated_networking + self.enable_ip_forwarding = enable_ip_forwarding + self.resource_guid = resource_guid + self.provisioning_state = provisioning_state + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_interface_association.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_interface_association.py new file mode 100644 index 000000000000..b165d06ca427 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_interface_association.py @@ -0,0 +1,39 @@ +# 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 NetworkInterfaceAssociation(Model): + """Network interface and its custom security rules. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Network interface ID. + :vartype id: str + :param security_rules: Collection of custom security rules. + :type security_rules: list of :class:`SecurityRule + ` + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'security_rules': {'key': 'securityRules', 'type': '[SecurityRule]'}, + } + + def __init__(self, security_rules=None): + self.id = None + self.security_rules = security_rules diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_interface_dns_settings.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_interface_dns_settings.py new file mode 100644 index 000000000000..bcba8f132bf5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_interface_dns_settings.py @@ -0,0 +1,54 @@ +# 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 NetworkInterfaceDnsSettings(Model): + """DNS settings of a network interface. + + :param dns_servers: List of DNS servers IP addresses. Use + 'AzureProvidedDNS' to switch to azure provided DNS resolution. + 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the + only value in dnsServers collection. + :type dns_servers: list of str + :param applied_dns_servers: If the VM that uses this NIC is part of an + Availability Set, then this list will have the union of all DNS servers + from all NICs that are part of the Availability Set. This property is what + is configured on each of those VMs. + :type applied_dns_servers: list of str + :param internal_dns_name_label: Relative DNS name for this NIC used for + internal communications between VMs in the same virtual network. + :type internal_dns_name_label: str + :param internal_fqdn: Fully qualified DNS name supporting internal + communications between VMs in the same virtual network. + :type internal_fqdn: str + :param internal_domain_name_suffix: Even if internalDnsNameLabel is not + specified, a DNS entry is created for the primary NIC of the VM. This DNS + name can be constructed by concatenating the VM name with the value of + internalDomainNameSuffix. + :type internal_domain_name_suffix: str + """ + + _attribute_map = { + 'dns_servers': {'key': 'dnsServers', 'type': '[str]'}, + 'applied_dns_servers': {'key': 'appliedDnsServers', 'type': '[str]'}, + 'internal_dns_name_label': {'key': 'internalDnsNameLabel', 'type': 'str'}, + 'internal_fqdn': {'key': 'internalFqdn', 'type': 'str'}, + 'internal_domain_name_suffix': {'key': 'internalDomainNameSuffix', 'type': 'str'}, + } + + def __init__(self, dns_servers=None, applied_dns_servers=None, internal_dns_name_label=None, internal_fqdn=None, internal_domain_name_suffix=None): + self.dns_servers = dns_servers + self.applied_dns_servers = applied_dns_servers + self.internal_dns_name_label = internal_dns_name_label + self.internal_fqdn = internal_fqdn + self.internal_domain_name_suffix = internal_domain_name_suffix diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_interface_ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_interface_ip_configuration.py new file mode 100644 index 000000000000..f0610edad184 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_interface_ip_configuration.py @@ -0,0 +1,104 @@ +# 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 .sub_resource import SubResource + + +class NetworkInterfaceIPConfiguration(SubResource): + """IPConfiguration in a network interface. + + :param id: Resource ID. + :type id: str + :param application_gateway_backend_address_pools: The reference of + ApplicationGatewayBackendAddressPool resource. + :type application_gateway_backend_address_pools: list of + :class:`ApplicationGatewayBackendAddressPool + ` + :param load_balancer_backend_address_pools: The reference of + LoadBalancerBackendAddressPool resource. + :type load_balancer_backend_address_pools: list of + :class:`BackendAddressPool + ` + :param load_balancer_inbound_nat_rules: A list of references of + LoadBalancerInboundNatRules. + :type load_balancer_inbound_nat_rules: list of :class:`InboundNatRule + ` + :param private_ip_address: Private IP address of the IP configuration. + :type private_ip_address: str + :param private_ip_allocation_method: Defines how a private IP address is + assigned. Possible values are: 'Static' and 'Dynamic'. Possible values + include: 'Static', 'Dynamic' + :type private_ip_allocation_method: str or :class:`IPAllocationMethod + ` + :param private_ip_address_version: Available from Api-Version 2016-03-30 + onwards, it represents whether the specific ipconfiguration is IPv4 or + IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. + Possible values include: 'IPv4', 'IPv6' + :type private_ip_address_version: str or :class:`IPVersion + ` + :param subnet: Subnet bound to the IP configuration. + :type subnet: :class:`Subnet + ` + :param primary: Gets whether this is a primary customer address on the + network interface. + :type primary: bool + :param public_ip_address: Public IP address bound to the IP configuration. + :type public_ip_address: :class:`PublicIPAddress + ` + :param application_security_groups: Application security groups in which + the IP configuration is included. + :type application_security_groups: list of + :class:`ApplicationSecurityGroup + ` + :param provisioning_state: The provisioning state of the network interface + IP configuration. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'application_gateway_backend_address_pools': {'key': 'properties.applicationGatewayBackendAddressPools', 'type': '[ApplicationGatewayBackendAddressPool]'}, + 'load_balancer_backend_address_pools': {'key': 'properties.loadBalancerBackendAddressPools', 'type': '[BackendAddressPool]'}, + 'load_balancer_inbound_nat_rules': {'key': 'properties.loadBalancerInboundNatRules', 'type': '[InboundNatRule]'}, + 'private_ip_address': {'key': 'properties.privateIPAddress', 'type': 'str'}, + 'private_ip_allocation_method': {'key': 'properties.privateIPAllocationMethod', 'type': 'str'}, + 'private_ip_address_version': {'key': 'properties.privateIPAddressVersion', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'Subnet'}, + 'primary': {'key': 'properties.primary', 'type': 'bool'}, + 'public_ip_address': {'key': 'properties.publicIPAddress', 'type': 'PublicIPAddress'}, + 'application_security_groups': {'key': 'properties.applicationSecurityGroups', 'type': '[ApplicationSecurityGroup]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, id=None, application_gateway_backend_address_pools=None, load_balancer_backend_address_pools=None, load_balancer_inbound_nat_rules=None, private_ip_address=None, private_ip_allocation_method=None, private_ip_address_version=None, subnet=None, primary=None, public_ip_address=None, application_security_groups=None, provisioning_state=None, name=None, etag=None): + super(NetworkInterfaceIPConfiguration, self).__init__(id=id) + self.application_gateway_backend_address_pools = application_gateway_backend_address_pools + self.load_balancer_backend_address_pools = load_balancer_backend_address_pools + self.load_balancer_inbound_nat_rules = load_balancer_inbound_nat_rules + self.private_ip_address = private_ip_address + self.private_ip_allocation_method = private_ip_allocation_method + self.private_ip_address_version = private_ip_address_version + self.subnet = subnet + self.primary = primary + self.public_ip_address = public_ip_address + self.application_security_groups = application_security_groups + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_interface_ip_configuration_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_interface_ip_configuration_paged.py new file mode 100644 index 000000000000..381b73d4513a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_interface_ip_configuration_paged.py @@ -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 NetworkInterfaceIPConfigurationPaged(Paged): + """ + A paging container for iterating over a list of :class:`NetworkInterfaceIPConfiguration ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[NetworkInterfaceIPConfiguration]'} + } + + def __init__(self, *args, **kwargs): + + super(NetworkInterfaceIPConfigurationPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_interface_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_interface_paged.py new file mode 100644 index 000000000000..88791b7fd1e2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_interface_paged.py @@ -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 NetworkInterfacePaged(Paged): + """ + A paging container for iterating over a list of :class:`NetworkInterface ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[NetworkInterface]'} + } + + def __init__(self, *args, **kwargs): + + super(NetworkInterfacePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_management_client_enums.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_management_client_enums.py new file mode 100644 index 000000000000..efb1265d2875 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_management_client_enums.py @@ -0,0 +1,520 @@ +# 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 enum import Enum + + +class TransportProtocol(Enum): + + udp = "Udp" + tcp = "Tcp" + all = "All" + + +class IPAllocationMethod(Enum): + + static = "Static" + dynamic = "Dynamic" + + +class IPVersion(Enum): + + ipv4 = "IPv4" + ipv6 = "IPv6" + + +class SecurityRuleProtocol(Enum): + + tcp = "Tcp" + udp = "Udp" + asterisk = "*" + + +class SecurityRuleAccess(Enum): + + allow = "Allow" + deny = "Deny" + + +class SecurityRuleDirection(Enum): + + inbound = "Inbound" + outbound = "Outbound" + + +class RouteNextHopType(Enum): + + virtual_network_gateway = "VirtualNetworkGateway" + vnet_local = "VnetLocal" + internet = "Internet" + virtual_appliance = "VirtualAppliance" + none = "None" + + +class PublicIPAddressSkuName(Enum): + + basic = "Basic" + standard = "Standard" + + +class ApplicationGatewayProtocol(Enum): + + http = "Http" + https = "Https" + + +class ApplicationGatewayCookieBasedAffinity(Enum): + + enabled = "Enabled" + disabled = "Disabled" + + +class ApplicationGatewayBackendHealthServerHealth(Enum): + + unknown = "Unknown" + up = "Up" + down = "Down" + partial = "Partial" + draining = "Draining" + + +class ApplicationGatewaySkuName(Enum): + + standard_small = "Standard_Small" + standard_medium = "Standard_Medium" + standard_large = "Standard_Large" + waf_medium = "WAF_Medium" + waf_large = "WAF_Large" + + +class ApplicationGatewayTier(Enum): + + standard = "Standard" + waf = "WAF" + + +class ApplicationGatewaySslProtocol(Enum): + + tl_sv1_0 = "TLSv1_0" + tl_sv1_1 = "TLSv1_1" + tl_sv1_2 = "TLSv1_2" + + +class ApplicationGatewaySslPolicyType(Enum): + + predefined = "Predefined" + custom = "Custom" + + +class ApplicationGatewaySslPolicyName(Enum): + + app_gw_ssl_policy20150501 = "AppGwSslPolicy20150501" + app_gw_ssl_policy20170401 = "AppGwSslPolicy20170401" + app_gw_ssl_policy20170401_s = "AppGwSslPolicy20170401S" + + +class ApplicationGatewaySslCipherSuite(Enum): + + tls_ecdhe_rsa_with_aes_256_cbc_sha384 = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384" + tls_ecdhe_rsa_with_aes_128_cbc_sha256 = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256" + tls_ecdhe_rsa_with_aes_256_cbc_sha = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" + tls_ecdhe_rsa_with_aes_128_cbc_sha = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" + tls_dhe_rsa_with_aes_256_gcm_sha384 = "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384" + tls_dhe_rsa_with_aes_128_gcm_sha256 = "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" + tls_dhe_rsa_with_aes_256_cbc_sha = "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" + tls_dhe_rsa_with_aes_128_cbc_sha = "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" + tls_rsa_with_aes_256_gcm_sha384 = "TLS_RSA_WITH_AES_256_GCM_SHA384" + tls_rsa_with_aes_128_gcm_sha256 = "TLS_RSA_WITH_AES_128_GCM_SHA256" + tls_rsa_with_aes_256_cbc_sha256 = "TLS_RSA_WITH_AES_256_CBC_SHA256" + tls_rsa_with_aes_128_cbc_sha256 = "TLS_RSA_WITH_AES_128_CBC_SHA256" + tls_rsa_with_aes_256_cbc_sha = "TLS_RSA_WITH_AES_256_CBC_SHA" + tls_rsa_with_aes_128_cbc_sha = "TLS_RSA_WITH_AES_128_CBC_SHA" + tls_ecdhe_ecdsa_with_aes_256_gcm_sha384 = "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" + tls_ecdhe_ecdsa_with_aes_128_gcm_sha256 = "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" + tls_ecdhe_ecdsa_with_aes_256_cbc_sha384 = "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384" + tls_ecdhe_ecdsa_with_aes_128_cbc_sha256 = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256" + tls_ecdhe_ecdsa_with_aes_256_cbc_sha = "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" + tls_ecdhe_ecdsa_with_aes_128_cbc_sha = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" + tls_dhe_dss_with_aes_256_cbc_sha256 = "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256" + tls_dhe_dss_with_aes_128_cbc_sha256 = "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256" + tls_dhe_dss_with_aes_256_cbc_sha = "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" + tls_dhe_dss_with_aes_128_cbc_sha = "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" + tls_rsa_with_3_des_ede_cbc_sha = "TLS_RSA_WITH_3DES_EDE_CBC_SHA" + + +class ApplicationGatewayRequestRoutingRuleType(Enum): + + basic = "Basic" + path_based_routing = "PathBasedRouting" + + +class ApplicationGatewayRedirectType(Enum): + + permanent = "Permanent" + found = "Found" + see_other = "SeeOther" + temporary = "Temporary" + + +class ApplicationGatewayOperationalState(Enum): + + stopped = "Stopped" + starting = "Starting" + running = "Running" + stopping = "Stopping" + + +class ApplicationGatewayFirewallMode(Enum): + + detection = "Detection" + prevention = "Prevention" + + +class AuthorizationUseStatus(Enum): + + available = "Available" + in_use = "InUse" + + +class ExpressRouteCircuitPeeringAdvertisedPublicPrefixState(Enum): + + not_configured = "NotConfigured" + configuring = "Configuring" + configured = "Configured" + validation_needed = "ValidationNeeded" + + +class Access(Enum): + + allow = "Allow" + deny = "Deny" + + +class ExpressRouteCircuitPeeringType(Enum): + + azure_public_peering = "AzurePublicPeering" + azure_private_peering = "AzurePrivatePeering" + microsoft_peering = "MicrosoftPeering" + + +class ExpressRouteCircuitPeeringState(Enum): + + disabled = "Disabled" + enabled = "Enabled" + + +class ExpressRouteCircuitSkuTier(Enum): + + standard = "Standard" + premium = "Premium" + + +class ExpressRouteCircuitSkuFamily(Enum): + + unlimited_data = "UnlimitedData" + metered_data = "MeteredData" + + +class ServiceProviderProvisioningState(Enum): + + not_provisioned = "NotProvisioned" + provisioning = "Provisioning" + provisioned = "Provisioned" + deprovisioning = "Deprovisioning" + + +class LoadBalancerSkuName(Enum): + + basic = "Basic" + standard = "Standard" + + +class LoadDistribution(Enum): + + default = "Default" + source_ip = "SourceIP" + source_ip_protocol = "SourceIPProtocol" + + +class ProbeProtocol(Enum): + + http = "Http" + tcp = "Tcp" + + +class NetworkOperationStatus(Enum): + + in_progress = "InProgress" + succeeded = "Succeeded" + failed = "Failed" + + +class EffectiveSecurityRuleProtocol(Enum): + + tcp = "Tcp" + udp = "Udp" + all = "All" + + +class EffectiveRouteSource(Enum): + + unknown = "Unknown" + user = "User" + virtual_network_gateway = "VirtualNetworkGateway" + default = "Default" + + +class EffectiveRouteState(Enum): + + active = "Active" + invalid = "Invalid" + + +class ProvisioningState(Enum): + + succeeded = "Succeeded" + updating = "Updating" + deleting = "Deleting" + failed = "Failed" + + +class AssociationType(Enum): + + associated = "Associated" + contains = "Contains" + + +class Direction(Enum): + + inbound = "Inbound" + outbound = "Outbound" + + +class Protocol(Enum): + + tcp = "TCP" + udp = "UDP" + + +class NextHopType(Enum): + + internet = "Internet" + virtual_appliance = "VirtualAppliance" + virtual_network_gateway = "VirtualNetworkGateway" + vnet_local = "VnetLocal" + hyper_net_gateway = "HyperNetGateway" + none = "None" + + +class PcProtocol(Enum): + + tcp = "TCP" + udp = "UDP" + any = "Any" + + +class PcStatus(Enum): + + not_started = "NotStarted" + running = "Running" + stopped = "Stopped" + error = "Error" + unknown = "Unknown" + + +class PcError(Enum): + + internal_error = "InternalError" + agent_stopped = "AgentStopped" + capture_failed = "CaptureFailed" + local_file_failed = "LocalFileFailed" + storage_failed = "StorageFailed" + + +class Origin(Enum): + + local = "Local" + inbound = "Inbound" + outbound = "Outbound" + + +class Severity(Enum): + + error = "Error" + warning = "Warning" + + +class IssueType(Enum): + + unknown = "Unknown" + agent_stopped = "AgentStopped" + guest_firewall = "GuestFirewall" + dns_resolution = "DnsResolution" + socket_bind = "SocketBind" + network_security_rule = "NetworkSecurityRule" + user_defined_route = "UserDefinedRoute" + port_throttled = "PortThrottled" + platform = "Platform" + + +class ConnectionStatus(Enum): + + unknown = "Unknown" + connected = "Connected" + disconnected = "Disconnected" + degraded = "Degraded" + + +class VirtualNetworkPeeringState(Enum): + + initiated = "Initiated" + connected = "Connected" + disconnected = "Disconnected" + + +class VirtualNetworkGatewayType(Enum): + + vpn = "Vpn" + express_route = "ExpressRoute" + + +class VpnType(Enum): + + policy_based = "PolicyBased" + route_based = "RouteBased" + + +class VirtualNetworkGatewaySkuName(Enum): + + basic = "Basic" + high_performance = "HighPerformance" + standard = "Standard" + ultra_performance = "UltraPerformance" + vpn_gw1 = "VpnGw1" + vpn_gw2 = "VpnGw2" + vpn_gw3 = "VpnGw3" + + +class VirtualNetworkGatewaySkuTier(Enum): + + basic = "Basic" + high_performance = "HighPerformance" + standard = "Standard" + ultra_performance = "UltraPerformance" + vpn_gw1 = "VpnGw1" + vpn_gw2 = "VpnGw2" + vpn_gw3 = "VpnGw3" + + +class VpnClientProtocol(Enum): + + ike_v2 = "IkeV2" + sstp = "SSTP" + + +class BgpPeerState(Enum): + + unknown = "Unknown" + stopped = "Stopped" + idle = "Idle" + connecting = "Connecting" + connected = "Connected" + + +class ProcessorArchitecture(Enum): + + amd64 = "Amd64" + x86 = "X86" + + +class AuthenticationMethod(Enum): + + eaptls = "EAPTLS" + eapmscha_pv2 = "EAPMSCHAPv2" + + +class VirtualNetworkGatewayConnectionStatus(Enum): + + unknown = "Unknown" + connecting = "Connecting" + connected = "Connected" + not_connected = "NotConnected" + + +class VirtualNetworkGatewayConnectionType(Enum): + + ipsec = "IPsec" + vnet2_vnet = "Vnet2Vnet" + express_route = "ExpressRoute" + vpn_client = "VPNClient" + + +class IpsecEncryption(Enum): + + none = "None" + des = "DES" + des3 = "DES3" + aes128 = "AES128" + aes192 = "AES192" + aes256 = "AES256" + gcmaes128 = "GCMAES128" + gcmaes192 = "GCMAES192" + gcmaes256 = "GCMAES256" + + +class IpsecIntegrity(Enum): + + md5 = "MD5" + sha1 = "SHA1" + sha256 = "SHA256" + gcmaes128 = "GCMAES128" + gcmaes192 = "GCMAES192" + gcmaes256 = "GCMAES256" + + +class IkeEncryption(Enum): + + des = "DES" + des3 = "DES3" + aes128 = "AES128" + aes192 = "AES192" + aes256 = "AES256" + + +class IkeIntegrity(Enum): + + md5 = "MD5" + sha1 = "SHA1" + sha256 = "SHA256" + sha384 = "SHA384" + + +class DhGroup(Enum): + + none = "None" + dh_group1 = "DHGroup1" + dh_group2 = "DHGroup2" + dh_group14 = "DHGroup14" + dh_group2048 = "DHGroup2048" + ecp256 = "ECP256" + ecp384 = "ECP384" + dh_group24 = "DHGroup24" + + +class PfsGroup(Enum): + + none = "None" + pfs1 = "PFS1" + pfs2 = "PFS2" + pfs2048 = "PFS2048" + ecp256 = "ECP256" + ecp384 = "ECP384" + pfs24 = "PFS24" diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_security_group.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_security_group.py new file mode 100644 index 000000000000..9ab9726e3042 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_security_group.py @@ -0,0 +1,87 @@ +# 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 .resource import Resource + + +class NetworkSecurityGroup(Resource): + """NetworkSecurityGroup resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict + :param security_rules: A collection of security rules of the network + security group. + :type security_rules: list of :class:`SecurityRule + ` + :param default_security_rules: The default security rules of network + security group. + :type default_security_rules: list of :class:`SecurityRule + ` + :ivar network_interfaces: A collection of references to network + interfaces. + :vartype network_interfaces: list of :class:`NetworkInterface + ` + :ivar subnets: A collection of references to subnets. + :vartype subnets: list of :class:`Subnet + ` + :param resource_guid: The resource GUID property of the network security + group resource. + :type resource_guid: str + :param provisioning_state: The provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'network_interfaces': {'readonly': True}, + 'subnets': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'security_rules': {'key': 'properties.securityRules', 'type': '[SecurityRule]'}, + 'default_security_rules': {'key': 'properties.defaultSecurityRules', 'type': '[SecurityRule]'}, + 'network_interfaces': {'key': 'properties.networkInterfaces', 'type': '[NetworkInterface]'}, + 'subnets': {'key': 'properties.subnets', 'type': '[Subnet]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, id=None, location=None, tags=None, security_rules=None, default_security_rules=None, resource_guid=None, provisioning_state=None, etag=None): + super(NetworkSecurityGroup, self).__init__(id=id, location=location, tags=tags) + self.security_rules = security_rules + self.default_security_rules = default_security_rules + self.network_interfaces = None + self.subnets = None + self.resource_guid = resource_guid + self.provisioning_state = provisioning_state + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_security_group_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_security_group_paged.py new file mode 100644 index 000000000000..f73dfb49ca27 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_security_group_paged.py @@ -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 NetworkSecurityGroupPaged(Paged): + """ + A paging container for iterating over a list of :class:`NetworkSecurityGroup ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[NetworkSecurityGroup]'} + } + + def __init__(self, *args, **kwargs): + + super(NetworkSecurityGroupPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_watcher.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_watcher.py new file mode 100644 index 000000000000..35d3438c33b4 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_watcher.py @@ -0,0 +1,59 @@ +# 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 .resource import Resource + + +class NetworkWatcher(Resource): + """Network watcher in a resource group. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :ivar provisioning_state: The provisioning state of the resource. Possible + values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :vartype provisioning_state: str or :class:`ProvisioningState + ` + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, id=None, location=None, tags=None, etag=None): + super(NetworkWatcher, self).__init__(id=id, location=location, tags=tags) + self.etag = etag + self.provisioning_state = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_watcher_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_watcher_paged.py new file mode 100644 index 000000000000..fa116614c4dd --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/network_watcher_paged.py @@ -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 NetworkWatcherPaged(Paged): + """ + A paging container for iterating over a list of :class:`NetworkWatcher ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[NetworkWatcher]'} + } + + def __init__(self, *args, **kwargs): + + super(NetworkWatcherPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/next_hop_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/next_hop_parameters.py new file mode 100644 index 000000000000..f38a8ce62abb --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/next_hop_parameters.py @@ -0,0 +1,48 @@ +# 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 NextHopParameters(Model): + """Parameters that define the source and destination endpoint. + + :param target_resource_id: The resource identifier of the target resource + against which the action is to be performed. + :type target_resource_id: str + :param source_ip_address: The source IP address. + :type source_ip_address: str + :param destination_ip_address: The destination IP address. + :type destination_ip_address: str + :param target_nic_resource_id: The NIC ID. (If VM has multiple NICs and IP + forwarding is enabled on any of the nics, then this parameter must be + specified. Otherwise optional). + :type target_nic_resource_id: str + """ + + _validation = { + 'target_resource_id': {'required': True}, + 'source_ip_address': {'required': True}, + 'destination_ip_address': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + 'source_ip_address': {'key': 'sourceIPAddress', 'type': 'str'}, + 'destination_ip_address': {'key': 'destinationIPAddress', 'type': 'str'}, + 'target_nic_resource_id': {'key': 'targetNicResourceId', 'type': 'str'}, + } + + def __init__(self, target_resource_id, source_ip_address, destination_ip_address, target_nic_resource_id=None): + self.target_resource_id = target_resource_id + self.source_ip_address = source_ip_address + self.destination_ip_address = destination_ip_address + self.target_nic_resource_id = target_nic_resource_id diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/next_hop_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/next_hop_result.py new file mode 100644 index 000000000000..11f5a07886bb --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/next_hop_result.py @@ -0,0 +1,41 @@ +# 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 NextHopResult(Model): + """The information about next hop from the specified VM. + + :param next_hop_type: Next hop type. Possible values include: 'Internet', + 'VirtualAppliance', 'VirtualNetworkGateway', 'VnetLocal', + 'HyperNetGateway', 'None' + :type next_hop_type: str or :class:`NextHopType + ` + :param next_hop_ip_address: Next hop IP Address + :type next_hop_ip_address: str + :param route_table_id: The resource identifier for the route table + associated with the route being returned. If the route being returned does + not correspond to any user created routes then this field will be the + string 'System Route'. + :type route_table_id: str + """ + + _attribute_map = { + 'next_hop_type': {'key': 'nextHopType', 'type': 'str'}, + 'next_hop_ip_address': {'key': 'nextHopIpAddress', 'type': 'str'}, + 'route_table_id': {'key': 'routeTableId', 'type': 'str'}, + } + + def __init__(self, next_hop_type=None, next_hop_ip_address=None, route_table_id=None): + self.next_hop_type = next_hop_type + self.next_hop_ip_address = next_hop_ip_address + self.route_table_id = route_table_id diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/outbound_nat_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/outbound_nat_rule.py new file mode 100644 index 000000000000..db248e6d8dd1 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/outbound_nat_rule.py @@ -0,0 +1,63 @@ +# 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 .sub_resource import SubResource + + +class OutboundNatRule(SubResource): + """Outbound NAT pool of the load balancer. + + :param id: Resource ID. + :type id: str + :param allocated_outbound_ports: The number of outbound ports to be used + for NAT. + :type allocated_outbound_ports: int + :param frontend_ip_configurations: The Frontend IP addresses of the load + balancer. + :type frontend_ip_configurations: list of :class:`SubResource + ` + :param backend_address_pool: A reference to a pool of DIPs. Outbound + traffic is randomly load balanced across IPs in the backend IPs. + :type backend_address_pool: :class:`SubResource + ` + :param provisioning_state: Gets the provisioning state of the PublicIP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'backend_address_pool': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'allocated_outbound_ports': {'key': 'properties.allocatedOutboundPorts', 'type': 'int'}, + 'frontend_ip_configurations': {'key': 'properties.frontendIPConfigurations', 'type': '[SubResource]'}, + 'backend_address_pool': {'key': 'properties.backendAddressPool', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, backend_address_pool, id=None, allocated_outbound_ports=None, frontend_ip_configurations=None, provisioning_state=None, name=None, etag=None): + super(OutboundNatRule, self).__init__(id=id) + self.allocated_outbound_ports = allocated_outbound_ports + self.frontend_ip_configurations = frontend_ip_configurations + self.backend_address_pool = backend_address_pool + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/packet_capture.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/packet_capture.py new file mode 100644 index 000000000000..ac2c86f99aa5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/packet_capture.py @@ -0,0 +1,58 @@ +# 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 PacketCapture(Model): + """Parameters that define the create packet capture operation. + + :param target: The ID of the targeted resource, only VM is currently + supported. + :type target: str + :param bytes_to_capture_per_packet: Number of bytes captured per packet, + the remaining bytes are truncated. Default value: 0 . + :type bytes_to_capture_per_packet: int + :param total_bytes_per_session: Maximum size of the capture output. + Default value: 1073741824 . + :type total_bytes_per_session: int + :param time_limit_in_seconds: Maximum duration of the capture session in + seconds. Default value: 18000 . + :type time_limit_in_seconds: int + :param storage_location: + :type storage_location: :class:`PacketCaptureStorageLocation + ` + :param filters: + :type filters: list of :class:`PacketCaptureFilter + ` + """ + + _validation = { + 'target': {'required': True}, + 'storage_location': {'required': True}, + } + + _attribute_map = { + 'target': {'key': 'properties.target', 'type': 'str'}, + 'bytes_to_capture_per_packet': {'key': 'properties.bytesToCapturePerPacket', 'type': 'int'}, + 'total_bytes_per_session': {'key': 'properties.totalBytesPerSession', 'type': 'int'}, + 'time_limit_in_seconds': {'key': 'properties.timeLimitInSeconds', 'type': 'int'}, + 'storage_location': {'key': 'properties.storageLocation', 'type': 'PacketCaptureStorageLocation'}, + 'filters': {'key': 'properties.filters', 'type': '[PacketCaptureFilter]'}, + } + + def __init__(self, target, storage_location, bytes_to_capture_per_packet=0, total_bytes_per_session=1073741824, time_limit_in_seconds=18000, filters=None): + self.target = target + self.bytes_to_capture_per_packet = bytes_to_capture_per_packet + self.total_bytes_per_session = total_bytes_per_session + self.time_limit_in_seconds = time_limit_in_seconds + self.storage_location = storage_location + self.filters = filters diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/packet_capture_filter.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/packet_capture_filter.py new file mode 100644 index 000000000000..d0646c1e7c4d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/packet_capture_filter.py @@ -0,0 +1,60 @@ +# 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 PacketCaptureFilter(Model): + """Filter that is applied to packet capture request. Multiple filters can be + applied. + + :param protocol: Protocol to be filtered on. Possible values include: + 'TCP', 'UDP', 'Any'. Default value: "Any" . + :type protocol: str or :class:`PcProtocol + ` + :param local_ip_address: Local IP Address to be filtered on. Notation: + "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. + "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently + supported. Mixing ranges with multiple entries not currently supported. + Default = null. + :type local_ip_address: str + :param remote_ip_address: Local IP Address to be filtered on. Notation: + "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. + "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently + supported. Mixing ranges with multiple entries not currently supported. + Default = null. + :type remote_ip_address: str + :param local_port: Local port to be filtered on. Notation: "80" for single + port entry."80-85" for range. "80;443;" for multiple entries. Multiple + ranges not currently supported. Mixing ranges with multiple entries not + currently supported. Default = null. + :type local_port: str + :param remote_port: Remote port to be filtered on. Notation: "80" for + single port entry."80-85" for range. "80;443;" for multiple entries. + Multiple ranges not currently supported. Mixing ranges with multiple + entries not currently supported. Default = null. + :type remote_port: str + """ + + _attribute_map = { + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'local_ip_address': {'key': 'localIPAddress', 'type': 'str'}, + 'remote_ip_address': {'key': 'remoteIPAddress', 'type': 'str'}, + 'local_port': {'key': 'localPort', 'type': 'str'}, + 'remote_port': {'key': 'remotePort', 'type': 'str'}, + } + + def __init__(self, protocol="Any", local_ip_address=None, remote_ip_address=None, local_port=None, remote_port=None): + self.protocol = protocol + self.local_ip_address = local_ip_address + self.remote_ip_address = remote_ip_address + self.local_port = local_port + self.remote_port = remote_port diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/packet_capture_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/packet_capture_parameters.py new file mode 100644 index 000000000000..1e706bcf367e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/packet_capture_parameters.py @@ -0,0 +1,58 @@ +# 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 PacketCaptureParameters(Model): + """Parameters that define the create packet capture operation. + + :param target: The ID of the targeted resource, only VM is currently + supported. + :type target: str + :param bytes_to_capture_per_packet: Number of bytes captured per packet, + the remaining bytes are truncated. Default value: 0 . + :type bytes_to_capture_per_packet: int + :param total_bytes_per_session: Maximum size of the capture output. + Default value: 1073741824 . + :type total_bytes_per_session: int + :param time_limit_in_seconds: Maximum duration of the capture session in + seconds. Default value: 18000 . + :type time_limit_in_seconds: int + :param storage_location: + :type storage_location: :class:`PacketCaptureStorageLocation + ` + :param filters: + :type filters: list of :class:`PacketCaptureFilter + ` + """ + + _validation = { + 'target': {'required': True}, + 'storage_location': {'required': True}, + } + + _attribute_map = { + 'target': {'key': 'target', 'type': 'str'}, + 'bytes_to_capture_per_packet': {'key': 'bytesToCapturePerPacket', 'type': 'int'}, + 'total_bytes_per_session': {'key': 'totalBytesPerSession', 'type': 'int'}, + 'time_limit_in_seconds': {'key': 'timeLimitInSeconds', 'type': 'int'}, + 'storage_location': {'key': 'storageLocation', 'type': 'PacketCaptureStorageLocation'}, + 'filters': {'key': 'filters', 'type': '[PacketCaptureFilter]'}, + } + + def __init__(self, target, storage_location, bytes_to_capture_per_packet=0, total_bytes_per_session=1073741824, time_limit_in_seconds=18000, filters=None): + self.target = target + self.bytes_to_capture_per_packet = bytes_to_capture_per_packet + self.total_bytes_per_session = total_bytes_per_session + self.time_limit_in_seconds = time_limit_in_seconds + self.storage_location = storage_location + self.filters = filters diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/packet_capture_query_status_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/packet_capture_query_status_result.py new file mode 100644 index 000000000000..15558e6d2a80 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/packet_capture_query_status_result.py @@ -0,0 +1,52 @@ +# 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 PacketCaptureQueryStatusResult(Model): + """Status of packet capture session. + + :param name: The name of the packet capture resource. + :type name: str + :param id: The ID of the packet capture resource. + :type id: str + :param capture_start_time: The start time of the packet capture session. + :type capture_start_time: datetime + :param packet_capture_status: The status of the packet capture session. + Possible values include: 'NotStarted', 'Running', 'Stopped', 'Error', + 'Unknown' + :type packet_capture_status: str or :class:`PcStatus + ` + :param stop_reason: The reason the current packet capture session was + stopped. + :type stop_reason: str + :param packet_capture_error: List of errors of packet capture session. + :type packet_capture_error: list of str or :class:`PcError + ` + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'capture_start_time': {'key': 'captureStartTime', 'type': 'iso-8601'}, + 'packet_capture_status': {'key': 'packetCaptureStatus', 'type': 'str'}, + 'stop_reason': {'key': 'stopReason', 'type': 'str'}, + 'packet_capture_error': {'key': 'packetCaptureError', 'type': '[str]'}, + } + + def __init__(self, name=None, id=None, capture_start_time=None, packet_capture_status=None, stop_reason=None, packet_capture_error=None): + self.name = name + self.id = id + self.capture_start_time = capture_start_time + self.packet_capture_status = packet_capture_status + self.stop_reason = stop_reason + self.packet_capture_error = packet_capture_error diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/packet_capture_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/packet_capture_result.py new file mode 100644 index 000000000000..ce609e87d45d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/packet_capture_result.py @@ -0,0 +1,83 @@ +# 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 PacketCaptureResult(Model): + """Information about packet capture session. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: Name of the packet capture session. + :vartype name: str + :ivar id: ID of the packet capture operation. + :vartype id: str + :param etag: Default value: "A unique read-only string that changes + whenever the resource is updated." . + :type etag: str + :param target: The ID of the targeted resource, only VM is currently + supported. + :type target: str + :param bytes_to_capture_per_packet: Number of bytes captured per packet, + the remaining bytes are truncated. Default value: 0 . + :type bytes_to_capture_per_packet: int + :param total_bytes_per_session: Maximum size of the capture output. + Default value: 1073741824 . + :type total_bytes_per_session: int + :param time_limit_in_seconds: Maximum duration of the capture session in + seconds. Default value: 18000 . + :type time_limit_in_seconds: int + :param storage_location: + :type storage_location: :class:`PacketCaptureStorageLocation + ` + :param filters: + :type filters: list of :class:`PacketCaptureFilter + ` + :param provisioning_state: The provisioning state of the packet capture + session. Possible values include: 'Succeeded', 'Updating', 'Deleting', + 'Failed' + :type provisioning_state: str or :class:`ProvisioningState + ` + """ + + _validation = { + 'name': {'readonly': True}, + 'id': {'readonly': True}, + 'target': {'required': True}, + 'storage_location': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'target': {'key': 'properties.target', 'type': 'str'}, + 'bytes_to_capture_per_packet': {'key': 'properties.bytesToCapturePerPacket', 'type': 'int'}, + 'total_bytes_per_session': {'key': 'properties.totalBytesPerSession', 'type': 'int'}, + 'time_limit_in_seconds': {'key': 'properties.timeLimitInSeconds', 'type': 'int'}, + 'storage_location': {'key': 'properties.storageLocation', 'type': 'PacketCaptureStorageLocation'}, + 'filters': {'key': 'properties.filters', 'type': '[PacketCaptureFilter]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, target, storage_location, etag="A unique read-only string that changes whenever the resource is updated.", bytes_to_capture_per_packet=0, total_bytes_per_session=1073741824, time_limit_in_seconds=18000, filters=None, provisioning_state=None): + self.name = None + self.id = None + self.etag = etag + self.target = target + self.bytes_to_capture_per_packet = bytes_to_capture_per_packet + self.total_bytes_per_session = total_bytes_per_session + self.time_limit_in_seconds = time_limit_in_seconds + self.storage_location = storage_location + self.filters = filters + self.provisioning_state = provisioning_state diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/packet_capture_result_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/packet_capture_result_paged.py new file mode 100644 index 000000000000..67750a3184fd --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/packet_capture_result_paged.py @@ -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 PacketCaptureResultPaged(Paged): + """ + A paging container for iterating over a list of :class:`PacketCaptureResult ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[PacketCaptureResult]'} + } + + def __init__(self, *args, **kwargs): + + super(PacketCaptureResultPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/packet_capture_storage_location.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/packet_capture_storage_location.py new file mode 100644 index 000000000000..d0987d11ff9f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/packet_capture_storage_location.py @@ -0,0 +1,41 @@ +# 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 PacketCaptureStorageLocation(Model): + """Describes the storage location for a packet capture session. + + :param storage_id: The ID of the storage account to save the packet + capture session. Required if no local file path is provided. + :type storage_id: str + :param storage_path: The URI of the storage path to save the packet + capture. Must be a well-formed URI describing the location to save the + packet capture. + :type storage_path: str + :param file_path: A valid local path on the targeting VM. Must include the + name of the capture file (*.cap). For linux virtual machine it must start + with /var/captures. Required if no storage ID is provided, otherwise + optional. + :type file_path: str + """ + + _attribute_map = { + 'storage_id': {'key': 'storageId', 'type': 'str'}, + 'storage_path': {'key': 'storagePath', 'type': 'str'}, + 'file_path': {'key': 'filePath', 'type': 'str'}, + } + + def __init__(self, storage_id=None, storage_path=None, file_path=None): + self.storage_id = storage_id + self.storage_path = storage_path + self.file_path = file_path diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/patch_route_filter.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/patch_route_filter.py new file mode 100644 index 000000000000..d051f82745f6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/patch_route_filter.py @@ -0,0 +1,72 @@ +# 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 .sub_resource import SubResource + + +class PatchRouteFilter(SubResource): + """Route Filter Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param rules: Collection of RouteFilterRules contained within a route + filter. + :type rules: list of :class:`RouteFilterRule + ` + :param peerings: A collection of references to express route circuit + peerings. + :type peerings: list of :class:`ExpressRouteCircuitPeering + ` + :ivar provisioning_state: The provisioning state of the resource. Possible + values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. + :vartype provisioning_state: str + :ivar name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + :ivar type: Resource type. + :vartype type: str + :param tags: Resource tags. + :type tags: dict + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'name': {'readonly': True}, + 'etag': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'rules': {'key': 'properties.rules', 'type': '[RouteFilterRule]'}, + 'peerings': {'key': 'properties.peerings', 'type': '[ExpressRouteCircuitPeering]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, id=None, rules=None, peerings=None, tags=None): + super(PatchRouteFilter, self).__init__(id=id) + self.rules = rules + self.peerings = peerings + self.provisioning_state = None + self.name = None + self.etag = None + self.type = None + self.tags = tags diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/patch_route_filter_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/patch_route_filter_rule.py new file mode 100644 index 000000000000..7c15a9ee1152 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/patch_route_filter_rule.py @@ -0,0 +1,75 @@ +# 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 .sub_resource import SubResource + + +class PatchRouteFilterRule(SubResource): + """Route Filter Rule Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param access: The access type of the rule. Valid values are: 'Allow', + 'Deny'. Possible values include: 'Allow', 'Deny' + :type access: str or :class:`Access + ` + :ivar route_filter_rule_type: The rule type of the rule. Valid value is: + 'Community'. Default value: "Community" . + :vartype route_filter_rule_type: str + :param communities: The collection for bgp community values to filter on. + e.g. ['12076:5010','12076:5020'] + :type communities: list of str + :ivar provisioning_state: The provisioning state of the resource. Possible + values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. + :vartype provisioning_state: str + :ivar name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + :param tags: Resource tags. + :type tags: dict + """ + + _validation = { + 'access': {'required': True}, + 'route_filter_rule_type': {'required': True, 'constant': True}, + 'communities': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'name': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'access': {'key': 'properties.access', 'type': 'str'}, + 'route_filter_rule_type': {'key': 'properties.routeFilterRuleType', 'type': 'str'}, + 'communities': {'key': 'properties.communities', 'type': '[str]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + route_filter_rule_type = "Community" + + def __init__(self, access, communities, id=None, tags=None): + super(PatchRouteFilterRule, self).__init__(id=id) + self.access = access + self.communities = communities + self.provisioning_state = None + self.name = None + self.etag = None + self.tags = tags diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/probe.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/probe.py new file mode 100644 index 000000000000..179348ebca4e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/probe.py @@ -0,0 +1,91 @@ +# 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 .sub_resource import SubResource + + +class Probe(SubResource): + """A load balancer probe. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar load_balancing_rules: The load balancer rules that use this probe. + :vartype load_balancing_rules: list of :class:`SubResource + ` + :param protocol: The protocol of the end point. Possible values are: + 'Http' or 'Tcp'. If 'Tcp' is specified, a received ACK is required for the + probe to be successful. If 'Http' is specified, a 200 OK response from the + specifies URI is required for the probe to be successful. Possible values + include: 'Http', 'Tcp' + :type protocol: str or :class:`ProbeProtocol + ` + :param port: The port for communicating the probe. Possible values range + from 1 to 65535, inclusive. + :type port: int + :param interval_in_seconds: The interval, in seconds, for how frequently + to probe the endpoint for health status. Typically, the interval is + slightly less than half the allocated timeout period (in seconds) which + allows two full probes before taking the instance out of rotation. The + default value is 15, the minimum value is 5. + :type interval_in_seconds: int + :param number_of_probes: The number of probes where if no response, will + result in stopping further traffic from being delivered to the endpoint. + This values allows endpoints to be taken out of rotation faster or slower + than the typical times used in Azure. + :type number_of_probes: int + :param request_path: The URI used for requesting health status from the + VM. Path is required if a protocol is set to http. Otherwise, it is not + allowed. There is no default value. + :type request_path: str + :param provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'load_balancing_rules': {'readonly': True}, + 'protocol': {'required': True}, + 'port': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'load_balancing_rules': {'key': 'properties.loadBalancingRules', 'type': '[SubResource]'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'port': {'key': 'properties.port', 'type': 'int'}, + 'interval_in_seconds': {'key': 'properties.intervalInSeconds', 'type': 'int'}, + 'number_of_probes': {'key': 'properties.numberOfProbes', 'type': 'int'}, + 'request_path': {'key': 'properties.requestPath', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, protocol, port, id=None, interval_in_seconds=None, number_of_probes=None, request_path=None, provisioning_state=None, name=None, etag=None): + super(Probe, self).__init__(id=id) + self.load_balancing_rules = None + self.protocol = protocol + self.port = port + self.interval_in_seconds = interval_in_seconds + self.number_of_probes = number_of_probes + self.request_path = request_path + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/probe_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/probe_paged.py new file mode 100644 index 000000000000..68d75def3ac4 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/probe_paged.py @@ -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 ProbePaged(Paged): + """ + A paging container for iterating over a list of :class:`Probe ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Probe]'} + } + + def __init__(self, *args, **kwargs): + + super(ProbePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/public_ip_address.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/public_ip_address.py new file mode 100644 index 000000000000..be0390e6c0f7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/public_ip_address.py @@ -0,0 +1,102 @@ +# 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 .resource import Resource + + +class PublicIPAddress(Resource): + """Public IP address resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict + :param sku: The public IP address SKU. + :type sku: :class:`PublicIPAddressSku + ` + :param public_ip_allocation_method: The public IP allocation method. + Possible values are: 'Static' and 'Dynamic'. Possible values include: + 'Static', 'Dynamic' + :type public_ip_allocation_method: str or :class:`IPAllocationMethod + ` + :param public_ip_address_version: The public IP address version. Possible + values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6' + :type public_ip_address_version: str or :class:`IPVersion + ` + :ivar ip_configuration: The IP configuration associated with the public IP + address. + :vartype ip_configuration: :class:`IPConfiguration + ` + :param dns_settings: The FQDN of the DNS record associated with the public + IP address. + :type dns_settings: :class:`PublicIPAddressDnsSettings + ` + :param ip_address: The IP address associated with the public IP address + resource. + :type ip_address: str + :param idle_timeout_in_minutes: The idle timeout of the public IP address. + :type idle_timeout_in_minutes: int + :param resource_guid: The resource GUID property of the public IP + resource. + :type resource_guid: str + :param provisioning_state: The provisioning state of the PublicIP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'ip_configuration': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'PublicIPAddressSku'}, + 'public_ip_allocation_method': {'key': 'properties.publicIPAllocationMethod', 'type': 'str'}, + 'public_ip_address_version': {'key': 'properties.publicIPAddressVersion', 'type': 'str'}, + 'ip_configuration': {'key': 'properties.ipConfiguration', 'type': 'IPConfiguration'}, + 'dns_settings': {'key': 'properties.dnsSettings', 'type': 'PublicIPAddressDnsSettings'}, + 'ip_address': {'key': 'properties.ipAddress', 'type': 'str'}, + 'idle_timeout_in_minutes': {'key': 'properties.idleTimeoutInMinutes', 'type': 'int'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, id=None, location=None, tags=None, sku=None, public_ip_allocation_method=None, public_ip_address_version=None, dns_settings=None, ip_address=None, idle_timeout_in_minutes=None, resource_guid=None, provisioning_state=None, etag=None): + super(PublicIPAddress, self).__init__(id=id, location=location, tags=tags) + self.sku = sku + self.public_ip_allocation_method = public_ip_allocation_method + self.public_ip_address_version = public_ip_address_version + self.ip_configuration = None + self.dns_settings = dns_settings + self.ip_address = ip_address + self.idle_timeout_in_minutes = idle_timeout_in_minutes + self.resource_guid = resource_guid + self.provisioning_state = provisioning_state + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/public_ip_address_dns_settings.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/public_ip_address_dns_settings.py new file mode 100644 index 000000000000..65a534407848 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/public_ip_address_dns_settings.py @@ -0,0 +1,44 @@ +# 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 PublicIPAddressDnsSettings(Model): + """Contains FQDN of the DNS record associated with the public IP address. + + :param domain_name_label: Gets or sets the Domain name label.The + concatenation of the domain name label and the regionalized DNS zone make + up the fully qualified domain name associated with the public IP address. + If a domain name label is specified, an A DNS record is created for the + public IP in the Microsoft Azure DNS system. + :type domain_name_label: str + :param fqdn: Gets the FQDN, Fully qualified domain name of the A DNS + record associated with the public IP. This is the concatenation of the + domainNameLabel and the regionalized DNS zone. + :type fqdn: str + :param reverse_fqdn: Gets or Sets the Reverse FQDN. A user-visible, fully + qualified domain name that resolves to this public IP address. If the + reverseFqdn is specified, then a PTR DNS record is created pointing from + the IP address in the in-addr.arpa domain to the reverse FQDN. + :type reverse_fqdn: str + """ + + _attribute_map = { + 'domain_name_label': {'key': 'domainNameLabel', 'type': 'str'}, + 'fqdn': {'key': 'fqdn', 'type': 'str'}, + 'reverse_fqdn': {'key': 'reverseFqdn', 'type': 'str'}, + } + + def __init__(self, domain_name_label=None, fqdn=None, reverse_fqdn=None): + self.domain_name_label = domain_name_label + self.fqdn = fqdn + self.reverse_fqdn = reverse_fqdn diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/public_ip_address_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/public_ip_address_paged.py new file mode 100644 index 000000000000..892b054be215 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/public_ip_address_paged.py @@ -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 PublicIPAddressPaged(Paged): + """ + A paging container for iterating over a list of :class:`PublicIPAddress ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[PublicIPAddress]'} + } + + def __init__(self, *args, **kwargs): + + super(PublicIPAddressPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/public_ip_address_sku.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/public_ip_address_sku.py new file mode 100644 index 000000000000..cdfab1a74361 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/public_ip_address_sku.py @@ -0,0 +1,29 @@ +# 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 PublicIPAddressSku(Model): + """SKU of a public IP address. + + :param name: Name of a public IP address SKU. Possible values include: + 'Basic', 'Standard' + :type name: str or :class:`PublicIPAddressSkuName + ` + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, name=None): + self.name = name diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/query_troubleshooting_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/query_troubleshooting_parameters.py new file mode 100644 index 000000000000..a394b181fcc5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/query_troubleshooting_parameters.py @@ -0,0 +1,32 @@ +# 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 QueryTroubleshootingParameters(Model): + """Parameters that define the resource to query the troubleshooting result. + + :param target_resource_id: The target resource ID to query the + troubleshooting result. + :type target_resource_id: str + """ + + _validation = { + 'target_resource_id': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + } + + def __init__(self, target_resource_id): + self.target_resource_id = target_resource_id diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/resource.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/resource.py new file mode 100644 index 000000000000..0f0b2f02f123 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/resource.py @@ -0,0 +1,51 @@ +# 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 Resource(Model): + """Common resource representation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, id=None, location=None, tags=None): + self.id = id + self.name = None + self.type = None + self.location = location + self.tags = tags diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/resource_navigation_link.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/resource_navigation_link.py new file mode 100644 index 000000000000..9b4484be654a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/resource_navigation_link.py @@ -0,0 +1,58 @@ +# 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 .sub_resource import SubResource + + +class ResourceNavigationLink(SubResource): + """ResourceNavigationLink resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param linked_resource_type: Resource type of the linked resource. + :type linked_resource_type: str + :param link: Link to the external resource + :type link: str + :ivar provisioning_state: Provisioning state of the ResourceNavigationLink + resource. + :vartype provisioning_state: str + :param name: Name of the resource that is unique within a resource group. + This name can be used to access the resource. + :type name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'linked_resource_type': {'key': 'properties.linkedResourceType', 'type': 'str'}, + 'link': {'key': 'properties.link', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, id=None, linked_resource_type=None, link=None, name=None): + super(ResourceNavigationLink, self).__init__(id=id) + self.linked_resource_type = linked_resource_type + self.link = link + self.provisioning_state = None + self.name = name + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/retention_policy_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/retention_policy_parameters.py new file mode 100644 index 000000000000..58f7f12cc6a9 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/retention_policy_parameters.py @@ -0,0 +1,31 @@ +# 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 RetentionPolicyParameters(Model): + """Parameters that define the retention policy for flow log. + + :param days: Number of days to retain flow log records. Default value: 0 . + :type days: int + :param enabled: Flag to enable/disable retention. Default value: False . + :type enabled: bool + """ + + _attribute_map = { + 'days': {'key': 'days', 'type': 'int'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + } + + def __init__(self, days=0, enabled=False): + self.days = days + self.enabled = enabled diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/route.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/route.py new file mode 100644 index 000000000000..b38d3831918d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/route.py @@ -0,0 +1,65 @@ +# 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 .sub_resource import SubResource + + +class Route(SubResource): + """Route resource. + + :param id: Resource ID. + :type id: str + :param address_prefix: The destination CIDR to which the route applies. + :type address_prefix: str + :param next_hop_type: The type of Azure hop the packet should be sent to. + Possible values are: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', + 'VirtualAppliance', and 'None'. Possible values include: + 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', + 'None' + :type next_hop_type: str or :class:`RouteNextHopType + ` + :param next_hop_ip_address: The IP address packets should be forwarded to. + Next hop values are only allowed in routes where the next hop type is + VirtualAppliance. + :type next_hop_ip_address: str + :param provisioning_state: The provisioning state of the resource. + Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'next_hop_type': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'address_prefix': {'key': 'properties.addressPrefix', 'type': 'str'}, + 'next_hop_type': {'key': 'properties.nextHopType', 'type': 'str'}, + 'next_hop_ip_address': {'key': 'properties.nextHopIpAddress', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, next_hop_type, id=None, address_prefix=None, next_hop_ip_address=None, provisioning_state=None, name=None, etag=None): + super(Route, self).__init__(id=id) + self.address_prefix = address_prefix + self.next_hop_type = next_hop_type + self.next_hop_ip_address = next_hop_ip_address + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/route_filter.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/route_filter.py new file mode 100644 index 000000000000..22462b1222a0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/route_filter.py @@ -0,0 +1,71 @@ +# 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 .resource import Resource + + +class RouteFilter(Resource): + """Route Filter Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict + :param rules: Collection of RouteFilterRules contained within a route + filter. + :type rules: list of :class:`RouteFilterRule + ` + :param peerings: A collection of references to express route circuit + peerings. + :type peerings: list of :class:`ExpressRouteCircuitPeering + ` + :ivar provisioning_state: The provisioning state of the resource. Possible + values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. + :vartype provisioning_state: str + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'rules': {'key': 'properties.rules', 'type': '[RouteFilterRule]'}, + 'peerings': {'key': 'properties.peerings', 'type': '[ExpressRouteCircuitPeering]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, id=None, location=None, tags=None, rules=None, peerings=None): + super(RouteFilter, self).__init__(id=id, location=location, tags=tags) + self.rules = rules + self.peerings = peerings + self.provisioning_state = None + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/route_filter_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/route_filter_paged.py new file mode 100644 index 000000000000..bd28b24dac87 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/route_filter_paged.py @@ -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 RouteFilterPaged(Paged): + """ + A paging container for iterating over a list of :class:`RouteFilter ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[RouteFilter]'} + } + + def __init__(self, *args, **kwargs): + + super(RouteFilterPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/route_filter_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/route_filter_rule.py new file mode 100644 index 000000000000..b7a654ca5306 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/route_filter_rule.py @@ -0,0 +1,78 @@ +# 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 .sub_resource import SubResource + + +class RouteFilterRule(SubResource): + """Route Filter Rule Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param access: The access type of the rule. Valid values are: 'Allow', + 'Deny'. Possible values include: 'Allow', 'Deny' + :type access: str or :class:`Access + ` + :ivar route_filter_rule_type: The rule type of the rule. Valid value is: + 'Community'. Default value: "Community" . + :vartype route_filter_rule_type: str + :param communities: The collection for bgp community values to filter on. + e.g. ['12076:5010','12076:5020'] + :type communities: list of str + :ivar provisioning_state: The provisioning state of the resource. Possible + values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param location: Resource location. + :type location: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + :param tags: Resource tags. + :type tags: dict + """ + + _validation = { + 'access': {'required': True}, + 'route_filter_rule_type': {'required': True, 'constant': True}, + 'communities': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'access': {'key': 'properties.access', 'type': 'str'}, + 'route_filter_rule_type': {'key': 'properties.routeFilterRuleType', 'type': 'str'}, + 'communities': {'key': 'properties.communities', 'type': '[str]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + route_filter_rule_type = "Community" + + def __init__(self, access, communities, id=None, name=None, location=None, tags=None): + super(RouteFilterRule, self).__init__(id=id) + self.access = access + self.communities = communities + self.provisioning_state = None + self.name = name + self.location = location + self.etag = None + self.tags = tags diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/route_filter_rule_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/route_filter_rule_paged.py new file mode 100644 index 000000000000..8c740c06a1e2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/route_filter_rule_paged.py @@ -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 RouteFilterRulePaged(Paged): + """ + A paging container for iterating over a list of :class:`RouteFilterRule ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[RouteFilterRule]'} + } + + def __init__(self, *args, **kwargs): + + super(RouteFilterRulePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/route_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/route_paged.py new file mode 100644 index 000000000000..4c1ee2c63ada --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/route_paged.py @@ -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 RoutePaged(Paged): + """ + A paging container for iterating over a list of :class:`Route ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Route]'} + } + + def __init__(self, *args, **kwargs): + + super(RoutePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/route_table.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/route_table.py new file mode 100644 index 000000000000..8c207691f781 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/route_table.py @@ -0,0 +1,68 @@ +# 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 .resource import Resource + + +class RouteTable(Resource): + """Route table resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict + :param routes: Collection of routes contained within a route table. + :type routes: list of :class:`Route + ` + :ivar subnets: A collection of references to subnets. + :vartype subnets: list of :class:`Subnet + ` + :param provisioning_state: The provisioning state of the resource. + Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param etag: Gets a unique read-only string that changes whenever the + resource is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'subnets': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'routes': {'key': 'properties.routes', 'type': '[Route]'}, + 'subnets': {'key': 'properties.subnets', 'type': '[Subnet]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, id=None, location=None, tags=None, routes=None, provisioning_state=None, etag=None): + super(RouteTable, self).__init__(id=id, location=location, tags=tags) + self.routes = routes + self.subnets = None + self.provisioning_state = provisioning_state + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/route_table_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/route_table_paged.py new file mode 100644 index 000000000000..6bd51fab88ef --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/route_table_paged.py @@ -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 RouteTablePaged(Paged): + """ + A paging container for iterating over a list of :class:`RouteTable ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[RouteTable]'} + } + + def __init__(self, *args, **kwargs): + + super(RouteTablePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/security_group_network_interface.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/security_group_network_interface.py new file mode 100644 index 000000000000..42a93cfa8fa8 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/security_group_network_interface.py @@ -0,0 +1,32 @@ +# 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 SecurityGroupNetworkInterface(Model): + """Network interface and all its associated security rules. + + :param id: ID of the network interface. + :type id: str + :param security_rule_associations: + :type security_rule_associations: :class:`SecurityRuleAssociations + ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'security_rule_associations': {'key': 'securityRuleAssociations', 'type': 'SecurityRuleAssociations'}, + } + + def __init__(self, id=None, security_rule_associations=None): + self.id = id + self.security_rule_associations = security_rule_associations diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/security_group_view_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/security_group_view_parameters.py new file mode 100644 index 000000000000..304908dd4792 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/security_group_view_parameters.py @@ -0,0 +1,31 @@ +# 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 SecurityGroupViewParameters(Model): + """Parameters that define the VM to check security groups for. + + :param target_resource_id: ID of the target VM. + :type target_resource_id: str + """ + + _validation = { + 'target_resource_id': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + } + + def __init__(self, target_resource_id): + self.target_resource_id = target_resource_id diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/security_group_view_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/security_group_view_result.py new file mode 100644 index 000000000000..93abf00dfc0e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/security_group_view_result.py @@ -0,0 +1,28 @@ +# 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 SecurityGroupViewResult(Model): + """The information about security rules applied to the specified VM. + + :param network_interfaces: List of network interfaces on the specified VM. + :type network_interfaces: list of :class:`SecurityGroupNetworkInterface + ` + """ + + _attribute_map = { + 'network_interfaces': {'key': 'networkInterfaces', 'type': '[SecurityGroupNetworkInterface]'}, + } + + def __init__(self, network_interfaces=None): + self.network_interfaces = network_interfaces diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/security_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/security_rule.py new file mode 100644 index 000000000000..915c80479c4f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/security_rule.py @@ -0,0 +1,137 @@ +# 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 .sub_resource import SubResource + + +class SecurityRule(SubResource): + """Network security rule. + + :param id: Resource ID. + :type id: str + :param description: A description for this rule. Restricted to 140 chars. + :type description: str + :param protocol: Network protocol this rule applies to. Possible values + are 'Tcp', 'Udp', and '*'. Possible values include: 'Tcp', 'Udp', '*' + :type protocol: str or :class:`SecurityRuleProtocol + ` + :param source_port_range: The source port or range. Integer or range + between 0 and 65535. Asterix '*' can also be used to match all ports. + :type source_port_range: str + :param destination_port_range: The destination port or range. Integer or + range between 0 and 65535. Asterix '*' can also be used to match all + ports. + :type destination_port_range: str + :param source_address_prefix: The CIDR or source IP range. Asterix '*' can + also be used to match all source IPs. Default tags such as + 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If + this is an ingress rule, specifies where network traffic originates from. + :type source_address_prefix: str + :param source_address_prefixes: The CIDR or source IP ranges. + :type source_address_prefixes: list of str + :param source_application_security_groups: The application security group + specified as source. + :type source_application_security_groups: list of + :class:`ApplicationSecurityGroup + ` + :param destination_address_prefix: The destination address prefix. CIDR or + destination IP range. Asterix '*' can also be used to match all source + IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and + 'Internet' can also be used. + :type destination_address_prefix: str + :param destination_address_prefixes: The destination address prefixes. + CIDR or destination IP ranges. + :type destination_address_prefixes: list of str + :param destination_application_security_groups: The application security + group specified as destination. + :type destination_application_security_groups: list of + :class:`ApplicationSecurityGroup + ` + :param source_port_ranges: The source port ranges. + :type source_port_ranges: list of str + :param destination_port_ranges: The destination port ranges. + :type destination_port_ranges: list of str + :param access: The network traffic is allowed or denied. Possible values + are: 'Allow' and 'Deny'. Possible values include: 'Allow', 'Deny' + :type access: str or :class:`SecurityRuleAccess + ` + :param priority: The priority of the rule. The value can be between 100 + and 4096. The priority number must be unique for each rule in the + collection. The lower the priority number, the higher the priority of the + rule. + :type priority: int + :param direction: The direction of the rule. The direction specifies if + rule will be evaluated on incoming or outcoming traffic. Possible values + are: 'Inbound' and 'Outbound'. Possible values include: 'Inbound', + 'Outbound' + :type direction: str or :class:`SecurityRuleDirection + ` + :param provisioning_state: The provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'protocol': {'required': True}, + 'source_address_prefix': {'required': True}, + 'destination_address_prefix': {'required': True}, + 'access': {'required': True}, + 'direction': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'source_port_range': {'key': 'properties.sourcePortRange', 'type': 'str'}, + 'destination_port_range': {'key': 'properties.destinationPortRange', 'type': 'str'}, + 'source_address_prefix': {'key': 'properties.sourceAddressPrefix', 'type': 'str'}, + 'source_address_prefixes': {'key': 'properties.sourceAddressPrefixes', 'type': '[str]'}, + 'source_application_security_groups': {'key': 'properties.sourceApplicationSecurityGroups', 'type': '[ApplicationSecurityGroup]'}, + 'destination_address_prefix': {'key': 'properties.destinationAddressPrefix', 'type': 'str'}, + 'destination_address_prefixes': {'key': 'properties.destinationAddressPrefixes', 'type': '[str]'}, + 'destination_application_security_groups': {'key': 'properties.destinationApplicationSecurityGroups', 'type': '[ApplicationSecurityGroup]'}, + 'source_port_ranges': {'key': 'properties.sourcePortRanges', 'type': '[str]'}, + 'destination_port_ranges': {'key': 'properties.destinationPortRanges', 'type': '[str]'}, + 'access': {'key': 'properties.access', 'type': 'str'}, + 'priority': {'key': 'properties.priority', 'type': 'int'}, + 'direction': {'key': 'properties.direction', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, protocol, source_address_prefix, destination_address_prefix, access, direction, id=None, description=None, source_port_range=None, destination_port_range=None, source_address_prefixes=None, source_application_security_groups=None, destination_address_prefixes=None, destination_application_security_groups=None, source_port_ranges=None, destination_port_ranges=None, priority=None, provisioning_state=None, name=None, etag=None): + super(SecurityRule, self).__init__(id=id) + self.description = description + self.protocol = protocol + self.source_port_range = source_port_range + self.destination_port_range = destination_port_range + self.source_address_prefix = source_address_prefix + self.source_address_prefixes = source_address_prefixes + self.source_application_security_groups = source_application_security_groups + self.destination_address_prefix = destination_address_prefix + self.destination_address_prefixes = destination_address_prefixes + self.destination_application_security_groups = destination_application_security_groups + self.source_port_ranges = source_port_ranges + self.destination_port_ranges = destination_port_ranges + self.access = access + self.priority = priority + self.direction = direction + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/security_rule_associations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/security_rule_associations.py new file mode 100644 index 000000000000..2cd5ec8b07ca --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/security_rule_associations.py @@ -0,0 +1,45 @@ +# 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 SecurityRuleAssociations(Model): + """All security rules associated with the network interface. + + :param network_interface_association: + :type network_interface_association: :class:`NetworkInterfaceAssociation + ` + :param subnet_association: + :type subnet_association: :class:`SubnetAssociation + ` + :param default_security_rules: Collection of default security rules of the + network security group. + :type default_security_rules: list of :class:`SecurityRule + ` + :param effective_security_rules: Collection of effective security rules. + :type effective_security_rules: list of + :class:`EffectiveNetworkSecurityRule + ` + """ + + _attribute_map = { + 'network_interface_association': {'key': 'networkInterfaceAssociation', 'type': 'NetworkInterfaceAssociation'}, + 'subnet_association': {'key': 'subnetAssociation', 'type': 'SubnetAssociation'}, + 'default_security_rules': {'key': 'defaultSecurityRules', 'type': '[SecurityRule]'}, + 'effective_security_rules': {'key': 'effectiveSecurityRules', 'type': '[EffectiveNetworkSecurityRule]'}, + } + + def __init__(self, network_interface_association=None, subnet_association=None, default_security_rules=None, effective_security_rules=None): + self.network_interface_association = network_interface_association + self.subnet_association = subnet_association + self.default_security_rules = default_security_rules + self.effective_security_rules = effective_security_rules diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/security_rule_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/security_rule_paged.py new file mode 100644 index 000000000000..1bece791f0c2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/security_rule_paged.py @@ -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 SecurityRulePaged(Paged): + """ + A paging container for iterating over a list of :class:`SecurityRule ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[SecurityRule]'} + } + + def __init__(self, *args, **kwargs): + + super(SecurityRulePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/service_endpoint_properties_format.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/service_endpoint_properties_format.py new file mode 100644 index 000000000000..8677cdf300be --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/service_endpoint_properties_format.py @@ -0,0 +1,35 @@ +# 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 ServiceEndpointPropertiesFormat(Model): + """The service endpoint properties. + + :param service: The type of the endpoint service. + :type service: str + :param locations: A list of locations. + :type locations: list of str + :param provisioning_state: The provisioning state of the resource. + :type provisioning_state: str + """ + + _attribute_map = { + 'service': {'key': 'service', 'type': 'str'}, + 'locations': {'key': 'locations', 'type': '[str]'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, service=None, locations=None, provisioning_state=None): + self.service = service + self.locations = locations + self.provisioning_state = provisioning_state diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/sub_resource.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/sub_resource.py new file mode 100644 index 000000000000..b23dc42afd0e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/sub_resource.py @@ -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.serialization import Model + + +class SubResource(Model): + """Reference to another subresource. + + :param id: Resource ID. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, id=None): + self.id = id diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/subnet.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/subnet.py new file mode 100644 index 000000000000..d9fbd32ee477 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/subnet.py @@ -0,0 +1,80 @@ +# 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 .sub_resource import SubResource + + +class Subnet(SubResource): + """Subnet in a virtual network resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param address_prefix: The address prefix for the subnet. + :type address_prefix: str + :param network_security_group: The reference of the NetworkSecurityGroup + resource. + :type network_security_group: :class:`NetworkSecurityGroup + ` + :param route_table: The reference of the RouteTable resource. + :type route_table: :class:`RouteTable + ` + :param service_endpoints: An array of service endpoints. + :type service_endpoints: list of :class:`ServiceEndpointPropertiesFormat + ` + :ivar ip_configurations: Gets an array of references to the network + interface IP configurations using subnet. + :vartype ip_configurations: list of :class:`IPConfiguration + ` + :param resource_navigation_links: Gets an array of references to the + external resources using subnet. + :type resource_navigation_links: list of :class:`ResourceNavigationLink + ` + :param provisioning_state: The provisioning state of the resource. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'ip_configurations': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'address_prefix': {'key': 'properties.addressPrefix', 'type': 'str'}, + 'network_security_group': {'key': 'properties.networkSecurityGroup', 'type': 'NetworkSecurityGroup'}, + 'route_table': {'key': 'properties.routeTable', 'type': 'RouteTable'}, + 'service_endpoints': {'key': 'properties.serviceEndpoints', 'type': '[ServiceEndpointPropertiesFormat]'}, + 'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[IPConfiguration]'}, + 'resource_navigation_links': {'key': 'properties.resourceNavigationLinks', 'type': '[ResourceNavigationLink]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, id=None, address_prefix=None, network_security_group=None, route_table=None, service_endpoints=None, resource_navigation_links=None, provisioning_state=None, name=None, etag=None): + super(Subnet, self).__init__(id=id) + self.address_prefix = address_prefix + self.network_security_group = network_security_group + self.route_table = route_table + self.service_endpoints = service_endpoints + self.ip_configurations = None + self.resource_navigation_links = resource_navigation_links + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/subnet_association.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/subnet_association.py new file mode 100644 index 000000000000..e5bdce5409f1 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/subnet_association.py @@ -0,0 +1,39 @@ +# 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 SubnetAssociation(Model): + """Network interface and its custom security rules. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Subnet ID. + :vartype id: str + :param security_rules: Collection of custom security rules. + :type security_rules: list of :class:`SecurityRule + ` + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'security_rules': {'key': 'securityRules', 'type': '[SecurityRule]'}, + } + + def __init__(self, security_rules=None): + self.id = None + self.security_rules = security_rules diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/subnet_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/subnet_paged.py new file mode 100644 index 000000000000..2b587346abae --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/subnet_paged.py @@ -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 SubnetPaged(Paged): + """ + A paging container for iterating over a list of :class:`Subnet ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Subnet]'} + } + + def __init__(self, *args, **kwargs): + + super(SubnetPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/topology.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/topology.py new file mode 100644 index 000000000000..4293d4ed456c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/topology.py @@ -0,0 +1,50 @@ +# 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 Topology(Model): + """Topology of the specified resource group. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: GUID representing the operation id. + :vartype id: str + :ivar created_date_time: The datetime when the topology was initially + created for the resource group. + :vartype created_date_time: datetime + :ivar last_modified: The datetime when the topology was last modified. + :vartype last_modified: datetime + :param resources: + :type resources: list of :class:`TopologyResource + ` + """ + + _validation = { + 'id': {'readonly': True}, + 'created_date_time': {'readonly': True}, + 'last_modified': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, + 'resources': {'key': 'resources', 'type': '[TopologyResource]'}, + } + + def __init__(self, resources=None): + self.id = None + self.created_date_time = None + self.last_modified = None + self.resources = resources diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/topology_association.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/topology_association.py new file mode 100644 index 000000000000..dc9d8ad021a9 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/topology_association.py @@ -0,0 +1,39 @@ +# 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 TopologyAssociation(Model): + """Resources that have an association with the parent resource. + + :param name: The name of the resource that is associated with the parent + resource. + :type name: str + :param resource_id: The ID of the resource that is associated with the + parent resource. + :type resource_id: str + :param association_type: The association type of the child resource to the + parent resource. Possible values include: 'Associated', 'Contains' + :type association_type: str or :class:`AssociationType + ` + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'association_type': {'key': 'associationType', 'type': 'str'}, + } + + def __init__(self, name=None, resource_id=None, association_type=None): + self.name = name + self.resource_id = resource_id + self.association_type = association_type diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/topology_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/topology_parameters.py new file mode 100644 index 000000000000..c2f674cad7fc --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/topology_parameters.py @@ -0,0 +1,32 @@ +# 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 TopologyParameters(Model): + """Parameters that define the representation of topology. + + :param target_resource_group_name: The name of the target resource group + to perform topology on. + :type target_resource_group_name: str + """ + + _validation = { + 'target_resource_group_name': {'required': True}, + } + + _attribute_map = { + 'target_resource_group_name': {'key': 'targetResourceGroupName', 'type': 'str'}, + } + + def __init__(self, target_resource_group_name): + self.target_resource_group_name = target_resource_group_name diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/topology_resource.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/topology_resource.py new file mode 100644 index 000000000000..914f86bc86ca --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/topology_resource.py @@ -0,0 +1,41 @@ +# 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 TopologyResource(Model): + """The network resource topology information for the given resource group. + + :param name: Name of the resource. + :type name: str + :param id: ID of the resource. + :type id: str + :param location: Resource location. + :type location: str + :param associations: Holds the associations the resource has with other + resources in the resource group. + :type associations: list of :class:`TopologyAssociation + ` + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'associations': {'key': 'associations', 'type': '[TopologyAssociation]'}, + } + + def __init__(self, name=None, id=None, location=None, associations=None): + self.name = name + self.id = id + self.location = location + self.associations = associations diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/troubleshooting_details.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/troubleshooting_details.py new file mode 100644 index 000000000000..55ea562888e4 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/troubleshooting_details.py @@ -0,0 +1,45 @@ +# 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 TroubleshootingDetails(Model): + """Information gained from troubleshooting of specified resource. + + :param id: The id of the get troubleshoot operation. + :type id: str + :param reason_type: Reason type of failure. + :type reason_type: str + :param summary: A summary of troubleshooting. + :type summary: str + :param detail: Details on troubleshooting results. + :type detail: str + :param recommended_actions: List of recommended actions. + :type recommended_actions: list of + :class:`TroubleshootingRecommendedActions + ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'reason_type': {'key': 'reasonType', 'type': 'str'}, + 'summary': {'key': 'summary', 'type': 'str'}, + 'detail': {'key': 'detail', 'type': 'str'}, + 'recommended_actions': {'key': 'recommendedActions', 'type': '[TroubleshootingRecommendedActions]'}, + } + + def __init__(self, id=None, reason_type=None, summary=None, detail=None, recommended_actions=None): + self.id = id + self.reason_type = reason_type + self.summary = summary + self.detail = detail + self.recommended_actions = recommended_actions diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/troubleshooting_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/troubleshooting_parameters.py new file mode 100644 index 000000000000..d6bd7ebe04e6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/troubleshooting_parameters.py @@ -0,0 +1,43 @@ +# 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 TroubleshootingParameters(Model): + """Parameters that define the resource to troubleshoot. + + :param target_resource_id: The target resource to troubleshoot. + :type target_resource_id: str + :param storage_id: The ID for the storage account to save the troubleshoot + result. + :type storage_id: str + :param storage_path: The path to the blob to save the troubleshoot result + in. + :type storage_path: str + """ + + _validation = { + 'target_resource_id': {'required': True}, + 'storage_id': {'required': True}, + 'storage_path': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + 'storage_id': {'key': 'properties.storageId', 'type': 'str'}, + 'storage_path': {'key': 'properties.storagePath', 'type': 'str'}, + } + + def __init__(self, target_resource_id, storage_id, storage_path): + self.target_resource_id = target_resource_id + self.storage_id = storage_id + self.storage_path = storage_path diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/troubleshooting_recommended_actions.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/troubleshooting_recommended_actions.py new file mode 100644 index 000000000000..479eb32b8fa8 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/troubleshooting_recommended_actions.py @@ -0,0 +1,41 @@ +# 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 TroubleshootingRecommendedActions(Model): + """Recommended actions based on discovered issues. + + :param action_id: ID of the recommended action. + :type action_id: str + :param action_text: Description of recommended actions. + :type action_text: str + :param action_uri: The uri linking to a documentation for the recommended + troubleshooting actions. + :type action_uri: str + :param action_uri_text: The information from the URI for the recommended + troubleshooting actions. + :type action_uri_text: str + """ + + _attribute_map = { + 'action_id': {'key': 'actionId', 'type': 'str'}, + 'action_text': {'key': 'actionText', 'type': 'str'}, + 'action_uri': {'key': 'actionUri', 'type': 'str'}, + 'action_uri_text': {'key': 'actionUriText', 'type': 'str'}, + } + + def __init__(self, action_id=None, action_text=None, action_uri=None, action_uri_text=None): + self.action_id = action_id + self.action_text = action_text + self.action_uri = action_uri + self.action_uri_text = action_uri_text diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/troubleshooting_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/troubleshooting_result.py new file mode 100644 index 000000000000..dce91bdfd1f0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/troubleshooting_result.py @@ -0,0 +1,40 @@ +# 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 TroubleshootingResult(Model): + """Troubleshooting information gained from specified resource. + + :param start_time: The start time of the troubleshooting. + :type start_time: datetime + :param end_time: The end time of the troubleshooting. + :type end_time: datetime + :param code: The result code of the troubleshooting. + :type code: str + :param results: Information from troubleshooting. + :type results: list of :class:`TroubleshootingDetails + ` + """ + + _attribute_map = { + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'code': {'key': 'code', 'type': 'str'}, + 'results': {'key': 'results', 'type': '[TroubleshootingDetails]'}, + } + + def __init__(self, start_time=None, end_time=None, code=None, results=None): + self.start_time = start_time + self.end_time = end_time + self.code = code + self.results = results diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/tunnel_connection_health.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/tunnel_connection_health.py new file mode 100644 index 000000000000..12edd93ea10f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/tunnel_connection_health.py @@ -0,0 +1,61 @@ +# 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 TunnelConnectionHealth(Model): + """VirtualNetworkGatewayConnection properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar tunnel: Tunnel name. + :vartype tunnel: str + :ivar connection_status: Virtual network Gateway connection status. + Possible values include: 'Unknown', 'Connecting', 'Connected', + 'NotConnected' + :vartype connection_status: str or + :class:`VirtualNetworkGatewayConnectionStatus + ` + :ivar ingress_bytes_transferred: The Ingress Bytes Transferred in this + connection + :vartype ingress_bytes_transferred: long + :ivar egress_bytes_transferred: The Egress Bytes Transferred in this + connection + :vartype egress_bytes_transferred: long + :ivar last_connection_established_utc_time: The time at which connection + was established in Utc format. + :vartype last_connection_established_utc_time: str + """ + + _validation = { + 'tunnel': {'readonly': True}, + 'connection_status': {'readonly': True}, + 'ingress_bytes_transferred': {'readonly': True}, + 'egress_bytes_transferred': {'readonly': True}, + 'last_connection_established_utc_time': {'readonly': True}, + } + + _attribute_map = { + 'tunnel': {'key': 'tunnel', 'type': 'str'}, + 'connection_status': {'key': 'connectionStatus', 'type': 'str'}, + 'ingress_bytes_transferred': {'key': 'ingressBytesTransferred', 'type': 'long'}, + 'egress_bytes_transferred': {'key': 'egressBytesTransferred', 'type': 'long'}, + 'last_connection_established_utc_time': {'key': 'lastConnectionEstablishedUtcTime', 'type': 'str'}, + } + + def __init__(self): + self.tunnel = None + self.connection_status = None + self.ingress_bytes_transferred = None + self.egress_bytes_transferred = None + self.last_connection_established_utc_time = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/usage.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/usage.py new file mode 100644 index 000000000000..15f965f5a777 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/usage.py @@ -0,0 +1,57 @@ +# 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 Usage(Model): + """Describes network resource usage. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource identifier. + :vartype id: str + :ivar unit: An enum describing the unit of measurement. Default value: + "Count" . + :vartype unit: str + :param current_value: The current value of the usage. + :type current_value: long + :param limit: The limit of usage. + :type limit: long + :param name: The name of the type of usage. + :type name: :class:`UsageName + ` + """ + + _validation = { + 'id': {'readonly': True}, + 'unit': {'required': True, 'constant': True}, + 'current_value': {'required': True}, + 'limit': {'required': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'current_value': {'key': 'currentValue', 'type': 'long'}, + 'limit': {'key': 'limit', 'type': 'long'}, + 'name': {'key': 'name', 'type': 'UsageName'}, + } + + unit = "Count" + + def __init__(self, current_value, limit, name): + self.id = None + self.current_value = current_value + self.limit = limit + self.name = name diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/usage_name.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/usage_name.py new file mode 100644 index 000000000000..87786b60cf62 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/usage_name.py @@ -0,0 +1,31 @@ +# 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 UsageName(Model): + """The usage names. + + :param value: A string describing the resource name. + :type value: str + :param localized_value: A localized string describing the resource name. + :type localized_value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + 'localized_value': {'key': 'localizedValue', 'type': 'str'}, + } + + def __init__(self, value=None, localized_value=None): + self.value = value + self.localized_value = localized_value diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/usage_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/usage_paged.py new file mode 100644 index 000000000000..54e6c9cdc0cb --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/usage_paged.py @@ -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 UsagePaged(Paged): + """ + A paging container for iterating over a list of :class:`Usage ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Usage]'} + } + + def __init__(self, *args, **kwargs): + + super(UsagePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/verification_ip_flow_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/verification_ip_flow_parameters.py new file mode 100644 index 000000000000..fe90253a9330 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/verification_ip_flow_parameters.py @@ -0,0 +1,78 @@ +# 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 VerificationIPFlowParameters(Model): + """Parameters that define the IP flow to be verified. + + :param target_resource_id: The ID of the target resource to perform + next-hop on. + :type target_resource_id: str + :param direction: The direction of the packet represented as a 5-tuple. + Possible values include: 'Inbound', 'Outbound' + :type direction: str or :class:`Direction + ` + :param protocol: Protocol to be verified on. Possible values include: + 'TCP', 'UDP' + :type protocol: str or :class:`Protocol + ` + :param local_port: The local port. Acceptable values are a single integer + in the range (0-65535). Support for * for the source port, which depends + on the direction. + :type local_port: str + :param remote_port: The remote port. Acceptable values are a single + integer in the range (0-65535). Support for * for the source port, which + depends on the direction. + :type remote_port: str + :param local_ip_address: The local IP address. Acceptable values are valid + IPv4 addresses. + :type local_ip_address: str + :param remote_ip_address: The remote IP address. Acceptable values are + valid IPv4 addresses. + :type remote_ip_address: str + :param target_nic_resource_id: The NIC ID. (If VM has multiple NICs and IP + forwarding is enabled on any of them, then this parameter must be + specified. Otherwise optional). + :type target_nic_resource_id: str + """ + + _validation = { + 'target_resource_id': {'required': True}, + 'direction': {'required': True}, + 'protocol': {'required': True}, + 'local_port': {'required': True}, + 'remote_port': {'required': True}, + 'local_ip_address': {'required': True}, + 'remote_ip_address': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + 'direction': {'key': 'direction', 'type': 'str'}, + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'local_port': {'key': 'localPort', 'type': 'str'}, + 'remote_port': {'key': 'remotePort', 'type': 'str'}, + 'local_ip_address': {'key': 'localIPAddress', 'type': 'str'}, + 'remote_ip_address': {'key': 'remoteIPAddress', 'type': 'str'}, + 'target_nic_resource_id': {'key': 'targetNicResourceId', 'type': 'str'}, + } + + def __init__(self, target_resource_id, direction, protocol, local_port, remote_port, local_ip_address, remote_ip_address, target_nic_resource_id=None): + self.target_resource_id = target_resource_id + self.direction = direction + self.protocol = protocol + self.local_port = local_port + self.remote_port = remote_port + self.local_ip_address = local_ip_address + self.remote_ip_address = remote_ip_address + self.target_nic_resource_id = target_nic_resource_id diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/verification_ip_flow_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/verification_ip_flow_result.py new file mode 100644 index 000000000000..117aaa60343b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/verification_ip_flow_result.py @@ -0,0 +1,34 @@ +# 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 VerificationIPFlowResult(Model): + """Results of IP flow verification on the target resource. + + :param access: Indicates whether the traffic is allowed or denied. + Possible values include: 'Allow', 'Deny' + :type access: str or :class:`Access + ` + :param rule_name: Name of the rule. If input is not matched against any + security rule, it is not displayed. + :type rule_name: str + """ + + _attribute_map = { + 'access': {'key': 'access', 'type': 'str'}, + 'rule_name': {'key': 'ruleName', 'type': 'str'}, + } + + def __init__(self, access=None, rule_name=None): + self.access = access + self.rule_name = rule_name diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network.py new file mode 100644 index 000000000000..e4ef409ab9f0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network.py @@ -0,0 +1,94 @@ +# 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 .resource import Resource + + +class VirtualNetwork(Resource): + """Virtual Network resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict + :param address_space: The AddressSpace that contains an array of IP + address ranges that can be used by subnets. + :type address_space: :class:`AddressSpace + ` + :param dhcp_options: The dhcpOptions that contains an array of DNS servers + available to VMs deployed in the virtual network. + :type dhcp_options: :class:`DhcpOptions + ` + :param subnets: A list of subnets in a Virtual Network. + :type subnets: list of :class:`Subnet + ` + :param virtual_network_peerings: A list of peerings in a Virtual Network. + :type virtual_network_peerings: list of :class:`VirtualNetworkPeering + ` + :param resource_guid: The resourceGuid property of the Virtual Network + resource. + :type resource_guid: str + :param provisioning_state: The provisioning state of the PublicIP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param enable_ddos_protection: Indicates if DDoS protection is enabled for + all the protected resources in a Virtual Network. + :type enable_ddos_protection: bool + :param enable_vm_protection: Indicates if Vm protection is enabled for all + the subnets in a Virtual Network. + :type enable_vm_protection: bool + :param etag: Gets a unique read-only string that changes whenever the + resource is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'address_space': {'key': 'properties.addressSpace', 'type': 'AddressSpace'}, + 'dhcp_options': {'key': 'properties.dhcpOptions', 'type': 'DhcpOptions'}, + 'subnets': {'key': 'properties.subnets', 'type': '[Subnet]'}, + 'virtual_network_peerings': {'key': 'properties.virtualNetworkPeerings', 'type': '[VirtualNetworkPeering]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'enable_ddos_protection': {'key': 'properties.enableDdosProtection', 'type': 'bool'}, + 'enable_vm_protection': {'key': 'properties.enableVmProtection', 'type': 'bool'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, id=None, location=None, tags=None, address_space=None, dhcp_options=None, subnets=None, virtual_network_peerings=None, resource_guid=None, provisioning_state=None, enable_ddos_protection=None, enable_vm_protection=None, etag=None): + super(VirtualNetwork, self).__init__(id=id, location=location, tags=tags) + self.address_space = address_space + self.dhcp_options = dhcp_options + self.subnets = subnets + self.virtual_network_peerings = virtual_network_peerings + self.resource_guid = resource_guid + self.provisioning_state = provisioning_state + self.enable_ddos_protection = enable_ddos_protection + self.enable_vm_protection = enable_vm_protection + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_connection_gateway_reference.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_connection_gateway_reference.py new file mode 100644 index 000000000000..f50295906ad8 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_connection_gateway_reference.py @@ -0,0 +1,32 @@ +# 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 VirtualNetworkConnectionGatewayReference(Model): + """A reference to VirtualNetworkGateway or LocalNetworkGateway resource. + + :param id: The ID of VirtualNetworkGateway or LocalNetworkGateway + resource. + :type id: str + """ + + _validation = { + 'id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, id): + self.id = id diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway.py new file mode 100644 index 000000000000..f8a54356fffc --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway.py @@ -0,0 +1,118 @@ +# 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 .resource import Resource + + +class VirtualNetworkGateway(Resource): + """A common class for general resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict + :param ip_configurations: IP configurations for virtual network gateway. + :type ip_configurations: list of + :class:`VirtualNetworkGatewayIPConfiguration + ` + :param gateway_type: The type of this virtual network gateway. Possible + values are: 'Vpn' and 'ExpressRoute'. Possible values include: 'Vpn', + 'ExpressRoute' + :type gateway_type: str or :class:`VirtualNetworkGatewayType + ` + :param vpn_type: The type of this virtual network gateway. Possible values + are: 'PolicyBased' and 'RouteBased'. Possible values include: + 'PolicyBased', 'RouteBased' + :type vpn_type: str or :class:`VpnType + ` + :param enable_bgp: Whether BGP is enabled for this virtual network gateway + or not. + :type enable_bgp: bool + :param active_active: ActiveActive flag + :type active_active: bool + :param gateway_default_site: The reference of the LocalNetworkGateway + resource which represents local network site having default routes. Assign + Null value in case of removing existing default site setting. + :type gateway_default_site: :class:`SubResource + ` + :param sku: The reference of the VirtualNetworkGatewaySku resource which + represents the SKU selected for Virtual network gateway. + :type sku: :class:`VirtualNetworkGatewaySku + ` + :param vpn_client_configuration: The reference of the + VpnClientConfiguration resource which represents the P2S VpnClient + configurations. + :type vpn_client_configuration: :class:`VpnClientConfiguration + ` + :param bgp_settings: Virtual network gateway's BGP speaker settings. + :type bgp_settings: :class:`BgpSettings + ` + :param resource_guid: The resource GUID property of the + VirtualNetworkGateway resource. + :type resource_guid: str + :ivar provisioning_state: The provisioning state of the + VirtualNetworkGateway resource. Possible values are: 'Updating', + 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param etag: Gets a unique read-only string that changes whenever the + resource is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[VirtualNetworkGatewayIPConfiguration]'}, + 'gateway_type': {'key': 'properties.gatewayType', 'type': 'str'}, + 'vpn_type': {'key': 'properties.vpnType', 'type': 'str'}, + 'enable_bgp': {'key': 'properties.enableBgp', 'type': 'bool'}, + 'active_active': {'key': 'properties.activeActive', 'type': 'bool'}, + 'gateway_default_site': {'key': 'properties.gatewayDefaultSite', 'type': 'SubResource'}, + 'sku': {'key': 'properties.sku', 'type': 'VirtualNetworkGatewaySku'}, + 'vpn_client_configuration': {'key': 'properties.vpnClientConfiguration', 'type': 'VpnClientConfiguration'}, + 'bgp_settings': {'key': 'properties.bgpSettings', 'type': 'BgpSettings'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, id=None, location=None, tags=None, ip_configurations=None, gateway_type=None, vpn_type=None, enable_bgp=None, active_active=None, gateway_default_site=None, sku=None, vpn_client_configuration=None, bgp_settings=None, resource_guid=None, etag=None): + super(VirtualNetworkGateway, self).__init__(id=id, location=location, tags=tags) + self.ip_configurations = ip_configurations + self.gateway_type = gateway_type + self.vpn_type = vpn_type + self.enable_bgp = enable_bgp + self.active_active = active_active + self.gateway_default_site = gateway_default_site + self.sku = sku + self.vpn_client_configuration = vpn_client_configuration + self.bgp_settings = bgp_settings + self.resource_guid = resource_guid + self.provisioning_state = None + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway_connection.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway_connection.py new file mode 100644 index 000000000000..4ea914559834 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway_connection.py @@ -0,0 +1,152 @@ +# 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 .resource import Resource + + +class VirtualNetworkGatewayConnection(Resource): + """A common class for general resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict + :param authorization_key: The authorizationKey. + :type authorization_key: str + :param virtual_network_gateway1: The reference to virtual network gateway + resource. + :type virtual_network_gateway1: :class:`VirtualNetworkGateway + ` + :param virtual_network_gateway2: The reference to virtual network gateway + resource. + :type virtual_network_gateway2: :class:`VirtualNetworkGateway + ` + :param local_network_gateway2: The reference to local network gateway + resource. + :type local_network_gateway2: :class:`LocalNetworkGateway + ` + :param connection_type: Gateway connection type. Possible values are: + 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. Possible values + include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' + :type connection_type: str or :class:`VirtualNetworkGatewayConnectionType + ` + :param routing_weight: The routing weight. + :type routing_weight: int + :param shared_key: The IPSec shared key. + :type shared_key: str + :ivar connection_status: Virtual network Gateway connection status. + Possible values are 'Unknown', 'Connecting', 'Connected' and + 'NotConnected'. Possible values include: 'Unknown', 'Connecting', + 'Connected', 'NotConnected' + :vartype connection_status: str or + :class:`VirtualNetworkGatewayConnectionStatus + ` + :ivar tunnel_connection_status: Collection of all tunnels' connection + health status. + :vartype tunnel_connection_status: list of :class:`TunnelConnectionHealth + ` + :ivar egress_bytes_transferred: The egress bytes transferred in this + connection. + :vartype egress_bytes_transferred: long + :ivar ingress_bytes_transferred: The ingress bytes transferred in this + connection. + :vartype ingress_bytes_transferred: long + :param peer: The reference to peerings resource. + :type peer: :class:`SubResource + ` + :param enable_bgp: EnableBgp flag + :type enable_bgp: bool + :param use_policy_based_traffic_selectors: Enable policy-based traffic + selectors. + :type use_policy_based_traffic_selectors: bool + :param ipsec_policies: The IPSec Policies to be considered by this + connection. + :type ipsec_policies: list of :class:`IpsecPolicy + ` + :param resource_guid: The resource GUID property of the + VirtualNetworkGatewayConnection resource. + :type resource_guid: str + :ivar provisioning_state: The provisioning state of the + VirtualNetworkGatewayConnection resource. Possible values are: 'Updating', + 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param etag: Gets a unique read-only string that changes whenever the + resource is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'virtual_network_gateway1': {'required': True}, + 'connection_type': {'required': True}, + 'connection_status': {'readonly': True}, + 'tunnel_connection_status': {'readonly': True}, + 'egress_bytes_transferred': {'readonly': True}, + 'ingress_bytes_transferred': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'authorization_key': {'key': 'properties.authorizationKey', 'type': 'str'}, + 'virtual_network_gateway1': {'key': 'properties.virtualNetworkGateway1', 'type': 'VirtualNetworkGateway'}, + 'virtual_network_gateway2': {'key': 'properties.virtualNetworkGateway2', 'type': 'VirtualNetworkGateway'}, + 'local_network_gateway2': {'key': 'properties.localNetworkGateway2', 'type': 'LocalNetworkGateway'}, + 'connection_type': {'key': 'properties.connectionType', 'type': 'str'}, + 'routing_weight': {'key': 'properties.routingWeight', 'type': 'int'}, + 'shared_key': {'key': 'properties.sharedKey', 'type': 'str'}, + 'connection_status': {'key': 'properties.connectionStatus', 'type': 'str'}, + 'tunnel_connection_status': {'key': 'properties.tunnelConnectionStatus', 'type': '[TunnelConnectionHealth]'}, + 'egress_bytes_transferred': {'key': 'properties.egressBytesTransferred', 'type': 'long'}, + 'ingress_bytes_transferred': {'key': 'properties.ingressBytesTransferred', 'type': 'long'}, + 'peer': {'key': 'properties.peer', 'type': 'SubResource'}, + 'enable_bgp': {'key': 'properties.enableBgp', 'type': 'bool'}, + 'use_policy_based_traffic_selectors': {'key': 'properties.usePolicyBasedTrafficSelectors', 'type': 'bool'}, + 'ipsec_policies': {'key': 'properties.ipsecPolicies', 'type': '[IpsecPolicy]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, virtual_network_gateway1, connection_type, id=None, location=None, tags=None, authorization_key=None, virtual_network_gateway2=None, local_network_gateway2=None, routing_weight=None, shared_key=None, peer=None, enable_bgp=None, use_policy_based_traffic_selectors=None, ipsec_policies=None, resource_guid=None, etag=None): + super(VirtualNetworkGatewayConnection, self).__init__(id=id, location=location, tags=tags) + self.authorization_key = authorization_key + self.virtual_network_gateway1 = virtual_network_gateway1 + self.virtual_network_gateway2 = virtual_network_gateway2 + self.local_network_gateway2 = local_network_gateway2 + self.connection_type = connection_type + self.routing_weight = routing_weight + self.shared_key = shared_key + self.connection_status = None + self.tunnel_connection_status = None + self.egress_bytes_transferred = None + self.ingress_bytes_transferred = None + self.peer = peer + self.enable_bgp = enable_bgp + self.use_policy_based_traffic_selectors = use_policy_based_traffic_selectors + self.ipsec_policies = ipsec_policies + self.resource_guid = resource_guid + self.provisioning_state = None + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway_connection_list_entity.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway_connection_list_entity.py new file mode 100644 index 000000000000..f7fe229ce78b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway_connection_list_entity.py @@ -0,0 +1,155 @@ +# 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 .resource import Resource + + +class VirtualNetworkGatewayConnectionListEntity(Resource): + """A common class for general resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict + :param authorization_key: The authorizationKey. + :type authorization_key: str + :param virtual_network_gateway1: The reference to virtual network gateway + resource. + :type virtual_network_gateway1: + :class:`VirtualNetworkConnectionGatewayReference + ` + :param virtual_network_gateway2: The reference to virtual network gateway + resource. + :type virtual_network_gateway2: + :class:`VirtualNetworkConnectionGatewayReference + ` + :param local_network_gateway2: The reference to local network gateway + resource. + :type local_network_gateway2: + :class:`VirtualNetworkConnectionGatewayReference + ` + :param connection_type: Gateway connection type. Possible values are: + 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. Possible values + include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' + :type connection_type: str or :class:`VirtualNetworkGatewayConnectionType + ` + :param routing_weight: The routing weight. + :type routing_weight: int + :param shared_key: The IPSec shared key. + :type shared_key: str + :ivar connection_status: Virtual network Gateway connection status. + Possible values are 'Unknown', 'Connecting', 'Connected' and + 'NotConnected'. Possible values include: 'Unknown', 'Connecting', + 'Connected', 'NotConnected' + :vartype connection_status: str or + :class:`VirtualNetworkGatewayConnectionStatus + ` + :ivar tunnel_connection_status: Collection of all tunnels' connection + health status. + :vartype tunnel_connection_status: list of :class:`TunnelConnectionHealth + ` + :ivar egress_bytes_transferred: The egress bytes transferred in this + connection. + :vartype egress_bytes_transferred: long + :ivar ingress_bytes_transferred: The ingress bytes transferred in this + connection. + :vartype ingress_bytes_transferred: long + :param peer: The reference to peerings resource. + :type peer: :class:`SubResource + ` + :param enable_bgp: EnableBgp flag + :type enable_bgp: bool + :param use_policy_based_traffic_selectors: Enable policy-based traffic + selectors. + :type use_policy_based_traffic_selectors: bool + :param ipsec_policies: The IPSec Policies to be considered by this + connection. + :type ipsec_policies: list of :class:`IpsecPolicy + ` + :param resource_guid: The resource GUID property of the + VirtualNetworkGatewayConnection resource. + :type resource_guid: str + :ivar provisioning_state: The provisioning state of the + VirtualNetworkGatewayConnection resource. Possible values are: 'Updating', + 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param etag: Gets a unique read-only string that changes whenever the + resource is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'virtual_network_gateway1': {'required': True}, + 'connection_type': {'required': True}, + 'connection_status': {'readonly': True}, + 'tunnel_connection_status': {'readonly': True}, + 'egress_bytes_transferred': {'readonly': True}, + 'ingress_bytes_transferred': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'authorization_key': {'key': 'properties.authorizationKey', 'type': 'str'}, + 'virtual_network_gateway1': {'key': 'properties.virtualNetworkGateway1', 'type': 'VirtualNetworkConnectionGatewayReference'}, + 'virtual_network_gateway2': {'key': 'properties.virtualNetworkGateway2', 'type': 'VirtualNetworkConnectionGatewayReference'}, + 'local_network_gateway2': {'key': 'properties.localNetworkGateway2', 'type': 'VirtualNetworkConnectionGatewayReference'}, + 'connection_type': {'key': 'properties.connectionType', 'type': 'str'}, + 'routing_weight': {'key': 'properties.routingWeight', 'type': 'int'}, + 'shared_key': {'key': 'properties.sharedKey', 'type': 'str'}, + 'connection_status': {'key': 'properties.connectionStatus', 'type': 'str'}, + 'tunnel_connection_status': {'key': 'properties.tunnelConnectionStatus', 'type': '[TunnelConnectionHealth]'}, + 'egress_bytes_transferred': {'key': 'properties.egressBytesTransferred', 'type': 'long'}, + 'ingress_bytes_transferred': {'key': 'properties.ingressBytesTransferred', 'type': 'long'}, + 'peer': {'key': 'properties.peer', 'type': 'SubResource'}, + 'enable_bgp': {'key': 'properties.enableBgp', 'type': 'bool'}, + 'use_policy_based_traffic_selectors': {'key': 'properties.usePolicyBasedTrafficSelectors', 'type': 'bool'}, + 'ipsec_policies': {'key': 'properties.ipsecPolicies', 'type': '[IpsecPolicy]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, virtual_network_gateway1, connection_type, id=None, location=None, tags=None, authorization_key=None, virtual_network_gateway2=None, local_network_gateway2=None, routing_weight=None, shared_key=None, peer=None, enable_bgp=None, use_policy_based_traffic_selectors=None, ipsec_policies=None, resource_guid=None, etag=None): + super(VirtualNetworkGatewayConnectionListEntity, self).__init__(id=id, location=location, tags=tags) + self.authorization_key = authorization_key + self.virtual_network_gateway1 = virtual_network_gateway1 + self.virtual_network_gateway2 = virtual_network_gateway2 + self.local_network_gateway2 = local_network_gateway2 + self.connection_type = connection_type + self.routing_weight = routing_weight + self.shared_key = shared_key + self.connection_status = None + self.tunnel_connection_status = None + self.egress_bytes_transferred = None + self.ingress_bytes_transferred = None + self.peer = peer + self.enable_bgp = enable_bgp + self.use_policy_based_traffic_selectors = use_policy_based_traffic_selectors + self.ipsec_policies = ipsec_policies + self.resource_guid = resource_guid + self.provisioning_state = None + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway_connection_list_entity_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway_connection_list_entity_paged.py new file mode 100644 index 000000000000..68b56627b2d8 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway_connection_list_entity_paged.py @@ -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 VirtualNetworkGatewayConnectionListEntityPaged(Paged): + """ + A paging container for iterating over a list of :class:`VirtualNetworkGatewayConnectionListEntity ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[VirtualNetworkGatewayConnectionListEntity]'} + } + + def __init__(self, *args, **kwargs): + + super(VirtualNetworkGatewayConnectionListEntityPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway_connection_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway_connection_paged.py new file mode 100644 index 000000000000..0d36883780bc --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway_connection_paged.py @@ -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 VirtualNetworkGatewayConnectionPaged(Paged): + """ + A paging container for iterating over a list of :class:`VirtualNetworkGatewayConnection ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[VirtualNetworkGatewayConnection]'} + } + + def __init__(self, *args, **kwargs): + + super(VirtualNetworkGatewayConnectionPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway_ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway_ip_configuration.py new file mode 100644 index 000000000000..ed2465f73c5b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway_ip_configuration.py @@ -0,0 +1,66 @@ +# 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 .sub_resource import SubResource + + +class VirtualNetworkGatewayIPConfiguration(SubResource): + """IP configuration for virtual network gateway. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param private_ip_allocation_method: The private IP allocation method. + Possible values are: 'Static' and 'Dynamic'. Possible values include: + 'Static', 'Dynamic' + :type private_ip_allocation_method: str or :class:`IPAllocationMethod + ` + :param subnet: The reference of the subnet resource. + :type subnet: :class:`SubResource + ` + :param public_ip_address: The reference of the public IP resource. + :type public_ip_address: :class:`SubResource + ` + :ivar provisioning_state: The provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'private_ip_allocation_method': {'key': 'properties.privateIPAllocationMethod', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'SubResource'}, + 'public_ip_address': {'key': 'properties.publicIPAddress', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, id=None, private_ip_allocation_method=None, subnet=None, public_ip_address=None, name=None, etag=None): + super(VirtualNetworkGatewayIPConfiguration, self).__init__(id=id) + self.private_ip_allocation_method = private_ip_allocation_method + self.subnet = subnet + self.public_ip_address = public_ip_address + self.provisioning_state = None + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway_paged.py new file mode 100644 index 000000000000..f73e1e62965a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway_paged.py @@ -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 VirtualNetworkGatewayPaged(Paged): + """ + A paging container for iterating over a list of :class:`VirtualNetworkGateway ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[VirtualNetworkGateway]'} + } + + def __init__(self, *args, **kwargs): + + super(VirtualNetworkGatewayPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway_sku.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway_sku.py new file mode 100644 index 000000000000..f1ac12601f2b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_gateway_sku.py @@ -0,0 +1,41 @@ +# 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 VirtualNetworkGatewaySku(Model): + """VirtualNetworkGatewaySku details. + + :param name: Gateway SKU name. Possible values include: 'Basic', + 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', 'VpnGw2', + 'VpnGw3' + :type name: str or :class:`VirtualNetworkGatewaySkuName + ` + :param tier: Gateway SKU tier. Possible values include: 'Basic', + 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', 'VpnGw2', + 'VpnGw3' + :type tier: str or :class:`VirtualNetworkGatewaySkuTier + ` + :param capacity: The capacity. + :type capacity: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, name=None, tier=None, capacity=None): + self.name = name + self.tier = tier + self.capacity = capacity diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_paged.py new file mode 100644 index 000000000000..24cd3a8b96c3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_paged.py @@ -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 VirtualNetworkPaged(Paged): + """ + A paging container for iterating over a list of :class:`VirtualNetwork ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[VirtualNetwork]'} + } + + def __init__(self, *args, **kwargs): + + super(VirtualNetworkPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_peering.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_peering.py new file mode 100644 index 000000000000..60897901063c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_peering.py @@ -0,0 +1,78 @@ +# 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 .sub_resource import SubResource + + +class VirtualNetworkPeering(SubResource): + """Peerings in a virtual network resource. + + :param id: Resource ID. + :type id: str + :param allow_virtual_network_access: Whether the VMs in the linked virtual + network space would be able to access all the VMs in local Virtual network + space. + :type allow_virtual_network_access: bool + :param allow_forwarded_traffic: Whether the forwarded traffic from the VMs + in the remote virtual network will be allowed/disallowed. + :type allow_forwarded_traffic: bool + :param allow_gateway_transit: If gateway links can be used in remote + virtual networking to link to this virtual network. + :type allow_gateway_transit: bool + :param use_remote_gateways: If remote gateways can be used on this virtual + network. If the flag is set to true, and allowGatewayTransit on remote + peering is also true, virtual network will use gateways of remote virtual + network for transit. Only one peering can have this flag set to true. This + flag cannot be set if virtual network already has a gateway. + :type use_remote_gateways: bool + :param remote_virtual_network: The reference of the remote virtual + network. + :type remote_virtual_network: :class:`SubResource + ` + :param peering_state: The status of the virtual network peering. Possible + values are 'Initiated', 'Connected', and 'Disconnected'. Possible values + include: 'Initiated', 'Connected', 'Disconnected' + :type peering_state: str or :class:`VirtualNetworkPeeringState + ` + :param provisioning_state: The provisioning state of the resource. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'allow_virtual_network_access': {'key': 'properties.allowVirtualNetworkAccess', 'type': 'bool'}, + 'allow_forwarded_traffic': {'key': 'properties.allowForwardedTraffic', 'type': 'bool'}, + 'allow_gateway_transit': {'key': 'properties.allowGatewayTransit', 'type': 'bool'}, + 'use_remote_gateways': {'key': 'properties.useRemoteGateways', 'type': 'bool'}, + 'remote_virtual_network': {'key': 'properties.remoteVirtualNetwork', 'type': 'SubResource'}, + 'peering_state': {'key': 'properties.peeringState', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, id=None, allow_virtual_network_access=None, allow_forwarded_traffic=None, allow_gateway_transit=None, use_remote_gateways=None, remote_virtual_network=None, peering_state=None, provisioning_state=None, name=None, etag=None): + super(VirtualNetworkPeering, self).__init__(id=id) + self.allow_virtual_network_access = allow_virtual_network_access + self.allow_forwarded_traffic = allow_forwarded_traffic + self.allow_gateway_transit = allow_gateway_transit + self.use_remote_gateways = use_remote_gateways + self.remote_virtual_network = remote_virtual_network + self.peering_state = peering_state + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_peering_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_peering_paged.py new file mode 100644 index 000000000000..cd2cad3c0bdc --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_peering_paged.py @@ -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 VirtualNetworkPeeringPaged(Paged): + """ + A paging container for iterating over a list of :class:`VirtualNetworkPeering ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[VirtualNetworkPeering]'} + } + + def __init__(self, *args, **kwargs): + + super(VirtualNetworkPeeringPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_usage.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_usage.py new file mode 100644 index 000000000000..adf7b18797fc --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_usage.py @@ -0,0 +1,55 @@ +# 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 VirtualNetworkUsage(Model): + """Usage details for subnet. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar current_value: Indicates number of IPs used from the Subnet. + :vartype current_value: float + :ivar id: Subnet identifier. + :vartype id: str + :ivar limit: Indicates the size of the subnet. + :vartype limit: float + :ivar name: The name containing common and localized value for usage. + :vartype name: :class:`VirtualNetworkUsageName + ` + :ivar unit: Usage units. Returns 'Count' + :vartype unit: str + """ + + _validation = { + 'current_value': {'readonly': True}, + 'id': {'readonly': True}, + 'limit': {'readonly': True}, + 'name': {'readonly': True}, + 'unit': {'readonly': True}, + } + + _attribute_map = { + 'current_value': {'key': 'currentValue', 'type': 'float'}, + 'id': {'key': 'id', 'type': 'str'}, + 'limit': {'key': 'limit', 'type': 'float'}, + 'name': {'key': 'name', 'type': 'VirtualNetworkUsageName'}, + 'unit': {'key': 'unit', 'type': 'str'}, + } + + def __init__(self): + self.current_value = None + self.id = None + self.limit = None + self.name = None + self.unit = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_usage_name.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_usage_name.py new file mode 100644 index 000000000000..dd93c0846a5c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_usage_name.py @@ -0,0 +1,39 @@ +# 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 VirtualNetworkUsageName(Model): + """Usage strings container. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar localized_value: Localized subnet size and usage string. + :vartype localized_value: str + :ivar value: Subnet size and usage string. + :vartype value: str + """ + + _validation = { + 'localized_value': {'readonly': True}, + 'value': {'readonly': True}, + } + + _attribute_map = { + 'localized_value': {'key': 'localizedValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self): + self.localized_value = None + self.value = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_usage_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_usage_paged.py new file mode 100644 index 000000000000..a137c72ea37f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/virtual_network_usage_paged.py @@ -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 VirtualNetworkUsagePaged(Paged): + """ + A paging container for iterating over a list of :class:`VirtualNetworkUsage ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[VirtualNetworkUsage]'} + } + + def __init__(self, *args, **kwargs): + + super(VirtualNetworkUsagePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/vpn_client_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/vpn_client_configuration.py new file mode 100644 index 000000000000..e319871ff7f9 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/vpn_client_configuration.py @@ -0,0 +1,59 @@ +# 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 VpnClientConfiguration(Model): + """VpnClientConfiguration for P2S client. + + :param vpn_client_address_pool: The reference of the address space + resource which represents Address space for P2S VpnClient. + :type vpn_client_address_pool: :class:`AddressSpace + ` + :param vpn_client_root_certificates: VpnClientRootCertificate for virtual + network gateway. + :type vpn_client_root_certificates: list of + :class:`VpnClientRootCertificate + ` + :param vpn_client_revoked_certificates: VpnClientRevokedCertificate for + Virtual network gateway. + :type vpn_client_revoked_certificates: list of + :class:`VpnClientRevokedCertificate + ` + :param vpn_client_protocols: VpnClientProtocols for Virtual network + gateway. + :type vpn_client_protocols: list of str or :class:`VpnClientProtocol + ` + :param radius_server_address: The radius server address property of the + VirtualNetworkGateway resource for vpn client connection. + :type radius_server_address: str + :param radius_server_secret: The radius secret property of the + VirtualNetworkGateway resource for vpn client connection. + :type radius_server_secret: str + """ + + _attribute_map = { + 'vpn_client_address_pool': {'key': 'vpnClientAddressPool', 'type': 'AddressSpace'}, + 'vpn_client_root_certificates': {'key': 'vpnClientRootCertificates', 'type': '[VpnClientRootCertificate]'}, + 'vpn_client_revoked_certificates': {'key': 'vpnClientRevokedCertificates', 'type': '[VpnClientRevokedCertificate]'}, + 'vpn_client_protocols': {'key': 'vpnClientProtocols', 'type': '[str]'}, + 'radius_server_address': {'key': 'radiusServerAddress', 'type': 'str'}, + 'radius_server_secret': {'key': 'radiusServerSecret', 'type': 'str'}, + } + + def __init__(self, vpn_client_address_pool=None, vpn_client_root_certificates=None, vpn_client_revoked_certificates=None, vpn_client_protocols=None, radius_server_address=None, radius_server_secret=None): + self.vpn_client_address_pool = vpn_client_address_pool + self.vpn_client_root_certificates = vpn_client_root_certificates + self.vpn_client_revoked_certificates = vpn_client_revoked_certificates + self.vpn_client_protocols = vpn_client_protocols + self.radius_server_address = radius_server_address + self.radius_server_secret = radius_server_secret diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/vpn_client_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/vpn_client_parameters.py new file mode 100644 index 000000000000..96792961870d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/vpn_client_parameters.py @@ -0,0 +1,49 @@ +# 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 VpnClientParameters(Model): + """Vpn Client Parameters for package generation. + + :param processor_architecture: VPN client Processor Architecture. Possible + values are: 'AMD64' and 'X86'. Possible values include: 'Amd64', 'X86' + :type processor_architecture: str or :class:`ProcessorArchitecture + ` + :param authentication_method: VPN client Authentication Method. Possible + values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible values include: 'EAPTLS', + 'EAPMSCHAPv2' + :type authentication_method: str or :class:`AuthenticationMethod + ` + :param radius_server_auth_certificate: The public certificate data for the + radius server authentication certificate as a Base-64 encoded string. + Required only if external radius authentication has been configured with + EAPTLS authentication. + :type radius_server_auth_certificate: str + :param client_root_certificates: A list of client root certificates public + certificate data encoded as Base-64 strings. Optional parameter for + external radius based authentication with EAPTLS. + :type client_root_certificates: list of str + """ + + _attribute_map = { + 'processor_architecture': {'key': 'processorArchitecture', 'type': 'str'}, + 'authentication_method': {'key': 'authenticationMethod', 'type': 'str'}, + 'radius_server_auth_certificate': {'key': 'radiusServerAuthCertificate', 'type': 'str'}, + 'client_root_certificates': {'key': 'clientRootCertificates', 'type': '[str]'}, + } + + def __init__(self, processor_architecture=None, authentication_method=None, radius_server_auth_certificate=None, client_root_certificates=None): + self.processor_architecture = processor_architecture + self.authentication_method = authentication_method + self.radius_server_auth_certificate = radius_server_auth_certificate + self.client_root_certificates = client_root_certificates diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/vpn_client_revoked_certificate.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/vpn_client_revoked_certificate.py new file mode 100644 index 000000000000..ebd6a4bbba2f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/vpn_client_revoked_certificate.py @@ -0,0 +1,54 @@ +# 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 .sub_resource import SubResource + + +class VpnClientRevokedCertificate(SubResource): + """VPN client revoked certificate of virtual network gateway. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param thumbprint: The revoked VPN client certificate thumbprint. + :type thumbprint: str + :ivar provisioning_state: The provisioning state of the VPN client revoked + certificate resource. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'thumbprint': {'key': 'properties.thumbprint', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, id=None, thumbprint=None, name=None, etag=None): + super(VpnClientRevokedCertificate, self).__init__(id=id) + self.thumbprint = thumbprint + self.provisioning_state = None + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/vpn_client_root_certificate.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/vpn_client_root_certificate.py new file mode 100644 index 000000000000..6d820d3a8c11 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/vpn_client_root_certificate.py @@ -0,0 +1,55 @@ +# 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 .sub_resource import SubResource + + +class VpnClientRootCertificate(SubResource): + """VPN client root certificate of virtual network gateway. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param public_cert_data: The certificate public data. + :type public_cert_data: str + :ivar provisioning_state: The provisioning state of the VPN client root + certificate resource. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'public_cert_data': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'public_cert_data': {'key': 'properties.publicCertData', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, public_cert_data, id=None, name=None, etag=None): + super(VpnClientRootCertificate, self).__init__(id=id) + self.public_cert_data = public_cert_data + self.provisioning_state = None + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/network_management_client.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/network_management_client.py new file mode 100644 index 000000000000..be998d20b2e3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/network_management_client.py @@ -0,0 +1,330 @@ +# 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.service_client import ServiceClient +from msrest import Serializer, Deserializer +from msrestazure import AzureConfiguration +from .version import VERSION +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller +import uuid +from .operations.application_gateways_operations import ApplicationGatewaysOperations +from .operations.application_security_groups_operations import ApplicationSecurityGroupsOperations +from .operations.available_endpoint_services_operations import AvailableEndpointServicesOperations +from .operations.express_route_circuit_authorizations_operations import ExpressRouteCircuitAuthorizationsOperations +from .operations.express_route_circuit_peerings_operations import ExpressRouteCircuitPeeringsOperations +from .operations.express_route_circuits_operations import ExpressRouteCircuitsOperations +from .operations.express_route_service_providers_operations import ExpressRouteServiceProvidersOperations +from .operations.load_balancers_operations import LoadBalancersOperations +from .operations.load_balancer_backend_address_pools_operations import LoadBalancerBackendAddressPoolsOperations +from .operations.load_balancer_frontend_ip_configurations_operations import LoadBalancerFrontendIPConfigurationsOperations +from .operations.inbound_nat_rules_operations import InboundNatRulesOperations +from .operations.load_balancer_load_balancing_rules_operations import LoadBalancerLoadBalancingRulesOperations +from .operations.load_balancer_network_interfaces_operations import LoadBalancerNetworkInterfacesOperations +from .operations.load_balancer_probes_operations import LoadBalancerProbesOperations +from .operations.network_interfaces_operations import NetworkInterfacesOperations +from .operations.network_interface_ip_configurations_operations import NetworkInterfaceIPConfigurationsOperations +from .operations.network_interface_load_balancers_operations import NetworkInterfaceLoadBalancersOperations +from .operations.network_security_groups_operations import NetworkSecurityGroupsOperations +from .operations.security_rules_operations import SecurityRulesOperations +from .operations.default_security_rules_operations import DefaultSecurityRulesOperations +from .operations.network_watchers_operations import NetworkWatchersOperations +from .operations.packet_captures_operations import PacketCapturesOperations +from .operations.public_ip_addresses_operations import PublicIPAddressesOperations +from .operations.route_filters_operations import RouteFiltersOperations +from .operations.route_filter_rules_operations import RouteFilterRulesOperations +from .operations.route_tables_operations import RouteTablesOperations +from .operations.routes_operations import RoutesOperations +from .operations.bgp_service_communities_operations import BgpServiceCommunitiesOperations +from .operations.usages_operations import UsagesOperations +from .operations.virtual_networks_operations import VirtualNetworksOperations +from .operations.subnets_operations import SubnetsOperations +from .operations.virtual_network_peerings_operations import VirtualNetworkPeeringsOperations +from .operations.virtual_network_gateways_operations import VirtualNetworkGatewaysOperations +from .operations.virtual_network_gateway_connections_operations import VirtualNetworkGatewayConnectionsOperations +from .operations.local_network_gateways_operations import LocalNetworkGatewaysOperations +from . import models + + +class NetworkManagementClientConfiguration(AzureConfiguration): + """Configuration for NetworkManagementClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The subscription credentials which uniquely + identify the Microsoft Azure subscription. The subscription ID forms part + of the URI for every service call. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not isinstance(subscription_id, str): + raise TypeError("Parameter 'subscription_id' must be str.") + if not base_url: + base_url = 'https://management.azure.com' + + super(NetworkManagementClientConfiguration, self).__init__(base_url) + + self.add_user_agent('networkmanagementclient/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id + + +class NetworkManagementClient(object): + """Network Client + + :ivar config: Configuration for client. + :vartype config: NetworkManagementClientConfiguration + + :ivar application_gateways: ApplicationGateways operations + :vartype application_gateways: azure.mgmt.network.v2017_09_01.operations.ApplicationGatewaysOperations + :ivar application_security_groups: ApplicationSecurityGroups operations + :vartype application_security_groups: azure.mgmt.network.v2017_09_01.operations.ApplicationSecurityGroupsOperations + :ivar available_endpoint_services: AvailableEndpointServices operations + :vartype available_endpoint_services: azure.mgmt.network.v2017_09_01.operations.AvailableEndpointServicesOperations + :ivar express_route_circuit_authorizations: ExpressRouteCircuitAuthorizations operations + :vartype express_route_circuit_authorizations: azure.mgmt.network.v2017_09_01.operations.ExpressRouteCircuitAuthorizationsOperations + :ivar express_route_circuit_peerings: ExpressRouteCircuitPeerings operations + :vartype express_route_circuit_peerings: azure.mgmt.network.v2017_09_01.operations.ExpressRouteCircuitPeeringsOperations + :ivar express_route_circuits: ExpressRouteCircuits operations + :vartype express_route_circuits: azure.mgmt.network.v2017_09_01.operations.ExpressRouteCircuitsOperations + :ivar express_route_service_providers: ExpressRouteServiceProviders operations + :vartype express_route_service_providers: azure.mgmt.network.v2017_09_01.operations.ExpressRouteServiceProvidersOperations + :ivar load_balancers: LoadBalancers operations + :vartype load_balancers: azure.mgmt.network.v2017_09_01.operations.LoadBalancersOperations + :ivar load_balancer_backend_address_pools: LoadBalancerBackendAddressPools operations + :vartype load_balancer_backend_address_pools: azure.mgmt.network.v2017_09_01.operations.LoadBalancerBackendAddressPoolsOperations + :ivar load_balancer_frontend_ip_configurations: LoadBalancerFrontendIPConfigurations operations + :vartype load_balancer_frontend_ip_configurations: azure.mgmt.network.v2017_09_01.operations.LoadBalancerFrontendIPConfigurationsOperations + :ivar inbound_nat_rules: InboundNatRules operations + :vartype inbound_nat_rules: azure.mgmt.network.v2017_09_01.operations.InboundNatRulesOperations + :ivar load_balancer_load_balancing_rules: LoadBalancerLoadBalancingRules operations + :vartype load_balancer_load_balancing_rules: azure.mgmt.network.v2017_09_01.operations.LoadBalancerLoadBalancingRulesOperations + :ivar load_balancer_network_interfaces: LoadBalancerNetworkInterfaces operations + :vartype load_balancer_network_interfaces: azure.mgmt.network.v2017_09_01.operations.LoadBalancerNetworkInterfacesOperations + :ivar load_balancer_probes: LoadBalancerProbes operations + :vartype load_balancer_probes: azure.mgmt.network.v2017_09_01.operations.LoadBalancerProbesOperations + :ivar network_interfaces: NetworkInterfaces operations + :vartype network_interfaces: azure.mgmt.network.v2017_09_01.operations.NetworkInterfacesOperations + :ivar network_interface_ip_configurations: NetworkInterfaceIPConfigurations operations + :vartype network_interface_ip_configurations: azure.mgmt.network.v2017_09_01.operations.NetworkInterfaceIPConfigurationsOperations + :ivar network_interface_load_balancers: NetworkInterfaceLoadBalancers operations + :vartype network_interface_load_balancers: azure.mgmt.network.v2017_09_01.operations.NetworkInterfaceLoadBalancersOperations + :ivar network_security_groups: NetworkSecurityGroups operations + :vartype network_security_groups: azure.mgmt.network.v2017_09_01.operations.NetworkSecurityGroupsOperations + :ivar security_rules: SecurityRules operations + :vartype security_rules: azure.mgmt.network.v2017_09_01.operations.SecurityRulesOperations + :ivar default_security_rules: DefaultSecurityRules operations + :vartype default_security_rules: azure.mgmt.network.v2017_09_01.operations.DefaultSecurityRulesOperations + :ivar network_watchers: NetworkWatchers operations + :vartype network_watchers: azure.mgmt.network.v2017_09_01.operations.NetworkWatchersOperations + :ivar packet_captures: PacketCaptures operations + :vartype packet_captures: azure.mgmt.network.v2017_09_01.operations.PacketCapturesOperations + :ivar public_ip_addresses: PublicIPAddresses operations + :vartype public_ip_addresses: azure.mgmt.network.v2017_09_01.operations.PublicIPAddressesOperations + :ivar route_filters: RouteFilters operations + :vartype route_filters: azure.mgmt.network.v2017_09_01.operations.RouteFiltersOperations + :ivar route_filter_rules: RouteFilterRules operations + :vartype route_filter_rules: azure.mgmt.network.v2017_09_01.operations.RouteFilterRulesOperations + :ivar route_tables: RouteTables operations + :vartype route_tables: azure.mgmt.network.v2017_09_01.operations.RouteTablesOperations + :ivar routes: Routes operations + :vartype routes: azure.mgmt.network.v2017_09_01.operations.RoutesOperations + :ivar bgp_service_communities: BgpServiceCommunities operations + :vartype bgp_service_communities: azure.mgmt.network.v2017_09_01.operations.BgpServiceCommunitiesOperations + :ivar usages: Usages operations + :vartype usages: azure.mgmt.network.v2017_09_01.operations.UsagesOperations + :ivar virtual_networks: VirtualNetworks operations + :vartype virtual_networks: azure.mgmt.network.v2017_09_01.operations.VirtualNetworksOperations + :ivar subnets: Subnets operations + :vartype subnets: azure.mgmt.network.v2017_09_01.operations.SubnetsOperations + :ivar virtual_network_peerings: VirtualNetworkPeerings operations + :vartype virtual_network_peerings: azure.mgmt.network.v2017_09_01.operations.VirtualNetworkPeeringsOperations + :ivar virtual_network_gateways: VirtualNetworkGateways operations + :vartype virtual_network_gateways: azure.mgmt.network.v2017_09_01.operations.VirtualNetworkGatewaysOperations + :ivar virtual_network_gateway_connections: VirtualNetworkGatewayConnections operations + :vartype virtual_network_gateway_connections: azure.mgmt.network.v2017_09_01.operations.VirtualNetworkGatewayConnectionsOperations + :ivar local_network_gateways: LocalNetworkGateways operations + :vartype local_network_gateways: azure.mgmt.network.v2017_09_01.operations.LocalNetworkGatewaysOperations + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The subscription credentials which uniquely + identify the Microsoft Azure subscription. The subscription ID forms part + of the URI for every service call. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + self.config = NetworkManagementClientConfiguration(credentials, subscription_id, base_url) + self._client = ServiceClient(self.config.credentials, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.application_gateways = ApplicationGatewaysOperations( + self._client, self.config, self._serialize, self._deserialize) + self.application_security_groups = ApplicationSecurityGroupsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.available_endpoint_services = AvailableEndpointServicesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.express_route_circuit_authorizations = ExpressRouteCircuitAuthorizationsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.express_route_circuit_peerings = ExpressRouteCircuitPeeringsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.express_route_circuits = ExpressRouteCircuitsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.express_route_service_providers = ExpressRouteServiceProvidersOperations( + self._client, self.config, self._serialize, self._deserialize) + self.load_balancers = LoadBalancersOperations( + self._client, self.config, self._serialize, self._deserialize) + self.load_balancer_backend_address_pools = LoadBalancerBackendAddressPoolsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.load_balancer_frontend_ip_configurations = LoadBalancerFrontendIPConfigurationsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.inbound_nat_rules = InboundNatRulesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.load_balancer_load_balancing_rules = LoadBalancerLoadBalancingRulesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.load_balancer_network_interfaces = LoadBalancerNetworkInterfacesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.load_balancer_probes = LoadBalancerProbesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.network_interfaces = NetworkInterfacesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.network_interface_ip_configurations = NetworkInterfaceIPConfigurationsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.network_interface_load_balancers = NetworkInterfaceLoadBalancersOperations( + self._client, self.config, self._serialize, self._deserialize) + self.network_security_groups = NetworkSecurityGroupsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.security_rules = SecurityRulesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.default_security_rules = DefaultSecurityRulesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.network_watchers = NetworkWatchersOperations( + self._client, self.config, self._serialize, self._deserialize) + self.packet_captures = PacketCapturesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.public_ip_addresses = PublicIPAddressesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.route_filters = RouteFiltersOperations( + self._client, self.config, self._serialize, self._deserialize) + self.route_filter_rules = RouteFilterRulesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.route_tables = RouteTablesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.routes = RoutesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.bgp_service_communities = BgpServiceCommunitiesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.usages = UsagesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.virtual_networks = VirtualNetworksOperations( + self._client, self.config, self._serialize, self._deserialize) + self.subnets = SubnetsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.virtual_network_peerings = VirtualNetworkPeeringsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.virtual_network_gateways = VirtualNetworkGatewaysOperations( + self._client, self.config, self._serialize, self._deserialize) + self.virtual_network_gateway_connections = VirtualNetworkGatewayConnectionsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.local_network_gateways = LocalNetworkGatewaysOperations( + self._client, self.config, self._serialize, self._deserialize) + + def check_dns_name_availability( + self, location, domain_name_label, custom_headers=None, raw=False, **operation_config): + """Checks whether a domain name in the cloudapp.azure.com zone is + available for use. + + :param location: The location of the domain name. + :type location: str + :param domain_name_label: The domain name to be verified. It must + conform to the following regular expression: + ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. + :type domain_name_label: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`DnsNameAvailabilityResult + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`DnsNameAvailabilityResult + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + api_version = "2017-09-01" + + # Construct URL + url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/CheckDnsNameAvailability' + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['domainNameLabel'] = self._serialize.query("domain_name_label", domain_name_label, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('DnsNameAvailabilityResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/__init__.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/__init__.py new file mode 100644 index 000000000000..be5f605a5d1a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/__init__.py @@ -0,0 +1,84 @@ +# 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 .application_gateways_operations import ApplicationGatewaysOperations +from .application_security_groups_operations import ApplicationSecurityGroupsOperations +from .available_endpoint_services_operations import AvailableEndpointServicesOperations +from .express_route_circuit_authorizations_operations import ExpressRouteCircuitAuthorizationsOperations +from .express_route_circuit_peerings_operations import ExpressRouteCircuitPeeringsOperations +from .express_route_circuits_operations import ExpressRouteCircuitsOperations +from .express_route_service_providers_operations import ExpressRouteServiceProvidersOperations +from .load_balancers_operations import LoadBalancersOperations +from .load_balancer_backend_address_pools_operations import LoadBalancerBackendAddressPoolsOperations +from .load_balancer_frontend_ip_configurations_operations import LoadBalancerFrontendIPConfigurationsOperations +from .inbound_nat_rules_operations import InboundNatRulesOperations +from .load_balancer_load_balancing_rules_operations import LoadBalancerLoadBalancingRulesOperations +from .load_balancer_network_interfaces_operations import LoadBalancerNetworkInterfacesOperations +from .load_balancer_probes_operations import LoadBalancerProbesOperations +from .network_interfaces_operations import NetworkInterfacesOperations +from .network_interface_ip_configurations_operations import NetworkInterfaceIPConfigurationsOperations +from .network_interface_load_balancers_operations import NetworkInterfaceLoadBalancersOperations +from .network_security_groups_operations import NetworkSecurityGroupsOperations +from .security_rules_operations import SecurityRulesOperations +from .default_security_rules_operations import DefaultSecurityRulesOperations +from .network_watchers_operations import NetworkWatchersOperations +from .packet_captures_operations import PacketCapturesOperations +from .public_ip_addresses_operations import PublicIPAddressesOperations +from .route_filters_operations import RouteFiltersOperations +from .route_filter_rules_operations import RouteFilterRulesOperations +from .route_tables_operations import RouteTablesOperations +from .routes_operations import RoutesOperations +from .bgp_service_communities_operations import BgpServiceCommunitiesOperations +from .usages_operations import UsagesOperations +from .virtual_networks_operations import VirtualNetworksOperations +from .subnets_operations import SubnetsOperations +from .virtual_network_peerings_operations import VirtualNetworkPeeringsOperations +from .virtual_network_gateways_operations import VirtualNetworkGatewaysOperations +from .virtual_network_gateway_connections_operations import VirtualNetworkGatewayConnectionsOperations +from .local_network_gateways_operations import LocalNetworkGatewaysOperations + +__all__ = [ + 'ApplicationGatewaysOperations', + 'ApplicationSecurityGroupsOperations', + 'AvailableEndpointServicesOperations', + 'ExpressRouteCircuitAuthorizationsOperations', + 'ExpressRouteCircuitPeeringsOperations', + 'ExpressRouteCircuitsOperations', + 'ExpressRouteServiceProvidersOperations', + 'LoadBalancersOperations', + 'LoadBalancerBackendAddressPoolsOperations', + 'LoadBalancerFrontendIPConfigurationsOperations', + 'InboundNatRulesOperations', + 'LoadBalancerLoadBalancingRulesOperations', + 'LoadBalancerNetworkInterfacesOperations', + 'LoadBalancerProbesOperations', + 'NetworkInterfacesOperations', + 'NetworkInterfaceIPConfigurationsOperations', + 'NetworkInterfaceLoadBalancersOperations', + 'NetworkSecurityGroupsOperations', + 'SecurityRulesOperations', + 'DefaultSecurityRulesOperations', + 'NetworkWatchersOperations', + 'PacketCapturesOperations', + 'PublicIPAddressesOperations', + 'RouteFiltersOperations', + 'RouteFilterRulesOperations', + 'RouteTablesOperations', + 'RoutesOperations', + 'BgpServiceCommunitiesOperations', + 'UsagesOperations', + 'VirtualNetworksOperations', + 'SubnetsOperations', + 'VirtualNetworkPeeringsOperations', + 'VirtualNetworkGatewaysOperations', + 'VirtualNetworkGatewayConnectionsOperations', + 'LocalNetworkGatewaysOperations', +] diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/application_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/application_gateways_operations.py new file mode 100644 index 000000000000..e0d29f301e9b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/application_gateways_operations.py @@ -0,0 +1,913 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller + +from .. import models + + +class ApplicationGatewaysOperations(object): + """ApplicationGatewaysOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def delete( + self, resource_group_name, application_gateway_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified application gateway. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param application_gateway_name: The name of the application gateway. + :type application_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationGatewayName': self._serialize.url("application_gateway_name", application_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.delete(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [202, 204, 200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get( + self, resource_group_name, application_gateway_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified application gateway. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param application_gateway_name: The name of the application gateway. + :type application_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`ApplicationGateway + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`ApplicationGateway + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationGatewayName': self._serialize.url("application_gateway_name", application_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ApplicationGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, application_gateway_name, parameters, custom_headers=None, raw=False, **operation_config): + """Creates or updates the specified application gateway. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param application_gateway_name: The name of the application gateway. + :type application_gateway_name: str + :param parameters: Parameters supplied to the create or update + application gateway operation. + :type parameters: :class:`ApplicationGateway + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`ApplicationGateway + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationGatewayName': self._serialize.url("application_gateway_name", application_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ApplicationGateway') + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [201, 200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 201: + deserialized = self._deserialize('ApplicationGateway', response) + if response.status_code == 200: + deserialized = self._deserialize('ApplicationGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Lists all application gateways in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`ApplicationGateway + ` + :rtype: :class:`ApplicationGatewayPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ApplicationGatewayPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ApplicationGatewayPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all the application gateways in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`ApplicationGateway + ` + :rtype: :class:`ApplicationGatewayPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGateways' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ApplicationGatewayPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ApplicationGatewayPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def start( + self, resource_group_name, application_gateway_name, custom_headers=None, raw=False, **operation_config): + """Starts the specified application gateway. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param application_gateway_name: The name of the application gateway. + :type application_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/start' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationGatewayName': self._serialize.url("application_gateway_name", application_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def stop( + self, resource_group_name, application_gateway_name, custom_headers=None, raw=False, **operation_config): + """Stops the specified application gateway in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param application_gateway_name: The name of the application gateway. + :type application_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/stop' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationGatewayName': self._serialize.url("application_gateway_name", application_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def backend_health( + self, resource_group_name, application_gateway_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets the backend health of the specified application gateway in a + resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param application_gateway_name: The name of the application gateway. + :type application_gateway_name: str + :param expand: Expands BackendAddressPool and BackendHttpSettings + referenced in backend health. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`ApplicationGatewayBackendHealth + ` + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendhealth' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationGatewayName': self._serialize.url("application_gateway_name", application_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ApplicationGatewayBackendHealth', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list_available_waf_rule_sets( + self, custom_headers=None, raw=False, **operation_config): + """Lists all available web application firewall rule sets. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`ApplicationGatewayAvailableWafRuleSetsResult + ` + or :class:`ClientRawResponse` if + raw=true + :rtype: :class:`ApplicationGatewayAvailableWafRuleSetsResult + ` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableWafRuleSets' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ApplicationGatewayAvailableWafRuleSetsResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def list_available_ssl_options( + self, custom_headers=None, raw=False, **operation_config): + """Lists available Ssl options for configuring Ssl policy. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`ApplicationGatewayAvailableSslOptions + ` + or :class:`ClientRawResponse` if + raw=true + :rtype: :class:`ApplicationGatewayAvailableSslOptions + ` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ApplicationGatewayAvailableSslOptions', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def list_available_ssl_predefined_policies( + self, custom_headers=None, raw=False, **operation_config): + """Lists all SSL predefined policies for configuring Ssl policy. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of + :class:`ApplicationGatewaySslPredefinedPolicy + ` + :rtype: :class:`ApplicationGatewaySslPredefinedPolicyPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ApplicationGatewaySslPredefinedPolicyPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ApplicationGatewaySslPredefinedPolicyPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def get_ssl_predefined_policy( + self, predefined_policy_name, custom_headers=None, raw=False, **operation_config): + """Gets Ssl predefined policy with the specified policy name. + + :param predefined_policy_name: Name of Ssl predefined policy. + :type predefined_policy_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`ApplicationGatewaySslPredefinedPolicy + ` + or :class:`ClientRawResponse` if + raw=true + :rtype: :class:`ApplicationGatewaySslPredefinedPolicy + ` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies/{predefinedPolicyName}' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'predefinedPolicyName': self._serialize.url("predefined_policy_name", predefined_policy_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ApplicationGatewaySslPredefinedPolicy', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/application_security_groups_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/application_security_groups_operations.py new file mode 100644 index 000000000000..78f5e42360c7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/application_security_groups_operations.py @@ -0,0 +1,416 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller + +from .. import models + + +class ApplicationSecurityGroupsOperations(object): + """ApplicationSecurityGroupsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def delete( + self, resource_group_name, application_security_group_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified application security group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param application_security_group_name: The name of the application + security group. + :type application_security_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationSecurityGroupName': self._serialize.url("application_security_group_name", application_security_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.delete(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [204, 202, 200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get( + self, resource_group_name, application_security_group_name, custom_headers=None, raw=False, **operation_config): + """Gets information about the specified application security group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param application_security_group_name: The name of the application + security group. + :type application_security_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`ApplicationSecurityGroup + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`ApplicationSecurityGroup + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationSecurityGroupName': self._serialize.url("application_security_group_name", application_security_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ApplicationSecurityGroup', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, application_security_group_name, parameters, custom_headers=None, raw=False, **operation_config): + """Creates or updates an application security group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param application_security_group_name: The name of the application + security group. + :type application_security_group_name: str + :param parameters: Parameters supplied to the create or update + ApplicationSecurityGroup operation. + :type parameters: :class:`ApplicationSecurityGroup + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`ApplicationSecurityGroup + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationSecurityGroupName': self._serialize.url("application_security_group_name", application_security_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ApplicationSecurityGroup') + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [201, 200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 201: + deserialized = self._deserialize('ApplicationSecurityGroup', response) + if response.status_code == 200: + deserialized = self._deserialize('ApplicationSecurityGroup', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all application security groups in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`ApplicationSecurityGroup + ` + :rtype: :class:`ApplicationSecurityGroupPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationSecurityGroups' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ApplicationSecurityGroupPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ApplicationSecurityGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all the application security groups in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`ApplicationSecurityGroup + ` + :rtype: :class:`ApplicationSecurityGroupPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ApplicationSecurityGroupPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ApplicationSecurityGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/available_endpoint_services_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/available_endpoint_services_operations.py new file mode 100644 index 000000000000..ddbf60e57729 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/available_endpoint_services_operations.py @@ -0,0 +1,104 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class AvailableEndpointServicesOperations(object): + """AvailableEndpointServicesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def list( + self, location, custom_headers=None, raw=False, **operation_config): + """List what values of endpoint services are available for use. + + :param location: The location to check available endpoint services. + :type location: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`EndpointServiceResult + ` + :rtype: :class:`EndpointServiceResultPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/virtualNetworkAvailableEndpointServices' + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.EndpointServiceResultPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.EndpointServiceResultPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/bgp_service_communities_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/bgp_service_communities_operations.py new file mode 100644 index 000000000000..4fb350e287ba --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/bgp_service_communities_operations.py @@ -0,0 +1,101 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class BgpServiceCommunitiesOperations(object): + """BgpServiceCommunitiesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Gets all the available bgp service communities. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`BgpServiceCommunity + ` + :rtype: :class:`BgpServiceCommunityPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/bgpServiceCommunities' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.BgpServiceCommunityPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.BgpServiceCommunityPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/default_security_rules_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/default_security_rules_operations.py new file mode 100644 index 000000000000..7a0bb7a7d766 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/default_security_rules_operations.py @@ -0,0 +1,178 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class DefaultSecurityRulesOperations(object): + """DefaultSecurityRulesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def list( + self, resource_group_name, network_security_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all default security rules in a network security group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_security_group_name: The name of the network security + group. + :type network_security_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`SecurityRule + ` + :rtype: :class:`SecurityRulePaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkSecurityGroupName': self._serialize.url("network_security_group_name", network_security_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.SecurityRulePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.SecurityRulePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def get( + self, resource_group_name, network_security_group_name, default_security_rule_name, custom_headers=None, raw=False, **operation_config): + """Get the specified default network security rule. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_security_group_name: The name of the network security + group. + :type network_security_group_name: str + :param default_security_rule_name: The name of the default security + rule. + :type default_security_rule_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`SecurityRule + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`SecurityRule + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules/{defaultSecurityRuleName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkSecurityGroupName': self._serialize.url("network_security_group_name", network_security_group_name, 'str'), + 'defaultSecurityRuleName': self._serialize.url("default_security_rule_name", default_security_rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SecurityRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/express_route_circuit_authorizations_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/express_route_circuit_authorizations_operations.py new file mode 100644 index 000000000000..460d7997f984 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/express_route_circuit_authorizations_operations.py @@ -0,0 +1,365 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller + +from .. import models + + +class ExpressRouteCircuitAuthorizationsOperations(object): + """ExpressRouteCircuitAuthorizationsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def delete( + self, resource_group_name, circuit_name, authorization_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified authorization from the specified express route + circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param authorization_name: The name of the authorization. + :type authorization_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'authorizationName': self._serialize.url("authorization_name", authorization_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.delete(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [202, 200, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get( + self, resource_group_name, circuit_name, authorization_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified authorization from the specified express route + circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param authorization_name: The name of the authorization. + :type authorization_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`ExpressRouteCircuitAuthorization + ` + or :class:`ClientRawResponse` if + raw=true + :rtype: :class:`ExpressRouteCircuitAuthorization + ` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'authorizationName': self._serialize.url("authorization_name", authorization_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuitAuthorization', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers=None, raw=False, **operation_config): + """Creates or updates an authorization in the specified express route + circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param authorization_name: The name of the authorization. + :type authorization_name: str + :param authorization_parameters: Parameters supplied to the create or + update express route circuit authorization operation. + :type authorization_parameters: + :class:`ExpressRouteCircuitAuthorization + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`ExpressRouteCircuitAuthorization + ` + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'authorizationName': self._serialize.url("authorization_name", authorization_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(authorization_parameters, 'ExpressRouteCircuitAuthorization') + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [201, 200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 201: + deserialized = self._deserialize('ExpressRouteCircuitAuthorization', response) + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuitAuthorization', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list( + self, resource_group_name, circuit_name, custom_headers=None, raw=False, **operation_config): + """Gets all authorizations in an express route circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the circuit. + :type circuit_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of + :class:`ExpressRouteCircuitAuthorization + ` + :rtype: :class:`ExpressRouteCircuitAuthorizationPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ExpressRouteCircuitAuthorizationPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ExpressRouteCircuitAuthorizationPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/express_route_circuit_peerings_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/express_route_circuit_peerings_operations.py new file mode 100644 index 000000000000..9ea244764174 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/express_route_circuit_peerings_operations.py @@ -0,0 +1,362 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller + +from .. import models + + +class ExpressRouteCircuitPeeringsOperations(object): + """ExpressRouteCircuitPeeringsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def delete( + self, resource_group_name, circuit_name, peering_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified peering from the specified express route circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param peering_name: The name of the peering. + :type peering_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'peeringName': self._serialize.url("peering_name", peering_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.delete(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get( + self, resource_group_name, circuit_name, peering_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified authorization from the specified express route + circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param peering_name: The name of the peering. + :type peering_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`ExpressRouteCircuitPeering + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`ExpressRouteCircuitPeering + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'peeringName': self._serialize.url("peering_name", peering_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuitPeering', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers=None, raw=False, **operation_config): + """Creates or updates a peering in the specified express route circuits. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param peering_name: The name of the peering. + :type peering_name: str + :param peering_parameters: Parameters supplied to the create or update + express route circuit peering operation. + :type peering_parameters: :class:`ExpressRouteCircuitPeering + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`ExpressRouteCircuitPeering + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'peeringName': self._serialize.url("peering_name", peering_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(peering_parameters, 'ExpressRouteCircuitPeering') + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuitPeering', response) + if response.status_code == 201: + deserialized = self._deserialize('ExpressRouteCircuitPeering', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list( + self, resource_group_name, circuit_name, custom_headers=None, raw=False, **operation_config): + """Gets all peerings in a specified express route circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of + :class:`ExpressRouteCircuitPeering + ` + :rtype: :class:`ExpressRouteCircuitPeeringPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ExpressRouteCircuitPeeringPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ExpressRouteCircuitPeeringPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/express_route_circuits_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/express_route_circuits_operations.py new file mode 100644 index 000000000000..8c44fe63f329 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/express_route_circuits_operations.py @@ -0,0 +1,833 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller + +from .. import models + + +class ExpressRouteCircuitsOperations(object): + """ExpressRouteCircuitsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def delete( + self, resource_group_name, circuit_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified express route circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.delete(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [204, 202, 200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get( + self, resource_group_name, circuit_name, custom_headers=None, raw=False, **operation_config): + """Gets information about the specified express route circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of express route circuit. + :type circuit_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`ExpressRouteCircuit + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`ExpressRouteCircuit + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuit', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, circuit_name, parameters, custom_headers=None, raw=False, **operation_config): + """Creates or updates an express route circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the circuit. + :type circuit_name: str + :param parameters: Parameters supplied to the create or update express + route circuit operation. + :type parameters: :class:`ExpressRouteCircuit + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`ExpressRouteCircuit + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ExpressRouteCircuit') + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [201, 200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 201: + deserialized = self._deserialize('ExpressRouteCircuit', response) + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuit', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list_arp_table( + self, resource_group_name, circuit_name, peering_name, device_path, custom_headers=None, raw=False, **operation_config): + """Gets the currently advertised ARP table associated with the express + route circuit in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param peering_name: The name of the peering. + :type peering_name: str + :param device_path: The path of the device. + :type device_path: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`ExpressRouteCircuitsArpTableListResult + ` + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/arpTables/{devicePath}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'peeringName': self._serialize.url("peering_name", peering_name, 'str'), + 'devicePath': self._serialize.url("device_path", device_path, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuitsArpTableListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list_routes_table( + self, resource_group_name, circuit_name, peering_name, device_path, custom_headers=None, raw=False, **operation_config): + """Gets the currently advertised routes table associated with the express + route circuit in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param peering_name: The name of the peering. + :type peering_name: str + :param device_path: The path of the device. + :type device_path: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns + :class:`ExpressRouteCircuitsRoutesTableListResult + ` + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/routeTables/{devicePath}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'peeringName': self._serialize.url("peering_name", peering_name, 'str'), + 'devicePath': self._serialize.url("device_path", device_path, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuitsRoutesTableListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list_routes_table_summary( + self, resource_group_name, circuit_name, peering_name, device_path, custom_headers=None, raw=False, **operation_config): + """Gets the currently advertised routes table summary associated with the + express route circuit in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param peering_name: The name of the peering. + :type peering_name: str + :param device_path: The path of the device. + :type device_path: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns + :class:`ExpressRouteCircuitsRoutesTableSummaryListResult + ` + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/routeTablesSummary/{devicePath}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'peeringName': self._serialize.url("peering_name", peering_name, 'str'), + 'devicePath': self._serialize.url("device_path", device_path, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuitsRoutesTableSummaryListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get_stats( + self, resource_group_name, circuit_name, custom_headers=None, raw=False, **operation_config): + """Gets all the stats from an express route circuit in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`ExpressRouteCircuitStats + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`ExpressRouteCircuitStats + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/stats' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuitStats', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_peering_stats( + self, resource_group_name, circuit_name, peering_name, custom_headers=None, raw=False, **operation_config): + """Gets all stats from an express route circuit in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param peering_name: The name of the peering. + :type peering_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`ExpressRouteCircuitStats + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`ExpressRouteCircuitStats + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/stats' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'peeringName': self._serialize.url("peering_name", peering_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuitStats', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all the express route circuits in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`ExpressRouteCircuit + ` + :rtype: :class:`ExpressRouteCircuitPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ExpressRouteCircuitPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ExpressRouteCircuitPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all the express route circuits in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`ExpressRouteCircuit + ` + :rtype: :class:`ExpressRouteCircuitPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCircuits' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ExpressRouteCircuitPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ExpressRouteCircuitPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/express_route_service_providers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/express_route_service_providers_operations.py new file mode 100644 index 000000000000..046058662ce5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/express_route_service_providers_operations.py @@ -0,0 +1,102 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class ExpressRouteServiceProvidersOperations(object): + """ExpressRouteServiceProvidersOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Gets all the available express route service providers. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of + :class:`ExpressRouteServiceProvider + ` + :rtype: :class:`ExpressRouteServiceProviderPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteServiceProviders' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ExpressRouteServiceProviderPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ExpressRouteServiceProviderPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/inbound_nat_rules_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/inbound_nat_rules_operations.py new file mode 100644 index 000000000000..546279fcde12 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/inbound_nat_rules_operations.py @@ -0,0 +1,364 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller + +from .. import models + + +class InboundNatRulesOperations(object): + """InboundNatRulesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def list( + self, resource_group_name, load_balancer_name, custom_headers=None, raw=False, **operation_config): + """Gets all the inbound nat rules in a load balancer. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`InboundNatRule + ` + :rtype: :class:`InboundNatRulePaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.InboundNatRulePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.InboundNatRulePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def delete( + self, resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified load balancer inbound nat rule. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param inbound_nat_rule_name: The name of the inbound nat rule. + :type inbound_nat_rule_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'inboundNatRuleName': self._serialize.url("inbound_nat_rule_name", inbound_nat_rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.delete(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [204, 202, 200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get( + self, resource_group_name, load_balancer_name, inbound_nat_rule_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets the specified load balancer inbound nat rule. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param inbound_nat_rule_name: The name of the inbound nat rule. + :type inbound_nat_rule_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`InboundNatRule + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`InboundNatRule + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'inboundNatRuleName': self._serialize.url("inbound_nat_rule_name", inbound_nat_rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('InboundNatRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers=None, raw=False, **operation_config): + """Creates or updates a load balancer inbound nat rule. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param inbound_nat_rule_name: The name of the inbound nat rule. + :type inbound_nat_rule_name: str + :param inbound_nat_rule_parameters: Parameters supplied to the create + or update inbound nat rule operation. + :type inbound_nat_rule_parameters: :class:`InboundNatRule + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`InboundNatRule + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'inboundNatRuleName': self._serialize.url("inbound_nat_rule_name", inbound_nat_rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(inbound_nat_rule_parameters, 'InboundNatRule') + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [201, 200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 201: + deserialized = self._deserialize('InboundNatRule', response) + if response.status_code == 200: + deserialized = self._deserialize('InboundNatRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/load_balancer_backend_address_pools_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/load_balancer_backend_address_pools_operations.py new file mode 100644 index 000000000000..5c1562119314 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/load_balancer_backend_address_pools_operations.py @@ -0,0 +1,176 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class LoadBalancerBackendAddressPoolsOperations(object): + """LoadBalancerBackendAddressPoolsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def list( + self, resource_group_name, load_balancer_name, custom_headers=None, raw=False, **operation_config): + """Gets all the load balancer backed address pools. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`BackendAddressPool + ` + :rtype: :class:`BackendAddressPoolPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.BackendAddressPoolPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.BackendAddressPoolPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def get( + self, resource_group_name, load_balancer_name, backend_address_pool_name, custom_headers=None, raw=False, **operation_config): + """Gets load balancer backend address pool. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param backend_address_pool_name: The name of the backend address + pool. + :type backend_address_pool_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`BackendAddressPool + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`BackendAddressPool + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'backendAddressPoolName': self._serialize.url("backend_address_pool_name", backend_address_pool_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('BackendAddressPool', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/load_balancer_frontend_ip_configurations_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/load_balancer_frontend_ip_configurations_operations.py new file mode 100644 index 000000000000..66d21c28efdd --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/load_balancer_frontend_ip_configurations_operations.py @@ -0,0 +1,176 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class LoadBalancerFrontendIPConfigurationsOperations(object): + """LoadBalancerFrontendIPConfigurationsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def list( + self, resource_group_name, load_balancer_name, custom_headers=None, raw=False, **operation_config): + """Gets all the load balancer frontend IP configurations. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`FrontendIPConfiguration + ` + :rtype: :class:`FrontendIPConfigurationPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.FrontendIPConfigurationPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.FrontendIPConfigurationPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def get( + self, resource_group_name, load_balancer_name, frontend_ip_configuration_name, custom_headers=None, raw=False, **operation_config): + """Gets load balancer frontend IP configuration. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param frontend_ip_configuration_name: The name of the frontend IP + configuration. + :type frontend_ip_configuration_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`FrontendIPConfiguration + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`FrontendIPConfiguration + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations/{frontendIPConfigurationName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'frontendIPConfigurationName': self._serialize.url("frontend_ip_configuration_name", frontend_ip_configuration_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('FrontendIPConfiguration', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/load_balancer_load_balancing_rules_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/load_balancer_load_balancing_rules_operations.py new file mode 100644 index 000000000000..0ee9f93a243a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/load_balancer_load_balancing_rules_operations.py @@ -0,0 +1,175 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class LoadBalancerLoadBalancingRulesOperations(object): + """LoadBalancerLoadBalancingRulesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def list( + self, resource_group_name, load_balancer_name, custom_headers=None, raw=False, **operation_config): + """Gets all the load balancing rules in a load balancer. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`LoadBalancingRule + ` + :rtype: :class:`LoadBalancingRulePaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.LoadBalancingRulePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.LoadBalancingRulePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def get( + self, resource_group_name, load_balancer_name, load_balancing_rule_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified load balancer load balancing rule. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param load_balancing_rule_name: The name of the load balancing rule. + :type load_balancing_rule_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`LoadBalancingRule + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`LoadBalancingRule + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules/{loadBalancingRuleName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'loadBalancingRuleName': self._serialize.url("load_balancing_rule_name", load_balancing_rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('LoadBalancingRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/load_balancer_network_interfaces_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/load_balancer_network_interfaces_operations.py new file mode 100644 index 000000000000..6a09c0d821dd --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/load_balancer_network_interfaces_operations.py @@ -0,0 +1,107 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class LoadBalancerNetworkInterfacesOperations(object): + """LoadBalancerNetworkInterfacesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def list( + self, resource_group_name, load_balancer_name, custom_headers=None, raw=False, **operation_config): + """Gets associated load balancer network interfaces. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`NetworkInterface + ` + :rtype: :class:`NetworkInterfacePaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/networkInterfaces' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.NetworkInterfacePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkInterfacePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/load_balancer_probes_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/load_balancer_probes_operations.py new file mode 100644 index 000000000000..e7b645aa7524 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/load_balancer_probes_operations.py @@ -0,0 +1,173 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class LoadBalancerProbesOperations(object): + """LoadBalancerProbesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def list( + self, resource_group_name, load_balancer_name, custom_headers=None, raw=False, **operation_config): + """Gets all the load balancer probes. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`Probe + ` + :rtype: :class:`ProbePaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ProbePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ProbePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def get( + self, resource_group_name, load_balancer_name, probe_name, custom_headers=None, raw=False, **operation_config): + """Gets load balancer probe. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param probe_name: The name of the probe. + :type probe_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`Probe ` + or :class:`ClientRawResponse` if + raw=true + :rtype: :class:`Probe ` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'probeName': self._serialize.url("probe_name", probe_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Probe', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/load_balancers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/load_balancers_operations.py new file mode 100644 index 000000000000..404756c13c3a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/load_balancers_operations.py @@ -0,0 +1,417 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller + +from .. import models + + +class LoadBalancersOperations(object): + """LoadBalancersOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def delete( + self, resource_group_name, load_balancer_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified load balancer. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.delete(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [204, 202, 200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get( + self, resource_group_name, load_balancer_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets the specified load balancer. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`LoadBalancer + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`LoadBalancer + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('LoadBalancer', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, load_balancer_name, parameters, custom_headers=None, raw=False, **operation_config): + """Creates or updates a load balancer. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param parameters: Parameters supplied to the create or update load + balancer operation. + :type parameters: :class:`LoadBalancer + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`LoadBalancer + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'LoadBalancer') + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [201, 200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 201: + deserialized = self._deserialize('LoadBalancer', response) + if response.status_code == 200: + deserialized = self._deserialize('LoadBalancer', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all the load balancers in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`LoadBalancer + ` + :rtype: :class:`LoadBalancerPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/loadBalancers' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.LoadBalancerPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.LoadBalancerPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all the load balancers in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`LoadBalancer + ` + :rtype: :class:`LoadBalancerPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.LoadBalancerPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.LoadBalancerPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/local_network_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/local_network_gateways_operations.py new file mode 100644 index 000000000000..3adbd6284754 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/local_network_gateways_operations.py @@ -0,0 +1,352 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller + +from .. import models + + +class LocalNetworkGatewaysOperations(object): + """LocalNetworkGatewaysOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def create_or_update( + self, resource_group_name, local_network_gateway_name, parameters, custom_headers=None, raw=False, **operation_config): + """Creates or updates a local network gateway in the specified resource + group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param local_network_gateway_name: The name of the local network + gateway. + :type local_network_gateway_name: str + :param parameters: Parameters supplied to the create or update local + network gateway operation. + :type parameters: :class:`LocalNetworkGateway + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`LocalNetworkGateway + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'localNetworkGatewayName': self._serialize.url("local_network_gateway_name", local_network_gateway_name, 'str', min_length=1), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'LocalNetworkGateway') + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [201, 200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 201: + deserialized = self._deserialize('LocalNetworkGateway', response) + if response.status_code == 200: + deserialized = self._deserialize('LocalNetworkGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get( + self, resource_group_name, local_network_gateway_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified local network gateway in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param local_network_gateway_name: The name of the local network + gateway. + :type local_network_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`LocalNetworkGateway + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`LocalNetworkGateway + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'localNetworkGatewayName': self._serialize.url("local_network_gateway_name", local_network_gateway_name, 'str', min_length=1), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('LocalNetworkGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def delete( + self, resource_group_name, local_network_gateway_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified local network gateway. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param local_network_gateway_name: The name of the local network + gateway. + :type local_network_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'localNetworkGatewayName': self._serialize.url("local_network_gateway_name", local_network_gateway_name, 'str', min_length=1), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.delete(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [204, 200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all the local network gateways in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`LocalNetworkGateway + ` + :rtype: :class:`LocalNetworkGatewayPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.LocalNetworkGatewayPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.LocalNetworkGatewayPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/network_interface_ip_configurations_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/network_interface_ip_configurations_operations.py new file mode 100644 index 000000000000..7dd99f984893 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/network_interface_ip_configurations_operations.py @@ -0,0 +1,176 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class NetworkInterfaceIPConfigurationsOperations(object): + """NetworkInterfaceIPConfigurationsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def list( + self, resource_group_name, network_interface_name, custom_headers=None, raw=False, **operation_config): + """Get all ip configurations in a network interface. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of + :class:`NetworkInterfaceIPConfiguration + ` + :rtype: :class:`NetworkInterfaceIPConfigurationPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.NetworkInterfaceIPConfigurationPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkInterfaceIPConfigurationPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def get( + self, resource_group_name, network_interface_name, ip_configuration_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified network interface ip configuration. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param ip_configuration_name: The name of the ip configuration name. + :type ip_configuration_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`NetworkInterfaceIPConfiguration + ` + or :class:`ClientRawResponse` if + raw=true + :rtype: :class:`NetworkInterfaceIPConfiguration + ` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations/{ipConfigurationName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'ipConfigurationName': self._serialize.url("ip_configuration_name", ip_configuration_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkInterfaceIPConfiguration', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/network_interface_load_balancers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/network_interface_load_balancers_operations.py new file mode 100644 index 000000000000..c9d6da8b408c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/network_interface_load_balancers_operations.py @@ -0,0 +1,107 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class NetworkInterfaceLoadBalancersOperations(object): + """NetworkInterfaceLoadBalancersOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def list( + self, resource_group_name, network_interface_name, custom_headers=None, raw=False, **operation_config): + """List all load balancers in a network interface. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`LoadBalancer + ` + :rtype: :class:`LoadBalancerPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/loadBalancers' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.LoadBalancerPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.LoadBalancerPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/network_interfaces_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/network_interfaces_operations.py new file mode 100644 index 000000000000..7bb00f274146 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/network_interfaces_operations.py @@ -0,0 +1,835 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller + +from .. import models + + +class NetworkInterfacesOperations(object): + """NetworkInterfacesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def delete( + self, resource_group_name, network_interface_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified network interface. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + api_version = "2017-09-01" + + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.delete(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [204, 202, 200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get( + self, resource_group_name, network_interface_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets information about the specified network interface. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`NetworkInterface + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`NetworkInterface + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + api_version = "2017-09-01" + + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkInterface', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, network_interface_name, parameters, custom_headers=None, raw=False, **operation_config): + """Creates or updates a network interface. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param parameters: Parameters supplied to the create or update network + interface operation. + :type parameters: :class:`NetworkInterface + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`NetworkInterface + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + api_version = "2017-09-01" + + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'NetworkInterface') + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [201, 200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 201: + deserialized = self._deserialize('NetworkInterface', response) + if response.status_code == 200: + deserialized = self._deserialize('NetworkInterface', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all network interfaces in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`NetworkInterface + ` + :rtype: :class:`NetworkInterfacePaged + ` + :raises: :class:`CloudError` + """ + api_version = "2017-09-01" + + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkInterfaces' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.NetworkInterfacePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkInterfacePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all network interfaces in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`NetworkInterface + ` + :rtype: :class:`NetworkInterfacePaged + ` + :raises: :class:`CloudError` + """ + api_version = "2017-09-01" + + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.NetworkInterfacePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkInterfacePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def get_effective_route_table( + self, resource_group_name, network_interface_name, custom_headers=None, raw=False, **operation_config): + """Gets all route tables applied to a network interface. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`EffectiveRouteListResult + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + api_version = "2017-09-01" + + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveRouteTable' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('EffectiveRouteListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list_effective_network_security_groups( + self, resource_group_name, network_interface_name, custom_headers=None, raw=False, **operation_config): + """Gets all network security groups applied to a network interface. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`EffectiveNetworkSecurityGroupListResult + ` + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + api_version = "2017-09-01" + + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveNetworkSecurityGroups' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('EffectiveNetworkSecurityGroupListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list_virtual_machine_scale_set_vm_network_interfaces( + self, resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers=None, raw=False, **operation_config): + """Gets information about all network interfaces in a virtual machine in a + virtual machine scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_machine_scale_set_name: The name of the virtual machine + scale set. + :type virtual_machine_scale_set_name: str + :param virtualmachine_index: The virtual machine index. + :type virtualmachine_index: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`NetworkInterface + ` + :rtype: :class:`NetworkInterfacePaged + ` + :raises: :class:`CloudError` + """ + api_version = "2017-03-30" + + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineScaleSetName': self._serialize.url("virtual_machine_scale_set_name", virtual_machine_scale_set_name, 'str'), + 'virtualmachineIndex': self._serialize.url("virtualmachine_index", virtualmachine_index, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.NetworkInterfacePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkInterfacePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def list_virtual_machine_scale_set_network_interfaces( + self, resource_group_name, virtual_machine_scale_set_name, custom_headers=None, raw=False, **operation_config): + """Gets all network interfaces in a virtual machine scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_machine_scale_set_name: The name of the virtual machine + scale set. + :type virtual_machine_scale_set_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`NetworkInterface + ` + :rtype: :class:`NetworkInterfacePaged + ` + :raises: :class:`CloudError` + """ + api_version = "2017-03-30" + + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/networkInterfaces' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineScaleSetName': self._serialize.url("virtual_machine_scale_set_name", virtual_machine_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.NetworkInterfacePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkInterfacePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def get_virtual_machine_scale_set_network_interface( + self, resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Get the specified network interface in a virtual machine scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_machine_scale_set_name: The name of the virtual machine + scale set. + :type virtual_machine_scale_set_name: str + :param virtualmachine_index: The virtual machine index. + :type virtualmachine_index: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`NetworkInterface + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`NetworkInterface + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + api_version = "2017-03-30" + + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineScaleSetName': self._serialize.url("virtual_machine_scale_set_name", virtual_machine_scale_set_name, 'str'), + 'virtualmachineIndex': self._serialize.url("virtualmachine_index", virtualmachine_index, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkInterface', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/network_security_groups_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/network_security_groups_operations.py new file mode 100644 index 000000000000..103ecf4d4317 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/network_security_groups_operations.py @@ -0,0 +1,421 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller + +from .. import models + + +class NetworkSecurityGroupsOperations(object): + """NetworkSecurityGroupsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def delete( + self, resource_group_name, network_security_group_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified network security group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_security_group_name: The name of the network security + group. + :type network_security_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkSecurityGroupName': self._serialize.url("network_security_group_name", network_security_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.delete(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [202, 200, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get( + self, resource_group_name, network_security_group_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets the specified network security group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_security_group_name: The name of the network security + group. + :type network_security_group_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`NetworkSecurityGroup + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`NetworkSecurityGroup + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkSecurityGroupName': self._serialize.url("network_security_group_name", network_security_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkSecurityGroup', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, network_security_group_name, parameters, custom_headers=None, raw=False, **operation_config): + """Creates or updates a network security group in the specified resource + group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_security_group_name: The name of the network security + group. + :type network_security_group_name: str + :param parameters: Parameters supplied to the create or update network + security group operation. + :type parameters: :class:`NetworkSecurityGroup + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`NetworkSecurityGroup + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkSecurityGroupName': self._serialize.url("network_security_group_name", network_security_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'NetworkSecurityGroup') + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [201, 200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 201: + deserialized = self._deserialize('NetworkSecurityGroup', response) + if response.status_code == 200: + deserialized = self._deserialize('NetworkSecurityGroup', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all network security groups in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`NetworkSecurityGroup + ` + :rtype: :class:`NetworkSecurityGroupPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityGroups' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.NetworkSecurityGroupPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkSecurityGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all network security groups in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`NetworkSecurityGroup + ` + :rtype: :class:`NetworkSecurityGroupPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.NetworkSecurityGroupPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkSecurityGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/network_watchers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/network_watchers_operations.py new file mode 100644 index 000000000000..0c00aeacf1d4 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/network_watchers_operations.py @@ -0,0 +1,1260 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller + +from .. import models + + +class NetworkWatchersOperations(object): + """NetworkWatchersOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def create_or_update( + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, **operation_config): + """Creates or updates a network watcher in the specified resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. + :type network_watcher_name: str + :param parameters: Parameters that define the network watcher + resource. + :type parameters: :class:`NetworkWatcher + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`NetworkWatcher + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`NetworkWatcher + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'NetworkWatcher') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkWatcher', response) + if response.status_code == 201: + deserialized = self._deserialize('NetworkWatcher', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get( + self, resource_group_name, network_watcher_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified network watcher by resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. + :type network_watcher_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`NetworkWatcher + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`NetworkWatcher + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkWatcher', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def delete( + self, resource_group_name, network_watcher_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified network watcher resource. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. + :type network_watcher_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.delete(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all network watchers by resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`NetworkWatcher + ` + :rtype: :class:`NetworkWatcherPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.NetworkWatcherPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkWatcherPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all network watchers by subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`NetworkWatcher + ` + :rtype: :class:`NetworkWatcherPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkWatchers' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.NetworkWatcherPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkWatcherPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def get_topology( + self, resource_group_name, network_watcher_name, target_resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets the current network topology by resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. + :type network_watcher_name: str + :param target_resource_group_name: The name of the target resource + group to perform topology on. + :type target_resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`Topology + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`Topology + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + parameters = models.TopologyParameters(target_resource_group_name=target_resource_group_name) + + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/topology' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'TopologyParameters') + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Topology', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def verify_ip_flow( + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, **operation_config): + """Verify IP flow from the specified VM to a location given the currently + configured NSG rules. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. + :type network_watcher_name: str + :param parameters: Parameters that define the IP flow to be verified. + :type parameters: :class:`VerificationIPFlowParameters + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`VerificationIPFlowResult + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/ipFlowVerify' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'VerificationIPFlowParameters') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VerificationIPFlowResult', response) + if response.status_code == 202: + deserialized = self._deserialize('VerificationIPFlowResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get_next_hop( + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, **operation_config): + """Gets the next hop from the specified VM. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. + :type network_watcher_name: str + :param parameters: Parameters that define the source and destination + endpoint. + :type parameters: :class:`NextHopParameters + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`NextHopResult + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/nextHop' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'NextHopParameters') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NextHopResult', response) + if response.status_code == 202: + deserialized = self._deserialize('NextHopResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get_vm_security_rules( + self, resource_group_name, network_watcher_name, target_resource_id, custom_headers=None, raw=False, **operation_config): + """Gets the configured and effective security group rules on the specified + VM. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. + :type network_watcher_name: str + :param target_resource_id: ID of the target VM. + :type target_resource_id: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`SecurityGroupViewResult + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + parameters = models.SecurityGroupViewParameters(target_resource_id=target_resource_id) + + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/securityGroupView' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'SecurityGroupViewParameters') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SecurityGroupViewResult', response) + if response.status_code == 202: + deserialized = self._deserialize('SecurityGroupViewResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get_troubleshooting( + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, **operation_config): + """Initiate troubleshooting on a specified resource. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher resource. + :type network_watcher_name: str + :param parameters: Parameters that define the resource to + troubleshoot. + :type parameters: :class:`TroubleshootingParameters + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`TroubleshootingResult + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/troubleshoot' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'TroubleshootingParameters') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('TroubleshootingResult', response) + if response.status_code == 202: + deserialized = self._deserialize('TroubleshootingResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get_troubleshooting_result( + self, resource_group_name, network_watcher_name, target_resource_id, custom_headers=None, raw=False, **operation_config): + """Get the last completed troubleshooting result on a specified resource. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher resource. + :type network_watcher_name: str + :param target_resource_id: The target resource ID to query the + troubleshooting result. + :type target_resource_id: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`TroubleshootingResult + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + parameters = models.QueryTroubleshootingParameters(target_resource_id=target_resource_id) + + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryTroubleshootResult' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'QueryTroubleshootingParameters') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('TroubleshootingResult', response) + if response.status_code == 202: + deserialized = self._deserialize('TroubleshootingResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def set_flow_log_configuration( + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, **operation_config): + """Configures flow log on a specified resource. + + :param resource_group_name: The name of the network watcher resource + group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher resource. + :type network_watcher_name: str + :param parameters: Parameters that define the configuration of flow + log. + :type parameters: :class:`FlowLogInformation + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`FlowLogInformation + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/configureFlowLog' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'FlowLogInformation') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('FlowLogInformation', response) + if response.status_code == 202: + deserialized = self._deserialize('FlowLogInformation', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get_flow_log_status( + self, resource_group_name, network_watcher_name, target_resource_id, custom_headers=None, raw=False, **operation_config): + """Queries status of flow log on a specified resource. + + :param resource_group_name: The name of the network watcher resource + group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher resource. + :type network_watcher_name: str + :param target_resource_id: The target resource where getting the flow + logging status. + :type target_resource_id: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`FlowLogInformation + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + parameters = models.FlowLogStatusParameters(target_resource_id=target_resource_id) + + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryFlowLogStatus' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'FlowLogStatusParameters') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('FlowLogInformation', response) + if response.status_code == 202: + deserialized = self._deserialize('FlowLogInformation', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def check_connectivity( + self, resource_group_name, network_watcher_name, source, destination, custom_headers=None, raw=False, **operation_config): + """Verifies the possibility of establishing a direct TCP connection from a + virtual machine to a given endpoint including another VM or an + arbitrary remote server. + + :param resource_group_name: The name of the network watcher resource + group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher resource. + :type network_watcher_name: str + :param source: + :type source: :class:`ConnectivitySource + ` + :param destination: + :type destination: :class:`ConnectivityDestination + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`ConnectivityInformation + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + parameters = models.ConnectivityParameters(source=source, destination=destination) + + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectivityCheck' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ConnectivityParameters') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ConnectivityInformation', response) + if response.status_code == 202: + deserialized = self._deserialize('ConnectivityInformation', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/packet_captures_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/packet_captures_operations.py new file mode 100644 index 000000000000..720c7cfd35d5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/packet_captures_operations.py @@ -0,0 +1,535 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller + +from .. import models + + +class PacketCapturesOperations(object): + """PacketCapturesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def create( + self, resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers=None, raw=False, **operation_config): + """Create and start a packet capture on the specified VM. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. + :type network_watcher_name: str + :param packet_capture_name: The name of the packet capture session. + :type packet_capture_name: str + :param parameters: Parameters that define the create packet capture + operation. + :type parameters: :class:`PacketCapture + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`PacketCaptureResult + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'packetCaptureName': self._serialize.url("packet_capture_name", packet_capture_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'PacketCapture') + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 201: + deserialized = self._deserialize('PacketCaptureResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get( + self, resource_group_name, network_watcher_name, packet_capture_name, custom_headers=None, raw=False, **operation_config): + """Gets a packet capture session by name. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. + :type network_watcher_name: str + :param packet_capture_name: The name of the packet capture session. + :type packet_capture_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`PacketCaptureResult + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`PacketCaptureResult + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'packetCaptureName': self._serialize.url("packet_capture_name", packet_capture_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PacketCaptureResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def delete( + self, resource_group_name, network_watcher_name, packet_capture_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified packet capture session. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. + :type network_watcher_name: str + :param packet_capture_name: The name of the packet capture session. + :type packet_capture_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'packetCaptureName': self._serialize.url("packet_capture_name", packet_capture_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.delete(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [204, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def stop( + self, resource_group_name, network_watcher_name, packet_capture_name, custom_headers=None, raw=False, **operation_config): + """Stops a specified packet capture session. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. + :type network_watcher_name: str + :param packet_capture_name: The name of the packet capture session. + :type packet_capture_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}/stop' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'packetCaptureName': self._serialize.url("packet_capture_name", packet_capture_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get_status( + self, resource_group_name, network_watcher_name, packet_capture_name, custom_headers=None, raw=False, **operation_config): + """Query the status of a running packet capture session. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the Network Watcher resource. + :type network_watcher_name: str + :param packet_capture_name: The name given to the packet capture + session. + :type packet_capture_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`PacketCaptureQueryStatusResult + ` + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}/queryStatus' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'packetCaptureName': self._serialize.url("packet_capture_name", packet_capture_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PacketCaptureQueryStatusResult', response) + if response.status_code == 202: + deserialized = self._deserialize('PacketCaptureQueryStatusResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list( + self, resource_group_name, network_watcher_name, custom_headers=None, raw=False, **operation_config): + """Lists all packet capture sessions within the specified resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the Network Watcher resource. + :type network_watcher_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`PacketCaptureResult + ` + :rtype: :class:`PacketCaptureResultPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.PacketCaptureResultPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.PacketCaptureResultPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/public_ip_addresses_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/public_ip_addresses_operations.py new file mode 100644 index 000000000000..38db496a209d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/public_ip_addresses_operations.py @@ -0,0 +1,668 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller + +from .. import models + + +class PublicIPAddressesOperations(object): + """PublicIPAddressesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def delete( + self, resource_group_name, public_ip_address_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified public IP address. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param public_ip_address_name: The name of the subnet. + :type public_ip_address_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + api_version = "2017-09-01" + + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'publicIpAddressName': self._serialize.url("public_ip_address_name", public_ip_address_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.delete(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [204, 202, 200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get( + self, resource_group_name, public_ip_address_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets the specified public IP address in a specified resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param public_ip_address_name: The name of the subnet. + :type public_ip_address_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`PublicIPAddress + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`PublicIPAddress + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + api_version = "2017-09-01" + + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'publicIpAddressName': self._serialize.url("public_ip_address_name", public_ip_address_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PublicIPAddress', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, public_ip_address_name, parameters, custom_headers=None, raw=False, **operation_config): + """Creates or updates a static or dynamic public IP address. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param public_ip_address_name: The name of the public IP address. + :type public_ip_address_name: str + :param parameters: Parameters supplied to the create or update public + IP address operation. + :type parameters: :class:`PublicIPAddress + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`PublicIPAddress + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + api_version = "2017-09-01" + + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'publicIpAddressName': self._serialize.url("public_ip_address_name", public_ip_address_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'PublicIPAddress') + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [201, 200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 201: + deserialized = self._deserialize('PublicIPAddress', response) + if response.status_code == 200: + deserialized = self._deserialize('PublicIPAddress', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all the public IP addresses in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`PublicIPAddress + ` + :rtype: :class:`PublicIPAddressPaged + ` + :raises: :class:`CloudError` + """ + api_version = "2017-09-01" + + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPAddresses' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.PublicIPAddressPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.PublicIPAddressPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all public IP addresses in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`PublicIPAddress + ` + :rtype: :class:`PublicIPAddressPaged + ` + :raises: :class:`CloudError` + """ + api_version = "2017-09-01" + + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.PublicIPAddressPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.PublicIPAddressPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def list_virtual_machine_scale_set_public_ip_addresses( + self, resource_group_name, virtual_machine_scale_set_name, custom_headers=None, raw=False, **operation_config): + """Gets information about all public IP addresses on a virtual machine + scale set level. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_machine_scale_set_name: The name of the virtual machine + scale set. + :type virtual_machine_scale_set_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`PublicIPAddress + ` + :rtype: :class:`PublicIPAddressPaged + ` + :raises: :class:`CloudError` + """ + api_version = "2017-03-30" + + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/publicipaddresses' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineScaleSetName': self._serialize.url("virtual_machine_scale_set_name", virtual_machine_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.PublicIPAddressPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.PublicIPAddressPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def list_virtual_machine_scale_set_vm_public_ip_addresses( + self, resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers=None, raw=False, **operation_config): + """Gets information about all public IP addresses in a virtual machine IP + configuration in a virtual machine scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_machine_scale_set_name: The name of the virtual machine + scale set. + :type virtual_machine_scale_set_name: str + :param virtualmachine_index: The virtual machine index. + :type virtualmachine_index: str + :param network_interface_name: The network interface name. + :type network_interface_name: str + :param ip_configuration_name: The IP configuration name. + :type ip_configuration_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`PublicIPAddress + ` + :rtype: :class:`PublicIPAddressPaged + ` + :raises: :class:`CloudError` + """ + api_version = "2017-03-30" + + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineScaleSetName': self._serialize.url("virtual_machine_scale_set_name", virtual_machine_scale_set_name, 'str'), + 'virtualmachineIndex': self._serialize.url("virtualmachine_index", virtualmachine_index, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'ipConfigurationName': self._serialize.url("ip_configuration_name", ip_configuration_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.PublicIPAddressPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.PublicIPAddressPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def get_virtual_machine_scale_set_public_ip_address( + self, resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, public_ip_address_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Get the specified public IP address in a virtual machine scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_machine_scale_set_name: The name of the virtual machine + scale set. + :type virtual_machine_scale_set_name: str + :param virtualmachine_index: The virtual machine index. + :type virtualmachine_index: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param ip_configuration_name: The name of the IP configuration. + :type ip_configuration_name: str + :param public_ip_address_name: The name of the public IP Address. + :type public_ip_address_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`PublicIPAddress + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`PublicIPAddress + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + api_version = "2017-03-30" + + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses/{publicIpAddressName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineScaleSetName': self._serialize.url("virtual_machine_scale_set_name", virtual_machine_scale_set_name, 'str'), + 'virtualmachineIndex': self._serialize.url("virtualmachine_index", virtualmachine_index, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'ipConfigurationName': self._serialize.url("ip_configuration_name", ip_configuration_name, 'str'), + 'publicIpAddressName': self._serialize.url("public_ip_address_name", public_ip_address_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PublicIPAddress', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/route_filter_rules_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/route_filter_rules_operations.py new file mode 100644 index 000000000000..4f630ff044a3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/route_filter_rules_operations.py @@ -0,0 +1,459 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller + +from .. import models + + +class RouteFilterRulesOperations(object): + """RouteFilterRulesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def delete( + self, resource_group_name, route_filter_name, rule_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified rule from a route filter. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_filter_name: The name of the route filter. + :type route_filter_name: str + :param rule_name: The name of the rule. + :type rule_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeFilterName': self._serialize.url("route_filter_name", route_filter_name, 'str'), + 'ruleName': self._serialize.url("rule_name", rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.delete(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [202, 200, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get( + self, resource_group_name, route_filter_name, rule_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified rule from a route filter. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_filter_name: The name of the route filter. + :type route_filter_name: str + :param rule_name: The name of the rule. + :type rule_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`RouteFilterRule + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`RouteFilterRule + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeFilterName': self._serialize.url("route_filter_name", route_filter_name, 'str'), + 'ruleName': self._serialize.url("rule_name", rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('RouteFilterRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers=None, raw=False, **operation_config): + """Creates or updates a route in the specified route filter. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_filter_name: The name of the route filter. + :type route_filter_name: str + :param rule_name: The name of the route filter rule. + :type rule_name: str + :param route_filter_rule_parameters: Parameters supplied to the create + or update route filter rule operation. + :type route_filter_rule_parameters: :class:`RouteFilterRule + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`RouteFilterRule + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeFilterName': self._serialize.url("route_filter_name", route_filter_name, 'str'), + 'ruleName': self._serialize.url("rule_name", rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(route_filter_rule_parameters, 'RouteFilterRule') + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('RouteFilterRule', response) + if response.status_code == 201: + deserialized = self._deserialize('RouteFilterRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def update( + self, resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers=None, raw=False, **operation_config): + """Updates a route in the specified route filter. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_filter_name: The name of the route filter. + :type route_filter_name: str + :param rule_name: The name of the route filter rule. + :type rule_name: str + :param route_filter_rule_parameters: Parameters supplied to the update + route filter rule operation. + :type route_filter_rule_parameters: :class:`PatchRouteFilterRule + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`RouteFilterRule + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeFilterName': self._serialize.url("route_filter_name", route_filter_name, 'str'), + 'ruleName': self._serialize.url("rule_name", rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(route_filter_rule_parameters, 'PatchRouteFilterRule') + + # Construct and send request + def long_running_send(): + + request = self._client.patch(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('RouteFilterRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list_by_route_filter( + self, resource_group_name, route_filter_name, custom_headers=None, raw=False, **operation_config): + """Gets all RouteFilterRules in a route filter. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_filter_name: The name of the route filter. + :type route_filter_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`RouteFilterRule + ` + :rtype: :class:`RouteFilterRulePaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeFilterName': self._serialize.url("route_filter_name", route_filter_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.RouteFilterRulePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.RouteFilterRulePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/route_filters_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/route_filters_operations.py new file mode 100644 index 000000000000..e6890fb29b1d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/route_filters_operations.py @@ -0,0 +1,513 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller + +from .. import models + + +class RouteFiltersOperations(object): + """RouteFiltersOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def delete( + self, resource_group_name, route_filter_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified route filter. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_filter_name: The name of the route filter. + :type route_filter_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeFilterName': self._serialize.url("route_filter_name", route_filter_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.delete(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [202, 200, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get( + self, resource_group_name, route_filter_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets the specified route filter. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_filter_name: The name of the route filter. + :type route_filter_name: str + :param expand: Expands referenced express route bgp peering resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`RouteFilter + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`RouteFilter + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeFilterName': self._serialize.url("route_filter_name", route_filter_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('RouteFilter', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, route_filter_name, route_filter_parameters, custom_headers=None, raw=False, **operation_config): + """Creates or updates a route filter in a specified resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_filter_name: The name of the route filter. + :type route_filter_name: str + :param route_filter_parameters: Parameters supplied to the create or + update route filter operation. + :type route_filter_parameters: :class:`RouteFilter + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`RouteFilter + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeFilterName': self._serialize.url("route_filter_name", route_filter_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(route_filter_parameters, 'RouteFilter') + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('RouteFilter', response) + if response.status_code == 201: + deserialized = self._deserialize('RouteFilter', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def update( + self, resource_group_name, route_filter_name, route_filter_parameters, custom_headers=None, raw=False, **operation_config): + """Updates a route filter in a specified resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_filter_name: The name of the route filter. + :type route_filter_name: str + :param route_filter_parameters: Parameters supplied to the update + route filter operation. + :type route_filter_parameters: :class:`PatchRouteFilter + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`RouteFilter + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeFilterName': self._serialize.url("route_filter_name", route_filter_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(route_filter_parameters, 'PatchRouteFilter') + + # Construct and send request + def long_running_send(): + + request = self._client.patch(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('RouteFilter', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all route filters in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`RouteFilter + ` + :rtype: :class:`RouteFilterPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.RouteFilterPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.RouteFilterPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Gets all route filters in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`RouteFilter + ` + :rtype: :class:`RouteFilterPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/routeFilters' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.RouteFilterPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.RouteFilterPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/route_tables_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/route_tables_operations.py new file mode 100644 index 000000000000..f9aa8c401a24 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/route_tables_operations.py @@ -0,0 +1,417 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller + +from .. import models + + +class RouteTablesOperations(object): + """RouteTablesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def delete( + self, resource_group_name, route_table_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified route table. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_table_name: The name of the route table. + :type route_table_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeTableName': self._serialize.url("route_table_name", route_table_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.delete(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [204, 200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get( + self, resource_group_name, route_table_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets the specified route table. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_table_name: The name of the route table. + :type route_table_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`RouteTable + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`RouteTable + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeTableName': self._serialize.url("route_table_name", route_table_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('RouteTable', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, route_table_name, parameters, custom_headers=None, raw=False, **operation_config): + """Create or updates a route table in a specified resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_table_name: The name of the route table. + :type route_table_name: str + :param parameters: Parameters supplied to the create or update route + table operation. + :type parameters: :class:`RouteTable + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`RouteTable + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeTableName': self._serialize.url("route_table_name", route_table_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'RouteTable') + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('RouteTable', response) + if response.status_code == 201: + deserialized = self._deserialize('RouteTable', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all route tables in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`RouteTable + ` + :rtype: :class:`RouteTablePaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.RouteTablePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.RouteTablePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all route tables in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`RouteTable + ` + :rtype: :class:`RouteTablePaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/routeTables' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.RouteTablePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.RouteTablePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/routes_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/routes_operations.py new file mode 100644 index 000000000000..ea1b0293f78a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/routes_operations.py @@ -0,0 +1,358 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller + +from .. import models + + +class RoutesOperations(object): + """RoutesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def delete( + self, resource_group_name, route_table_name, route_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified route from a route table. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_table_name: The name of the route table. + :type route_table_name: str + :param route_name: The name of the route. + :type route_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeTableName': self._serialize.url("route_table_name", route_table_name, 'str'), + 'routeName': self._serialize.url("route_name", route_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.delete(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [202, 200, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get( + self, resource_group_name, route_table_name, route_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified route from a route table. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_table_name: The name of the route table. + :type route_table_name: str + :param route_name: The name of the route. + :type route_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`Route ` + or :class:`ClientRawResponse` if + raw=true + :rtype: :class:`Route ` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeTableName': self._serialize.url("route_table_name", route_table_name, 'str'), + 'routeName': self._serialize.url("route_name", route_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Route', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, route_table_name, route_name, route_parameters, custom_headers=None, raw=False, **operation_config): + """Creates or updates a route in the specified route table. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_table_name: The name of the route table. + :type route_table_name: str + :param route_name: The name of the route. + :type route_name: str + :param route_parameters: Parameters supplied to the create or update + route operation. + :type route_parameters: :class:`Route + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`Route + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeTableName': self._serialize.url("route_table_name", route_table_name, 'str'), + 'routeName': self._serialize.url("route_name", route_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(route_parameters, 'Route') + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Route', response) + if response.status_code == 201: + deserialized = self._deserialize('Route', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list( + self, resource_group_name, route_table_name, custom_headers=None, raw=False, **operation_config): + """Gets all routes in a route table. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_table_name: The name of the route table. + :type route_table_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`Route + ` + :rtype: :class:`RoutePaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeTableName': self._serialize.url("route_table_name", route_table_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.RoutePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.RoutePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/security_rules_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/security_rules_operations.py new file mode 100644 index 000000000000..b47c59388705 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/security_rules_operations.py @@ -0,0 +1,365 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller + +from .. import models + + +class SecurityRulesOperations(object): + """SecurityRulesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def delete( + self, resource_group_name, network_security_group_name, security_rule_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified network security rule. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_security_group_name: The name of the network security + group. + :type network_security_group_name: str + :param security_rule_name: The name of the security rule. + :type security_rule_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkSecurityGroupName': self._serialize.url("network_security_group_name", network_security_group_name, 'str'), + 'securityRuleName': self._serialize.url("security_rule_name", security_rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.delete(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [204, 202, 200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get( + self, resource_group_name, network_security_group_name, security_rule_name, custom_headers=None, raw=False, **operation_config): + """Get the specified network security rule. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_security_group_name: The name of the network security + group. + :type network_security_group_name: str + :param security_rule_name: The name of the security rule. + :type security_rule_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`SecurityRule + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`SecurityRule + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkSecurityGroupName': self._serialize.url("network_security_group_name", network_security_group_name, 'str'), + 'securityRuleName': self._serialize.url("security_rule_name", security_rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SecurityRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers=None, raw=False, **operation_config): + """Creates or updates a security rule in the specified network security + group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_security_group_name: The name of the network security + group. + :type network_security_group_name: str + :param security_rule_name: The name of the security rule. + :type security_rule_name: str + :param security_rule_parameters: Parameters supplied to the create or + update network security rule operation. + :type security_rule_parameters: :class:`SecurityRule + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`SecurityRule + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkSecurityGroupName': self._serialize.url("network_security_group_name", network_security_group_name, 'str'), + 'securityRuleName': self._serialize.url("security_rule_name", security_rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(security_rule_parameters, 'SecurityRule') + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SecurityRule', response) + if response.status_code == 201: + deserialized = self._deserialize('SecurityRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list( + self, resource_group_name, network_security_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all security rules in a network security group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_security_group_name: The name of the network security + group. + :type network_security_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`SecurityRule + ` + :rtype: :class:`SecurityRulePaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkSecurityGroupName': self._serialize.url("network_security_group_name", network_security_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.SecurityRulePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.SecurityRulePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/subnets_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/subnets_operations.py new file mode 100644 index 000000000000..88da1c6f57a1 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/subnets_operations.py @@ -0,0 +1,363 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller + +from .. import models + + +class SubnetsOperations(object): + """SubnetsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def delete( + self, resource_group_name, virtual_network_name, subnet_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified subnet. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param subnet_name: The name of the subnet. + :type subnet_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'subnetName': self._serialize.url("subnet_name", subnet_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.delete(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 204, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get( + self, resource_group_name, virtual_network_name, subnet_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets the specified subnet by virtual network and resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param subnet_name: The name of the subnet. + :type subnet_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`Subnet + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`Subnet ` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'subnetName': self._serialize.url("subnet_name", subnet_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Subnet', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers=None, raw=False, **operation_config): + """Creates or updates a subnet in the specified virtual network. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param subnet_name: The name of the subnet. + :type subnet_name: str + :param subnet_parameters: Parameters supplied to the create or update + subnet operation. + :type subnet_parameters: :class:`Subnet + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`Subnet + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'subnetName': self._serialize.url("subnet_name", subnet_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(subnet_parameters, 'Subnet') + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Subnet', response) + if response.status_code == 201: + deserialized = self._deserialize('Subnet', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list( + self, resource_group_name, virtual_network_name, custom_headers=None, raw=False, **operation_config): + """Gets all subnets in a virtual network. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`Subnet + ` + :rtype: :class:`SubnetPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.SubnetPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.SubnetPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/usages_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/usages_operations.py new file mode 100644 index 000000000000..c58b2e5a7af2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/usages_operations.py @@ -0,0 +1,104 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class UsagesOperations(object): + """UsagesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def list( + self, location, custom_headers=None, raw=False, **operation_config): + """List network usages for a subscription. + + :param location: The location where resource usage is queried. + :type location: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`Usage + ` + :rtype: :class:`UsagePaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/usages' + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.UsagePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.UsagePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/virtual_network_gateway_connections_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/virtual_network_gateway_connections_operations.py new file mode 100644 index 000000000000..342adc662e4a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/virtual_network_gateway_connections_operations.py @@ -0,0 +1,626 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller + +from .. import models + + +class VirtualNetworkGatewayConnectionsOperations(object): + """VirtualNetworkGatewayConnectionsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def create_or_update( + self, resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers=None, raw=False, **operation_config): + """Creates or updates a virtual network gateway connection in the + specified resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The name of the + virtual network gateway connection. + :type virtual_network_gateway_connection_name: str + :param parameters: Parameters supplied to the create or update virtual + network gateway connection operation. + :type parameters: :class:`VirtualNetworkGatewayConnection + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`VirtualNetworkGatewayConnection + ` + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayConnectionName': self._serialize.url("virtual_network_gateway_connection_name", virtual_network_gateway_connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'VirtualNetworkGatewayConnection') + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualNetworkGatewayConnection', response) + if response.status_code == 201: + deserialized = self._deserialize('VirtualNetworkGatewayConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get( + self, resource_group_name, virtual_network_gateway_connection_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified virtual network gateway connection by resource + group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The name of the + virtual network gateway connection. + :type virtual_network_gateway_connection_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`VirtualNetworkGatewayConnection + ` + or :class:`ClientRawResponse` if + raw=true + :rtype: :class:`VirtualNetworkGatewayConnection + ` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayConnectionName': self._serialize.url("virtual_network_gateway_connection_name", virtual_network_gateway_connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualNetworkGatewayConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def delete( + self, resource_group_name, virtual_network_gateway_connection_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified virtual network Gateway connection. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The name of the + virtual network gateway connection. + :type virtual_network_gateway_connection_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayConnectionName': self._serialize.url("virtual_network_gateway_connection_name", virtual_network_gateway_connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.delete(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def set_shared_key( + self, resource_group_name, virtual_network_gateway_connection_name, value, custom_headers=None, raw=False, **operation_config): + """The Put VirtualNetworkGatewayConnectionSharedKey operation sets the + virtual network gateway connection shared key for passed virtual + network gateway connection in the specified resource group through + Network resource provider. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The virtual network + gateway connection name. + :type virtual_network_gateway_connection_name: str + :param value: The virtual network connection shared key value. + :type value: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`ConnectionSharedKey + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + parameters = models.ConnectionSharedKey(value=value) + + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayConnectionName': self._serialize.url("virtual_network_gateway_connection_name", virtual_network_gateway_connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ConnectionSharedKey') + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [201, 200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 201: + deserialized = self._deserialize('ConnectionSharedKey', response) + if response.status_code == 200: + deserialized = self._deserialize('ConnectionSharedKey', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get_shared_key( + self, resource_group_name, virtual_network_gateway_connection_name, custom_headers=None, raw=False, **operation_config): + """The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves + information about the specified virtual network gateway connection + shared key through Network resource provider. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The virtual network + gateway connection shared key name. + :type virtual_network_gateway_connection_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`ConnectionSharedKey + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`ConnectionSharedKey + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayConnectionName': self._serialize.url("virtual_network_gateway_connection_name", virtual_network_gateway_connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ConnectionSharedKey', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """The List VirtualNetworkGatewayConnections operation retrieves all the + virtual network gateways connections created. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of + :class:`VirtualNetworkGatewayConnection + ` + :rtype: :class:`VirtualNetworkGatewayConnectionPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.VirtualNetworkGatewayConnectionPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VirtualNetworkGatewayConnectionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def reset_shared_key( + self, resource_group_name, virtual_network_gateway_connection_name, key_length, custom_headers=None, raw=False, **operation_config): + """The VirtualNetworkGatewayConnectionResetSharedKey operation resets the + virtual network gateway connection shared key for passed virtual + network gateway connection in the specified resource group through + Network resource provider. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The virtual network + gateway connection reset shared key Name. + :type virtual_network_gateway_connection_name: str + :param key_length: The virtual network connection reset shared key + length, should between 1 and 128. + :type key_length: int + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`ConnectionResetSharedKey + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + parameters = models.ConnectionResetSharedKey(key_length=key_length) + + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey/reset' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayConnectionName': self._serialize.url("virtual_network_gateway_connection_name", virtual_network_gateway_connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ConnectionResetSharedKey') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ConnectionResetSharedKey', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/virtual_network_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/virtual_network_gateways_operations.py new file mode 100644 index 000000000000..b5d32edc751b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/virtual_network_gateways_operations.py @@ -0,0 +1,1081 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller + +from .. import models + + +class VirtualNetworkGatewaysOperations(object): + """VirtualNetworkGatewaysOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def create_or_update( + self, resource_group_name, virtual_network_gateway_name, parameters, custom_headers=None, raw=False, **operation_config): + """Creates or updates a virtual network gateway in the specified resource + group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param parameters: Parameters supplied to create or update virtual + network gateway operation. + :type parameters: :class:`VirtualNetworkGateway + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`VirtualNetworkGateway + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'VirtualNetworkGateway') + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualNetworkGateway', response) + if response.status_code == 201: + deserialized = self._deserialize('VirtualNetworkGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get( + self, resource_group_name, virtual_network_gateway_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified virtual network gateway by resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`VirtualNetworkGateway + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`VirtualNetworkGateway + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualNetworkGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def delete( + self, resource_group_name, virtual_network_gateway_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified virtual network gateway. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.delete(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [204, 202, 200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all virtual network gateways by resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`VirtualNetworkGateway + ` + :rtype: :class:`VirtualNetworkGatewayPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.VirtualNetworkGatewayPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VirtualNetworkGatewayPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def list_connections( + self, resource_group_name, virtual_network_gateway_name, custom_headers=None, raw=False, **operation_config): + """Gets all the connections in a virtual network gateway. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of + :class:`VirtualNetworkGatewayConnectionListEntity + ` + :rtype: :class:`VirtualNetworkGatewayConnectionListEntityPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/connections' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.VirtualNetworkGatewayConnectionListEntityPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VirtualNetworkGatewayConnectionListEntityPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def reset( + self, resource_group_name, virtual_network_gateway_name, gateway_vip=None, custom_headers=None, raw=False, **operation_config): + """Resets the primary of the virtual network gateway in the specified + resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param gateway_vip: Virtual network gateway vip address supplied to + the begin reset of the active-active feature enabled gateway. + :type gateway_vip: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`VirtualNetworkGateway + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/reset' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if gateway_vip is not None: + query_parameters['gatewayVip'] = self._serialize.query("gateway_vip", gateway_vip, 'str') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [202, 200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualNetworkGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def generatevpnclientpackage( + self, resource_group_name, virtual_network_gateway_name, parameters, custom_headers=None, raw=False, **operation_config): + """Generates VPN client package for P2S client of the virtual network + gateway in the specified resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param parameters: Parameters supplied to the generate virtual network + gateway VPN client package operation. + :type parameters: :class:`VpnClientParameters + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns str or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnclientpackage' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'VpnClientParameters') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('str', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def generate_vpn_profile( + self, resource_group_name, virtual_network_gateway_name, parameters, custom_headers=None, raw=False, **operation_config): + """Generates VPN profile for P2S client of the virtual network gateway in + the specified resource group. Used for IKEV2 and radius based + authentication. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param parameters: Parameters supplied to the generate virtual network + gateway VPN client package operation. + :type parameters: :class:`VpnClientParameters + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns str or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnprofile' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'VpnClientParameters') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('str', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get_vpn_profile_package_url( + self, resource_group_name, virtual_network_gateway_name, custom_headers=None, raw=False, **operation_config): + """Gets pre-generated VPN profile for P2S client of the virtual network + gateway in the specified resource group. The profile needs to be + generated first using generateVpnProfile. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns str or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnprofilepackageurl' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('str', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get_bgp_peer_status( + self, resource_group_name, virtual_network_gateway_name, peer=None, custom_headers=None, raw=False, **operation_config): + """The GetBgpPeerStatus operation retrieves the status of all BGP peers. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param peer: The IP address of the peer to retrieve the status of. + :type peer: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`BgpPeerStatusListResult + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getBgpPeerStatus' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if peer is not None: + query_parameters['peer'] = self._serialize.query("peer", peer, 'str') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('BgpPeerStatusListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get_learned_routes( + self, resource_group_name, virtual_network_gateway_name, custom_headers=None, raw=False, **operation_config): + """This operation retrieves a list of routes the virtual network gateway + has learned, including routes learned from BGP peers. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`GatewayRouteListResult + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getLearnedRoutes' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('GatewayRouteListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get_advertised_routes( + self, resource_group_name, virtual_network_gateway_name, peer, custom_headers=None, raw=False, **operation_config): + """This operation retrieves a list of routes the virtual network gateway + is advertising to the specified peer. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param peer: The IP address of the peer + :type peer: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`GatewayRouteListResult + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getAdvertisedRoutes' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['peer'] = self._serialize.query("peer", peer, 'str') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('GatewayRouteListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/virtual_network_peerings_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/virtual_network_peerings_operations.py new file mode 100644 index 000000000000..435518573e38 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/virtual_network_peerings_operations.py @@ -0,0 +1,363 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller + +from .. import models + + +class VirtualNetworkPeeringsOperations(object): + """VirtualNetworkPeeringsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def delete( + self, resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified virtual network peering. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param virtual_network_peering_name: The name of the virtual network + peering. + :type virtual_network_peering_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'virtualNetworkPeeringName': self._serialize.url("virtual_network_peering_name", virtual_network_peering_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.delete(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 204, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get( + self, resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified virtual network peering. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param virtual_network_peering_name: The name of the virtual network + peering. + :type virtual_network_peering_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`VirtualNetworkPeering + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`VirtualNetworkPeering + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'virtualNetworkPeeringName': self._serialize.url("virtual_network_peering_name", virtual_network_peering_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualNetworkPeering', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers=None, raw=False, **operation_config): + """Creates or updates a peering in the specified virtual network. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param virtual_network_peering_name: The name of the peering. + :type virtual_network_peering_name: str + :param virtual_network_peering_parameters: Parameters supplied to the + create or update virtual network peering operation. + :type virtual_network_peering_parameters: + :class:`VirtualNetworkPeering + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`VirtualNetworkPeering + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'virtualNetworkPeeringName': self._serialize.url("virtual_network_peering_name", virtual_network_peering_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(virtual_network_peering_parameters, 'VirtualNetworkPeering') + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualNetworkPeering', response) + if response.status_code == 201: + deserialized = self._deserialize('VirtualNetworkPeering', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list( + self, resource_group_name, virtual_network_name, custom_headers=None, raw=False, **operation_config): + """Gets all virtual network peerings in a virtual network. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`VirtualNetworkPeering + ` + :rtype: :class:`VirtualNetworkPeeringPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.VirtualNetworkPeeringPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VirtualNetworkPeeringPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/virtual_networks_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/virtual_networks_operations.py new file mode 100644 index 000000000000..300240123c25 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/operations/virtual_networks_operations.py @@ -0,0 +1,557 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller + +from .. import models + + +class VirtualNetworksOperations(object): + """VirtualNetworksOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client API version. Constant value: "2017-09-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-09-01" + + self.config = config + + def delete( + self, resource_group_name, virtual_network_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified virtual network. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns None or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + def long_running_send(): + + request = self._client.delete(url, query_parameters) + return self._client.send(request, header_parameters, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [202, 204, 200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def get( + self, resource_group_name, virtual_network_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets the specified virtual network by resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`VirtualNetwork + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: :class:`VirtualNetwork + ` or + :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualNetwork', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, virtual_network_name, parameters, custom_headers=None, raw=False, **operation_config): + """Creates or updates a virtual network in the specified resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param parameters: Parameters supplied to the create or update virtual + network operation + :type parameters: :class:`VirtualNetwork + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :return: + :class:`AzureOperationPoller` + instance that returns :class:`VirtualNetwork + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'VirtualNetwork') + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualNetwork', response) + if response.status_code == 201: + deserialized = self._deserialize('VirtualNetwork', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all virtual networks in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`VirtualNetwork + ` + :rtype: :class:`VirtualNetworkPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworks' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.VirtualNetworkPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VirtualNetworkPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all virtual networks in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`VirtualNetwork + ` + :rtype: :class:`VirtualNetworkPaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.VirtualNetworkPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VirtualNetworkPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + + def check_ip_address_availability( + self, resource_group_name, virtual_network_name, ip_address=None, custom_headers=None, raw=False, **operation_config): + """Checks whether a private IP address is available for use. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param ip_address: The private IP address to be verified. + :type ip_address: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: :class:`IPAddressAvailabilityResult + ` + or :class:`ClientRawResponse` if + raw=true + :rtype: :class:`IPAddressAvailabilityResult + ` + or :class:`ClientRawResponse` + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/CheckIPAddressAvailability' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if ip_address is not None: + query_parameters['ipAddress'] = self._serialize.query("ip_address", ip_address, 'str') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('IPAddressAvailabilityResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def list_usage( + self, resource_group_name, virtual_network_name, custom_headers=None, raw=False, **operation_config): + """Lists usage stats. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of :class:`VirtualNetworkUsage + ` + :rtype: :class:`VirtualNetworkUsagePaged + ` + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/usages' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.VirtualNetworkUsagePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VirtualNetworkUsagePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/version.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/version.py new file mode 100644 index 000000000000..53a203f32aaf --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/version.py @@ -0,0 +1,13 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "" + diff --git a/azure-mgmt-network/azure/mgmt/network/version.py b/azure-mgmt-network/azure/mgmt/network/version.py index f402d39336bf..d424679bf431 100644 --- a/azure-mgmt-network/azure/mgmt/network/version.py +++ b/azure-mgmt-network/azure/mgmt/network/version.py @@ -5,4 +5,4 @@ # license information. # -------------------------------------------------------------------------- -VERSION = "1.4.0" +VERSION = "1.5.0rc1" diff --git a/azure-mgmt-network/setup.cfg b/azure-mgmt-network/setup.cfg index 0be29eb3bc63..856f4164982c 100644 --- a/azure-mgmt-network/setup.cfg +++ b/azure-mgmt-network/setup.cfg @@ -1,3 +1,3 @@ [bdist_wheel] universal=1 -azure-namespace-package=azure-mgmt-nspkg +azure-namespace-package=azure-mgmt-nspkg \ No newline at end of file diff --git a/azure-mgmt-network/setup.py b/azure-mgmt-network/setup.py index a88bb39bd7f7..a1646ac729af 100644 --- a/azure-mgmt-network/setup.py +++ b/azure-mgmt-network/setup.py @@ -6,6 +6,9 @@ # license information. #-------------------------------------------------------------------------- +import re +import os.path +from io import open from setuptools import find_packages, setup try: from azure_bdist_wheel import cmdclass @@ -13,8 +16,15 @@ from distutils import log as logger logger.warn("Wheel is not available, disabling bdist_wheel hook") cmdclass = {} -from io import open -import re + +# Change the PACKAGE_NAME only to change folder and different name +PACKAGE_NAME = "azure-mgmt-network" +PACKAGE_PPRINT_NAME = "Network Management" + +# a-b-c => a/b/c +package_folder_path = PACKAGE_NAME.replace('-', '/') +# a-b-c => a.b.c +namespace_name = PACKAGE_NAME.replace('-', '.') # azure v0.x is not compatible with this package # azure v0.x used to have a __version__ attribute (newer versions don't) @@ -32,7 +42,7 @@ pass # Version extraction inspired from 'requests' -with open('azure/mgmt/network/version.py', 'r') as fd: +with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd: version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) @@ -45,13 +55,13 @@ history = f.read() setup( - name='azure-mgmt-network', + name=PACKAGE_NAME, version=version, - description='Microsoft Azure Network Resource Management Client Library for Python', + description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME), long_description=readme + '\n\n' + history, license='MIT License', author='Microsoft Corporation', - author_email='ptvshelp@microsoft.com', + author_email='azpysdkhelp@microsoft.com', url='https://github.com/Azure/azure-sdk-for-python', classifiers=[ 'Development Status :: 5 - Production/Stable', @@ -66,10 +76,10 @@ 'License :: OSI Approved :: MIT License', ], zip_safe=False, - packages=find_packages(), + packages=find_packages(exclude=["tests"]), install_requires=[ - 'msrestazure~=0.4.7', - 'azure-common~=1.1.5', + 'msrestazure~=0.4.11', + 'azure-common~=1.1', ], cmdclass=cmdclass ) diff --git a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_dns_availability.yaml b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_dns_availability.yaml new file mode 100644 index 000000000000..684688d39835 --- /dev/null +++ b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_dns_availability.yaml @@ -0,0 +1,28 @@ +interactions: +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/ Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/CheckDnsNameAvailability?domainNameLabel=pydomain&api-version=2017-09-01 + response: + body: {string: "{\r\n \"available\": true\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['25'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:20:27 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +version: 1 diff --git a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_express_route_circuit.yaml b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_express_route_circuit.yaml new file mode 100644 index 000000000000..620d6c2db116 --- /dev/null +++ b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_express_route_circuit.yaml @@ -0,0 +1,1092 @@ +interactions: +- request: + body: '{"location": "westus", "sku": {"name": "Standard_MeteredData", "tier": + "Standard", "family": "MeteredData"}, "properties": {"serviceProviderProperties": + {"serviceProviderName": "Comcast", "peeringLocation": "Chicago", "bandwidthInMbps": + 100}}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['243'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyexpressroute9edf1275\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275\"\ + ,\r\n \"etag\": \"W/\\\"e45e8601-d726-44e8-9f37-f8d05f38500b\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/expressRouteCircuits\",\r\n \"location\"\ + : \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + ,\r\n \"resourceGuid\": \"2133bc2c-41ce-4f19-8c85-426371acc590\",\r\n \ + \ \"peerings\": [],\r\n \"authorizations\": [],\r\n \"serviceProviderProperties\"\ + : {\r\n \"serviceProviderName\": \"Comcast\",\r\n \"peeringLocation\"\ + : \"Chicago\",\r\n \"bandwidthInMbps\": 100\r\n },\r\n \"circuitProvisioningState\"\ + : \"Disabled\",\r\n \"allowClassicOperations\": false,\r\n \"serviceKey\"\ + : \"00000000-0000-0000-0000-000000000000\",\r\n \"serviceProviderProvisioningState\"\ + : \"NotProvisioned\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_MeteredData\"\ + ,\r\n \"tier\": \"Standard\",\r\n \"family\": \"MeteredData\"\r\n }\r\ + \n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/8654ca36-0995-46b9-a618-d34e5cafa714?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['1012'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:20:34 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/8654ca36-0995-46b9-a618-d34e5cafa714?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:20:45 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/8654ca36-0995-46b9-a618-d34e5cafa714?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:21:03 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/8654ca36-0995-46b9-a618-d34e5cafa714?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:21:13 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/8654ca36-0995-46b9-a618-d34e5cafa714?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:21:24 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyexpressroute9edf1275\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275\"\ + ,\r\n \"etag\": \"W/\\\"1176d85a-23a9-4ec0-8157-e66d45408679\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/expressRouteCircuits\",\r\n \"location\"\ + : \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"resourceGuid\": \"2133bc2c-41ce-4f19-8c85-426371acc590\",\r\n \ + \ \"peerings\": [],\r\n \"authorizations\": [],\r\n \"serviceProviderProperties\"\ + : {\r\n \"serviceProviderName\": \"Comcast\",\r\n \"peeringLocation\"\ + : \"Chicago\",\r\n \"bandwidthInMbps\": 100\r\n },\r\n \"circuitProvisioningState\"\ + : \"Enabled\",\r\n \"allowClassicOperations\": false,\r\n \"gatewayManagerEtag\"\ + : \"\",\r\n \"serviceKey\": \"3c81ac1e-1ea7-42cd-b8c5-cd80ee65c048\",\r\ + \n \"serviceProviderProvisioningState\": \"NotProvisioned\"\r\n },\r\n\ + \ \"sku\": {\r\n \"name\": \"Standard_MeteredData\",\r\n \"tier\":\ + \ \"Standard\",\r\n \"family\": \"MeteredData\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1043'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:21:24 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyexpressroute9edf1275\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275\"\ + ,\r\n \"etag\": \"W/\\\"1176d85a-23a9-4ec0-8157-e66d45408679\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/expressRouteCircuits\",\r\n \"location\"\ + : \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"resourceGuid\": \"2133bc2c-41ce-4f19-8c85-426371acc590\",\r\n \ + \ \"peerings\": [],\r\n \"authorizations\": [],\r\n \"serviceProviderProperties\"\ + : {\r\n \"serviceProviderName\": \"Comcast\",\r\n \"peeringLocation\"\ + : \"Chicago\",\r\n \"bandwidthInMbps\": 100\r\n },\r\n \"circuitProvisioningState\"\ + : \"Enabled\",\r\n \"allowClassicOperations\": false,\r\n \"gatewayManagerEtag\"\ + : \"\",\r\n \"serviceKey\": \"3c81ac1e-1ea7-42cd-b8c5-cd80ee65c048\",\r\ + \n \"serviceProviderProvisioningState\": \"NotProvisioned\"\r\n },\r\n\ + \ \"sku\": {\r\n \"name\": \"Standard_MeteredData\",\r\n \"tier\":\ + \ \"Standard\",\r\n \"family\": \"MeteredData\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1043'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:21:25 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits?api-version=2017-09-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyexpressroute9edf1275\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275\"\ + ,\r\n \"etag\": \"W/\\\"1176d85a-23a9-4ec0-8157-e66d45408679\\\"\",\r\ + \n \"type\": \"Microsoft.Network/expressRouteCircuits\",\r\n \"\ + location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"2133bc2c-41ce-4f19-8c85-426371acc590\"\ + ,\r\n \"peerings\": [],\r\n \"authorizations\": [],\r\n \ + \ \"serviceProviderProperties\": {\r\n \"serviceProviderName\"\ + : \"Comcast\",\r\n \"peeringLocation\": \"Chicago\",\r\n \ + \ \"bandwidthInMbps\": 100\r\n },\r\n \"circuitProvisioningState\"\ + : \"Enabled\",\r\n \"allowClassicOperations\": false,\r\n \"\ + serviceKey\": \"3c81ac1e-1ea7-42cd-b8c5-cd80ee65c048\",\r\n \"serviceProviderProvisioningState\"\ + : \"NotProvisioned\"\r\n },\r\n \"sku\": {\r\n \"name\":\ + \ \"Standard_MeteredData\",\r\n \"tier\": \"Standard\",\r\n \ + \ \"family\": \"MeteredData\"\r\n }\r\n }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1145'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:21:26 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRouteCircuits?api-version=2017-09-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyexpressroute9edf1275\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275\"\ + ,\r\n \"etag\": \"W/\\\"1176d85a-23a9-4ec0-8157-e66d45408679\\\"\",\r\ + \n \"type\": \"Microsoft.Network/expressRouteCircuits\",\r\n \"\ + location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"2133bc2c-41ce-4f19-8c85-426371acc590\"\ + ,\r\n \"peerings\": [],\r\n \"authorizations\": [],\r\n \ + \ \"serviceProviderProperties\": {\r\n \"serviceProviderName\"\ + : \"Comcast\",\r\n \"peeringLocation\": \"Chicago\",\r\n \ + \ \"bandwidthInMbps\": 100\r\n },\r\n \"circuitProvisioningState\"\ + : \"Enabled\",\r\n \"allowClassicOperations\": false,\r\n \"\ + serviceKey\": \"3c81ac1e-1ea7-42cd-b8c5-cd80ee65c048\",\r\n \"serviceProviderProvisioningState\"\ + : \"NotProvisioned\"\r\n },\r\n \"sku\": {\r\n \"name\":\ + \ \"Standard_MeteredData\",\r\n \"tier\": \"Standard\",\r\n \ + \ \"family\": \"MeteredData\"\r\n }\r\n }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1145'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:21:27 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/stats?api-version=2017-09-01 + response: + body: {string: "{\r\n \"primaryBytesIn\": 0,\r\n \"primaryBytesOut\": 0,\r\n\ + \ \"secondaryBytesIn\": 0,\r\n \"secondaryBytesOut\": 0\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['105'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:21:27 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"peeringType": "AzurePublicPeering", "peerASN": 100, "primaryPeerAddressPrefix": + "192.168.1.0/30", "secondaryPeerAddressPrefix": "192.168.2.0/30", "vlanId": + 200}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['178'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"AzurePublicPeering\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering\"\ + ,\r\n \"etag\": \"W/\\\"bcba0098-3521-41f7-83f3-b7967647936e\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ + peeringType\": \"AzurePublicPeering\",\r\n \"azureASN\": 0,\r\n \"peerASN\"\ + : 100,\r\n \"primaryPeerAddressPrefix\": \"192.168.1.0/30\",\r\n \"\ + secondaryPeerAddressPrefix\": \"192.168.2.0/30\",\r\n \"state\": \"Disabled\"\ + ,\r\n \"vlanId\": 200,\r\n \"lastModifiedBy\": \"\"\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae94f24d-c8ef-49b3-8904-d514e533a0a5?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['647'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:21:29 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae94f24d-c8ef-49b3-8904-d514e533a0a5?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:21:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae94f24d-c8ef-49b3-8904-d514e533a0a5?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:21:50 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae94f24d-c8ef-49b3-8904-d514e533a0a5?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:22:00 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae94f24d-c8ef-49b3-8904-d514e533a0a5?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:22:11 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"AzurePublicPeering\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering\"\ + ,\r\n \"etag\": \"W/\\\"a1d88954-a07c-4229-b9bb-06a57aed803d\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + peeringType\": \"AzurePublicPeering\",\r\n \"azureASN\": 12076,\r\n \ + \ \"peerASN\": 100,\r\n \"primaryPeerAddressPrefix\": \"192.168.1.0/30\"\ + ,\r\n \"secondaryPeerAddressPrefix\": \"192.168.2.0/30\",\r\n \"primaryAzurePort\"\ + : \"EQIX-CHG-06GMR-CIS-1-PRI-C\",\r\n \"secondaryAzurePort\": \"EQIX-CHG-06GMR-CIS-2-SEC-C\"\ + ,\r\n \"state\": \"Enabled\",\r\n \"vlanId\": 200,\r\n \"gatewayManagerEtag\"\ + : \"\",\r\n \"lastModifiedBy\": \"Customer\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['802'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:22:12 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"AzurePublicPeering\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering\"\ + ,\r\n \"etag\": \"W/\\\"a1d88954-a07c-4229-b9bb-06a57aed803d\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + peeringType\": \"AzurePublicPeering\",\r\n \"azureASN\": 12076,\r\n \ + \ \"peerASN\": 100,\r\n \"primaryPeerAddressPrefix\": \"192.168.1.0/30\"\ + ,\r\n \"secondaryPeerAddressPrefix\": \"192.168.2.0/30\",\r\n \"primaryAzurePort\"\ + : \"EQIX-CHG-06GMR-CIS-1-PRI-C\",\r\n \"secondaryAzurePort\": \"EQIX-CHG-06GMR-CIS-2-SEC-C\"\ + ,\r\n \"state\": \"Enabled\",\r\n \"vlanId\": 200,\r\n \"gatewayManagerEtag\"\ + : \"\",\r\n \"lastModifiedBy\": \"Customer\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['802'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:22:14 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings?api-version=2017-09-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"AzurePublicPeering\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering\"\ + ,\r\n \"etag\": \"W/\\\"a1d88954-a07c-4229-b9bb-06a57aed803d\\\"\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringType\": \"AzurePublicPeering\",\r\n \"azureASN\"\ + : 12076,\r\n \"peerASN\": 100,\r\n \"primaryPeerAddressPrefix\"\ + : \"192.168.1.0/30\",\r\n \"secondaryPeerAddressPrefix\": \"192.168.2.0/30\"\ + ,\r\n \"primaryAzurePort\": \"EQIX-CHG-06GMR-CIS-1-PRI-C\",\r\n \ + \ \"secondaryAzurePort\": \"EQIX-CHG-06GMR-CIS-2-SEC-C\",\r\n \"\ + state\": \"Enabled\",\r\n \"vlanId\": 200,\r\n \"gatewayManagerEtag\"\ + : \"\",\r\n \"lastModifiedBy\": \"Customer\"\r\n }\r\n }\r\n\ + \ ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['903'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:22:15 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering/stats?api-version=2017-09-01 + response: + body: {string: "{\r\n \"primaryBytesIn\": 0,\r\n \"primaryBytesOut\": 0,\r\n\ + \ \"secondaryBytesIn\": 0,\r\n \"secondaryBytesOut\": 0\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['105'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:22:15 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: '{}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyauth9edf1275\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275\"\ + ,\r\n \"etag\": \"W/\\\"4d1b174e-fdf9-4278-ba2c-348d65396d5d\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ + authorizationKey\": \"0b6299d1-471b-4a53-ae3a-4eeb523afe1d\",\r\n \"authorizationUseStatus\"\ + : \"Available\"\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/a6995436-4e09-46aa-ae7b-cddc6cc19116?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['494'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:22:16 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/a6995436-4e09-46aa-ae7b-cddc6cc19116?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:22:26 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyauth9edf1275\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275\"\ + ,\r\n \"etag\": \"W/\\\"e0eb9954-486c-4b4d-a8d5-e778ad032634\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + authorizationKey\": \"0b6299d1-471b-4a53-ae3a-4eeb523afe1d\",\r\n \"authorizationUseStatus\"\ + : \"Available\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['495'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:22:28 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyauth9edf1275\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275\"\ + ,\r\n \"etag\": \"W/\\\"e0eb9954-486c-4b4d-a8d5-e778ad032634\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + authorizationKey\": \"0b6299d1-471b-4a53-ae3a-4eeb523afe1d\",\r\n \"authorizationUseStatus\"\ + : \"Available\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['495'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:22:28 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations?api-version=2017-09-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyauth9edf1275\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275\"\ + ,\r\n \"etag\": \"W/\\\"e0eb9954-486c-4b4d-a8d5-e778ad032634\\\"\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"authorizationKey\": \"0b6299d1-471b-4a53-ae3a-4eeb523afe1d\"\ + ,\r\n \"authorizationUseStatus\": \"Available\"\r\n }\r\n }\r\ + \n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['560'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:22:29 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275?api-version=2017-09-01 + response: + body: {string: ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d6c026c3-a5d4-4048-b8b4-bc33320a024f?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 15 Sep 2017 23:22:30 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/d6c026c3-a5d4-4048-b8b4-bc33320a024f?api-version=2017-09-01'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d6c026c3-a5d4-4048-b8b4-bc33320a024f?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:22:40 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d6c026c3-a5d4-4048-b8b4-bc33320a024f?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:22:50 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering?api-version=2017-09-01 + response: + body: {string: ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/734817e0-55ca-4c38-81eb-3a1cb76b07c3?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 15 Sep 2017 23:22:52 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/734817e0-55ca-4c38-81eb-3a1cb76b07c3?api-version=2017-09-01'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/734817e0-55ca-4c38-81eb-3a1cb76b07c3?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:23:02 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/734817e0-55ca-4c38-81eb-3a1cb76b07c3?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:23:12 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/734817e0-55ca-4c38-81eb-3a1cb76b07c3?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:23:23 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/734817e0-55ca-4c38-81eb-3a1cb76b07c3?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:23:34 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275?api-version=2017-09-01 + response: + body: {string: ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c1a50917-5e2c-4512-b9ee-b90c331142ec?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 15 Sep 2017 23:23:34 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/c1a50917-5e2c-4512-b9ee-b90c331142ec?api-version=2017-09-01'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c1a50917-5e2c-4512-b9ee-b90c331142ec?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:23:45 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c1a50917-5e2c-4512-b9ee-b90c331142ec?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:23:55 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c1a50917-5e2c-4512-b9ee-b90c331142ec?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:24:06 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c1a50917-5e2c-4512-b9ee-b90c331142ec?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:24:17 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +version: 1 diff --git a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_express_route_service_providers.yaml b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_express_route_service_providers.yaml new file mode 100644 index 000000000000..09fddc1a85a8 --- /dev/null +++ b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_express_route_service_providers.yaml @@ -0,0 +1,1094 @@ +interactions: +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRouteServiceProviders?api-version=2017-09-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"AARNet\",\r\n\ + \ \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Melbourne\",\r\n \ + \ \"Sydney\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n \ + \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\"\ + : 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\"\ + ,\r\n \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\ + \n },\r\n {\r\n \"offerName\": \"500Mbps\",\r\ + \n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"Airtel\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Chennai2\",\r\n \ + \ \"Mumbai2\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n \ + \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\"\ + : 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\"\ + ,\r\n \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\ + \n },\r\n {\r\n \"offerName\": \"500Mbps\",\r\ + \n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"Aryaka Networks\",\r\n \"id\"\ + : \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Amsterdam\",\r\n \ + \ \"Dallas\",\r\n \"Hong Kong\",\r\n \"Silicon Valley\"\ + ,\r\n \"Singapore\",\r\n \"Tokyo\",\r\n \"Washington\ + \ DC\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n {\r\n\ + \ \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": 50\r\ + \n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\ + \n \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\ + \n },\r\n {\r\n \"offerName\": \"500Mbps\",\r\ + \n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"Ascenty\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Sao Paulo\"\r\n \ + \ ],\r\n \"bandwidthsOffered\": [\r\n {\r\n \"\ + offerName\": \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\ + \n {\r\n \"offerName\": \"100Mbps\",\r\n \"\ + valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\"\ + : \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n \ + \ {\r\n \"offerName\": \"500Mbps\",\r\n \"valueInMbps\"\ + : 500\r\n },\r\n {\r\n \"offerName\": \"1Gbps\"\ + ,\r\n \"valueInMbps\": 1000\r\n },\r\n {\r\n\ + \ \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": 2000\r\ + \n },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n\ + \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ + \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ + \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"AT&T\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Silicon Valley\",\r\n\ + \ \"Washington DC\"\r\n ],\r\n \"bandwidthsOffered\"\ + : [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \ + \ \"valueInMbps\": 50\r\n },\r\n {\r\n \"offerName\"\ + : \"100Mbps\",\r\n \"valueInMbps\": 100\r\n },\r\n \ + \ {\r\n \"offerName\": \"200Mbps\",\r\n \"valueInMbps\"\ + : 200\r\n },\r\n {\r\n \"offerName\": \"500Mbps\"\ + ,\r\n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\ + \n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"AT&T Netbond\",\r\n \"id\": \"\ + /subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Amsterdam\",\r\n \ + \ \"Chicago\",\r\n \"Dallas\",\r\n \"London\",\r\n \ + \ \"Silicon Valley\",\r\n \"Singapore\",\r\n \"\ + Sydney\",\r\n \"Tokyo\",\r\n \"Toronto\",\r\n \"\ + Washington DC\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n \ + \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\"\ + : 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\"\ + ,\r\n \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\ + \n },\r\n {\r\n \"offerName\": \"500Mbps\",\r\ + \n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"Bell Canada\",\r\n \"id\": \"\ + /subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Montreal\",\r\n \ + \ \"Toronto\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n \ + \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\"\ + : 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\"\ + ,\r\n \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\ + \n },\r\n {\r\n \"offerName\": \"500Mbps\",\r\ + \n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"British Telecom\",\r\n \"id\"\ + : \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Amsterdam\",\r\n \ + \ \"London\",\r\n \"Hong Kong\",\r\n \"Silicon Valley\"\ + ,\r\n \"Singapore\",\r\n \"Sydney\",\r\n \"Tokyo\"\ + ,\r\n \"Washington DC\"\r\n ],\r\n \"bandwidthsOffered\"\ + : [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \ + \ \"valueInMbps\": 50\r\n },\r\n {\r\n \"offerName\"\ + : \"100Mbps\",\r\n \"valueInMbps\": 100\r\n },\r\n \ + \ {\r\n \"offerName\": \"200Mbps\",\r\n \"valueInMbps\"\ + : 200\r\n },\r\n {\r\n \"offerName\": \"500Mbps\"\ + ,\r\n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\ + \n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"C3ntro\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Miami\"\r\n ],\r\ + \n \"bandwidthsOffered\": [\r\n {\r\n \"offerName\"\ + : \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\n \ + \ {\r\n \"offerName\": \"100Mbps\",\r\n \"valueInMbps\"\ + : 100\r\n },\r\n {\r\n \"offerName\": \"200Mbps\"\ + ,\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n \ + \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\ + \n },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n\ + \ \"valueInMbps\": 1000\r\n },\r\n {\r\n \ + \ \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": 2000\r\n\ + \ },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n\ + \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ + \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ + \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"CenturyLink\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Silicon Valley\"\r\n \ + \ ],\r\n \"bandwidthsOffered\": [\r\n {\r\n \ + \ \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": 50\r\n \ + \ },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n \ + \ \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\n\ + \ },\r\n {\r\n \"offerName\": \"500Mbps\",\r\n\ + \ \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"China Telecom Global\",\r\n \"\ + id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Hong Kong\"\r\n \ + \ ],\r\n \"bandwidthsOffered\": [\r\n {\r\n \"\ + offerName\": \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\ + \n {\r\n \"offerName\": \"100Mbps\",\r\n \"\ + valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\"\ + : \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n \ + \ {\r\n \"offerName\": \"500Mbps\",\r\n \"valueInMbps\"\ + : 500\r\n },\r\n {\r\n \"offerName\": \"1Gbps\"\ + ,\r\n \"valueInMbps\": 1000\r\n },\r\n {\r\n\ + \ \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": 2000\r\ + \n },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n\ + \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ + \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ + \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"Cologix\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Dallas\",\r\n \ + \ \"Montreal\",\r\n \"Toronto\"\r\n ],\r\n \"bandwidthsOffered\"\ + : [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \ + \ \"valueInMbps\": 50\r\n },\r\n {\r\n \"offerName\"\ + : \"100Mbps\",\r\n \"valueInMbps\": 100\r\n },\r\n \ + \ {\r\n \"offerName\": \"200Mbps\",\r\n \"valueInMbps\"\ + : 200\r\n },\r\n {\r\n \"offerName\": \"500Mbps\"\ + ,\r\n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\ + \n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"Colt Ethernet\",\r\n \"id\": \"\ + /subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Amsterdam\",\r\n \ + \ \"Dublin\",\r\n \"London\",\r\n \"Paris\",\r\n \ + \ \"Tokyo\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n \ + \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\"\ + : 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\"\ + ,\r\n \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\ + \n },\r\n {\r\n \"offerName\": \"500Mbps\",\r\ + \n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"Colt IPVPN\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Amsterdam\",\r\n \ + \ \"London\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n \ + \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\"\ + : 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\"\ + ,\r\n \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\ + \n },\r\n {\r\n \"offerName\": \"500Mbps\",\r\ + \n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"Comcast\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Chicago\",\r\n \ + \ \"Silicon Valley\",\r\n \"Washington DC\"\r\n ],\r\n \ + \ \"bandwidthsOffered\": [\r\n {\r\n \"offerName\"\ + : \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\n \ + \ {\r\n \"offerName\": \"100Mbps\",\r\n \"valueInMbps\"\ + : 100\r\n },\r\n {\r\n \"offerName\": \"200Mbps\"\ + ,\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n \ + \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\ + \n },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n\ + \ \"valueInMbps\": 1000\r\n },\r\n {\r\n \ + \ \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": 2000\r\n\ + \ },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n\ + \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ + \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ + \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"Console\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Silicon Valley\",\r\n\ + \ \"Toronto\"\r\n ],\r\n \"bandwidthsOffered\": [\r\ + \n {\r\n \"offerName\": \"50Mbps\",\r\n \"\ + valueInMbps\": 50\r\n },\r\n {\r\n \"offerName\"\ + : \"100Mbps\",\r\n \"valueInMbps\": 100\r\n },\r\n \ + \ {\r\n \"offerName\": \"200Mbps\",\r\n \"valueInMbps\"\ + : 200\r\n },\r\n {\r\n \"offerName\": \"500Mbps\"\ + ,\r\n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\ + \n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"Coresite\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Chicago\",\r\n \ + \ \"Denver\",\r\n \"Los Angeles\",\r\n \"New York\",\r\ + \n \"Silicon Valley\",\r\n \"Washington DC\"\r\n \ + \ ],\r\n \"bandwidthsOffered\": [\r\n {\r\n \"\ + offerName\": \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\ + \n {\r\n \"offerName\": \"100Mbps\",\r\n \"\ + valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\"\ + : \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n \ + \ {\r\n \"offerName\": \"500Mbps\",\r\n \"valueInMbps\"\ + : 500\r\n },\r\n {\r\n \"offerName\": \"1Gbps\"\ + ,\r\n \"valueInMbps\": 1000\r\n },\r\n {\r\n\ + \ \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": 2000\r\ + \n },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n\ + \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ + \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ + \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"Equinix\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Amsterdam\",\r\n \ + \ \"Atlanta\",\r\n \"Chicago\",\r\n \"Dallas\",\r\n\ + \ \"Dublin\",\r\n \"Hong Kong\",\r\n \"London\"\ + ,\r\n \"Los Angeles\",\r\n \"Melbourne\",\r\n \"\ + New York\",\r\n \"Osaka\",\r\n \"Paris\",\r\n \"\ + Sao Paulo\",\r\n \"Seattle\",\r\n \"Silicon Valley\",\r\n\ + \ \"Singapore\",\r\n \"Sydney\",\r\n \"Tokyo\"\ + ,\r\n \"Toronto\",\r\n \"Washington DC\"\r\n ],\r\ + \n \"bandwidthsOffered\": [\r\n {\r\n \"offerName\"\ + : \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\n \ + \ {\r\n \"offerName\": \"100Mbps\",\r\n \"valueInMbps\"\ + : 100\r\n },\r\n {\r\n \"offerName\": \"200Mbps\"\ + ,\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n \ + \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\ + \n },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n\ + \ \"valueInMbps\": 1000\r\n },\r\n {\r\n \ + \ \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": 2000\r\n\ + \ },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n\ + \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ + \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ + \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"euNetworks\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Amsterdam\",\r\n \ + \ \"London\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n \ + \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\"\ + : 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\"\ + ,\r\n \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\ + \n },\r\n {\r\n \"offerName\": \"500Mbps\",\r\ + \n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"GEANT\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Amsterdam\"\r\n \ + \ ],\r\n \"bandwidthsOffered\": [\r\n {\r\n \"\ + offerName\": \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\ + \n {\r\n \"offerName\": \"100Mbps\",\r\n \"\ + valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\"\ + : \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n \ + \ {\r\n \"offerName\": \"500Mbps\",\r\n \"valueInMbps\"\ + : 500\r\n },\r\n {\r\n \"offerName\": \"1Gbps\"\ + ,\r\n \"valueInMbps\": 1000\r\n },\r\n {\r\n\ + \ \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": 2000\r\ + \n },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n\ + \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ + \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ + \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"GlobalcloudXchange\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Chennai\",\r\n \ + \ \"Mumbai\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n \ + \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\"\ + : 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\"\ + ,\r\n \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\ + \n },\r\n {\r\n \"offerName\": \"500Mbps\",\r\ + \n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"IIJ\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Osaka\",\r\n \ + \ \"Tokyo\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n \ + \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\"\ + : 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\"\ + ,\r\n \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\ + \n },\r\n {\r\n \"offerName\": \"500Mbps\",\r\ + \n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"InterCloud\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"London\",\r\n \ + \ \"Singapore\",\r\n \"Washington DC\",\r\n \"Amsterdam\"\ + \r\n ],\r\n \"bandwidthsOffered\": [\r\n {\r\n \ + \ \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": 50\r\n\ + \ },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n\ + \ \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\n\ + \ },\r\n {\r\n \"offerName\": \"500Mbps\",\r\n\ + \ \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"InterCloud for Azure\",\r\n \"\ + id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Paris\"\r\n ],\r\ + \n \"bandwidthsOffered\": [\r\n {\r\n \"offerName\"\ + : \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\n \ + \ {\r\n \"offerName\": \"100Mbps\",\r\n \"valueInMbps\"\ + : 100\r\n },\r\n {\r\n \"offerName\": \"200Mbps\"\ + ,\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n \ + \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\ + \n },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n\ + \ \"valueInMbps\": 1000\r\n },\r\n {\r\n \ + \ \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": 2000\r\n\ + \ },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n\ + \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ + \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ + \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"Internet Solutions - Cloud Connect\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Amsterdam\",\r\n \ + \ \"London\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n \ + \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\"\ + : 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\"\ + ,\r\n \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\ + \n },\r\n {\r\n \"offerName\": \"500Mbps\",\r\ + \n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"Interxion\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Amsterdam\",\r\n \ + \ \"Dublin\",\r\n \"London\",\r\n \"Paris\"\r\n \ + \ ],\r\n \"bandwidthsOffered\": [\r\n {\r\n \ + \ \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": 50\r\n \ + \ },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n \ + \ \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\n \ + \ },\r\n {\r\n \"offerName\": \"500Mbps\",\r\n\ + \ \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"Jisc\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"London\"\r\n ],\r\ + \n \"bandwidthsOffered\": [\r\n {\r\n \"offerName\"\ + : \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\n \ + \ {\r\n \"offerName\": \"100Mbps\",\r\n \"valueInMbps\"\ + : 100\r\n },\r\n {\r\n \"offerName\": \"200Mbps\"\ + ,\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n \ + \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\ + \n },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n\ + \ \"valueInMbps\": 1000\r\n },\r\n {\r\n \ + \ \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": 2000\r\n\ + \ },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n\ + \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ + \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ + \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"KINX\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Seoul\"\r\n ],\r\ + \n \"bandwidthsOffered\": [\r\n {\r\n \"offerName\"\ + : \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\n \ + \ {\r\n \"offerName\": \"100Mbps\",\r\n \"valueInMbps\"\ + : 100\r\n },\r\n {\r\n \"offerName\": \"200Mbps\"\ + ,\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n \ + \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\ + \n },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n\ + \ \"valueInMbps\": 1000\r\n },\r\n {\r\n \ + \ \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": 2000\r\n\ + \ },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n\ + \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ + \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ + \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"KPN\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Amsterdam\"\r\n \ + \ ],\r\n \"bandwidthsOffered\": [\r\n {\r\n \"\ + offerName\": \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\ + \n {\r\n \"offerName\": \"100Mbps\",\r\n \"\ + valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\"\ + : \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n \ + \ {\r\n \"offerName\": \"500Mbps\",\r\n \"valueInMbps\"\ + : 500\r\n },\r\n {\r\n \"offerName\": \"1Gbps\"\ + ,\r\n \"valueInMbps\": 1000\r\n },\r\n {\r\n\ + \ \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": 2000\r\ + \n },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n\ + \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ + \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ + \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"Level 3 Communications - Exchange\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Amsterdam\",\r\n \ + \ \"Chicago\",\r\n \"Dallas\",\r\n \"Las Vegas\",\r\n\ + \ \"London\",\r\n \"Sao Paulo\",\r\n \"Seattle\"\ + ,\r\n \"Silicon Valley\",\r\n \"Singapore\",\r\n \ + \ \"Washington DC\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n\ + \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\"\ + : 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\"\ + ,\r\n \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\ + \n },\r\n {\r\n \"offerName\": \"500Mbps\",\r\ + \n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"Level 3 Communications - IPVPN\",\r\ + \n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Amsterdam\",\r\n \ + \ \"Chicago\",\r\n \"Dallas\",\r\n \"Las Vegas\",\r\n\ + \ \"London\",\r\n \"Sao Paulo\",\r\n \"Seattle\"\ + ,\r\n \"Silicon Valley\",\r\n \"Singapore\",\r\n \ + \ \"Washington DC\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n\ + \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\"\ + : 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\"\ + ,\r\n \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\ + \n },\r\n {\r\n \"offerName\": \"500Mbps\",\r\ + \n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"LG CNS\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Busan\",\r\n \ + \ \"Seoul\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n \ + \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\"\ + : 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\"\ + ,\r\n \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\ + \n },\r\n {\r\n \"offerName\": \"500Mbps\",\r\ + \n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"Megaport\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Amsterdam\",\r\n \ + \ \"Chicago\",\r\n \"Dallas\",\r\n \"Hong Kong\",\r\n\ + \ \"Las Vegas\",\r\n \"London\",\r\n \"Los Angeles\"\ + ,\r\n \"Melbourne\",\r\n \"Miami\",\r\n \"New York\"\ + ,\r\n \"Quebec City\",\r\n \"San Antonio\",\r\n \ + \ \"Seattle\",\r\n \"Silicon Valley\",\r\n \"Singapore\"\ + ,\r\n \"Sydney\",\r\n \"Toronto\",\r\n \"Washington\ + \ DC\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n {\r\n\ + \ \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": 50\r\ + \n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\ + \n \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\ + \n },\r\n {\r\n \"offerName\": \"500Mbps\",\r\ + \n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"MTN\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"London\"\r\n ],\r\ + \n \"bandwidthsOffered\": [\r\n {\r\n \"offerName\"\ + : \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\n \ + \ {\r\n \"offerName\": \"100Mbps\",\r\n \"valueInMbps\"\ + : 100\r\n },\r\n {\r\n \"offerName\": \"200Mbps\"\ + ,\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n \ + \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\ + \n },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n\ + \ \"valueInMbps\": 1000\r\n },\r\n {\r\n \ + \ \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": 2000\r\n\ + \ },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n\ + \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ + \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ + \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"Neutrona Networks\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Miami\",\r\n \ + \ \"Sao Paulo\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n \ + \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\"\ + : 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\"\ + ,\r\n \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\ + \n },\r\n {\r\n \"offerName\": \"500Mbps\",\r\ + \n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"Next Generation Data\",\r\n \"\ + id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Newport\"\r\n ],\r\ + \n \"bandwidthsOffered\": [\r\n {\r\n \"offerName\"\ + : \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\n \ + \ {\r\n \"offerName\": \"100Mbps\",\r\n \"valueInMbps\"\ + : 100\r\n },\r\n {\r\n \"offerName\": \"200Mbps\"\ + ,\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n \ + \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\ + \n },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n\ + \ \"valueInMbps\": 1000\r\n },\r\n {\r\n \ + \ \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": 2000\r\n\ + \ },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n\ + \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ + \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ + \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"NEXTDC\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Melbourne\",\r\n \ + \ \"Sydney\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n \ + \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\"\ + : 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\"\ + ,\r\n \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\ + \n },\r\n {\r\n \"offerName\": \"500Mbps\",\r\ + \n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"NTT Communications\",\r\n \"id\"\ + : \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Amsterdam\",\r\n \ + \ \"London\",\r\n \"Los Angeles\",\r\n \"Osaka\",\r\n\ + \ \"Singapore\",\r\n \"Tokyo\",\r\n \"Washington\ + \ DC\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n {\r\n\ + \ \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": 50\r\ + \n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\ + \n \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\ + \n },\r\n {\r\n \"offerName\": \"500Mbps\",\r\ + \n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"NTT SmartConnect\",\r\n \"id\"\ + : \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Osaka\"\r\n ],\r\ + \n \"bandwidthsOffered\": [\r\n {\r\n \"offerName\"\ + : \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\n \ + \ {\r\n \"offerName\": \"100Mbps\",\r\n \"valueInMbps\"\ + : 100\r\n },\r\n {\r\n \"offerName\": \"200Mbps\"\ + ,\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n \ + \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\ + \n },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n\ + \ \"valueInMbps\": 1000\r\n },\r\n {\r\n \ + \ \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": 2000\r\n\ + \ },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n\ + \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ + \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ + \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"Optus\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Sydney\"\r\n ],\r\ + \n \"bandwidthsOffered\": [\r\n {\r\n \"offerName\"\ + : \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\n \ + \ {\r\n \"offerName\": \"100Mbps\",\r\n \"valueInMbps\"\ + : 100\r\n },\r\n {\r\n \"offerName\": \"200Mbps\"\ + ,\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n \ + \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\ + \n },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n\ + \ \"valueInMbps\": 1000\r\n },\r\n {\r\n \ + \ \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": 2000\r\n\ + \ },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n\ + \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ + \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ + \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"Orange\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Amsterdam\",\r\n \ + \ \"Hong Kong\",\r\n \"London\",\r\n \"Paris\",\r\n\ + \ \"Silicon Valley\",\r\n \"Singapore\",\r\n \"\ + Sydney\",\r\n \"Washington DC\"\r\n ],\r\n \"bandwidthsOffered\"\ + : [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \ + \ \"valueInMbps\": 50\r\n },\r\n {\r\n \"offerName\"\ + : \"100Mbps\",\r\n \"valueInMbps\": 100\r\n },\r\n \ + \ {\r\n \"offerName\": \"200Mbps\",\r\n \"valueInMbps\"\ + : 200\r\n },\r\n {\r\n \"offerName\": \"500Mbps\"\ + ,\r\n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\ + \n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"PCCW Global Limited\",\r\n \"\ + id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Hong Kong\"\r\n \ + \ ],\r\n \"bandwidthsOffered\": [\r\n {\r\n \"\ + offerName\": \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\ + \n {\r\n \"offerName\": \"100Mbps\",\r\n \"\ + valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\"\ + : \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n \ + \ {\r\n \"offerName\": \"500Mbps\",\r\n \"valueInMbps\"\ + : 500\r\n },\r\n {\r\n \"offerName\": \"1Gbps\"\ + ,\r\n \"valueInMbps\": 1000\r\n },\r\n {\r\n\ + \ \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": 2000\r\ + \n },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n\ + \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ + \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ + \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"Sejong Telecom\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Seoul\"\r\n ],\r\ + \n \"bandwidthsOffered\": [\r\n {\r\n \"offerName\"\ + : \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\n \ + \ {\r\n \"offerName\": \"100Mbps\",\r\n \"valueInMbps\"\ + : 100\r\n },\r\n {\r\n \"offerName\": \"200Mbps\"\ + ,\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n \ + \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\ + \n },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n\ + \ \"valueInMbps\": 1000\r\n },\r\n {\r\n \ + \ \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": 2000\r\n\ + \ },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n\ + \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ + \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ + \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"SIFY\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Chennai\",\r\n \ + \ \"Mumbai2\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n \ + \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\"\ + : 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\"\ + ,\r\n \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\ + \n },\r\n {\r\n \"offerName\": \"500Mbps\",\r\ + \n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"SingTel Domestic\",\r\n \"id\"\ + : \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Singapore\"\r\n \ + \ ],\r\n \"bandwidthsOffered\": [\r\n {\r\n \"\ + offerName\": \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\ + \n {\r\n \"offerName\": \"100Mbps\",\r\n \"\ + valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\"\ + : \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n \ + \ {\r\n \"offerName\": \"500Mbps\",\r\n \"valueInMbps\"\ + : 500\r\n },\r\n {\r\n \"offerName\": \"1Gbps\"\ + ,\r\n \"valueInMbps\": 1000\r\n },\r\n {\r\n\ + \ \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": 2000\r\ + \n },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n\ + \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ + \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ + \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"SingTel International\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Singapore\"\r\n \ + \ ],\r\n \"bandwidthsOffered\": [\r\n {\r\n \"\ + offerName\": \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\ + \n {\r\n \"offerName\": \"100Mbps\",\r\n \"\ + valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\"\ + : \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n \ + \ {\r\n \"offerName\": \"500Mbps\",\r\n \"valueInMbps\"\ + : 500\r\n },\r\n {\r\n \"offerName\": \"1Gbps\"\ + ,\r\n \"valueInMbps\": 1000\r\n },\r\n {\r\n\ + \ \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": 2000\r\ + \n },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n\ + \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ + \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ + \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"SoftBank\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Osaka\",\r\n \ + \ \"Tokyo\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n \ + \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\"\ + : 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\"\ + ,\r\n \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\ + \n },\r\n {\r\n \"offerName\": \"500Mbps\",\r\ + \n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"Tata Communications\",\r\n \"\ + id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Amsterdam\",\r\n \ + \ \"Chennai\",\r\n \"Hong Kong\",\r\n \"London\",\r\n\ + \ \"Mumbai\",\r\n \"Silicon Valley\",\r\n \"Singapore\"\ + ,\r\n \"Washington DC\"\r\n ],\r\n \"bandwidthsOffered\"\ + : [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \ + \ \"valueInMbps\": 50\r\n },\r\n {\r\n \"offerName\"\ + : \"100Mbps\",\r\n \"valueInMbps\": 100\r\n },\r\n \ + \ {\r\n \"offerName\": \"200Mbps\",\r\n \"valueInMbps\"\ + : 200\r\n },\r\n {\r\n \"offerName\": \"500Mbps\"\ + ,\r\n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\ + \n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"TeleCity Group\",\r\n \"id\":\ + \ \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Amsterdam\",\r\n \ + \ \"Dublin\",\r\n \"London\"\r\n ],\r\n \"bandwidthsOffered\"\ + : [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \ + \ \"valueInMbps\": 50\r\n },\r\n {\r\n \"offerName\"\ + : \"100Mbps\",\r\n \"valueInMbps\": 100\r\n },\r\n \ + \ {\r\n \"offerName\": \"200Mbps\",\r\n \"valueInMbps\"\ + : 200\r\n },\r\n {\r\n \"offerName\": \"500Mbps\"\ + ,\r\n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\ + \n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"Telefonica\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Sao Paulo\",\r\n \ + \ \"Amsterdam\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n\ + \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\"\ + : 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\"\ + ,\r\n \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\ + \n },\r\n {\r\n \"offerName\": \"500Mbps\",\r\ + \n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"Telehouse - KDDI\",\r\n \"id\"\ + : \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"London\"\r\n ],\r\ + \n \"bandwidthsOffered\": [\r\n {\r\n \"offerName\"\ + : \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\n \ + \ {\r\n \"offerName\": \"100Mbps\",\r\n \"valueInMbps\"\ + : 100\r\n },\r\n {\r\n \"offerName\": \"200Mbps\"\ + ,\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n \ + \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\ + \n },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n\ + \ \"valueInMbps\": 1000\r\n },\r\n {\r\n \ + \ \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": 2000\r\n\ + \ },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n\ + \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ + \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ + \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"Telenor\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Amsterdam\",\r\n \ + \ \"London\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n \ + \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\"\ + : 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\"\ + ,\r\n \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\ + \n },\r\n {\r\n \"offerName\": \"500Mbps\",\r\ + \n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"Telstra Corporation\",\r\n \"\ + id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Melbourne\",\r\n \ + \ \"Sydney\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n \ + \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\"\ + : 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\"\ + ,\r\n \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\ + \n },\r\n {\r\n \"offerName\": \"500Mbps\",\r\ + \n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"Telus\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Toronto\"\r\n ],\r\ + \n \"bandwidthsOffered\": [\r\n {\r\n \"offerName\"\ + : \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\n \ + \ {\r\n \"offerName\": \"100Mbps\",\r\n \"valueInMbps\"\ + : 100\r\n },\r\n {\r\n \"offerName\": \"200Mbps\"\ + ,\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n \ + \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\ + \n },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n\ + \ \"valueInMbps\": 1000\r\n },\r\n {\r\n \ + \ \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": 2000\r\n\ + \ },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n\ + \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ + \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ + \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"UOLDIVEO\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Sao Paulo\"\r\n \ + \ ],\r\n \"bandwidthsOffered\": [\r\n {\r\n \"\ + offerName\": \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\ + \n {\r\n \"offerName\": \"100Mbps\",\r\n \"\ + valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\"\ + : \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n \ + \ {\r\n \"offerName\": \"500Mbps\",\r\n \"valueInMbps\"\ + : 500\r\n },\r\n {\r\n \"offerName\": \"1Gbps\"\ + ,\r\n \"valueInMbps\": 1000\r\n },\r\n {\r\n\ + \ \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": 2000\r\ + \n },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n\ + \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ + \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ + \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"Verizon\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Amsterdam\",\r\n \ + \ \"Chicago\",\r\n \"Dallas\",\r\n \"Hong Kong\",\r\n\ + \ \"London\",\r\n \"Mumbai\",\r\n \"Silicon Valley\"\ + ,\r\n \"Singapore\",\r\n \"Sydney\",\r\n \"Tokyo\"\ + ,\r\n \"Washington DC\"\r\n ],\r\n \"bandwidthsOffered\"\ + : [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \ + \ \"valueInMbps\": 50\r\n },\r\n {\r\n \"offerName\"\ + : \"100Mbps\",\r\n \"valueInMbps\": 100\r\n },\r\n \ + \ {\r\n \"offerName\": \"200Mbps\",\r\n \"valueInMbps\"\ + : 200\r\n },\r\n {\r\n \"offerName\": \"500Mbps\"\ + ,\r\n \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\ + \n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"Vodafone\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"London\"\r\n ],\r\ + \n \"bandwidthsOffered\": [\r\n {\r\n \"offerName\"\ + : \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\n \ + \ {\r\n \"offerName\": \"100Mbps\",\r\n \"valueInMbps\"\ + : 100\r\n },\r\n {\r\n \"offerName\": \"200Mbps\"\ + ,\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n \ + \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\ + \n },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n\ + \ \"valueInMbps\": 1000\r\n },\r\n {\r\n \ + \ \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": 2000\r\n\ + \ },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n\ + \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ + \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ + \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"Zayo\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Amsterdam\",\r\n \ + \ \"Chicago\",\r\n \"Dallas\",\r\n \"London\",\r\n \ + \ \"Los Angeles\",\r\n \"New York\",\r\n \"Silicon\ + \ Valley\",\r\n \"Toronto\",\r\n \"Washington DC\"\r\n \ + \ ],\r\n \"bandwidthsOffered\": [\r\n {\r\n \ + \ \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": 50\r\n \ + \ },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n \ + \ \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\n\ + \ },\r\n {\r\n \"offerName\": \"500Mbps\",\r\n\ + \ \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"Zayo Group\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Chicago\",\r\n \ + \ \"Los Angeles\",\r\n \"New York\",\r\n \"Silicon Valley\"\ + ,\r\n \"Toronto\",\r\n \"Washington DC\"\r\n ],\r\ + \n \"bandwidthsOffered\": [\r\n {\r\n \"offerName\"\ + : \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\n \ + \ {\r\n \"offerName\": \"100Mbps\",\r\n \"valueInMbps\"\ + : 100\r\n },\r\n {\r\n \"offerName\": \"200Mbps\"\ + ,\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n \ + \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\ + \n },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n\ + \ \"valueInMbps\": 1000\r\n },\r\n {\r\n \ + \ \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": 2000\r\n\ + \ },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n\ + \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ + \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ + \n }\r\n ]\r\n }\r\n }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['72298'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:24:24 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +version: 1 diff --git a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_load_balancers.yaml b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_load_balancers.yaml new file mode 100644 index 000000000000..4146db8a5f87 --- /dev/null +++ b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_load_balancers.yaml @@ -0,0 +1,650 @@ +interactions: +- request: + body: '{"location": "westus", "properties": {"publicIPAllocationMethod": "static", + "idleTimeoutInMinutes": 4}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['103'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyipname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35\"\ + ,\r\n \"etag\": \"W/\\\"4df5b7b9-1ca2-45fd-a417-87522059206e\\\"\",\r\n \ + \ \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Updating\",\r\n \"resourceGuid\": \"10a397d2-77f6-44d5-8ef7-4edeb6fd2c89\"\ + ,\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\"\ + : \"Static\",\r\n \"idleTimeoutInMinutes\": 4\r\n },\r\n \"type\": \"\ + Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\n \"name\": \"\ + Basic\"\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ac316438-e4fd-4cdd-bd6f-18693b42f4a6?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['630'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:24:31 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ac316438-e4fd-4cdd-bd6f-18693b42f4a6?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:24:34 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyipname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35\"\ + ,\r\n \"etag\": \"W/\\\"96db6395-d1fc-43ee-b499-b01bf286e1cb\\\"\",\r\n \ + \ \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"10a397d2-77f6-44d5-8ef7-4edeb6fd2c89\"\ + ,\r\n \"ipAddress\": \"23.99.53.45\",\r\n \"publicIPAddressVersion\"\ + : \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Static\",\r\n \"idleTimeoutInMinutes\"\ + : 4\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"\ + sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['664'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:24:34 GMT'] + etag: [W/"96db6395-d1fc-43ee-b499-b01bf286e1cb"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: 'b''{"location": "westus", "properties": {"frontendIPConfigurations": [{"properties": + {"privateIPAllocationMethod": "Dynamic", "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35"}}, + "name": "pyfipname239e0f35"}], "backendAddressPools": [{"name": "pyapname239e0f35"}], + "loadBalancingRules": [{"properties": {"frontendIPConfiguration": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35"}, + "backendAddressPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35"}, + "probe": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35"}, + "protocol": "tcp", "loadDistribution": "Default", "frontendPort": 80, "backendPort": + 80, "idleTimeoutInMinutes": 4, "enableFloatingIP": false}, "name": "azure-sample-lb-rule"}], + "probes": [{"properties": {"protocol": "Http", "port": 80, "intervalInSeconds": + 15, "numberOfProbes": 4, "requestPath": "healthprobe.aspx"}, "name": "pyprobename239e0f35"}], + "inboundNatRules": [{"properties": {"frontendIPConfiguration": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35"}, + "protocol": "tcp", "frontendPort": 21, "backendPort": 22, "idleTimeoutInMinutes": + 4, "enableFloatingIP": false}, "name": "azure-sample-netrule1"}, {"properties": + {"frontendIPConfiguration": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35"}, + "protocol": "tcp", "frontendPort": 23, "backendPort": 22, "idleTimeoutInMinutes": + 4, "enableFloatingIP": false}, "name": "azure-sample-netrule2"}]}}''' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['2374'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pylbname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n\ + \ \"resourceGuid\": \"e70d3471-bce7-49d4-a58c-6d1651b0cd3c\",\r\n \"\ + frontendIPConfigurations\": [\r\n {\r\n \"name\": \"pyfipname239e0f35\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"\ + publicIPAddress\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35\"\ + \r\n },\r\n \"loadBalancingRules\": [\r\n {\r\ + \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ + \r\n }\r\n ],\r\n \"inboundNatRules\": [\r\n\ + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\"\ + \r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\"\ + \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \ + \ \"backendAddressPools\": [\r\n {\r\n \"name\": \"pyapname239e0f35\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"loadBalancingRules\": [\r\n {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ + \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \ + \ \"loadBalancingRules\": [\r\n {\r\n \"name\": \"azure-sample-lb-rule\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ + \r\n },\r\n \"frontendPort\": 80,\r\n \"backendPort\"\ + : 80,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\"\ + : 4,\r\n \"protocol\": \"Tcp\",\r\n \"loadDistribution\"\ + : \"Default\",\r\n \"backendAddressPool\": {\r\n \"id\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\"\ + \r\n },\r\n \"probe\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\"\ + \r\n }\r\n }\r\n }\r\n ],\r\n \"probes\": [\r\n\ + \ {\r\n \"name\": \"pyprobename239e0f35\",\r\n \"id\":\ + \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"protocol\": \"Http\",\r\n \"port\": 80,\r\n \ + \ \"requestPath\": \"healthprobe.aspx\",\r\n \"intervalInSeconds\"\ + : 15,\r\n \"numberOfProbes\": 4,\r\n \"loadBalancingRules\"\ + : [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ + \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \ + \ \"inboundNatRules\": [\r\n {\r\n \"name\": \"azure-sample-netrule1\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ + \r\n },\r\n \"frontendPort\": 21,\r\n \"backendPort\"\ + : 22,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\"\ + : 4,\r\n \"protocol\": \"Tcp\"\r\n }\r\n },\r\n \ + \ {\r\n \"name\": \"azure-sample-netrule2\",\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ + \r\n },\r\n \"frontendPort\": 23,\r\n \"backendPort\"\ + : 22,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\"\ + : 4,\r\n \"protocol\": \"Tcp\"\r\n }\r\n }\r\n ],\r\ + \n \"outboundNatRules\": [],\r\n \"inboundNatPools\": []\r\n },\r\n\ + \ \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d1fde5fb-a49d-49d0-bf35-1ad609f3e45a?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['7238'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:24:35 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d1fde5fb-a49d-49d0-bf35-1ad609f3e45a?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:25:06 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pylbname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n\ + \ \"resourceGuid\": \"e70d3471-bce7-49d4-a58c-6d1651b0cd3c\",\r\n \"\ + frontendIPConfigurations\": [\r\n {\r\n \"name\": \"pyfipname239e0f35\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"\ + publicIPAddress\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35\"\ + \r\n },\r\n \"loadBalancingRules\": [\r\n {\r\ + \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ + \r\n }\r\n ],\r\n \"inboundNatRules\": [\r\n\ + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\"\ + \r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\"\ + \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \ + \ \"backendAddressPools\": [\r\n {\r\n \"name\": \"pyapname239e0f35\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"loadBalancingRules\": [\r\n {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ + \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \ + \ \"loadBalancingRules\": [\r\n {\r\n \"name\": \"azure-sample-lb-rule\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ + \r\n },\r\n \"frontendPort\": 80,\r\n \"backendPort\"\ + : 80,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\"\ + : 4,\r\n \"protocol\": \"Tcp\",\r\n \"loadDistribution\"\ + : \"Default\",\r\n \"backendAddressPool\": {\r\n \"id\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\"\ + \r\n },\r\n \"probe\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\"\ + \r\n }\r\n }\r\n }\r\n ],\r\n \"probes\": [\r\n\ + \ {\r\n \"name\": \"pyprobename239e0f35\",\r\n \"id\":\ + \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"protocol\": \"Http\",\r\n \"port\": 80,\r\n \ + \ \"requestPath\": \"healthprobe.aspx\",\r\n \"intervalInSeconds\"\ + : 15,\r\n \"numberOfProbes\": 4,\r\n \"loadBalancingRules\"\ + : [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ + \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \ + \ \"inboundNatRules\": [\r\n {\r\n \"name\": \"azure-sample-netrule1\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ + \r\n },\r\n \"frontendPort\": 21,\r\n \"backendPort\"\ + : 22,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\"\ + : 4,\r\n \"protocol\": \"Tcp\"\r\n }\r\n },\r\n \ + \ {\r\n \"name\": \"azure-sample-netrule2\",\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ + \r\n },\r\n \"frontendPort\": 23,\r\n \"backendPort\"\ + : 22,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\"\ + : 4,\r\n \"protocol\": \"Tcp\"\r\n }\r\n }\r\n ],\r\ + \n \"outboundNatRules\": [],\r\n \"inboundNatPools\": []\r\n },\r\n\ + \ \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['7238'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:25:07 GMT'] + etag: [W/"57dbbc38-954c-4bc8-a427-0a47a2829e80"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pylbname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n\ + \ \"resourceGuid\": \"e70d3471-bce7-49d4-a58c-6d1651b0cd3c\",\r\n \"\ + frontendIPConfigurations\": [\r\n {\r\n \"name\": \"pyfipname239e0f35\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"\ + publicIPAddress\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35\"\ + \r\n },\r\n \"loadBalancingRules\": [\r\n {\r\ + \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ + \r\n }\r\n ],\r\n \"inboundNatRules\": [\r\n\ + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\"\ + \r\n },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\"\ + \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \ + \ \"backendAddressPools\": [\r\n {\r\n \"name\": \"pyapname239e0f35\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"loadBalancingRules\": [\r\n {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ + \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \ + \ \"loadBalancingRules\": [\r\n {\r\n \"name\": \"azure-sample-lb-rule\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ + \r\n },\r\n \"frontendPort\": 80,\r\n \"backendPort\"\ + : 80,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\"\ + : 4,\r\n \"protocol\": \"Tcp\",\r\n \"loadDistribution\"\ + : \"Default\",\r\n \"backendAddressPool\": {\r\n \"id\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\"\ + \r\n },\r\n \"probe\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\"\ + \r\n }\r\n }\r\n }\r\n ],\r\n \"probes\": [\r\n\ + \ {\r\n \"name\": \"pyprobename239e0f35\",\r\n \"id\":\ + \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"protocol\": \"Http\",\r\n \"port\": 80,\r\n \ + \ \"requestPath\": \"healthprobe.aspx\",\r\n \"intervalInSeconds\"\ + : 15,\r\n \"numberOfProbes\": 4,\r\n \"loadBalancingRules\"\ + : [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ + \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \ + \ \"inboundNatRules\": [\r\n {\r\n \"name\": \"azure-sample-netrule1\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ + \r\n },\r\n \"frontendPort\": 21,\r\n \"backendPort\"\ + : 22,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\"\ + : 4,\r\n \"protocol\": \"Tcp\"\r\n }\r\n },\r\n \ + \ {\r\n \"name\": \"azure-sample-netrule2\",\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ + \r\n },\r\n \"frontendPort\": 23,\r\n \"backendPort\"\ + : 22,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\"\ + : 4,\r\n \"protocol\": \"Tcp\"\r\n }\r\n }\r\n ],\r\ + \n \"outboundNatRules\": [],\r\n \"inboundNatPools\": []\r\n },\r\n\ + \ \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['7238'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:25:08 GMT'] + etag: [W/"57dbbc38-954c-4bc8-a427-0a47a2829e80"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/loadBalancers?api-version=2017-09-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pylbname239e0f35\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\",\r\ + \n \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\"\ + : \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"e70d3471-bce7-49d4-a58c-6d1651b0cd3c\"\ + ,\r\n \"frontendIPConfigurations\": [\r\n {\r\n \ + \ \"name\": \"pyfipname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"privateIPAllocationMethod\": \"Dynamic\"\ + ,\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35\"\ + \r\n },\r\n \"loadBalancingRules\": [\r\n \ + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ + \r\n }\r\n ],\r\n \"inboundNatRules\"\ + : [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\"\ + \r\n },\r\n {\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\"\ + \r\n }\r\n ]\r\n }\r\n }\r\ + \n ],\r\n \"backendAddressPools\": [\r\n {\r\n \ + \ \"name\": \"pyapname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"loadBalancingRules\": [\r\n \ + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ + \r\n }\r\n ]\r\n }\r\n }\r\ + \n ],\r\n \"loadBalancingRules\": [\r\n {\r\n \ + \ \"name\": \"azure-sample-lb-rule\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ + \r\n },\r\n \"frontendPort\": 80,\r\n \ + \ \"backendPort\": 80,\r\n \"enableFloatingIP\": false,\r\n\ + \ \"idleTimeoutInMinutes\": 4,\r\n \"protocol\"\ + : \"Tcp\",\r\n \"loadDistribution\": \"Default\",\r\n \ + \ \"backendAddressPool\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\"\ + \r\n },\r\n \"probe\": {\r\n \"id\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\"\ + \r\n }\r\n }\r\n }\r\n ],\r\n \ + \ \"probes\": [\r\n {\r\n \"name\": \"pyprobename239e0f35\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"protocol\": \"Http\",\r\n \ + \ \"port\": 80,\r\n \"requestPath\": \"healthprobe.aspx\",\r\ + \n \"intervalInSeconds\": 15,\r\n \"numberOfProbes\"\ + : 4,\r\n \"loadBalancingRules\": [\r\n {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ + \r\n }\r\n ]\r\n }\r\n }\r\ + \n ],\r\n \"inboundNatRules\": [\r\n {\r\n \ + \ \"name\": \"azure-sample-netrule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ + \r\n },\r\n \"frontendPort\": 21,\r\n \ + \ \"backendPort\": 22,\r\n \"enableFloatingIP\": false,\r\n\ + \ \"idleTimeoutInMinutes\": 4,\r\n \"protocol\"\ + : \"Tcp\"\r\n }\r\n },\r\n {\r\n \"\ + name\": \"azure-sample-netrule2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ + \r\n },\r\n \"frontendPort\": 23,\r\n \ + \ \"backendPort\": 22,\r\n \"enableFloatingIP\": false,\r\n\ + \ \"idleTimeoutInMinutes\": 4,\r\n \"protocol\"\ + : \"Tcp\"\r\n }\r\n }\r\n ],\r\n \"outboundNatRules\"\ + : [],\r\n \"inboundNatPools\": []\r\n },\r\n \"sku\": {\r\ + \n \"name\": \"Basic\"\r\n }\r\n }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['7811'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:25:07 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers?api-version=2017-09-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pylbname239e0f35\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\",\r\ + \n \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\"\ + : \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"e70d3471-bce7-49d4-a58c-6d1651b0cd3c\"\ + ,\r\n \"frontendIPConfigurations\": [\r\n {\r\n \ + \ \"name\": \"pyfipname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"privateIPAllocationMethod\": \"Dynamic\"\ + ,\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35\"\ + \r\n },\r\n \"loadBalancingRules\": [\r\n \ + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ + \r\n }\r\n ],\r\n \"inboundNatRules\"\ + : [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\"\ + \r\n },\r\n {\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\"\ + \r\n }\r\n ]\r\n }\r\n }\r\ + \n ],\r\n \"backendAddressPools\": [\r\n {\r\n \ + \ \"name\": \"pyapname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"loadBalancingRules\": [\r\n \ + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ + \r\n }\r\n ]\r\n }\r\n }\r\ + \n ],\r\n \"loadBalancingRules\": [\r\n {\r\n \ + \ \"name\": \"azure-sample-lb-rule\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ + \r\n },\r\n \"frontendPort\": 80,\r\n \ + \ \"backendPort\": 80,\r\n \"enableFloatingIP\": false,\r\n\ + \ \"idleTimeoutInMinutes\": 4,\r\n \"protocol\"\ + : \"Tcp\",\r\n \"loadDistribution\": \"Default\",\r\n \ + \ \"backendAddressPool\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\"\ + \r\n },\r\n \"probe\": {\r\n \"id\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\"\ + \r\n }\r\n }\r\n }\r\n ],\r\n \ + \ \"probes\": [\r\n {\r\n \"name\": \"pyprobename239e0f35\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"protocol\": \"Http\",\r\n \ + \ \"port\": 80,\r\n \"requestPath\": \"healthprobe.aspx\",\r\ + \n \"intervalInSeconds\": 15,\r\n \"numberOfProbes\"\ + : 4,\r\n \"loadBalancingRules\": [\r\n {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ + \r\n }\r\n ]\r\n }\r\n }\r\ + \n ],\r\n \"inboundNatRules\": [\r\n {\r\n \ + \ \"name\": \"azure-sample-netrule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ + \r\n },\r\n \"frontendPort\": 21,\r\n \ + \ \"backendPort\": 22,\r\n \"enableFloatingIP\": false,\r\n\ + \ \"idleTimeoutInMinutes\": 4,\r\n \"protocol\"\ + : \"Tcp\"\r\n }\r\n },\r\n {\r\n \"\ + name\": \"azure-sample-netrule2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\"\ + ,\r\n \"etag\": \"W/\\\"57dbbc38-954c-4bc8-a427-0a47a2829e80\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ + \r\n },\r\n \"frontendPort\": 23,\r\n \ + \ \"backendPort\": 22,\r\n \"enableFloatingIP\": false,\r\n\ + \ \"idleTimeoutInMinutes\": 4,\r\n \"protocol\"\ + : \"Tcp\"\r\n }\r\n }\r\n ],\r\n \"outboundNatRules\"\ + : [],\r\n \"inboundNatPools\": []\r\n },\r\n \"sku\": {\r\ + \n \"name\": \"Basic\"\r\n }\r\n }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['7811'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:25:08 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35?api-version=2017-09-01 + response: + body: {string: ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f186ffb6-89ce-4375-921e-cb7a25838e0d?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 15 Sep 2017 23:25:09 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/f186ffb6-89ce-4375-921e-cb7a25838e0d?api-version=2017-09-01'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f186ffb6-89ce-4375-921e-cb7a25838e0d?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:25:20 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +version: 1 diff --git a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_network_interface_card.yaml b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_network_interface_card.yaml new file mode 100644 index 000000000000..70d04e3508eb --- /dev/null +++ b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_network_interface_card.yaml @@ -0,0 +1,485 @@ +interactions: +- request: + body: '{"location": "westus", "properties": {"addressSpace": {"addressPrefixes": + ["10.0.0.0/16"]}}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['92'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyvnetb046129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e\"\ + ,\r\n \"etag\": \"W/\\\"3542f7ea-7852-40d3-997c-fe8a8fc2b1f1\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \ + \ \"resourceGuid\": \"40970250-d420-4232-af8a-691e61dfbcdf\",\r\n \"\ + addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\ + \r\n ]\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ab46d63f-db23-4975-ab2a-f89a57df3ea7?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['693'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:25:25 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ab46d63f-db23-4975-ab2a-f89a57df3ea7?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:25:29 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyvnetb046129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e\"\ + ,\r\n \"etag\": \"W/\\\"e58f9837-df81-4592-839f-8121e2a3abd7\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n\ + \ \"resourceGuid\": \"40970250-d420-4232-af8a-691e61dfbcdf\",\r\n \"\ + addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\ + \r\n ]\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['694'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:25:30 GMT'] + etag: [W/"e58f9837-df81-4592-839f-8121e2a3abd7"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"addressPrefix": "10.0.0.0/24"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['48'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pysubnetb046129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e\"\ + ,\r\n \"etag\": \"W/\\\"1d59ad71-d706-499a-a2c3-f89045879747\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ + addressPrefix\": \"10.0.0.0/24\"\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/4925678b-d3ed-4213-b371-503b3716dd41?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['407'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:25:30 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/4925678b-d3ed-4213-b371-503b3716dd41?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:25:34 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pysubnetb046129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e\"\ + ,\r\n \"etag\": \"W/\\\"398a7ff3-1a95-4bd7-960c-95a6fb0e49c7\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + addressPrefix\": \"10.0.0.0/24\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['408'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:25:35 GMT'] + etag: [W/"398a7ff3-1a95-4bd7-960c-95a6fb0e49c7"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: 'b''{"location": "westus", "properties": {"ipConfigurations": [{"properties": + {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e"}}, + "name": "MyIpConfig"}]}}''' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['326'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pynicb046129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e\"\ + ,\r\n \"etag\": \"W/\\\"10f675f8-64fc-4470-9ae0-8dad483cb239\\\"\",\r\n \ + \ \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"ddaf5cde-5dd2-4a2f-bf6e-7920219f405a\"\ + ,\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"MyIpConfig\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e/ipConfigurations/MyIpConfig\"\ + ,\r\n \"etag\": \"W/\\\"10f675f8-64fc-4470-9ae0-8dad483cb239\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\"\ + : \"Dynamic\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e\"\ + \r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\"\ + : \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n\ + \ \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"\ + internalDomainNameSuffix\": \"kabjoqba0qzefl2knepgdx321h.dx.internal.cloudapp.net\"\ + \r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\"\ + : false\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n\ + }"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c3f7052b-ea43-4c46-bb0d-59070ddeae60?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['1618'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:25:36 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c3f7052b-ea43-4c46-bb0d-59070ddeae60?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:26:06 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pynicb046129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e\"\ + ,\r\n \"etag\": \"W/\\\"10f675f8-64fc-4470-9ae0-8dad483cb239\\\"\",\r\n \ + \ \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"ddaf5cde-5dd2-4a2f-bf6e-7920219f405a\"\ + ,\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"MyIpConfig\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e/ipConfigurations/MyIpConfig\"\ + ,\r\n \"etag\": \"W/\\\"10f675f8-64fc-4470-9ae0-8dad483cb239\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\"\ + : \"Dynamic\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e\"\ + \r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\"\ + : \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n\ + \ \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"\ + internalDomainNameSuffix\": \"kabjoqba0qzefl2knepgdx321h.dx.internal.cloudapp.net\"\ + \r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\"\ + : false\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n\ + }"} + headers: + cache-control: [no-cache] + content-length: ['1618'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:26:07 GMT'] + etag: [W/"10f675f8-64fc-4470-9ae0-8dad483cb239"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pynicb046129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e\"\ + ,\r\n \"etag\": \"W/\\\"10f675f8-64fc-4470-9ae0-8dad483cb239\\\"\",\r\n \ + \ \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"ddaf5cde-5dd2-4a2f-bf6e-7920219f405a\"\ + ,\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"MyIpConfig\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e/ipConfigurations/MyIpConfig\"\ + ,\r\n \"etag\": \"W/\\\"10f675f8-64fc-4470-9ae0-8dad483cb239\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\"\ + : \"Dynamic\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e\"\ + \r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\"\ + : \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n\ + \ \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"\ + internalDomainNameSuffix\": \"kabjoqba0qzefl2knepgdx321h.dx.internal.cloudapp.net\"\ + \r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\"\ + : false\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n\ + }"} + headers: + cache-control: [no-cache] + content-length: ['1618'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:26:07 GMT'] + etag: [W/"10f675f8-64fc-4470-9ae0-8dad483cb239"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces?api-version=2017-09-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pynicb046129e\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e\"\ + ,\r\n \"etag\": \"W/\\\"10f675f8-64fc-4470-9ae0-8dad483cb239\\\"\",\r\ + \n \"location\": \"westus\",\r\n \"properties\": {\r\n \"\ + provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"ddaf5cde-5dd2-4a2f-bf6e-7920219f405a\"\ + ,\r\n \"ipConfigurations\": [\r\n {\r\n \"name\"\ + : \"MyIpConfig\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e/ipConfigurations/MyIpConfig\"\ + ,\r\n \"etag\": \"W/\\\"10f675f8-64fc-4470-9ae0-8dad483cb239\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n\ + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \ + \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e\"\ + \r\n },\r\n \"primary\": true,\r\n \ + \ \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n\ + \ ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\ + \n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\"\ + : \"kabjoqba0qzefl2knepgdx321h.dx.internal.cloudapp.net\"\r\n },\r\n\ + \ \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\"\ + : false\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\ + \r\n }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1783'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:26:07 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/networkInterfaces?api-version=2017-09-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pynicb046129e\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e\"\ + ,\r\n \"etag\": \"W/\\\"10f675f8-64fc-4470-9ae0-8dad483cb239\\\"\",\r\ + \n \"location\": \"westus\",\r\n \"properties\": {\r\n \"\ + provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"ddaf5cde-5dd2-4a2f-bf6e-7920219f405a\"\ + ,\r\n \"ipConfigurations\": [\r\n {\r\n \"name\"\ + : \"MyIpConfig\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e/ipConfigurations/MyIpConfig\"\ + ,\r\n \"etag\": \"W/\\\"10f675f8-64fc-4470-9ae0-8dad483cb239\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n\ + \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \ + \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e\"\ + \r\n },\r\n \"primary\": true,\r\n \ + \ \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n\ + \ ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\ + \n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\"\ + : \"kabjoqba0qzefl2knepgdx321h.dx.internal.cloudapp.net\"\r\n },\r\n\ + \ \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\"\ + : false\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\ + \r\n }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1783'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:26:07 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e?api-version=2017-09-01 + response: + body: {string: ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/fcd51ae9-fbe8-4ae3-a73a-497b9b863f2e?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 15 Sep 2017 23:26:08 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/fcd51ae9-fbe8-4ae3-a73a-497b9b863f2e?api-version=2017-09-01'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/fcd51ae9-fbe8-4ae3-a73a-497b9b863f2e?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:26:18 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +version: 1 diff --git a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_network_security_groups.yaml b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_network_security_groups.yaml new file mode 100644 index 000000000000..3142614a4431 --- /dev/null +++ b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_network_security_groups.yaml @@ -0,0 +1,907 @@ +interactions: +- request: + body: '{"location": "westus", "properties": {"securityRules": [{"properties": + {"description": "Test security rule", "protocol": "Tcp", "sourcePortRange": + "655", "destinationPortRange": "123-3500", "sourceAddressPrefix": "*", "destinationAddressPrefix": + "*", "access": "Allow", "priority": 500, "direction": "Inbound"}, "name": "pysecgrouprulec575136b"}]}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['348'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pysecgroupc575136b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b\"\ + ,\r\n \"etag\": \"W/\\\"6ade14e2-000b-490b-bd08-b55395b5daea\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\"\ + : \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + ,\r\n \"resourceGuid\": \"0eda1e8e-7bd7-472d-955b-91d6a4db95ea\",\r\n \ + \ \"securityRules\": [\r\n {\r\n \"name\": \"pysecgrouprulec575136b\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pysecgrouprulec575136b\"\ + ,\r\n \"etag\": \"W/\\\"6ade14e2-000b-490b-bd08-b55395b5daea\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + ,\r\n \"description\": \"Test security rule\",\r\n \"protocol\"\ + : \"Tcp\",\r\n \"sourcePortRange\": \"655\",\r\n \"destinationPortRange\"\ + : \"123-3500\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \ + \ \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\"\ + ,\r\n \"priority\": 500,\r\n \"direction\": \"Inbound\"\ + ,\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\"\ + : [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ + : []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\ + \n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetInBound\"\ + ,\r\n \"etag\": \"W/\\\"6ade14e2-000b-490b-bd08-b55395b5daea\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + ,\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\"\ + ,\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\"\ + ,\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\"\ + : \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\"\ + ,\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n\ + \ \"direction\": \"Inbound\",\r\n \"sourcePortRanges\":\ + \ [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\"\ + : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \ + \ },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\ + \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowAzureLoadBalancerInBound\"\ + ,\r\n \"etag\": \"W/\\\"6ade14e2-000b-490b-bd08-b55395b5daea\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + ,\r\n \"description\": \"Allow inbound traffic from azure load balancer\"\ + ,\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\"\ + ,\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\"\ + : \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\"\ + ,\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n\ + \ \"direction\": \"Inbound\",\r\n \"sourcePortRanges\":\ + \ [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\"\ + : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \ + \ },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllInBound\"\ + ,\r\n \"etag\": \"W/\\\"6ade14e2-000b-490b-bd08-b55395b5daea\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + ,\r\n \"description\": \"Deny all inbound traffic\",\r\n \ + \ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \ + \ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\"\ + : \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"\ + access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\"\ + : \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\"\ + : [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ + : []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetOutBound\"\ + ,\r\n \"etag\": \"W/\\\"6ade14e2-000b-490b-bd08-b55395b5daea\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + ,\r\n \"description\": \"Allow outbound traffic from all VMs to all\ + \ VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\"\ + : \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\"\ + : \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\"\ + ,\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n\ + \ \"direction\": \"Outbound\",\r\n \"sourcePortRanges\"\ + : [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\"\ + : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \ + \ },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowInternetOutBound\"\ + ,\r\n \"etag\": \"W/\\\"6ade14e2-000b-490b-bd08-b55395b5daea\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + ,\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\"\ + ,\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\"\ + ,\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\"\ + : \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \ + \ \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \ + \ \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\ + \n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\"\ + : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \ + \ },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllOutBound\"\ + ,\r\n \"etag\": \"W/\\\"6ade14e2-000b-490b-bd08-b55395b5daea\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + ,\r\n \"description\": \"Deny all outbound traffic\",\r\n \ + \ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \ + \ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\"\ + : \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"\ + access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\"\ + : \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\"\ + : [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ + : []\r\n }\r\n }\r\n ]\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/2cc3ef5b-41ee-4adb-96f5-88ba81a0d0c7?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['7357'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:26:25 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/2cc3ef5b-41ee-4adb-96f5-88ba81a0d0c7?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:26:36 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pysecgroupc575136b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\"\ + : \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"resourceGuid\": \"0eda1e8e-7bd7-472d-955b-91d6a4db95ea\",\r\n \ + \ \"securityRules\": [\r\n {\r\n \"name\": \"pysecgrouprulec575136b\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pysecgrouprulec575136b\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"description\": \"Test security rule\",\r\n \"protocol\"\ + : \"Tcp\",\r\n \"sourcePortRange\": \"655\",\r\n \"destinationPortRange\"\ + : \"123-3500\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \ + \ \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\"\ + ,\r\n \"priority\": 500,\r\n \"direction\": \"Inbound\"\ + ,\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\"\ + : [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ + : []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\ + \n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetInBound\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\"\ + ,\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\"\ + ,\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\"\ + : \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\"\ + ,\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n\ + \ \"direction\": \"Inbound\",\r\n \"sourcePortRanges\":\ + \ [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\"\ + : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \ + \ },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\ + \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowAzureLoadBalancerInBound\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"description\": \"Allow inbound traffic from azure load balancer\"\ + ,\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\"\ + ,\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\"\ + : \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\"\ + ,\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n\ + \ \"direction\": \"Inbound\",\r\n \"sourcePortRanges\":\ + \ [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\"\ + : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \ + \ },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllInBound\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"description\": \"Deny all inbound traffic\",\r\n \ + \ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \ + \ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\"\ + : \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"\ + access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\"\ + : \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\"\ + : [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ + : []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetOutBound\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"description\": \"Allow outbound traffic from all VMs to all\ + \ VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\"\ + : \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\"\ + : \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\"\ + ,\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n\ + \ \"direction\": \"Outbound\",\r\n \"sourcePortRanges\"\ + : [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\"\ + : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \ + \ },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowInternetOutBound\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\"\ + ,\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\"\ + ,\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\"\ + : \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \ + \ \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \ + \ \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\ + \n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\"\ + : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \ + \ },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllOutBound\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"description\": \"Deny all outbound traffic\",\r\n \ + \ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \ + \ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\"\ + : \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"\ + access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\"\ + : \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\"\ + : [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ + : []\r\n }\r\n }\r\n ]\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['7365'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:26:36 GMT'] + etag: [W/"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pysecgroupc575136b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\"\ + : \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"resourceGuid\": \"0eda1e8e-7bd7-472d-955b-91d6a4db95ea\",\r\n \ + \ \"securityRules\": [\r\n {\r\n \"name\": \"pysecgrouprulec575136b\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pysecgrouprulec575136b\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"description\": \"Test security rule\",\r\n \"protocol\"\ + : \"Tcp\",\r\n \"sourcePortRange\": \"655\",\r\n \"destinationPortRange\"\ + : \"123-3500\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \ + \ \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\"\ + ,\r\n \"priority\": 500,\r\n \"direction\": \"Inbound\"\ + ,\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\"\ + : [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ + : []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\ + \n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetInBound\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\"\ + ,\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\"\ + ,\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\"\ + : \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\"\ + ,\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n\ + \ \"direction\": \"Inbound\",\r\n \"sourcePortRanges\":\ + \ [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\"\ + : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \ + \ },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\ + \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowAzureLoadBalancerInBound\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"description\": \"Allow inbound traffic from azure load balancer\"\ + ,\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\"\ + ,\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\"\ + : \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\"\ + ,\r\n \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n\ + \ \"direction\": \"Inbound\",\r\n \"sourcePortRanges\":\ + \ [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\"\ + : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \ + \ },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllInBound\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"description\": \"Deny all inbound traffic\",\r\n \ + \ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \ + \ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\"\ + : \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"\ + access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\"\ + : \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\"\ + : [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ + : []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetOutBound\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"description\": \"Allow outbound traffic from all VMs to all\ + \ VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\"\ + : \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\"\ + : \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\"\ + ,\r\n \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n\ + \ \"direction\": \"Outbound\",\r\n \"sourcePortRanges\"\ + : [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\"\ + : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \ + \ },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowInternetOutBound\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\"\ + ,\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\"\ + ,\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\"\ + : \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \ + \ \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \ + \ \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\ + \n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\"\ + : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \ + \ },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllOutBound\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"description\": \"Deny all outbound traffic\",\r\n \ + \ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \ + \ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\"\ + : \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"\ + access\": \"Deny\",\r\n \"priority\": 65500,\r\n \"direction\"\ + : \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\"\ + : [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ + : []\r\n }\r\n }\r\n ]\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['7365'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:26:36 GMT'] + etag: [W/"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups?api-version=2017-09-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pysecgroupc575136b\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\",\r\ + \n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"\ + location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"0eda1e8e-7bd7-472d-955b-91d6a4db95ea\"\ + ,\r\n \"securityRules\": [\r\n {\r\n \"name\":\ + \ \"pysecgrouprulec575136b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pysecgrouprulec575136b\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"description\": \"Test security rule\"\ + ,\r\n \"protocol\": \"Tcp\",\r\n \"sourcePortRange\"\ + : \"655\",\r\n \"destinationPortRange\": \"123-3500\",\r\n \ + \ \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\"\ + : \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\"\ + : 500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\"\ + : [],\r\n \"destinationPortRanges\": [],\r\n \"\ + sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ + : []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\"\ + : [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetInBound\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"description\": \"Allow inbound traffic\ + \ from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \ + \ \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\"\ + : \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n\ + \ \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \ + \ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n\ + \ \"direction\": \"Inbound\",\r\n \"sourcePortRanges\"\ + : [],\r\n \"destinationPortRanges\": [],\r\n \"\ + sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ + : []\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowAzureLoadBalancerInBound\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"description\": \"Allow inbound traffic\ + \ from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \ + \ \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\"\ + : \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\ + \n \"destinationAddressPrefix\": \"*\",\r\n \"access\"\ + : \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\"\ + : \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \ + \ \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\"\ + : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\ + \n },\r\n {\r\n \"name\": \"DenyAllInBound\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllInBound\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\"\ + ,\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\"\ + : \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \ + \ \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\"\ + : \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\"\ + : 65500,\r\n \"direction\": \"Inbound\",\r\n \"\ + sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n\ + \ \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ + : []\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetOutBound\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"description\": \"Allow outbound traffic\ + \ from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\"\ + ,\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\"\ + : \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n\ + \ \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \ + \ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n\ + \ \"direction\": \"Outbound\",\r\n \"sourcePortRanges\"\ + : [],\r\n \"destinationPortRanges\": [],\r\n \"\ + sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ + : []\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowInternetOutBound\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"description\": \"Allow outbound traffic\ + \ from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \ + \ \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\"\ + : \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \ + \ \"destinationAddressPrefix\": \"Internet\",\r\n \"access\"\ + : \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\"\ + : \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \ + \ \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\"\ + : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\ + \n },\r\n {\r\n \"name\": \"DenyAllOutBound\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllOutBound\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\"\ + ,\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\"\ + : \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \ + \ \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\"\ + : \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\"\ + : 65500,\r\n \"direction\": \"Outbound\",\r\n \"\ + sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n\ + \ \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ + : []\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n\ + \ ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['8038'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:26:37 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/networkSecurityGroups?api-version=2017-09-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pysecgroupc575136b\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\",\r\ + \n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"\ + location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"0eda1e8e-7bd7-472d-955b-91d6a4db95ea\"\ + ,\r\n \"securityRules\": [\r\n {\r\n \"name\":\ + \ \"pysecgrouprulec575136b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pysecgrouprulec575136b\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"description\": \"Test security rule\"\ + ,\r\n \"protocol\": \"Tcp\",\r\n \"sourcePortRange\"\ + : \"655\",\r\n \"destinationPortRange\": \"123-3500\",\r\n \ + \ \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\"\ + : \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\"\ + : 500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\"\ + : [],\r\n \"destinationPortRanges\": [],\r\n \"\ + sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ + : []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\"\ + : [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetInBound\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"description\": \"Allow inbound traffic\ + \ from all VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \ + \ \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\"\ + : \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n\ + \ \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \ + \ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n\ + \ \"direction\": \"Inbound\",\r\n \"sourcePortRanges\"\ + : [],\r\n \"destinationPortRanges\": [],\r\n \"\ + sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ + : []\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowAzureLoadBalancerInBound\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"description\": \"Allow inbound traffic\ + \ from azure load balancer\",\r\n \"protocol\": \"*\",\r\n \ + \ \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\"\ + : \"*\",\r\n \"sourceAddressPrefix\": \"AzureLoadBalancer\",\r\ + \n \"destinationAddressPrefix\": \"*\",\r\n \"access\"\ + : \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\"\ + : \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \ + \ \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\"\ + : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\ + \n },\r\n {\r\n \"name\": \"DenyAllInBound\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllInBound\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\"\ + ,\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\"\ + : \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \ + \ \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\"\ + : \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\"\ + : 65500,\r\n \"direction\": \"Inbound\",\r\n \"\ + sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n\ + \ \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ + : []\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetOutBound\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"description\": \"Allow outbound traffic\ + \ from all VMs to all VMs in VNET\",\r\n \"protocol\": \"*\"\ + ,\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\"\ + : \"*\",\r\n \"sourceAddressPrefix\": \"VirtualNetwork\",\r\n\ + \ \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n \ + \ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n\ + \ \"direction\": \"Outbound\",\r\n \"sourcePortRanges\"\ + : [],\r\n \"destinationPortRanges\": [],\r\n \"\ + sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ + : []\r\n }\r\n },\r\n {\r\n \"name\"\ + : \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowInternetOutBound\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"description\": \"Allow outbound traffic\ + \ from all VMs to Internet\",\r\n \"protocol\": \"*\",\r\n \ + \ \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\"\ + : \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \ + \ \"destinationAddressPrefix\": \"Internet\",\r\n \"access\"\ + : \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\"\ + : \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \ + \ \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\"\ + : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\ + \n },\r\n {\r\n \"name\": \"DenyAllOutBound\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllOutBound\"\ + ,\r\n \"etag\": \"W/\\\"fbf6c969-7e29-44f9-bef9-65fbdd4a5b73\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\"\ + ,\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\"\ + : \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \ + \ \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\"\ + : \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\"\ + : 65500,\r\n \"direction\": \"Outbound\",\r\n \"\ + sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n\ + \ \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ + : []\r\n }\r\n }\r\n ]\r\n }\r\n }\r\n\ + \ ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['8038'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:26:38 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"description": "New Test security rule", "protocol": "Tcp", + "sourcePortRange": "655", "destinationPortRange": "123-3500", "sourceAddressPrefix": + "*", "destinationAddressPrefix": "*", "access": "Allow", "priority": 400, "direction": + "Outbound"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['260'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pynewrulec575136b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b\"\ + ,\r\n \"etag\": \"W/\\\"96d25664-a088-4bdb-9018-38c4dd2b8119\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ + description\": \"New Test security rule\",\r\n \"protocol\": \"Tcp\",\r\ + \n \"sourcePortRange\": \"655\",\r\n \"destinationPortRange\": \"123-3500\"\ + ,\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\"\ + : \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 400,\r\n \"\ + direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\"\ + : [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ + : []\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/882f0c5c-41cb-4868-8d8d-ec2a847631e9?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['814'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:26:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/882f0c5c-41cb-4868-8d8d-ec2a847631e9?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:26:49 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pynewrulec575136b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b\"\ + ,\r\n \"etag\": \"W/\\\"93ad6677-6833-404d-b087-7e47b4ad4d74\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + description\": \"New Test security rule\",\r\n \"protocol\": \"Tcp\",\r\ + \n \"sourcePortRange\": \"655\",\r\n \"destinationPortRange\": \"123-3500\"\ + ,\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\"\ + : \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 400,\r\n \"\ + direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\"\ + : [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ + : []\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['815'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:26:50 GMT'] + etag: [W/"93ad6677-6833-404d-b087-7e47b4ad4d74"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pynewrulec575136b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b\"\ + ,\r\n \"etag\": \"W/\\\"93ad6677-6833-404d-b087-7e47b4ad4d74\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + description\": \"New Test security rule\",\r\n \"protocol\": \"Tcp\",\r\ + \n \"sourcePortRange\": \"655\",\r\n \"destinationPortRange\": \"123-3500\"\ + ,\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\"\ + : \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 400,\r\n \"\ + direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\"\ + : [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ + : []\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['815'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:26:50 GMT'] + etag: [W/"93ad6677-6833-404d-b087-7e47b4ad4d74"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules?api-version=2017-09-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pysecgrouprulec575136b\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pysecgrouprulec575136b\"\ + ,\r\n \"etag\": \"W/\\\"93ad6677-6833-404d-b087-7e47b4ad4d74\\\"\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"description\": \"Test security rule\",\r\n \"protocol\"\ + : \"Tcp\",\r\n \"sourcePortRange\": \"655\",\r\n \"destinationPortRange\"\ + : \"123-3500\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\"\ + : \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 500,\r\ + \n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\ + \n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\"\ + : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\ + \n {\r\n \"name\": \"pynewrulec575136b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b\"\ + ,\r\n \"etag\": \"W/\\\"93ad6677-6833-404d-b087-7e47b4ad4d74\\\"\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"description\": \"New Test security rule\",\r\n \"protocol\"\ + : \"Tcp\",\r\n \"sourcePortRange\": \"655\",\r\n \"destinationPortRange\"\ + : \"123-3500\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\"\ + : \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 400,\r\ + \n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": [],\r\ + \n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\"\ + : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n\ + \ ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1831'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:26:51 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b?api-version=2017-09-01 + response: + body: {string: ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3b7761c3-f64f-45b2-9fba-055227ac1fc2?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 15 Sep 2017 23:26:52 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/3b7761c3-f64f-45b2-9fba-055227ac1fc2?api-version=2017-09-01'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3b7761c3-f64f-45b2-9fba-055227ac1fc2?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:27:03 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b?api-version=2017-09-01 + response: + body: {string: ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/2d1b9f9b-4dad-4817-b586-82e6d654953e?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 15 Sep 2017 23:27:03 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/2d1b9f9b-4dad-4817-b586-82e6d654953e?api-version=2017-09-01'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/2d1b9f9b-4dad-4817-b586-82e6d654953e?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:27:14 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +version: 1 diff --git a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_public_ip_addresses.yaml b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_public_ip_addresses.yaml new file mode 100644 index 000000000000..30334ddf6a53 --- /dev/null +++ b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_public_ip_addresses.yaml @@ -0,0 +1,280 @@ +interactions: +- request: + body: '{"location": "westus", "tags": {"key": "value"}, "properties": {"publicIPAllocationMethod": + "Dynamic"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['103'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyipname773e115f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f\"\ + ,\r\n \"etag\": \"W/\\\"e8632c62-08c8-4366-8b5c-872f6ac73945\\\"\",\r\n \ + \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n\ + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\ + \n \"resourceGuid\": \"442ccd3a-40e8-44af-b1a7-41bc7bd9ec02\",\r\n \"\ + publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"\ + Dynamic\",\r\n \"idleTimeoutInMinutes\": 4\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\"\ + ,\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6380e8a4-d18e-4ca1-a0cb-c3a1d0e42e76?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['675'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:27:19 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6380e8a4-d18e-4ca1-a0cb-c3a1d0e42e76?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:27:22 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyipname773e115f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f\"\ + ,\r\n \"etag\": \"W/\\\"110005ca-58e5-4940-9808-9dec2aced4a6\\\"\",\r\n \ + \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n\ + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\ + \n \"resourceGuid\": \"442ccd3a-40e8-44af-b1a7-41bc7bd9ec02\",\r\n \"\ + publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"\ + Dynamic\",\r\n \"idleTimeoutInMinutes\": 4\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\"\ + ,\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['676'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:27:23 GMT'] + etag: [W/"110005ca-58e5-4940-9808-9dec2aced4a6"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyipname773e115f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f\"\ + ,\r\n \"etag\": \"W/\\\"110005ca-58e5-4940-9808-9dec2aced4a6\\\"\",\r\n \ + \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n\ + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\ + \n \"resourceGuid\": \"442ccd3a-40e8-44af-b1a7-41bc7bd9ec02\",\r\n \"\ + publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"\ + Dynamic\",\r\n \"idleTimeoutInMinutes\": 4\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\"\ + ,\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['676'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:27:23 GMT'] + etag: [W/"110005ca-58e5-4940-9808-9dec2aced4a6"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses?api-version=2017-09-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyipname773e115f\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f\"\ + ,\r\n \"etag\": \"W/\\\"110005ca-58e5-4940-9808-9dec2aced4a6\\\"\",\r\ + \n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\"\ + : \"value\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"442ccd3a-40e8-44af-b1a7-41bc7bd9ec02\"\ + ,\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\"\ + : \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4\r\n },\r\n \ + \ \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\ + \n \"name\": \"Basic\"\r\n }\r\n }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['781'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:27:24 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/publicIPAddresses?api-version=2017-09-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyipname773e115f\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f\"\ + ,\r\n \"etag\": \"W/\\\"110005ca-58e5-4940-9808-9dec2aced4a6\\\"\",\r\ + \n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\"\ + : \"value\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"442ccd3a-40e8-44af-b1a7-41bc7bd9ec02\"\ + ,\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\"\ + : \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4\r\n },\r\n \ + \ \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": {\r\ + \n \"name\": \"Basic\"\r\n }\r\n }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['781'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:27:24 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f?api-version=2017-09-01 + response: + body: {string: ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5e3b39f6-b508-4404-9de8-92c48e692202?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 15 Sep 2017 23:27:25 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/5e3b39f6-b508-4404-9de8-92c48e692202?api-version=2017-09-01'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5e3b39f6-b508-4404-9de8-92c48e692202?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:27:35 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses?api-version=2017-09-01 + response: + body: {string: "{\r\n \"value\": []\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['19'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:27:36 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +version: 1 diff --git a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_routes.yaml b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_routes.yaml new file mode 100644 index 000000000000..62ff2d9f838e --- /dev/null +++ b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_routes.yaml @@ -0,0 +1,444 @@ +interactions: +- request: + body: '{"location": "westus"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['22'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyroutetableb6760c2d\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d\"\ + ,\r\n \"etag\": \"W/\\\"846cd1fc-44c7-498b-9367-4fb9a1a9c432\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/routeTables\",\r\n \"location\": \"westus\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \ + \ \"resourceGuid\": \"ed7e3418-ee82-4457-ad88-b17fd9f59ae7\",\r\n \"\ + routes\": []\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/fa01371c-1246-443b-b28a-4ae9cd0a3277?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['484'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:27:43 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/fa01371c-1246-443b-b28a-4ae9cd0a3277?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:27:53 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyroutetableb6760c2d\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d\"\ + ,\r\n \"etag\": \"W/\\\"5b89a0ee-ba61-43b2-93d0-bf8b853c65e2\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/routeTables\",\r\n \"location\": \"westus\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n\ + \ \"resourceGuid\": \"ed7e3418-ee82-4457-ad88-b17fd9f59ae7\",\r\n \"\ + routes\": []\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['485'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:27:53 GMT'] + etag: [W/"5b89a0ee-ba61-43b2-93d0-bf8b853c65e2"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyroutetableb6760c2d\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d\"\ + ,\r\n \"etag\": \"W/\\\"5b89a0ee-ba61-43b2-93d0-bf8b853c65e2\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/routeTables\",\r\n \"location\": \"westus\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n\ + \ \"resourceGuid\": \"ed7e3418-ee82-4457-ad88-b17fd9f59ae7\",\r\n \"\ + routes\": []\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['485'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:27:54 GMT'] + etag: [W/"5b89a0ee-ba61-43b2-93d0-bf8b853c65e2"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables?api-version=2017-09-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyroutetableb6760c2d\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d\"\ + ,\r\n \"etag\": \"W/\\\"5b89a0ee-ba61-43b2-93d0-bf8b853c65e2\\\"\",\r\ + \n \"type\": \"Microsoft.Network/routeTables\",\r\n \"location\"\ + : \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"ed7e3418-ee82-4457-ad88-b17fd9f59ae7\"\ + ,\r\n \"routes\": []\r\n }\r\n }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['558'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:27:55 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/routeTables?api-version=2017-09-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyroutetableb6760c2d\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d\"\ + ,\r\n \"etag\": \"W/\\\"5b89a0ee-ba61-43b2-93d0-bf8b853c65e2\\\"\",\r\ + \n \"type\": \"Microsoft.Network/routeTables\",\r\n \"location\"\ + : \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"ed7e3418-ee82-4457-ad88-b17fd9f59ae7\"\ + ,\r\n \"routes\": []\r\n }\r\n }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['558'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:27:55 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"addressPrefix": "10.1.0.0/16", "nextHopType": "None"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['71'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyrouteb6760c2d\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d\"\ + ,\r\n \"etag\": \"W/\\\"fe4bb190-bf27-4d5a-9659-458ef748ca00\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ + addressPrefix\": \"10.1.0.0/16\",\r\n \"nextHopType\": \"None\"\r\n }\r\ + \n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1982314-e7f4-4b64-96ff-1165af3d2c5d?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['418'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:27:56 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1982314-e7f4-4b64-96ff-1165af3d2c5d?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:28:07 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyrouteb6760c2d\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d\"\ + ,\r\n \"etag\": \"W/\\\"4763d1f7-46c6-4c1a-bb9b-2b20db95e77d\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + addressPrefix\": \"10.1.0.0/16\",\r\n \"nextHopType\": \"None\"\r\n }\r\ + \n}"} + headers: + cache-control: [no-cache] + content-length: ['419'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:28:07 GMT'] + etag: [W/"4763d1f7-46c6-4c1a-bb9b-2b20db95e77d"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyrouteb6760c2d\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d\"\ + ,\r\n \"etag\": \"W/\\\"4763d1f7-46c6-4c1a-bb9b-2b20db95e77d\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + addressPrefix\": \"10.1.0.0/16\",\r\n \"nextHopType\": \"None\"\r\n }\r\ + \n}"} + headers: + cache-control: [no-cache] + content-length: ['419'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:28:07 GMT'] + etag: [W/"4763d1f7-46c6-4c1a-bb9b-2b20db95e77d"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes?api-version=2017-09-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyrouteb6760c2d\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d\"\ + ,\r\n \"etag\": \"W/\\\"4763d1f7-46c6-4c1a-bb9b-2b20db95e77d\\\"\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"addressPrefix\": \"10.1.0.0/16\",\r\n \"nextHopType\"\ + : \"None\"\r\n }\r\n }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['484'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:28:08 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d?api-version=2017-09-01 + response: + body: {string: ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/34cc0077-3881-4029-a28c-8dc94271276b?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 15 Sep 2017 23:28:09 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/34cc0077-3881-4029-a28c-8dc94271276b?api-version=2017-09-01'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/34cc0077-3881-4029-a28c-8dc94271276b?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:28:19 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d?api-version=2017-09-01 + response: + body: {string: ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75cb519c-bfc8-4cf7-83ec-822717853875?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Fri, 15 Sep 2017 23:28:19 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/75cb519c-bfc8-4cf7-83ec-822717853875?api-version=2017-09-01'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/75cb519c-bfc8-4cf7-83ec-822717853875?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:28:29 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +version: 1 diff --git a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_subnets.yaml b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_subnets.yaml new file mode 100644 index 000000000000..de0c324311da --- /dev/null +++ b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_subnets.yaml @@ -0,0 +1,362 @@ +interactions: +- request: + body: '{"location": "westus", "properties": {"addressSpace": {"addressPrefixes": + ["10.0.0.0/16"]}, "dhcpOptions": {"dnsServers": ["10.1.1.1", "10.1.2.4"]}, "subnets": + [{"properties": {"addressPrefix": "10.0.1.0/24"}, "name": "pysubnetonec2cc0c8f"}]}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['243'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pysubnetc2cc0c8f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f\"\ + ,\r\n \"etag\": \"W/\\\"a7881cec-ff03-4a33-a9f9-2315d8a10572\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \ + \ \"resourceGuid\": \"e76f8489-932b-4099-8467-47dbbe3679a8\",\r\n \"\ + addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\ + \r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": [\r\ + \n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n ]\r\n },\r\n \ + \ \"subnets\": [\r\n {\r\n \"name\": \"pysubnetonec2cc0c8f\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnetonec2cc0c8f\"\ + ,\r\n \"etag\": \"W/\\\"a7881cec-ff03-4a33-a9f9-2315d8a10572\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + ,\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n }\r\n }\r\ + \n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ + : false,\r\n \"enableVmProtection\": false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6f6987aa-0e1c-4acc-a7c2-4bfc8352fc1a?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['1247'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Sep 2017 17:42:23 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6f6987aa-0e1c-4acc-a7c2-4bfc8352fc1a?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Sep 2017 17:42:27 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pysubnetc2cc0c8f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f\"\ + ,\r\n \"etag\": \"W/\\\"378c467c-7a53-4a8c-97cb-0e19985ae772\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n\ + \ \"resourceGuid\": \"e76f8489-932b-4099-8467-47dbbe3679a8\",\r\n \"\ + addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\ + \r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": [\r\ + \n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n ]\r\n },\r\n \ + \ \"subnets\": [\r\n {\r\n \"name\": \"pysubnetonec2cc0c8f\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnetonec2cc0c8f\"\ + ,\r\n \"etag\": \"W/\\\"378c467c-7a53-4a8c-97cb-0e19985ae772\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n }\r\n }\r\ + \n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ + : false,\r\n \"enableVmProtection\": false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1249'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Sep 2017 17:42:28 GMT'] + etag: [W/"378c467c-7a53-4a8c-97cb-0e19985ae772"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"addressPrefix": "10.0.2.0/24"}, "name": "pysubnettwoc2cc0c8f"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['79'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pysubnettwoc2cc0c8f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f\"\ + ,\r\n \"etag\": \"W/\\\"305f1df3-0961-4528-84bc-e0cbdb32ac26\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ + addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/7d229749-cd03-42ab-a0f9-ba532baa1ecf?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['400'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Sep 2017 17:42:29 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/7d229749-cd03-42ab-a0f9-ba532baa1ecf?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Sep 2017 17:42:32 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pysubnettwoc2cc0c8f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f\"\ + ,\r\n \"etag\": \"W/\\\"d5222ccd-aaa1-4fd3-a0a4-4b9a11580d2b\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['401'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Sep 2017 17:42:33 GMT'] + etag: [W/"d5222ccd-aaa1-4fd3-a0a4-4b9a11580d2b"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pysubnetc2cc0c8f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f\"\ + ,\r\n \"etag\": \"W/\\\"d5222ccd-aaa1-4fd3-a0a4-4b9a11580d2b\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n\ + \ \"resourceGuid\": \"e76f8489-932b-4099-8467-47dbbe3679a8\",\r\n \"\ + addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\ + \r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": [\r\ + \n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n ]\r\n },\r\n \ + \ \"subnets\": [\r\n {\r\n \"name\": \"pysubnetonec2cc0c8f\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnetonec2cc0c8f\"\ + ,\r\n \"etag\": \"W/\\\"d5222ccd-aaa1-4fd3-a0a4-4b9a11580d2b\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n }\r\n },\r\ + \n {\r\n \"name\": \"pysubnettwoc2cc0c8f\",\r\n \"id\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f\"\ + ,\r\n \"etag\": \"W/\\\"d5222ccd-aaa1-4fd3-a0a4-4b9a11580d2b\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\ + \n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ + : false,\r\n \"enableVmProtection\": false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1707'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Sep 2017 17:42:33 GMT'] + etag: [W/"d5222ccd-aaa1-4fd3-a0a4-4b9a11580d2b"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pysubnettwoc2cc0c8f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f\"\ + ,\r\n \"etag\": \"W/\\\"d5222ccd-aaa1-4fd3-a0a4-4b9a11580d2b\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['401'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Sep 2017 17:42:35 GMT'] + etag: [W/"d5222ccd-aaa1-4fd3-a0a4-4b9a11580d2b"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets?api-version=2017-09-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pysubnetonec2cc0c8f\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnetonec2cc0c8f\"\ + ,\r\n \"etag\": \"W/\\\"d5222ccd-aaa1-4fd3-a0a4-4b9a11580d2b\\\"\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n }\r\n },\r\n \ + \ {\r\n \"name\": \"pysubnettwoc2cc0c8f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f\"\ + ,\r\n \"etag\": \"W/\\\"d5222ccd-aaa1-4fd3-a0a4-4b9a11580d2b\\\"\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\ + \n}"} + headers: + cache-control: [no-cache] + content-length: ['902'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Sep 2017 17:42:35 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f?api-version=2017-09-01 + response: + body: {string: ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/02b57b0a-12a9-4d33-b430-53037284750c?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Mon, 18 Sep 2017 17:42:36 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/02b57b0a-12a9-4d33-b430-53037284750c?api-version=2017-09-01'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/02b57b0a-12a9-4d33-b430-53037284750c?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 18 Sep 2017 17:42:47 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +version: 1 diff --git a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_usages.yaml b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_usages.yaml new file mode 100644 index 000000000000..354b14f0aa6d --- /dev/null +++ b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_usages.yaml @@ -0,0 +1,132 @@ +interactions: +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages?api-version=2017-09-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"currentValue\": 1.0,\r\ + \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/VirtualNetworks\"\ + ,\r\n \"limit\": 50.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"Virtual Networks\",\r\n \"value\": \"VirtualNetworks\"\r\n \ + \ },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ + : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/StaticPublicIPAddresses\"\ + ,\r\n \"limit\": 20.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"Static Public IP Addresses\",\r\n \"value\": \"StaticPublicIPAddresses\"\ + \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ + : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/NetworkSecurityGroups\"\ + ,\r\n \"limit\": 100.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"Network Security Groups\",\r\n \"value\": \"NetworkSecurityGroups\"\ + \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ + : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/PublicIPAddresses\"\ + ,\r\n \"limit\": 60.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"Public IP Addresses\",\r\n \"value\": \"PublicIPAddresses\"\r\n\ + \ },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ + : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/NetworkInterfaces\"\ + ,\r\n \"limit\": 350.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"Network Interfaces\",\r\n \"value\": \"NetworkInterfaces\"\r\n\ + \ },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ + : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/LoadBalancers\"\ + ,\r\n \"limit\": 100.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"Load Balancers\",\r\n \"value\": \"LoadBalancers\"\r\n },\r\ + \n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\":\ + \ 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/ApplicationGateways\"\ + ,\r\n \"limit\": 50.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"Application Gateways\",\r\n \"value\": \"ApplicationGateways\"\r\ + \n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ + : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/RouteTables\"\ + ,\r\n \"limit\": 100.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"Route Tables\",\r\n \"value\": \"RouteTables\"\r\n },\r\n\ + \ \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\": 0.0,\r\ + \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/RouteFilters\"\ + ,\r\n \"limit\": 1000.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"Route Filters\",\r\n \"value\": \"RouteFilters\"\r\n },\r\n\ + \ \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\": 0.0,\r\ + \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/NetworkWatchers\"\ + ,\r\n \"limit\": 1.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"Network Watchers\",\r\n \"value\": \"NetworkWatchers\"\r\n \ + \ },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ + : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/PacketCaptures\"\ + ,\r\n \"limit\": 10.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"Packet Captures\",\r\n \"value\": \"PacketCaptures\"\r\n },\r\ + \n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\":\ + \ 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/DnsServersPerVirtualNetwork\"\ + ,\r\n \"limit\": 9.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"DNS servers per Virtual Network\",\r\n \"value\": \"DnsServersPerVirtualNetwork\"\ + \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ + : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/SubnetsPerVirtualNetwork\"\ + ,\r\n \"limit\": 1000.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"Subnets per Virtual Network\",\r\n \"value\": \"SubnetsPerVirtualNetwork\"\ + \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ + : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/IPConfigurationsPerVirtualNetwork\"\ + ,\r\n \"limit\": 4096.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"IP Configurations per Virtual Network\",\r\n \"value\": \"IPConfigurationsPerVirtualNetwork\"\ + \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ + : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/PeeringsPerVirtualNetwork\"\ + ,\r\n \"limit\": 10.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"Peerings per Virtual Network\",\r\n \"value\": \"PeeringsPerVirtualNetwork\"\ + \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ + : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/SecurityRulesPerNetworkSecurityGroup\"\ + ,\r\n \"limit\": 200.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"Security rules per Network Security Group\",\r\n \"value\": \"\ + SecurityRulesPerNetworkSecurityGroup\"\r\n },\r\n \"unit\": \"Count\"\ + \r\n },\r\n {\r\n \"currentValue\": 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/SecurityRuleAddressesOrPortsPerNetworkSecurityGroup\"\ + ,\r\n \"limit\": 2000.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"Security rules addresses or ports per Network Security Group\",\r\n \ + \ \"value\": \"SecurityRuleAddressesOrPortsPerNetworkSecurityGroup\"\r\ + \n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ + : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/InboundRulesPerLoadBalancer\"\ + ,\r\n \"limit\": 150.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"Inbound Rules per Load Balancer\",\r\n \"value\": \"InboundRulesPerLoadBalancer\"\ + \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ + : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/FrontendIPConfigurationPerLoadBalancer\"\ + ,\r\n \"limit\": 10.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"Frontend IP Configurations per Load Balancer\",\r\n \"value\":\ + \ \"FrontendIPConfigurationPerLoadBalancer\"\r\n },\r\n \"unit\"\ + : \"Count\"\r\n },\r\n {\r\n \"currentValue\": 0.0,\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/OutboundNatRulesPerLoadBalancer\"\ + ,\r\n \"limit\": 5.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"Outbound NAT Rules per Load Balancer\",\r\n \"value\": \"OutboundNatRulesPerLoadBalancer\"\ + \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ + : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/RoutesPerRouteTable\"\ + ,\r\n \"limit\": 100.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"Routes per Route Table\",\r\n \"value\": \"RoutesPerRouteTable\"\ + \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ + : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/SecondaryIPConfigurationsPerNetworkInterface\"\ + ,\r\n \"limit\": 256.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"Secondary IP Configurations per Network Interface\",\r\n \"value\"\ + : \"SecondaryIPConfigurationsPerNetworkInterface\"\r\n },\r\n \"\ + unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\": 0.0,\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/InboundRulesPerNetworkInterface\"\ + ,\r\n \"limit\": 500.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"Inbound rules per Network Interface\",\r\n \"value\": \"InboundRulesPerNetworkInterface\"\ + \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ + : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/RouteFilterRulesPerRouteFilter\"\ + ,\r\n \"limit\": 1.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"Route filter rules per Route Filter\",\r\n \"value\": \"RouteFilterRulesPerRouteFilter\"\ + \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ + : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/RouteFiltersPerExpressRouteBgpPeering\"\ + ,\r\n \"limit\": 1.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"Route filters per Express route BGP Peering\",\r\n \"value\": \"\ + RouteFiltersPerExpressRouteBgpPeering\"\r\n },\r\n \"unit\": \"\ + Count\"\r\n }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['9205'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:28:44 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +version: 1 diff --git a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_virtual_network_gateway_operations.yaml b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_virtual_network_gateway_operations.yaml new file mode 100644 index 000000000000..00e251302527 --- /dev/null +++ b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_virtual_network_gateway_operations.yaml @@ -0,0 +1,4206 @@ +interactions: +- request: + body: '{"location": "westus", "properties": {"addressSpace": {"addressPrefixes": + ["10.11.0.0/16", "10.12.0.0/16"]}}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['109'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyvirtnetb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef\"\ + ,\r\n \"etag\": \"W/\\\"6b021839-0d6e-4855-ad13-af8b4b11a00a\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \ + \ \"resourceGuid\": \"d92f3e0c-9d94-46f0-bb79-5b6b52f44302\",\r\n \"\ + addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.11.0.0/16\"\ + ,\r\n \"10.12.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\ + \n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\ + \n \"enableVmProtection\": false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e8547c40-b84f-41c3-b03f-cf19dc58d8d9?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['737'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:28:50 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e8547c40-b84f-41c3-b03f-cf19dc58d8d9?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:28:53 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyvirtnetb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef\"\ + ,\r\n \"etag\": \"W/\\\"5eb1218f-d4b5-46e5-8ebc-5b8123139506\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n\ + \ \"resourceGuid\": \"d92f3e0c-9d94-46f0-bb79-5b6b52f44302\",\r\n \"\ + addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.11.0.0/16\"\ + ,\r\n \"10.12.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\ + \n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\ + \n \"enableVmProtection\": false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['738'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:28:54 GMT'] + etag: [W/"5eb1218f-d4b5-46e5-8ebc-5b8123139506"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"addressPrefix": "10.11.0.0/24"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['49'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetfeb4d417ef?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pysubnetfeb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetfeb4d417ef\"\ + ,\r\n \"etag\": \"W/\\\"e1936421-fca2-40fc-800e-eb8fd5e2d488\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ + addressPrefix\": \"10.11.0.0/24\"\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/27034c07-a4f5-4a99-b395-e344e8ed8669?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['427'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:28:55 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/27034c07-a4f5-4a99-b395-e344e8ed8669?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:28:59 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetfeb4d417ef?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pysubnetfeb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetfeb4d417ef\"\ + ,\r\n \"etag\": \"W/\\\"8509e53c-28f3-4a1d-bde2-373a8a45c0f5\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + addressPrefix\": \"10.11.0.0/24\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['428'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:28:59 GMT'] + etag: [W/"8509e53c-28f3-4a1d-bde2-373a8a45c0f5"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"addressPrefix": "10.12.0.0/24"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['49'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetbeb4d417ef?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pysubnetbeb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetbeb4d417ef\"\ + ,\r\n \"etag\": \"W/\\\"0a90b076-942f-4993-89a3-e4526ca69875\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ + addressPrefix\": \"10.12.0.0/24\"\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f7ddc615-ee39-4433-b61b-6952c5f5fcf8?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['427'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:29:00 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f7ddc615-ee39-4433-b61b-6952c5f5fcf8?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:29:03 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetbeb4d417ef?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pysubnetbeb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetbeb4d417ef\"\ + ,\r\n \"etag\": \"W/\\\"ff491a34-1796-484d-95b5-feec171102ff\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + addressPrefix\": \"10.12.0.0/24\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['428'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:29:03 GMT'] + etag: [W/"ff491a34-1796-484d-95b5-feec171102ff"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"addressPrefix": "10.12.255.0/27"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['51'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/GatewaySubnet?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"GatewaySubnet\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/GatewaySubnet\"\ + ,\r\n \"etag\": \"W/\\\"874dd0c3-53d4-4852-8b74-a3eed75342ff\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ + addressPrefix\": \"10.12.255.0/27\"\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6ec05182-8326-449b-b51e-2e6bb85591ff?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['419'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:29:04 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6ec05182-8326-449b-b51e-2e6bb85591ff?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:29:08 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/GatewaySubnet?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"GatewaySubnet\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/GatewaySubnet\"\ + ,\r\n \"etag\": \"W/\\\"65d94ac1-7ca2-4130-a18f-397695368869\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + addressPrefix\": \"10.12.255.0/27\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['420'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:29:08 GMT'] + etag: [W/"65d94ac1-7ca2-4130-a18f-397695368869"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: '{"location": "westus", "tags": {"key": "value"}, "properties": {"publicIPAllocationMethod": + "Dynamic"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['103'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/publicIPAddresses/pyipnameb4d417ef?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyipnameb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/publicIPAddresses/pyipnameb4d417ef\"\ + ,\r\n \"etag\": \"W/\\\"0baac8eb-dc54-4fc1-9e76-99c280f86c6e\\\"\",\r\n \ + \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n\ + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\ + \n \"resourceGuid\": \"f48f7878-73c3-4f6d-bc6a-886f56b7e171\",\r\n \"\ + publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"\ + Dynamic\",\r\n \"idleTimeoutInMinutes\": 4\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\"\ + ,\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/39cddadd-84e9-4027-86bf-1cd4799b1037?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['690'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:29:09 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/39cddadd-84e9-4027-86bf-1cd4799b1037?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:29:12 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/publicIPAddresses/pyipnameb4d417ef?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyipnameb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/publicIPAddresses/pyipnameb4d417ef\"\ + ,\r\n \"etag\": \"W/\\\"b92db247-6b26-4858-82bc-058a2e5de369\\\"\",\r\n \ + \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n\ + \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\ + \n \"resourceGuid\": \"f48f7878-73c3-4f6d-bc6a-886f56b7e171\",\r\n \"\ + publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"\ + Dynamic\",\r\n \"idleTimeoutInMinutes\": 4\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\"\ + ,\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['691'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:29:13 GMT'] + etag: [W/"b92db247-6b26-4858-82bc-058a2e5de369"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: 'b''{"location": "westus", "properties": {"ipConfigurations": [{"properties": + {"privateIPAllocationMethod": "Dynamic", "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/GatewaySubnet"}, + "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/publicIPAddresses/pyipnameb4d417ef"}}, + "name": "default"}], "gatewayType": "VPN", "vpnType": "RouteBased", "enableBgp": + false, "sku": {"name": "Standard", "tier": "Standard", "capacity": 2}}}''' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['732'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworkGateways/pyvngb4d417ef?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyvngb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworkGateways/pyvngb4d417ef\"\ + ,\r\n \"etag\": \"W/\\\"2e85c8cc-0c85-4882-ba96-6bbebe934062\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworkGateways\",\r\n \"location\"\ + : \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + ,\r\n \"resourceGuid\": \"1257df5f-a75d-4ced-ba4c-e776ac976e03\",\r\n \ + \ \"ipConfigurations\": [\r\n {\r\n \"name\": \"default\",\r\ + \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworkGateways/pyvngb4d417ef/ipConfigurations/default\"\ + ,\r\n \"etag\": \"W/\\\"2e85c8cc-0c85-4882-ba96-6bbebe934062\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + ,\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"\ + publicIPAddress\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/publicIPAddresses/pyipnameb4d417ef\"\ + \r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/GatewaySubnet\"\ + \r\n }\r\n }\r\n }\r\n ],\r\n \"sku\": {\r\n \ + \ \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"\ + capacity\": 2\r\n },\r\n \"gatewayType\": \"Vpn\",\r\n \"vpnType\"\ + : \"RouteBased\",\r\n \"enableBgp\": false,\r\n \"activeActive\": false,\r\ + \n \"vpnClientConfiguration\": {\r\n \"vpnClientProtocols\": [],\r\ + \n \"vpnClientRootCertificates\": [],\r\n \"vpnClientRevokedCertificates\"\ + : []\r\n }\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['1917'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:29:14 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:29:24 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:29:35 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:29:45 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:29:56 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:30:06 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:30:16 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:30:27 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:30:37 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:30:48 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:30:58 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:31:09 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:31:20 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:31:29 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:31:41 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:31:50 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:32:01 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:32:12 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:32:22 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:32:33 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:32:43 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:32:53 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:33:04 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:33:14 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:33:24 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:33:35 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:33:46 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:33:56 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:34:06 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:34:17 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:34:27 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:34:37 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:34:48 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:34:58 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:35:09 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:35:20 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:35:30 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:35:41 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:35:51 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:36:02 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:36:12 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:36:22 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:36:33 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:36:43 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:36:53 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:37:04 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:37:15 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:37:25 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:37:36 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:37:47 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:37:57 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:38:08 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:38:18 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:38:28 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:38:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:38:50 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:39:00 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:39:10 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:39:21 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:39:31 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:39:41 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:39:53 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:40:03 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:40:13 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:40:24 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:40:34 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:40:44 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:40:55 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:41:06 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:41:16 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:41:27 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:41:38 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:41:48 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:41:58 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:42:09 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:42:19 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:42:30 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:43:47 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:44:00 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:44:11 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:44:21 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:44:31 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:44:42 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:44:52 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:45:03 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:45:13 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:45:24 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:45:35 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:45:45 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:45:56 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:46:05 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:46:17 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:46:27 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:46:37 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:46:47 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:46:58 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:47:09 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:47:19 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:47:29 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:47:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:47:50 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:48:00 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:48:12 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:48:22 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:48:32 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:48:42 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:48:53 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:49:04 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:49:14 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:49:25 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:49:35 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:49:46 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:49:56 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:50:07 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:50:17 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:50:28 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:50:38 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:50:50 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:51:00 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:51:10 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:51:21 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:51:31 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:51:42 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:51:53 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:52:03 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:52:13 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:52:24 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:52:34 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:52:45 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:52:55 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:53:06 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:53:16 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:53:27 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:53:37 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:53:47 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:53:58 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:54:09 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:54:20 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:54:30 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:54:40 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['30'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:54:52 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/105fdd47-76d4-4240-b966-bef583308cbb?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:55:01 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworkGateways/pyvngb4d417ef?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyvngb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworkGateways/pyvngb4d417ef\"\ + ,\r\n \"etag\": \"W/\\\"3a0252c4-0a1d-4cf9-ad78-61907d4f242e\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworkGateways\",\r\n \"location\"\ + : \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"resourceGuid\": \"1257df5f-a75d-4ced-ba4c-e776ac976e03\",\r\n \ + \ \"ipConfigurations\": [\r\n {\r\n \"name\": \"default\",\r\ + \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworkGateways/pyvngb4d417ef/ipConfigurations/default\"\ + ,\r\n \"etag\": \"W/\\\"3a0252c4-0a1d-4cf9-ad78-61907d4f242e\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"\ + publicIPAddress\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/publicIPAddresses/pyipnameb4d417ef\"\ + \r\n },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/GatewaySubnet\"\ + \r\n }\r\n }\r\n }\r\n ],\r\n \"sku\": {\r\n \ + \ \"name\": \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"\ + capacity\": 2\r\n },\r\n \"gatewayType\": \"Vpn\",\r\n \"vpnType\"\ + : \"RouteBased\",\r\n \"enableBgp\": false,\r\n \"activeActive\": false,\r\ + \n \"bgpSettings\": {\r\n \"asn\": 65515,\r\n \"bgpPeeringAddress\"\ + : \"10.12.255.30\",\r\n \"peerWeight\": 0\r\n }\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1881'] + content-type: [application/json; charset=utf-8] + date: ['Fri, 15 Sep 2017 23:55:02 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +version: 1 diff --git a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_virtual_networks.yaml b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_virtual_networks.yaml new file mode 100644 index 000000000000..5f94ee38acbc --- /dev/null +++ b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_virtual_networks.yaml @@ -0,0 +1,344 @@ +interactions: +- request: + body: '{"location": "westus", "properties": {"addressSpace": {"addressPrefixes": + ["10.0.0.0/16"]}, "dhcpOptions": {"dnsServers": ["10.1.1.1", "10.1.2.4"]}, "subnets": + [{"properties": {"addressPrefix": "10.0.1.0/24"}, "name": "pyvnetsubnetone4725106e"}, + {"properties": {"addressPrefix": "10.0.2.0/24"}, "name": "pyvnetsubnettwo4725106e"}]}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['332'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyvnet4725106e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e\"\ + ,\r\n \"etag\": \"W/\\\"9993a9fd-fb5e-436f-9d33-9e900adb91bc\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \ + \ \"resourceGuid\": \"789c78a2-b1a4-44f7-b7f4-d666ca40625b\",\r\n \"\ + addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\ + \r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": [\r\ + \n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n ]\r\n },\r\n \ + \ \"subnets\": [\r\n {\r\n \"name\": \"pyvnetsubnetone4725106e\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnetone4725106e\"\ + ,\r\n \"etag\": \"W/\\\"9993a9fd-fb5e-436f-9d33-9e900adb91bc\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + ,\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n }\r\n },\r\ + \n {\r\n \"name\": \"pyvnetsubnettwo4725106e\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnettwo4725106e\"\ + ,\r\n \"etag\": \"W/\\\"9993a9fd-fb5e-436f-9d33-9e900adb91bc\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ + ,\r\n \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\ + \n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ + : false,\r\n \"enableVmProtection\": false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/a44b4950-a1d6-4a8d-9fa1-da653b3e7fa5?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['1739'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Sep 2017 00:21:28 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/a44b4950-a1d6-4a8d-9fa1-da653b3e7fa5?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Sep 2017 00:21:32 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyvnet4725106e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e\"\ + ,\r\n \"etag\": \"W/\\\"c070df57-55cd-4ce4-8b71-ce3af8e908a5\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n\ + \ \"resourceGuid\": \"789c78a2-b1a4-44f7-b7f4-d666ca40625b\",\r\n \"\ + addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\ + \r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": [\r\ + \n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n ]\r\n },\r\n \ + \ \"subnets\": [\r\n {\r\n \"name\": \"pyvnetsubnetone4725106e\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnetone4725106e\"\ + ,\r\n \"etag\": \"W/\\\"c070df57-55cd-4ce4-8b71-ce3af8e908a5\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n }\r\n },\r\ + \n {\r\n \"name\": \"pyvnetsubnettwo4725106e\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnettwo4725106e\"\ + ,\r\n \"etag\": \"W/\\\"c070df57-55cd-4ce4-8b71-ce3af8e908a5\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\ + \n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ + : false,\r\n \"enableVmProtection\": false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1742'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Sep 2017 00:21:32 GMT'] + etag: [W/"c070df57-55cd-4ce4-8b71-ce3af8e908a5"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e?api-version=2017-09-01 + response: + body: {string: "{\r\n \"name\": \"pyvnet4725106e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e\"\ + ,\r\n \"etag\": \"W/\\\"c070df57-55cd-4ce4-8b71-ce3af8e908a5\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n\ + \ \"resourceGuid\": \"789c78a2-b1a4-44f7-b7f4-d666ca40625b\",\r\n \"\ + addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\ + \r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": [\r\ + \n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n ]\r\n },\r\n \ + \ \"subnets\": [\r\n {\r\n \"name\": \"pyvnetsubnetone4725106e\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnetone4725106e\"\ + ,\r\n \"etag\": \"W/\\\"c070df57-55cd-4ce4-8b71-ce3af8e908a5\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n }\r\n },\r\ + \n {\r\n \"name\": \"pyvnetsubnettwo4725106e\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnettwo4725106e\"\ + ,\r\n \"etag\": \"W/\\\"c070df57-55cd-4ce4-8b71-ce3af8e908a5\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\ + \n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ + : false,\r\n \"enableVmProtection\": false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1742'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Sep 2017 00:21:33 GMT'] + etag: [W/"c070df57-55cd-4ce4-8b71-ce3af8e908a5"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/CheckIPAddressAvailability?ipAddress=10.0.1.35&api-version=2017-09-01 + response: + body: {string: "{\r\n \"available\": true\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['25'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Sep 2017 00:21:33 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks?api-version=2017-09-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyvnet4725106e\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e\"\ + ,\r\n \"etag\": \"W/\\\"c070df57-55cd-4ce4-8b71-ce3af8e908a5\\\"\",\r\ + \n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\"\ + : \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"789c78a2-b1a4-44f7-b7f4-d666ca40625b\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \ + \ \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\"\ + : {\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \ + \ \"10.1.2.4\"\r\n ]\r\n },\r\n \"subnets\": [\r\ + \n {\r\n \"name\": \"pyvnetsubnetone4725106e\",\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnetone4725106e\"\ + ,\r\n \"etag\": \"W/\\\"c070df57-55cd-4ce4-8b71-ce3af8e908a5\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n \ + \ }\r\n },\r\n {\r\n \"name\": \"pyvnetsubnettwo4725106e\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnettwo4725106e\"\ + ,\r\n \"etag\": \"W/\\\"c070df57-55cd-4ce4-8b71-ce3af8e908a5\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"addressPrefix\": \"10.0.2.0/24\"\r\n \ + \ }\r\n }\r\n ],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1947'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Sep 2017 00:21:34 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/virtualNetworks?api-version=2017-09-01 + response: + body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyvnet4725106e\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e\"\ + ,\r\n \"etag\": \"W/\\\"c070df57-55cd-4ce4-8b71-ce3af8e908a5\\\"\",\r\ + \n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\"\ + : \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"789c78a2-b1a4-44f7-b7f4-d666ca40625b\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \ + \ \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\"\ + : {\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \ + \ \"10.1.2.4\"\r\n ]\r\n },\r\n \"subnets\": [\r\ + \n {\r\n \"name\": \"pyvnetsubnetone4725106e\",\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnetone4725106e\"\ + ,\r\n \"etag\": \"W/\\\"c070df57-55cd-4ce4-8b71-ce3af8e908a5\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"addressPrefix\": \"10.0.1.0/24\"\r\n \ + \ }\r\n },\r\n {\r\n \"name\": \"pyvnetsubnettwo4725106e\"\ + ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnettwo4725106e\"\ + ,\r\n \"etag\": \"W/\\\"c070df57-55cd-4ce4-8b71-ce3af8e908a5\\\"\ + \",\r\n \"properties\": {\r\n \"provisioningState\"\ + : \"Succeeded\",\r\n \"addressPrefix\": \"10.0.2.0/24\"\r\n \ + \ }\r\n }\r\n ],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n }\r\n ]\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1947'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Sep 2017 00:21:34 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['0'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e?api-version=2017-09-01 + response: + body: {string: ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6425d524-db97-4328-90f7-92beee8c64b8?api-version=2017-09-01'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Sat, 16 Sep 2017 00:21:35 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/6425d524-db97-4328-90f7-92beee8c64b8?api-version=2017-09-01'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.2 (Windows-10-10.0.15063-SP0) requests/2.18.3 msrest/0.4.14 + msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6425d524-db97-4328-90f7-92beee8c64b8?api-version=2017-09-01 + response: + body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Sat, 16 Sep 2017 00:21:46 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +version: 1 diff --git a/azure-mgmt/tests/test_mgmt_network.py b/azure-mgmt-network/tests/test_mgmt_network.py similarity index 86% rename from azure-mgmt/tests/test_mgmt_network.py rename to azure-mgmt-network/tests/test_mgmt_network.py index 0a86094f8b6e..4c5dba8c58b4 100644 --- a/azure-mgmt/tests/test_mgmt_network.py +++ b/azure-mgmt-network/tests/test_mgmt_network.py @@ -9,7 +9,10 @@ import azure.mgmt.network.models from testutils.common_recordingtestcase import record -from tests.mgmt_testcase import HttpStatusCode, AzureMgmtTestCase +from devtools_testutils import ( + AzureMgmtTestCase, + ResourceGroupPreparer, +) class MgmtNetworkTest(AzureMgmtTestCase): @@ -18,21 +21,19 @@ def setUp(self): self.network_client = self.create_mgmt_client( azure.mgmt.network.NetworkManagementClient ) - if not self.is_playback(): - self.create_resource_group() - @record - def test_network_interface_card(self): + @ResourceGroupPreparer() + def test_network_interface_card(self, resource_group, location): vnet_name = self.get_resource_name('pyvnet') subnet_name = self.get_resource_name('pysubnet') nic_name = self.get_resource_name('pynic') # Create VNet async_vnet_creation = self.network_client.virtual_networks.create_or_update( - self.group_name, + resource_group.name, vnet_name, { - 'location': self.region, + 'location': location, 'address_space': { 'address_prefixes': ['10.0.0.0/16'] } @@ -42,7 +43,7 @@ def test_network_interface_card(self): # Create Subnet async_subnet_creation = self.network_client.subnets.create_or_update( - self.group_name, + resource_group.name, vnet_name, subnet_name, {'address_prefix': '10.0.0.0/24'} @@ -51,10 +52,10 @@ def test_network_interface_card(self): # Create NIC async_nic_creation = self.network_client.network_interfaces.create_or_update( - self.group_name, + resource_group.name, nic_name, { - 'location': self.region, + 'location': location, 'ip_configurations': [{ 'name': 'MyIpConfig', 'subnet': { @@ -66,12 +67,12 @@ def test_network_interface_card(self): nic_info = async_nic_creation.result() nic_info = self.network_client.network_interfaces.get( - self.group_name, + resource_group.name, nic_info.name ) nics = list(self.network_client.network_interfaces.list( - self.group_name + resource_group.name )) self.assertEqual(len(nics), 1) @@ -79,13 +80,13 @@ def test_network_interface_card(self): self.assertGreater(len(nics), 0) async_delete = self.network_client.network_interfaces.delete( - self.group_name, + resource_group.name, nic_info.name ) async_delete.wait() - @record - def test_load_balancers(self): + @ResourceGroupPreparer() + def test_load_balancers(self, resource_group, location): public_ip_name = self.get_resource_name('pyipname') frontend_ip_name = self.get_resource_name('pyfipname') addr_pool_name = self.get_resource_name('pyapname') @@ -98,7 +99,7 @@ def test_load_balancers(self): '/loadBalancers/{}' '/frontendIPConfigurations/{}').format( self.settings.SUBSCRIPTION_ID, - self.group_name, + resource_group.name, lb_name, frontend_ip_name ) @@ -108,7 +109,7 @@ def test_load_balancers(self): '/loadBalancers/{}' '/backendAddressPools/{}').format( self.settings.SUBSCRIPTION_ID, - self.group_name, + resource_group.name, lb_name, addr_pool_name ) @@ -119,19 +120,19 @@ def test_load_balancers(self): '/loadBalancers/{}' '/probes/{}').format( self.settings.SUBSCRIPTION_ID, - self.group_name, + resource_group.name, lb_name, probe_name ) # Create PublicIP public_ip_parameters = { - 'location': self.region, + 'location': location, 'public_ip_allocation_method': 'static', 'idle_timeout_in_minutes': 4 } async_publicip_creation = self.network_client.public_ip_addresses.create_or_update( - self.group_name, + resource_group.name, public_ip_name, public_ip_parameters ) @@ -209,10 +210,10 @@ def test_load_balancers(self): # Creating Load Balancer lb_async_creation = self.network_client.load_balancers.create_or_update( - self.group_name, + resource_group.name, lb_name, { - 'location': self.region, + 'location': location, 'frontend_ip_configurations': frontend_ip_configurations, 'backend_address_pools': backend_address_pools, 'probes': probes, @@ -224,7 +225,7 @@ def test_load_balancers(self): # Get it lb_info = self.network_client.load_balancers.get( - self.group_name, + resource_group.name, lb_name ) @@ -234,74 +235,68 @@ def test_load_balancers(self): self.assertGreater(len(lbs), 0) # List RG - lbs = self.network_client.load_balancers.list(self.group_name) + lbs = self.network_client.load_balancers.list(resource_group.name) lbs = list(lbs) self.assertGreater(len(lbs), 0) # Delete async_lb_delete = self.network_client.load_balancers.delete( - self.group_name, + resource_group.name, lb_name ) async_lb_delete.wait() - @record - def test_public_ip_addresses(self): + @ResourceGroupPreparer() + def test_public_ip_addresses(self, resource_group, location): public_ip_name = self.get_resource_name('pyipname') params_create = azure.mgmt.network.models.PublicIPAddress( - location=self.region, + location=location, public_ip_allocation_method=azure.mgmt.network.models.IPAllocationMethod.dynamic, tags={ 'key': 'value', }, ) result_create = self.network_client.public_ip_addresses.create_or_update( - self.group_name, + resource_group.name, public_ip_name, params_create, ) result_create.wait() # AzureOperationPoller - #self.assertEqual(result_create.status_code, HttpStatusCode.OK) result_get = self.network_client.public_ip_addresses.get( - self.group_name, + resource_group.name, public_ip_name, ) - #self.assertEqual(result_get.status_code, HttpStatusCode.OK) - self.assertEqual(result_get.location, self.region) + self.assertEqual(result_get.location, location) self.assertEqual(result_get.tags['key'], 'value') - result_list = self.network_client.public_ip_addresses.list(self.group_name) - #self.assertEqual(result_list.status_code, HttpStatusCode.OK) + result_list = self.network_client.public_ip_addresses.list(resource_group.name) result_list = list(result_list) self.assertEqual(len(result_list), 1) result_list_all = self.network_client.public_ip_addresses.list_all() - #self.assertEqual(result_list_all.status_code, HttpStatusCode.OK) result_list_all = list(result_list_all) self.assertGreater(len(result_list_all), 0) result_delete = self.network_client.public_ip_addresses.delete( - self.group_name, + resource_group.name, public_ip_name, ) result_delete.wait() # AzureOperationPoller - #self.assertEqual(result_delete.status_code, HttpStatusCode.OK) - result_list = self.network_client.public_ip_addresses.list(self.group_name) - #self.assertEqual(result_list.status_code, HttpStatusCode.OK) + result_list = self.network_client.public_ip_addresses.list(resource_group.name) result_list = list(result_list) self.assertEqual(len(result_list), 0) - @record - def test_virtual_networks(self): + @ResourceGroupPreparer() + def test_virtual_networks(self, resource_group, location): network_name = self.get_resource_name('pyvnet') subnet1_name = self.get_resource_name('pyvnetsubnetone') subnet2_name = self.get_resource_name('pyvnetsubnettwo') params_create = azure.mgmt.network.models.VirtualNetwork( - location=self.region, + location=location, address_space=azure.mgmt.network.models.AddressSpace( address_prefixes=[ '10.0.0.0/16', @@ -326,54 +321,52 @@ def test_virtual_networks(self): ) result_create = self.network_client.virtual_networks.create_or_update( - self.group_name, + resource_group.name, network_name, params_create, ) vnet = result_create.result() vnet = self.network_client.virtual_networks.get( - self.group_name, + resource_group.name, vnet.name, ) ip_availability = self.network_client.virtual_networks.check_ip_address_availability( - self.group_name, + resource_group.name, vnet.name, '10.0.1.35' # Should be available since new VNet sor Subnet 1 ) self.assertTrue(ip_availability.available) result_list = list(self.network_client.virtual_networks.list( - self.group_name, + resource_group.name, )) self.assertEqual(len(result_list), 1) result_list_all = list(self.network_client.virtual_networks.list_all()) async_delete = self.network_client.virtual_networks.delete( - self.group_name, + resource_group.name, network_name, ) async_delete.wait() - @record def test_dns_availability(self): result_check = self.network_client.check_dns_name_availability( - self.region, + "westus", 'pydomain', ) - #self.assertEqual(result_check.status_code, HttpStatusCode.OK) self.assertTrue(result_check) - @record - def test_subnets(self): + @ResourceGroupPreparer() + def test_subnets(self, resource_group, location): network_name = self.get_resource_name('pysubnet') subnet1_name = self.get_resource_name('pysubnetone') subnet2_name = self.get_resource_name('pysubnettwo') params_create = azure.mgmt.network.models.VirtualNetwork( - location=self.region, + location=location, address_space=azure.mgmt.network.models.AddressSpace( address_prefixes=[ '10.0.0.0/16', @@ -393,7 +386,7 @@ def test_subnets(self): ], ) result_create = self.network_client.virtual_networks.create_or_update( - self.group_name, + resource_group.name, network_name, params_create, ) @@ -404,7 +397,7 @@ def test_subnets(self): address_prefix='10.0.2.0/24', ) result_create = self.network_client.subnets.create_or_update( - self.group_name, + resource_group.name, network_name, subnet2_name, params_create, @@ -412,37 +405,37 @@ def test_subnets(self): result_create.wait() # AzureOperationPoller result_get = self.network_client.virtual_networks.get( - self.group_name, + resource_group.name, network_name, ) self.assertEqual(len(result_get.subnets), 2) result_get = self.network_client.subnets.get( - self.group_name, + resource_group.name, network_name, subnet2_name, ) result_list = self.network_client.subnets.list( - self.group_name, + resource_group.name, network_name, ) subnets = list(result_list) result_delete = self.network_client.subnets.delete( - self.group_name, + resource_group.name, network_name, subnet2_name, ) result_delete.wait() - @record - def test_network_security_groups(self): + @ResourceGroupPreparer() + def test_network_security_groups(self, resource_group, location): security_group_name = self.get_resource_name('pysecgroup') security_rule_name = self.get_resource_name('pysecgrouprule') params_create = azure.mgmt.network.models.NetworkSecurityGroup( - location=self.region, + location=location, security_rules=[ azure.mgmt.network.models.SecurityRule( name=security_rule_name, @@ -459,19 +452,19 @@ def test_network_security_groups(self): ], ) result_create = self.network_client.network_security_groups.create_or_update( - self.group_name, + resource_group.name, security_group_name, params_create, ) result_create.wait() # AzureOperationPoller result_get = self.network_client.network_security_groups.get( - self.group_name, + resource_group.name, security_group_name, ) result_list = list(self.network_client.network_security_groups.list( - self.group_name, + resource_group.name, )) self.assertEqual(len(result_list), 1) @@ -480,7 +473,7 @@ def test_network_security_groups(self): # Security Rules new_security_rule_name = self.get_resource_name('pynewrule') async_security_rule = self.network_client.security_rules.create_or_update( - self.group_name, + resource_group.name, security_group_name, new_security_rule_name, { @@ -498,20 +491,20 @@ def test_network_security_groups(self): security_rule = async_security_rule.result() security_rule = self.network_client.security_rules.get( - self.group_name, + resource_group.name, security_group_name, security_rule.name ) self.assertEqual(security_rule.name, new_security_rule_name) new_security_rules = list(self.network_client.security_rules.list( - self.group_name, + resource_group.name, security_group_name )) self.assertEqual(len(new_security_rules), 2) result_delete = self.network_client.security_rules.delete( - self.group_name, + resource_group.name, security_group_name, new_security_rule_name ) @@ -519,31 +512,31 @@ def test_network_security_groups(self): # Delete NSG result_delete = self.network_client.network_security_groups.delete( - self.group_name, + resource_group.name, security_group_name, ) result_delete.wait() - @record - def test_routes(self): + @ResourceGroupPreparer() + def test_routes(self, resource_group, location): route_table_name = self.get_resource_name('pyroutetable') route_name = self.get_resource_name('pyroute') async_route_table = self.network_client.route_tables.create_or_update( - self.group_name, + resource_group.name, route_table_name, - {'location': self.region} + {'location': location} ) route_table = async_route_table.result() route_table = self.network_client.route_tables.get( - self.group_name, + resource_group.name, route_table.name ) self.assertEqual(route_table.name, route_table_name) route_tables = list(self.network_client.route_tables.list( - self.group_name + resource_group.name )) self.assertEqual(len(route_tables), 1) @@ -551,7 +544,7 @@ def test_routes(self): self.assertGreater(len(route_tables), 0) async_route = self.network_client.routes.create_or_update( - self.group_name, + resource_group.name, route_table.name, route_name, { @@ -562,51 +555,49 @@ def test_routes(self): route = async_route.result() route = self.network_client.routes.get( - self.group_name, + resource_group.name, route_table.name, route.name ) self.assertEqual(route.name, route_name) routes = list(self.network_client.routes.list( - self.group_name, + resource_group.name, route_table.name )) self.assertEqual(len(routes), 1) async_route_delete = self.network_client.routes.delete( - self.group_name, + resource_group.name, route_table.name, route.name ) async_route_delete.wait() async_route_table_delete = self.network_client.route_tables.delete( - self.group_name, + resource_group.name, route_table_name ) async_route_table_delete.wait() - @record def test_usages(self): - usages = list(self.network_client.usages.list(self.region)) + usages = list(self.network_client.usages.list('westus')) self.assertGreater(len(usages), 1) self.assertTrue(all(hasattr(u, 'name') for u in usages)) - @record def test_express_route_service_providers(self): ersp = list(self.network_client.express_route_service_providers.list()) self.assertGreater(len(ersp), 0) self.assertTrue(all(hasattr(u, 'bandwidths_offered') for u in ersp)) - @record - def test_express_route_circuit(self): + @ResourceGroupPreparer() + def test_express_route_circuit(self, resource_group, location): express_route_name = self.get_resource_name('pyexpressroute') async_express_route = self.network_client.express_route_circuits.create_or_update( - self.group_name, + resource_group.name, express_route_name, { - "location": self.region, + "location": location, "sku": { "name": "Standard_MeteredData", "tier": "Standard", @@ -622,12 +613,12 @@ def test_express_route_circuit(self): express_route = async_express_route.result() express_route = self.network_client.express_route_circuits.get( - self.group_name, + resource_group.name, express_route_name ) routes = list(self.network_client.express_route_circuits.list( - self.group_name + resource_group.name )) self.assertEqual(len(routes), 1) @@ -635,13 +626,13 @@ def test_express_route_circuit(self): self.assertGreater(len(routes), 0) stats = self.network_client.express_route_circuits.get_stats( - self.group_name, + resource_group.name, express_route_name ) self.assertIsNotNone(stats) async_peering = self.network_client.express_route_circuit_peerings.create_or_update( - self.group_name, + resource_group.name, express_route_name, 'AzurePublicPeering', { @@ -655,19 +646,19 @@ def test_express_route_circuit(self): peering = async_peering.result() peering = self.network_client.express_route_circuit_peerings.get( - self.group_name, + resource_group.name, express_route_name, 'AzurePublicPeering' ) peerings = list(self.network_client.express_route_circuit_peerings.list( - self.group_name, + resource_group.name, express_route_name )) self.assertEqual(len(peerings), 1) stats = self.network_client.express_route_circuits.get_peering_stats( - self.group_name, + resource_group.name, express_route_name, 'AzurePublicPeering' ) @@ -675,7 +666,7 @@ def test_express_route_circuit(self): auth_name = self.get_resource_name('pyauth') async_auth = self.network_client.express_route_circuit_authorizations.create_or_update( - self.group_name, + resource_group.name, express_route_name, auth_name, {} @@ -683,39 +674,39 @@ def test_express_route_circuit(self): auth = async_auth.result() auth = self.network_client.express_route_circuit_authorizations.get( - self.group_name, + resource_group.name, express_route_name, auth_name ) auths = list(self.network_client.express_route_circuit_authorizations.list( - self.group_name, + resource_group.name, express_route_name )) self.assertEqual(len(auths), 1) async_auth = self.network_client.express_route_circuit_authorizations.delete( - self.group_name, + resource_group.name, express_route_name, auth_name ) async_auth.wait() async_peering = self.network_client.express_route_circuit_peerings.delete( - self.group_name, + resource_group.name, express_route_name, 'AzurePublicPeering' ) async_peering.wait() async_express_route = self.network_client.express_route_circuits.delete( - self.group_name, + resource_group.name, express_route_name ) async_express_route.wait() - @record - def test_virtual_network_gateway_operations(self): + @ResourceGroupPreparer() + def test_virtual_network_gateway_operations(self, resource_group, location): # https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-site-to-site-resource-manager-portal vnet_name = self.get_resource_name('pyvirtnet') @@ -725,10 +716,10 @@ def test_virtual_network_gateway_operations(self): # Create VNet async_vnet_creation = self.network_client.virtual_networks.create_or_update( - self.group_name, + resource_group.name, vnet_name, { - 'location': self.region, + 'location': location, 'address_space': { 'address_prefixes': [ '10.11.0.0/16', @@ -741,7 +732,7 @@ def test_virtual_network_gateway_operations(self): # Create Front End Subnet async_subnet_creation = self.network_client.subnets.create_or_update( - self.group_name, + resource_group.name, vnet_name, fe_name, {'address_prefix': '10.11.0.0/24'} @@ -750,7 +741,7 @@ def test_virtual_network_gateway_operations(self): # Create Back End Subnet async_subnet_creation = self.network_client.subnets.create_or_update( - self.group_name, + resource_group.name, vnet_name, be_name, {'address_prefix': '10.12.0.0/24'} @@ -759,7 +750,7 @@ def test_virtual_network_gateway_operations(self): # Create Gateway Subnet async_subnet_creation = self.network_client.subnets.create_or_update( - self.group_name, + resource_group.name, vnet_name, 'GatewaySubnet', {'address_prefix': '10.12.255.0/27'} @@ -769,14 +760,14 @@ def test_virtual_network_gateway_operations(self): # Public IP Address public_ip_name = self.get_resource_name('pyipname') params_create = azure.mgmt.network.models.PublicIPAddress( - location=self.region, + location=location, public_ip_allocation_method=azure.mgmt.network.models.IPAllocationMethod.dynamic, tags={ 'key': 'value', }, ) result_create = self.network_client.public_ip_addresses.create_or_update( - self.group_name, + resource_group.name, public_ip_name, params_create, ) @@ -785,7 +776,7 @@ def test_virtual_network_gateway_operations(self): # Gateway itself vng_name = self.get_resource_name('pyvng') gw_params = { - 'location': self.region, + 'location': location, 'gateway_type': 'VPN', 'vpn_type': 'RouteBased', 'enable_bgp': False, @@ -805,7 +796,7 @@ def test_virtual_network_gateway_operations(self): }], } async_create = self.network_client.virtual_network_gateways.create_or_update( - self.group_name, + resource_group.name, vng_name, gw_params ) diff --git a/azure-mgmt/tests/recordings/test_mgmt_network.test_dns_availability.yaml b/azure-mgmt/tests/recordings/test_mgmt_network.test_dns_availability.yaml deleted file mode 100644 index c9eb875247e9..000000000000 --- a/azure-mgmt/tests/recordings/test_mgmt_network.test_dns_availability.yaml +++ /dev/null @@ -1,33 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/ Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [63c78682-8794-11e7-b43a-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/CheckDnsNameAvailability?domainNameLabel=pydomain&api-version=2017-08-01 - response: - body: {string: "{\r\n \"available\": true\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:48:26 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['25'] - x-ms-correlation-request-id: [d730fc1d-fe78-4e1c-8f8c-14314da27b6f] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [5a8cf477-3f18-4a91-8bd2-3ea9cab9cbd9] - x-ms-routing-request-id: ['WESTUS2:20170822T234826Z:d730fc1d-fe78-4e1c-8f8c-14314da27b6f'] - status: {code: 200, message: OK} -version: 1 diff --git a/azure-mgmt/tests/recordings/test_mgmt_network.test_express_route_circuit.yaml b/azure-mgmt/tests/recordings/test_mgmt_network.test_express_route_circuit.yaml deleted file mode 100644 index f97d170a7bd6..000000000000 --- a/azure-mgmt/tests/recordings/test_mgmt_network.test_express_route_circuit.yaml +++ /dev/null @@ -1,1475 +0,0 @@ -interactions: -- request: - body: '{"sku": {"tier": "Standard", "name": "Standard_MeteredData", "family": - "MeteredData"}, "location": "westus", "properties": {"serviceProviderProperties": - {"serviceProviderName": "Comcast", "peeringLocation": "Chicago", "bandwidthInMbps": - 100}}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['243'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [67e85ede-8794-11e7-b690-ecb1d756380e] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyexpressroute9edf1275\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275\",\r\n - \ \"etag\": \"W/\\\"00b4c044-de95-4861-80d1-f3c06b9f56f6\\\"\",\r\n \"type\": - \"Microsoft.Network/expressRouteCircuits\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"34bb10a2-46b3-4580-ac69-1b872376e4bf\",\r\n \"peerings\": [],\r\n \"authorizations\": - [],\r\n \"serviceProviderProperties\": {\r\n \"serviceProviderName\": - \"Comcast\",\r\n \"peeringLocation\": \"Chicago\",\r\n \"bandwidthInMbps\": - 100\r\n },\r\n \"circuitProvisioningState\": \"Disabled\",\r\n \"allowClassicOperations\": - false,\r\n \"serviceKey\": \"00000000-0000-0000-0000-000000000000\",\r\n - \ \"serviceProviderProvisioningState\": \"NotProvisioned\"\r\n },\r\n \"sku\": - {\r\n \"name\": \"Standard_MeteredData\",\r\n \"tier\": \"Standard\",\r\n - \ \"family\": \"MeteredData\"\r\n }\r\n}"} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0cd08a12-5860-43b7-9504-e4953b433017?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['1012'] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:48:32 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [75ac6fba-d3ed-49b3-b71a-8230aa780d0a] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-ms-request-id: [0cd08a12-5860-43b7-9504-e4953b433017] - x-ms-routing-request-id: ['WESTUS:20170822T234833Z:75ac6fba-d3ed-49b3-b71a-8230aa780d0a'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [67e85ede-8794-11e7-b690-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0cd08a12-5860-43b7-9504-e4953b433017?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:48:43 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [e4b479ff-ecee-4dda-a53a-d7108cf1f676] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [e563340e-9990-4a84-bac6-c7510cee3b36] - x-ms-routing-request-id: ['WESTUS:20170822T234844Z:e4b479ff-ecee-4dda-a53a-d7108cf1f676'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [67e85ede-8794-11e7-b690-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0cd08a12-5860-43b7-9504-e4953b433017?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:48:54 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [65271fe1-19b0-4b07-b782-1c8a21e450cc] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [08187d10-832d-401d-b474-2d76874003f1] - x-ms-routing-request-id: ['WESTUS:20170822T234854Z:65271fe1-19b0-4b07-b782-1c8a21e450cc'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [67e85ede-8794-11e7-b690-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0cd08a12-5860-43b7-9504-e4953b433017?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:49:04 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [f77c925e-3ca4-4844-a86d-d81469575647] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [30ab4414-7d6b-44c5-aff1-9f72ea6d36ca] - x-ms-routing-request-id: ['WESTUS:20170822T234905Z:f77c925e-3ca4-4844-a86d-d81469575647'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [67e85ede-8794-11e7-b690-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0cd08a12-5860-43b7-9504-e4953b433017?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:49:15 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [a7f37dc1-a6b4-44bd-829d-85e37f262c67] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [5d629423-a076-4d9f-94e0-9e4bee36e241] - x-ms-routing-request-id: ['WESTUS:20170822T234916Z:a7f37dc1-a6b4-44bd-829d-85e37f262c67'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [67e85ede-8794-11e7-b690-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0cd08a12-5860-43b7-9504-e4953b433017?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:49:25 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [3be23751-ee56-4c51-b9f9-d862e64f6151] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [5acaae4b-4e9d-4cf5-ba05-0fa8e5c9c0e9] - x-ms-routing-request-id: ['WESTUS:20170822T234926Z:3be23751-ee56-4c51-b9f9-d862e64f6151'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [67e85ede-8794-11e7-b690-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyexpressroute9edf1275\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275\",\r\n - \ \"etag\": \"W/\\\"56ffb7ad-613b-4968-9fd1-2e01acfbf881\\\"\",\r\n \"type\": - \"Microsoft.Network/expressRouteCircuits\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"34bb10a2-46b3-4580-ac69-1b872376e4bf\",\r\n \"peerings\": [],\r\n \"authorizations\": - [],\r\n \"serviceProviderProperties\": {\r\n \"serviceProviderName\": - \"Comcast\",\r\n \"peeringLocation\": \"Chicago\",\r\n \"bandwidthInMbps\": - 100\r\n },\r\n \"circuitProvisioningState\": \"Enabled\",\r\n \"allowClassicOperations\": - false,\r\n \"gatewayManagerEtag\": \"\",\r\n \"serviceKey\": \"87deb103-6a7f-4b18-80fb-b7880acb7b8e\",\r\n - \ \"serviceProviderProvisioningState\": \"NotProvisioned\"\r\n },\r\n \"sku\": - {\r\n \"name\": \"Standard_MeteredData\",\r\n \"tier\": \"Standard\",\r\n - \ \"family\": \"MeteredData\"\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:49:27 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['1043'] - x-ms-correlation-request-id: [b8f003a8-c554-4211-ae49-2ddce6483a10] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [3ee5fb5f-2a25-4959-a70c-e5a68f7dd2c8] - x-ms-routing-request-id: ['WESTUS:20170822T234927Z:b8f003a8-c554-4211-ae49-2ddce6483a10'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [88c893e2-8794-11e7-85f0-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyexpressroute9edf1275\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275\",\r\n - \ \"etag\": \"W/\\\"56ffb7ad-613b-4968-9fd1-2e01acfbf881\\\"\",\r\n \"type\": - \"Microsoft.Network/expressRouteCircuits\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"34bb10a2-46b3-4580-ac69-1b872376e4bf\",\r\n \"peerings\": [],\r\n \"authorizations\": - [],\r\n \"serviceProviderProperties\": {\r\n \"serviceProviderName\": - \"Comcast\",\r\n \"peeringLocation\": \"Chicago\",\r\n \"bandwidthInMbps\": - 100\r\n },\r\n \"circuitProvisioningState\": \"Enabled\",\r\n \"allowClassicOperations\": - false,\r\n \"gatewayManagerEtag\": \"\",\r\n \"serviceKey\": \"87deb103-6a7f-4b18-80fb-b7880acb7b8e\",\r\n - \ \"serviceProviderProvisioningState\": \"NotProvisioned\"\r\n },\r\n \"sku\": - {\r\n \"name\": \"Standard_MeteredData\",\r\n \"tier\": \"Standard\",\r\n - \ \"family\": \"MeteredData\"\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:49:27 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['1043'] - x-ms-correlation-request-id: [efae1b04-cdb2-4ba3-9cc6-39519058263c] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [0c68da96-9606-4d42-92d4-69940acfec8e] - x-ms-routing-request-id: ['WESTUS:20170822T234928Z:efae1b04-cdb2-4ba3-9cc6-39519058263c'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [8948788a-8794-11e7-a87a-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits?api-version=2017-08-01 - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyexpressroute9edf1275\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275\",\r\n - \ \"etag\": \"W/\\\"56ffb7ad-613b-4968-9fd1-2e01acfbf881\\\"\",\r\n \"type\": - \"Microsoft.Network/expressRouteCircuits\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"34bb10a2-46b3-4580-ac69-1b872376e4bf\",\r\n \"peerings\": - [],\r\n \"authorizations\": [],\r\n \"serviceProviderProperties\": - {\r\n \"serviceProviderName\": \"Comcast\",\r\n \"peeringLocation\": - \"Chicago\",\r\n \"bandwidthInMbps\": 100\r\n },\r\n \"circuitProvisioningState\": - \"Enabled\",\r\n \"allowClassicOperations\": false,\r\n \"serviceKey\": - \"87deb103-6a7f-4b18-80fb-b7880acb7b8e\",\r\n \"serviceProviderProvisioningState\": - \"NotProvisioned\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_MeteredData\",\r\n - \ \"tier\": \"Standard\",\r\n \"family\": \"MeteredData\"\r\n - \ }\r\n }\r\n ]\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:49:29 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['1145'] - x-ms-correlation-request-id: [88324d51-dbb1-4a8e-b249-f475474336c6] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [4645d5ee-b49f-4521-ba5c-e94280b649c2] - x-ms-routing-request-id: ['WESTUS:20170822T234929Z:88324d51-dbb1-4a8e-b249-f475474336c6'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [89d495d0-8794-11e7-8d3e-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRouteCircuits?api-version=2017-08-01 - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyexpressroute9edf1275\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275\",\r\n - \ \"etag\": \"W/\\\"56ffb7ad-613b-4968-9fd1-2e01acfbf881\\\"\",\r\n \"type\": - \"Microsoft.Network/expressRouteCircuits\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"34bb10a2-46b3-4580-ac69-1b872376e4bf\",\r\n \"peerings\": - [],\r\n \"authorizations\": [],\r\n \"serviceProviderProperties\": - {\r\n \"serviceProviderName\": \"Comcast\",\r\n \"peeringLocation\": - \"Chicago\",\r\n \"bandwidthInMbps\": 100\r\n },\r\n \"circuitProvisioningState\": - \"Enabled\",\r\n \"allowClassicOperations\": false,\r\n \"serviceKey\": - \"87deb103-6a7f-4b18-80fb-b7880acb7b8e\",\r\n \"serviceProviderProvisioningState\": - \"NotProvisioned\"\r\n },\r\n \"sku\": {\r\n \"name\": \"Standard_MeteredData\",\r\n - \ \"tier\": \"Standard\",\r\n \"family\": \"MeteredData\"\r\n - \ }\r\n }\r\n ]\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:49:29 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['1145'] - x-ms-correlation-request-id: [15477766-3047-44b8-bf9b-0c3611cd6b4e] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [c8e93fda-08fc-4b39-b439-4e3808e893d7] - x-ms-routing-request-id: ['WESTUS:20170822T234930Z:15477766-3047-44b8-bf9b-0c3611cd6b4e'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [8a4e1f5a-8794-11e7-96e9-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/stats?api-version=2017-08-01 - response: - body: {string: "{\r\n \"primaryBytesIn\": 0,\r\n \"primaryBytesOut\": 0,\r\n - \ \"secondaryBytesIn\": 0,\r\n \"secondaryBytesOut\": 0\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:49:30 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['105'] - x-ms-correlation-request-id: [62a53a36-5fc8-40a6-8d41-6a395d701cd2] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [4539fec6-b4b6-47da-832e-130e929dfbd3] - x-ms-routing-request-id: ['WESTUS:20170822T234930Z:62a53a36-5fc8-40a6-8d41-6a395d701cd2'] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"secondaryPeerAddressPrefix": "192.168.2.0/30", "peeringType": - "AzurePublicPeering", "primaryPeerAddressPrefix": "192.168.1.0/30", "peerASN": - 100, "vlanId": 200}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['178'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [8abd7b7a-8794-11e7-96bf-ecb1d756380e] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"AzurePublicPeering\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering\",\r\n - \ \"etag\": \"W/\\\"f9a90432-a06e-475a-a21a-43b90cd08c68\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"peeringType\": \"AzurePublicPeering\",\r\n - \ \"azureASN\": 0,\r\n \"peerASN\": 100,\r\n \"primaryPeerAddressPrefix\": - \"192.168.1.0/30\",\r\n \"secondaryPeerAddressPrefix\": \"192.168.2.0/30\",\r\n - \ \"state\": \"Disabled\",\r\n \"vlanId\": 200,\r\n \"lastModifiedBy\": - \"\"\r\n }\r\n}"} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a7bf7dc-7659-4a78-b692-70236f6965ee?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['647'] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:49:32 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [154ff9c1-6516-432c-a77c-5c73e5325d0c] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-ms-request-id: [6a7bf7dc-7659-4a78-b692-70236f6965ee] - x-ms-routing-request-id: ['WESTUS:20170822T234932Z:154ff9c1-6516-432c-a77c-5c73e5325d0c'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [8abd7b7a-8794-11e7-96bf-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a7bf7dc-7659-4a78-b692-70236f6965ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:49:42 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [24463201-ae7c-41ba-ab22-265fb6737053] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [dd655790-7d5c-4074-8562-794c6fccc6b4] - x-ms-routing-request-id: ['WESTUS:20170822T234942Z:24463201-ae7c-41ba-ab22-265fb6737053'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [8abd7b7a-8794-11e7-96bf-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a7bf7dc-7659-4a78-b692-70236f6965ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:49:52 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [72dedf2c-9030-415d-a0d1-a50cd0d40b75] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [451aa054-e15c-4563-a63a-dce7c82c330c] - x-ms-routing-request-id: ['WESTUS:20170822T234953Z:72dedf2c-9030-415d-a0d1-a50cd0d40b75'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [8abd7b7a-8794-11e7-96bf-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a7bf7dc-7659-4a78-b692-70236f6965ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:50:03 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [6a8fa15c-1c4a-4d55-b018-5a7895c0b622] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [e007d9d7-2515-4bcd-8f60-bf6b101c3386] - x-ms-routing-request-id: ['WESTUS:20170822T235003Z:6a8fa15c-1c4a-4d55-b018-5a7895c0b622'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [8abd7b7a-8794-11e7-96bf-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a7bf7dc-7659-4a78-b692-70236f6965ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:50:14 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [fe829864-3617-4293-889e-23cf8ae953c6] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [9a94f7aa-0b9f-438c-a75a-95616d6600e6] - x-ms-routing-request-id: ['WESTUS:20170822T235014Z:fe829864-3617-4293-889e-23cf8ae953c6'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [8abd7b7a-8794-11e7-96bf-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a7bf7dc-7659-4a78-b692-70236f6965ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:50:24 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [4dd8e265-5f2d-4d48-a28c-f93e30ec532b] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [83beccf0-8978-4724-900c-1213fccadb7d] - x-ms-routing-request-id: ['WESTUS:20170822T235024Z:4dd8e265-5f2d-4d48-a28c-f93e30ec532b'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [8abd7b7a-8794-11e7-96bf-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6a7bf7dc-7659-4a78-b692-70236f6965ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:50:35 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [b758fe28-0c89-42ec-9a1a-7713715f86f4] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [d0ff1616-c1be-49ba-88f7-6d0381bf87a7] - x-ms-routing-request-id: ['WESTUS2:20170822T235035Z:b758fe28-0c89-42ec-9a1a-7713715f86f4'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [8abd7b7a-8794-11e7-96bf-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"AzurePublicPeering\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering\",\r\n - \ \"etag\": \"W/\\\"d691d164-d2eb-42bc-82a8-35a3d637e317\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringType\": \"AzurePublicPeering\",\r\n - \ \"azureASN\": 12076,\r\n \"peerASN\": 100,\r\n \"primaryPeerAddressPrefix\": - \"192.168.1.0/30\",\r\n \"secondaryPeerAddressPrefix\": \"192.168.2.0/30\",\r\n - \ \"primaryAzurePort\": \"EQIX-CHG-06GMR-CIS-1-PRI-A\",\r\n \"secondaryAzurePort\": - \"EQIX-CHG-06GMR-CIS-2-SEC-A\",\r\n \"state\": \"Enabled\",\r\n \"vlanId\": - 200,\r\n \"gatewayManagerEtag\": \"\",\r\n \"lastModifiedBy\": \"Customer\"\r\n - \ }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:50:35 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['802'] - x-ms-correlation-request-id: [9870dcfc-f221-4122-8f6e-8d7d3c1f133f] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [62c3fa53-3dc2-43ea-b501-3f2575098ffa] - x-ms-routing-request-id: ['WESTUS2:20170822T235036Z:9870dcfc-f221-4122-8f6e-8d7d3c1f133f'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b1e22414-8794-11e7-b84c-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"AzurePublicPeering\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering\",\r\n - \ \"etag\": \"W/\\\"d691d164-d2eb-42bc-82a8-35a3d637e317\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringType\": \"AzurePublicPeering\",\r\n - \ \"azureASN\": 12076,\r\n \"peerASN\": 100,\r\n \"primaryPeerAddressPrefix\": - \"192.168.1.0/30\",\r\n \"secondaryPeerAddressPrefix\": \"192.168.2.0/30\",\r\n - \ \"primaryAzurePort\": \"EQIX-CHG-06GMR-CIS-1-PRI-A\",\r\n \"secondaryAzurePort\": - \"EQIX-CHG-06GMR-CIS-2-SEC-A\",\r\n \"state\": \"Enabled\",\r\n \"vlanId\": - 200,\r\n \"gatewayManagerEtag\": \"\",\r\n \"lastModifiedBy\": \"Customer\"\r\n - \ }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:50:36 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['802'] - x-ms-correlation-request-id: [242e450f-4fe2-4785-a67b-f48a9a8cf0cd] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [7bedf163-a98d-4914-8e16-bfe9f1589bd6] - x-ms-routing-request-id: ['WESTUS2:20170822T235037Z:242e450f-4fe2-4785-a67b-f48a9a8cf0cd'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b271ccd0-8794-11e7-bc5a-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings?api-version=2017-08-01 - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"AzurePublicPeering\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering\",\r\n - \ \"etag\": \"W/\\\"d691d164-d2eb-42bc-82a8-35a3d637e317\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringType\": - \"AzurePublicPeering\",\r\n \"azureASN\": 12076,\r\n \"peerASN\": - 100,\r\n \"primaryPeerAddressPrefix\": \"192.168.1.0/30\",\r\n \"secondaryPeerAddressPrefix\": - \"192.168.2.0/30\",\r\n \"primaryAzurePort\": \"EQIX-CHG-06GMR-CIS-1-PRI-A\",\r\n - \ \"secondaryAzurePort\": \"EQIX-CHG-06GMR-CIS-2-SEC-A\",\r\n \"state\": - \"Enabled\",\r\n \"vlanId\": 200,\r\n \"gatewayManagerEtag\": - \"\",\r\n \"lastModifiedBy\": \"Customer\"\r\n }\r\n }\r\n - \ ]\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:50:38 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['903'] - x-ms-correlation-request-id: [cc251226-82b8-450d-9b61-9cde24b8caf1] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [436098f5-5186-445c-b128-5201b6b610f9] - x-ms-routing-request-id: ['WESTUS2:20170822T235039Z:cc251226-82b8-450d-9b61-9cde24b8caf1'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b357ac82-8794-11e7-b166-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering/stats?api-version=2017-08-01 - response: - body: {string: "{\r\n \"primaryBytesIn\": 0,\r\n \"primaryBytesOut\": 0,\r\n - \ \"secondaryBytesIn\": 0,\r\n \"secondaryBytesOut\": 0\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:50:39 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['105'] - x-ms-correlation-request-id: [93e68150-3c2e-46f6-be14-9c9178e862fa] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [913e5a57-c175-4a52-93b4-c3dcf8bdba15] - x-ms-routing-request-id: ['WESTUS2:20170822T235039Z:93e68150-3c2e-46f6-be14-9c9178e862fa'] - status: {code: 200, message: OK} -- request: - body: '{}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['2'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b3d913c6-8794-11e7-9468-ecb1d756380e] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyauth9edf1275\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275\",\r\n - \ \"etag\": \"W/\\\"a2292a6e-b7ea-4a55-9ab1-54048cd0e4db\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"authorizationKey\": - \"6c73b487-eba0-4c81-af13-7c3565c56e1d\",\r\n \"authorizationUseStatus\": - \"Available\"\r\n }\r\n}"} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/24f67978-023a-42fd-9f1a-240f29b164b3?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['494'] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:50:40 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [b57eb357-3750-48b1-9f53-9d7581279b8f] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-ms-request-id: [24f67978-023a-42fd-9f1a-240f29b164b3] - x-ms-routing-request-id: ['WESTUS2:20170822T235041Z:b57eb357-3750-48b1-9f53-9d7581279b8f'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b3d913c6-8794-11e7-9468-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/24f67978-023a-42fd-9f1a-240f29b164b3?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:50:52 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [ae94b5c7-544b-4a8c-bd3d-130cc00b8ec3] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [64722ff6-8145-4d1f-a2d4-0b83cc84ae30] - x-ms-routing-request-id: ['WESTUS2:20170822T235052Z:ae94b5c7-544b-4a8c-bd3d-130cc00b8ec3'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b3d913c6-8794-11e7-9468-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyauth9edf1275\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275\",\r\n - \ \"etag\": \"W/\\\"8efea3c5-d402-4aa1-b4ff-69986920f51e\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"authorizationKey\": - \"6c73b487-eba0-4c81-af13-7c3565c56e1d\",\r\n \"authorizationUseStatus\": - \"Available\"\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:50:52 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['495'] - x-ms-correlation-request-id: [3b081e69-1c22-48cd-9904-d31f30f7a3b1] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [cc89dadd-ad5d-4e38-a1f5-2efaff6e3094] - x-ms-routing-request-id: ['WESTUS2:20170822T235053Z:3b081e69-1c22-48cd-9904-d31f30f7a3b1'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [bba5efba-8794-11e7-b2f5-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyauth9edf1275\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275\",\r\n - \ \"etag\": \"W/\\\"8efea3c5-d402-4aa1-b4ff-69986920f51e\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"authorizationKey\": - \"6c73b487-eba0-4c81-af13-7c3565c56e1d\",\r\n \"authorizationUseStatus\": - \"Available\"\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:50:52 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['495'] - x-ms-correlation-request-id: [45d092d5-1bc8-40c5-b577-0aba0b19d7cf] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [1c367c92-fdc1-4ab5-92e4-b4b8526bb238] - x-ms-routing-request-id: ['WESTUS2:20170822T235053Z:45d092d5-1bc8-40c5-b577-0aba0b19d7cf'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [bc18e638-8794-11e7-911d-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations?api-version=2017-08-01 - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyauth9edf1275\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275\",\r\n - \ \"etag\": \"W/\\\"8efea3c5-d402-4aa1-b4ff-69986920f51e\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"authorizationKey\": - \"6c73b487-eba0-4c81-af13-7c3565c56e1d\",\r\n \"authorizationUseStatus\": - \"Available\"\r\n }\r\n }\r\n ]\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:50:54 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['560'] - x-ms-correlation-request-id: [afed3e70-f35a-4ef2-95b5-58490c2fea77] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [227ff00d-663c-48b2-bb6c-50d7305a928e] - x-ms-routing-request-id: ['WESTUS2:20170822T235054Z:afed3e70-f35a-4ef2-95b5-58490c2fea77'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [bc8bc2ae-8794-11e7-9dd4-ecb1d756380e] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275?api-version=2017-08-01 - response: - body: {string: ''} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/43784a5f-7865-4ed8-bcfa-705cd755ed53?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Tue, 22 Aug 2017 23:50:54 GMT'] - Expires: ['-1'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/43784a5f-7865-4ed8-bcfa-705cd755ed53?api-version=2017-08-01'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [9b25387d-b857-4eb8-bfb1-e7d73a076067] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] - x-ms-request-id: [43784a5f-7865-4ed8-bcfa-705cd755ed53] - x-ms-routing-request-id: ['WESTUS2:20170822T235055Z:9b25387d-b857-4eb8-bfb1-e7d73a076067'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [bc8bc2ae-8794-11e7-9dd4-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/43784a5f-7865-4ed8-bcfa-705cd755ed53?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:51:05 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [4a5c3339-e4f9-453e-91f9-f7a7ea0bbe31] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [9b7fb648-d3e7-42d7-9009-5e31631a2c7a] - x-ms-routing-request-id: ['WESTUS2:20170822T235105Z:4a5c3339-e4f9-453e-91f9-f7a7ea0bbe31'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [bc8bc2ae-8794-11e7-9dd4-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/43784a5f-7865-4ed8-bcfa-705cd755ed53?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:51:15 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [2d7c649d-c1e3-4b22-9ec7-7b67fccfe0a6] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [cb401765-5480-4ef8-99ed-dc635cd8afbc] - x-ms-routing-request-id: ['WESTUS2:20170822T235116Z:2d7c649d-c1e3-4b22-9ec7-7b67fccfe0a6'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [c972a3d2-8794-11e7-929d-ecb1d756380e] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering?api-version=2017-08-01 - response: - body: {string: ''} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/069fe706-a764-423a-b264-1e15df368613?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Tue, 22 Aug 2017 23:51:16 GMT'] - Expires: ['-1'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/069fe706-a764-423a-b264-1e15df368613?api-version=2017-08-01'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [ba4d3e6d-b762-4846-86c4-595937976cde] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-ms-request-id: [069fe706-a764-423a-b264-1e15df368613] - x-ms-routing-request-id: ['WESTUS2:20170822T235116Z:ba4d3e6d-b762-4846-86c4-595937976cde'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [c972a3d2-8794-11e7-929d-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/069fe706-a764-423a-b264-1e15df368613?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:51:26 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [96237b70-d145-4adf-a892-50f3104a204a] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [acdf3e30-e016-43df-bbf2-d3dfec05b261] - x-ms-routing-request-id: ['WESTUS2:20170822T235127Z:96237b70-d145-4adf-a892-50f3104a204a'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [c972a3d2-8794-11e7-929d-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/069fe706-a764-423a-b264-1e15df368613?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:51:37 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [2391ea93-349a-47ad-bd02-fcd2c851e585] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [aa6d3c80-8dbc-4e80-ad58-45c3f97c0436] - x-ms-routing-request-id: ['WESTUS2:20170822T235138Z:2391ea93-349a-47ad-bd02-fcd2c851e585'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [c972a3d2-8794-11e7-929d-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/069fe706-a764-423a-b264-1e15df368613?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:51:48 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [3bbea02b-918f-4c6c-b1de-91dbd4106974] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [940703e3-5909-4789-ba37-3552b4e5d49d] - x-ms-routing-request-id: ['WESTUS2:20170822T235148Z:3bbea02b-918f-4c6c-b1de-91dbd4106974'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [c972a3d2-8794-11e7-929d-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/069fe706-a764-423a-b264-1e15df368613?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:51:59 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [ee7241f8-9293-4aaa-ae6d-a6b89415aadf] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [f680ff13-7e8f-4cbc-aa67-214363ef0d1f] - x-ms-routing-request-id: ['WESTUS2:20170822T235159Z:ee7241f8-9293-4aaa-ae6d-a6b89415aadf'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [c972a3d2-8794-11e7-929d-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/069fe706-a764-423a-b264-1e15df368613?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:52:09 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [fc2d437d-2b5e-42eb-835f-c9d271aca3ba] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [29692035-2408-4e84-a40d-85d80f1d8c9b] - x-ms-routing-request-id: ['WESTUS2:20170822T235209Z:fc2d437d-2b5e-42eb-835f-c9d271aca3ba'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [c972a3d2-8794-11e7-929d-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/069fe706-a764-423a-b264-1e15df368613?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:52:19 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [69e22a98-10e2-4cb1-be18-e77ab983704b] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [0d445009-648e-4fd5-a780-dbfbfb57a638] - x-ms-routing-request-id: ['WESTUS2:20170822T235220Z:69e22a98-10e2-4cb1-be18-e77ab983704b'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [c972a3d2-8794-11e7-929d-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/069fe706-a764-423a-b264-1e15df368613?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:52:29 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [f3291227-1821-400e-8a6a-97fcf775fb6b] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [11c0f6c7-235c-4892-b9d1-d5aa9a8d11c6] - x-ms-routing-request-id: ['WESTUS2:20170822T235230Z:f3291227-1821-400e-8a6a-97fcf775fb6b'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [f5ce0e4a-8794-11e7-908c-ecb1d756380e] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275?api-version=2017-08-01 - response: - body: {string: ''} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/13648c4c-5434-41b4-af24-b11a692f3f90?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Tue, 22 Aug 2017 23:52:30 GMT'] - Expires: ['-1'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/13648c4c-5434-41b4-af24-b11a692f3f90?api-version=2017-08-01'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [ff1c2ba1-753f-48af-850b-b6ef53b6489a] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-ms-request-id: [13648c4c-5434-41b4-af24-b11a692f3f90] - x-ms-routing-request-id: ['WESTUS2:20170822T235231Z:ff1c2ba1-753f-48af-850b-b6ef53b6489a'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [f5ce0e4a-8794-11e7-908c-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/13648c4c-5434-41b4-af24-b11a692f3f90?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:52:41 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [344f7663-5933-4caf-9744-82f540f2ac87] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [e979555b-4d4c-4441-b6d3-853578ded27c] - x-ms-routing-request-id: ['WESTUS2:20170822T235241Z:344f7663-5933-4caf-9744-82f540f2ac87'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [f5ce0e4a-8794-11e7-908c-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/13648c4c-5434-41b4-af24-b11a692f3f90?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:52:52 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [03a75808-3edb-4bde-b1e9-522216fdd8a0] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [aaec7674-b5f0-4bdd-97c5-ace09122aa52] - x-ms-routing-request-id: ['WESTUS2:20170822T235252Z:03a75808-3edb-4bde-b1e9-522216fdd8a0'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [f5ce0e4a-8794-11e7-908c-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/13648c4c-5434-41b4-af24-b11a692f3f90?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:53:02 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [fac63a40-1f47-4201-a37a-3d8bb205f348] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [6170cb7a-2b88-4dea-88e8-a0e0e49d830f] - x-ms-routing-request-id: ['WESTUS2:20170822T235303Z:fac63a40-1f47-4201-a37a-3d8bb205f348'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [f5ce0e4a-8794-11e7-908c-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/13648c4c-5434-41b4-af24-b11a692f3f90?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:53:13 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [afa9b087-b545-438f-99a9-3c39e150d068] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [060718cc-638c-4c74-9069-259416b21558] - x-ms-routing-request-id: ['WESTUS2:20170822T235313Z:afa9b087-b545-438f-99a9-3c39e150d068'] - status: {code: 200, message: OK} -version: 1 diff --git a/azure-mgmt/tests/recordings/test_mgmt_network.test_express_route_service_providers.yaml b/azure-mgmt/tests/recordings/test_mgmt_network.test_express_route_service_providers.yaml deleted file mode 100644 index de7b43d6c7e4..000000000000 --- a/azure-mgmt/tests/recordings/test_mgmt_network.test_express_route_service_providers.yaml +++ /dev/null @@ -1,953 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [12a5a028-8795-11e7-b138-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRouteServiceProviders?api-version=2017-08-01 - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"AARNet\",\r\n - \ \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Melbourne\",\r\n \"Sydney\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Airtel\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Chennai2\",\r\n \"Mumbai2\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Aryaka Networks\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Amsterdam\",\r\n \"Dallas\",\r\n \"Hong - Kong\",\r\n \"Silicon Valley\",\r\n \"Singapore\",\r\n \"Tokyo\",\r\n - \ \"Washington DC\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Ascenty\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Sao Paulo\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"AT&T\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Silicon Valley\",\r\n \"Washington DC\"\r\n ],\r\n - \ \"bandwidthsOffered\": [\r\n {\r\n \"offerName\": - \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\n {\r\n - \ \"offerName\": \"100Mbps\",\r\n \"valueInMbps\": 100\r\n - \ },\r\n {\r\n \"offerName\": \"200Mbps\",\r\n - \ \"valueInMbps\": 200\r\n },\r\n {\r\n \"offerName\": - \"500Mbps\",\r\n \"valueInMbps\": 500\r\n },\r\n {\r\n - \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n - \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": - 2000\r\n },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n - \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \"offerName\": - \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n }\r\n ]\r\n - \ }\r\n },\r\n {\r\n \"name\": \"AT&T Netbond\",\r\n \"id\": - \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Amsterdam\",\r\n \"Chicago\",\r\n \"Dallas\",\r\n - \ \"London\",\r\n \"Silicon Valley\",\r\n \"Singapore\",\r\n - \ \"Sydney\",\r\n \"Tokyo\",\r\n \"Toronto\",\r\n - \ \"Washington DC\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Bell Canada\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Montreal\",\r\n \"Toronto\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"British Telecom\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Amsterdam\",\r\n \"London\",\r\n \"Hong - Kong\",\r\n \"Silicon Valley\",\r\n \"Singapore\",\r\n \"Sydney\",\r\n - \ \"Tokyo\",\r\n \"Washington DC\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"C3ntro\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Miami\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n - \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"CenturyLink\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Silicon Valley\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"China Telecom Global\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Hong Kong\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Cologix\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Dallas\",\r\n \"Montreal\",\r\n \"Toronto\"\r\n - \ ],\r\n \"bandwidthsOffered\": [\r\n {\r\n \"offerName\": - \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\n {\r\n - \ \"offerName\": \"100Mbps\",\r\n \"valueInMbps\": 100\r\n - \ },\r\n {\r\n \"offerName\": \"200Mbps\",\r\n - \ \"valueInMbps\": 200\r\n },\r\n {\r\n \"offerName\": - \"500Mbps\",\r\n \"valueInMbps\": 500\r\n },\r\n {\r\n - \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n - \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": - 2000\r\n },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n - \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \"offerName\": - \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n }\r\n ]\r\n - \ }\r\n },\r\n {\r\n \"name\": \"Colt Ethernet\",\r\n \"id\": - \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Amsterdam\",\r\n \"Dublin\",\r\n \"London\",\r\n - \ \"Paris\",\r\n \"Tokyo\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Colt IPVPN\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Amsterdam\",\r\n \"London\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Comcast\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Chicago\",\r\n \"Silicon Valley\",\r\n \"Washington - DC\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n {\r\n - \ \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": 50\r\n - \ },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Console\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Silicon Valley\",\r\n \"Toronto\"\r\n ],\r\n - \ \"bandwidthsOffered\": [\r\n {\r\n \"offerName\": - \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\n {\r\n - \ \"offerName\": \"100Mbps\",\r\n \"valueInMbps\": 100\r\n - \ },\r\n {\r\n \"offerName\": \"200Mbps\",\r\n - \ \"valueInMbps\": 200\r\n },\r\n {\r\n \"offerName\": - \"500Mbps\",\r\n \"valueInMbps\": 500\r\n },\r\n {\r\n - \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n - \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": - 2000\r\n },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n - \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \"offerName\": - \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n }\r\n ]\r\n - \ }\r\n },\r\n {\r\n \"name\": \"Coresite\",\r\n \"id\": - \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Denver\",\r\n \"Los Angeles\",\r\n \"New - York\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n {\r\n - \ \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": 50\r\n - \ },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Equinix\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Amsterdam\",\r\n \"Atlanta\",\r\n \"Chicago\",\r\n - \ \"Dallas\",\r\n \"Dublin\",\r\n \"Hong Kong\",\r\n - \ \"London\",\r\n \"Los Angeles\",\r\n \"Melbourne\",\r\n - \ \"New York\",\r\n \"Osaka\",\r\n \"Paris\",\r\n - \ \"Sao Paulo\",\r\n \"Seattle\",\r\n \"Silicon - Valley\",\r\n \"Singapore\",\r\n \"Sydney\",\r\n \"Tokyo\",\r\n - \ \"Toronto\",\r\n \"Washington DC\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"euNetworks\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Amsterdam\",\r\n \"London\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"GEANT\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Amsterdam\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"GlobalcloudXchange\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Chennai\",\r\n \"Mumbai\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"IIJ\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Osaka\",\r\n \"Tokyo\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"InterCloud\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"London\",\r\n \"Singapore\",\r\n \"Washington - DC\",\r\n \"Amsterdam\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Internet Solutions - Cloud Connect\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Amsterdam\",\r\n \"London\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Interxion\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Amsterdam\",\r\n \"Dublin\",\r\n \"London\",\r\n - \ \"Paris\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n - \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Jisc\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"London\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"KINX\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Seoul\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n - \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"KPN\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Amsterdam\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Level 3 Communications - Exchange\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Amsterdam\",\r\n \"Chicago\",\r\n \"Dallas\",\r\n - \ \"Las Vegas\",\r\n \"London\",\r\n \"Sao Paulo\",\r\n - \ \"Seattle\",\r\n \"Silicon Valley\",\r\n \"Singapore\",\r\n - \ \"Washington DC\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Level 3 Communications - IPVPN\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Amsterdam\",\r\n \"Chicago\",\r\n \"Dallas\",\r\n - \ \"Las Vegas\",\r\n \"London\",\r\n \"Sao Paulo\",\r\n - \ \"Seattle\",\r\n \"Silicon Valley\",\r\n \"Singapore\",\r\n - \ \"Washington DC\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"LG CNS\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Busan\",\r\n \"Seoul\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Megaport\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Amsterdam\",\r\n \"Chicago\",\r\n \"Dallas\",\r\n - \ \"Hong Kong\",\r\n \"Las Vegas\",\r\n \"London\",\r\n - \ \"Los Angeles\",\r\n \"Melbourne\",\r\n \"Miami\",\r\n - \ \"New York\",\r\n \"Quebec City\",\r\n \"San Antonio\",\r\n - \ \"Seattle\",\r\n \"Silicon Valley\",\r\n \"Singapore\",\r\n - \ \"Sydney\",\r\n \"Toronto\",\r\n \"Washington - DC\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n {\r\n - \ \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": 50\r\n - \ },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"MTN\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"London\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Neutrona Networks\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Miami\",\r\n \"Sao Paulo\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Next Generation Data\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Newport\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"NEXTDC\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Melbourne\",\r\n \"Sydney\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"NTT Communications\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Amsterdam\",\r\n \"London\",\r\n \"Los - Angeles\",\r\n \"Osaka\",\r\n \"Singapore\",\r\n \"Tokyo\",\r\n - \ \"Washington DC\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"NTT SmartConnect\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Osaka\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n - \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Optus\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Sydney\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Orange\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Amsterdam\",\r\n \"Hong Kong\",\r\n \"London\",\r\n - \ \"Paris\",\r\n \"Silicon Valley\",\r\n \"Singapore\",\r\n - \ \"Sydney\",\r\n \"Washington DC\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"PCCW Global Limited\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Hong Kong\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Sejong Telecom\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Seoul\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n - \ {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"SIFY\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Chennai\",\r\n \"Mumbai2\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"SingTel Domestic\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Singapore\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"SingTel International\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Singapore\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"SoftBank\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Osaka\",\r\n \"Tokyo\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Tata Communications\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Amsterdam\",\r\n \"Chennai\",\r\n \"Hong - Kong\",\r\n \"London\",\r\n \"Mumbai\",\r\n \"Silicon - Valley\",\r\n \"Singapore\",\r\n \"Washington DC\"\r\n ],\r\n - \ \"bandwidthsOffered\": [\r\n {\r\n \"offerName\": - \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\n {\r\n - \ \"offerName\": \"100Mbps\",\r\n \"valueInMbps\": 100\r\n - \ },\r\n {\r\n \"offerName\": \"200Mbps\",\r\n - \ \"valueInMbps\": 200\r\n },\r\n {\r\n \"offerName\": - \"500Mbps\",\r\n \"valueInMbps\": 500\r\n },\r\n {\r\n - \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n - \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": - 2000\r\n },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n - \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \"offerName\": - \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n }\r\n ]\r\n - \ }\r\n },\r\n {\r\n \"name\": \"TeleCity Group\",\r\n \"id\": - \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Amsterdam\",\r\n \"Dublin\",\r\n \"London\"\r\n - \ ],\r\n \"bandwidthsOffered\": [\r\n {\r\n \"offerName\": - \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\n {\r\n - \ \"offerName\": \"100Mbps\",\r\n \"valueInMbps\": 100\r\n - \ },\r\n {\r\n \"offerName\": \"200Mbps\",\r\n - \ \"valueInMbps\": 200\r\n },\r\n {\r\n \"offerName\": - \"500Mbps\",\r\n \"valueInMbps\": 500\r\n },\r\n {\r\n - \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n - \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": - 2000\r\n },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n - \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \"offerName\": - \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n }\r\n ]\r\n - \ }\r\n },\r\n {\r\n \"name\": \"Telefonica\",\r\n \"id\": - \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Sao Paulo\",\r\n \"Amsterdam\"\r\n ],\r\n - \ \"bandwidthsOffered\": [\r\n {\r\n \"offerName\": - \"50Mbps\",\r\n \"valueInMbps\": 50\r\n },\r\n {\r\n - \ \"offerName\": \"100Mbps\",\r\n \"valueInMbps\": 100\r\n - \ },\r\n {\r\n \"offerName\": \"200Mbps\",\r\n - \ \"valueInMbps\": 200\r\n },\r\n {\r\n \"offerName\": - \"500Mbps\",\r\n \"valueInMbps\": 500\r\n },\r\n {\r\n - \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n - \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n \"valueInMbps\": - 2000\r\n },\r\n {\r\n \"offerName\": \"5Gbps\",\r\n - \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \"offerName\": - \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n }\r\n ]\r\n - \ }\r\n },\r\n {\r\n \"name\": \"Telehouse - KDDI\",\r\n \"id\": - \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"London\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Telenor\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Amsterdam\",\r\n \"London\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Telstra Corporation\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Melbourne\",\r\n \"Sydney\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Telus\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Toronto\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"UOLDIVEO\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Sao Paulo\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Verizon\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Amsterdam\",\r\n \"Chicago\",\r\n \"Dallas\",\r\n - \ \"Hong Kong\",\r\n \"London\",\r\n \"Mumbai\",\r\n - \ \"Silicon Valley\",\r\n \"Singapore\",\r\n \"Sydney\",\r\n - \ \"Tokyo\",\r\n \"Washington DC\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Vodafone\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"London\"\r\n ],\r\n \"bandwidthsOffered\": - [\r\n {\r\n \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": - 50\r\n },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Zayo\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Amsterdam\",\r\n \"Chicago\",\r\n \"Dallas\",\r\n - \ \"London\",\r\n \"Los Angeles\",\r\n \"New York\",\r\n - \ \"Silicon Valley\",\r\n \"Toronto\",\r\n \"Washington - DC\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n {\r\n - \ \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": 50\r\n - \ },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\": - \"Zayo Group\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\",\r\n - \ \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"peeringLocations\": - [\r\n \"Chicago\",\r\n \"Los Angeles\",\r\n \"New - York\",\r\n \"Silicon Valley\",\r\n \"Toronto\",\r\n \"Washington - DC\"\r\n ],\r\n \"bandwidthsOffered\": [\r\n {\r\n - \ \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": 50\r\n - \ },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n - \ \"valueInMbps\": 100\r\n },\r\n {\r\n \"offerName\": - \"200Mbps\",\r\n \"valueInMbps\": 200\r\n },\r\n {\r\n - \ \"offerName\": \"500Mbps\",\r\n \"valueInMbps\": 500\r\n - \ },\r\n {\r\n \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": - 1000\r\n },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n - \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \"offerName\": - \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n },\r\n {\r\n - \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\n - \ }\r\n ]\r\n }\r\n }\r\n ]\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:53:22 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['71051'] - x-ms-correlation-request-id: [c3ba4d63-6a5a-43a3-8540-ed83091335b9] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [77db6a02-b6aa-4be2-8527-9fc0b85fff13] - x-ms-routing-request-id: ['WESTUS2:20170822T235323Z:c3ba4d63-6a5a-43a3-8540-ed83091335b9'] - status: {code: 200, message: OK} -version: 1 diff --git a/azure-mgmt/tests/recordings/test_mgmt_network.test_load_balancers.yaml b/azure-mgmt/tests/recordings/test_mgmt_network.test_load_balancers.yaml deleted file mode 100644 index 6067148e909a..000000000000 --- a/azure-mgmt/tests/recordings/test_mgmt_network.test_load_balancers.yaml +++ /dev/null @@ -1,684 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "properties": {"publicIPAllocationMethod": "static", - "idleTimeoutInMinutes": 4}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['103'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [188a9cd0-8795-11e7-9f7b-ecb1d756380e] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyipname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35\",\r\n - \ \"etag\": \"W/\\\"41390b5a-8510-4678-a487-4084df42c45f\\\"\",\r\n \"location\": - \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"resourceGuid\": \"15f43b92-0628-4523-b9b8-3ae38496c477\",\r\n \"publicIPAddressVersion\": - \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Static\",\r\n \"idleTimeoutInMinutes\": - 4\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\": - {\r\n \"name\": \"Basic\"\r\n }\r\n}"} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1be6c542-f9b3-479c-afa0-898748188570?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['630'] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:53:29 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [52789e27-e46a-48da-83d0-42bd2434c49c] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - x-ms-request-id: [1be6c542-f9b3-479c-afa0-898748188570] - x-ms-routing-request-id: ['WESTUS2:20170822T235329Z:52789e27-e46a-48da-83d0-42bd2434c49c'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [188a9cd0-8795-11e7-9f7b-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/1be6c542-f9b3-479c-afa0-898748188570?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:53:32 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [82cb33e4-136a-4dcc-b653-89ff3a53c34c] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [786a233b-1f09-48db-9cbd-2d71f6e956d0] - x-ms-routing-request-id: ['WESTUS2:20170822T235333Z:82cb33e4-136a-4dcc-b653-89ff3a53c34c'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [188a9cd0-8795-11e7-9f7b-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyipname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35\",\r\n - \ \"etag\": \"W/\\\"2b9a1527-f81b-4e32-b1cc-5b78ee03e5af\\\"\",\r\n \"location\": - \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"15f43b92-0628-4523-b9b8-3ae38496c477\",\r\n \"ipAddress\": - \"52.160.88.11\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": - \"Static\",\r\n \"idleTimeoutInMinutes\": 4\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n - \ \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:53:33 GMT'] - ETag: [W/"2b9a1527-f81b-4e32-b1cc-5b78ee03e5af"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['665'] - x-ms-correlation-request-id: [495bef84-5a3b-4a72-ba44-6bb97510367d] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [809370a1-efaf-4ad9-bbbe-14ceecbe8d96] - x-ms-routing-request-id: ['WESTUS2:20170822T235333Z:495bef84-5a3b-4a72-ba44-6bb97510367d'] - status: {code: 200, message: OK} -- request: - body: '{"location": "westus", "properties": {"frontendIPConfigurations": [{"name": - "pyfipname239e0f35", "properties": {"privateIPAllocationMethod": "Dynamic", - "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35"}}}], - "backendAddressPools": [{"name": "pyapname239e0f35"}], "inboundNatRules": [{"name": - "azure-sample-netrule1", "properties": {"backendPort": 22, "frontendIPConfiguration": - {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35"}, - "enableFloatingIP": false, "protocol": "tcp", "frontendPort": 21, "idleTimeoutInMinutes": - 4}}, {"name": "azure-sample-netrule2", "properties": {"backendPort": 22, "frontendIPConfiguration": - {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35"}, - "enableFloatingIP": false, "protocol": "tcp", "frontendPort": 23, "idleTimeoutInMinutes": - 4}}], "probes": [{"name": "pyprobename239e0f35", "properties": {"port": 80, - "protocol": "Http", "intervalInSeconds": 15, "numberOfProbes": 4, "requestPath": - "healthprobe.aspx"}}], "loadBalancingRules": [{"name": "azure-sample-lb-rule", - "properties": {"probe": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35"}, - "backendPort": 80, "frontendPort": 80, "frontendIPConfiguration": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35"}, - "enableFloatingIP": false, "backendAddressPool": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35"}, - "loadDistribution": "Default", "protocol": "tcp", "idleTimeoutInMinutes": 4}}]}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['2374'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [1b86a4dc-8795-11e7-b771-ecb1d756380e] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pylbname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n \"type\": - \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"d6c9832a-fb8c-4a7f-bcc9-cb660c2d63eb\",\r\n - \ \"frontendIPConfigurations\": [\r\n {\r\n \"name\": \"pyfipname239e0f35\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": - {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35\"\r\n - \ },\r\n \"loadBalancingRules\": [\r\n {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\r\n - \ }\r\n ],\r\n \"inboundNatRules\": [\r\n {\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\"\r\n - \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\"\r\n - \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"backendAddressPools\": - [\r\n {\r\n \"name\": \"pyapname239e0f35\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"loadBalancingRules\": [\r\n {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\r\n - \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"loadBalancingRules\": - [\r\n {\r\n \"name\": \"azure-sample-lb-rule\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\r\n - \ },\r\n \"frontendPort\": 80,\r\n \"backendPort\": - 80,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\": - 4,\r\n \"protocol\": \"Tcp\",\r\n \"loadDistribution\": - \"Default\",\r\n \"backendAddressPool\": {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\"\r\n - \ },\r\n \"probe\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\"\r\n - \ }\r\n }\r\n }\r\n ],\r\n \"probes\": [\r\n {\r\n - \ \"name\": \"pyprobename239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"protocol\": \"Http\",\r\n \"port\": 80,\r\n \"requestPath\": - \"healthprobe.aspx\",\r\n \"intervalInSeconds\": 15,\r\n \"numberOfProbes\": - 4,\r\n \"loadBalancingRules\": [\r\n {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\r\n - \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"inboundNatRules\": - [\r\n {\r\n \"name\": \"azure-sample-netrule1\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\r\n - \ },\r\n \"frontendPort\": 21,\r\n \"backendPort\": - 22,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\": - 4,\r\n \"protocol\": \"Tcp\"\r\n }\r\n },\r\n {\r\n - \ \"name\": \"azure-sample-netrule2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\r\n - \ },\r\n \"frontendPort\": 23,\r\n \"backendPort\": - 22,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\": - 4,\r\n \"protocol\": \"Tcp\"\r\n }\r\n }\r\n ],\r\n - \ \"outboundNatRules\": [],\r\n \"inboundNatPools\": []\r\n },\r\n \"sku\": - {\r\n \"name\": \"Basic\"\r\n }\r\n}"} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5fc8d48c-0830-4eb7-84e4-71a29ce6a786?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['7238'] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:53:34 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [bd3612b2-970c-4e5c-b28b-7db282d73179] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-ms-request-id: [5fc8d48c-0830-4eb7-84e4-71a29ce6a786] - x-ms-routing-request-id: ['WESTUS2:20170822T235334Z:bd3612b2-970c-4e5c-b28b-7db282d73179'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [1b86a4dc-8795-11e7-b771-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5fc8d48c-0830-4eb7-84e4-71a29ce6a786?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:54:04 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [483cbd1c-9802-4656-ae64-4007c255e692] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [9f501d56-1bc3-4ae9-b904-61a6652a63c2] - x-ms-routing-request-id: ['WESTUS2:20170822T235405Z:483cbd1c-9802-4656-ae64-4007c255e692'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [1b86a4dc-8795-11e7-b771-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pylbname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n \"type\": - \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"d6c9832a-fb8c-4a7f-bcc9-cb660c2d63eb\",\r\n - \ \"frontendIPConfigurations\": [\r\n {\r\n \"name\": \"pyfipname239e0f35\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": - {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35\"\r\n - \ },\r\n \"loadBalancingRules\": [\r\n {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\r\n - \ }\r\n ],\r\n \"inboundNatRules\": [\r\n {\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\"\r\n - \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\"\r\n - \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"backendAddressPools\": - [\r\n {\r\n \"name\": \"pyapname239e0f35\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"loadBalancingRules\": [\r\n {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\r\n - \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"loadBalancingRules\": - [\r\n {\r\n \"name\": \"azure-sample-lb-rule\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\r\n - \ },\r\n \"frontendPort\": 80,\r\n \"backendPort\": - 80,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\": - 4,\r\n \"protocol\": \"Tcp\",\r\n \"loadDistribution\": - \"Default\",\r\n \"backendAddressPool\": {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\"\r\n - \ },\r\n \"probe\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\"\r\n - \ }\r\n }\r\n }\r\n ],\r\n \"probes\": [\r\n {\r\n - \ \"name\": \"pyprobename239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"protocol\": \"Http\",\r\n \"port\": 80,\r\n \"requestPath\": - \"healthprobe.aspx\",\r\n \"intervalInSeconds\": 15,\r\n \"numberOfProbes\": - 4,\r\n \"loadBalancingRules\": [\r\n {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\r\n - \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"inboundNatRules\": - [\r\n {\r\n \"name\": \"azure-sample-netrule1\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\r\n - \ },\r\n \"frontendPort\": 21,\r\n \"backendPort\": - 22,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\": - 4,\r\n \"protocol\": \"Tcp\"\r\n }\r\n },\r\n {\r\n - \ \"name\": \"azure-sample-netrule2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\r\n - \ },\r\n \"frontendPort\": 23,\r\n \"backendPort\": - 22,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\": - 4,\r\n \"protocol\": \"Tcp\"\r\n }\r\n }\r\n ],\r\n - \ \"outboundNatRules\": [],\r\n \"inboundNatPools\": []\r\n },\r\n \"sku\": - {\r\n \"name\": \"Basic\"\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:54:05 GMT'] - ETag: [W/"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['7238'] - x-ms-correlation-request-id: [daf393cb-3a16-4794-95b1-81c392b46d2e] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [832e80ed-65e6-4ca2-89cc-a1f9538b3b8f] - x-ms-routing-request-id: ['WESTUS2:20170822T235405Z:daf393cb-3a16-4794-95b1-81c392b46d2e'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [2e9f55c2-8795-11e7-ab52-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pylbname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n \"type\": - \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"d6c9832a-fb8c-4a7f-bcc9-cb660c2d63eb\",\r\n - \ \"frontendIPConfigurations\": [\r\n {\r\n \"name\": \"pyfipname239e0f35\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": - {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35\"\r\n - \ },\r\n \"loadBalancingRules\": [\r\n {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\r\n - \ }\r\n ],\r\n \"inboundNatRules\": [\r\n {\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\"\r\n - \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\"\r\n - \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"backendAddressPools\": - [\r\n {\r\n \"name\": \"pyapname239e0f35\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"loadBalancingRules\": [\r\n {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\r\n - \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"loadBalancingRules\": - [\r\n {\r\n \"name\": \"azure-sample-lb-rule\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\r\n - \ },\r\n \"frontendPort\": 80,\r\n \"backendPort\": - 80,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\": - 4,\r\n \"protocol\": \"Tcp\",\r\n \"loadDistribution\": - \"Default\",\r\n \"backendAddressPool\": {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\"\r\n - \ },\r\n \"probe\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\"\r\n - \ }\r\n }\r\n }\r\n ],\r\n \"probes\": [\r\n {\r\n - \ \"name\": \"pyprobename239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"protocol\": \"Http\",\r\n \"port\": 80,\r\n \"requestPath\": - \"healthprobe.aspx\",\r\n \"intervalInSeconds\": 15,\r\n \"numberOfProbes\": - 4,\r\n \"loadBalancingRules\": [\r\n {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\r\n - \ }\r\n ]\r\n }\r\n }\r\n ],\r\n \"inboundNatRules\": - [\r\n {\r\n \"name\": \"azure-sample-netrule1\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\r\n - \ },\r\n \"frontendPort\": 21,\r\n \"backendPort\": - 22,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\": - 4,\r\n \"protocol\": \"Tcp\"\r\n }\r\n },\r\n {\r\n - \ \"name\": \"azure-sample-netrule2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\r\n - \ },\r\n \"frontendPort\": 23,\r\n \"backendPort\": - 22,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\": - 4,\r\n \"protocol\": \"Tcp\"\r\n }\r\n }\r\n ],\r\n - \ \"outboundNatRules\": [],\r\n \"inboundNatPools\": []\r\n },\r\n \"sku\": - {\r\n \"name\": \"Basic\"\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:54:06 GMT'] - ETag: [W/"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['7238'] - x-ms-correlation-request-id: [c8e1bdae-61cd-45c5-b015-b4f99888db1a] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [d3b55957-becd-454b-b46d-940115f1a4cc] - x-ms-routing-request-id: ['WESTUS2:20170822T235406Z:c8e1bdae-61cd-45c5-b015-b4f99888db1a'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [2eee1c52-8795-11e7-8e8c-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/loadBalancers?api-version=2017-08-01 - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pylbname239e0f35\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n \"type\": - \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"d6c9832a-fb8c-4a7f-bcc9-cb660c2d63eb\",\r\n \"frontendIPConfigurations\": - [\r\n {\r\n \"name\": \"pyfipname239e0f35\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": - {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35\"\r\n - \ },\r\n \"loadBalancingRules\": [\r\n {\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\r\n - \ }\r\n ],\r\n \"inboundNatRules\": - [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\"\r\n - \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\"\r\n - \ }\r\n ]\r\n }\r\n }\r\n ],\r\n - \ \"backendAddressPools\": [\r\n {\r\n \"name\": - \"pyapname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"loadBalancingRules\": [\r\n {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\r\n - \ }\r\n ]\r\n }\r\n }\r\n ],\r\n - \ \"loadBalancingRules\": [\r\n {\r\n \"name\": - \"azure-sample-lb-rule\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\r\n - \ },\r\n \"frontendPort\": 80,\r\n \"backendPort\": - 80,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\": - 4,\r\n \"protocol\": \"Tcp\",\r\n \"loadDistribution\": - \"Default\",\r\n \"backendAddressPool\": {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\"\r\n - \ },\r\n \"probe\": {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\"\r\n - \ }\r\n }\r\n }\r\n ],\r\n \"probes\": - [\r\n {\r\n \"name\": \"pyprobename239e0f35\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"protocol\": \"Http\",\r\n \"port\": 80,\r\n \"requestPath\": - \"healthprobe.aspx\",\r\n \"intervalInSeconds\": 15,\r\n \"numberOfProbes\": - 4,\r\n \"loadBalancingRules\": [\r\n {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\r\n - \ }\r\n ]\r\n }\r\n }\r\n ],\r\n - \ \"inboundNatRules\": [\r\n {\r\n \"name\": \"azure-sample-netrule1\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\r\n - \ },\r\n \"frontendPort\": 21,\r\n \"backendPort\": - 22,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\": - 4,\r\n \"protocol\": \"Tcp\"\r\n }\r\n },\r\n - \ {\r\n \"name\": \"azure-sample-netrule2\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\r\n - \ },\r\n \"frontendPort\": 23,\r\n \"backendPort\": - 22,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\": - 4,\r\n \"protocol\": \"Tcp\"\r\n }\r\n }\r\n - \ ],\r\n \"outboundNatRules\": [],\r\n \"inboundNatPools\": - []\r\n },\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n - \ }\r\n ]\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:54:06 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['7811'] - x-ms-correlation-request-id: [577df9c5-31f0-4cc1-bec6-1358993699cb] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [0015b51d-0deb-476e-b6ad-b0be184e41c5] - x-ms-routing-request-id: ['WESTUS2:20170822T235406Z:577df9c5-31f0-4cc1-bec6-1358993699cb'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [2f341bb4-8795-11e7-8c1c-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers?api-version=2017-08-01 - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pylbname239e0f35\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n \"type\": - \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"d6c9832a-fb8c-4a7f-bcc9-cb660c2d63eb\",\r\n \"frontendIPConfigurations\": - [\r\n {\r\n \"name\": \"pyfipname239e0f35\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": - {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35\"\r\n - \ },\r\n \"loadBalancingRules\": [\r\n {\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\r\n - \ }\r\n ],\r\n \"inboundNatRules\": - [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\"\r\n - \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\"\r\n - \ }\r\n ]\r\n }\r\n }\r\n ],\r\n - \ \"backendAddressPools\": [\r\n {\r\n \"name\": - \"pyapname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"loadBalancingRules\": [\r\n {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\r\n - \ }\r\n ]\r\n }\r\n }\r\n ],\r\n - \ \"loadBalancingRules\": [\r\n {\r\n \"name\": - \"azure-sample-lb-rule\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\r\n - \ },\r\n \"frontendPort\": 80,\r\n \"backendPort\": - 80,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\": - 4,\r\n \"protocol\": \"Tcp\",\r\n \"loadDistribution\": - \"Default\",\r\n \"backendAddressPool\": {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\"\r\n - \ },\r\n \"probe\": {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\"\r\n - \ }\r\n }\r\n }\r\n ],\r\n \"probes\": - [\r\n {\r\n \"name\": \"pyprobename239e0f35\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"protocol\": \"Http\",\r\n \"port\": 80,\r\n \"requestPath\": - \"healthprobe.aspx\",\r\n \"intervalInSeconds\": 15,\r\n \"numberOfProbes\": - 4,\r\n \"loadBalancingRules\": [\r\n {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\r\n - \ }\r\n ]\r\n }\r\n }\r\n ],\r\n - \ \"inboundNatRules\": [\r\n {\r\n \"name\": \"azure-sample-netrule1\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\r\n - \ },\r\n \"frontendPort\": 21,\r\n \"backendPort\": - 22,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\": - 4,\r\n \"protocol\": \"Tcp\"\r\n }\r\n },\r\n - \ {\r\n \"name\": \"azure-sample-netrule2\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\",\r\n - \ \"etag\": \"W/\\\"3b098f38-bdce-4484-9eaa-40e8e5f9cd0b\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\r\n - \ },\r\n \"frontendPort\": 23,\r\n \"backendPort\": - 22,\r\n \"enableFloatingIP\": false,\r\n \"idleTimeoutInMinutes\": - 4,\r\n \"protocol\": \"Tcp\"\r\n }\r\n }\r\n - \ ],\r\n \"outboundNatRules\": [],\r\n \"inboundNatPools\": - []\r\n },\r\n \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n - \ }\r\n ]\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:54:06 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['7811'] - x-ms-correlation-request-id: [bb8830d0-6f5e-447c-8c26-8fb091eaa2a4] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [9733d761-8fad-4713-bbf3-cdce7584fe84] - x-ms-routing-request-id: ['WESTUS2:20170822T235407Z:bb8830d0-6f5e-447c-8c26-8fb091eaa2a4'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [2f947de4-8795-11e7-9cee-ecb1d756380e] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35?api-version=2017-08-01 - response: - body: {string: ''} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/864dde14-378e-41a7-a19a-e0e2d96c3d7f?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Tue, 22 Aug 2017 23:54:08 GMT'] - Expires: ['-1'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/864dde14-378e-41a7-a19a-e0e2d96c3d7f?api-version=2017-08-01'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [5b0b6109-10aa-469b-ab11-b3bd4f6d9d42] - x-ms-ratelimit-remaining-subscription-writes: ['1195'] - x-ms-request-id: [864dde14-378e-41a7-a19a-e0e2d96c3d7f] - x-ms-routing-request-id: ['WESTUS2:20170822T235408Z:5b0b6109-10aa-469b-ab11-b3bd4f6d9d42'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [2f947de4-8795-11e7-9cee-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/864dde14-378e-41a7-a19a-e0e2d96c3d7f?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:54:18 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [590c8090-d405-40b4-bfc0-5b6bbc6e4e33] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [7c9dbfc0-444c-4c70-958a-3f281ebf525c] - x-ms-routing-request-id: ['WESTUS2:20170822T235418Z:590c8090-d405-40b4-bfc0-5b6bbc6e4e33'] - status: {code: 200, message: OK} -version: 1 diff --git a/azure-mgmt/tests/recordings/test_mgmt_network.test_network_interface_card.yaml b/azure-mgmt/tests/recordings/test_mgmt_network.test_network_interface_card.yaml deleted file mode 100644 index dd1f833d9b23..000000000000 --- a/azure-mgmt/tests/recordings/test_mgmt_network.test_network_interface_card.yaml +++ /dev/null @@ -1,536 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "properties": {"addressSpace": {"addressPrefixes": - ["10.0.0.0/16"]}}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['92'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [39a263a4-8795-11e7-ba1d-ecb1d756380e] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyvnetb046129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e\",\r\n - \ \"etag\": \"W/\\\"c66c077f-aecf-47d5-9258-857458a0a83b\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"67a9ffaa-307d-464a-a719-ff78a5059bb5\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": - [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n - \ \"virtualNetworkPeerings\": []\r\n }\r\n}"} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/a977cbe5-8390-4caa-97cf-ef9b4fd180ab?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['623'] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:54:25 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [3c9d2753-6055-4ffe-add8-1de68b595e54] - x-ms-ratelimit-remaining-subscription-writes: ['1194'] - x-ms-request-id: [a977cbe5-8390-4caa-97cf-ef9b4fd180ab] - x-ms-routing-request-id: ['WESTUS2:20170822T235425Z:3c9d2753-6055-4ffe-add8-1de68b595e54'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [39a263a4-8795-11e7-ba1d-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/a977cbe5-8390-4caa-97cf-ef9b4fd180ab?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:54:29 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [64636045-1f06-4052-bbfe-453c2a8f3eef] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [8ca30758-a95c-44ff-906d-ffb6300131f3] - x-ms-routing-request-id: ['WESTUS2:20170822T235429Z:64636045-1f06-4052-bbfe-453c2a8f3eef'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [39a263a4-8795-11e7-ba1d-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyvnetb046129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e\",\r\n - \ \"etag\": \"W/\\\"d45fc381-16d0-4841-8e44-7aadbf53ace8\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"67a9ffaa-307d-464a-a719-ff78a5059bb5\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": - [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n - \ \"virtualNetworkPeerings\": []\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:54:29 GMT'] - ETag: [W/"d45fc381-16d0-4841-8e44-7aadbf53ace8"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['624'] - x-ms-correlation-request-id: [a392d08d-cbb6-421d-92c4-de65704c3d0b] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [93f05661-84b2-4886-a877-9d168af5e5c3] - x-ms-routing-request-id: ['WESTUS2:20170822T235429Z:a392d08d-cbb6-421d-92c4-de65704c3d0b'] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"addressPrefix": "10.0.0.0/24"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['48'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [3cc6df82-8795-11e7-a347-ecb1d756380e] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pysubnetb046129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e\",\r\n - \ \"etag\": \"W/\\\"21fd468e-189e-4f02-823c-240b11fd3b76\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\"\r\n - \ }\r\n}"} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/04713368-615d-403d-9818-743a9159f4fe?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['407'] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:54:29 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [a9c2b5dc-17b4-4926-80ca-cdb29cd82367] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - x-ms-request-id: [04713368-615d-403d-9818-743a9159f4fe] - x-ms-routing-request-id: ['WESTUS2:20170822T235430Z:a9c2b5dc-17b4-4926-80ca-cdb29cd82367'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [3cc6df82-8795-11e7-a347-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/04713368-615d-403d-9818-743a9159f4fe?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:54:33 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [e87fda77-7578-4744-9862-453aae0367b0] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [14142908-3b0a-4bc6-9e45-eb290bfc7ff4] - x-ms-routing-request-id: ['WESTUS2:20170822T235433Z:e87fda77-7578-4744-9862-453aae0367b0'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [3cc6df82-8795-11e7-a347-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pysubnetb046129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e\",\r\n - \ \"etag\": \"W/\\\"607ff171-9aee-47c2-b1f3-afb01a624bf3\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\"\r\n - \ }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:54:33 GMT'] - ETag: [W/"607ff171-9aee-47c2-b1f3-afb01a624bf3"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['408'] - x-ms-correlation-request-id: [82d793b6-fc7b-45f3-9124-b1fc551ead6a] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [21ac7055-2beb-471d-83ca-dc3f8f6a4c29] - x-ms-routing-request-id: ['WESTUS2:20170822T235434Z:82d793b6-fc7b-45f3-9124-b1fc551ead6a'] - status: {code: 200, message: OK} -- request: - body: '{"location": "westus", "properties": {"ipConfigurations": [{"name": "MyIpConfig", - "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e"}}}]}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['326'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [3f93f04a-8795-11e7-80df-ecb1d756380e] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pynicb046129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e\",\r\n - \ \"etag\": \"W/\\\"b88c1e25-61bd-49cb-9087-76e3d60b9e23\\\"\",\r\n \"location\": - \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"ed26fc0b-b074-4319-8969-8c131c724cf7\",\r\n \"ipConfigurations\": - [\r\n {\r\n \"name\": \"MyIpConfig\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e/ipConfigurations/MyIpConfig\",\r\n - \ \"etag\": \"W/\\\"b88c1e25-61bd-49cb-9087-76e3d60b9e23\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": - \"Dynamic\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e\"\r\n - \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": - \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": - [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"vl50sz13gbfenjyz532kkbm1wf.dx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": - false,\r\n \"enableIPForwarding\": false\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}"} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/592d65c0-64fd-433f-ab4d-5636865a6027?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['1618'] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:54:34 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [e6e063c9-1f9b-4e9c-844e-dc7ed30ef26d] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - x-ms-request-id: [592d65c0-64fd-433f-ab4d-5636865a6027] - x-ms-routing-request-id: ['WESTUS2:20170822T235435Z:e6e063c9-1f9b-4e9c-844e-dc7ed30ef26d'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [3f93f04a-8795-11e7-80df-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/592d65c0-64fd-433f-ab4d-5636865a6027?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:55:05 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [14f66e64-32be-4a33-9a00-0b190c758c19] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [1b0442b4-a1f7-437b-9b2e-ab6c6f3569ce] - x-ms-routing-request-id: ['WESTUS:20170822T235505Z:14f66e64-32be-4a33-9a00-0b190c758c19'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [3f93f04a-8795-11e7-80df-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pynicb046129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e\",\r\n - \ \"etag\": \"W/\\\"b88c1e25-61bd-49cb-9087-76e3d60b9e23\\\"\",\r\n \"location\": - \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"ed26fc0b-b074-4319-8969-8c131c724cf7\",\r\n \"ipConfigurations\": - [\r\n {\r\n \"name\": \"MyIpConfig\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e/ipConfigurations/MyIpConfig\",\r\n - \ \"etag\": \"W/\\\"b88c1e25-61bd-49cb-9087-76e3d60b9e23\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": - \"Dynamic\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e\"\r\n - \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": - \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": - [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"vl50sz13gbfenjyz532kkbm1wf.dx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": - false,\r\n \"enableIPForwarding\": false\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:55:06 GMT'] - ETag: [W/"b88c1e25-61bd-49cb-9087-76e3d60b9e23"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['1618'] - x-ms-correlation-request-id: [753ad3cc-fb1e-417d-8899-5c6594b50766] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [af65365e-4f5e-497e-8564-2557c76f021b] - x-ms-routing-request-id: ['WESTUS:20170822T235506Z:753ad3cc-fb1e-417d-8899-5c6594b50766'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [52c45818-8795-11e7-a08d-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pynicb046129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e\",\r\n - \ \"etag\": \"W/\\\"b88c1e25-61bd-49cb-9087-76e3d60b9e23\\\"\",\r\n \"location\": - \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"ed26fc0b-b074-4319-8969-8c131c724cf7\",\r\n \"ipConfigurations\": - [\r\n {\r\n \"name\": \"MyIpConfig\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e/ipConfigurations/MyIpConfig\",\r\n - \ \"etag\": \"W/\\\"b88c1e25-61bd-49cb-9087-76e3d60b9e23\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": - \"Dynamic\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e\"\r\n - \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": - \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": - [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"vl50sz13gbfenjyz532kkbm1wf.dx.internal.cloudapp.net\"\r\n },\r\n \"enableAcceleratedNetworking\": - false,\r\n \"enableIPForwarding\": false\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:55:06 GMT'] - ETag: [W/"b88c1e25-61bd-49cb-9087-76e3d60b9e23"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['1618'] - x-ms-correlation-request-id: [9dcf730a-c306-42cc-b411-5b3a228d7b69] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [9e5aadc8-4bc8-457c-a5dc-4c790f44b703] - x-ms-routing-request-id: ['WESTUS:20170822T235506Z:9dcf730a-c306-42cc-b411-5b3a228d7b69'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [53139f86-8795-11e7-b61f-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces?api-version=2017-08-01 - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pynicb046129e\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e\",\r\n - \ \"etag\": \"W/\\\"b88c1e25-61bd-49cb-9087-76e3d60b9e23\\\"\",\r\n \"location\": - \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"ed26fc0b-b074-4319-8969-8c131c724cf7\",\r\n \"ipConfigurations\": - [\r\n {\r\n \"name\": \"MyIpConfig\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e/ipConfigurations/MyIpConfig\",\r\n - \ \"etag\": \"W/\\\"b88c1e25-61bd-49cb-9087-76e3d60b9e23\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": - \"Dynamic\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e\"\r\n - \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": - \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": - {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n - \ \"internalDomainNameSuffix\": \"vl50sz13gbfenjyz532kkbm1wf.dx.internal.cloudapp.net\"\r\n - \ },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": - false\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n - \ }\r\n ]\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:55:07 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['1783'] - x-ms-correlation-request-id: [c6789e72-6a58-44c1-a48f-9a4787284490] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [b027caaa-4545-45bb-beec-4b6a005288a1] - x-ms-routing-request-id: ['WESTUS:20170822T235507Z:c6789e72-6a58-44c1-a48f-9a4787284490'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [53671f0c-8795-11e7-8915-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/networkInterfaces?api-version=2017-08-01 - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pynicb046129e\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e\",\r\n - \ \"etag\": \"W/\\\"b88c1e25-61bd-49cb-9087-76e3d60b9e23\\\"\",\r\n \"location\": - \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"ed26fc0b-b074-4319-8969-8c131c724cf7\",\r\n \"ipConfigurations\": - [\r\n {\r\n \"name\": \"MyIpConfig\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e/ipConfigurations/MyIpConfig\",\r\n - \ \"etag\": \"W/\\\"b88c1e25-61bd-49cb-9087-76e3d60b9e23\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": - \"Dynamic\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e\"\r\n - \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": - \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": - {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n - \ \"internalDomainNameSuffix\": \"vl50sz13gbfenjyz532kkbm1wf.dx.internal.cloudapp.net\"\r\n - \ },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": - false\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n - \ }\r\n ]\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:55:07 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['1783'] - x-ms-correlation-request-id: [b00e4748-a848-4f39-837f-718c5c5efdb4] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [e793213a-193d-4865-b21b-a165a8dae488] - x-ms-routing-request-id: ['WESTUS:20170822T235508Z:b00e4748-a848-4f39-837f-718c5c5efdb4'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [53b7ef4a-8795-11e7-9003-ecb1d756380e] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e?api-version=2017-08-01 - response: - body: {string: ''} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/069b53f3-d9a2-432a-82e9-03015915142e?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Tue, 22 Aug 2017 23:55:08 GMT'] - Expires: ['-1'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/069b53f3-d9a2-432a-82e9-03015915142e?api-version=2017-08-01'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [4d0f0afb-874a-4c93-b1e2-3dd23169bd5f] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-ms-request-id: [069b53f3-d9a2-432a-82e9-03015915142e] - x-ms-routing-request-id: ['WESTUS:20170822T235508Z:4d0f0afb-874a-4c93-b1e2-3dd23169bd5f'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [53b7ef4a-8795-11e7-9003-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/069b53f3-d9a2-432a-82e9-03015915142e?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:55:18 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [a2fea27f-1449-4a99-b00b-ffa3f92b5a31] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [50296c1f-fb9e-4201-b6bb-159ede145d54] - x-ms-routing-request-id: ['WESTUS:20170822T235519Z:a2fea27f-1449-4a99-b00b-ffa3f92b5a31'] - status: {code: 200, message: OK} -version: 1 diff --git a/azure-mgmt/tests/recordings/test_mgmt_network.test_network_security_groups.yaml b/azure-mgmt/tests/recordings/test_mgmt_network.test_network_security_groups.yaml deleted file mode 100644 index 9e1d6c706044..000000000000 --- a/azure-mgmt/tests/recordings/test_mgmt_network.test_network_security_groups.yaml +++ /dev/null @@ -1,941 +0,0 @@ -interactions: -- request: - body: '{"properties": {"securityRules": [{"name": "pysecgrouprulec575136b", "properties": - {"access": "Allow", "priority": 500, "protocol": "Tcp", "destinationPortRange": - "123-3500", "sourceAddressPrefix": "*", "direction": "Inbound", "description": - "Test security rule", "sourcePortRange": "655", "destinationAddressPrefix": - "*"}}]}, "location": "westus"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['348'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [29b05014-881f-11e7-a99e-ecb1d756380e] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pysecgroupc575136b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b\",\r\n - \ \"etag\": \"W/\\\"452301cc-fd3a-4126-9672-28ccb4bc5c1d\\\"\",\r\n \"type\": - \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"f5551072-b68c-4884-aedc-382efbe4827d\",\r\n \"securityRules\": [\r\n - \ {\r\n \"name\": \"pysecgrouprulec575136b\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pysecgrouprulec575136b\",\r\n - \ \"etag\": \"W/\\\"452301cc-fd3a-4126-9672-28ccb4bc5c1d\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"description\": \"Test security rule\",\r\n \"protocol\": - \"Tcp\",\r\n \"sourcePortRange\": \"655\",\r\n \"destinationPortRange\": - \"123-3500\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": - \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 500,\r\n - \ \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n - \ \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": - [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n - \ ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": - \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetInBound\",\r\n - \ \"etag\": \"W/\\\"452301cc-fd3a-4126-9672-28ccb4bc5c1d\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n - \ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n - \ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": - \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n - \ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": - \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": - [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": - []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n - \ \"etag\": \"W/\\\"452301cc-fd3a-4126-9672-28ccb4bc5c1d\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"description\": \"Allow inbound traffic from azure load balancer\",\r\n - \ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n - \ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": - \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n - \ \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": - \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": - [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": - []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllInBound\",\r\n - \ \"etag\": \"W/\\\"452301cc-fd3a-4126-9672-28ccb4bc5c1d\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": - \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": - \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": - \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n - \ \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n - \ \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": - [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n - \ {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetOutBound\",\r\n - \ \"etag\": \"W/\\\"452301cc-fd3a-4126-9672-28ccb4bc5c1d\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"description\": \"Allow outbound traffic from all VMs to all VMs - in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": - \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": - \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n - \ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": - \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": - [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": - []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowInternetOutBound\",\r\n - \ \"etag\": \"W/\\\"452301cc-fd3a-4126-9672-28ccb4bc5c1d\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n - \ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n - \ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": - \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": - \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n - \ \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": - [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": - []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllOutBound\",\r\n - \ \"etag\": \"W/\\\"452301cc-fd3a-4126-9672-28ccb4bc5c1d\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": - \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": - \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": - \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n - \ \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": - [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": - [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n - \ ]\r\n }\r\n}"} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c69b4daf-2bf9-4d27-97e3-34df1f394162?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['7357'] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 16:21:48 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [da0da03b-7b7b-404c-bcc9-2e86c637caef] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-ms-request-id: [c69b4daf-2bf9-4d27-97e3-34df1f394162] - x-ms-routing-request-id: ['WESTUS:20170823T162149Z:da0da03b-7b7b-404c-bcc9-2e86c637caef'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [29b05014-881f-11e7-a99e-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c69b4daf-2bf9-4d27-97e3-34df1f394162?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 16:21:59 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [1312e18c-8c68-48f7-ba23-0dcc20d1d312] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [83f67c5f-d25c-48b8-b395-aae3b5934335] - x-ms-routing-request-id: ['WESTUS:20170823T162200Z:1312e18c-8c68-48f7-ba23-0dcc20d1d312'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [29b05014-881f-11e7-a99e-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pysecgroupc575136b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n \"type\": - \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"f5551072-b68c-4884-aedc-382efbe4827d\",\r\n \"securityRules\": [\r\n - \ {\r\n \"name\": \"pysecgrouprulec575136b\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pysecgrouprulec575136b\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Test security rule\",\r\n \"protocol\": - \"Tcp\",\r\n \"sourcePortRange\": \"655\",\r\n \"destinationPortRange\": - \"123-3500\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": - \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 500,\r\n - \ \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n - \ \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": - [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n - \ ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": - \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetInBound\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n - \ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n - \ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": - \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n - \ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": - \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": - [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": - []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Allow inbound traffic from azure load balancer\",\r\n - \ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n - \ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": - \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n - \ \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": - \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": - [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": - []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllInBound\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": - \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": - \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": - \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n - \ \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n - \ \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": - [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n - \ {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetOutBound\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Allow outbound traffic from all VMs to all VMs - in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": - \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": - \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n - \ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": - \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": - [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": - []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowInternetOutBound\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n - \ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n - \ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": - \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": - \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n - \ \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": - [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": - []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllOutBound\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": - \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": - \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": - \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n - \ \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": - [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": - [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n - \ ]\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 16:21:59 GMT'] - ETag: [W/"6a7c2a55-e604-4d85-bd83-4f2d15312d06"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['7365'] - x-ms-correlation-request-id: [74a55f62-dc18-47c0-9cf9-4e4deb224ba8] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [d300c791-3dcb-4a9a-9e8e-a21d7bd2813e] - x-ms-routing-request-id: ['WESTUS:20170823T162200Z:74a55f62-dc18-47c0-9cf9-4e4deb224ba8'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [311ff650-881f-11e7-9ae9-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pysecgroupc575136b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n \"type\": - \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"f5551072-b68c-4884-aedc-382efbe4827d\",\r\n \"securityRules\": [\r\n - \ {\r\n \"name\": \"pysecgrouprulec575136b\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pysecgrouprulec575136b\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Test security rule\",\r\n \"protocol\": - \"Tcp\",\r\n \"sourcePortRange\": \"655\",\r\n \"destinationPortRange\": - \"123-3500\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": - \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": 500,\r\n - \ \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n - \ \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": - [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n - \ ],\r\n \"defaultSecurityRules\": [\r\n {\r\n \"name\": - \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetInBound\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n - \ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n - \ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": - \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n - \ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": - \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": - [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": - []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Allow inbound traffic from azure load balancer\",\r\n - \ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n - \ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": - \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n - \ \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": - \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": - [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": - []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllInBound\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": - \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": - \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": - \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n - \ \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": [],\r\n - \ \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": - [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\n - \ {\r\n \"name\": \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetOutBound\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Allow outbound traffic from all VMs to all VMs - in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": - \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": - \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n - \ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n \"direction\": - \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": - [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": - []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowInternetOutBound\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n - \ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n - \ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": - \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": - \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": \"Outbound\",\r\n - \ \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": - [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": - []\r\n }\r\n },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllOutBound\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": - \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": - \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": - \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": 65500,\r\n - \ \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": - [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": - [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n }\r\n - \ ]\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 16:22:01 GMT'] - ETag: [W/"6a7c2a55-e604-4d85-bd83-4f2d15312d06"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['7365'] - x-ms-correlation-request-id: [fa2247b9-45de-4b91-8111-6f5c318dce42] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [15519053-a826-4b9b-be87-78a68ffb2488] - x-ms-routing-request-id: ['WESTUS:20170823T162201Z:fa2247b9-45de-4b91-8111-6f5c318dce42'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [3183aef8-881f-11e7-b3df-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups?api-version=2017-08-01 - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pysecgroupc575136b\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n \"type\": - \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"f5551072-b68c-4884-aedc-382efbe4827d\",\r\n \"securityRules\": - [\r\n {\r\n \"name\": \"pysecgrouprulec575136b\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pysecgrouprulec575136b\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Test security rule\",\r\n \"protocol\": - \"Tcp\",\r\n \"sourcePortRange\": \"655\",\r\n \"destinationPortRange\": - \"123-3500\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": - \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": - 500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": - [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": - [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n - \ }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n - \ \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetInBound\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n - \ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n - \ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": - \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n - \ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n - \ \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": - [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": - [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n - \ },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Allow inbound traffic from azure load balancer\",\r\n - \ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n - \ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": - \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n - \ \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n - \ \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": - [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": - [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n - \ },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllInBound\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": - \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": - \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": - \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": - 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": - [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": - [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n - \ },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetOutBound\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Allow outbound traffic from all VMs to all - VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": - \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": - \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n - \ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n - \ \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": - [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": - [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n - \ },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowInternetOutBound\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n - \ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n - \ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": - \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": - \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": - \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": - [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": - []\r\n }\r\n },\r\n {\r\n \"name\": - \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllOutBound\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": - \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": - \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": - \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": - 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": - [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": - [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n - \ }\r\n ]\r\n }\r\n }\r\n ]\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 16:22:01 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['8038'] - x-ms-correlation-request-id: [fa3c86e4-07f9-4c04-b3b8-318facde35ff] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [d03df9a9-7829-4923-8750-c9aef3e8afad] - x-ms-routing-request-id: ['WESTUS:20170823T162201Z:fa3c86e4-07f9-4c04-b3b8-318facde35ff'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [31cc4694-881f-11e7-b9aa-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/networkSecurityGroups?api-version=2017-08-01 - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pysecgroupc575136b\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n \"type\": - \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"f5551072-b68c-4884-aedc-382efbe4827d\",\r\n \"securityRules\": - [\r\n {\r\n \"name\": \"pysecgrouprulec575136b\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pysecgrouprulec575136b\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Test security rule\",\r\n \"protocol\": - \"Tcp\",\r\n \"sourcePortRange\": \"655\",\r\n \"destinationPortRange\": - \"123-3500\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": - \"*\",\r\n \"access\": \"Allow\",\r\n \"priority\": - 500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": - [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": - [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n - \ }\r\n ],\r\n \"defaultSecurityRules\": [\r\n {\r\n - \ \"name\": \"AllowVnetInBound\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetInBound\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Allow inbound traffic from all VMs in VNET\",\r\n - \ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n - \ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": - \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n - \ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n - \ \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": - [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": - [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n - \ },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowAzureLoadBalancerInBound\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Allow inbound traffic from azure load balancer\",\r\n - \ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n - \ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": - \"AzureLoadBalancer\",\r\n \"destinationAddressPrefix\": \"*\",\r\n - \ \"access\": \"Allow\",\r\n \"priority\": 65001,\r\n - \ \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": - [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": - [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n - \ },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllInBound\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Deny all inbound traffic\",\r\n \"protocol\": - \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": - \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": - \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": - 65500,\r\n \"direction\": \"Inbound\",\r\n \"sourcePortRanges\": - [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": - [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n - \ },\r\n {\r\n \"name\": \"AllowVnetOutBound\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetOutBound\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Allow outbound traffic from all VMs to all - VMs in VNET\",\r\n \"protocol\": \"*\",\r\n \"sourcePortRange\": - \"*\",\r\n \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": - \"VirtualNetwork\",\r\n \"destinationAddressPrefix\": \"VirtualNetwork\",\r\n - \ \"access\": \"Allow\",\r\n \"priority\": 65000,\r\n - \ \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": - [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": - [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n - \ },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowInternetOutBound\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Allow outbound traffic from all VMs to Internet\",\r\n - \ \"protocol\": \"*\",\r\n \"sourcePortRange\": \"*\",\r\n - \ \"destinationPortRange\": \"*\",\r\n \"sourceAddressPrefix\": - \"*\",\r\n \"destinationAddressPrefix\": \"Internet\",\r\n \"access\": - \"Allow\",\r\n \"priority\": 65001,\r\n \"direction\": - \"Outbound\",\r\n \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": - [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": - []\r\n }\r\n },\r\n {\r\n \"name\": - \"DenyAllOutBound\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllOutBound\",\r\n - \ \"etag\": \"W/\\\"6a7c2a55-e604-4d85-bd83-4f2d15312d06\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"description\": \"Deny all outbound traffic\",\r\n \"protocol\": - \"*\",\r\n \"sourcePortRange\": \"*\",\r\n \"destinationPortRange\": - \"*\",\r\n \"sourceAddressPrefix\": \"*\",\r\n \"destinationAddressPrefix\": - \"*\",\r\n \"access\": \"Deny\",\r\n \"priority\": - 65500,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": - [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": - [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n - \ }\r\n ]\r\n }\r\n }\r\n ]\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 16:22:02 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['8038'] - x-ms-correlation-request-id: [9f715f22-9ef9-4b55-9437-abcc41dda391] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [a8fcc1cd-68c3-4767-af9a-f8fe475bef32] - x-ms-routing-request-id: ['WESTUS:20170823T162202Z:9f715f22-9ef9-4b55-9437-abcc41dda391'] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"access": "Allow", "priority": 400, "protocol": "Tcp", - "destinationPortRange": "123-3500", "sourceAddressPrefix": "*", "direction": - "Outbound", "description": "New Test security rule", "sourcePortRange": "655", - "destinationAddressPrefix": "*"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['260'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [322e81ba-881f-11e7-b677-ecb1d756380e] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pynewrulec575136b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b\",\r\n - \ \"etag\": \"W/\\\"32465628-e69a-4d56-9c7e-4b1183510c56\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"description\": \"New - Test security rule\",\r\n \"protocol\": \"Tcp\",\r\n \"sourcePortRange\": - \"655\",\r\n \"destinationPortRange\": \"123-3500\",\r\n \"sourceAddressPrefix\": - \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n - \ \"priority\": 400,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": - [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": - [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n}"} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/01ac7e24-f480-422a-963c-2290ca30760d?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['814'] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 16:22:03 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [c98ad7ed-86d8-4e5b-bbde-1db14bc43d2b] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-ms-request-id: [01ac7e24-f480-422a-963c-2290ca30760d] - x-ms-routing-request-id: ['WESTUS:20170823T162203Z:c98ad7ed-86d8-4e5b-bbde-1db14bc43d2b'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [322e81ba-881f-11e7-b677-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/01ac7e24-f480-422a-963c-2290ca30760d?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 16:22:13 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [b5bedf7c-4bb8-437f-ba1b-8905edda1496] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [e4844725-5d96-4500-949c-68299f246d14] - x-ms-routing-request-id: ['WESTUS2:20170823T162214Z:b5bedf7c-4bb8-437f-ba1b-8905edda1496'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [322e81ba-881f-11e7-b677-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pynewrulec575136b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b\",\r\n - \ \"etag\": \"W/\\\"52f7e914-bb5b-40c3-916f-b24be9386e98\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"New - Test security rule\",\r\n \"protocol\": \"Tcp\",\r\n \"sourcePortRange\": - \"655\",\r\n \"destinationPortRange\": \"123-3500\",\r\n \"sourceAddressPrefix\": - \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n - \ \"priority\": 400,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": - [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": - [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 16:22:14 GMT'] - ETag: [W/"52f7e914-bb5b-40c3-916f-b24be9386e98"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['815'] - x-ms-correlation-request-id: [40e089e1-1d1a-43b5-9c5d-8b38c4ce1a33] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [276bb902-e299-473d-9839-0f4535f912c0] - x-ms-routing-request-id: ['WESTUS2:20170823T162214Z:40e089e1-1d1a-43b5-9c5d-8b38c4ce1a33'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [399690b6-881f-11e7-a1ec-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pynewrulec575136b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b\",\r\n - \ \"etag\": \"W/\\\"52f7e914-bb5b-40c3-916f-b24be9386e98\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"New - Test security rule\",\r\n \"protocol\": \"Tcp\",\r\n \"sourcePortRange\": - \"655\",\r\n \"destinationPortRange\": \"123-3500\",\r\n \"sourceAddressPrefix\": - \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": \"Allow\",\r\n - \ \"priority\": 400,\r\n \"direction\": \"Outbound\",\r\n \"sourcePortRanges\": - [],\r\n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\": - [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 16:22:14 GMT'] - ETag: [W/"52f7e914-bb5b-40c3-916f-b24be9386e98"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['815'] - x-ms-correlation-request-id: [4e940f24-b14c-44cc-8c08-b9115805acf5] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [f153a930-507a-4693-aeb2-b35ff295cfda] - x-ms-routing-request-id: ['WESTUS2:20170823T162215Z:4e940f24-b14c-44cc-8c08-b9115805acf5'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [39e9c6ae-881f-11e7-aab9-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules?api-version=2017-08-01 - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pysecgrouprulec575136b\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pysecgrouprulec575136b\",\r\n - \ \"etag\": \"W/\\\"52f7e914-bb5b-40c3-916f-b24be9386e98\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": - \"Test security rule\",\r\n \"protocol\": \"Tcp\",\r\n \"sourcePortRange\": - \"655\",\r\n \"destinationPortRange\": \"123-3500\",\r\n \"sourceAddressPrefix\": - \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": - \"Allow\",\r\n \"priority\": 500,\r\n \"direction\": \"Inbound\",\r\n - \ \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n - \ \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": - []\r\n }\r\n },\r\n {\r\n \"name\": \"pynewrulec575136b\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b\",\r\n - \ \"etag\": \"W/\\\"52f7e914-bb5b-40c3-916f-b24be9386e98\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": - \"New Test security rule\",\r\n \"protocol\": \"Tcp\",\r\n \"sourcePortRange\": - \"655\",\r\n \"destinationPortRange\": \"123-3500\",\r\n \"sourceAddressPrefix\": - \"*\",\r\n \"destinationAddressPrefix\": \"*\",\r\n \"access\": - \"Allow\",\r\n \"priority\": 400,\r\n \"direction\": \"Outbound\",\r\n - \ \"sourcePortRanges\": [],\r\n \"destinationPortRanges\": [],\r\n - \ \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\": - []\r\n }\r\n }\r\n ]\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 16:22:15 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['1831'] - x-ms-correlation-request-id: [b45c6c8f-8c12-4d06-b834-1e75f2e2e8c6] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [97139eee-35e2-4ea2-80c2-cb160f0601d9] - x-ms-routing-request-id: ['WESTUS2:20170823T162216Z:b45c6c8f-8c12-4d06-b834-1e75f2e2e8c6'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [3a503094-881f-11e7-b323-ecb1d756380e] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b?api-version=2017-08-01 - response: - body: {string: ''} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5db62b3a-a408-4106-b511-cd175974f996?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Wed, 23 Aug 2017 16:22:17 GMT'] - Expires: ['-1'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/5db62b3a-a408-4106-b511-cd175974f996?api-version=2017-08-01'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [bf24d739-2de0-4ee3-8d3d-3967b89f5d71] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-ms-request-id: [5db62b3a-a408-4106-b511-cd175974f996] - x-ms-routing-request-id: ['WESTUS2:20170823T162217Z:bf24d739-2de0-4ee3-8d3d-3967b89f5d71'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [3a503094-881f-11e7-b323-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5db62b3a-a408-4106-b511-cd175974f996?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 16:22:27 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [0deb7f09-e013-4eed-8097-c25d78b79748] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [9d35371f-d345-4a99-b3e1-957e5efabbad] - x-ms-routing-request-id: ['WESTUS2:20170823T162227Z:0deb7f09-e013-4eed-8097-c25d78b79748'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [414f70ac-881f-11e7-b1bc-ecb1d756380e] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b?api-version=2017-08-01 - response: - body: {string: ''} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6c6f4a00-eba8-45c0-ad8d-859e89b2f300?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Wed, 23 Aug 2017 16:22:28 GMT'] - Expires: ['-1'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/6c6f4a00-eba8-45c0-ad8d-859e89b2f300?api-version=2017-08-01'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [6877745e-418c-49a3-a54f-625adf9f8514] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-ms-request-id: [6c6f4a00-eba8-45c0-ad8d-859e89b2f300] - x-ms-routing-request-id: ['WESTUS2:20170823T162228Z:6877745e-418c-49a3-a54f-625adf9f8514'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.14 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [414f70ac-881f-11e7-b1bc-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6c6f4a00-eba8-45c0-ad8d-859e89b2f300?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 16:22:38 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [34467623-8859-4489-b60c-0587e2f654eb] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [17725fdd-1b64-4a34-bdbe-23ad5662aa12] - x-ms-routing-request-id: ['WESTUS2:20170823T162239Z:34467623-8859-4489-b60c-0587e2f654eb'] - status: {code: 200, message: OK} -version: 1 diff --git a/azure-mgmt/tests/recordings/test_mgmt_network.test_public_ip_addresses.yaml b/azure-mgmt/tests/recordings/test_mgmt_network.test_public_ip_addresses.yaml deleted file mode 100644 index 1324361fbafc..000000000000 --- a/azure-mgmt/tests/recordings/test_mgmt_network.test_public_ip_addresses.yaml +++ /dev/null @@ -1,318 +0,0 @@ -interactions: -- request: - body: '{"tags": {"key": "value"}, "location": "westus", "properties": {"publicIPAllocationMethod": - "Dynamic"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['103'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [69a15d98-8795-11e7-a56d-ecb1d756380e] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyipname773e115f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f\",\r\n - \ \"etag\": \"W/\\\"9553f962-b285-4247-bb35-2ee394cbbf0f\\\"\",\r\n \"location\": - \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"9eee7883-c774-408a-a053-64f8203bdcc3\",\r\n - \ \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": - \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n - \ \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/023dba63-2d48-469e-be05-845e6843b5a4?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['675'] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:55:45 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [2294267c-af6b-481e-871d-002742a7741b] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - x-ms-request-id: [023dba63-2d48-469e-be05-845e6843b5a4] - x-ms-routing-request-id: ['WESTUS:20170822T235545Z:2294267c-af6b-481e-871d-002742a7741b'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [69a15d98-8795-11e7-a56d-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/023dba63-2d48-469e-be05-845e6843b5a4?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:55:49 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [d0c752a2-04cf-42ed-8954-a83ac19634ab] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [7dc286a0-5eca-478b-9a23-fed1534d695f] - x-ms-routing-request-id: ['WESTUS:20170822T235549Z:d0c752a2-04cf-42ed-8954-a83ac19634ab'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [69a15d98-8795-11e7-a56d-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyipname773e115f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f\",\r\n - \ \"etag\": \"W/\\\"1499d741-46b2-4b0b-9567-abb614c01c5b\\\"\",\r\n \"location\": - \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"9eee7883-c774-408a-a053-64f8203bdcc3\",\r\n - \ \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": - \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n - \ \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:55:49 GMT'] - ETag: [W/"1499d741-46b2-4b0b-9567-abb614c01c5b"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['676'] - x-ms-correlation-request-id: [44c29ec7-c49b-474c-8816-c23c8310f11f] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [b64d3339-6812-405b-a353-f350bf7959a6] - x-ms-routing-request-id: ['WESTUS:20170822T235549Z:44c29ec7-c49b-474c-8816-c23c8310f11f'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [6ca5a8c0-8795-11e7-a783-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyipname773e115f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f\",\r\n - \ \"etag\": \"W/\\\"1499d741-46b2-4b0b-9567-abb614c01c5b\\\"\",\r\n \"location\": - \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"9eee7883-c774-408a-a053-64f8203bdcc3\",\r\n - \ \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": - \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n - \ \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:55:50 GMT'] - ETag: [W/"1499d741-46b2-4b0b-9567-abb614c01c5b"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['676'] - x-ms-correlation-request-id: [3b9dffbb-2935-4205-a2a6-3c5695a48d96] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [5b428f35-099e-41a1-a2ad-4f350e2c0cbc] - x-ms-routing-request-id: ['WESTUS:20170822T235550Z:3b9dffbb-2935-4205-a2a6-3c5695a48d96'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [6cf9b108-8795-11e7-a508-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses?api-version=2017-08-01 - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyipname773e115f\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f\",\r\n - \ \"etag\": \"W/\\\"1499d741-46b2-4b0b-9567-abb614c01c5b\\\"\",\r\n \"location\": - \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"9eee7883-c774-408a-a053-64f8203bdcc3\",\r\n \"publicIPAddressVersion\": - \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": - 4\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n - \ \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n }\r\n ]\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:55:50 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['781'] - x-ms-correlation-request-id: [8ede2c4f-809a-4689-b52c-5fd0d31b8821] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [2b9be00a-f2b8-4767-9a69-765b943a9ba0] - x-ms-routing-request-id: ['WESTUS:20170822T235551Z:8ede2c4f-809a-4689-b52c-5fd0d31b8821'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [6d58e09a-8795-11e7-8e84-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/publicIPAddresses?api-version=2017-08-01 - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyipname773e115f\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f\",\r\n - \ \"etag\": \"W/\\\"1499d741-46b2-4b0b-9567-abb614c01c5b\\\"\",\r\n \"location\": - \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"9eee7883-c774-408a-a053-64f8203bdcc3\",\r\n \"publicIPAddressVersion\": - \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": - 4\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n - \ \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n }\r\n ]\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:55:51 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['781'] - x-ms-correlation-request-id: [13b29c51-7883-4b48-85f7-a56df5030665] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [61e51b5a-d404-4277-9de6-689e0a23ecaf] - x-ms-routing-request-id: ['WESTUS:20170822T235551Z:13b29c51-7883-4b48-85f7-a56df5030665'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [6d9bceba-8795-11e7-9f0d-ecb1d756380e] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f?api-version=2017-08-01 - response: - body: {string: ''} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f5081930-d180-47c7-94dc-de3eea0e41c2?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Tue, 22 Aug 2017 23:55:51 GMT'] - Expires: ['-1'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/f5081930-d180-47c7-94dc-de3eea0e41c2?api-version=2017-08-01'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [3967b8e6-bb0f-45d1-805f-20a3fbd04320] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - x-ms-request-id: [f5081930-d180-47c7-94dc-de3eea0e41c2] - x-ms-routing-request-id: ['WESTUS:20170822T235552Z:3967b8e6-bb0f-45d1-805f-20a3fbd04320'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [6d9bceba-8795-11e7-9f0d-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f5081930-d180-47c7-94dc-de3eea0e41c2?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:56:01 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [2574d98c-66a7-437a-82b3-040ac33b2069] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [0be9366f-771b-4895-9793-1f1454e4bd35] - x-ms-routing-request-id: ['WESTUS:20170822T235602Z:2574d98c-66a7-437a-82b3-040ac33b2069'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [742aa054-8795-11e7-8a15-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses?api-version=2017-08-01 - response: - body: {string: '{"value":[]}'} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:56:02 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Vary: [Accept-Encoding] - content-length: ['12'] - x-ms-correlation-request-id: [88a192d8-5a78-4e4b-907c-1219272eb91d] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [88a192d8-5a78-4e4b-907c-1219272eb91d] - x-ms-routing-request-id: ['WESTUS:20170822T235603Z:88a192d8-5a78-4e4b-907c-1219272eb91d'] - status: {code: 200, message: OK} -version: 1 diff --git a/azure-mgmt/tests/recordings/test_mgmt_network.test_routes.yaml b/azure-mgmt/tests/recordings/test_mgmt_network.test_routes.yaml deleted file mode 100644 index f371a200c1c9..000000000000 --- a/azure-mgmt/tests/recordings/test_mgmt_network.test_routes.yaml +++ /dev/null @@ -1,513 +0,0 @@ -interactions: -- request: - body: '{"location": "westus"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['22'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [776897a8-8795-11e7-a10b-ecb1d756380e] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyroutetableb6760c2d\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d\",\r\n - \ \"etag\": \"W/\\\"d1a3430b-c0a4-4fd7-b6b8-181ac8195e37\\\"\",\r\n \"type\": - \"Microsoft.Network/routeTables\",\r\n \"location\": \"westus\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"f29490ca-9417-47a0-97d1-d16b8acc9e6c\",\r\n - \ \"routes\": []\r\n }\r\n}"} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/839b2463-13bb-4f46-bc19-cd0dd23474c0?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['484'] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:56:08 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [d2c67cf6-c78b-438a-83fa-8744da3b663b] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] - x-ms-request-id: [839b2463-13bb-4f46-bc19-cd0dd23474c0] - x-ms-routing-request-id: ['WESTUS:20170822T235608Z:d2c67cf6-c78b-438a-83fa-8744da3b663b'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [776897a8-8795-11e7-a10b-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/839b2463-13bb-4f46-bc19-cd0dd23474c0?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:56:17 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [3162da59-27a8-4ceb-8383-2e26484352a4] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [80cec2cd-f38a-4f57-ba0e-2c145bbd43ca] - x-ms-routing-request-id: ['WESTUS:20170822T235618Z:3162da59-27a8-4ceb-8383-2e26484352a4'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [776897a8-8795-11e7-a10b-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyroutetableb6760c2d\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d\",\r\n - \ \"etag\": \"W/\\\"805b33e9-f272-4c24-9010-8bd5fde0442d\\\"\",\r\n \"type\": - \"Microsoft.Network/routeTables\",\r\n \"location\": \"westus\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"f29490ca-9417-47a0-97d1-d16b8acc9e6c\",\r\n - \ \"routes\": []\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:56:18 GMT'] - ETag: [W/"805b33e9-f272-4c24-9010-8bd5fde0442d"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['485'] - x-ms-correlation-request-id: [78ced3af-6fab-46d4-96f4-c5d30aeec2d5] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [a2b3a713-30fa-43ab-a890-96fcf6d92949] - x-ms-routing-request-id: ['WESTUS:20170822T235619Z:78ced3af-6fab-46d4-96f4-c5d30aeec2d5'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [7e34ce14-8795-11e7-9235-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyroutetableb6760c2d\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d\",\r\n - \ \"etag\": \"W/\\\"805b33e9-f272-4c24-9010-8bd5fde0442d\\\"\",\r\n \"type\": - \"Microsoft.Network/routeTables\",\r\n \"location\": \"westus\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"f29490ca-9417-47a0-97d1-d16b8acc9e6c\",\r\n - \ \"routes\": []\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:56:20 GMT'] - ETag: [W/"805b33e9-f272-4c24-9010-8bd5fde0442d"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['485'] - x-ms-correlation-request-id: [218039a4-bb72-4615-9f50-455e0b2dc0cd] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [ef67f1ac-2b7f-4cba-b472-17e14ad52a4f] - x-ms-routing-request-id: ['WESTUS:20170822T235620Z:218039a4-bb72-4615-9f50-455e0b2dc0cd'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [7eabed5c-8795-11e7-8ed2-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables?api-version=2017-08-01 - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyroutetableb6760c2d\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d\",\r\n - \ \"etag\": \"W/\\\"805b33e9-f272-4c24-9010-8bd5fde0442d\\\"\",\r\n \"type\": - \"Microsoft.Network/routeTables\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"f29490ca-9417-47a0-97d1-d16b8acc9e6c\",\r\n \"routes\": - []\r\n }\r\n }\r\n ]\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:56:19 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['558'] - x-ms-correlation-request-id: [22063477-ff55-4e72-9257-e352e68f5435] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [b2a3cb82-ba5a-4d7f-8fa3-30d837e87b7d] - x-ms-routing-request-id: ['WESTUS:20170822T235620Z:22063477-ff55-4e72-9257-e352e68f5435'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [7ee3c5b4-8795-11e7-8faf-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/routeTables?api-version=2017-08-01 - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyroutetableb6760c2d\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d\",\r\n - \ \"etag\": \"W/\\\"805b33e9-f272-4c24-9010-8bd5fde0442d\\\"\",\r\n \"type\": - \"Microsoft.Network/routeTables\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"f29490ca-9417-47a0-97d1-d16b8acc9e6c\",\r\n \"routes\": - []\r\n }\r\n }\r\n ]\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:56:20 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['558'] - x-ms-correlation-request-id: [13835a5f-d344-429c-a4c0-68110b41d28d] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [8d5084a4-c589-4152-b8e1-8416a3935eef] - x-ms-routing-request-id: ['WESTUS:20170822T235620Z:13835a5f-d344-429c-a4c0-68110b41d28d'] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"addressPrefix": "10.1.0.0/16", "nextHopType": "None"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['71'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [7f1dc25c-8795-11e7-972d-ecb1d756380e] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyrouteb6760c2d\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d\",\r\n - \ \"etag\": \"W/\\\"0af357cc-4b7d-46b2-8b11-60f55ce5f184\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.1.0.0/16\",\r\n - \ \"nextHopType\": \"None\"\r\n }\r\n}"} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/48ffb35f-af79-47dd-9f38-3f727c61fd87?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['418'] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:56:21 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [6a690459-ba61-4fd0-baca-e63bd69d67fe] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-ms-request-id: [48ffb35f-af79-47dd-9f38-3f727c61fd87] - x-ms-routing-request-id: ['WESTUS:20170822T235621Z:6a690459-ba61-4fd0-baca-e63bd69d67fe'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [7f1dc25c-8795-11e7-972d-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/48ffb35f-af79-47dd-9f38-3f727c61fd87?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:56:31 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [ad9289d4-1a66-41aa-a96b-f14e761c4d3f] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [5f5a9e13-ca1a-430e-ba59-bcb5b18d1929] - x-ms-routing-request-id: ['WESTUS:20170822T235632Z:ad9289d4-1a66-41aa-a96b-f14e761c4d3f'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [7f1dc25c-8795-11e7-972d-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyrouteb6760c2d\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d\",\r\n - \ \"etag\": \"W/\\\"6c4e0c9b-8eae-4330-8406-2e801ca9b1cd\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.1.0.0/16\",\r\n - \ \"nextHopType\": \"None\"\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:56:32 GMT'] - ETag: [W/"6c4e0c9b-8eae-4330-8406-2e801ca9b1cd"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['419'] - x-ms-correlation-request-id: [033d7f96-827a-4db6-adfd-f68cc9da0502] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [30362b7f-403c-4774-8af3-abfc213b0269] - x-ms-routing-request-id: ['WESTUS:20170822T235632Z:033d7f96-827a-4db6-adfd-f68cc9da0502'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [86272e86-8795-11e7-b31d-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyrouteb6760c2d\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d\",\r\n - \ \"etag\": \"W/\\\"6c4e0c9b-8eae-4330-8406-2e801ca9b1cd\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.1.0.0/16\",\r\n - \ \"nextHopType\": \"None\"\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:56:32 GMT'] - ETag: [W/"6c4e0c9b-8eae-4330-8406-2e801ca9b1cd"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['419'] - x-ms-correlation-request-id: [044241b4-3b08-4452-8c0f-5f4483096669] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [4bb5258e-3343-439f-9bc3-599b569f5661] - x-ms-routing-request-id: ['WESTUS:20170822T235633Z:044241b4-3b08-4452-8c0f-5f4483096669'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [86787d3a-8795-11e7-955f-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes?api-version=2017-08-01 - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyrouteb6760c2d\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d\",\r\n - \ \"etag\": \"W/\\\"6c4e0c9b-8eae-4330-8406-2e801ca9b1cd\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": - \"10.1.0.0/16\",\r\n \"nextHopType\": \"None\"\r\n }\r\n }\r\n - \ ]\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:56:33 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['484'] - x-ms-correlation-request-id: [e4ac2074-c72b-4998-b98b-54d6c01d9c59] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [149c348b-f666-4d4a-8ed7-570e86e8a474] - x-ms-routing-request-id: ['WESTUS:20170822T235633Z:e4ac2074-c72b-4998-b98b-54d6c01d9c59'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [86b46054-8795-11e7-b268-ecb1d756380e] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d?api-version=2017-08-01 - response: - body: {string: ''} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/30c25439-2e0d-4fac-9e2a-7e11c9e3d29d?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Tue, 22 Aug 2017 23:56:34 GMT'] - Expires: ['-1'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/30c25439-2e0d-4fac-9e2a-7e11c9e3d29d?api-version=2017-08-01'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [3e3da569-d7d8-4e99-8aeb-dbca24d369e3] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - x-ms-request-id: [30c25439-2e0d-4fac-9e2a-7e11c9e3d29d] - x-ms-routing-request-id: ['WESTUS:20170822T235634Z:3e3da569-d7d8-4e99-8aeb-dbca24d369e3'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [86b46054-8795-11e7-b268-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/30c25439-2e0d-4fac-9e2a-7e11c9e3d29d?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:56:44 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [ed25a1f9-4188-457d-92ac-cf064dbd7ed3] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [c3fec3f3-1f55-47ea-b319-0fe66be9dfa2] - x-ms-routing-request-id: ['WESTUS:20170822T235644Z:ed25a1f9-4188-457d-92ac-cf064dbd7ed3'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [8d799122-8795-11e7-b708-ecb1d756380e] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d?api-version=2017-08-01 - response: - body: {string: ''} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/07e3797b-8992-4f35-975b-249f3130639f?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Tue, 22 Aug 2017 23:56:44 GMT'] - Expires: ['-1'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/07e3797b-8992-4f35-975b-249f3130639f?api-version=2017-08-01'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [b79f2584-cec7-4c26-a94d-d17f34234d5a] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-ms-request-id: [07e3797b-8992-4f35-975b-249f3130639f] - x-ms-routing-request-id: ['WESTUS:20170822T235645Z:b79f2584-cec7-4c26-a94d-d17f34234d5a'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [8d799122-8795-11e7-b708-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/07e3797b-8992-4f35-975b-249f3130639f?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:56:55 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [a79a4933-87c8-436b-b45a-05d70722d1cf] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [94a25b1d-15cf-4a23-b0b7-c61c1c9b003e] - x-ms-routing-request-id: ['WESTUS:20170822T235655Z:a79a4933-87c8-436b-b45a-05d70722d1cf'] - status: {code: 200, message: OK} -version: 1 diff --git a/azure-mgmt/tests/recordings/test_mgmt_network.test_subnets.yaml b/azure-mgmt/tests/recordings/test_mgmt_network.test_subnets.yaml deleted file mode 100644 index 8700bb3c6ec5..000000000000 --- a/azure-mgmt/tests/recordings/test_mgmt_network.test_subnets.yaml +++ /dev/null @@ -1,409 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "properties": {"dhcpOptions": {"dnsServers": ["10.1.1.1", - "10.1.2.4"]}, "addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": - [{"name": "pysubnetonec2cc0c8f", "properties": {"addressPrefix": "10.0.1.0/24"}}]}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['243'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [96dfba22-8795-11e7-9327-ecb1d756380e] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pysubnetc2cc0c8f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f\",\r\n - \ \"etag\": \"W/\\\"b9540b39-5c09-4861-b065-addd6121260d\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"5ddd8835-bc04-441b-8170-0d77d0d45c3d\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": - [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": - {\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n - \ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"pysubnetonec2cc0c8f\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnetonec2cc0c8f\",\r\n - \ \"etag\": \"W/\\\"b9540b39-5c09-4861-b065-addd6121260d\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"addressPrefix\": \"10.0.1.0/24\"\r\n }\r\n }\r\n ],\r\n - \ \"virtualNetworkPeerings\": []\r\n }\r\n}"} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/64105bdd-16db-46a6-bfbb-4a62cc728e0d?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['1177'] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:01 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [7290873b-b589-4099-a442-71fc39aa1103] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-ms-request-id: [64105bdd-16db-46a6-bfbb-4a62cc728e0d] - x-ms-routing-request-id: ['WESTUS:20170822T235701Z:7290873b-b589-4099-a442-71fc39aa1103'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [96dfba22-8795-11e7-9327-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/64105bdd-16db-46a6-bfbb-4a62cc728e0d?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:04 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [335bd602-6efc-4fa1-8b92-db6f10cf0d87] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [3f4f153a-e613-4a50-afbb-3978f4125349] - x-ms-routing-request-id: ['WESTUS:20170822T235704Z:335bd602-6efc-4fa1-8b92-db6f10cf0d87'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [96dfba22-8795-11e7-9327-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pysubnetc2cc0c8f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f\",\r\n - \ \"etag\": \"W/\\\"bf064974-a49a-4c8b-ac23-9e866b078249\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"5ddd8835-bc04-441b-8170-0d77d0d45c3d\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": - [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": - {\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n - \ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"pysubnetonec2cc0c8f\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnetonec2cc0c8f\",\r\n - \ \"etag\": \"W/\\\"bf064974-a49a-4c8b-ac23-9e866b078249\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"addressPrefix\": \"10.0.1.0/24\"\r\n }\r\n }\r\n ],\r\n - \ \"virtualNetworkPeerings\": []\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:05 GMT'] - ETag: [W/"bf064974-a49a-4c8b-ac23-9e866b078249"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['1179'] - x-ms-correlation-request-id: [8aa4df81-9f23-4131-8be6-d4e35ba941d5] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [43fc531f-2597-4c45-874b-06f46d02a839] - x-ms-routing-request-id: ['WESTUS:20170822T235705Z:8aa4df81-9f23-4131-8be6-d4e35ba941d5'] - status: {code: 200, message: OK} -- request: - body: '{"name": "pysubnettwoc2cc0c8f", "properties": {"addressPrefix": "10.0.2.0/24"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['79'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [999d9380-8795-11e7-ae2b-ecb1d756380e] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pysubnettwoc2cc0c8f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f\",\r\n - \ \"etag\": \"W/\\\"c37ad642-b8d3-4228-b004-5d6bbfd8baa2\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.2.0/24\"\r\n - \ }\r\n}"} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3f228a87-69c9-4712-be65-0a2b38fb14b6?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['400'] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:06 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [2b2fcfbf-caf1-4fad-a983-67b9500dfc0a] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-ms-request-id: [3f228a87-69c9-4712-be65-0a2b38fb14b6] - x-ms-routing-request-id: ['WESTUS:20170822T235707Z:2b2fcfbf-caf1-4fad-a983-67b9500dfc0a'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [999d9380-8795-11e7-ae2b-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3f228a87-69c9-4712-be65-0a2b38fb14b6?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:09 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [854e33e6-cb5b-47e6-8a1c-8902c500c695] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [63591677-e563-400c-93c6-4d643e6bee79] - x-ms-routing-request-id: ['WESTUS:20170822T235710Z:854e33e6-cb5b-47e6-8a1c-8902c500c695'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [999d9380-8795-11e7-ae2b-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pysubnettwoc2cc0c8f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f\",\r\n - \ \"etag\": \"W/\\\"6a897647-40f1-4790-9489-83727b186836\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.2.0/24\"\r\n - \ }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:10 GMT'] - ETag: [W/"6a897647-40f1-4790-9489-83727b186836"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['401'] - x-ms-correlation-request-id: [4ac47ef5-2cd9-440d-a752-94255399c91f] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [2e8d8b8b-3200-4c93-ad6d-46ef8a48186f] - x-ms-routing-request-id: ['WESTUS:20170822T235711Z:4ac47ef5-2cd9-440d-a752-94255399c91f'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [9d0ff198-8795-11e7-a552-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pysubnetc2cc0c8f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f\",\r\n - \ \"etag\": \"W/\\\"6a897647-40f1-4790-9489-83727b186836\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"5ddd8835-bc04-441b-8170-0d77d0d45c3d\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": - [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": - {\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n - \ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"pysubnetonec2cc0c8f\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnetonec2cc0c8f\",\r\n - \ \"etag\": \"W/\\\"6a897647-40f1-4790-9489-83727b186836\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"addressPrefix\": \"10.0.1.0/24\"\r\n }\r\n },\r\n - \ {\r\n \"name\": \"pysubnettwoc2cc0c8f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f\",\r\n - \ \"etag\": \"W/\\\"6a897647-40f1-4790-9489-83727b186836\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ],\r\n - \ \"virtualNetworkPeerings\": []\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:10 GMT'] - ETag: [W/"6a897647-40f1-4790-9489-83727b186836"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['1637'] - x-ms-correlation-request-id: [3191899e-b35a-46e2-ab53-bd22c89ea493] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [ee2121c4-1c54-427c-a3ea-ad1ab0052d65] - x-ms-routing-request-id: ['WESTUS:20170822T235711Z:3191899e-b35a-46e2-ab53-bd22c89ea493'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [9d5f3780-8795-11e7-97df-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pysubnettwoc2cc0c8f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f\",\r\n - \ \"etag\": \"W/\\\"6a897647-40f1-4790-9489-83727b186836\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.2.0/24\"\r\n - \ }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:12 GMT'] - ETag: [W/"6a897647-40f1-4790-9489-83727b186836"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['401'] - x-ms-correlation-request-id: [947efd37-1c52-4007-b1b2-262ee5914d1e] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [3661a660-e8e8-4b55-ba24-a0258bb6e408] - x-ms-routing-request-id: ['WESTUS:20170822T235712Z:947efd37-1c52-4007-b1b2-262ee5914d1e'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [9dd4958c-8795-11e7-9c0e-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets?api-version=2017-08-01 - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pysubnetonec2cc0c8f\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnetonec2cc0c8f\",\r\n - \ \"etag\": \"W/\\\"6a897647-40f1-4790-9489-83727b186836\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": - \"10.0.1.0/24\"\r\n }\r\n },\r\n {\r\n \"name\": \"pysubnettwoc2cc0c8f\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f\",\r\n - \ \"etag\": \"W/\\\"6a897647-40f1-4790-9489-83727b186836\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": - \"10.0.2.0/24\"\r\n }\r\n }\r\n ]\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:12 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['902'] - x-ms-correlation-request-id: [1820f9b0-217a-4ede-8aef-697637b1fa04] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [1d34fe6f-889c-477a-9e3a-464ee6c8b266] - x-ms-routing-request-id: ['WESTUS:20170822T235712Z:1820f9b0-217a-4ede-8aef-697637b1fa04'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [9e14a446-8795-11e7-9c72-ecb1d756380e] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f?api-version=2017-08-01 - response: - body: {string: ''} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/cdf8795a-f14d-4d75-bf9c-e4c9fb4e8486?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Tue, 22 Aug 2017 23:57:13 GMT'] - Expires: ['-1'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/cdf8795a-f14d-4d75-bf9c-e4c9fb4e8486?api-version=2017-08-01'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [85c3ab6a-dbde-47b9-be28-ead7f1cdf8be] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-ms-request-id: [cdf8795a-f14d-4d75-bf9c-e4c9fb4e8486] - x-ms-routing-request-id: ['WESTUS:20170822T235713Z:85c3ab6a-dbde-47b9-be28-ead7f1cdf8be'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [9e14a446-8795-11e7-9c72-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/cdf8795a-f14d-4d75-bf9c-e4c9fb4e8486?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:23 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [43f6d646-4865-4a02-947b-b2193b760302] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [23a10896-095d-49df-a395-151c13c134fd] - x-ms-routing-request-id: ['WESTUS:20170822T235724Z:43f6d646-4865-4a02-947b-b2193b760302'] - status: {code: 200, message: OK} -version: 1 diff --git a/azure-mgmt/tests/recordings/test_mgmt_network.test_usages.yaml b/azure-mgmt/tests/recordings/test_mgmt_network.test_usages.yaml deleted file mode 100644 index f3f8100c5aac..000000000000 --- a/azure-mgmt/tests/recordings/test_mgmt_network.test_usages.yaml +++ /dev/null @@ -1,77 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [a7a4cd94-8795-11e7-acf4-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages?api-version=2017-08-01 - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"currentValue\": 1.0,\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/VirtualNetworks\",\r\n - \ \"limit\": 50.0,\r\n \"name\": {\r\n \"localizedValue\": - \"Virtual Networks\",\r\n \"value\": \"VirtualNetworks\"\r\n },\r\n - \ \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\": 0.0,\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/StaticPublicIPAddresses\",\r\n - \ \"limit\": 20.0,\r\n \"name\": {\r\n \"localizedValue\": - \"Static Public IP Addresses\",\r\n \"value\": \"StaticPublicIPAddresses\"\r\n - \ },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\": - 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/NetworkSecurityGroups\",\r\n - \ \"limit\": 100.0,\r\n \"name\": {\r\n \"localizedValue\": - \"Network Security Groups\",\r\n \"value\": \"NetworkSecurityGroups\"\r\n - \ },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\": - 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/PublicIPAddresses\",\r\n - \ \"limit\": 60.0,\r\n \"name\": {\r\n \"localizedValue\": - \"Public IP Addresses\",\r\n \"value\": \"PublicIPAddresses\"\r\n },\r\n - \ \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\": 0.0,\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/NetworkInterfaces\",\r\n - \ \"limit\": 350.0,\r\n \"name\": {\r\n \"localizedValue\": - \"Network Interfaces\",\r\n \"value\": \"NetworkInterfaces\"\r\n },\r\n - \ \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\": 0.0,\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/LoadBalancers\",\r\n - \ \"limit\": 100.0,\r\n \"name\": {\r\n \"localizedValue\": - \"Load Balancers\",\r\n \"value\": \"LoadBalancers\"\r\n },\r\n - \ \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\": 0.0,\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/ApplicationGateways\",\r\n - \ \"limit\": 50.0,\r\n \"name\": {\r\n \"localizedValue\": - \"Application Gateways\",\r\n \"value\": \"ApplicationGateways\"\r\n - \ },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\": - 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/RouteTables\",\r\n - \ \"limit\": 100.0,\r\n \"name\": {\r\n \"localizedValue\": - \"Route Tables\",\r\n \"value\": \"RouteTables\"\r\n },\r\n \"unit\": - \"Count\"\r\n },\r\n {\r\n \"currentValue\": 0.0,\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/RouteFilters\",\r\n - \ \"limit\": 1000.0,\r\n \"name\": {\r\n \"localizedValue\": - \"Route Filters\",\r\n \"value\": \"RouteFilters\"\r\n },\r\n - \ \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\": 0.0,\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/NetworkWatchers\",\r\n - \ \"limit\": 1.0,\r\n \"name\": {\r\n \"localizedValue\": - \"Network Watchers\",\r\n \"value\": \"NetworkWatchers\"\r\n },\r\n - \ \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\": 0.0,\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/PacketCaptures\",\r\n - \ \"limit\": 10.0,\r\n \"name\": {\r\n \"localizedValue\": - \"Packet Captures\",\r\n \"value\": \"PacketCaptures\"\r\n },\r\n - \ \"unit\": \"Count\"\r\n }\r\n ]\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:28 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['3741'] - x-ms-correlation-request-id: [c5ae542a-77e1-4c2a-a1aa-49e7119aef0e] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [70c67796-ec4d-4cd2-b0ee-e526381b5c37] - x-ms-routing-request-id: ['WESTUS:20170822T235729Z:c5ae542a-77e1-4c2a-a1aa-49e7119aef0e'] - status: {code: 200, message: OK} -version: 1 diff --git a/azure-mgmt/tests/recordings/test_mgmt_network.test_virtual_network_gateway_operations.yaml b/azure-mgmt/tests/recordings/test_mgmt_network.test_virtual_network_gateway_operations.yaml deleted file mode 100644 index 83d5c35d5fae..000000000000 --- a/azure-mgmt/tests/recordings/test_mgmt_network.test_virtual_network_gateway_operations.yaml +++ /dev/null @@ -1,6091 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "properties": {"addressSpace": {"addressPrefixes": - ["10.11.0.0/16", "10.12.0.0/16"]}}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['109'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [ab1be7ca-8795-11e7-81a1-ecb1d756380e] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyvirtnetb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef\",\r\n - \ \"etag\": \"W/\\\"ad2d33fc-7008-4dc9-ae6f-8c79b030fb35\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"e04a805a-cf53-4b74-826d-6e400f200f66\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": - [\r\n \"10.11.0.0/16\",\r\n \"10.12.0.0/16\"\r\n ]\r\n - \ },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\": []\r\n }\r\n}"} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/871ea95b-d336-4d90-9db4-89f68c33c6ee?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['667'] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:35 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [b6f9fbc6-83fb-488c-a685-2a4f5d483c0f] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-ms-request-id: [871ea95b-d336-4d90-9db4-89f68c33c6ee] - x-ms-routing-request-id: ['WESTUS:20170822T235735Z:b6f9fbc6-83fb-488c-a685-2a4f5d483c0f'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [ab1be7ca-8795-11e7-81a1-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/871ea95b-d336-4d90-9db4-89f68c33c6ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:38 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [3c4a0a53-0f29-4334-98ed-fcd329b6a5b4] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [e90f9f57-0d9d-4a7b-9754-a8b5a7496089] - x-ms-routing-request-id: ['WESTUS:20170822T235739Z:3c4a0a53-0f29-4334-98ed-fcd329b6a5b4'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [ab1be7ca-8795-11e7-81a1-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyvirtnetb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef\",\r\n - \ \"etag\": \"W/\\\"25d41392-5cb9-408c-bd51-5e9e45e5fad6\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"e04a805a-cf53-4b74-826d-6e400f200f66\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": - [\r\n \"10.11.0.0/16\",\r\n \"10.12.0.0/16\"\r\n ]\r\n - \ },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\": []\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:39 GMT'] - ETag: [W/"25d41392-5cb9-408c-bd51-5e9e45e5fad6"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['668'] - x-ms-correlation-request-id: [a64da93f-3cfe-4e76-bff9-1a2a98ebdfb5] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [2d68c4b0-1c46-4662-92f9-d2eb29b3e76d] - x-ms-routing-request-id: ['WESTUS2:20170822T235739Z:a64da93f-3cfe-4e76-bff9-1a2a98ebdfb5'] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"addressPrefix": "10.11.0.0/24"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['49'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [ae371ffa-8795-11e7-8def-ecb1d756380e] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetfeb4d417ef?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pysubnetfeb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetfeb4d417ef\",\r\n - \ \"etag\": \"W/\\\"38d14d65-1389-444a-9d1c-c0139980186e\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.11.0.0/24\"\r\n - \ }\r\n}"} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/af364596-b885-4930-9506-8e597c206c17?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['427'] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:40 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [e2d49257-0664-4997-98fd-b75e6cf8ea98] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - x-ms-request-id: [af364596-b885-4930-9506-8e597c206c17] - x-ms-routing-request-id: ['WESTUS2:20170822T235740Z:e2d49257-0664-4997-98fd-b75e6cf8ea98'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [ae371ffa-8795-11e7-8def-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/af364596-b885-4930-9506-8e597c206c17?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:43 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [42891750-2f7b-4085-9400-9319a06e10f8] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [2886c70f-9703-4b15-a182-c7a2909c0a1b] - x-ms-routing-request-id: ['WESTUS:20170822T235744Z:42891750-2f7b-4085-9400-9319a06e10f8'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [ae371ffa-8795-11e7-8def-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetfeb4d417ef?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pysubnetfeb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetfeb4d417ef\",\r\n - \ \"etag\": \"W/\\\"5bf80adf-243d-4f36-aa8e-765592567a87\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.11.0.0/24\"\r\n - \ }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:44 GMT'] - ETag: [W/"5bf80adf-243d-4f36-aa8e-765592567a87"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['428'] - x-ms-correlation-request-id: [66ca4516-e736-4dd5-b04a-26ea4c9f4444] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [17c46c73-9084-424a-a508-1f3cdcb72bb0] - x-ms-routing-request-id: ['WESTUS:20170822T235744Z:66ca4516-e736-4dd5-b04a-26ea4c9f4444'] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"addressPrefix": "10.12.0.0/24"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['49'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b111fd24-8795-11e7-b0dc-ecb1d756380e] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetbeb4d417ef?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pysubnetbeb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetbeb4d417ef\",\r\n - \ \"etag\": \"W/\\\"983a668e-e5c6-4322-818e-2cc680df2c55\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.12.0.0/24\"\r\n - \ }\r\n}"} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/4507943f-9ef1-4147-be74-f77b0cf2d952?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['427'] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:44 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [389a6207-107c-438b-b3f5-270a5cfe4ad5] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - x-ms-request-id: [4507943f-9ef1-4147-be74-f77b0cf2d952] - x-ms-routing-request-id: ['WESTUS:20170822T235745Z:389a6207-107c-438b-b3f5-270a5cfe4ad5'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b111fd24-8795-11e7-b0dc-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/4507943f-9ef1-4147-be74-f77b0cf2d952?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:47 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [858b06d0-89a0-4143-a59a-5bd0e26341af] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [c4ca37ae-c209-4111-9f5a-27a251cf0332] - x-ms-routing-request-id: ['WESTUS:20170822T235748Z:858b06d0-89a0-4143-a59a-5bd0e26341af'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b111fd24-8795-11e7-b0dc-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetbeb4d417ef?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pysubnetbeb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetbeb4d417ef\",\r\n - \ \"etag\": \"W/\\\"95a75eeb-cbe1-489f-ab30-acb593facd4a\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.12.0.0/24\"\r\n - \ }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:49 GMT'] - ETag: [W/"95a75eeb-cbe1-489f-ab30-acb593facd4a"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['428'] - x-ms-correlation-request-id: [47fdb4d7-8fef-45f6-8dd6-8322ec6093d1] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [fa982c81-3ba7-4988-b2f3-23d62ab2c82e] - x-ms-routing-request-id: ['WESTUS:20170822T235749Z:47fdb4d7-8fef-45f6-8dd6-8322ec6093d1'] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"addressPrefix": "10.12.255.0/27"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['51'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b3ba96d2-8795-11e7-82a4-ecb1d756380e] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/GatewaySubnet?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"GatewaySubnet\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/GatewaySubnet\",\r\n - \ \"etag\": \"W/\\\"8c28f419-b7e0-46f6-94cb-0973b2420804\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.12.255.0/27\"\r\n - \ }\r\n}"} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6d8bcd48-b4b0-45cf-9eb0-9826fb266b43?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['419'] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:49 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [3bad66ce-1af7-4626-9317-4b3f26f106c6] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-ms-request-id: [6d8bcd48-b4b0-45cf-9eb0-9826fb266b43] - x-ms-routing-request-id: ['WESTUS:20170822T235749Z:3bad66ce-1af7-4626-9317-4b3f26f106c6'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b3ba96d2-8795-11e7-82a4-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6d8bcd48-b4b0-45cf-9eb0-9826fb266b43?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:52 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [43efd6ab-7950-41be-bb18-f4454ae886c3] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [f2a97d21-09b4-4952-8c65-33792b7de6e1] - x-ms-routing-request-id: ['WESTUS:20170822T235753Z:43efd6ab-7950-41be-bb18-f4454ae886c3'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b3ba96d2-8795-11e7-82a4-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/GatewaySubnet?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"GatewaySubnet\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/GatewaySubnet\",\r\n - \ \"etag\": \"W/\\\"6ae68683-1304-4d90-9bd6-7b410e4ab3ff\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.12.255.0/27\"\r\n - \ }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:52 GMT'] - ETag: [W/"6ae68683-1304-4d90-9bd6-7b410e4ab3ff"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['420'] - x-ms-correlation-request-id: [c710211b-b9c1-487c-aa47-51c4ef42e3b9] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [709e0378-2074-4f53-bc8a-682b97c874d8] - x-ms-routing-request-id: ['WESTUS:20170822T235753Z:c710211b-b9c1-487c-aa47-51c4ef42e3b9'] - status: {code: 200, message: OK} -- request: - body: '{"tags": {"key": "value"}, "location": "westus", "properties": {"publicIPAllocationMethod": - "Dynamic"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['103'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b676f6ac-8795-11e7-9648-ecb1d756380e] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/publicIPAddresses/pyipnameb4d417ef?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyipnameb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/publicIPAddresses/pyipnameb4d417ef\",\r\n - \ \"etag\": \"W/\\\"92ce185f-d4b9-492e-9640-a6a59ae12a82\\\"\",\r\n \"location\": - \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": \"41a58d22-c797-403f-85af-e235790bcd4a\",\r\n - \ \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": - \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n - \ \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b4c0adaa-0adf-4568-a2bf-1d4e89b6e3cb?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['690'] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:53 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [7bccf5f7-910e-46e7-b5ba-1d87c203adec] - x-ms-ratelimit-remaining-subscription-writes: ['1194'] - x-ms-request-id: [b4c0adaa-0adf-4568-a2bf-1d4e89b6e3cb] - x-ms-routing-request-id: ['WESTUS:20170822T235754Z:7bccf5f7-910e-46e7-b5ba-1d87c203adec'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b676f6ac-8795-11e7-9648-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b4c0adaa-0adf-4568-a2bf-1d4e89b6e3cb?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:57 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [648ad5b8-c715-4b0b-8dee-7027a042cd3f] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [2a681e59-7647-4e31-a111-6ddcf061751e] - x-ms-routing-request-id: ['WESTUS:20170822T235757Z:648ad5b8-c715-4b0b-8dee-7027a042cd3f'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b676f6ac-8795-11e7-9648-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/publicIPAddresses/pyipnameb4d417ef?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyipnameb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/publicIPAddresses/pyipnameb4d417ef\",\r\n - \ \"etag\": \"W/\\\"d8c060d7-d13c-4097-96cf-559ddb81026d\\\"\",\r\n \"location\": - \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"41a58d22-c797-403f-85af-e235790bcd4a\",\r\n - \ \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": - \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n - \ \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:57 GMT'] - ETag: [W/"d8c060d7-d13c-4097-96cf-559ddb81026d"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['691'] - x-ms-correlation-request-id: [a54759aa-5021-4217-918e-49921bb8b8cc] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [a41b0592-2892-490c-ad26-ee6517e0689a] - x-ms-routing-request-id: ['WESTUS:20170822T235758Z:a54759aa-5021-4217-918e-49921bb8b8cc'] - status: {code: 200, message: OK} -- request: - body: '{"location": "westus", "properties": {"ipConfigurations": [{"name": "default", - "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/GatewaySubnet"}, - "privateIPAllocationMethod": "Dynamic", "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/publicIPAddresses/pyipnameb4d417ef"}}}], - "gatewayType": "VPN", "vpnType": "RouteBased", "sku": {"tier": "Standard", "name": - "Standard", "capacity": 2}, "enableBgp": false}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['732'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworkGateways/pyvngb4d417ef?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyvngb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworkGateways/pyvngb4d417ef\",\r\n - \ \"etag\": \"W/\\\"d4ef9751-4e6f-41c4-92a6-c48253192ce2\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworkGateways\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"0a42a559-aafa-45a2-865d-0fa02afc4865\",\r\n \"ipConfigurations\": [\r\n - \ {\r\n \"name\": \"default\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworkGateways/pyvngb4d417ef/ipConfigurations/default\",\r\n - \ \"etag\": \"W/\\\"d4ef9751-4e6f-41c4-92a6-c48253192ce2\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": - {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/publicIPAddresses/pyipnameb4d417ef\"\r\n - \ },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/GatewaySubnet\"\r\n - \ }\r\n }\r\n }\r\n ],\r\n \"sku\": {\r\n \"name\": - \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n - \ },\r\n \"gatewayType\": \"Vpn\",\r\n \"vpnType\": \"RouteBased\",\r\n - \ \"enableBgp\": false,\r\n \"activeActive\": false,\r\n \"vpnClientConfiguration\": - {\r\n \"vpnClientProtocols\": [],\r\n \"vpnClientRootCertificates\": - [],\r\n \"vpnClientRevokedCertificates\": []\r\n }\r\n }\r\n}"} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['1917'] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:57:58 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [344d7ad0-f353-4ee0-82d3-58507bcb4264] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-ms-request-id: [5af8721a-17fe-411d-9ed4-958116c949ee] - x-ms-routing-request-id: ['WESTUS:20170822T235758Z:344d7ad0-f353-4ee0-82d3-58507bcb4264'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:58:09 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [1966968a-af0f-4c8a-8370-21b6f872805f] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [aadf25dc-af58-4625-8ac8-703c169ac91d] - x-ms-routing-request-id: ['WESTUS:20170822T235809Z:1966968a-af0f-4c8a-8370-21b6f872805f'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:58:19 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [2d645baa-fcdc-4b97-8322-7f33550daed3] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [3bf73d24-d718-4458-ad19-54925bfb4d70] - x-ms-routing-request-id: ['WESTUS:20170822T235819Z:2d645baa-fcdc-4b97-8322-7f33550daed3'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:58:29 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [dd81e2a4-889d-4786-b1d9-5f54a4fce3d6] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [21c438de-2ed8-4eab-9c4c-70fe215255eb] - x-ms-routing-request-id: ['WESTUS:20170822T235830Z:dd81e2a4-889d-4786-b1d9-5f54a4fce3d6'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:58:40 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [45b9495f-0ea7-4810-825b-3bf03dc17ae5] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [6f188eaa-0cab-4227-acdc-7cb494d3bccf] - x-ms-routing-request-id: ['WESTUS:20170822T235840Z:45b9495f-0ea7-4810-825b-3bf03dc17ae5'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:58:50 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [6691af9a-d407-4693-8b0a-415f7923acea] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [9b5724cf-5aa7-4879-8d59-4681c9acb5ac] - x-ms-routing-request-id: ['WESTUS:20170822T235850Z:6691af9a-d407-4693-8b0a-415f7923acea'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:59:01 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [b0feccae-3527-4321-9888-4a579dd8fbda] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [6e02cfbd-f4b1-4b3b-bb34-9d66de9411c7] - x-ms-routing-request-id: ['WESTUS:20170822T235901Z:b0feccae-3527-4321-9888-4a579dd8fbda'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:59:11 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [671494a3-6843-41f7-a788-4134e7029a76] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [20936010-a037-425e-91a3-83177450ab6c] - x-ms-routing-request-id: ['WESTUS:20170822T235911Z:671494a3-6843-41f7-a788-4134e7029a76'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:59:21 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [16915ebc-5625-450c-8649-61b252b0f03d] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [30e54d85-2692-4a36-b16f-e8a891c6f384] - x-ms-routing-request-id: ['WESTUS:20170822T235922Z:16915ebc-5625-450c-8649-61b252b0f03d'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:59:31 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [21b6b234-949e-4e2e-8f68-97496df24e6b] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [85f1e509-e916-4feb-bac8-0327e086ad17] - x-ms-routing-request-id: ['WESTUS:20170822T235932Z:21b6b234-949e-4e2e-8f68-97496df24e6b'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:59:42 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [10e2e09c-2402-4b3f-a171-d77653ab207d] - x-ms-ratelimit-remaining-subscription-reads: ['14993'] - x-ms-request-id: [ac48f707-e18c-4938-bd68-d5530e837f5e] - x-ms-routing-request-id: ['WESTUS:20170822T235943Z:10e2e09c-2402-4b3f-a171-d77653ab207d'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Tue, 22 Aug 2017 23:59:52 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [60099bd1-0081-43b7-8cdd-8c0d1cbc0166] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [8e2e29c4-eb51-423a-b0f1-fb67ba60dbe5] - x-ms-routing-request-id: ['WESTUS2:20170822T235953Z:60099bd1-0081-43b7-8cdd-8c0d1cbc0166'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:00:03 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [6770f779-983a-4217-a9cc-dbc45237d608] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [74c359c3-6197-4bc7-9e52-acc7342b18f6] - x-ms-routing-request-id: ['WESTUS2:20170823T000004Z:6770f779-983a-4217-a9cc-dbc45237d608'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:00:13 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [a2ccd633-9704-4c17-871b-051bbabc3453] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [af5c642a-5b20-4fa7-baa7-654d4bfded79] - x-ms-routing-request-id: ['WESTUS2:20170823T000014Z:a2ccd633-9704-4c17-871b-051bbabc3453'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:00:25 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [ec838d3b-1f6f-492d-8d07-a3c31b61e4d7] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [9222ee08-5c25-414a-a3f5-8442824c22cf] - x-ms-routing-request-id: ['WESTUS2:20170823T000025Z:ec838d3b-1f6f-492d-8d07-a3c31b61e4d7'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:00:34 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [ef6c29bc-67bc-4fb3-8469-f999b5aec0a1] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [e4c37d02-0b0e-4458-acc6-da3432d9ad7c] - x-ms-routing-request-id: ['WESTUS2:20170823T000035Z:ef6c29bc-67bc-4fb3-8469-f999b5aec0a1'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:00:45 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [5ac54e1e-de2e-4af0-90b0-2b652765f943] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [ce1ee533-1313-4420-a2ca-def407fe2799] - x-ms-routing-request-id: ['WESTUS2:20170823T000046Z:5ac54e1e-de2e-4af0-90b0-2b652765f943'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:00:56 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [012d7083-c3e7-474d-93b6-c52e5fb52aba] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [d7353ff8-e8c5-42c9-99d9-fc914b5de9cc] - x-ms-routing-request-id: ['WESTUS2:20170823T000056Z:012d7083-c3e7-474d-93b6-c52e5fb52aba'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:01:07 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [bb6b1b00-548d-4490-b659-67b73a846713] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [cc5ca1ca-a49f-4452-9a48-4ce6c9176b21] - x-ms-routing-request-id: ['WESTUS2:20170823T000107Z:bb6b1b00-548d-4490-b659-67b73a846713'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:01:17 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [860c5773-48d9-4b36-b832-961399b9c3fc] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [c69c6dc5-e4b9-48ad-b33d-4af84042f77c] - x-ms-routing-request-id: ['WESTUS2:20170823T000118Z:860c5773-48d9-4b36-b832-961399b9c3fc'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:01:27 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [456e6371-6408-44c3-befd-fcd8c32ee7a7] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [409d8a6f-2f83-4acc-9cec-6cc148b1f1ee] - x-ms-routing-request-id: ['WESTUS2:20170823T000128Z:456e6371-6408-44c3-befd-fcd8c32ee7a7'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:01:39 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [8f99b63b-ead5-4db1-ae8a-2fb65a97d765] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [1d2aa8b8-3ac7-41d8-9546-bec0338eb91a] - x-ms-routing-request-id: ['WESTUS2:20170823T000139Z:8f99b63b-ead5-4db1-ae8a-2fb65a97d765'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:01:49 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [fcacc115-3e31-47ff-9d96-d455a9d8c963] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [8100a5a2-12e2-4fb6-b1d7-e86a4e88bbdf] - x-ms-routing-request-id: ['WESTUS2:20170823T000150Z:fcacc115-3e31-47ff-9d96-d455a9d8c963'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:01:59 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [19196a4b-1d5a-4032-837c-9d17bf9d5877] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [70ac7dc9-f10d-49a4-b6bc-c81271e87937] - x-ms-routing-request-id: ['WESTUS2:20170823T000200Z:19196a4b-1d5a-4032-837c-9d17bf9d5877'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:02:10 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [648bf3ef-911a-4bbe-bf6e-ac249b1be63b] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [22bbbe7b-920c-443f-819b-cce8fd257317] - x-ms-routing-request-id: ['WESTUS2:20170823T000211Z:648bf3ef-911a-4bbe-bf6e-ac249b1be63b'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:02:21 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [c49e08db-0e47-40ff-a8df-1dab970ea4d0] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [6a85abac-a18d-4b7f-b1d4-85aa179bcf66] - x-ms-routing-request-id: ['WESTUS2:20170823T000221Z:c49e08db-0e47-40ff-a8df-1dab970ea4d0'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:02:32 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [d63fc2c2-79a4-4ec9-93fe-93fd4988b4a5] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [1ae8df11-c0ed-4557-b56a-ff6f0079397a] - x-ms-routing-request-id: ['WESTUS2:20170823T000232Z:d63fc2c2-79a4-4ec9-93fe-93fd4988b4a5'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:02:42 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [b906e699-95ff-4c9a-ba1f-3b72a414caa4] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [8c421337-b58c-4e61-833f-777d1c14c194] - x-ms-routing-request-id: ['WESTUS2:20170823T000242Z:b906e699-95ff-4c9a-ba1f-3b72a414caa4'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:02:52 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [097fe7dc-4077-4bc2-97f9-fc8f4d5a65bf] - x-ms-ratelimit-remaining-subscription-reads: ['14992'] - x-ms-request-id: [a8fadce4-d5c5-4065-9fdf-741470733101] - x-ms-routing-request-id: ['WESTUS:20170823T000253Z:097fe7dc-4077-4bc2-97f9-fc8f4d5a65bf'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:03:03 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [8b25548b-d151-4136-8a53-091a914943a7] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [4b536336-3352-41dd-be77-f0f6d96f99f5] - x-ms-routing-request-id: ['WESTUS:20170823T000303Z:8b25548b-d151-4136-8a53-091a914943a7'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:03:13 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [fcb257f8-c3a6-4921-9df4-95d2823501c0] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [cbb1fa98-2731-43e5-bb30-49e9e8b2241e] - x-ms-routing-request-id: ['WESTUS:20170823T000314Z:fcb257f8-c3a6-4921-9df4-95d2823501c0'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:03:24 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [b76b548f-9ef5-4eeb-b814-aaca09b4e275] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [c4d7e122-714c-45a6-8e9d-db25571b0c16] - x-ms-routing-request-id: ['WESTUS:20170823T000325Z:b76b548f-9ef5-4eeb-b814-aaca09b4e275'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:03:35 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [91198112-453c-419e-8e77-98f183963ac4] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [1e4bf44c-9041-4635-a48c-6345fc6b7644] - x-ms-routing-request-id: ['WESTUS:20170823T000335Z:91198112-453c-419e-8e77-98f183963ac4'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:03:45 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [313ac1e5-2911-4bb3-ade0-515d034d8e4c] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [1e72f1bc-a8b6-4a7d-ac2b-c8b867fcf5c1] - x-ms-routing-request-id: ['WESTUS:20170823T000346Z:313ac1e5-2911-4bb3-ade0-515d034d8e4c'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:03:56 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [12f492b5-465a-4595-83ef-fa3c59a4c79f] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [07ac6419-07d4-49d8-b758-dd51f920c9d9] - x-ms-routing-request-id: ['WESTUS2:20170823T000356Z:12f492b5-465a-4595-83ef-fa3c59a4c79f'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:04:06 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [938461c9-fee8-4401-bfd0-3b6cc55681c1] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [fb2f214c-f954-4ae5-9a70-513253d32eab] - x-ms-routing-request-id: ['WESTUS2:20170823T000407Z:938461c9-fee8-4401-bfd0-3b6cc55681c1'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:04:16 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [a5758bf4-f304-43e3-ab9d-37835b64cde1] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [29c50fb6-993f-4c62-a7e2-8f29b8c716f8] - x-ms-routing-request-id: ['WESTUS2:20170823T000417Z:a5758bf4-f304-43e3-ab9d-37835b64cde1'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:04:27 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [6ce25b08-5f1c-46aa-8232-6377f9beb9f2] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [510064de-a408-4b3c-90ab-44f352da6f73] - x-ms-routing-request-id: ['WESTUS2:20170823T000428Z:6ce25b08-5f1c-46aa-8232-6377f9beb9f2'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:04:37 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [5bc496ad-ef50-4c66-a5db-dbbd28667c39] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [c82e53f9-723d-417d-a9aa-743637f3a5b1] - x-ms-routing-request-id: ['WESTUS2:20170823T000438Z:5bc496ad-ef50-4c66-a5db-dbbd28667c39'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:04:48 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [d818c3c5-b527-4659-894e-5c4a7bb8fb01] - x-ms-ratelimit-remaining-subscription-reads: ['14993'] - x-ms-request-id: [dc954952-e27e-47a2-b022-261eb570469b] - x-ms-routing-request-id: ['WESTUS:20170823T000449Z:d818c3c5-b527-4659-894e-5c4a7bb8fb01'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:04:58 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [ba53f308-a78f-459f-825c-d3794c7c9dbb] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [289e4995-caf2-4061-8c3b-f678cd218716] - x-ms-routing-request-id: ['WESTUS:20170823T000459Z:ba53f308-a78f-459f-825c-d3794c7c9dbb'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:05:10 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [613066ea-436b-4378-a7cf-feacb5dd5107] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [74cbd3ef-c439-4e00-9d61-622d6acda9c6] - x-ms-routing-request-id: ['WESTUS:20170823T000510Z:613066ea-436b-4378-a7cf-feacb5dd5107'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:05:19 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [4bfa0342-e742-4155-8025-48dc8c1a8c85] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [9ff1849b-0cf1-428c-aba2-033cc3cf18a7] - x-ms-routing-request-id: ['WESTUS:20170823T000520Z:4bfa0342-e742-4155-8025-48dc8c1a8c85'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:05:30 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [494d5672-5d68-49c5-ae27-5a4971a95628] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [1575d06e-aa8f-4b5e-bac7-e5b89d86e842] - x-ms-routing-request-id: ['WESTUS:20170823T000531Z:494d5672-5d68-49c5-ae27-5a4971a95628'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:05:41 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [b8009326-5fff-47fa-afa8-d9e403cd9deb] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [a1895ccc-f98d-47f5-b8c0-0ac17a341800] - x-ms-routing-request-id: ['WESTUS:20170823T000541Z:b8009326-5fff-47fa-afa8-d9e403cd9deb'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:05:51 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [37b9ccb8-3015-46cb-a045-c599eb1e9c2b] - x-ms-ratelimit-remaining-subscription-reads: ['14991'] - x-ms-request-id: [6ceb6cf0-b51f-4077-80bb-6d81d71ff1e3] - x-ms-routing-request-id: ['WESTUS:20170823T000552Z:37b9ccb8-3015-46cb-a045-c599eb1e9c2b'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:06:01 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [7b38b8cb-179f-4372-a9d2-b108bedddb74] - x-ms-ratelimit-remaining-subscription-reads: ['14993'] - x-ms-request-id: [6e51dcea-b564-494a-a0cf-8e89a7dcdf35] - x-ms-routing-request-id: ['WESTUS:20170823T000602Z:7b38b8cb-179f-4372-a9d2-b108bedddb74'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:06:11 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [67e2ed4e-71ea-4b55-8fe5-6dc8447da970] - x-ms-ratelimit-remaining-subscription-reads: ['14993'] - x-ms-request-id: [29095a38-55d7-4069-ac64-173b8bdeef28] - x-ms-routing-request-id: ['WESTUS:20170823T000612Z:67e2ed4e-71ea-4b55-8fe5-6dc8447da970'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:06:23 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [8e687a54-da8f-494a-8aa9-eab953c7660e] - x-ms-ratelimit-remaining-subscription-reads: ['14992'] - x-ms-request-id: [cddc40d4-2536-4424-824b-ae7e151c8469] - x-ms-routing-request-id: ['WESTUS:20170823T000623Z:8e687a54-da8f-494a-8aa9-eab953c7660e'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:06:33 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [008603d2-5a3c-48f0-8c41-2693c218e657] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [8fe726aa-a64a-43c8-a094-68617a070f73] - x-ms-routing-request-id: ['WESTUS:20170823T000633Z:008603d2-5a3c-48f0-8c41-2693c218e657'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:06:43 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [aac3be2f-26e4-4b20-bc5a-aeade14b504f] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [5b01e1ba-2e28-4eda-9201-40c223522b8b] - x-ms-routing-request-id: ['WESTUS:20170823T000644Z:aac3be2f-26e4-4b20-bc5a-aeade14b504f'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:06:53 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [ed0a2626-004c-4cda-93a3-cf74cad76a7e] - x-ms-ratelimit-remaining-subscription-reads: ['14990'] - x-ms-request-id: [d644a055-9ba0-4bd6-8335-ee8929f729fb] - x-ms-routing-request-id: ['WESTUS:20170823T000654Z:ed0a2626-004c-4cda-93a3-cf74cad76a7e'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:07:04 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [f329435c-6c74-4ea0-b361-86038ea3a0d6] - x-ms-ratelimit-remaining-subscription-reads: ['14993'] - x-ms-request-id: [1e9ff615-8822-4462-a4c6-86f39471f31e] - x-ms-routing-request-id: ['WESTUS:20170823T000705Z:f329435c-6c74-4ea0-b361-86038ea3a0d6'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:07:15 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [da66f802-b7cf-4435-9d3a-1e0a7c6214bd] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [d6bca405-dee1-4a92-b93d-8b99b1aa08cd] - x-ms-routing-request-id: ['WESTUS:20170823T000715Z:da66f802-b7cf-4435-9d3a-1e0a7c6214bd'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:07:26 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [d9cb815b-4865-4b74-ad49-11789e17bf0b] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [811684c0-e79e-49c1-a517-38422b1787c2] - x-ms-routing-request-id: ['WESTUS:20170823T000726Z:d9cb815b-4865-4b74-ad49-11789e17bf0b'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:07:36 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [9292896f-9240-4dac-9a62-7933a958893d] - x-ms-ratelimit-remaining-subscription-reads: ['14992'] - x-ms-request-id: [354c393e-7cde-4c47-8543-63fdb20a1e72] - x-ms-routing-request-id: ['WESTUS:20170823T000736Z:9292896f-9240-4dac-9a62-7933a958893d'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:07:46 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [3d4a29bb-b1c2-471a-9bf3-16f217ca8d44] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [f72fc68f-c704-479c-b31d-662f0e4b10b9] - x-ms-routing-request-id: ['WESTUS:20170823T000746Z:3d4a29bb-b1c2-471a-9bf3-16f217ca8d44'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:07:57 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [e118a204-f202-4267-9404-b66996c23a6b] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [a62f50af-0d15-4c30-a541-ae051fd9383d] - x-ms-routing-request-id: ['WESTUS:20170823T000757Z:e118a204-f202-4267-9404-b66996c23a6b'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:08:07 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [a5f13c46-ff1a-4040-a2b6-e4b00cb69cdc] - x-ms-ratelimit-remaining-subscription-reads: ['14991'] - x-ms-request-id: [5787a0b6-d133-4a7c-a956-4752236bccae] - x-ms-routing-request-id: ['WESTUS:20170823T000807Z:a5f13c46-ff1a-4040-a2b6-e4b00cb69cdc'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:08:18 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [4ec352d8-cb0d-4e9e-b3d9-6925842e0dad] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [e809eefd-1143-453c-8ce7-f6942ee58a13] - x-ms-routing-request-id: ['WESTUS:20170823T000818Z:4ec352d8-cb0d-4e9e-b3d9-6925842e0dad'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:08:28 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [32502466-64ab-49fb-ab13-acc885c9c2e3] - x-ms-ratelimit-remaining-subscription-reads: ['14992'] - x-ms-request-id: [8af9c23e-e642-425e-941c-0d7fe7fc66b4] - x-ms-routing-request-id: ['WESTUS:20170823T000828Z:32502466-64ab-49fb-ab13-acc885c9c2e3'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:08:38 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [dd2ab134-8bce-4958-b04b-60d4fe307afb] - x-ms-ratelimit-remaining-subscription-reads: ['14993'] - x-ms-request-id: [bf7b53b5-928e-444f-9c49-3fcddb2306c2] - x-ms-routing-request-id: ['WESTUS:20170823T000839Z:dd2ab134-8bce-4958-b04b-60d4fe307afb'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:08:48 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [26c8bc1d-acdc-44b6-8da3-d43486d007ed] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [9728bbe7-0049-4670-b08d-2a6852b563be] - x-ms-routing-request-id: ['WESTUS:20170823T000849Z:26c8bc1d-acdc-44b6-8da3-d43486d007ed'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:08:59 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [304a8ba9-a037-4b01-952a-2d02c9c39e72] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [e737dc20-5bfa-4c3f-bfaa-da2b2a81f822] - x-ms-routing-request-id: ['WESTUS:20170823T000900Z:304a8ba9-a037-4b01-952a-2d02c9c39e72'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:09:09 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [27714800-35b2-455a-a221-c93309de23cb] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [91303292-18cd-4267-8660-81f7efda605d] - x-ms-routing-request-id: ['WESTUS:20170823T000910Z:27714800-35b2-455a-a221-c93309de23cb'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:09:21 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [87abaa8d-16b1-4037-915b-4e9a49b78d20] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [d9ab2af2-de38-4280-a2ce-d76c9fec1b89] - x-ms-routing-request-id: ['WESTUS:20170823T000921Z:87abaa8d-16b1-4037-915b-4e9a49b78d20'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:09:31 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [f56d889f-125d-4d9d-af3d-ef3dd17e78bb] - x-ms-ratelimit-remaining-subscription-reads: ['14992'] - x-ms-request-id: [9c9779e7-f2b6-42a5-bdca-6050b29bc454] - x-ms-routing-request-id: ['WESTUS:20170823T000931Z:f56d889f-125d-4d9d-af3d-ef3dd17e78bb'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:09:41 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [c17e2406-1f4c-458d-9b88-93aff5f09fc5] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [6b5e435d-e347-4968-a4e6-5501991ead51] - x-ms-routing-request-id: ['WESTUS:20170823T000942Z:c17e2406-1f4c-458d-9b88-93aff5f09fc5'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:09:52 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [9994e1f7-e0ec-4142-a602-91fb93fe341b] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [f95b739b-fde8-40a5-a5a1-b2f58100f2f0] - x-ms-routing-request-id: ['WESTUS:20170823T000952Z:9994e1f7-e0ec-4142-a602-91fb93fe341b'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:10:02 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [2f125ec4-a42b-4bde-b2e2-cc2b5bfb27f5] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [b9a94e32-3bde-4669-adf7-7fb4a7b39896] - x-ms-routing-request-id: ['WESTUS:20170823T001003Z:2f125ec4-a42b-4bde-b2e2-cc2b5bfb27f5'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:10:13 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [cf7b0b60-b12d-4f49-a7b9-37fb98dd180d] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [2d8ab8e6-3a8d-4a1d-bb2d-e0a2fe4a1103] - x-ms-routing-request-id: ['WESTUS:20170823T001013Z:cf7b0b60-b12d-4f49-a7b9-37fb98dd180d'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:10:23 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [f10d6ed2-28ae-482d-9d01-727094671cc6] - x-ms-ratelimit-remaining-subscription-reads: ['14991'] - x-ms-request-id: [f50fa73b-d9dc-43b6-a42e-c599a62fcf76] - x-ms-routing-request-id: ['WESTUS:20170823T001024Z:f10d6ed2-28ae-482d-9d01-727094671cc6'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:10:34 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [ab878293-ab4b-4661-bd08-a4968b8457af] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [4f8e7b0e-9a3d-4e5f-bc86-0d2d1d785a17] - x-ms-routing-request-id: ['WESTUS:20170823T001034Z:ab878293-ab4b-4661-bd08-a4968b8457af'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:10:44 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [10a09877-bbc8-4ecf-8bcd-0ee8e1b65290] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [2e596be8-d5ff-4ea9-894f-216b87ba78ad] - x-ms-routing-request-id: ['WESTUS:20170823T001044Z:10a09877-bbc8-4ecf-8bcd-0ee8e1b65290'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:10:54 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [339547cd-ff25-47aa-bc78-e10ac593feed] - x-ms-ratelimit-remaining-subscription-reads: ['14989'] - x-ms-request-id: [f1501865-5aa2-4979-a1a6-bdf1e372b253] - x-ms-routing-request-id: ['WESTUS:20170823T001055Z:339547cd-ff25-47aa-bc78-e10ac593feed'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:11:09 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [fe1ce281-190e-4455-88ab-4e613ba23127] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [7b21b54c-af49-4cf5-a9de-835bb7e6a0af] - x-ms-routing-request-id: ['WESTUS2:20170823T001109Z:fe1ce281-190e-4455-88ab-4e613ba23127'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:11:19 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [5b9d60d4-ec45-4611-8329-c29cbfaa49eb] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [f70aa3b2-586c-479f-a387-dd4031e79b45] - x-ms-routing-request-id: ['WESTUS2:20170823T001120Z:5b9d60d4-ec45-4611-8329-c29cbfaa49eb'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:11:30 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [6e997ca5-dda6-4d57-b087-d87aa183ea8e] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [54f32fc9-f482-4de8-9cb3-c9827d86356a] - x-ms-routing-request-id: ['WESTUS2:20170823T001130Z:6e997ca5-dda6-4d57-b087-d87aa183ea8e'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:11:41 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [bb392bd4-27eb-4c98-a312-9f5ecaf0f9e7] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [2e47208b-f00f-4ac5-9471-5337ebca3417] - x-ms-routing-request-id: ['WESTUS2:20170823T001141Z:bb392bd4-27eb-4c98-a312-9f5ecaf0f9e7'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:11:51 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [7b232920-b4f5-4c1c-b4ea-5d4ebbdd98b6] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [7b5a6ac0-91f1-40d3-be20-3895cbe66c7e] - x-ms-routing-request-id: ['WESTUS2:20170823T001152Z:7b232920-b4f5-4c1c-b4ea-5d4ebbdd98b6'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:12:02 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [3ca2834f-4199-477b-a983-c4f8e0f15670] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [1dfe0117-211d-4901-9248-cad772f34322] - x-ms-routing-request-id: ['WESTUS2:20170823T001202Z:3ca2834f-4199-477b-a983-c4f8e0f15670'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:12:13 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [f9f7b2d1-2999-49d8-aa40-681f6d35cee3] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [4a9c4b9a-4a43-4be4-9c7e-e638114e331c] - x-ms-routing-request-id: ['WESTUS2:20170823T001213Z:f9f7b2d1-2999-49d8-aa40-681f6d35cee3'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:12:23 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [a9d3d2f4-8199-4fa9-a0cf-1d9afb08b3f7] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [2804dc84-aa84-4a6d-bb64-cc8929d17fb7] - x-ms-routing-request-id: ['WESTUS2:20170823T001223Z:a9d3d2f4-8199-4fa9-a0cf-1d9afb08b3f7'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:12:34 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [6ec248e2-a927-4efb-900b-2cf4a992fbcf] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [c858281c-b3ae-49bf-a571-e4d1d2bd8120] - x-ms-routing-request-id: ['WESTUS2:20170823T001234Z:6ec248e2-a927-4efb-900b-2cf4a992fbcf'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:12:43 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [27ccdc5c-30c6-4e9d-a4b9-f087a215c58e] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [e3858c7f-f580-4e09-8f53-b1b24ed9723e] - x-ms-routing-request-id: ['WESTUS2:20170823T001244Z:27ccdc5c-30c6-4e9d-a4b9-f087a215c58e'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:12:54 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [ea8f5ff6-74ec-4211-a877-e3a68b549107] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [3898c1f4-3f2c-44ec-bdd2-c868460f33ad] - x-ms-routing-request-id: ['WESTUS2:20170823T001255Z:ea8f5ff6-74ec-4211-a877-e3a68b549107'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:13:04 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [5a6dd921-c68e-475f-a14e-0929658546b2] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [79388067-74da-4b12-9edb-3b1a0a421f82] - x-ms-routing-request-id: ['WESTUS2:20170823T001305Z:5a6dd921-c68e-475f-a14e-0929658546b2'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:13:15 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [984ea203-bcff-45b8-8f9b-1a1bba46b66e] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [54cd26cd-43f3-4ad9-a32d-f6e28c9f9e42] - x-ms-routing-request-id: ['WESTUS2:20170823T001316Z:984ea203-bcff-45b8-8f9b-1a1bba46b66e'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:13:26 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [061e4837-1afd-4fea-88f4-40f6f0caa4a9] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [31567699-9811-46f8-8aca-4282fd7cacd1] - x-ms-routing-request-id: ['WESTUS2:20170823T001326Z:061e4837-1afd-4fea-88f4-40f6f0caa4a9'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:13:36 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [cf616104-0deb-4f76-bd5c-0edbbf1832d6] - x-ms-ratelimit-remaining-subscription-reads: ['14993'] - x-ms-request-id: [a6493fc3-d36a-4c9f-869a-3750360c9532] - x-ms-routing-request-id: ['WESTUS2:20170823T001337Z:cf616104-0deb-4f76-bd5c-0edbbf1832d6'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:13:47 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [069172fb-b7e4-455f-8996-bdfaa2a26451] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [f672ddb9-10ba-4115-869c-5d43caa4102c] - x-ms-routing-request-id: ['WESTUS2:20170823T001347Z:069172fb-b7e4-455f-8996-bdfaa2a26451'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:13:57 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [5bf55f9b-d6bb-46f3-a6cd-2d7c8557e554] - x-ms-ratelimit-remaining-subscription-reads: ['14990'] - x-ms-request-id: [382b3579-caa5-4846-8369-5e2fbab7a0cf] - x-ms-routing-request-id: ['WESTUS:20170823T001358Z:5bf55f9b-d6bb-46f3-a6cd-2d7c8557e554'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:14:08 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [5ea41800-f547-4bf0-9b84-9dae1e81b55e] - x-ms-ratelimit-remaining-subscription-reads: ['14992'] - x-ms-request-id: [40cd55f0-52e3-4505-b2d5-eab058e3496f] - x-ms-routing-request-id: ['WESTUS:20170823T001408Z:5ea41800-f547-4bf0-9b84-9dae1e81b55e'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:14:19 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [c76ba590-a32b-40bb-bcff-10cf6dbbd931] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [b558f12b-2237-4f69-8dde-05317834770d] - x-ms-routing-request-id: ['WESTUS:20170823T001419Z:c76ba590-a32b-40bb-bcff-10cf6dbbd931'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:14:29 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [009cd5bb-fbf8-4333-acf8-4aac991e9cbe] - x-ms-ratelimit-remaining-subscription-reads: ['14993'] - x-ms-request-id: [4505816b-4acb-4485-b94d-b380fe95406b] - x-ms-routing-request-id: ['WESTUS:20170823T001429Z:009cd5bb-fbf8-4333-acf8-4aac991e9cbe'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:14:39 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [757debba-7bc5-4096-8a53-eab51f5d408d] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [3e6853e3-4d7b-41f2-9e7a-50dd46e3e3de] - x-ms-routing-request-id: ['WESTUS:20170823T001440Z:757debba-7bc5-4096-8a53-eab51f5d408d'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:14:49 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [c41b9b89-9304-423c-be6c-c77b1d896caa] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [9a163e8c-c971-4ba5-bb83-c10e61e57a16] - x-ms-routing-request-id: ['WESTUS:20170823T001450Z:c41b9b89-9304-423c-be6c-c77b1d896caa'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:15:00 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [e0de6712-c14f-4b0a-967c-6a5aea38bde3] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [a4cda107-b357-456b-94ee-b22a6c862ddb] - x-ms-routing-request-id: ['WESTUS:20170823T001501Z:e0de6712-c14f-4b0a-967c-6a5aea38bde3'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:15:11 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [7128a6ff-e64d-445e-bc87-9154b8c7fdc4] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [489065fd-efff-4e2f-b0d7-cec553ce7a34] - x-ms-routing-request-id: ['WESTUS:20170823T001511Z:7128a6ff-e64d-445e-bc87-9154b8c7fdc4'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:15:22 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [83ac5cdb-a614-4a03-85e5-93e59e200f52] - x-ms-ratelimit-remaining-subscription-reads: ['14991'] - x-ms-request-id: [ad1af70c-4854-4bb4-85d0-387381a6c363] - x-ms-routing-request-id: ['WESTUS:20170823T001522Z:83ac5cdb-a614-4a03-85e5-93e59e200f52'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:15:31 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [e39adfdf-c4c4-4f02-99bc-64078832b464] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [2050f6f3-ee09-42f1-85eb-f975f633da30] - x-ms-routing-request-id: ['WESTUS:20170823T001532Z:e39adfdf-c4c4-4f02-99bc-64078832b464'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:15:42 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [cea3708c-bbd9-46fe-abc9-aa3bf2f5d240] - x-ms-ratelimit-remaining-subscription-reads: ['14993'] - x-ms-request-id: [277e9a15-0df7-486c-933b-141785e63b4a] - x-ms-routing-request-id: ['WESTUS:20170823T001543Z:cea3708c-bbd9-46fe-abc9-aa3bf2f5d240'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:15:53 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [654fba33-ef28-4d51-bdbb-53b3f6a4ac90] - x-ms-ratelimit-remaining-subscription-reads: ['14990'] - x-ms-request-id: [2a03e065-a521-4a35-b4be-a502d9916ea4] - x-ms-routing-request-id: ['WESTUS:20170823T001553Z:654fba33-ef28-4d51-bdbb-53b3f6a4ac90'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:16:03 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [620317d0-d751-4720-9abc-8400b463fe97] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [7c67023a-aa4c-4a4d-87ee-cbc8d66c6d92] - x-ms-routing-request-id: ['WESTUS2:20170823T001604Z:620317d0-d751-4720-9abc-8400b463fe97'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:16:14 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [8f395325-5abf-4ad0-8e2b-93d2cf9ed174] - x-ms-ratelimit-remaining-subscription-reads: ['14993'] - x-ms-request-id: [252f8067-f014-4c4e-9d28-6719a58ca326] - x-ms-routing-request-id: ['WESTUS2:20170823T001614Z:8f395325-5abf-4ad0-8e2b-93d2cf9ed174'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:16:25 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [3c03139f-c1a5-4906-a573-9e311d85f431] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [b53129d4-8f4d-48cf-8aef-f1b129eda86a] - x-ms-routing-request-id: ['WESTUS2:20170823T001625Z:3c03139f-c1a5-4906-a573-9e311d85f431'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:16:35 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [138ee10e-1630-4eaf-983e-7e6900e9fbe0] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [b40574ab-bde1-4d85-b6b7-6e076af07063] - x-ms-routing-request-id: ['WESTUS2:20170823T001636Z:138ee10e-1630-4eaf-983e-7e6900e9fbe0'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:16:46 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [b0b3c5c1-973e-45fa-b715-804c8e30dcd6] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [ae4306da-efc1-4e21-9162-34254ac17664] - x-ms-routing-request-id: ['WESTUS2:20170823T001646Z:b0b3c5c1-973e-45fa-b715-804c8e30dcd6'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:16:56 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [21c0ce78-7106-4a59-a9c9-fb34e1a051f6] - x-ms-ratelimit-remaining-subscription-reads: ['14992'] - x-ms-request-id: [70658be3-253e-4240-98e8-a0678f6e0eae] - x-ms-routing-request-id: ['WESTUS2:20170823T001657Z:21c0ce78-7106-4a59-a9c9-fb34e1a051f6'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:17:06 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [e2e95044-7928-4254-b0c8-76460c333402] - x-ms-ratelimit-remaining-subscription-reads: ['14993'] - x-ms-request-id: [60896a5d-3c3d-4dbf-b976-d7d1aecba019] - x-ms-routing-request-id: ['WESTUS2:20170823T001707Z:e2e95044-7928-4254-b0c8-76460c333402'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:17:17 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [0a01c342-706a-407e-b3aa-95e30edf7faa] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [6032e5e5-5890-49e0-bee1-666b950caa9e] - x-ms-routing-request-id: ['WESTUS2:20170823T001717Z:0a01c342-706a-407e-b3aa-95e30edf7faa'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:17:27 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [9182cef6-ccb7-42cc-975d-54de2045a552] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [91c8fd9b-25ff-4575-810b-e7c2ed23c475] - x-ms-routing-request-id: ['WESTUS2:20170823T001728Z:9182cef6-ccb7-42cc-975d-54de2045a552'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:17:38 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [f78bf015-0a5e-439e-a775-70919786361a] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [6d773425-844f-4534-b5d8-bdabbbcb9b86] - x-ms-routing-request-id: ['WESTUS2:20170823T001738Z:f78bf015-0a5e-439e-a775-70919786361a'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:17:49 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [b7bcb88b-588a-4a91-a29b-f210211f3be4] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [1b5557f2-13ee-40c7-864b-e9c64ec199f8] - x-ms-routing-request-id: ['WESTUS2:20170823T001749Z:b7bcb88b-588a-4a91-a29b-f210211f3be4'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:17:59 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [1ac4453e-abb6-48e2-b1d1-57d6a2e031eb] - x-ms-ratelimit-remaining-subscription-reads: ['14991'] - x-ms-request-id: [a4f4e02c-d9c3-4666-949e-5c7b4fc0431f] - x-ms-routing-request-id: ['WESTUS2:20170823T001759Z:1ac4453e-abb6-48e2-b1d1-57d6a2e031eb'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:18:10 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [17912c26-fd02-47e1-9fc8-89b3042e4cdc] - x-ms-ratelimit-remaining-subscription-reads: ['14990'] - x-ms-request-id: [da6be656-81ea-4a3e-b464-d2f5c26b2254] - x-ms-routing-request-id: ['WESTUS2:20170823T001810Z:17912c26-fd02-47e1-9fc8-89b3042e4cdc'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:18:20 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [bec49293-7639-4395-94bd-9b2a279f09a0] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [848f6db6-8c59-466a-b5b1-6a33caada0de] - x-ms-routing-request-id: ['WESTUS2:20170823T001820Z:bec49293-7639-4395-94bd-9b2a279f09a0'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:18:30 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [1ea54e1b-f6e7-4aea-9389-3246f146955f] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [cf0d99e4-0dc4-48ab-a99c-676ea63579fe] - x-ms-routing-request-id: ['WESTUS2:20170823T001831Z:1ea54e1b-f6e7-4aea-9389-3246f146955f'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:18:40 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [4f4c47ec-1761-40b2-b0b3-2c62b1b08d6d] - x-ms-ratelimit-remaining-subscription-reads: ['14992'] - x-ms-request-id: [3f8d7c03-296b-49a8-ad09-5a7a8f7e17d1] - x-ms-routing-request-id: ['WESTUS2:20170823T001841Z:4f4c47ec-1761-40b2-b0b3-2c62b1b08d6d'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:18:51 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [3cbc7e3b-334d-43e9-95b0-6a1b67f19692] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [d0012218-e730-4bda-aa3f-ab0953adfc0f] - x-ms-routing-request-id: ['WESTUS2:20170823T001852Z:3cbc7e3b-334d-43e9-95b0-6a1b67f19692'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:19:02 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [1cf4e357-05b9-4dfb-8c97-23643fab4faf] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [a74f07e9-3130-41a1-bc56-291b6ab5be95] - x-ms-routing-request-id: ['WESTUS2:20170823T001902Z:1cf4e357-05b9-4dfb-8c97-23643fab4faf'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:19:12 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [eab00ec1-a3c5-4fe0-9788-150afd20e102] - x-ms-ratelimit-remaining-subscription-reads: ['14993'] - x-ms-request-id: [2d7d9c92-05c6-4bcf-8995-53ccf44527ce] - x-ms-routing-request-id: ['WESTUS:20170823T001913Z:eab00ec1-a3c5-4fe0-9788-150afd20e102'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:19:22 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [8eefa718-4aa7-4ea0-8f67-077397f01b06] - x-ms-ratelimit-remaining-subscription-reads: ['14992'] - x-ms-request-id: [75357432-a89e-47ea-97d0-df52325cb760] - x-ms-routing-request-id: ['WESTUS:20170823T001923Z:8eefa718-4aa7-4ea0-8f67-077397f01b06'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:19:33 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [edbc2dd5-1b00-496e-b520-c9782885e6d1] - x-ms-ratelimit-remaining-subscription-reads: ['14989'] - x-ms-request-id: [6939fb72-f028-42ee-ac4d-efafef679f70] - x-ms-routing-request-id: ['WESTUS:20170823T001934Z:edbc2dd5-1b00-496e-b520-c9782885e6d1'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:19:44 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [2513ded5-9606-4c54-9af7-7a75cd3ca448] - x-ms-ratelimit-remaining-subscription-reads: ['14992'] - x-ms-request-id: [6f17caf2-2f50-4bb4-93fa-e06ee74dd11e] - x-ms-routing-request-id: ['WESTUS:20170823T001944Z:2513ded5-9606-4c54-9af7-7a75cd3ca448'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:19:58 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [090134f0-15cd-4421-81dc-35cfc1ea66fb] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [3226d02c-244f-42a0-99e3-7e3ed9ac0ea3] - x-ms-routing-request-id: ['WESTUS:20170823T001958Z:090134f0-15cd-4421-81dc-35cfc1ea66fb'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:20:08 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [154a816d-f1de-48ab-acbe-64d96883b28a] - x-ms-ratelimit-remaining-subscription-reads: ['14993'] - x-ms-request-id: [0758703f-2773-426a-9bf1-86f893802447] - x-ms-routing-request-id: ['WESTUS:20170823T002008Z:154a816d-f1de-48ab-acbe-64d96883b28a'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:20:19 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [f1fc7968-089e-43ee-b683-065f55db980a] - x-ms-ratelimit-remaining-subscription-reads: ['14993'] - x-ms-request-id: [0a4ae231-a41c-4265-81a0-a4165f50734c] - x-ms-routing-request-id: ['WESTUS2:20170823T002019Z:f1fc7968-089e-43ee-b683-065f55db980a'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:20:29 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [b1201c0f-78f0-4fe9-bd04-819080450ed5] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [307bc2b6-7b99-49a8-aa07-3a5b0f0707b1] - x-ms-routing-request-id: ['WESTUS2:20170823T002030Z:b1201c0f-78f0-4fe9-bd04-819080450ed5'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:20:39 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [d5dabbb9-4fe6-4dfc-8b5d-4bfc9307702a] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [4a404375-4c58-46d8-b01e-24c9cacb0b09] - x-ms-routing-request-id: ['WESTUS2:20170823T002040Z:d5dabbb9-4fe6-4dfc-8b5d-4bfc9307702a'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:20:50 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [d70a8cb5-cf8a-4ec2-ba67-b06fdcd793ae] - x-ms-ratelimit-remaining-subscription-reads: ['14993'] - x-ms-request-id: [c46f6f70-c8ee-40f2-9e04-6172974e8a26] - x-ms-routing-request-id: ['WESTUS2:20170823T002051Z:d70a8cb5-cf8a-4ec2-ba67-b06fdcd793ae'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:21:01 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [d21a78c1-68ba-4a78-ad68-f16b303cbc87] - x-ms-ratelimit-remaining-subscription-reads: ['14989'] - x-ms-request-id: [d9f85f4a-a8e7-44ef-97ee-199596bf8488] - x-ms-routing-request-id: ['WESTUS2:20170823T002101Z:d21a78c1-68ba-4a78-ad68-f16b303cbc87'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:21:11 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [85a5963c-6b6b-41a2-af48-7060a01c73ea] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [ef4b9474-2d59-4125-b5b8-9186242e79ca] - x-ms-routing-request-id: ['WESTUS2:20170823T002112Z:85a5963c-6b6b-41a2-af48-7060a01c73ea'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:21:22 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [956b5eea-2027-42e2-a24c-f69a729b4ca8] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [cf86e32c-691c-4f66-9c05-41ba0c009df6] - x-ms-routing-request-id: ['WESTUS2:20170823T002122Z:956b5eea-2027-42e2-a24c-f69a729b4ca8'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:21:32 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [4454960e-0586-4a24-9193-98c949bed0cd] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [38d821b4-39b5-48b1-bc67-3e5cea86bd97] - x-ms-routing-request-id: ['WESTUS2:20170823T002133Z:4454960e-0586-4a24-9193-98c949bed0cd'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:21:43 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [62b17664-661f-428f-95c8-a6e1db74b98a] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [2ddd3a48-f9a8-4639-8ff7-c5d5eb6f1aae] - x-ms-routing-request-id: ['WESTUS2:20170823T002143Z:62b17664-661f-428f-95c8-a6e1db74b98a'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:21:53 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [edf1e610-b882-4030-986d-29c1fa718115] - x-ms-ratelimit-remaining-subscription-reads: ['14992'] - x-ms-request-id: [5a8ee79e-5afe-49fb-a635-c8af9373ee18] - x-ms-routing-request-id: ['WESTUS:20170823T002154Z:edf1e610-b882-4030-986d-29c1fa718115'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:22:04 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [ef408164-c74d-4b25-997f-9d06cb084ad9] - x-ms-ratelimit-remaining-subscription-reads: ['14991'] - x-ms-request-id: [91a06d12-0eca-4066-a54f-15ef09c69023] - x-ms-routing-request-id: ['WESTUS:20170823T002204Z:ef408164-c74d-4b25-997f-9d06cb084ad9'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:22:15 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [81a5debb-159c-4a34-87e4-8a63f56f60e4] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [2f3b8504-3a18-48d2-bd2f-2ca1bd6881f7] - x-ms-routing-request-id: ['WESTUS:20170823T002215Z:81a5debb-159c-4a34-87e4-8a63f56f60e4'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:22:25 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [482c0e49-b7a2-4d86-9b61-5bd16792e8a3] - x-ms-ratelimit-remaining-subscription-reads: ['14988'] - x-ms-request-id: [051b7fb6-3241-432b-a54e-342d47582dd0] - x-ms-routing-request-id: ['WESTUS:20170823T002225Z:482c0e49-b7a2-4d86-9b61-5bd16792e8a3'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:22:39 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [bc2dd4a1-a4c3-4eda-82d1-6d4804061908] - x-ms-ratelimit-remaining-subscription-reads: ['14990'] - x-ms-request-id: [c38d9be7-d14a-4441-92e8-407c8f62f203] - x-ms-routing-request-id: ['WESTUS:20170823T002240Z:bc2dd4a1-a4c3-4eda-82d1-6d4804061908'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:22:51 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [687d66ae-d81e-4fea-91e5-abd5f6791264] - x-ms-ratelimit-remaining-subscription-reads: ['14991'] - x-ms-request-id: [df5dc8d7-4a69-4ebb-b426-8e17eaeacf2b] - x-ms-routing-request-id: ['WESTUS:20170823T002251Z:687d66ae-d81e-4fea-91e5-abd5f6791264'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:23:00 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [f96d8d4b-813f-419a-a5e3-f7a276c4713f] - x-ms-ratelimit-remaining-subscription-reads: ['14991'] - x-ms-request-id: [e11295f0-4f56-4e35-9748-49b9f89437f8] - x-ms-routing-request-id: ['WESTUS:20170823T002301Z:f96d8d4b-813f-419a-a5e3-f7a276c4713f'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:23:12 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [2c419a77-32c9-4192-82c9-4b93d5506ae6] - x-ms-ratelimit-remaining-subscription-reads: ['14991'] - x-ms-request-id: [ea93281d-9eee-4532-9ce6-83a3f50fda90] - x-ms-routing-request-id: ['WESTUS:20170823T002312Z:2c419a77-32c9-4192-82c9-4b93d5506ae6'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:23:22 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [84829cf3-d468-4878-910a-6fdb547f1e7c] - x-ms-ratelimit-remaining-subscription-reads: ['14988'] - x-ms-request-id: [7a6f2a04-c678-4d55-bd4c-c0351405d2cd] - x-ms-routing-request-id: ['WESTUS2:20170823T002322Z:84829cf3-d468-4878-910a-6fdb547f1e7c'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:23:33 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [3b939cad-8b11-476d-8b91-5485daeadd33] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [fd18946c-6e24-4b33-bdf6-1df6cfb7ac0d] - x-ms-routing-request-id: ['WESTUS2:20170823T002333Z:3b939cad-8b11-476d-8b91-5485daeadd33'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:23:43 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [453ea9ad-8f97-498e-8067-fc3f5f24d4f8] - x-ms-ratelimit-remaining-subscription-reads: ['14992'] - x-ms-request-id: [03bf3624-4c63-4ee7-9f55-f1257595531f] - x-ms-routing-request-id: ['WESTUS2:20170823T002344Z:453ea9ad-8f97-498e-8067-fc3f5f24d4f8'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:23:53 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [c8a88c64-1146-49a8-8153-88ca05f1a3db] - x-ms-ratelimit-remaining-subscription-reads: ['14993'] - x-ms-request-id: [a0d29898-adcb-4b06-b16c-e0fb2652b139] - x-ms-routing-request-id: ['WESTUS2:20170823T002354Z:c8a88c64-1146-49a8-8153-88ca05f1a3db'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:24:04 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [d19d6d89-af58-4f87-837f-3491c350cdc7] - x-ms-ratelimit-remaining-subscription-reads: ['14992'] - x-ms-request-id: [dbcb0bd4-96c8-47ff-91aa-07b27b1f1dfe] - x-ms-routing-request-id: ['WESTUS2:20170823T002405Z:d19d6d89-af58-4f87-837f-3491c350cdc7'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:24:14 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [9c17830f-8319-48d1-aeca-c810e7ffe145] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [854d994c-f0e3-48f7-9399-49057bf63179] - x-ms-routing-request-id: ['WESTUS2:20170823T002415Z:9c17830f-8319-48d1-aeca-c810e7ffe145'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:24:25 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [5ba7b53c-f29f-4b4b-83e4-3cfd49778777] - x-ms-ratelimit-remaining-subscription-reads: ['14993'] - x-ms-request-id: [07cf04f9-e095-487a-80b8-61d5720c5511] - x-ms-routing-request-id: ['WESTUS2:20170823T002426Z:5ba7b53c-f29f-4b4b-83e4-3cfd49778777'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:24:35 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [01f7bef4-ebd0-4cdf-8ddc-13df3c98ec6a] - x-ms-ratelimit-remaining-subscription-reads: ['14997'] - x-ms-request-id: [14219cfa-3acd-46a0-a177-3b745fdf2073] - x-ms-routing-request-id: ['WESTUS2:20170823T002436Z:01f7bef4-ebd0-4cdf-8ddc-13df3c98ec6a'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:24:46 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [19d42dac-74e8-4015-bcd8-8d9a74892c80] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [a8ba0ee1-4a11-4270-8ed5-b466dfa1d99e] - x-ms-routing-request-id: ['WESTUS2:20170823T002447Z:19d42dac-74e8-4015-bcd8-8d9a74892c80'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:24:57 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [ff5783b0-f05c-44b4-85dc-34155e523d1d] - x-ms-ratelimit-remaining-subscription-reads: ['14987'] - x-ms-request-id: [2274c68e-3bdc-42b1-841f-bd842a73b4d1] - x-ms-routing-request-id: ['WESTUS2:20170823T002457Z:ff5783b0-f05c-44b4-85dc-34155e523d1d'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:25:07 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [56e3f627-3e18-4bb0-975f-f8c879082cfc] - x-ms-ratelimit-remaining-subscription-reads: ['14999'] - x-ms-request-id: [d01523a0-a533-45e4-806d-c5e8805de492] - x-ms-routing-request-id: ['WESTUS2:20170823T002508Z:56e3f627-3e18-4bb0-975f-f8c879082cfc'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:25:18 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [accccc91-dc7a-4bd1-90a9-5e9ac00e1150] - x-ms-ratelimit-remaining-subscription-reads: ['14991'] - x-ms-request-id: [2c16bbe6-8059-4689-b628-8d26647e59bb] - x-ms-routing-request-id: ['WESTUS:20170823T002518Z:accccc91-dc7a-4bd1-90a9-5e9ac00e1150'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:25:29 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [beb9b28c-60d7-429a-9d1e-4f2fd5a1a25f] - x-ms-ratelimit-remaining-subscription-reads: ['14990'] - x-ms-request-id: [5edc7b01-615f-4838-b96c-bbe642a2034b] - x-ms-routing-request-id: ['WESTUS:20170823T002529Z:beb9b28c-60d7-429a-9d1e-4f2fd5a1a25f'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:25:39 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [b67dfcfd-23ac-4b86-8c90-9ed28fd7a1b7] - x-ms-ratelimit-remaining-subscription-reads: ['14987'] - x-ms-request-id: [5f58fd75-49e7-4c60-952c-4935afce5965] - x-ms-routing-request-id: ['WESTUS:20170823T002539Z:b67dfcfd-23ac-4b86-8c90-9ed28fd7a1b7'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:25:49 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [b8a5c802-88a8-4a17-be82-959c2870262d] - x-ms-ratelimit-remaining-subscription-reads: ['14993'] - x-ms-request-id: [1fd49067-7919-40dd-8609-671c80897e74] - x-ms-routing-request-id: ['WESTUS:20170823T002550Z:b8a5c802-88a8-4a17-be82-959c2870262d'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:26:00 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [507bb769-c2c5-4b7b-9782-e6384c2133b9] - x-ms-ratelimit-remaining-subscription-reads: ['14989'] - x-ms-request-id: [8b4bd6b5-0e07-42e0-8ac9-d6c945e8dd3a] - x-ms-routing-request-id: ['WESTUS:20170823T002600Z:507bb769-c2c5-4b7b-9782-e6384c2133b9'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:26:11 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [c3a98472-0deb-4885-83eb-c9c9343dc69d] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [a0467afc-4031-491e-b192-b8a05ed0ae15] - x-ms-routing-request-id: ['WESTUS:20170823T002611Z:c3a98472-0deb-4885-83eb-c9c9343dc69d'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:26:21 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [f74f8ca5-725f-4e4f-a723-a2c04875977b] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [6c4a2724-c50c-4d2f-a189-60a1abc85d18] - x-ms-routing-request-id: ['WESTUS:20170823T002622Z:f74f8ca5-725f-4e4f-a723-a2c04875977b'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:26:32 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [6fd52886-2a30-46b4-b37b-b4e7001ca2e6] - x-ms-ratelimit-remaining-subscription-reads: ['14992'] - x-ms-request-id: [d930ff1a-31e3-4875-9dd7-c5b279a8be42] - x-ms-routing-request-id: ['WESTUS2:20170823T002632Z:6fd52886-2a30-46b4-b37b-b4e7001ca2e6'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:26:43 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [9f1315aa-1548-4450-bbb2-c4875d5c7805] - x-ms-ratelimit-remaining-subscription-reads: ['14991'] - x-ms-request-id: [bd7751fa-bdf8-47b1-b49b-3549a5bcdf2a] - x-ms-routing-request-id: ['WESTUS2:20170823T002643Z:9f1315aa-1548-4450-bbb2-c4875d5c7805'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:26:53 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [7332d6ae-fbad-4ab1-a1e8-3b698ca71e9b] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [a30fa2e9-fbf5-4ce0-a5fd-37f6058e84e7] - x-ms-routing-request-id: ['WESTUS2:20170823T002653Z:7332d6ae-fbad-4ab1-a1e8-3b698ca71e9b'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:27:04 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [1672660f-3b34-484b-96c0-322f6e21295a] - x-ms-ratelimit-remaining-subscription-reads: ['14991'] - x-ms-request-id: [9d91951b-a924-4375-8714-2a6c6f6154d5] - x-ms-routing-request-id: ['WESTUS2:20170823T002704Z:1672660f-3b34-484b-96c0-322f6e21295a'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:27:13 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [c5448d60-9285-4794-8a1e-9e9178b8b72c] - x-ms-ratelimit-remaining-subscription-reads: ['14991'] - x-ms-request-id: [72b9a358-d121-4c47-8c5f-869140d81555] - x-ms-routing-request-id: ['WESTUS2:20170823T002714Z:c5448d60-9285-4794-8a1e-9e9178b8b72c'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:27:24 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [ffa63492-7ada-4596-9913-11c4a380b3c0] - x-ms-ratelimit-remaining-subscription-reads: ['14994'] - x-ms-request-id: [30f021a2-12da-4363-ab7b-6de9c3724cd1] - x-ms-routing-request-id: ['WESTUS:20170823T002725Z:ffa63492-7ada-4596-9913-11c4a380b3c0'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:27:35 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [259f0c81-a717-4791-ba60-97d4d2958cee] - x-ms-ratelimit-remaining-subscription-reads: ['14993'] - x-ms-request-id: [2a657e68-787f-44af-957e-d5901b0b10a1] - x-ms-routing-request-id: ['WESTUS:20170823T002735Z:259f0c81-a717-4791-ba60-97d4d2958cee'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:27:45 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [54457e3a-7647-42d4-b282-c7fcbfad010e] - x-ms-ratelimit-remaining-subscription-reads: ['14993'] - x-ms-request-id: [d7e17f28-1f84-442d-aa98-7237585c0f32] - x-ms-routing-request-id: ['WESTUS2:20170823T002746Z:54457e3a-7647-42d4-b282-c7fcbfad010e'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:27:56 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['30'] - x-ms-correlation-request-id: [47b4feb1-f6c7-4c34-8a1f-1b7173f84452] - x-ms-ratelimit-remaining-subscription-reads: ['14996'] - x-ms-request-id: [6f940936-92a7-4360-af93-6beae4a90c59] - x-ms-routing-request-id: ['WESTUS2:20170823T002757Z:47b4feb1-f6c7-4c34-8a1f-1b7173f84452'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/5af8721a-17fe-411d-9ed4-958116c949ee?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:28:07 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [a7f58f50-2604-4795-9b49-a645a36ccf07] - x-ms-ratelimit-remaining-subscription-reads: ['14993'] - x-ms-request-id: [d356526d-dc1c-4f51-9b00-35728ba4648f] - x-ms-routing-request-id: ['WESTUS2:20170823T002807Z:a7f58f50-2604-4795-9b49-a645a36ccf07'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [b9240acc-8795-11e7-8172-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworkGateways/pyvngb4d417ef?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyvngb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworkGateways/pyvngb4d417ef\",\r\n - \ \"etag\": \"W/\\\"5d7a6a57-2443-4ab6-87c7-5392305d007e\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworkGateways\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"0a42a559-aafa-45a2-865d-0fa02afc4865\",\r\n \"ipConfigurations\": [\r\n - \ {\r\n \"name\": \"default\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworkGateways/pyvngb4d417ef/ipConfigurations/default\",\r\n - \ \"etag\": \"W/\\\"5d7a6a57-2443-4ab6-87c7-5392305d007e\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"publicIPAddress\": - {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/publicIPAddresses/pyipnameb4d417ef\"\r\n - \ },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/GatewaySubnet\"\r\n - \ }\r\n }\r\n }\r\n ],\r\n \"sku\": {\r\n \"name\": - \"Standard\",\r\n \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n - \ },\r\n \"gatewayType\": \"Vpn\",\r\n \"vpnType\": \"RouteBased\",\r\n - \ \"enableBgp\": false,\r\n \"activeActive\": false,\r\n \"bgpSettings\": - {\r\n \"asn\": 65515,\r\n \"bgpPeeringAddress\": \"10.12.255.30\",\r\n - \ \"peerWeight\": 0\r\n }\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:28:08 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['1881'] - x-ms-correlation-request-id: [fd0c4078-c988-4ef1-a902-712ef0d57a17] - x-ms-ratelimit-remaining-subscription-reads: ['14992'] - x-ms-request-id: [1be24348-9026-4539-adfa-fa29be6babbf] - x-ms-routing-request-id: ['WESTUS2:20170823T002808Z:fd0c4078-c988-4ef1-a902-712ef0d57a17'] - status: {code: 200, message: OK} -version: 1 diff --git a/azure-mgmt/tests/recordings/test_mgmt_network.test_virtual_networks.yaml b/azure-mgmt/tests/recordings/test_mgmt_network.test_virtual_networks.yaml deleted file mode 100644 index fe2683c0e292..000000000000 --- a/azure-mgmt/tests/recordings/test_mgmt_network.test_virtual_networks.yaml +++ /dev/null @@ -1,403 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "properties": {"dhcpOptions": {"dnsServers": ["10.1.1.1", - "10.1.2.4"]}, "addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": - [{"name": "pyvnetsubnetone4725106e", "properties": {"addressPrefix": "10.0.1.0/24"}}, - {"name": "pyvnetsubnettwo4725106e", "properties": {"addressPrefix": "10.0.2.0/24"}}]}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['332'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [f4d3dd5e-8799-11e7-bf3c-ecb1d756380e] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyvnet4725106e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e\",\r\n - \ \"etag\": \"W/\\\"d59e6cff-4244-4ece-b01c-8de8c5b40968\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"df56384c-ca28-4bbd-8943-934b394decaa\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": - [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": - {\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n - \ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"pyvnetsubnetone4725106e\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnetone4725106e\",\r\n - \ \"etag\": \"W/\\\"d59e6cff-4244-4ece-b01c-8de8c5b40968\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"addressPrefix\": \"10.0.1.0/24\"\r\n }\r\n },\r\n - \ {\r\n \"name\": \"pyvnetsubnettwo4725106e\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnettwo4725106e\",\r\n - \ \"etag\": \"W/\\\"d59e6cff-4244-4ece-b01c-8de8c5b40968\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n - \ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ],\r\n - \ \"virtualNetworkPeerings\": []\r\n }\r\n}"} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c3c8def6-3f9a-4be0-a512-2a5ec05bc7ba?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['1669'] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:28:17 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [6f30d23c-a043-49d1-a8cf-edb3391c7c1c] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-ms-request-id: [c3c8def6-3f9a-4be0-a512-2a5ec05bc7ba] - x-ms-routing-request-id: ['WESTUS2:20170823T002817Z:6f30d23c-a043-49d1-a8cf-edb3391c7c1c'] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [f4d3dd5e-8799-11e7-bf3c-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c3c8def6-3f9a-4be0-a512-2a5ec05bc7ba?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:28:21 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [35a8a11d-c0bb-4184-9dd2-6d4f56c90faf] - x-ms-ratelimit-remaining-subscription-reads: ['14986'] - x-ms-request-id: [13950b5e-dbbf-428d-a02e-5ab27ec1e4d9] - x-ms-routing-request-id: ['WESTUS2:20170823T002821Z:35a8a11d-c0bb-4184-9dd2-6d4f56c90faf'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [f4d3dd5e-8799-11e7-bf3c-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyvnet4725106e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e\",\r\n - \ \"etag\": \"W/\\\"9dfa600c-994d-4995-a224-21eeab811cb6\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"df56384c-ca28-4bbd-8943-934b394decaa\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": - [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": - {\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n - \ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"pyvnetsubnetone4725106e\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnetone4725106e\",\r\n - \ \"etag\": \"W/\\\"9dfa600c-994d-4995-a224-21eeab811cb6\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"addressPrefix\": \"10.0.1.0/24\"\r\n }\r\n },\r\n - \ {\r\n \"name\": \"pyvnetsubnettwo4725106e\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnettwo4725106e\",\r\n - \ \"etag\": \"W/\\\"9dfa600c-994d-4995-a224-21eeab811cb6\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ],\r\n - \ \"virtualNetworkPeerings\": []\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:28:21 GMT'] - ETag: [W/"9dfa600c-994d-4995-a224-21eeab811cb6"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['1672'] - x-ms-correlation-request-id: [1a761850-191d-44ca-b164-fff19fb41960] - x-ms-ratelimit-remaining-subscription-reads: ['14993'] - x-ms-request-id: [f520b36b-32c2-4544-a096-faee184c2962] - x-ms-routing-request-id: ['WESTUS2:20170823T002822Z:1a761850-191d-44ca-b164-fff19fb41960'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [f83427fa-8799-11e7-8f0e-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e?api-version=2017-08-01 - response: - body: {string: "{\r\n \"name\": \"pyvnet4725106e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e\",\r\n - \ \"etag\": \"W/\\\"9dfa600c-994d-4995-a224-21eeab811cb6\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"df56384c-ca28-4bbd-8943-934b394decaa\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": - [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": - {\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n - \ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"pyvnetsubnetone4725106e\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnetone4725106e\",\r\n - \ \"etag\": \"W/\\\"9dfa600c-994d-4995-a224-21eeab811cb6\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"addressPrefix\": \"10.0.1.0/24\"\r\n }\r\n },\r\n - \ {\r\n \"name\": \"pyvnetsubnettwo4725106e\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnettwo4725106e\",\r\n - \ \"etag\": \"W/\\\"9dfa600c-994d-4995-a224-21eeab811cb6\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n ],\r\n - \ \"virtualNetworkPeerings\": []\r\n }\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:28:22 GMT'] - ETag: [W/"9dfa600c-994d-4995-a224-21eeab811cb6"] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['1672'] - x-ms-correlation-request-id: [bf4810eb-478d-4d01-8461-5a98eb621089] - x-ms-ratelimit-remaining-subscription-reads: ['14998'] - x-ms-request-id: [87089244-b8e3-4fbc-b3cd-b1d11cddafb1] - x-ms-routing-request-id: ['WESTUS2:20170823T002822Z:bf4810eb-478d-4d01-8461-5a98eb621089'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [f89c16f8-8799-11e7-8dce-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/CheckIPAddressAvailability?ipAddress=10.0.1.35&api-version=2017-08-01 - response: - body: {string: "{\r\n \"available\": true\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:28:23 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['25'] - x-ms-correlation-request-id: [611f886a-9d8d-4346-9fee-2947c97e21c1] - x-ms-ratelimit-remaining-subscription-reads: ['14990'] - x-ms-request-id: [0bd1aac0-7a93-4378-be6e-5106d77df1bb] - x-ms-routing-request-id: ['WESTUS:20170823T002823Z:611f886a-9d8d-4346-9fee-2947c97e21c1'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [f8ef26de-8799-11e7-a4b7-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks?api-version=2017-08-01 - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyvnet4725106e\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e\",\r\n - \ \"etag\": \"W/\\\"9dfa600c-994d-4995-a224-21eeab811cb6\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"df56384c-ca28-4bbd-8943-934b394decaa\",\r\n \"addressSpace\": - {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n - \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": [\r\n - \ \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n ]\r\n },\r\n - \ \"subnets\": [\r\n {\r\n \"name\": \"pyvnetsubnetone4725106e\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnetone4725106e\",\r\n - \ \"etag\": \"W/\\\"9dfa600c-994d-4995-a224-21eeab811cb6\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"addressPrefix\": \"10.0.1.0/24\"\r\n }\r\n },\r\n - \ {\r\n \"name\": \"pyvnetsubnettwo4725106e\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnettwo4725106e\",\r\n - \ \"etag\": \"W/\\\"9dfa600c-994d-4995-a224-21eeab811cb6\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n - \ ],\r\n \"virtualNetworkPeerings\": []\r\n }\r\n }\r\n - \ ]\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:28:23 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['1869'] - x-ms-correlation-request-id: [0f38ad27-6e39-4a53-8346-0bd680713aac] - x-ms-ratelimit-remaining-subscription-reads: ['14995'] - x-ms-request-id: [65a65f13-cef0-4ac9-8872-ad15eeb986ac] - x-ms-routing-request-id: ['WESTUS:20170823T002823Z:0f38ad27-6e39-4a53-8346-0bd680713aac'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [f92c5150-8799-11e7-919e-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/virtualNetworks?api-version=2017-08-01 - response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyvnet4725106e\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e\",\r\n - \ \"etag\": \"W/\\\"9dfa600c-994d-4995-a224-21eeab811cb6\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"df56384c-ca28-4bbd-8943-934b394decaa\",\r\n \"addressSpace\": - {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n - \ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": [\r\n - \ \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n ]\r\n },\r\n - \ \"subnets\": [\r\n {\r\n \"name\": \"pyvnetsubnetone4725106e\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnetone4725106e\",\r\n - \ \"etag\": \"W/\\\"9dfa600c-994d-4995-a224-21eeab811cb6\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"addressPrefix\": \"10.0.1.0/24\"\r\n }\r\n },\r\n - \ {\r\n \"name\": \"pyvnetsubnettwo4725106e\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnettwo4725106e\",\r\n - \ \"etag\": \"W/\\\"9dfa600c-994d-4995-a224-21eeab811cb6\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"addressPrefix\": \"10.0.2.0/24\"\r\n }\r\n }\r\n - \ ],\r\n \"virtualNetworkPeerings\": []\r\n }\r\n },\r\n - \ {\r\n \"name\": \"pyvirtnetb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef\",\r\n - \ \"etag\": \"W/\\\"d63c9fec-813b-4690-af66-1de69b05b8b7\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"e04a805a-cf53-4b74-826d-6e400f200f66\",\r\n \"addressSpace\": - {\r\n \"addressPrefixes\": [\r\n \"10.11.0.0/16\",\r\n - \ \"10.12.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": - [\r\n {\r\n \"name\": \"pysubnetfeb4d417ef\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetfeb4d417ef\",\r\n - \ \"etag\": \"W/\\\"d63c9fec-813b-4690-af66-1de69b05b8b7\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"addressPrefix\": \"10.11.0.0/24\"\r\n }\r\n },\r\n - \ {\r\n \"name\": \"pysubnetbeb4d417ef\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetbeb4d417ef\",\r\n - \ \"etag\": \"W/\\\"d63c9fec-813b-4690-af66-1de69b05b8b7\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"addressPrefix\": \"10.12.0.0/24\"\r\n }\r\n },\r\n - \ {\r\n \"name\": \"GatewaySubnet\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/GatewaySubnet\",\r\n - \ \"etag\": \"W/\\\"d63c9fec-813b-4690-af66-1de69b05b8b7\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"addressPrefix\": \"10.12.255.0/27\",\r\n \"ipConfigurations\": - [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworkGateways/pyvngb4d417ef/ipConfigurations/default\"\r\n - \ }\r\n ]\r\n }\r\n }\r\n ],\r\n - \ \"virtualNetworkPeerings\": []\r\n }\r\n }\r\n ]\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:28:23 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['4523'] - x-ms-correlation-request-id: [8fbe00e2-c11f-46ae-ba8f-0d3755bf7b7e] - x-ms-ratelimit-remaining-subscription-reads: ['14989'] - x-ms-request-id: [03562c86-9cb4-4e4c-88d2-a9669c100000] - x-ms-routing-request-id: ['WESTUS:20170823T002824Z:8fbe00e2-c11f-46ae-ba8f-0d3755bf7b7e'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [f98265fe-8799-11e7-ad54-ecb1d756380e] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e?api-version=2017-08-01 - response: - body: {string: ''} - headers: - Azure-AsyncOperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/00978ab0-4d7f-479e-bda3-97065ef00321?api-version=2017-08-01'] - Cache-Control: [no-cache] - Content-Length: ['0'] - Date: ['Wed, 23 Aug 2017 00:28:24 GMT'] - Expires: ['-1'] - Location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/00978ab0-4d7f-479e-bda3-97065ef00321?api-version=2017-08-01'] - Pragma: [no-cache] - Retry-After: ['0'] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [685df630-5df3-4e73-b5bc-9a2fdbca6016] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - x-ms-request-id: [00978ab0-4d7f-479e-bda3-97065ef00321] - x-ms-routing-request-id: ['WESTUS:20170823T002824Z:685df630-5df3-4e73-b5bc-9a2fdbca6016'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.15063-SP0) requests/2.18.1 msrest/0.4.13 - msrest_azure/0.4.11 networkmanagementclient/1.4.0a1 Azure-SDK-For-Python] - accept-language: [en-US] - x-ms-client-request-id: [f98265fe-8799-11e7-ad54-ecb1d756380e] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/00978ab0-4d7f-479e-bda3-97065ef00321?api-version=2017-08-01 - response: - body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} - headers: - Cache-Control: [no-cache] - Content-Type: [application/json; charset=utf-8] - Date: ['Wed, 23 Aug 2017 00:28:34 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - Transfer-Encoding: [chunked] - Vary: [Accept-Encoding] - content-length: ['29'] - x-ms-correlation-request-id: [2965e17c-a064-41ce-8323-a39081a69633] - x-ms-ratelimit-remaining-subscription-reads: ['14992'] - x-ms-request-id: [a1560121-3284-4c61-a1af-493912574a33] - x-ms-routing-request-id: ['WESTUS:20170823T002835Z:2965e17c-a064-41ce-8323-a39081a69633'] - status: {code: 200, message: OK} -version: 1 diff --git a/swagger_to_sdk_config.json b/swagger_to_sdk_config.json index a7776d9106ab..c6154736c28e 100644 --- a/swagger_to_sdk_config.json +++ b/swagger_to_sdk_config.json @@ -333,6 +333,16 @@ "build_dir": "azure-mgmt-network/azure/mgmt/network/v2017_08_01", "generated_relative_base_directory": "python/azure/mgmt/network/v2017_08_01" }, + "network.2017-09-01": { + "markdown": "specification/network/resource-manager/readme.md", + "autorest_options": { + "tag": "package-2017-09", + "namespace": "azure.mgmt.network.v2017_09_01" + }, + "output_dir": "azure-mgmt-network/azure/mgmt/network/v2017_09_01", + "build_dir": "azure-mgmt-network/azure/mgmt/network/v2017_09_01", + "generated_relative_base_directory": "python/azure/mgmt/network/v2017_09_01" + }, "notificationhubs": { "autorest_options": { "input-file": "specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/2017-04-01/notificationhubs.json",