diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/__init__.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/__init__.py old mode 100755 new mode 100644 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 309175fe5636..600a50278832 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.1.0", "date": "2017-06-27T17:38:55Z", "version": ""} \ No newline at end of file +{"autorest": "1.2.2", "date": "2017-08-16T18:24:35Z", "version": ""} \ No newline at end of file diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/__init__.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/__init__.py old mode 100755 new mode 100644 index f341e9d1072d..63c6b0129a43 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/__init__.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/__init__.py @@ -39,17 +39,31 @@ from .application_gateway import ApplicationGateway from .resource import Resource from .dns_name_availability_result import DnsNameAvailabilityResult +from .express_route_circuit_authorization import ExpressRouteCircuitAuthorization +from .express_route_circuit_peering_config import ExpressRouteCircuitPeeringConfig +from .express_route_circuit_stats import ExpressRouteCircuitStats +from .express_route_circuit_peering import ExpressRouteCircuitPeering +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_circuit_routes_table import ExpressRouteCircuitRoutesTable +from .express_route_service_provider_bandwidths_offered import ExpressRouteServiceProviderBandwidthsOffered +from .express_route_service_provider import ExpressRouteServiceProvider 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 .usage_name import UsageName +from .usage import Usage from .address_space import AddressSpace from .dhcp_options import DhcpOptions from .virtual_network import VirtualNetwork -from .usage_name import UsageName -from .usage import Usage from .virtual_network_gateway_ip_configuration import VirtualNetworkGatewayIPConfiguration from .virtual_network_gateway_sku import VirtualNetworkGatewaySku from .vpn_client_root_certificate import VpnClientRootCertificate @@ -63,34 +77,7 @@ from .connection_shared_key_result import ConnectionSharedKeyResult from .connection_reset_shared_key import ConnectionResetSharedKey from .connection_shared_key import ConnectionSharedKey -from .express_route_circuit_authorization import ExpressRouteCircuitAuthorization -from .express_route_circuit_peering_config import ExpressRouteCircuitPeeringConfig -from .express_route_circuit_stats import ExpressRouteCircuitStats -from .express_route_circuit_peering import ExpressRouteCircuitPeering -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_circuit_routes_table import ExpressRouteCircuitRoutesTable -from .express_route_service_provider_bandwidths_offered import ExpressRouteServiceProviderBandwidthsOffered -from .express_route_service_provider import ExpressRouteServiceProvider -from .error_details import ErrorDetails -from .error import Error -from .azure_async_operation_result import AzureAsyncOperationResult from .application_gateway_paged import ApplicationGatewayPaged -from .route_table_paged import RouteTablePaged -from .route_paged import RoutePaged -from .public_ip_address_paged import PublicIPAddressPaged -from .network_security_group_paged import NetworkSecurityGroupPaged -from .security_rule_paged import SecurityRulePaged -from .load_balancer_paged import LoadBalancerPaged -from .virtual_network_paged import VirtualNetworkPaged -from .subnet_paged import SubnetPaged -from .network_interface_paged import NetworkInterfacePaged -from .usage_paged import UsagePaged -from .virtual_network_gateway_paged import VirtualNetworkGatewayPaged -from .virtual_network_gateway_connection_paged import VirtualNetworkGatewayConnectionPaged -from .local_network_gateway_paged import LocalNetworkGatewayPaged from .express_route_circuit_authorization_paged import ExpressRouteCircuitAuthorizationPaged from .express_route_circuit_peering_paged import ExpressRouteCircuitPeeringPaged from .express_route_circuit_arp_table_paged import ExpressRouteCircuitArpTablePaged @@ -98,6 +85,19 @@ from .express_route_circuit_stats_paged import ExpressRouteCircuitStatsPaged from .express_route_circuit_paged import ExpressRouteCircuitPaged from .express_route_service_provider_paged import ExpressRouteServiceProviderPaged +from .load_balancer_paged import LoadBalancerPaged +from .network_interface_paged import NetworkInterfacePaged +from .network_security_group_paged import NetworkSecurityGroupPaged +from .security_rule_paged import SecurityRulePaged +from .public_ip_address_paged import PublicIPAddressPaged +from .route_table_paged import RouteTablePaged +from .route_paged import RoutePaged +from .usage_paged import UsagePaged +from .virtual_network_paged import VirtualNetworkPaged +from .subnet_paged import SubnetPaged +from .virtual_network_gateway_paged import VirtualNetworkGatewayPaged +from .virtual_network_gateway_connection_paged import VirtualNetworkGatewayConnectionPaged +from .local_network_gateway_paged import LocalNetworkGatewayPaged from .network_management_client_enums import ( ApplicationGatewaySkuName, ApplicationGatewayTier, @@ -111,8 +111,16 @@ ApplicationGatewayCookieBasedAffinity, ApplicationGatewayRequestRoutingRuleType, ApplicationGatewayOperationalState, + AuthorizationUseStatus, + ExpressRouteCircuitPeeringAdvertisedPublicPrefixState, + ExpressRouteCircuitPeeringType, + ExpressRouteCircuitPeeringState, + ExpressRouteCircuitSkuTier, + ExpressRouteCircuitSkuFamily, + ServiceProviderProvisioningState, LoadDistribution, ProbeProtocol, + NetworkOperationStatus, VirtualNetworkGatewayType, VpnType, VirtualNetworkGatewaySkuName, @@ -120,14 +128,6 @@ ProcessorArchitecture, VirtualNetworkGatewayConnectionType, VirtualNetworkGatewayConnectionStatus, - AuthorizationUseStatus, - ExpressRouteCircuitPeeringAdvertisedPublicPrefixState, - ExpressRouteCircuitPeeringType, - ExpressRouteCircuitPeeringState, - ExpressRouteCircuitSkuTier, - ExpressRouteCircuitSkuFamily, - ServiceProviderProvisioningState, - NetworkOperationStatus, ) __all__ = [ @@ -161,17 +161,31 @@ 'ApplicationGateway', 'Resource', 'DnsNameAvailabilityResult', + 'ExpressRouteCircuitAuthorization', + 'ExpressRouteCircuitPeeringConfig', + 'ExpressRouteCircuitStats', + 'ExpressRouteCircuitPeering', + 'ExpressRouteCircuitSku', + 'ExpressRouteCircuitServiceProviderProperties', + 'ExpressRouteCircuit', + 'ExpressRouteCircuitArpTable', + 'ExpressRouteCircuitRoutesTable', + 'ExpressRouteServiceProviderBandwidthsOffered', + 'ExpressRouteServiceProvider', 'FrontendIPConfiguration', 'LoadBalancingRule', 'Probe', 'InboundNatPool', 'OutboundNatRule', 'LoadBalancer', + 'ErrorDetails', + 'Error', + 'AzureAsyncOperationResult', + 'UsageName', + 'Usage', 'AddressSpace', 'DhcpOptions', 'VirtualNetwork', - 'UsageName', - 'Usage', 'VirtualNetworkGatewayIPConfiguration', 'VirtualNetworkGatewaySku', 'VpnClientRootCertificate', @@ -185,34 +199,7 @@ 'ConnectionSharedKeyResult', 'ConnectionResetSharedKey', 'ConnectionSharedKey', - 'ExpressRouteCircuitAuthorization', - 'ExpressRouteCircuitPeeringConfig', - 'ExpressRouteCircuitStats', - 'ExpressRouteCircuitPeering', - 'ExpressRouteCircuitSku', - 'ExpressRouteCircuitServiceProviderProperties', - 'ExpressRouteCircuit', - 'ExpressRouteCircuitArpTable', - 'ExpressRouteCircuitRoutesTable', - 'ExpressRouteServiceProviderBandwidthsOffered', - 'ExpressRouteServiceProvider', - 'ErrorDetails', - 'Error', - 'AzureAsyncOperationResult', 'ApplicationGatewayPaged', - 'RouteTablePaged', - 'RoutePaged', - 'PublicIPAddressPaged', - 'NetworkSecurityGroupPaged', - 'SecurityRulePaged', - 'LoadBalancerPaged', - 'VirtualNetworkPaged', - 'SubnetPaged', - 'NetworkInterfacePaged', - 'UsagePaged', - 'VirtualNetworkGatewayPaged', - 'VirtualNetworkGatewayConnectionPaged', - 'LocalNetworkGatewayPaged', 'ExpressRouteCircuitAuthorizationPaged', 'ExpressRouteCircuitPeeringPaged', 'ExpressRouteCircuitArpTablePaged', @@ -220,6 +207,19 @@ 'ExpressRouteCircuitStatsPaged', 'ExpressRouteCircuitPaged', 'ExpressRouteServiceProviderPaged', + 'LoadBalancerPaged', + 'NetworkInterfacePaged', + 'NetworkSecurityGroupPaged', + 'SecurityRulePaged', + 'PublicIPAddressPaged', + 'RouteTablePaged', + 'RoutePaged', + 'UsagePaged', + 'VirtualNetworkPaged', + 'SubnetPaged', + 'VirtualNetworkGatewayPaged', + 'VirtualNetworkGatewayConnectionPaged', + 'LocalNetworkGatewayPaged', 'ApplicationGatewaySkuName', 'ApplicationGatewayTier', 'IPAllocationMethod', @@ -232,8 +232,16 @@ 'ApplicationGatewayCookieBasedAffinity', 'ApplicationGatewayRequestRoutingRuleType', 'ApplicationGatewayOperationalState', + 'AuthorizationUseStatus', + 'ExpressRouteCircuitPeeringAdvertisedPublicPrefixState', + 'ExpressRouteCircuitPeeringType', + 'ExpressRouteCircuitPeeringState', + 'ExpressRouteCircuitSkuTier', + 'ExpressRouteCircuitSkuFamily', + 'ServiceProviderProvisioningState', 'LoadDistribution', 'ProbeProtocol', + 'NetworkOperationStatus', 'VirtualNetworkGatewayType', 'VpnType', 'VirtualNetworkGatewaySkuName', @@ -241,12 +249,4 @@ 'ProcessorArchitecture', 'VirtualNetworkGatewayConnectionType', 'VirtualNetworkGatewayConnectionStatus', - 'AuthorizationUseStatus', - 'ExpressRouteCircuitPeeringAdvertisedPublicPrefixState', - 'ExpressRouteCircuitPeeringType', - 'ExpressRouteCircuitPeeringState', - 'ExpressRouteCircuitSkuTier', - 'ExpressRouteCircuitSkuFamily', - 'ServiceProviderProvisioningState', - 'NetworkOperationStatus', ] diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/address_space.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/address_space.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_backend_address.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_backend_address.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_backend_address_pool.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_backend_address_pool.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_backend_http_settings.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_backend_http_settings.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_frontend_ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_frontend_ip_configuration.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_frontend_port.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_frontend_port.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_http_listener.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_http_listener.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_ip_configuration.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_paged.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_paged.py old mode 100755 new mode 100644 index 5dc094091ccc..c6cfd3c8e44a --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_paged.py @@ -14,7 +14,7 @@ class ApplicationGatewayPaged(Paged): """ - A paging container for iterating over a list of ApplicationGateway object + A paging container for iterating over a list of :class:`ApplicationGateway ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_path_rule.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_path_rule.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_probe.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_probe.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_request_routing_rule.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_request_routing_rule.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_sku.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_sku.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_ssl_certificate.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_ssl_certificate.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_url_path_map.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/application_gateway_url_path_map.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/azure_async_operation_result.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/azure_async_operation_result.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/backend_address_pool.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/backend_address_pool.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/bgp_settings.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/bgp_settings.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/connection_reset_shared_key.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/connection_reset_shared_key.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/connection_shared_key.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/connection_shared_key.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/connection_shared_key_result.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/connection_shared_key_result.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/dhcp_options.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/dhcp_options.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/dns_name_availability_result.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/dns_name_availability_result.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/error.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/error.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/error_details.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/error_details.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_arp_table.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_arp_table.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_arp_table_paged.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_arp_table_paged.py old mode 100755 new mode 100644 index 3c51afcfd1fa..d2cb05f0cb54 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_arp_table_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_arp_table_paged.py @@ -14,7 +14,7 @@ class ExpressRouteCircuitArpTablePaged(Paged): """ - A paging container for iterating over a list of ExpressRouteCircuitArpTable object + A paging container for iterating over a list of :class:`ExpressRouteCircuitArpTable ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_authorization.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_authorization.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_authorization_paged.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_authorization_paged.py old mode 100755 new mode 100644 index 9e25d3d46f5d..7ae52784d075 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_authorization_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_authorization_paged.py @@ -14,7 +14,7 @@ class ExpressRouteCircuitAuthorizationPaged(Paged): """ - A paging container for iterating over a list of ExpressRouteCircuitAuthorization object + A paging container for iterating over a list of :class:`ExpressRouteCircuitAuthorization ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_paged.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_paged.py old mode 100755 new mode 100644 index da73ad48e420..f38b483f658d --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_paged.py @@ -14,7 +14,7 @@ class ExpressRouteCircuitPaged(Paged): """ - A paging container for iterating over a list of ExpressRouteCircuit object + A paging container for iterating over a list of :class:`ExpressRouteCircuit ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_peering.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_peering.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_peering_config.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_peering_config.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_peering_paged.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_peering_paged.py old mode 100755 new mode 100644 index 58f59ae81a4b..37ee07cd9b37 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_peering_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_peering_paged.py @@ -14,7 +14,7 @@ class ExpressRouteCircuitPeeringPaged(Paged): """ - A paging container for iterating over a list of ExpressRouteCircuitPeering object + A paging container for iterating over a list of :class:`ExpressRouteCircuitPeering ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_routes_table.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_routes_table.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_routes_table_paged.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_routes_table_paged.py old mode 100755 new mode 100644 index be8e34674cc4..754311abb2db --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_routes_table_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_routes_table_paged.py @@ -14,7 +14,7 @@ class ExpressRouteCircuitRoutesTablePaged(Paged): """ - A paging container for iterating over a list of ExpressRouteCircuitRoutesTable object + A paging container for iterating over a list of :class:`ExpressRouteCircuitRoutesTable ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_service_provider_properties.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_service_provider_properties.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_sku.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_sku.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_stats.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_stats.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_stats_paged.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_stats_paged.py old mode 100755 new mode 100644 index 8dd6fbe4577b..0c07d69fa992 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_stats_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_circuit_stats_paged.py @@ -14,7 +14,7 @@ class ExpressRouteCircuitStatsPaged(Paged): """ - A paging container for iterating over a list of ExpressRouteCircuitStats object + A paging container for iterating over a list of :class:`ExpressRouteCircuitStats ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_service_provider.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_service_provider.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_service_provider_bandwidths_offered.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_service_provider_bandwidths_offered.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_service_provider_paged.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_service_provider_paged.py old mode 100755 new mode 100644 index 5436d3b57bff..12b2afdec8d4 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_service_provider_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/express_route_service_provider_paged.py @@ -14,7 +14,7 @@ class ExpressRouteServiceProviderPaged(Paged): """ - A paging container for iterating over a list of ExpressRouteServiceProvider object + A paging container for iterating over a list of :class:`ExpressRouteServiceProvider ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/frontend_ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/frontend_ip_configuration.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/inbound_nat_pool.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/inbound_nat_pool.py old mode 100755 new mode 100644 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 old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/ip_configuration.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/load_balancer.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/load_balancer.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/load_balancer_paged.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/load_balancer_paged.py old mode 100755 new mode 100644 index d370672335d8..55c50bb5b54b --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/load_balancer_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/load_balancer_paged.py @@ -14,7 +14,7 @@ class LoadBalancerPaged(Paged): """ - A paging container for iterating over a list of LoadBalancer object + A paging container for iterating over a list of :class:`LoadBalancer ` object """ _attribute_map = { 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 old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/local_network_gateway.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/local_network_gateway.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/local_network_gateway_paged.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/local_network_gateway_paged.py old mode 100755 new mode 100644 index 084cabd54e92..a7c97d3e302c --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/local_network_gateway_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/local_network_gateway_paged.py @@ -14,7 +14,7 @@ class LocalNetworkGatewayPaged(Paged): """ - A paging container for iterating over a list of LocalNetworkGateway object + A paging container for iterating over a list of :class:`LocalNetworkGateway ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/network_interface.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/network_interface.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/network_interface_dns_settings.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/network_interface_dns_settings.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/network_interface_ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/network_interface_ip_configuration.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/network_interface_paged.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/network_interface_paged.py old mode 100755 new mode 100644 index 80ef25a43c73..b933756838f6 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/network_interface_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/network_interface_paged.py @@ -14,7 +14,7 @@ class NetworkInterfacePaged(Paged): """ - A paging container for iterating over a list of NetworkInterface object + A paging container for iterating over a list of :class:`NetworkInterface ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/network_management_client_enums.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/network_management_client_enums.py old mode 100755 new mode 100644 index e89f125a29ed..34425eb9c99a --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/network_management_client_enums.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/network_management_client_enums.py @@ -90,6 +90,53 @@ class ApplicationGatewayOperationalState(Enum): stopping = "Stopping" +class AuthorizationUseStatus(Enum): + + available = "Available" + in_use = "InUse" + + +class ExpressRouteCircuitPeeringAdvertisedPublicPrefixState(Enum): + + not_configured = "NotConfigured" + configuring = "Configuring" + configured = "Configured" + validation_needed = "ValidationNeeded" + + +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 LoadDistribution(Enum): default = "Default" @@ -103,6 +150,13 @@ class ProbeProtocol(Enum): tcp = "Tcp" +class NetworkOperationStatus(Enum): + + in_progress = "InProgress" + succeeded = "Succeeded" + failed = "Failed" + + class VirtualNetworkGatewayType(Enum): vpn = "Vpn" @@ -149,57 +203,3 @@ class VirtualNetworkGatewayConnectionStatus(Enum): connecting = "Connecting" connected = "Connected" not_connected = "NotConnected" - - -class AuthorizationUseStatus(Enum): - - available = "Available" - in_use = "InUse" - - -class ExpressRouteCircuitPeeringAdvertisedPublicPrefixState(Enum): - - not_configured = "NotConfigured" - configuring = "Configuring" - configured = "Configured" - validation_needed = "ValidationNeeded" - - -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 NetworkOperationStatus(Enum): - - in_progress = "InProgress" - succeeded = "Succeeded" - failed = "Failed" diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/network_security_group.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/network_security_group.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/network_security_group_paged.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/network_security_group_paged.py old mode 100755 new mode 100644 index 784c34f9c988..982d2da62c2e --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/network_security_group_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/network_security_group_paged.py @@ -14,7 +14,7 @@ class NetworkSecurityGroupPaged(Paged): """ - A paging container for iterating over a list of NetworkSecurityGroup object + A paging container for iterating over a list of :class:`NetworkSecurityGroup ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/outbound_nat_rule.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/outbound_nat_rule.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/probe.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/probe.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/public_ip_address.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/public_ip_address.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/public_ip_address_dns_settings.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/public_ip_address_dns_settings.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/public_ip_address_paged.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/public_ip_address_paged.py old mode 100755 new mode 100644 index e86263ccb4a4..ce6a7a305f2d --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/public_ip_address_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/public_ip_address_paged.py @@ -14,7 +14,7 @@ class PublicIPAddressPaged(Paged): """ - A paging container for iterating over a list of PublicIPAddress object + A paging container for iterating over a list of :class:`PublicIPAddress ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/resource.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/resource.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/route.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/route.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/route_paged.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/route_paged.py old mode 100755 new mode 100644 index df8a2fbbca40..decb98220ee0 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/route_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/route_paged.py @@ -14,7 +14,7 @@ class RoutePaged(Paged): """ - A paging container for iterating over a list of Route object + A paging container for iterating over a list of :class:`Route ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/route_table.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/route_table.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/route_table_paged.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/route_table_paged.py old mode 100755 new mode 100644 index 5e2b3b385a4c..2f47c4f279ff --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/route_table_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/route_table_paged.py @@ -14,7 +14,7 @@ class RouteTablePaged(Paged): """ - A paging container for iterating over a list of RouteTable object + A paging container for iterating over a list of :class:`RouteTable ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/security_rule.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/security_rule.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/security_rule_paged.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/security_rule_paged.py old mode 100755 new mode 100644 index 5d7ba44f9b9a..cdf5388f3997 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/security_rule_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/security_rule_paged.py @@ -14,7 +14,7 @@ class SecurityRulePaged(Paged): """ - A paging container for iterating over a list of SecurityRule object + A paging container for iterating over a list of :class:`SecurityRule ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/sub_resource.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/sub_resource.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/subnet.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/subnet.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/subnet_paged.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/subnet_paged.py old mode 100755 new mode 100644 index 2bbe5a5cd31a..a8d1001be8c3 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/subnet_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/subnet_paged.py @@ -14,7 +14,7 @@ class SubnetPaged(Paged): """ - A paging container for iterating over a list of Subnet object + A paging container for iterating over a list of :class:`Subnet ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/usage.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/usage.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/usage_name.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/usage_name.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/usage_paged.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/usage_paged.py old mode 100755 new mode 100644 index f357b8c198be..cd7831331426 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/usage_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/usage_paged.py @@ -14,7 +14,7 @@ class UsagePaged(Paged): """ - A paging container for iterating over a list of Usage object + A paging container for iterating over a list of :class:`Usage ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/virtual_network.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/virtual_network.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/virtual_network_gateway.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/virtual_network_gateway.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/virtual_network_gateway_connection.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/virtual_network_gateway_connection.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/virtual_network_gateway_connection_paged.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/virtual_network_gateway_connection_paged.py old mode 100755 new mode 100644 index ea77037dfe72..b2269bdaecd3 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/virtual_network_gateway_connection_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/virtual_network_gateway_connection_paged.py @@ -14,7 +14,7 @@ class VirtualNetworkGatewayConnectionPaged(Paged): """ - A paging container for iterating over a list of VirtualNetworkGatewayConnection object + A paging container for iterating over a list of :class:`VirtualNetworkGatewayConnection ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/virtual_network_gateway_ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/virtual_network_gateway_ip_configuration.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/virtual_network_gateway_paged.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/virtual_network_gateway_paged.py old mode 100755 new mode 100644 index 9a3806758ad1..638dd4ee4238 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/virtual_network_gateway_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/virtual_network_gateway_paged.py @@ -14,7 +14,7 @@ class VirtualNetworkGatewayPaged(Paged): """ - A paging container for iterating over a list of VirtualNetworkGateway object + A paging container for iterating over a list of :class:`VirtualNetworkGateway ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/virtual_network_gateway_sku.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/virtual_network_gateway_sku.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/virtual_network_paged.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/virtual_network_paged.py old mode 100755 new mode 100644 index 2959222e9930..678ccff7ae27 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/virtual_network_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/virtual_network_paged.py @@ -14,7 +14,7 @@ class VirtualNetworkPaged(Paged): """ - A paging container for iterating over a list of VirtualNetwork object + A paging container for iterating over a list of :class:`VirtualNetwork ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/vpn_client_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/vpn_client_configuration.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/vpn_client_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/vpn_client_parameters.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/vpn_client_revoked_certificate.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/vpn_client_revoked_certificate.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/vpn_client_root_certificate.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/vpn_client_root_certificate.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/network_management_client.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/network_management_client.py old mode 100755 new mode 100644 index 74b5eba17f91..698891a38005 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/network_management_client.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/network_management_client.py @@ -18,23 +18,23 @@ from msrestazure.azure_operation import AzureOperationPoller import uuid from .operations.application_gateways_operations import ApplicationGatewaysOperations -from .operations.route_tables_operations import RouteTablesOperations -from .operations.routes_operations import RoutesOperations -from .operations.public_ip_addresses_operations import PublicIPAddressesOperations +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.network_interfaces_operations import NetworkInterfacesOperations from .operations.network_security_groups_operations import NetworkSecurityGroupsOperations from .operations.security_rules_operations import SecurityRulesOperations -from .operations.load_balancers_operations import LoadBalancersOperations +from .operations.public_ip_addresses_operations import PublicIPAddressesOperations +from .operations.route_tables_operations import RouteTablesOperations +from .operations.routes_operations import RoutesOperations +from .operations.usages_operations import UsagesOperations from .operations.virtual_networks_operations import VirtualNetworksOperations from .operations.subnets_operations import SubnetsOperations -from .operations.network_interfaces_operations import NetworkInterfacesOperations -from .operations.usages_operations import UsagesOperations 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 .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 . import models @@ -75,47 +75,47 @@ def __init__( class NetworkManagementClient(object): - """Composite Swagger for Network Client + """Network Client :ivar config: Configuration for client. :vartype config: NetworkManagementClientConfiguration :ivar application_gateways: ApplicationGateways operations :vartype application_gateways: azure.mgmt.network.v2015_06_15.operations.ApplicationGatewaysOperations - :ivar route_tables: RouteTables operations - :vartype route_tables: azure.mgmt.network.v2015_06_15.operations.RouteTablesOperations - :ivar routes: Routes operations - :vartype routes: azure.mgmt.network.v2015_06_15.operations.RoutesOperations - :ivar public_ip_addresses: PublicIPAddresses operations - :vartype public_ip_addresses: azure.mgmt.network.v2015_06_15.operations.PublicIPAddressesOperations + :ivar express_route_circuit_authorizations: ExpressRouteCircuitAuthorizations operations + :vartype express_route_circuit_authorizations: azure.mgmt.network.v2015_06_15.operations.ExpressRouteCircuitAuthorizationsOperations + :ivar express_route_circuit_peerings: ExpressRouteCircuitPeerings operations + :vartype express_route_circuit_peerings: azure.mgmt.network.v2015_06_15.operations.ExpressRouteCircuitPeeringsOperations + :ivar express_route_circuits: ExpressRouteCircuits operations + :vartype express_route_circuits: azure.mgmt.network.v2015_06_15.operations.ExpressRouteCircuitsOperations + :ivar express_route_service_providers: ExpressRouteServiceProviders operations + :vartype express_route_service_providers: azure.mgmt.network.v2015_06_15.operations.ExpressRouteServiceProvidersOperations + :ivar load_balancers: LoadBalancers operations + :vartype load_balancers: azure.mgmt.network.v2015_06_15.operations.LoadBalancersOperations + :ivar network_interfaces: NetworkInterfaces operations + :vartype network_interfaces: azure.mgmt.network.v2015_06_15.operations.NetworkInterfacesOperations :ivar network_security_groups: NetworkSecurityGroups operations :vartype network_security_groups: azure.mgmt.network.v2015_06_15.operations.NetworkSecurityGroupsOperations :ivar security_rules: SecurityRules operations :vartype security_rules: azure.mgmt.network.v2015_06_15.operations.SecurityRulesOperations - :ivar load_balancers: LoadBalancers operations - :vartype load_balancers: azure.mgmt.network.v2015_06_15.operations.LoadBalancersOperations + :ivar public_ip_addresses: PublicIPAddresses operations + :vartype public_ip_addresses: azure.mgmt.network.v2015_06_15.operations.PublicIPAddressesOperations + :ivar route_tables: RouteTables operations + :vartype route_tables: azure.mgmt.network.v2015_06_15.operations.RouteTablesOperations + :ivar routes: Routes operations + :vartype routes: azure.mgmt.network.v2015_06_15.operations.RoutesOperations + :ivar usages: Usages operations + :vartype usages: azure.mgmt.network.v2015_06_15.operations.UsagesOperations :ivar virtual_networks: VirtualNetworks operations :vartype virtual_networks: azure.mgmt.network.v2015_06_15.operations.VirtualNetworksOperations :ivar subnets: Subnets operations :vartype subnets: azure.mgmt.network.v2015_06_15.operations.SubnetsOperations - :ivar network_interfaces: NetworkInterfaces operations - :vartype network_interfaces: azure.mgmt.network.v2015_06_15.operations.NetworkInterfacesOperations - :ivar usages: Usages operations - :vartype usages: azure.mgmt.network.v2015_06_15.operations.UsagesOperations :ivar virtual_network_gateways: VirtualNetworkGateways operations :vartype virtual_network_gateways: azure.mgmt.network.v2015_06_15.operations.VirtualNetworkGatewaysOperations :ivar virtual_network_gateway_connections: VirtualNetworkGatewayConnections operations :vartype virtual_network_gateway_connections: azure.mgmt.network.v2015_06_15.operations.VirtualNetworkGatewayConnectionsOperations :ivar local_network_gateways: LocalNetworkGateways operations :vartype local_network_gateways: azure.mgmt.network.v2015_06_15.operations.LocalNetworkGatewaysOperations - :ivar express_route_circuit_authorizations: ExpressRouteCircuitAuthorizations operations - :vartype express_route_circuit_authorizations: azure.mgmt.network.v2015_06_15.operations.ExpressRouteCircuitAuthorizationsOperations - :ivar express_route_circuit_peerings: ExpressRouteCircuitPeerings operations - :vartype express_route_circuit_peerings: azure.mgmt.network.v2015_06_15.operations.ExpressRouteCircuitPeeringsOperations - :ivar express_route_circuits: ExpressRouteCircuits operations - :vartype express_route_circuits: azure.mgmt.network.v2015_06_15.operations.ExpressRouteCircuitsOperations - :ivar express_route_service_providers: ExpressRouteServiceProviders operations - :vartype express_route_service_providers: azure.mgmt.network.v2015_06_15.operations.ExpressRouteServiceProvidersOperations :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials @@ -134,45 +134,46 @@ def __init__( self._client = ServiceClient(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self.api_version = '2015-06-15' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) self.application_gateways = ApplicationGatewaysOperations( self._client, self.config, self._serialize, self._deserialize) - self.route_tables = RouteTablesOperations( + self.express_route_circuit_authorizations = ExpressRouteCircuitAuthorizationsOperations( self._client, self.config, self._serialize, self._deserialize) - self.routes = RoutesOperations( + self.express_route_circuit_peerings = ExpressRouteCircuitPeeringsOperations( self._client, self.config, self._serialize, self._deserialize) - self.public_ip_addresses = PublicIPAddressesOperations( + 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.network_interfaces = NetworkInterfacesOperations( 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.load_balancers = LoadBalancersOperations( - self._client, self.config, self._serialize, self._deserialize) - self.virtual_networks = VirtualNetworksOperations( + self.public_ip_addresses = PublicIPAddressesOperations( self._client, self.config, self._serialize, self._deserialize) - self.subnets = SubnetsOperations( + self.route_tables = RouteTablesOperations( self._client, self.config, self._serialize, self._deserialize) - self.network_interfaces = NetworkInterfacesOperations( + self.routes = RoutesOperations( 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_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) - 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) def check_dns_name_availability( self, location, domain_name_label=None, custom_headers=None, raw=False, **operation_config): @@ -190,14 +191,15 @@ def check_dns_name_availability( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`DnsNameAvailabilityResult + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`DnsNameAvailabilityResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ - api_version = "2015-06-15" - # Construct URL url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/CheckDnsNameAvailability' path_format_arguments = { @@ -210,7 +212,7 @@ def check_dns_name_availability( query_parameters = {} if domain_name_label is not None: 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') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') # Construct headers header_parameters = {} diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/__init__.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/__init__.py old mode 100755 new mode 100644 index a28659c0c55f..18a098ec3354 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/__init__.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/__init__.py @@ -10,41 +10,41 @@ # -------------------------------------------------------------------------- from .application_gateways_operations import ApplicationGatewaysOperations -from .route_tables_operations import RouteTablesOperations -from .routes_operations import RoutesOperations -from .public_ip_addresses_operations import PublicIPAddressesOperations +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 .network_interfaces_operations import NetworkInterfacesOperations from .network_security_groups_operations import NetworkSecurityGroupsOperations from .security_rules_operations import SecurityRulesOperations -from .load_balancers_operations import LoadBalancersOperations +from .public_ip_addresses_operations import PublicIPAddressesOperations +from .route_tables_operations import RouteTablesOperations +from .routes_operations import RoutesOperations +from .usages_operations import UsagesOperations from .virtual_networks_operations import VirtualNetworksOperations from .subnets_operations import SubnetsOperations -from .network_interfaces_operations import NetworkInterfacesOperations -from .usages_operations import UsagesOperations from .virtual_network_gateways_operations import VirtualNetworkGatewaysOperations from .virtual_network_gateway_connections_operations import VirtualNetworkGatewayConnectionsOperations from .local_network_gateways_operations import LocalNetworkGatewaysOperations -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 __all__ = [ 'ApplicationGatewaysOperations', - 'RouteTablesOperations', - 'RoutesOperations', - 'PublicIPAddressesOperations', + 'ExpressRouteCircuitAuthorizationsOperations', + 'ExpressRouteCircuitPeeringsOperations', + 'ExpressRouteCircuitsOperations', + 'ExpressRouteServiceProvidersOperations', + 'LoadBalancersOperations', + 'NetworkInterfacesOperations', 'NetworkSecurityGroupsOperations', 'SecurityRulesOperations', - 'LoadBalancersOperations', + 'PublicIPAddressesOperations', + 'RouteTablesOperations', + 'RoutesOperations', + 'UsagesOperations', 'VirtualNetworksOperations', 'SubnetsOperations', - 'NetworkInterfacesOperations', - 'UsagesOperations', 'VirtualNetworkGatewaysOperations', 'VirtualNetworkGatewayConnectionsOperations', 'LocalNetworkGatewaysOperations', - 'ExpressRouteCircuitAuthorizationsOperations', - 'ExpressRouteCircuitPeeringsOperations', - 'ExpressRouteCircuitsOperations', - 'ExpressRouteServiceProvidersOperations', ] diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/application_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/application_gateways_operations.py old mode 100755 new mode 100644 index acd82dbbc615..e7aecba1aa44 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/application_gateways_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/application_gateways_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -126,10 +129,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ApplicationGateway + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ApplicationGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -190,12 +196,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ApplicationGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -281,6 +290,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`ApplicationGateway + ` :rtype: :class:`ApplicationGatewayPaged ` :raises: :class:`CloudError` @@ -345,6 +356,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`ApplicationGateway + ` :rtype: :class:`ApplicationGatewayPaged ` :raises: :class:`CloudError` @@ -410,11 +423,14 @@ def start( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -487,11 +503,14 @@ def stop( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/express_route_circuit_authorizations_operations.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/express_route_circuit_authorizations_operations.py old mode 100755 new mode 100644 index 147099b62565..9f106208e019 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/express_route_circuit_authorizations_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/express_route_circuit_authorizations_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -50,11 +50,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -133,10 +136,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ExpressRouteCircuitAuthorization + ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`ExpressRouteCircuitAuthorization ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -202,12 +208,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuitAuthorization ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -296,6 +305,9 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of + :class:`ExpressRouteCircuitAuthorization + ` :rtype: :class:`ExpressRouteCircuitAuthorizationPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/express_route_circuit_peerings_operations.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/express_route_circuit_peerings_operations.py old mode 100755 new mode 100644 index 8eccd00d9735..c7462ede8fd3 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/express_route_circuit_peerings_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/express_route_circuit_peerings_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -49,11 +49,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -132,10 +135,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ExpressRouteCircuitPeering + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ExpressRouteCircuitPeering - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -199,12 +205,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuitPeering - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -293,6 +302,9 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of + :class:`ExpressRouteCircuitPeering + ` :rtype: :class:`ExpressRouteCircuitPeeringPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/express_route_circuits_operations.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/express_route_circuits_operations.py old mode 100755 new mode 100644 index bafb565e3116..9981f6431c72 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/express_route_circuits_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/express_route_circuits_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -126,10 +129,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ExpressRouteCircuit + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ExpressRouteCircuit - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -190,12 +196,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuit - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -285,6 +294,9 @@ def list_arp_table( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of + :class:`ExpressRouteCircuitArpTable + ` :rtype: :class:`ExpressRouteCircuitArpTablePaged ` :raises: :class:`CloudError` @@ -356,6 +368,9 @@ def list_routes_table( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of + :class:`ExpressRouteCircuitRoutesTable + ` :rtype: :class:`ExpressRouteCircuitRoutesTablePaged ` :raises: :class:`CloudError` @@ -426,6 +441,8 @@ def list_stats( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`ExpressRouteCircuitStats + ` :rtype: :class:`ExpressRouteCircuitStatsPaged ` :raises: :class:`CloudError` @@ -493,6 +510,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`ExpressRouteCircuit + ` :rtype: :class:`ExpressRouteCircuitPaged ` :raises: :class:`CloudError` @@ -557,6 +576,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`ExpressRouteCircuit + ` :rtype: :class:`ExpressRouteCircuitPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/express_route_service_providers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/express_route_service_providers_operations.py old mode 100755 new mode 100644 index e0156a4d8d2a..ad27e44879e1 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/express_route_service_providers_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/express_route_service_providers_operations.py @@ -9,9 +9,9 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError -import uuid from .. import models @@ -44,6 +44,9 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of + :class:`ExpressRouteServiceProvider + ` :rtype: :class:`ExpressRouteServiceProviderPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/load_balancers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/load_balancers_operations.py old mode 100755 new mode 100644 index 701576bc331d..7164d8918e08 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/load_balancers_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/load_balancers_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`LoadBalancer + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`LoadBalancer - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -194,12 +200,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`LoadBalancer - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -283,6 +292,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`LoadBalancer + ` :rtype: :class:`LoadBalancerPaged ` :raises: :class:`CloudError` @@ -348,6 +359,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`LoadBalancer + ` :rtype: :class:`LoadBalancerPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/local_network_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/local_network_gateways_operations.py old mode 100755 new mode 100644 index 53f19ef557a1..8c56f460a573 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/local_network_gateways_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/local_network_gateways_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -53,12 +53,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`LocalNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -147,10 +150,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`LocalNetworkGateway + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`LocalNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -208,11 +214,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -285,6 +294,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`LocalNetworkGateway + ` :rtype: :class:`LocalNetworkGatewayPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/network_interfaces_operations.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/network_interfaces_operations.py old mode 100755 new mode 100644 index acfce3126c4c..fd8ab9c57f66 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/network_interfaces_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/network_interfaces_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`NetworkInterface + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`NetworkInterface - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -194,12 +200,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`NetworkInterface - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -283,6 +292,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkInterface + ` :rtype: :class:`NetworkInterfacePaged ` :raises: :class:`CloudError` @@ -348,6 +359,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkInterface + ` :rtype: :class:`NetworkInterfacePaged ` :raises: :class:`CloudError` @@ -420,6 +433,8 @@ def list_virtual_machine_scale_set_vm_network_interfaces( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkInterface + ` :rtype: :class:`NetworkInterfacePaged ` :raises: :class:`CloudError` @@ -491,6 +506,8 @@ def list_virtual_machine_scale_set_network_interfaces( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkInterface + ` :rtype: :class:`NetworkInterfacePaged ` :raises: :class:`CloudError` @@ -567,10 +584,13 @@ def get_virtual_machine_scale_set_network_interface( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`NetworkInterface + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`NetworkInterface - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/network_security_groups_operations.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/network_security_groups_operations.py old mode 100755 new mode 100644 index 43e6522e7155..1c09296a3123 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/network_security_groups_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/network_security_groups_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -48,11 +48,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -130,10 +133,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`NetworkSecurityGroup + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`NetworkSecurityGroup - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -198,12 +204,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`NetworkSecurityGroup - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -287,6 +296,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkSecurityGroup + ` :rtype: :class:`NetworkSecurityGroupPaged ` :raises: :class:`CloudError` @@ -352,6 +363,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkSecurityGroup + ` :rtype: :class:`NetworkSecurityGroupPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/public_ip_addresses_operations.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/public_ip_addresses_operations.py old mode 100755 new mode 100644 index 2e55562d7b7a..75ce0a89a32e --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/public_ip_addresses_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/public_ip_addresses_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`PublicIPAddress + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`PublicIPAddress - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -194,12 +200,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`PublicIPAddress - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -283,6 +292,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`PublicIPAddress + ` :rtype: :class:`PublicIPAddressPaged ` :raises: :class:`CloudError` @@ -348,6 +359,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`PublicIPAddress + ` :rtype: :class:`PublicIPAddressPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/route_tables_operations.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/route_tables_operations.py old mode 100755 new mode 100644 index 8f75f1face1e..c7783592a7cc --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/route_tables_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/route_tables_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`RouteTable + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`RouteTable - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -194,12 +200,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`RouteTable - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -285,6 +294,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`RouteTable + ` :rtype: :class:`RouteTablePaged ` :raises: :class:`CloudError` @@ -349,6 +360,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`RouteTable + ` :rtype: :class:`RouteTablePaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/routes_operations.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/routes_operations.py old mode 100755 new mode 100644 index 0dcd6b65ce10..b430551397cf --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/routes_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/routes_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -49,11 +49,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -131,9 +134,11 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`Route ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`Route ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -197,12 +202,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`Route - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -291,6 +299,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`Route + ` :rtype: :class:`RoutePaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/security_rules_operations.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/security_rules_operations.py old mode 100755 new mode 100644 index 8b32d939e17f..0255030f9524 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/security_rules_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/security_rules_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -50,11 +50,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -133,10 +136,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`SecurityRule + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`SecurityRule - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -202,12 +208,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`SecurityRule - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -297,6 +306,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`SecurityRule + ` :rtype: :class:`SecurityRulePaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/subnets_operations.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/subnets_operations.py old mode 100755 new mode 100644 index cc24c2df2870..0396c5aecdd0 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/subnets_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/subnets_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -49,11 +49,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -133,9 +136,12 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`Subnet + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`Subnet ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -201,12 +207,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`Subnet - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -295,6 +304,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`Subnet + ` :rtype: :class:`SubnetPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/usages_operations.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/usages_operations.py old mode 100755 new mode 100644 index fe20f398077f..0312299789f3 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/usages_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/usages_operations.py @@ -9,9 +9,9 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError -import uuid from .. import models @@ -46,6 +46,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`Usage + ` :rtype: :class:`UsagePaged ` :raises: :class:`CloudError` @@ -56,7 +58,7 @@ def internal_paging(next_link=None, raw=False): # Construct URL url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/usages' path_format_arguments = { - 'location': self._serialize.url("location", location, 'str', pattern='^[-\w\._]+$'), + '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) diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/virtual_network_gateway_connections_operations.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/virtual_network_gateway_connections_operations.py old mode 100755 new mode 100644 index 8f42e7d8766b..10879ad43670 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/virtual_network_gateway_connections_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/virtual_network_gateway_connections_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -53,12 +53,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VirtualNetworkGatewayConnection ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -148,10 +151,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`VirtualNetworkGatewayConnection + ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`VirtualNetworkGatewayConnection ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -209,11 +215,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -291,10 +300,13 @@ def get_shared_key( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ConnectionSharedKeyResult + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ConnectionSharedKeyResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -352,6 +364,9 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of + :class:`VirtualNetworkGatewayConnection + ` :rtype: :class:`VirtualNetworkGatewayConnectionPaged ` :raises: :class:`CloudError` @@ -425,12 +440,15 @@ def reset_shared_key( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ConnectionResetSharedKey - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.ConnectionResetSharedKey(key_length=key_length) @@ -522,12 +540,15 @@ def set_shared_key( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ConnectionSharedKey - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.ConnectionSharedKey(value=value) diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/virtual_network_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/virtual_network_gateways_operations.py old mode 100755 new mode 100644 index 20febfd0ea96..18d1d97669fe --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/virtual_network_gateways_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/virtual_network_gateways_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -53,12 +53,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VirtualNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -147,10 +150,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`VirtualNetworkGateway + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`VirtualNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -208,11 +214,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -285,6 +294,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`VirtualNetworkGateway + ` :rtype: :class:`VirtualNetworkGatewayPaged ` :raises: :class:`CloudError` @@ -357,12 +368,15 @@ def reset( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VirtualNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -455,9 +469,11 @@ def generatevpnclientpackage( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :rtype: str - :rtype: :class:`ClientRawResponse` - if raw=true + :return: str or + :class:`ClientRawResponse` if + raw=true + :rtype: str or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.VpnClientParameters(processor_architecture=processor_architecture) diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/virtual_networks_operations.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/virtual_networks_operations.py old mode 100755 new mode 100644 index 5038c92f7c9e..a7ab54ebe1a9 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/virtual_networks_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/virtual_networks_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`VirtualNetwork + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`VirtualNetwork - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -194,12 +200,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VirtualNetwork - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -283,6 +292,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`VirtualNetwork + ` :rtype: :class:`VirtualNetworkPaged ` :raises: :class:`CloudError` @@ -348,6 +359,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`VirtualNetwork + ` :rtype: :class:`VirtualNetworkPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/version.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/version.py old mode 100755 new mode 100644 index 53a203f32aaf..3a4aee68bd3a --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/version.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "" +VERSION = "2015-06-15" 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 473a23aafc86..3fa479137ed5 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.1.0", "date": "2017-06-27T17:39:17Z", "version": ""} \ No newline at end of file +{"autorest": "1.2.2", "date": "2017-08-16T18:25:03Z", "version": ""} \ No newline at end of file diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/__init__.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/__init__.py index 0c2826084af2..c850bd434303 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/__init__.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/__init__.py @@ -9,23 +9,24 @@ # regenerated. # -------------------------------------------------------------------------- +from .resource import Resource +from .network_interface_dns_settings import NetworkInterfaceDnsSettings from .sub_resource import SubResource +from .public_ip_address_dns_settings import PublicIPAddressDnsSettings +from .resource_navigation_link import ResourceNavigationLink +from .route import Route +from .security_rule import SecurityRule +from .application_gateway_backend_address import ApplicationGatewayBackendAddress +from .application_gateway_backend_address_pool import ApplicationGatewayBackendAddressPool from .backend_address_pool import BackendAddressPool from .inbound_nat_rule import InboundNatRule -from .security_rule import SecurityRule -from .network_interface_dns_settings import NetworkInterfaceDnsSettings +from .ip_configuration import IPConfiguration +from .public_ip_address import PublicIPAddress +from .network_interface_ip_configuration import NetworkInterfaceIPConfiguration from .network_interface import NetworkInterface from .network_security_group import NetworkSecurityGroup -from .route import Route from .route_table import RouteTable -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_backend_http_settings import ApplicationGatewayBackendHttpSettings from .application_gateway_backend_health_server import ApplicationGatewayBackendHealthServer from .application_gateway_backend_health_http_settings import ApplicationGatewayBackendHealthHttpSettings @@ -45,7 +46,6 @@ from .application_gateway_url_path_map import ApplicationGatewayUrlPathMap from .application_gateway_web_application_firewall_configuration import ApplicationGatewayWebApplicationFirewallConfiguration from .application_gateway import ApplicationGateway -from .resource import Resource from .dns_name_availability_result import DnsNameAvailabilityResult from .express_route_circuit_authorization import ExpressRouteCircuitAuthorization from .express_route_circuit_peering_config import ExpressRouteCircuitPeeringConfig @@ -130,13 +130,13 @@ from .virtual_network_gateway_connection import VirtualNetworkGatewayConnection from .connection_reset_shared_key import ConnectionResetSharedKey from .connection_shared_key import ConnectionSharedKey +from .network_interface_paged import NetworkInterfacePaged from .application_gateway_paged import ApplicationGatewayPaged 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 .network_interface_paged import NetworkInterfacePaged from .network_security_group_paged import NetworkSecurityGroupPaged from .security_rule_paged import SecurityRulePaged from .network_watcher_paged import NetworkWatcherPaged @@ -152,13 +152,13 @@ from .virtual_network_gateway_connection_paged import VirtualNetworkGatewayConnectionPaged from .local_network_gateway_paged import LocalNetworkGatewayPaged from .network_management_client_enums import ( - TransportProtocol, - IPAllocationMethod, - IPVersion, + RouteNextHopType, SecurityRuleProtocol, SecurityRuleAccess, SecurityRuleDirection, - RouteNextHopType, + TransportProtocol, + IPAllocationMethod, + IPVersion, ApplicationGatewayProtocol, ApplicationGatewayCookieBasedAffinity, ApplicationGatewayBackendHealthServerHealth, @@ -201,23 +201,24 @@ ) __all__ = [ + 'Resource', + 'NetworkInterfaceDnsSettings', 'SubResource', + 'PublicIPAddressDnsSettings', + 'ResourceNavigationLink', + 'Route', + 'SecurityRule', + 'ApplicationGatewayBackendAddress', + 'ApplicationGatewayBackendAddressPool', 'BackendAddressPool', 'InboundNatRule', - 'SecurityRule', - 'NetworkInterfaceDnsSettings', + 'IPConfiguration', + 'PublicIPAddress', + 'NetworkInterfaceIPConfiguration', 'NetworkInterface', 'NetworkSecurityGroup', - 'Route', 'RouteTable', - 'PublicIPAddressDnsSettings', - 'PublicIPAddress', - 'IPConfiguration', - 'ResourceNavigationLink', 'Subnet', - 'NetworkInterfaceIPConfiguration', - 'ApplicationGatewayBackendAddress', - 'ApplicationGatewayBackendAddressPool', 'ApplicationGatewayBackendHttpSettings', 'ApplicationGatewayBackendHealthServer', 'ApplicationGatewayBackendHealthHttpSettings', @@ -237,7 +238,6 @@ 'ApplicationGatewayUrlPathMap', 'ApplicationGatewayWebApplicationFirewallConfiguration', 'ApplicationGateway', - 'Resource', 'DnsNameAvailabilityResult', 'ExpressRouteCircuitAuthorization', 'ExpressRouteCircuitPeeringConfig', @@ -322,13 +322,13 @@ 'VirtualNetworkGatewayConnection', 'ConnectionResetSharedKey', 'ConnectionSharedKey', + 'NetworkInterfacePaged', 'ApplicationGatewayPaged', 'ExpressRouteCircuitAuthorizationPaged', 'ExpressRouteCircuitPeeringPaged', 'ExpressRouteCircuitPaged', 'ExpressRouteServiceProviderPaged', 'LoadBalancerPaged', - 'NetworkInterfacePaged', 'NetworkSecurityGroupPaged', 'SecurityRulePaged', 'NetworkWatcherPaged', @@ -343,13 +343,13 @@ 'VirtualNetworkGatewayPaged', 'VirtualNetworkGatewayConnectionPaged', 'LocalNetworkGatewayPaged', - 'TransportProtocol', - 'IPAllocationMethod', - 'IPVersion', + 'RouteNextHopType', 'SecurityRuleProtocol', 'SecurityRuleAccess', 'SecurityRuleDirection', - 'RouteNextHopType', + 'TransportProtocol', + 'IPAllocationMethod', + 'IPVersion', 'ApplicationGatewayProtocol', 'ApplicationGatewayCookieBasedAffinity', 'ApplicationGatewayBackendHealthServerHealth', diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/application_gateway_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/application_gateway_paged.py index 5dc094091ccc..aadc4b33e613 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/application_gateway_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/application_gateway_paged.py @@ -14,7 +14,7 @@ class ApplicationGatewayPaged(Paged): """ - A paging container for iterating over a list of ApplicationGateway object + A paging container for iterating over a list of :class:`ApplicationGateway ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/express_route_circuit_authorization_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/express_route_circuit_authorization_paged.py index 9e25d3d46f5d..747b9b8b3d6d 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/express_route_circuit_authorization_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/express_route_circuit_authorization_paged.py @@ -14,7 +14,7 @@ class ExpressRouteCircuitAuthorizationPaged(Paged): """ - A paging container for iterating over a list of ExpressRouteCircuitAuthorization object + A paging container for iterating over a list of :class:`ExpressRouteCircuitAuthorization ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/express_route_circuit_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/express_route_circuit_paged.py index da73ad48e420..18f3941180d0 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/express_route_circuit_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/express_route_circuit_paged.py @@ -14,7 +14,7 @@ class ExpressRouteCircuitPaged(Paged): """ - A paging container for iterating over a list of ExpressRouteCircuit object + A paging container for iterating over a list of :class:`ExpressRouteCircuit ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/express_route_circuit_peering_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/express_route_circuit_peering_paged.py index 58f59ae81a4b..6a53d4553b3f 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/express_route_circuit_peering_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/express_route_circuit_peering_paged.py @@ -14,7 +14,7 @@ class ExpressRouteCircuitPeeringPaged(Paged): """ - A paging container for iterating over a list of ExpressRouteCircuitPeering object + A paging container for iterating over a list of :class:`ExpressRouteCircuitPeering ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/express_route_service_provider_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/express_route_service_provider_paged.py index 5436d3b57bff..98547d3e2577 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/express_route_service_provider_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/express_route_service_provider_paged.py @@ -14,7 +14,7 @@ class ExpressRouteServiceProviderPaged(Paged): """ - A paging container for iterating over a list of ExpressRouteServiceProvider object + A paging container for iterating over a list of :class:`ExpressRouteServiceProvider ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/load_balancer_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/load_balancer_paged.py index d370672335d8..227875287e1f 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/load_balancer_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/load_balancer_paged.py @@ -14,7 +14,7 @@ class LoadBalancerPaged(Paged): """ - A paging container for iterating over a list of LoadBalancer object + A paging container for iterating over a list of :class:`LoadBalancer ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/local_network_gateway_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/local_network_gateway_paged.py index 084cabd54e92..b1095f5a5fa6 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/local_network_gateway_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/local_network_gateway_paged.py @@ -14,7 +14,7 @@ class LocalNetworkGatewayPaged(Paged): """ - A paging container for iterating over a list of LocalNetworkGateway object + A paging container for iterating over a list of :class:`LocalNetworkGateway ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/network_interface_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/network_interface_paged.py index 80ef25a43c73..a4a5bce2cc40 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/network_interface_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/network_interface_paged.py @@ -14,7 +14,7 @@ class NetworkInterfacePaged(Paged): """ - A paging container for iterating over a list of NetworkInterface object + A paging container for iterating over a list of :class:`NetworkInterface ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/network_management_client_enums.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/network_management_client_enums.py index 5d563428d9e3..e51739c1d8ca 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/network_management_client_enums.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/network_management_client_enums.py @@ -12,22 +12,13 @@ from enum import Enum -class TransportProtocol(Enum): - - udp = "Udp" - tcp = "Tcp" - - -class IPAllocationMethod(Enum): - - static = "Static" - dynamic = "Dynamic" - - -class IPVersion(Enum): +class RouteNextHopType(Enum): - ipv4 = "IPv4" - ipv6 = "IPv6" + virtual_network_gateway = "VirtualNetworkGateway" + vnet_local = "VnetLocal" + internet = "Internet" + virtual_appliance = "VirtualAppliance" + none = "None" class SecurityRuleProtocol(Enum): @@ -49,13 +40,22 @@ class SecurityRuleDirection(Enum): outbound = "Outbound" -class RouteNextHopType(Enum): +class TransportProtocol(Enum): - virtual_network_gateway = "VirtualNetworkGateway" - vnet_local = "VnetLocal" - internet = "Internet" - virtual_appliance = "VirtualAppliance" - none = "None" + udp = "Udp" + tcp = "Tcp" + + +class IPAllocationMethod(Enum): + + static = "Static" + dynamic = "Dynamic" + + +class IPVersion(Enum): + + ipv4 = "IPv4" + ipv6 = "IPv6" class ApplicationGatewayProtocol(Enum): diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/network_security_group_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/network_security_group_paged.py index 784c34f9c988..7255774b6989 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/network_security_group_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/network_security_group_paged.py @@ -14,7 +14,7 @@ class NetworkSecurityGroupPaged(Paged): """ - A paging container for iterating over a list of NetworkSecurityGroup object + A paging container for iterating over a list of :class:`NetworkSecurityGroup ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/network_watcher_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/network_watcher_paged.py index ec8d6661f054..f4e48da5bf39 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/network_watcher_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/network_watcher_paged.py @@ -14,7 +14,7 @@ class NetworkWatcherPaged(Paged): """ - A paging container for iterating over a list of NetworkWatcher object + A paging container for iterating over a list of :class:`NetworkWatcher ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/packet_capture_result_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/packet_capture_result_paged.py index 5c58e48e659b..ae61aa1b638a 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/packet_capture_result_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/packet_capture_result_paged.py @@ -14,7 +14,7 @@ class PacketCaptureResultPaged(Paged): """ - A paging container for iterating over a list of PacketCaptureResult object + A paging container for iterating over a list of :class:`PacketCaptureResult ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/public_ip_address_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/public_ip_address_paged.py index e86263ccb4a4..9fa6a76f534d 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/public_ip_address_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/public_ip_address_paged.py @@ -14,7 +14,7 @@ class PublicIPAddressPaged(Paged): """ - A paging container for iterating over a list of PublicIPAddress object + A paging container for iterating over a list of :class:`PublicIPAddress ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/route_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/route_paged.py index df8a2fbbca40..18b735c13fe7 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/route_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/route_paged.py @@ -14,7 +14,7 @@ class RoutePaged(Paged): """ - A paging container for iterating over a list of Route object + A paging container for iterating over a list of :class:`Route ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/route_table_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/route_table_paged.py index 5e2b3b385a4c..c1a5e997a2cc 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/route_table_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/route_table_paged.py @@ -14,7 +14,7 @@ class RouteTablePaged(Paged): """ - A paging container for iterating over a list of RouteTable object + A paging container for iterating over a list of :class:`RouteTable ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/security_rule_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/security_rule_paged.py index 5d7ba44f9b9a..eaf412a33ef0 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/security_rule_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/security_rule_paged.py @@ -14,7 +14,7 @@ class SecurityRulePaged(Paged): """ - A paging container for iterating over a list of SecurityRule object + A paging container for iterating over a list of :class:`SecurityRule ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/subnet_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/subnet_paged.py index 2bbe5a5cd31a..3c392f0045de 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/subnet_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/subnet_paged.py @@ -14,7 +14,7 @@ class SubnetPaged(Paged): """ - A paging container for iterating over a list of Subnet object + A paging container for iterating over a list of :class:`Subnet ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/usage_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/usage_paged.py index f357b8c198be..78a442780e17 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/usage_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/usage_paged.py @@ -14,7 +14,7 @@ class UsagePaged(Paged): """ - A paging container for iterating over a list of Usage object + A paging container for iterating over a list of :class:`Usage ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/virtual_network_gateway_connection_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/virtual_network_gateway_connection_paged.py index ea77037dfe72..22b507c4dd10 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/virtual_network_gateway_connection_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/virtual_network_gateway_connection_paged.py @@ -14,7 +14,7 @@ class VirtualNetworkGatewayConnectionPaged(Paged): """ - A paging container for iterating over a list of VirtualNetworkGatewayConnection object + A paging container for iterating over a list of :class:`VirtualNetworkGatewayConnection ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/virtual_network_gateway_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/virtual_network_gateway_paged.py index 9a3806758ad1..abb91b05074b 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/virtual_network_gateway_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/virtual_network_gateway_paged.py @@ -14,7 +14,7 @@ class VirtualNetworkGatewayPaged(Paged): """ - A paging container for iterating over a list of VirtualNetworkGateway object + A paging container for iterating over a list of :class:`VirtualNetworkGateway ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/virtual_network_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/virtual_network_paged.py index 2959222e9930..16bd407d1a93 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/virtual_network_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/virtual_network_paged.py @@ -14,7 +14,7 @@ class VirtualNetworkPaged(Paged): """ - A paging container for iterating over a list of VirtualNetwork object + A paging container for iterating over a list of :class:`VirtualNetwork ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/virtual_network_peering_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/virtual_network_peering_paged.py index 1fb81948331d..0057af0d97a2 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/virtual_network_peering_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/models/virtual_network_peering_paged.py @@ -14,7 +14,7 @@ class VirtualNetworkPeeringPaged(Paged): """ - A paging container for iterating over a list of VirtualNetworkPeering object + A paging container for iterating over a list of :class:`VirtualNetworkPeering ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/network_management_client.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/network_management_client.py index d72eef3142f4..d525208b8ff6 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/network_management_client.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/network_management_client.py @@ -17,13 +17,13 @@ from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller import uuid +from .operations.network_interfaces_operations import NetworkInterfacesOperations from .operations.application_gateways_operations import ApplicationGatewaysOperations 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.network_interfaces_operations import NetworkInterfacesOperations from .operations.network_security_groups_operations import NetworkSecurityGroupsOperations from .operations.security_rules_operations import SecurityRulesOperations from .operations.network_watchers_operations import NetworkWatchersOperations @@ -78,11 +78,13 @@ def __init__( class NetworkManagementClient(object): - """Composite Swagger for Network Client + """Network Client :ivar config: Configuration for client. :vartype config: NetworkManagementClientConfiguration + :ivar network_interfaces: NetworkInterfaces operations + :vartype network_interfaces: azure.mgmt.network.v2016_09_01.operations.NetworkInterfacesOperations :ivar application_gateways: ApplicationGateways operations :vartype application_gateways: azure.mgmt.network.v2016_09_01.operations.ApplicationGatewaysOperations :ivar express_route_circuit_authorizations: ExpressRouteCircuitAuthorizations operations @@ -95,8 +97,6 @@ class NetworkManagementClient(object): :vartype express_route_service_providers: azure.mgmt.network.v2016_09_01.operations.ExpressRouteServiceProvidersOperations :ivar load_balancers: LoadBalancers operations :vartype load_balancers: azure.mgmt.network.v2016_09_01.operations.LoadBalancersOperations - :ivar network_interfaces: NetworkInterfaces operations - :vartype network_interfaces: azure.mgmt.network.v2016_09_01.operations.NetworkInterfacesOperations :ivar network_security_groups: NetworkSecurityGroups operations :vartype network_security_groups: azure.mgmt.network.v2016_09_01.operations.NetworkSecurityGroupsOperations :ivar security_rules: SecurityRules operations @@ -143,9 +143,12 @@ def __init__( self._client = ServiceClient(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self.api_version = '2016-09-01' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) + self.network_interfaces = NetworkInterfacesOperations( + self._client, self.config, self._serialize, self._deserialize) self.application_gateways = ApplicationGatewaysOperations( self._client, self.config, self._serialize, self._deserialize) self.express_route_circuit_authorizations = ExpressRouteCircuitAuthorizationsOperations( @@ -158,8 +161,6 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.load_balancers = LoadBalancersOperations( self._client, self.config, self._serialize, self._deserialize) - self.network_interfaces = NetworkInterfacesOperations( - 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( @@ -205,14 +206,15 @@ def check_dns_name_availability( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`DnsNameAvailabilityResult + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`DnsNameAvailabilityResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ - api_version = "2016-09-01" - # Construct URL url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/CheckDnsNameAvailability' path_format_arguments = { @@ -225,7 +227,7 @@ def check_dns_name_availability( query_parameters = {} if domain_name_label is not None: 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') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') # Construct headers header_parameters = {} diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/__init__.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/__init__.py index 80b122ff62c2..bfec2ac243e6 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/__init__.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/__init__.py @@ -9,13 +9,13 @@ # regenerated. # -------------------------------------------------------------------------- +from .network_interfaces_operations import NetworkInterfacesOperations from .application_gateways_operations import ApplicationGatewaysOperations 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 .network_interfaces_operations import NetworkInterfacesOperations from .network_security_groups_operations import NetworkSecurityGroupsOperations from .security_rules_operations import SecurityRulesOperations from .network_watchers_operations import NetworkWatchersOperations @@ -32,13 +32,13 @@ from .local_network_gateways_operations import LocalNetworkGatewaysOperations __all__ = [ + 'NetworkInterfacesOperations', 'ApplicationGatewaysOperations', 'ExpressRouteCircuitAuthorizationsOperations', 'ExpressRouteCircuitPeeringsOperations', 'ExpressRouteCircuitsOperations', 'ExpressRouteServiceProvidersOperations', 'LoadBalancersOperations', - 'NetworkInterfacesOperations', 'NetworkSecurityGroupsOperations', 'SecurityRulesOperations', 'NetworkWatchersOperations', diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/application_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/application_gateways_operations.py index f450cbde0b54..fda4a7e82b20 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/application_gateways_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/application_gateways_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -126,10 +129,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ApplicationGateway + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ApplicationGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -190,12 +196,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ApplicationGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -281,6 +290,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`ApplicationGateway + ` :rtype: :class:`ApplicationGatewayPaged ` :raises: :class:`CloudError` @@ -345,6 +356,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`ApplicationGateway + ` :rtype: :class:`ApplicationGatewayPaged ` :raises: :class:`CloudError` @@ -410,11 +423,14 @@ def start( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -487,11 +503,14 @@ def stop( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -568,12 +587,15 @@ def backend_health( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ApplicationGatewayBackendHealth ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/express_route_circuit_authorizations_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/express_route_circuit_authorizations_operations.py index 46a69e0b448e..58af981d2041 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/express_route_circuit_authorizations_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/express_route_circuit_authorizations_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -50,11 +50,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -133,10 +136,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ExpressRouteCircuitAuthorization + ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`ExpressRouteCircuitAuthorization ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -202,12 +208,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuitAuthorization ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -296,6 +305,9 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of + :class:`ExpressRouteCircuitAuthorization + ` :rtype: :class:`ExpressRouteCircuitAuthorizationPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/express_route_circuit_peerings_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/express_route_circuit_peerings_operations.py index 1e3314551a2d..4451e66af805 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/express_route_circuit_peerings_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/express_route_circuit_peerings_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -49,11 +49,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -132,10 +135,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ExpressRouteCircuitPeering + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ExpressRouteCircuitPeering - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -199,12 +205,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuitPeering - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -293,6 +302,9 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of + :class:`ExpressRouteCircuitPeering + ` :rtype: :class:`ExpressRouteCircuitPeeringPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/express_route_circuits_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/express_route_circuits_operations.py index 00c4c7462aea..e69dfd719021 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/express_route_circuits_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/express_route_circuits_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -126,10 +129,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ExpressRouteCircuit + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ExpressRouteCircuit - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -190,12 +196,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuit - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -286,12 +295,15 @@ def list_arp_table( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuitsArpTableListResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -378,13 +390,16 @@ def list_routes_table( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuitsRoutesTableListResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -471,13 +486,16 @@ def list_routes_table_summary( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuitsRoutesTableSummaryListResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -561,10 +579,13 @@ def get_stats( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ExpressRouteCircuitStats + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ExpressRouteCircuitStats - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -625,10 +646,13 @@ def get_peering_stats( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ExpressRouteCircuitStats + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ExpressRouteCircuitStats - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -686,6 +710,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`ExpressRouteCircuit + ` :rtype: :class:`ExpressRouteCircuitPaged ` :raises: :class:`CloudError` @@ -750,6 +776,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`ExpressRouteCircuit + ` :rtype: :class:`ExpressRouteCircuitPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/express_route_service_providers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/express_route_service_providers_operations.py index 44609eab002d..e307d01e05e1 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/express_route_service_providers_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/express_route_service_providers_operations.py @@ -9,9 +9,9 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError -import uuid from .. import models @@ -44,6 +44,9 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of + :class:`ExpressRouteServiceProvider + ` :rtype: :class:`ExpressRouteServiceProviderPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/load_balancers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/load_balancers_operations.py index afb0b57da42a..e082e0be89dc 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/load_balancers_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/load_balancers_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`LoadBalancer + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`LoadBalancer - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -194,12 +200,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`LoadBalancer - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -283,6 +292,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`LoadBalancer + ` :rtype: :class:`LoadBalancerPaged ` :raises: :class:`CloudError` @@ -348,6 +359,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`LoadBalancer + ` :rtype: :class:`LoadBalancerPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/local_network_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/local_network_gateways_operations.py index d63ebf057735..1ddcd2e98d4b 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/local_network_gateways_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/local_network_gateways_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -53,12 +53,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`LocalNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -147,10 +150,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`LocalNetworkGateway + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`LocalNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -208,11 +214,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -285,6 +294,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`LocalNetworkGateway + ` :rtype: :class:`LocalNetworkGatewayPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/network_interfaces_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/network_interfaces_operations.py index 6c6830496aa2..e698c1f37449 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/network_interfaces_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/network_interfaces_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -36,6 +36,230 @@ def __init__(self, client, config, serializer, deserializer): self.config = config + 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` + """ + 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("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 + + 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` + """ + 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("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 + + 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` + """ + # 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("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('NetworkInterface', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + def delete( self, resource_group_name, network_interface_name, custom_headers=None, raw=False, **operation_config): """Deletes the specified network interface. @@ -47,11 +271,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -128,10 +355,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`NetworkInterface + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`NetworkInterface - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -194,12 +424,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`NetworkInterface - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -283,6 +516,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkInterface + ` :rtype: :class:`NetworkInterfacePaged ` :raises: :class:`CloudError` @@ -348,6 +583,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkInterface + ` :rtype: :class:`NetworkInterfacePaged ` :raises: :class:`CloudError` @@ -414,12 +651,15 @@ def get_effective_route_table( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`EffectiveRouteListResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -499,12 +739,15 @@ def list_effective_network_security_groups( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`EffectiveNetworkSecurityGroupListResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -572,220 +815,3 @@ def get_long_running_output(response): 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`. - :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.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("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 - - 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`. - :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.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("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 - - 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`. - :rtype: :class:`NetworkInterface - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: :class:`CloudError` - """ - # 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("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('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/v2016_09_01/operations/network_security_groups_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/network_security_groups_operations.py index 745223dde67e..f8d537aaf81a 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/network_security_groups_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/network_security_groups_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -48,11 +48,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -130,10 +133,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`NetworkSecurityGroup + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`NetworkSecurityGroup - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -198,12 +204,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`NetworkSecurityGroup - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -287,6 +296,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkSecurityGroup + ` :rtype: :class:`NetworkSecurityGroupPaged ` :raises: :class:`CloudError` @@ -352,6 +363,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkSecurityGroup + ` :rtype: :class:`NetworkSecurityGroupPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/network_watchers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/network_watchers_operations.py index 4aa5c1c30fc9..e2b172b2409f 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/network_watchers_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/network_watchers_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -53,10 +53,13 @@ def create_or_update( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`NetworkWatcher + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`NetworkWatcher - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -121,10 +124,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`NetworkWatcher + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`NetworkWatcher - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -181,11 +187,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -258,6 +267,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkWatcher + ` :rtype: :class:`NetworkWatcherPaged ` :raises: :class:`CloudError` @@ -322,6 +333,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkWatcher + ` :rtype: :class:`NetworkWatcherPaged ` :raises: :class:`CloudError` @@ -392,10 +405,13 @@ def get_topology( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`Topology + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`Topology - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.TopologyParameters(target_resource_group_name=target_resource_group_name) @@ -462,12 +478,15 @@ def verify_ip_flow( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VerificationIPFlowResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -557,12 +576,15 @@ def get_next_hop( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`NextHopResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -651,12 +673,15 @@ def get_vm_security_rules( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`SecurityGroupViewResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.SecurityGroupViewParameters(target_resource_id=target_resource_id) @@ -748,12 +773,15 @@ def get_troubleshooting( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`TroubleshootingResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -842,12 +870,15 @@ def get_troubleshooting_result( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`TroubleshootingResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.QueryTroubleshootingParameters(target_resource_id=target_resource_id) @@ -940,12 +971,15 @@ def set_flow_log_configuration( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`FlowLogInformation - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -1035,12 +1069,15 @@ def get_flow_log_status( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`FlowLogInformation - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.FlowLogStatusParameters(target_resource_id=target_resource_id) diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/packet_captures_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/packet_captures_operations.py index 0ede8bdf0e7e..4ded732e7058 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/packet_captures_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/packet_captures_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -53,12 +53,15 @@ def create( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`PacketCaptureResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -147,10 +150,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`PacketCaptureResult + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`PacketCaptureResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -210,11 +216,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -290,11 +299,14 @@ def stop( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -371,12 +383,15 @@ def get_status( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`PacketCaptureQueryStatusResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -461,6 +476,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`PacketCaptureResult + ` :rtype: :class:`PacketCaptureResultPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/public_ip_addresses_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/public_ip_addresses_operations.py index d9f4bc2f5fa1..57f61fee7f35 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/public_ip_addresses_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/public_ip_addresses_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`PublicIPAddress + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`PublicIPAddress - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -194,12 +200,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`PublicIPAddress - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -283,6 +292,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`PublicIPAddress + ` :rtype: :class:`PublicIPAddressPaged ` :raises: :class:`CloudError` @@ -348,6 +359,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`PublicIPAddress + ` :rtype: :class:`PublicIPAddressPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/route_tables_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/route_tables_operations.py index 1a8d425e7753..5e72218294b8 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/route_tables_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/route_tables_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`RouteTable + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`RouteTable - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -194,12 +200,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`RouteTable - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -285,6 +294,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`RouteTable + ` :rtype: :class:`RouteTablePaged ` :raises: :class:`CloudError` @@ -349,6 +360,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`RouteTable + ` :rtype: :class:`RouteTablePaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/routes_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/routes_operations.py index aa4131427139..608bc58ead87 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/routes_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/routes_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -49,11 +49,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -131,9 +134,11 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`Route ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`Route ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -197,12 +202,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`Route - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -291,6 +299,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`Route + ` :rtype: :class:`RoutePaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/security_rules_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/security_rules_operations.py index d7f4f021a3a7..c062baa324fe 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/security_rules_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/security_rules_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -50,11 +50,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -133,10 +136,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`SecurityRule + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`SecurityRule - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -202,12 +208,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`SecurityRule - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -297,6 +306,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`SecurityRule + ` :rtype: :class:`SecurityRulePaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/subnets_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/subnets_operations.py index df0d474b7a26..22a52c138c3c 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/subnets_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/subnets_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -49,11 +49,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -133,9 +136,12 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`Subnet + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`Subnet ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -201,12 +207,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`Subnet - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -295,6 +304,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`Subnet + ` :rtype: :class:`SubnetPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/usages_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/usages_operations.py index 920f8f035259..6d7c9ba7975d 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/usages_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/usages_operations.py @@ -9,9 +9,9 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError -import uuid from .. import models @@ -46,6 +46,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`Usage + ` :rtype: :class:`UsagePaged ` :raises: :class:`CloudError` @@ -56,7 +58,7 @@ def internal_paging(next_link=None, raw=False): # Construct URL url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/usages' path_format_arguments = { - 'location': self._serialize.url("location", location, 'str', pattern='^[-\w\._]+$'), + '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) diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/virtual_network_gateway_connections_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/virtual_network_gateway_connections_operations.py index 3cd2d4b0c640..ba1da479dba1 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/virtual_network_gateway_connections_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/virtual_network_gateway_connections_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -53,12 +53,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VirtualNetworkGatewayConnection ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -148,10 +151,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`VirtualNetworkGatewayConnection + ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`VirtualNetworkGatewayConnection ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -209,11 +215,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -292,12 +301,15 @@ def set_shared_key( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ConnectionSharedKey - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.ConnectionSharedKey(value=value) @@ -390,10 +402,13 @@ def get_shared_key( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ConnectionSharedKey + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ConnectionSharedKey - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -451,6 +466,9 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of + :class:`VirtualNetworkGatewayConnection + ` :rtype: :class:`VirtualNetworkGatewayConnectionPaged ` :raises: :class:`CloudError` @@ -524,12 +542,15 @@ def reset_shared_key( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ConnectionResetSharedKey - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.ConnectionResetSharedKey(key_length=key_length) diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/virtual_network_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/virtual_network_gateways_operations.py index e81db84cd270..d57a2c547365 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/virtual_network_gateways_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/virtual_network_gateways_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -53,12 +53,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VirtualNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -147,10 +150,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`VirtualNetworkGateway + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`VirtualNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -208,11 +214,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -285,6 +294,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`VirtualNetworkGateway + ` :rtype: :class:`VirtualNetworkGatewayPaged ` :raises: :class:`CloudError` @@ -356,12 +367,15 @@ def reset( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VirtualNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -452,9 +466,11 @@ def generatevpnclientpackage( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :rtype: str - :rtype: :class:`ClientRawResponse` - if raw=true + :return: str or + :class:`ClientRawResponse` if + raw=true + :rtype: str or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.VpnClientParameters(processor_architecture=processor_architecture) @@ -520,12 +536,15 @@ def get_bgp_peer_status( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`BgpPeerStatusListResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -609,12 +628,15 @@ def get_learned_routes( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`GatewayRouteListResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -698,12 +720,15 @@ def get_advertised_routes( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`GatewayRouteListResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/virtual_network_peerings_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/virtual_network_peerings_operations.py index 9d7f97e42e52..31811ab25912 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/virtual_network_peerings_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/virtual_network_peerings_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -50,11 +50,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -133,10 +136,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`VirtualNetworkPeering + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`VirtualNetworkPeering - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -201,12 +207,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VirtualNetworkPeering - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -295,6 +304,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`VirtualNetworkPeering + ` :rtype: :class:`VirtualNetworkPeeringPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/virtual_networks_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/virtual_networks_operations.py index d98daadd0fa8..2e8358df67fa 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/virtual_networks_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/virtual_networks_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`VirtualNetwork + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`VirtualNetwork - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -194,12 +200,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VirtualNetwork - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -283,6 +292,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`VirtualNetwork + ` :rtype: :class:`VirtualNetworkPaged ` :raises: :class:`CloudError` @@ -348,6 +359,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`VirtualNetwork + ` :rtype: :class:`VirtualNetworkPaged ` :raises: :class:`CloudError` @@ -418,10 +431,13 @@ def check_ip_address_availability( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`IPAddressAvailabilityResult + ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`IPAddressAvailabilityResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/version.py b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/version.py index 53a203f32aaf..e63d4addb017 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_09_01/version.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_09_01/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "" +VERSION = "2016-09-01" 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 14ec6fb26356..b3a190b81318 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.1.0", "date": "2017-06-27T17:39:40Z", "version": ""} \ No newline at end of file +{"autorest": "1.2.2", "date": "2017-08-16T18:25:35Z", "version": ""} \ No newline at end of file diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/__init__.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/__init__.py index 01ff970f3f38..416f99b9e5b5 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/__init__.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/__init__.py @@ -9,23 +9,24 @@ # regenerated. # -------------------------------------------------------------------------- +from .resource import Resource +from .network_interface_dns_settings import NetworkInterfaceDnsSettings from .sub_resource import SubResource +from .public_ip_address_dns_settings import PublicIPAddressDnsSettings +from .resource_navigation_link import ResourceNavigationLink +from .route import Route +from .security_rule import SecurityRule +from .application_gateway_backend_address import ApplicationGatewayBackendAddress +from .application_gateway_backend_address_pool import ApplicationGatewayBackendAddressPool from .backend_address_pool import BackendAddressPool from .inbound_nat_rule import InboundNatRule -from .security_rule import SecurityRule -from .network_interface_dns_settings import NetworkInterfaceDnsSettings +from .ip_configuration import IPConfiguration +from .public_ip_address import PublicIPAddress +from .network_interface_ip_configuration import NetworkInterfaceIPConfiguration from .network_interface import NetworkInterface from .network_security_group import NetworkSecurityGroup -from .route import Route from .route_table import RouteTable -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 @@ -46,7 +47,6 @@ from .application_gateway_url_path_map import ApplicationGatewayUrlPathMap from .application_gateway_web_application_firewall_configuration import ApplicationGatewayWebApplicationFirewallConfiguration from .application_gateway import ApplicationGateway -from .resource import Resource from .dns_name_availability_result import DnsNameAvailabilityResult from .express_route_circuit_authorization import ExpressRouteCircuitAuthorization from .express_route_circuit_peering_config import ExpressRouteCircuitPeeringConfig @@ -137,13 +137,13 @@ from .virtual_network_gateway_connection import VirtualNetworkGatewayConnection from .connection_reset_shared_key import ConnectionResetSharedKey from .connection_shared_key import ConnectionSharedKey +from .network_interface_paged import NetworkInterfacePaged from .application_gateway_paged import ApplicationGatewayPaged 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 .network_interface_paged import NetworkInterfacePaged from .network_security_group_paged import NetworkSecurityGroupPaged from .security_rule_paged import SecurityRulePaged from .network_watcher_paged import NetworkWatcherPaged @@ -162,13 +162,13 @@ from .virtual_network_gateway_connection_paged import VirtualNetworkGatewayConnectionPaged from .local_network_gateway_paged import LocalNetworkGatewayPaged from .network_management_client_enums import ( - TransportProtocol, - IPAllocationMethod, - IPVersion, + RouteNextHopType, SecurityRuleProtocol, SecurityRuleAccess, SecurityRuleDirection, - RouteNextHopType, + TransportProtocol, + IPAllocationMethod, + IPVersion, ApplicationGatewayProtocol, ApplicationGatewayCookieBasedAffinity, ApplicationGatewayBackendHealthServerHealth, @@ -211,23 +211,24 @@ ) __all__ = [ + 'Resource', + 'NetworkInterfaceDnsSettings', 'SubResource', + 'PublicIPAddressDnsSettings', + 'ResourceNavigationLink', + 'Route', + 'SecurityRule', + 'ApplicationGatewayBackendAddress', + 'ApplicationGatewayBackendAddressPool', 'BackendAddressPool', 'InboundNatRule', - 'SecurityRule', - 'NetworkInterfaceDnsSettings', + 'IPConfiguration', + 'PublicIPAddress', + 'NetworkInterfaceIPConfiguration', 'NetworkInterface', 'NetworkSecurityGroup', - 'Route', 'RouteTable', - 'PublicIPAddressDnsSettings', - 'PublicIPAddress', - 'IPConfiguration', - 'ResourceNavigationLink', 'Subnet', - 'NetworkInterfaceIPConfiguration', - 'ApplicationGatewayBackendAddress', - 'ApplicationGatewayBackendAddressPool', 'ApplicationGatewayConnectionDraining', 'ApplicationGatewayBackendHttpSettings', 'ApplicationGatewayBackendHealthServer', @@ -248,7 +249,6 @@ 'ApplicationGatewayUrlPathMap', 'ApplicationGatewayWebApplicationFirewallConfiguration', 'ApplicationGateway', - 'Resource', 'DnsNameAvailabilityResult', 'ExpressRouteCircuitAuthorization', 'ExpressRouteCircuitPeeringConfig', @@ -339,13 +339,13 @@ 'VirtualNetworkGatewayConnection', 'ConnectionResetSharedKey', 'ConnectionSharedKey', + 'NetworkInterfacePaged', 'ApplicationGatewayPaged', 'ExpressRouteCircuitAuthorizationPaged', 'ExpressRouteCircuitPeeringPaged', 'ExpressRouteCircuitPaged', 'ExpressRouteServiceProviderPaged', 'LoadBalancerPaged', - 'NetworkInterfacePaged', 'NetworkSecurityGroupPaged', 'SecurityRulePaged', 'NetworkWatcherPaged', @@ -363,13 +363,13 @@ 'VirtualNetworkGatewayPaged', 'VirtualNetworkGatewayConnectionPaged', 'LocalNetworkGatewayPaged', - 'TransportProtocol', - 'IPAllocationMethod', - 'IPVersion', + 'RouteNextHopType', 'SecurityRuleProtocol', 'SecurityRuleAccess', 'SecurityRuleDirection', - 'RouteNextHopType', + 'TransportProtocol', + 'IPAllocationMethod', + 'IPVersion', 'ApplicationGatewayProtocol', 'ApplicationGatewayCookieBasedAffinity', 'ApplicationGatewayBackendHealthServerHealth', diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/application_gateway_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/application_gateway_paged.py index 5dc094091ccc..bcedacc46a60 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/application_gateway_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/application_gateway_paged.py @@ -14,7 +14,7 @@ class ApplicationGatewayPaged(Paged): """ - A paging container for iterating over a list of ApplicationGateway object + A paging container for iterating over a list of :class:`ApplicationGateway ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/bgp_service_community_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/bgp_service_community_paged.py index daffc8da4d5a..15a4a1ea32ba 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/bgp_service_community_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/bgp_service_community_paged.py @@ -14,7 +14,7 @@ class BgpServiceCommunityPaged(Paged): """ - A paging container for iterating over a list of BgpServiceCommunity object + A paging container for iterating over a list of :class:`BgpServiceCommunity ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/express_route_circuit_authorization_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/express_route_circuit_authorization_paged.py index 9e25d3d46f5d..595071097460 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/express_route_circuit_authorization_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/express_route_circuit_authorization_paged.py @@ -14,7 +14,7 @@ class ExpressRouteCircuitAuthorizationPaged(Paged): """ - A paging container for iterating over a list of ExpressRouteCircuitAuthorization object + A paging container for iterating over a list of :class:`ExpressRouteCircuitAuthorization ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/express_route_circuit_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/express_route_circuit_paged.py index da73ad48e420..8170298c3c1b 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/express_route_circuit_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/express_route_circuit_paged.py @@ -14,7 +14,7 @@ class ExpressRouteCircuitPaged(Paged): """ - A paging container for iterating over a list of ExpressRouteCircuit object + A paging container for iterating over a list of :class:`ExpressRouteCircuit ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/express_route_circuit_peering_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/express_route_circuit_peering_paged.py index 58f59ae81a4b..ca7c7f33e7e4 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/express_route_circuit_peering_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/express_route_circuit_peering_paged.py @@ -14,7 +14,7 @@ class ExpressRouteCircuitPeeringPaged(Paged): """ - A paging container for iterating over a list of ExpressRouteCircuitPeering object + A paging container for iterating over a list of :class:`ExpressRouteCircuitPeering ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/express_route_service_provider_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/express_route_service_provider_paged.py index 5436d3b57bff..673165ec363e 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/express_route_service_provider_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/express_route_service_provider_paged.py @@ -14,7 +14,7 @@ class ExpressRouteServiceProviderPaged(Paged): """ - A paging container for iterating over a list of ExpressRouteServiceProvider object + A paging container for iterating over a list of :class:`ExpressRouteServiceProvider ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/load_balancer_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/load_balancer_paged.py index d370672335d8..df9453cdfabf 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/load_balancer_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/load_balancer_paged.py @@ -14,7 +14,7 @@ class LoadBalancerPaged(Paged): """ - A paging container for iterating over a list of LoadBalancer object + A paging container for iterating over a list of :class:`LoadBalancer ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/local_network_gateway_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/local_network_gateway_paged.py index 084cabd54e92..7ac0058e25df 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/local_network_gateway_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/local_network_gateway_paged.py @@ -14,7 +14,7 @@ class LocalNetworkGatewayPaged(Paged): """ - A paging container for iterating over a list of LocalNetworkGateway object + A paging container for iterating over a list of :class:`LocalNetworkGateway ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/network_interface_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/network_interface_paged.py index 80ef25a43c73..1e1bc8ce9274 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/network_interface_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/network_interface_paged.py @@ -14,7 +14,7 @@ class NetworkInterfacePaged(Paged): """ - A paging container for iterating over a list of NetworkInterface object + A paging container for iterating over a list of :class:`NetworkInterface ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/network_management_client_enums.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/network_management_client_enums.py index 3e80755793c3..4f5a411a8288 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/network_management_client_enums.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/network_management_client_enums.py @@ -12,22 +12,13 @@ from enum import Enum -class TransportProtocol(Enum): - - udp = "Udp" - tcp = "Tcp" - - -class IPAllocationMethod(Enum): - - static = "Static" - dynamic = "Dynamic" - - -class IPVersion(Enum): +class RouteNextHopType(Enum): - ipv4 = "IPv4" - ipv6 = "IPv6" + virtual_network_gateway = "VirtualNetworkGateway" + vnet_local = "VnetLocal" + internet = "Internet" + virtual_appliance = "VirtualAppliance" + none = "None" class SecurityRuleProtocol(Enum): @@ -49,13 +40,22 @@ class SecurityRuleDirection(Enum): outbound = "Outbound" -class RouteNextHopType(Enum): +class TransportProtocol(Enum): - virtual_network_gateway = "VirtualNetworkGateway" - vnet_local = "VnetLocal" - internet = "Internet" - virtual_appliance = "VirtualAppliance" - none = "None" + udp = "Udp" + tcp = "Tcp" + + +class IPAllocationMethod(Enum): + + static = "Static" + dynamic = "Dynamic" + + +class IPVersion(Enum): + + ipv4 = "IPv4" + ipv6 = "IPv6" class ApplicationGatewayProtocol(Enum): diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/network_security_group_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/network_security_group_paged.py index 784c34f9c988..b55245ed8114 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/network_security_group_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/network_security_group_paged.py @@ -14,7 +14,7 @@ class NetworkSecurityGroupPaged(Paged): """ - A paging container for iterating over a list of NetworkSecurityGroup object + A paging container for iterating over a list of :class:`NetworkSecurityGroup ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/network_watcher_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/network_watcher_paged.py index ec8d6661f054..a9bc621fe839 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/network_watcher_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/network_watcher_paged.py @@ -14,7 +14,7 @@ class NetworkWatcherPaged(Paged): """ - A paging container for iterating over a list of NetworkWatcher object + A paging container for iterating over a list of :class:`NetworkWatcher ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/packet_capture_result_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/packet_capture_result_paged.py index 5c58e48e659b..6b9882e4db2e 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/packet_capture_result_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/packet_capture_result_paged.py @@ -14,7 +14,7 @@ class PacketCaptureResultPaged(Paged): """ - A paging container for iterating over a list of PacketCaptureResult object + A paging container for iterating over a list of :class:`PacketCaptureResult ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/public_ip_address_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/public_ip_address_paged.py index e86263ccb4a4..034df5da9abf 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/public_ip_address_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/public_ip_address_paged.py @@ -14,7 +14,7 @@ class PublicIPAddressPaged(Paged): """ - A paging container for iterating over a list of PublicIPAddress object + A paging container for iterating over a list of :class:`PublicIPAddress ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/route_filter_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/route_filter_paged.py index f85821f96944..d561ec319b87 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/route_filter_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/route_filter_paged.py @@ -14,7 +14,7 @@ class RouteFilterPaged(Paged): """ - A paging container for iterating over a list of RouteFilter object + A paging container for iterating over a list of :class:`RouteFilter ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/route_filter_rule_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/route_filter_rule_paged.py index d0a00286743e..f16a1f66d276 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/route_filter_rule_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/route_filter_rule_paged.py @@ -14,7 +14,7 @@ class RouteFilterRulePaged(Paged): """ - A paging container for iterating over a list of RouteFilterRule object + A paging container for iterating over a list of :class:`RouteFilterRule ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/route_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/route_paged.py index df8a2fbbca40..3303e8839b00 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/route_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/route_paged.py @@ -14,7 +14,7 @@ class RoutePaged(Paged): """ - A paging container for iterating over a list of Route object + A paging container for iterating over a list of :class:`Route ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/route_table_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/route_table_paged.py index 5e2b3b385a4c..85bd428938a8 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/route_table_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/route_table_paged.py @@ -14,7 +14,7 @@ class RouteTablePaged(Paged): """ - A paging container for iterating over a list of RouteTable object + A paging container for iterating over a list of :class:`RouteTable ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/security_rule_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/security_rule_paged.py index 5d7ba44f9b9a..fc34ac72968c 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/security_rule_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/security_rule_paged.py @@ -14,7 +14,7 @@ class SecurityRulePaged(Paged): """ - A paging container for iterating over a list of SecurityRule object + A paging container for iterating over a list of :class:`SecurityRule ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/subnet_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/subnet_paged.py index 2bbe5a5cd31a..b51e10a1bcdd 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/subnet_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/subnet_paged.py @@ -14,7 +14,7 @@ class SubnetPaged(Paged): """ - A paging container for iterating over a list of Subnet object + A paging container for iterating over a list of :class:`Subnet ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/usage_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/usage_paged.py index f357b8c198be..8dc788104d82 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/usage_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/usage_paged.py @@ -14,7 +14,7 @@ class UsagePaged(Paged): """ - A paging container for iterating over a list of Usage object + A paging container for iterating over a list of :class:`Usage ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/virtual_network_gateway_connection_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/virtual_network_gateway_connection_paged.py index ea77037dfe72..752b1cb263da 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/virtual_network_gateway_connection_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/virtual_network_gateway_connection_paged.py @@ -14,7 +14,7 @@ class VirtualNetworkGatewayConnectionPaged(Paged): """ - A paging container for iterating over a list of VirtualNetworkGatewayConnection object + A paging container for iterating over a list of :class:`VirtualNetworkGatewayConnection ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/virtual_network_gateway_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/virtual_network_gateway_paged.py index 9a3806758ad1..cc5507cf71a6 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/virtual_network_gateway_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/virtual_network_gateway_paged.py @@ -14,7 +14,7 @@ class VirtualNetworkGatewayPaged(Paged): """ - A paging container for iterating over a list of VirtualNetworkGateway object + A paging container for iterating over a list of :class:`VirtualNetworkGateway ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/virtual_network_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/virtual_network_paged.py index 2959222e9930..ca09def3e1c3 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/virtual_network_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/virtual_network_paged.py @@ -14,7 +14,7 @@ class VirtualNetworkPaged(Paged): """ - A paging container for iterating over a list of VirtualNetwork object + A paging container for iterating over a list of :class:`VirtualNetwork ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/virtual_network_peering_paged.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/virtual_network_peering_paged.py index 1fb81948331d..8907a7fec6bd 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/virtual_network_peering_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/models/virtual_network_peering_paged.py @@ -14,7 +14,7 @@ class VirtualNetworkPeeringPaged(Paged): """ - A paging container for iterating over a list of VirtualNetworkPeering object + A paging container for iterating over a list of :class:`VirtualNetworkPeering ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/network_management_client.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/network_management_client.py index 24013eaa49b8..d9e5522ed58c 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/network_management_client.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/network_management_client.py @@ -17,13 +17,13 @@ from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller import uuid +from .operations.network_interfaces_operations import NetworkInterfacesOperations from .operations.application_gateways_operations import ApplicationGatewaysOperations 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.network_interfaces_operations import NetworkInterfacesOperations from .operations.network_security_groups_operations import NetworkSecurityGroupsOperations from .operations.security_rules_operations import SecurityRulesOperations from .operations.network_watchers_operations import NetworkWatchersOperations @@ -81,11 +81,13 @@ def __init__( class NetworkManagementClient(object): - """Composite Swagger for Network Client + """Network Client :ivar config: Configuration for client. :vartype config: NetworkManagementClientConfiguration + :ivar network_interfaces: NetworkInterfaces operations + :vartype network_interfaces: azure.mgmt.network.v2016_12_01.operations.NetworkInterfacesOperations :ivar application_gateways: ApplicationGateways operations :vartype application_gateways: azure.mgmt.network.v2016_12_01.operations.ApplicationGatewaysOperations :ivar express_route_circuit_authorizations: ExpressRouteCircuitAuthorizations operations @@ -98,8 +100,6 @@ class NetworkManagementClient(object): :vartype express_route_service_providers: azure.mgmt.network.v2016_12_01.operations.ExpressRouteServiceProvidersOperations :ivar load_balancers: LoadBalancers operations :vartype load_balancers: azure.mgmt.network.v2016_12_01.operations.LoadBalancersOperations - :ivar network_interfaces: NetworkInterfaces operations - :vartype network_interfaces: azure.mgmt.network.v2016_12_01.operations.NetworkInterfacesOperations :ivar network_security_groups: NetworkSecurityGroups operations :vartype network_security_groups: azure.mgmt.network.v2016_12_01.operations.NetworkSecurityGroupsOperations :ivar security_rules: SecurityRules operations @@ -152,9 +152,12 @@ def __init__( self._client = ServiceClient(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self.api_version = '2016-12-01' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) + self.network_interfaces = NetworkInterfacesOperations( + self._client, self.config, self._serialize, self._deserialize) self.application_gateways = ApplicationGatewaysOperations( self._client, self.config, self._serialize, self._deserialize) self.express_route_circuit_authorizations = ExpressRouteCircuitAuthorizationsOperations( @@ -167,8 +170,6 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.load_balancers = LoadBalancersOperations( self._client, self.config, self._serialize, self._deserialize) - self.network_interfaces = NetworkInterfacesOperations( - 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( @@ -220,14 +221,15 @@ def check_dns_name_availability( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`DnsNameAvailabilityResult + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`DnsNameAvailabilityResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ - api_version = "2016-12-01" - # Construct URL url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/CheckDnsNameAvailability' path_format_arguments = { @@ -240,7 +242,7 @@ def check_dns_name_availability( query_parameters = {} if domain_name_label is not None: 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') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') # Construct headers header_parameters = {} diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/__init__.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/__init__.py index 8b6eb9801575..9fc62b57d75a 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/__init__.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/__init__.py @@ -9,13 +9,13 @@ # regenerated. # -------------------------------------------------------------------------- +from .network_interfaces_operations import NetworkInterfacesOperations from .application_gateways_operations import ApplicationGatewaysOperations 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 .network_interfaces_operations import NetworkInterfacesOperations from .network_security_groups_operations import NetworkSecurityGroupsOperations from .security_rules_operations import SecurityRulesOperations from .network_watchers_operations import NetworkWatchersOperations @@ -35,13 +35,13 @@ from .local_network_gateways_operations import LocalNetworkGatewaysOperations __all__ = [ + 'NetworkInterfacesOperations', 'ApplicationGatewaysOperations', 'ExpressRouteCircuitAuthorizationsOperations', 'ExpressRouteCircuitPeeringsOperations', 'ExpressRouteCircuitsOperations', 'ExpressRouteServiceProvidersOperations', 'LoadBalancersOperations', - 'NetworkInterfacesOperations', 'NetworkSecurityGroupsOperations', 'SecurityRulesOperations', 'NetworkWatchersOperations', diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/application_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/application_gateways_operations.py index 92df7fff7bd0..10bbd35153cd 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/application_gateways_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/application_gateways_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -126,10 +129,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ApplicationGateway + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ApplicationGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -190,12 +196,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ApplicationGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -281,6 +290,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`ApplicationGateway + ` :rtype: :class:`ApplicationGatewayPaged ` :raises: :class:`CloudError` @@ -345,6 +356,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`ApplicationGateway + ` :rtype: :class:`ApplicationGatewayPaged ` :raises: :class:`CloudError` @@ -410,11 +423,14 @@ def start( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -487,11 +503,14 @@ def stop( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -568,12 +587,15 @@ def backend_health( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ApplicationGatewayBackendHealth ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/bgp_service_communities_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/bgp_service_communities_operations.py index a16370138e1c..c0bd8b96ac88 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/bgp_service_communities_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/bgp_service_communities_operations.py @@ -9,9 +9,9 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError -import uuid from .. import models @@ -44,6 +44,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`BgpServiceCommunity + ` :rtype: :class:`BgpServiceCommunityPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/express_route_circuit_authorizations_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/express_route_circuit_authorizations_operations.py index 2818ca8d4512..143b175e48e6 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/express_route_circuit_authorizations_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/express_route_circuit_authorizations_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -50,11 +50,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -133,10 +136,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ExpressRouteCircuitAuthorization + ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`ExpressRouteCircuitAuthorization ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -202,12 +208,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuitAuthorization ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -296,6 +305,9 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of + :class:`ExpressRouteCircuitAuthorization + ` :rtype: :class:`ExpressRouteCircuitAuthorizationPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/express_route_circuit_peerings_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/express_route_circuit_peerings_operations.py index 30e96f913445..ec84bd204023 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/express_route_circuit_peerings_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/express_route_circuit_peerings_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -49,11 +49,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -132,10 +135,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ExpressRouteCircuitPeering + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ExpressRouteCircuitPeering - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -199,12 +205,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuitPeering - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -293,6 +302,9 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of + :class:`ExpressRouteCircuitPeering + ` :rtype: :class:`ExpressRouteCircuitPeeringPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/express_route_circuits_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/express_route_circuits_operations.py index dfbd051eaf18..a7a637174926 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/express_route_circuits_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/express_route_circuits_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -126,10 +129,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ExpressRouteCircuit + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ExpressRouteCircuit - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -190,12 +196,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuit - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -286,12 +295,15 @@ def list_arp_table( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuitsArpTableListResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -378,13 +390,16 @@ def list_routes_table( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuitsRoutesTableListResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -471,13 +486,16 @@ def list_routes_table_summary( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuitsRoutesTableSummaryListResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -561,10 +579,13 @@ def get_stats( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ExpressRouteCircuitStats + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ExpressRouteCircuitStats - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -625,10 +646,13 @@ def get_peering_stats( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ExpressRouteCircuitStats + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ExpressRouteCircuitStats - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -686,6 +710,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`ExpressRouteCircuit + ` :rtype: :class:`ExpressRouteCircuitPaged ` :raises: :class:`CloudError` @@ -750,6 +776,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`ExpressRouteCircuit + ` :rtype: :class:`ExpressRouteCircuitPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/express_route_service_providers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/express_route_service_providers_operations.py index af5787e0090c..4d42a608d40c 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/express_route_service_providers_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/express_route_service_providers_operations.py @@ -9,9 +9,9 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError -import uuid from .. import models @@ -44,6 +44,9 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of + :class:`ExpressRouteServiceProvider + ` :rtype: :class:`ExpressRouteServiceProviderPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/load_balancers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/load_balancers_operations.py index 5662f03b4afb..7a8ede9d0d23 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/load_balancers_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/load_balancers_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`LoadBalancer + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`LoadBalancer - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -194,12 +200,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`LoadBalancer - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -283,6 +292,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`LoadBalancer + ` :rtype: :class:`LoadBalancerPaged ` :raises: :class:`CloudError` @@ -348,6 +359,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`LoadBalancer + ` :rtype: :class:`LoadBalancerPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/local_network_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/local_network_gateways_operations.py index 0cd0825d2fac..5fc4e9705b03 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/local_network_gateways_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/local_network_gateways_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -53,12 +53,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`LocalNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -147,10 +150,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`LocalNetworkGateway + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`LocalNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -208,11 +214,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -285,6 +294,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`LocalNetworkGateway + ` :rtype: :class:`LocalNetworkGatewayPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/network_interfaces_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/network_interfaces_operations.py index 9e0e805c45ac..049d0317a636 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/network_interfaces_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/network_interfaces_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -34,6 +34,236 @@ def __init__(self, client, config, serializer, deserializer): self.config = config + 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 = "2016-09-01" + + 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 = "2016-09-01" + + 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 = "2016-09-01" + + # 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 + def delete( self, resource_group_name, network_interface_name, custom_headers=None, raw=False, **operation_config): """Deletes the specified network interface. @@ -45,11 +275,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2016-12-01" @@ -128,10 +361,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`NetworkInterface + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`NetworkInterface - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2016-12-01" @@ -196,12 +432,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`NetworkInterface - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2016-12-01" @@ -287,6 +526,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkInterface + ` :rtype: :class:`NetworkInterfacePaged ` :raises: :class:`CloudError` @@ -354,6 +595,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkInterface + ` :rtype: :class:`NetworkInterfacePaged ` :raises: :class:`CloudError` @@ -422,12 +665,15 @@ def get_effective_route_table( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`EffectiveRouteListResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2016-12-01" @@ -509,12 +755,15 @@ def list_effective_network_security_groups( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`EffectiveNetworkSecurityGroupListResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2016-12-01" @@ -584,226 +833,3 @@ def get_long_running_output(response): 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`. - :rtype: :class:`NetworkInterfacePaged - ` - :raises: :class:`CloudError` - """ - api_version = "2016-09-01" - - 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`. - :rtype: :class:`NetworkInterfacePaged - ` - :raises: :class:`CloudError` - """ - api_version = "2016-09-01" - - 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`. - :rtype: :class:`NetworkInterface - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: :class:`CloudError` - """ - api_version = "2016-09-01" - - # 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/v2016_12_01/operations/network_security_groups_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/network_security_groups_operations.py index 71080add1e2c..d8f597fd265d 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/network_security_groups_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/network_security_groups_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -48,11 +48,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -130,10 +133,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`NetworkSecurityGroup + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`NetworkSecurityGroup - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -198,12 +204,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`NetworkSecurityGroup - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -287,6 +296,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkSecurityGroup + ` :rtype: :class:`NetworkSecurityGroupPaged ` :raises: :class:`CloudError` @@ -352,6 +363,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkSecurityGroup + ` :rtype: :class:`NetworkSecurityGroupPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/network_watchers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/network_watchers_operations.py index abe08cec6da4..c44024a09247 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/network_watchers_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/network_watchers_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -53,10 +53,13 @@ def create_or_update( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`NetworkWatcher + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`NetworkWatcher - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -121,10 +124,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`NetworkWatcher + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`NetworkWatcher - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -181,11 +187,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -258,6 +267,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkWatcher + ` :rtype: :class:`NetworkWatcherPaged ` :raises: :class:`CloudError` @@ -322,6 +333,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkWatcher + ` :rtype: :class:`NetworkWatcherPaged ` :raises: :class:`CloudError` @@ -392,10 +405,13 @@ def get_topology( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`Topology + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`Topology - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.TopologyParameters(target_resource_group_name=target_resource_group_name) @@ -462,12 +478,15 @@ def verify_ip_flow( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VerificationIPFlowResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -557,12 +576,15 @@ def get_next_hop( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`NextHopResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -651,12 +673,15 @@ def get_vm_security_rules( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`SecurityGroupViewResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.SecurityGroupViewParameters(target_resource_id=target_resource_id) @@ -748,12 +773,15 @@ def get_troubleshooting( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`TroubleshootingResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -842,12 +870,15 @@ def get_troubleshooting_result( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`TroubleshootingResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.QueryTroubleshootingParameters(target_resource_id=target_resource_id) @@ -940,12 +971,15 @@ def set_flow_log_configuration( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`FlowLogInformation - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -1035,12 +1069,15 @@ def get_flow_log_status( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`FlowLogInformation - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.FlowLogStatusParameters(target_resource_id=target_resource_id) diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/packet_captures_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/packet_captures_operations.py index 33744b28410b..03773717ec91 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/packet_captures_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/packet_captures_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -53,12 +53,15 @@ def create( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`PacketCaptureResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -147,10 +150,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`PacketCaptureResult + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`PacketCaptureResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -210,11 +216,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -290,11 +299,14 @@ def stop( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -371,12 +383,15 @@ def get_status( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`PacketCaptureQueryStatusResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -461,6 +476,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`PacketCaptureResult + ` :rtype: :class:`PacketCaptureResultPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/public_ip_addresses_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/public_ip_addresses_operations.py index e020e97f055d..6316b9f9288f 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/public_ip_addresses_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/public_ip_addresses_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`PublicIPAddress + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`PublicIPAddress - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -194,12 +200,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`PublicIPAddress - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -283,6 +292,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`PublicIPAddress + ` :rtype: :class:`PublicIPAddressPaged ` :raises: :class:`CloudError` @@ -348,6 +359,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`PublicIPAddress + ` :rtype: :class:`PublicIPAddressPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/route_filter_rules_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/route_filter_rules_operations.py index b8adef184bd3..b34923a74b69 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/route_filter_rules_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/route_filter_rules_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -49,11 +49,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -131,10 +134,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`RouteFilterRule + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`RouteFilterRule - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -198,12 +204,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`RouteFilterRule - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -296,12 +305,15 @@ def update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`RouteFilterRule - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -388,6 +400,8 @@ def list_by_route_filter( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`RouteFilterRule + ` :rtype: :class:`RouteFilterRulePaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/route_filters_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/route_filters_operations.py index 92ba292999dd..efdcbffda773 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/route_filters_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/route_filters_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`RouteFilter + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`RouteFilter - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -194,12 +200,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`RouteFilter - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -289,12 +298,15 @@ def update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`RouteFilter - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -378,6 +390,8 @@ def list_by_resource_group( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`RouteFilter + ` :rtype: :class:`RouteFilterPaged ` :raises: :class:`CloudError` @@ -442,6 +456,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`RouteFilter + ` :rtype: :class:`RouteFilterPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/route_tables_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/route_tables_operations.py index dc2a61db8b9f..0048dbfa022e 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/route_tables_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/route_tables_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`RouteTable + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`RouteTable - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -194,12 +200,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`RouteTable - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -285,6 +294,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`RouteTable + ` :rtype: :class:`RouteTablePaged ` :raises: :class:`CloudError` @@ -349,6 +360,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`RouteTable + ` :rtype: :class:`RouteTablePaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/routes_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/routes_operations.py index e27345c206d6..c3a48451640f 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/routes_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/routes_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -49,11 +49,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -131,9 +134,11 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`Route ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`Route ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -197,12 +202,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`Route - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -291,6 +299,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`Route + ` :rtype: :class:`RoutePaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/security_rules_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/security_rules_operations.py index 85920325e449..c4e91065da18 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/security_rules_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/security_rules_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -50,11 +50,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -133,10 +136,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`SecurityRule + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`SecurityRule - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -202,12 +208,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`SecurityRule - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -297,6 +306,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`SecurityRule + ` :rtype: :class:`SecurityRulePaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/subnets_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/subnets_operations.py index 4ff74ece4e45..ce32cd3762ca 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/subnets_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/subnets_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -49,11 +49,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -133,9 +136,12 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`Subnet + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`Subnet ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -201,12 +207,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`Subnet - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -295,6 +304,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`Subnet + ` :rtype: :class:`SubnetPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/usages_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/usages_operations.py index cbea1c095fbb..8249b2c966c2 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/usages_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/usages_operations.py @@ -9,9 +9,9 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError -import uuid from .. import models @@ -46,6 +46,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`Usage + ` :rtype: :class:`UsagePaged ` :raises: :class:`CloudError` @@ -56,7 +58,7 @@ def internal_paging(next_link=None, raw=False): # Construct URL url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/usages' path_format_arguments = { - 'location': self._serialize.url("location", location, 'str', pattern='^[-\w\._]+$'), + '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) diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/virtual_network_gateway_connections_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/virtual_network_gateway_connections_operations.py index 4adcd0f69dc5..5feca378bff5 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/virtual_network_gateway_connections_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/virtual_network_gateway_connections_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -53,12 +53,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VirtualNetworkGatewayConnection ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -148,10 +151,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`VirtualNetworkGatewayConnection + ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`VirtualNetworkGatewayConnection ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -209,11 +215,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -292,12 +301,15 @@ def set_shared_key( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ConnectionSharedKey - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.ConnectionSharedKey(value=value) @@ -390,10 +402,13 @@ def get_shared_key( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ConnectionSharedKey + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ConnectionSharedKey - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -451,6 +466,9 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of + :class:`VirtualNetworkGatewayConnection + ` :rtype: :class:`VirtualNetworkGatewayConnectionPaged ` :raises: :class:`CloudError` @@ -524,12 +542,15 @@ def reset_shared_key( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ConnectionResetSharedKey - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.ConnectionResetSharedKey(key_length=key_length) diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/virtual_network_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/virtual_network_gateways_operations.py index 635821212852..175cc7f5e714 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/virtual_network_gateways_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/virtual_network_gateways_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -53,12 +53,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VirtualNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -147,10 +150,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`VirtualNetworkGateway + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`VirtualNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -208,11 +214,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -285,6 +294,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`VirtualNetworkGateway + ` :rtype: :class:`VirtualNetworkGatewayPaged ` :raises: :class:`CloudError` @@ -356,12 +367,15 @@ def reset( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VirtualNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -452,9 +466,11 @@ def generatevpnclientpackage( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :rtype: str - :rtype: :class:`ClientRawResponse` - if raw=true + :return: str or + :class:`ClientRawResponse` if + raw=true + :rtype: str or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.VpnClientParameters(processor_architecture=processor_architecture) @@ -520,12 +536,15 @@ def get_bgp_peer_status( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`BgpPeerStatusListResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -609,12 +628,15 @@ def get_learned_routes( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`GatewayRouteListResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -698,12 +720,15 @@ def get_advertised_routes( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`GatewayRouteListResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/virtual_network_peerings_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/virtual_network_peerings_operations.py index 4ccfd4a8ffc8..ca054d8b2938 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/virtual_network_peerings_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/virtual_network_peerings_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -50,11 +50,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -133,10 +136,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`VirtualNetworkPeering + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`VirtualNetworkPeering - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -201,12 +207,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VirtualNetworkPeering - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -295,6 +304,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`VirtualNetworkPeering + ` :rtype: :class:`VirtualNetworkPeeringPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/virtual_networks_operations.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/virtual_networks_operations.py index 0e157575ed49..51458733f32f 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/virtual_networks_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/operations/virtual_networks_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`VirtualNetwork + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`VirtualNetwork - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -194,12 +200,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VirtualNetwork - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -283,6 +292,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`VirtualNetwork + ` :rtype: :class:`VirtualNetworkPaged ` :raises: :class:`CloudError` @@ -348,6 +359,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`VirtualNetwork + ` :rtype: :class:`VirtualNetworkPaged ` :raises: :class:`CloudError` @@ -418,10 +431,13 @@ def check_ip_address_availability( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`IPAddressAvailabilityResult + ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`IPAddressAvailabilityResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL diff --git a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/version.py b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/version.py index 53a203f32aaf..eb083cbe85ea 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2016_12_01/version.py +++ b/azure-mgmt-network/azure/mgmt/network/v2016_12_01/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "" +VERSION = "2016-12-01" diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/__init__.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/__init__.py old mode 100755 new mode 100644 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 35858a599542..50eeb1eb8623 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.1.0", "date": "2017-07-03T19:01:34Z", "version": ""} \ No newline at end of file +{"autorest": "1.2.2", "date": "2017-08-16T18:26:10Z", "version": ""} \ No newline at end of file diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/__init__.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/__init__.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/address_space.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/address_space.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_authentication_certificate.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_authentication_certificate.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_available_waf_rule_sets_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_available_waf_rule_sets_result.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_backend_address.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_backend_address.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_backend_address_pool.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_backend_address_pool.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_backend_health.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_backend_health.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_backend_health_http_settings.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_backend_health_http_settings.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_backend_health_pool.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_backend_health_pool.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_backend_health_server.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_backend_health_server.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_backend_http_settings.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_backend_http_settings.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_connection_draining.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_connection_draining.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_firewall_disabled_rule_group.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_firewall_disabled_rule_group.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_firewall_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_firewall_rule.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_firewall_rule_group.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_firewall_rule_group.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_firewall_rule_set.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_firewall_rule_set.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_frontend_ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_frontend_ip_configuration.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_frontend_port.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_frontend_port.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_http_listener.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_http_listener.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_ip_configuration.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_paged.py old mode 100755 new mode 100644 index 5dc094091ccc..47dc5ff7495c --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_paged.py @@ -14,7 +14,7 @@ class ApplicationGatewayPaged(Paged): """ - A paging container for iterating over a list of ApplicationGateway object + A paging container for iterating over a list of :class:`ApplicationGateway ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_path_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_path_rule.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_probe.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_probe.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_request_routing_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_request_routing_rule.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_sku.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_sku.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_ssl_certificate.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_ssl_certificate.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_ssl_policy.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_ssl_policy.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_url_path_map.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_url_path_map.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_web_application_firewall_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/application_gateway_web_application_firewall_configuration.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/azure_async_operation_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/azure_async_operation_result.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/backend_address_pool.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/backend_address_pool.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/bgp_community.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/bgp_community.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/bgp_peer_status.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/bgp_peer_status.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/bgp_peer_status_list_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/bgp_peer_status_list_result.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/bgp_service_community.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/bgp_service_community.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/bgp_service_community_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/bgp_service_community_paged.py old mode 100755 new mode 100644 index daffc8da4d5a..b12c037e63f8 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/bgp_service_community_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/bgp_service_community_paged.py @@ -14,7 +14,7 @@ class BgpServiceCommunityPaged(Paged): """ - A paging container for iterating over a list of BgpServiceCommunity object + A paging container for iterating over a list of :class:`BgpServiceCommunity ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/bgp_settings.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/bgp_settings.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/connection_reset_shared_key.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/connection_reset_shared_key.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/connection_shared_key.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/connection_shared_key.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/connectivity_destination.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/connectivity_destination.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/connectivity_hop.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/connectivity_hop.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/connectivity_information.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/connectivity_information.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/connectivity_issue.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/connectivity_issue.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/connectivity_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/connectivity_parameters.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/connectivity_source.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/connectivity_source.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/dhcp_options.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/dhcp_options.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/dns_name_availability_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/dns_name_availability_result.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/effective_network_security_group.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/effective_network_security_group.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/effective_network_security_group_association.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/effective_network_security_group_association.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/effective_network_security_group_list_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/effective_network_security_group_list_result.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/effective_network_security_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/effective_network_security_rule.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/effective_route.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/effective_route.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/effective_route_list_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/effective_route_list_result.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/error.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/error.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/error_details.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/error_details.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_arp_table.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_arp_table.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_authorization.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_authorization.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_authorization_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_authorization_paged.py old mode 100755 new mode 100644 index 9e25d3d46f5d..9ba36e80e54d --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_authorization_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_authorization_paged.py @@ -14,7 +14,7 @@ class ExpressRouteCircuitAuthorizationPaged(Paged): """ - A paging container for iterating over a list of ExpressRouteCircuitAuthorization object + A paging container for iterating over a list of :class:`ExpressRouteCircuitAuthorization ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_paged.py old mode 100755 new mode 100644 index da73ad48e420..dd89d63e7cb4 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_paged.py @@ -14,7 +14,7 @@ class ExpressRouteCircuitPaged(Paged): """ - A paging container for iterating over a list of ExpressRouteCircuit object + A paging container for iterating over a list of :class:`ExpressRouteCircuit ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_peering.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_peering.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_peering_config.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_peering_config.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_peering_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_peering_paged.py old mode 100755 new mode 100644 index 58f59ae81a4b..fb8b359dfd7a --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_peering_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_peering_paged.py @@ -14,7 +14,7 @@ class ExpressRouteCircuitPeeringPaged(Paged): """ - A paging container for iterating over a list of ExpressRouteCircuitPeering object + A paging container for iterating over a list of :class:`ExpressRouteCircuitPeering ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_routes_table.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_routes_table.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_routes_table_summary.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_routes_table_summary.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_service_provider_properties.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_service_provider_properties.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_sku.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_sku.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_stats.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_stats.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuits_arp_table_list_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuits_arp_table_list_result.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuits_routes_table_list_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuits_routes_table_list_result.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuits_routes_table_summary_list_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuits_routes_table_summary_list_result.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_service_provider.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_service_provider.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_service_provider_bandwidths_offered.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_service_provider_bandwidths_offered.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_service_provider_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_service_provider_paged.py old mode 100755 new mode 100644 index 5436d3b57bff..a5fe8361a159 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_service_provider_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_service_provider_paged.py @@ -14,7 +14,7 @@ class ExpressRouteServiceProviderPaged(Paged): """ - A paging container for iterating over a list of ExpressRouteServiceProvider object + A paging container for iterating over a list of :class:`ExpressRouteServiceProvider ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/flow_log_information.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/flow_log_information.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/flow_log_status_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/flow_log_status_parameters.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/frontend_ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/frontend_ip_configuration.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/gateway_route.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/gateway_route.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/gateway_route_list_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/gateway_route_list_result.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/inbound_nat_pool.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/inbound_nat_pool.py old mode 100755 new mode 100644 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 old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/ip_address_availability_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/ip_address_availability_result.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/ip_configuration.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/ipsec_policy.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/ipsec_policy.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/load_balancer.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/load_balancer.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/load_balancer_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/load_balancer_paged.py old mode 100755 new mode 100644 index d370672335d8..f2bf1eb1680e --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/load_balancer_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/load_balancer_paged.py @@ -14,7 +14,7 @@ class LoadBalancerPaged(Paged): """ - A paging container for iterating over a list of LoadBalancer object + A paging container for iterating over a list of :class:`LoadBalancer ` object """ _attribute_map = { 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 old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/local_network_gateway.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/local_network_gateway.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/local_network_gateway_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/local_network_gateway_paged.py old mode 100755 new mode 100644 index 084cabd54e92..c84285569c79 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/local_network_gateway_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/local_network_gateway_paged.py @@ -14,7 +14,7 @@ class LocalNetworkGatewayPaged(Paged): """ - A paging container for iterating over a list of LocalNetworkGateway object + A paging container for iterating over a list of :class:`LocalNetworkGateway ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_interface.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_interface.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_interface_association.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_interface_association.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_interface_dns_settings.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_interface_dns_settings.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_interface_ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_interface_ip_configuration.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_interface_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_interface_paged.py old mode 100755 new mode 100644 index 80ef25a43c73..fcf652d10e83 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_interface_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_interface_paged.py @@ -14,7 +14,7 @@ class NetworkInterfacePaged(Paged): """ - A paging container for iterating over a list of NetworkInterface object + A paging container for iterating over a list of :class:`NetworkInterface ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_management_client_enums.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_management_client_enums.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_security_group.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_security_group.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_security_group_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_security_group_paged.py old mode 100755 new mode 100644 index 784c34f9c988..85a85109d79e --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_security_group_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_security_group_paged.py @@ -14,7 +14,7 @@ class NetworkSecurityGroupPaged(Paged): """ - A paging container for iterating over a list of NetworkSecurityGroup object + A paging container for iterating over a list of :class:`NetworkSecurityGroup ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_watcher.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_watcher.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_watcher_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_watcher_paged.py old mode 100755 new mode 100644 index ec8d6661f054..a45098811d96 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_watcher_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/network_watcher_paged.py @@ -14,7 +14,7 @@ class NetworkWatcherPaged(Paged): """ - A paging container for iterating over a list of NetworkWatcher object + A paging container for iterating over a list of :class:`NetworkWatcher ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/next_hop_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/next_hop_parameters.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/next_hop_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/next_hop_result.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/outbound_nat_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/outbound_nat_rule.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/packet_capture.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/packet_capture.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/packet_capture_filter.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/packet_capture_filter.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/packet_capture_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/packet_capture_parameters.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/packet_capture_query_status_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/packet_capture_query_status_result.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/packet_capture_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/packet_capture_result.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/packet_capture_result_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/packet_capture_result_paged.py old mode 100755 new mode 100644 index 5c58e48e659b..555ebe774a47 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/packet_capture_result_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/packet_capture_result_paged.py @@ -14,7 +14,7 @@ class PacketCaptureResultPaged(Paged): """ - A paging container for iterating over a list of PacketCaptureResult object + A paging container for iterating over a list of :class:`PacketCaptureResult ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/packet_capture_storage_location.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/packet_capture_storage_location.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/patch_route_filter.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/patch_route_filter.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/patch_route_filter_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/patch_route_filter_rule.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/probe.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/probe.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/public_ip_address.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/public_ip_address.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/public_ip_address_dns_settings.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/public_ip_address_dns_settings.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/public_ip_address_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/public_ip_address_paged.py old mode 100755 new mode 100644 index e86263ccb4a4..87ac11d289da --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/public_ip_address_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/public_ip_address_paged.py @@ -14,7 +14,7 @@ class PublicIPAddressPaged(Paged): """ - A paging container for iterating over a list of PublicIPAddress object + A paging container for iterating over a list of :class:`PublicIPAddress ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/query_troubleshooting_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/query_troubleshooting_parameters.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/resource.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/resource.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/resource_navigation_link.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/resource_navigation_link.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/retention_policy_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/retention_policy_parameters.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/route.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/route.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/route_filter.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/route_filter.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/route_filter_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/route_filter_paged.py old mode 100755 new mode 100644 index f85821f96944..a1b64511bcbe --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/route_filter_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/route_filter_paged.py @@ -14,7 +14,7 @@ class RouteFilterPaged(Paged): """ - A paging container for iterating over a list of RouteFilter object + A paging container for iterating over a list of :class:`RouteFilter ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/route_filter_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/route_filter_rule.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/route_filter_rule_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/route_filter_rule_paged.py old mode 100755 new mode 100644 index d0a00286743e..6741e6f61581 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/route_filter_rule_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/route_filter_rule_paged.py @@ -14,7 +14,7 @@ class RouteFilterRulePaged(Paged): """ - A paging container for iterating over a list of RouteFilterRule object + A paging container for iterating over a list of :class:`RouteFilterRule ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/route_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/route_paged.py old mode 100755 new mode 100644 index df8a2fbbca40..c7e7288f2e34 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/route_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/route_paged.py @@ -14,7 +14,7 @@ class RoutePaged(Paged): """ - A paging container for iterating over a list of Route object + A paging container for iterating over a list of :class:`Route ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/route_table.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/route_table.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/route_table_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/route_table_paged.py old mode 100755 new mode 100644 index 5e2b3b385a4c..f964ef087175 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/route_table_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/route_table_paged.py @@ -14,7 +14,7 @@ class RouteTablePaged(Paged): """ - A paging container for iterating over a list of RouteTable object + A paging container for iterating over a list of :class:`RouteTable ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/security_group_network_interface.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/security_group_network_interface.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/security_group_view_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/security_group_view_parameters.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/security_group_view_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/security_group_view_result.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/security_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/security_rule.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/security_rule_associations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/security_rule_associations.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/security_rule_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/security_rule_paged.py old mode 100755 new mode 100644 index 5d7ba44f9b9a..0c46fd84804a --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/security_rule_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/security_rule_paged.py @@ -14,7 +14,7 @@ class SecurityRulePaged(Paged): """ - A paging container for iterating over a list of SecurityRule object + A paging container for iterating over a list of :class:`SecurityRule ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/sub_resource.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/sub_resource.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/subnet.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/subnet.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/subnet_association.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/subnet_association.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/subnet_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/subnet_paged.py old mode 100755 new mode 100644 index 2bbe5a5cd31a..6ddf796be582 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/subnet_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/subnet_paged.py @@ -14,7 +14,7 @@ class SubnetPaged(Paged): """ - A paging container for iterating over a list of Subnet object + A paging container for iterating over a list of :class:`Subnet ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/topology.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/topology.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/topology_association.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/topology_association.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/topology_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/topology_parameters.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/topology_resource.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/topology_resource.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/troubleshooting_details.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/troubleshooting_details.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/troubleshooting_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/troubleshooting_parameters.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/troubleshooting_recommended_actions.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/troubleshooting_recommended_actions.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/troubleshooting_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/troubleshooting_result.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/tunnel_connection_health.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/tunnel_connection_health.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/usage.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/usage.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/usage_name.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/usage_name.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/usage_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/usage_paged.py old mode 100755 new mode 100644 index f357b8c198be..b1b0a8631029 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/usage_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/usage_paged.py @@ -14,7 +14,7 @@ class UsagePaged(Paged): """ - A paging container for iterating over a list of Usage object + A paging container for iterating over a list of :class:`Usage ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/verification_ip_flow_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/verification_ip_flow_parameters.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/verification_ip_flow_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/verification_ip_flow_result.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_gateway.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_gateway.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_gateway_connection.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_gateway_connection.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_gateway_connection_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_gateway_connection_paged.py old mode 100755 new mode 100644 index ea77037dfe72..6326b8895749 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_gateway_connection_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_gateway_connection_paged.py @@ -14,7 +14,7 @@ class VirtualNetworkGatewayConnectionPaged(Paged): """ - A paging container for iterating over a list of VirtualNetworkGatewayConnection object + A paging container for iterating over a list of :class:`VirtualNetworkGatewayConnection ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_gateway_ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_gateway_ip_configuration.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_gateway_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_gateway_paged.py old mode 100755 new mode 100644 index 9a3806758ad1..4045673d9396 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_gateway_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_gateway_paged.py @@ -14,7 +14,7 @@ class VirtualNetworkGatewayPaged(Paged): """ - A paging container for iterating over a list of VirtualNetworkGateway object + A paging container for iterating over a list of :class:`VirtualNetworkGateway ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_gateway_sku.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_gateway_sku.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_paged.py old mode 100755 new mode 100644 index 2959222e9930..08f6ae34ef46 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_paged.py @@ -14,7 +14,7 @@ class VirtualNetworkPaged(Paged): """ - A paging container for iterating over a list of VirtualNetwork object + A paging container for iterating over a list of :class:`VirtualNetwork ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_peering.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_peering.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_peering_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_peering_paged.py old mode 100755 new mode 100644 index 1fb81948331d..cf8ee4403218 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_peering_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_peering_paged.py @@ -14,7 +14,7 @@ class VirtualNetworkPeeringPaged(Paged): """ - A paging container for iterating over a list of VirtualNetworkPeering object + A paging container for iterating over a list of :class:`VirtualNetworkPeering ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_usage_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_usage_paged.py index a77b05f4714c..8803b04bc7a8 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_usage_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/virtual_network_usage_paged.py @@ -14,7 +14,7 @@ class VirtualNetworkUsagePaged(Paged): """ - A paging container for iterating over a list of VirtualNetworkUsage object + A paging container for iterating over a list of :class:`VirtualNetworkUsage ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/vpn_client_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/vpn_client_configuration.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/vpn_client_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/vpn_client_parameters.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/vpn_client_revoked_certificate.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/vpn_client_revoked_certificate.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/vpn_client_root_certificate.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/vpn_client_root_certificate.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/network_management_client.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/network_management_client.py old mode 100755 new mode 100644 index f5b9514f8af3..85d41188d9e9 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/network_management_client.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/network_management_client.py @@ -81,7 +81,7 @@ def __init__( class NetworkManagementClient(object): - """Composite Swagger for Network Client + """Network Client :ivar config: Configuration for client. :vartype config: NetworkManagementClientConfiguration @@ -220,10 +220,13 @@ def check_dns_name_availability( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`DnsNameAvailabilityResult + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`DnsNameAvailabilityResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2017-03-01" diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/__init__.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/__init__.py old mode 100755 new mode 100644 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/application_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/application_gateways_operations.py old mode 100755 new mode 100644 index 414cabb9606e..a945985ed147 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/application_gateways_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/application_gateways_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -126,10 +129,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ApplicationGateway + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ApplicationGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -190,12 +196,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ApplicationGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -281,6 +290,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`ApplicationGateway + ` :rtype: :class:`ApplicationGatewayPaged ` :raises: :class:`CloudError` @@ -345,6 +356,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`ApplicationGateway + ` :rtype: :class:`ApplicationGatewayPaged ` :raises: :class:`CloudError` @@ -410,11 +423,14 @@ def start( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -487,11 +503,14 @@ def stop( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -568,12 +587,15 @@ def backend_health( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ApplicationGatewayBackendHealth ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -653,10 +675,13 @@ def list_available_waf_rule_sets( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ApplicationGatewayAvailableWafRuleSetsResult + ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`ApplicationGatewayAvailableWafRuleSetsResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/bgp_service_communities_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/bgp_service_communities_operations.py old mode 100755 new mode 100644 index e2db3ad8012a..5033c8c6336b --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/bgp_service_communities_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/bgp_service_communities_operations.py @@ -9,9 +9,9 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError -import uuid from .. import models @@ -44,6 +44,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`BgpServiceCommunity + ` :rtype: :class:`BgpServiceCommunityPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/express_route_circuit_authorizations_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/express_route_circuit_authorizations_operations.py old mode 100755 new mode 100644 index e6735379b835..5a2151308728 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/express_route_circuit_authorizations_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/express_route_circuit_authorizations_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -50,11 +50,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -133,10 +136,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ExpressRouteCircuitAuthorization + ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`ExpressRouteCircuitAuthorization ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -202,12 +208,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuitAuthorization ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -296,6 +305,9 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of + :class:`ExpressRouteCircuitAuthorization + ` :rtype: :class:`ExpressRouteCircuitAuthorizationPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/express_route_circuit_peerings_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/express_route_circuit_peerings_operations.py old mode 100755 new mode 100644 index 782bda2726cd..aae9cdaaacd0 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/express_route_circuit_peerings_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/express_route_circuit_peerings_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -49,11 +49,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -132,10 +135,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ExpressRouteCircuitPeering + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ExpressRouteCircuitPeering - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -199,12 +205,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuitPeering - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -293,6 +302,9 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of + :class:`ExpressRouteCircuitPeering + ` :rtype: :class:`ExpressRouteCircuitPeeringPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/express_route_circuits_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/express_route_circuits_operations.py old mode 100755 new mode 100644 index 8ce9e22e0065..e5fe37748f15 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/express_route_circuits_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/express_route_circuits_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -126,10 +129,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ExpressRouteCircuit + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ExpressRouteCircuit - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -190,12 +196,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuit - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -286,12 +295,15 @@ def list_arp_table( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuitsArpTableListResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -378,13 +390,16 @@ def list_routes_table( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuitsRoutesTableListResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -471,13 +486,16 @@ def list_routes_table_summary( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuitsRoutesTableSummaryListResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -561,10 +579,13 @@ def get_stats( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ExpressRouteCircuitStats + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ExpressRouteCircuitStats - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -625,10 +646,13 @@ def get_peering_stats( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ExpressRouteCircuitStats + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ExpressRouteCircuitStats - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -686,6 +710,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`ExpressRouteCircuit + ` :rtype: :class:`ExpressRouteCircuitPaged ` :raises: :class:`CloudError` @@ -750,6 +776,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`ExpressRouteCircuit + ` :rtype: :class:`ExpressRouteCircuitPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/express_route_service_providers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/express_route_service_providers_operations.py old mode 100755 new mode 100644 index eebd9ed5bee9..f11695023783 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/express_route_service_providers_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/express_route_service_providers_operations.py @@ -9,9 +9,9 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError -import uuid from .. import models @@ -44,6 +44,9 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of + :class:`ExpressRouteServiceProvider + ` :rtype: :class:`ExpressRouteServiceProviderPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/load_balancers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/load_balancers_operations.py old mode 100755 new mode 100644 index 973f5e1c8c65..8f8186510ec0 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/load_balancers_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/load_balancers_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`LoadBalancer + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`LoadBalancer - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -194,12 +200,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`LoadBalancer - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -283,6 +292,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`LoadBalancer + ` :rtype: :class:`LoadBalancerPaged ` :raises: :class:`CloudError` @@ -348,6 +359,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`LoadBalancer + ` :rtype: :class:`LoadBalancerPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/local_network_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/local_network_gateways_operations.py old mode 100755 new mode 100644 index 68df142519b8..79f61ea9a6db --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/local_network_gateways_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/local_network_gateways_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -53,12 +53,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`LocalNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -147,10 +150,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`LocalNetworkGateway + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`LocalNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -208,11 +214,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -285,6 +294,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`LocalNetworkGateway + ` :rtype: :class:`LocalNetworkGatewayPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/network_interfaces_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/network_interfaces_operations.py old mode 100755 new mode 100644 index 27dedd1bbcea..b480be060288 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/network_interfaces_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/network_interfaces_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -45,11 +45,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2017-03-01" @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`NetworkInterface + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`NetworkInterface - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2017-03-01" @@ -196,12 +202,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`NetworkInterface - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2017-03-01" @@ -287,6 +296,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkInterface + ` :rtype: :class:`NetworkInterfacePaged ` :raises: :class:`CloudError` @@ -354,6 +365,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkInterface + ` :rtype: :class:`NetworkInterfacePaged ` :raises: :class:`CloudError` @@ -422,12 +435,15 @@ def get_effective_route_table( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`EffectiveRouteListResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2017-03-01" @@ -509,12 +525,15 @@ def list_effective_network_security_groups( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`EffectiveNetworkSecurityGroupListResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2017-03-01" @@ -602,6 +621,8 @@ def list_virtual_machine_scale_set_vm_network_interfaces( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkInterface + ` :rtype: :class:`NetworkInterfacePaged ` :raises: :class:`CloudError` @@ -675,6 +696,8 @@ def list_virtual_machine_scale_set_network_interfaces( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkInterface + ` :rtype: :class:`NetworkInterfacePaged ` :raises: :class:`CloudError` @@ -753,10 +776,13 @@ def get_virtual_machine_scale_set_network_interface( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`NetworkInterface + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`NetworkInterface - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2017-03-30" diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/network_security_groups_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/network_security_groups_operations.py old mode 100755 new mode 100644 index c4bfcb16df2d..34fb2e8c4d11 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/network_security_groups_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/network_security_groups_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -48,11 +48,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -130,10 +133,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`NetworkSecurityGroup + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`NetworkSecurityGroup - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -198,12 +204,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`NetworkSecurityGroup - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -287,6 +296,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkSecurityGroup + ` :rtype: :class:`NetworkSecurityGroupPaged ` :raises: :class:`CloudError` @@ -352,6 +363,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkSecurityGroup + ` :rtype: :class:`NetworkSecurityGroupPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/network_watchers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/network_watchers_operations.py old mode 100755 new mode 100644 index ac4b207bebf9..0bceaf44ebac --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/network_watchers_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/network_watchers_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -53,10 +53,13 @@ def create_or_update( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`NetworkWatcher + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`NetworkWatcher - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -121,10 +124,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`NetworkWatcher + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`NetworkWatcher - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -181,11 +187,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -258,6 +267,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkWatcher + ` :rtype: :class:`NetworkWatcherPaged ` :raises: :class:`CloudError` @@ -322,6 +333,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkWatcher + ` :rtype: :class:`NetworkWatcherPaged ` :raises: :class:`CloudError` @@ -392,10 +405,13 @@ def get_topology( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`Topology + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`Topology - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.TopologyParameters(target_resource_group_name=target_resource_group_name) @@ -462,12 +478,15 @@ def verify_ip_flow( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VerificationIPFlowResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -557,12 +576,15 @@ def get_next_hop( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`NextHopResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -651,12 +673,15 @@ def get_vm_security_rules( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`SecurityGroupViewResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.SecurityGroupViewParameters(target_resource_id=target_resource_id) @@ -748,12 +773,15 @@ def get_troubleshooting( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`TroubleshootingResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -842,12 +870,15 @@ def get_troubleshooting_result( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`TroubleshootingResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.QueryTroubleshootingParameters(target_resource_id=target_resource_id) @@ -940,12 +971,15 @@ def set_flow_log_configuration( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`FlowLogInformation - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -1035,12 +1069,15 @@ def get_flow_log_status( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`FlowLogInformation - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.FlowLogStatusParameters(target_resource_id=target_resource_id) @@ -1137,12 +1174,15 @@ def check_connectivity( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ConnectivityInformation - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.ConnectivityParameters(source=source, destination=destination) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/packet_captures_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/packet_captures_operations.py old mode 100755 new mode 100644 index 1ca2159c9512..1f28c3bd7bff --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/packet_captures_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/packet_captures_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -53,12 +53,15 @@ def create( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`PacketCaptureResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -147,10 +150,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`PacketCaptureResult + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`PacketCaptureResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -210,11 +216,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -290,11 +299,14 @@ def stop( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -371,12 +383,15 @@ def get_status( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`PacketCaptureQueryStatusResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -461,6 +476,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`PacketCaptureResult + ` :rtype: :class:`PacketCaptureResultPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/public_ip_addresses_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/public_ip_addresses_operations.py old mode 100755 new mode 100644 index d84347b561ab..9189c877b661 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/public_ip_addresses_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/public_ip_addresses_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -45,11 +45,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2017-03-01" @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`PublicIPAddress + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`PublicIPAddress - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2017-03-01" @@ -196,12 +202,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`PublicIPAddress - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2017-03-01" @@ -287,6 +296,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`PublicIPAddress + ` :rtype: :class:`PublicIPAddressPaged ` :raises: :class:`CloudError` @@ -354,6 +365,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`PublicIPAddress + ` :rtype: :class:`PublicIPAddressPaged ` :raises: :class:`CloudError` @@ -426,6 +439,8 @@ def list_virtual_machine_scale_set_public_ip_addresses( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`PublicIPAddress + ` :rtype: :class:`PublicIPAddressPaged ` :raises: :class:`CloudError` @@ -505,6 +520,8 @@ def list_virtual_machine_scale_set_vm_public_ip_addresses( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`PublicIPAddress + ` :rtype: :class:`PublicIPAddressPaged ` :raises: :class:`CloudError` @@ -590,10 +607,13 @@ def get_virtual_machine_scale_set_public_ip_address( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`PublicIPAddress + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`PublicIPAddress - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2017-03-30" diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/route_filter_rules_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/route_filter_rules_operations.py old mode 100755 new mode 100644 index 92e483be08b2..ce3a6dddeb7a --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/route_filter_rules_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/route_filter_rules_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -49,11 +49,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -131,10 +134,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`RouteFilterRule + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`RouteFilterRule - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -198,12 +204,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`RouteFilterRule - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -296,12 +305,15 @@ def update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`RouteFilterRule - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -388,6 +400,8 @@ def list_by_route_filter( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`RouteFilterRule + ` :rtype: :class:`RouteFilterRulePaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/route_filters_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/route_filters_operations.py old mode 100755 new mode 100644 index 3bce0c57f8de..dfb441fa36b0 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/route_filters_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/route_filters_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`RouteFilter + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`RouteFilter - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -194,12 +200,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`RouteFilter - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -289,12 +298,15 @@ def update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`RouteFilter - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -378,6 +390,8 @@ def list_by_resource_group( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`RouteFilter + ` :rtype: :class:`RouteFilterPaged ` :raises: :class:`CloudError` @@ -442,6 +456,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`RouteFilter + ` :rtype: :class:`RouteFilterPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/route_tables_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/route_tables_operations.py old mode 100755 new mode 100644 index 1ad9a70c69d4..e47a385d2cb0 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/route_tables_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/route_tables_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`RouteTable + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`RouteTable - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -194,12 +200,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`RouteTable - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -285,6 +294,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`RouteTable + ` :rtype: :class:`RouteTablePaged ` :raises: :class:`CloudError` @@ -349,6 +360,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`RouteTable + ` :rtype: :class:`RouteTablePaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/routes_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/routes_operations.py old mode 100755 new mode 100644 index 612e7fe2f9ff..27416c7f8b65 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/routes_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/routes_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -49,11 +49,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -131,9 +134,11 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`Route ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`Route ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -197,12 +202,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`Route - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -291,6 +299,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`Route + ` :rtype: :class:`RoutePaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/security_rules_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/security_rules_operations.py old mode 100755 new mode 100644 index 9eadd1687475..c6a14022fd72 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/security_rules_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/security_rules_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -50,11 +50,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -133,10 +136,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`SecurityRule + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`SecurityRule - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -202,12 +208,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`SecurityRule - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -297,6 +306,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`SecurityRule + ` :rtype: :class:`SecurityRulePaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/subnets_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/subnets_operations.py old mode 100755 new mode 100644 index 11dfb9670544..945022b204b4 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/subnets_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/subnets_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -49,11 +49,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -133,9 +136,12 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`Subnet + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`Subnet ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -201,12 +207,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`Subnet - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -295,6 +304,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`Subnet + ` :rtype: :class:`SubnetPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/usages_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/usages_operations.py old mode 100755 new mode 100644 index 7ed559b6784b..e546e91bf47d --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/usages_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/usages_operations.py @@ -9,9 +9,9 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError -import uuid from .. import models @@ -46,6 +46,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`Usage + ` :rtype: :class:`UsagePaged ` :raises: :class:`CloudError` @@ -56,7 +58,7 @@ def internal_paging(next_link=None, raw=False): # Construct URL url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/usages' path_format_arguments = { - 'location': self._serialize.url("location", location, 'str', pattern='^[-\w\._]+$'), + '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) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/virtual_network_gateway_connections_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/virtual_network_gateway_connections_operations.py old mode 100755 new mode 100644 index e840deab71da..4dde882262df --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/virtual_network_gateway_connections_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/virtual_network_gateway_connections_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -53,12 +53,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VirtualNetworkGatewayConnection ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -148,10 +151,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`VirtualNetworkGatewayConnection + ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`VirtualNetworkGatewayConnection ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -209,11 +215,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -292,12 +301,15 @@ def set_shared_key( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ConnectionSharedKey - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.ConnectionSharedKey(value=value) @@ -390,10 +402,13 @@ def get_shared_key( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ConnectionSharedKey + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ConnectionSharedKey - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -451,6 +466,9 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of + :class:`VirtualNetworkGatewayConnection + ` :rtype: :class:`VirtualNetworkGatewayConnectionPaged ` :raises: :class:`CloudError` @@ -524,12 +542,15 @@ def reset_shared_key( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ConnectionResetSharedKey - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.ConnectionResetSharedKey(key_length=key_length) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/virtual_network_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/virtual_network_gateways_operations.py old mode 100755 new mode 100644 index 68f3c7187d39..ed48ea30e1a2 --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/virtual_network_gateways_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/virtual_network_gateways_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -53,12 +53,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VirtualNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -147,10 +150,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`VirtualNetworkGateway + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`VirtualNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -208,11 +214,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -285,6 +294,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`VirtualNetworkGateway + ` :rtype: :class:`VirtualNetworkGatewayPaged ` :raises: :class:`CloudError` @@ -356,12 +367,15 @@ def reset( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VirtualNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -452,9 +466,11 @@ def generatevpnclientpackage( deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :rtype: str - :rtype: :class:`ClientRawResponse` - if raw=true + :return: str or + :class:`ClientRawResponse` if + raw=true + :rtype: str or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.VpnClientParameters(processor_architecture=processor_architecture) @@ -520,12 +536,15 @@ def get_bgp_peer_status( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`BgpPeerStatusListResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -609,12 +628,15 @@ def get_learned_routes( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`GatewayRouteListResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -698,12 +720,15 @@ def get_advertised_routes( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`GatewayRouteListResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/virtual_network_peerings_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/virtual_network_peerings_operations.py old mode 100755 new mode 100644 index 47eb757774c6..17d3d1b0c53c --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/virtual_network_peerings_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/virtual_network_peerings_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -50,11 +50,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -133,10 +136,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`VirtualNetworkPeering + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`VirtualNetworkPeering - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -201,12 +207,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VirtualNetworkPeering - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -295,6 +304,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`VirtualNetworkPeering + ` :rtype: :class:`VirtualNetworkPeeringPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/virtual_networks_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/virtual_networks_operations.py old mode 100755 new mode 100644 index 5ba06ae25c16..0df7878f8afc --- a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/virtual_networks_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/virtual_networks_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`VirtualNetwork + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`VirtualNetwork - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -194,12 +200,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VirtualNetwork - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -283,6 +292,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`VirtualNetwork + ` :rtype: :class:`VirtualNetworkPaged ` :raises: :class:`CloudError` @@ -348,6 +359,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`VirtualNetwork + ` :rtype: :class:`VirtualNetworkPaged ` :raises: :class:`CloudError` @@ -418,10 +431,13 @@ def check_ip_address_availability( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`IPAddressAvailabilityResult + ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`IPAddressAvailabilityResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -482,6 +498,8 @@ def list_usage( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`VirtualNetworkUsage + ` :rtype: :class:`VirtualNetworkUsagePaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_03_01/version.py b/azure-mgmt-network/azure/mgmt/network/v2017_03_01/version.py old mode 100755 new mode 100644 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 7b3c45115720..75309034e7d8 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.1.0", "date": "2017-07-06T19:43:21Z", "version": ""} \ No newline at end of file +{"autorest": "1.2.2", "date": "2017-08-16T18:26:55Z", "version": ""} \ No newline at end of file diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/__init__.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/__init__.py index 3fd4b45feb74..d76c81e650b8 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/__init__.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/__init__.py @@ -18,7 +18,7 @@ from .network_security_group import NetworkSecurityGroup from .route import Route from .route_table import RouteTable -from .private_access_service_properties_format import PrivateAccessServicePropertiesFormat +from .service_endpoint_properties_format import ServiceEndpointPropertiesFormat from .public_ip_address_dns_settings import PublicIPAddressDnsSettings from .public_ip_address import PublicIPAddress from .ip_configuration import IPConfiguration @@ -157,7 +157,8 @@ from .virtual_network_gateway_connection import VirtualNetworkGatewayConnection from .connection_reset_shared_key import ConnectionResetSharedKey from .connection_shared_key import ConnectionSharedKey -from .private_access_service_result import PrivateAccessServiceResult +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 .express_route_circuit_authorization_paged import ExpressRouteCircuitAuthorizationPaged @@ -165,7 +166,13 @@ 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 @@ -182,9 +189,9 @@ 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 .private_access_service_result_paged import PrivateAccessServiceResultPaged from .network_management_client_enums import ( TransportProtocol, IPAllocationMethod, @@ -217,6 +224,7 @@ LoadDistribution, ProbeProtocol, NetworkOperationStatus, + EffectiveSecurityRuleProtocol, EffectiveRouteSource, EffectiveRouteState, ProvisioningState, @@ -260,7 +268,7 @@ 'NetworkSecurityGroup', 'Route', 'RouteTable', - 'PrivateAccessServicePropertiesFormat', + 'ServiceEndpointPropertiesFormat', 'PublicIPAddressDnsSettings', 'PublicIPAddress', 'IPConfiguration', @@ -399,7 +407,8 @@ 'VirtualNetworkGatewayConnection', 'ConnectionResetSharedKey', 'ConnectionSharedKey', - 'PrivateAccessServiceResult', + 'VirtualNetworkConnectionGatewayReference', + 'VirtualNetworkGatewayConnectionListEntity', 'ApplicationGatewayPaged', 'ApplicationGatewaySslPredefinedPolicyPaged', 'ExpressRouteCircuitAuthorizationPaged', @@ -407,7 +416,13 @@ 'ExpressRouteCircuitPaged', 'ExpressRouteServiceProviderPaged', 'LoadBalancerPaged', + 'BackendAddressPoolPaged', + 'FrontendIPConfigurationPaged', + 'InboundNatRulePaged', + 'LoadBalancingRulePaged', 'NetworkInterfacePaged', + 'ProbePaged', + 'NetworkInterfaceIPConfigurationPaged', 'NetworkSecurityGroupPaged', 'SecurityRulePaged', 'NetworkWatcherPaged', @@ -424,9 +439,9 @@ 'SubnetPaged', 'VirtualNetworkPeeringPaged', 'VirtualNetworkGatewayPaged', + 'VirtualNetworkGatewayConnectionListEntityPaged', 'VirtualNetworkGatewayConnectionPaged', 'LocalNetworkGatewayPaged', - 'PrivateAccessServiceResultPaged', 'TransportProtocol', 'IPAllocationMethod', 'IPVersion', @@ -458,6 +473,7 @@ 'LoadDistribution', 'ProbeProtocol', 'NetworkOperationStatus', + 'EffectiveSecurityRuleProtocol', 'EffectiveRouteSource', 'EffectiveRouteState', 'ProvisioningState', diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/application_gateway_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/application_gateway_paged.py index 5dc094091ccc..dff1d26a2ba3 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/application_gateway_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/application_gateway_paged.py @@ -14,7 +14,7 @@ class ApplicationGatewayPaged(Paged): """ - A paging container for iterating over a list of ApplicationGateway object + A paging container for iterating over a list of :class:`ApplicationGateway ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/application_gateway_ssl_predefined_policy_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/application_gateway_ssl_predefined_policy_paged.py index 7d8036a24cfb..17630bde7eaa 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/application_gateway_ssl_predefined_policy_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/application_gateway_ssl_predefined_policy_paged.py @@ -14,7 +14,7 @@ class ApplicationGatewaySslPredefinedPolicyPaged(Paged): """ - A paging container for iterating over a list of ApplicationGatewaySslPredefinedPolicy object + A paging container for iterating over a list of :class:`ApplicationGatewaySslPredefinedPolicy ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/backend_address_pool_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/backend_address_pool_paged.py new file mode 100644 index 000000000000..cf5f025810c1 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_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_06_01/models/bgp_service_community_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/bgp_service_community_paged.py index daffc8da4d5a..35b1a82381b6 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/bgp_service_community_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/bgp_service_community_paged.py @@ -14,7 +14,7 @@ class BgpServiceCommunityPaged(Paged): """ - A paging container for iterating over a list of BgpServiceCommunity object + A paging container for iterating over a list of :class:`BgpServiceCommunity ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/effective_network_security_group.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/effective_network_security_group.py index 09ab5b1a9ffe..60e7c15049f6 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/effective_network_security_group.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/effective_network_security_group.py @@ -19,22 +19,27 @@ class EffectiveNetworkSecurityGroup(Model): applied. :type network_security_group: :class:`SubResource ` - :param association: + :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): + 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_06_01/models/effective_network_security_group_list_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/effective_network_security_group_list_result.py index c5665e6d16d2..83dcfbb4b195 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/effective_network_security_group_list_result.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/effective_network_security_group_list_result.py @@ -15,18 +15,25 @@ class EffectiveNetworkSecurityGroupListResult(Model): """Response for list effective network security groups API service call. + Variables are only populated by the server, and will be ignored when + sending a request. + :param value: A list of effective network security groups. :type value: list of :class:`EffectiveNetworkSecurityGroup ` - :param next_link: The URL to get the next set of results. - :type next_link: str + :ivar next_link: The URL to get the next set of results. + :vartype next_link: str """ + _validation = { + 'next_link': {'readonly': True}, + } + _attribute_map = { 'value': {'key': 'value', 'type': '[EffectiveNetworkSecurityGroup]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } - def __init__(self, value=None, next_link=None): + def __init__(self, value=None): self.value = value - self.next_link = next_link + self.next_link = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/effective_network_security_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/effective_network_security_rule.py index 2fea64f0f0bd..121665ee3fff 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/effective_network_security_rule.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/effective_network_security_rule.py @@ -19,18 +19,34 @@ class EffectiveNetworkSecurityRule(Model): created by the user). :type name: str :param protocol: The network protocol this rule applies to. Possible - values are: 'Tcp', 'Udp', and '*'. Possible values include: 'Tcp', 'Udp', - '*' - :type protocol: str or :class:`SecurityRuleProtocol - ` + 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 @@ -53,8 +69,12 @@ class EffectiveNetworkSecurityRule(Model): 'protocol': {'key': 'protocol', 'type': 'str'}, 'source_port_range': {'key': 'sourcePortRange', 'type': 'str'}, 'destination_port_range': {'key': 'destinationPortRange', 'type': 'str'}, + 'source_port_ranges': {'key': 'sourcePortRanges', 'type': '[str]'}, + 'destination_port_ranges': {'key': 'destinationPortRanges', 'type': '[str]'}, 'source_address_prefix': {'key': 'sourceAddressPrefix', 'type': 'str'}, 'destination_address_prefix': {'key': 'destinationAddressPrefix', 'type': 'str'}, + 'source_address_prefixes': {'key': 'sourceAddressPrefixes', 'type': '[str]'}, + 'destination_address_prefixes': {'key': 'destinationAddressPrefixes', 'type': '[str]'}, 'expanded_source_address_prefix': {'key': 'expandedSourceAddressPrefix', 'type': '[str]'}, 'expanded_destination_address_prefix': {'key': 'expandedDestinationAddressPrefix', 'type': '[str]'}, 'access': {'key': 'access', 'type': 'str'}, @@ -62,13 +82,17 @@ class EffectiveNetworkSecurityRule(Model): 'direction': {'key': 'direction', 'type': 'str'}, } - def __init__(self, name=None, protocol=None, source_port_range=None, destination_port_range=None, source_address_prefix=None, destination_address_prefix=None, expanded_source_address_prefix=None, expanded_destination_address_prefix=None, access=None, priority=None, direction=None): + def __init__(self, name=None, protocol=None, source_port_range=None, destination_port_range=None, source_port_ranges=None, destination_port_ranges=None, source_address_prefix=None, destination_address_prefix=None, source_address_prefixes=None, destination_address_prefixes=None, expanded_source_address_prefix=None, expanded_destination_address_prefix=None, access=None, priority=None, direction=None): self.name = name self.protocol = protocol self.source_port_range = source_port_range self.destination_port_range = destination_port_range + self.source_port_ranges = source_port_ranges + self.destination_port_ranges = destination_port_ranges self.source_address_prefix = source_address_prefix self.destination_address_prefix = destination_address_prefix + self.source_address_prefixes = source_address_prefixes + self.destination_address_prefixes = destination_address_prefixes self.expanded_source_address_prefix = expanded_source_address_prefix self.expanded_destination_address_prefix = expanded_destination_address_prefix self.access = access diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/effective_route_list_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/effective_route_list_result.py index d29407bfd71d..b0fb5f7df797 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/effective_route_list_result.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/effective_route_list_result.py @@ -15,18 +15,25 @@ class EffectiveRouteListResult(Model): """Response for list effective route API service call. + Variables are only populated by the server, and will be ignored when + sending a request. + :param value: A list of effective routes. :type value: list of :class:`EffectiveRoute ` - :param next_link: The URL to get the next set of results. - :type next_link: str + :ivar next_link: The URL to get the next set of results. + :vartype next_link: str """ + _validation = { + 'next_link': {'readonly': True}, + } + _attribute_map = { 'value': {'key': 'value', 'type': '[EffectiveRoute]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } - def __init__(self, value=None, next_link=None): + def __init__(self, value=None): self.value = value - self.next_link = next_link + self.next_link = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_circuit_authorization_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_circuit_authorization_paged.py index 9e25d3d46f5d..367fbd109d07 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_circuit_authorization_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_circuit_authorization_paged.py @@ -14,7 +14,7 @@ class ExpressRouteCircuitAuthorizationPaged(Paged): """ - A paging container for iterating over a list of ExpressRouteCircuitAuthorization object + A paging container for iterating over a list of :class:`ExpressRouteCircuitAuthorization ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_circuit_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_circuit_paged.py index da73ad48e420..5580c8e37113 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_circuit_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_circuit_paged.py @@ -14,7 +14,7 @@ class ExpressRouteCircuitPaged(Paged): """ - A paging container for iterating over a list of ExpressRouteCircuit object + A paging container for iterating over a list of :class:`ExpressRouteCircuit ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_circuit_peering_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_circuit_peering_paged.py index 58f59ae81a4b..8b5ad3cef633 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_circuit_peering_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_circuit_peering_paged.py @@ -14,7 +14,7 @@ class ExpressRouteCircuitPeeringPaged(Paged): """ - A paging container for iterating over a list of ExpressRouteCircuitPeering object + A paging container for iterating over a list of :class:`ExpressRouteCircuitPeering ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_service_provider_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_service_provider_paged.py index 5436d3b57bff..a84800a2ba86 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_service_provider_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_service_provider_paged.py @@ -14,7 +14,7 @@ class ExpressRouteServiceProviderPaged(Paged): """ - A paging container for iterating over a list of ExpressRouteServiceProvider object + A paging container for iterating over a list of :class:`ExpressRouteServiceProvider ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/frontend_ip_configuration_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/frontend_ip_configuration_paged.py new file mode 100644 index 000000000000..b3edb95ed756 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_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_06_01/models/inbound_nat_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/inbound_nat_rule.py index 6e091a1467b7..9dc34b2c722b 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 @@ -25,7 +25,7 @@ class InboundNatRule(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 backed IP. + of each of the frontend IP configurations is forwarded to the backend IP. :vartype backend_ip_configuration: :class:`NetworkInterfaceIPConfiguration ` :param protocol: The transport protocol for the endpoint. Possible values diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/inbound_nat_rule_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/inbound_nat_rule_paged.py new file mode 100644 index 000000000000..3d264a84ec64 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_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_06_01/models/ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/ip_configuration.py index a4625ca1e655..7f013bf21861 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/ip_configuration.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/ip_configuration.py @@ -13,7 +13,7 @@ class IPConfiguration(SubResource): - """IPConfiguration. + """IP configuration. :param id: Resource ID. :type id: str diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/load_balancer_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/load_balancer_paged.py index d370672335d8..add1d9d852a8 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/load_balancer_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/load_balancer_paged.py @@ -14,7 +14,7 @@ class LoadBalancerPaged(Paged): """ - A paging container for iterating over a list of LoadBalancer object + A paging container for iterating over a list of :class:`LoadBalancer ` object """ _attribute_map = { 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 4afa3b0a5022..f3247ec137e1 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 @@ -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 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/load_balancing_rule_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/load_balancing_rule_paged.py new file mode 100644 index 000000000000..bb3d9d305d1e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_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_06_01/models/local_network_gateway_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/local_network_gateway_paged.py index 084cabd54e92..978cf49d6920 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/local_network_gateway_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/local_network_gateway_paged.py @@ -14,7 +14,7 @@ class LocalNetworkGatewayPaged(Paged): """ - A paging container for iterating over a list of LocalNetworkGateway object + A paging container for iterating over a list of :class:`LocalNetworkGateway ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/network_interface_ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/network_interface_ip_configuration.py index 4e62f096790f..210c909a17c0 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/network_interface_ip_configuration.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/network_interface_ip_configuration.py @@ -31,7 +31,7 @@ class NetworkInterfaceIPConfiguration(SubResource): LoadBalancerInboundNatRules. :type load_balancer_inbound_nat_rules: list of :class:`InboundNatRule ` - :param private_ip_address: + :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 @@ -44,16 +44,18 @@ class NetworkInterfaceIPConfiguration(SubResource): Possible values include: 'IPv4', 'IPv6' :type private_ip_address_version: str or :class:`IPVersion ` - :param subnet: + :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: + :param public_ip_address: Public IP address bound to the IP configuration. :type public_ip_address: :class:`PublicIPAddress ` - :param provisioning_state: + :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. diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/network_interface_ip_configuration_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/network_interface_ip_configuration_paged.py new file mode 100644 index 000000000000..e439f739cc2c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_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_06_01/models/network_interface_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/network_interface_paged.py index 80ef25a43c73..f4aca929434c 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/network_interface_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/network_interface_paged.py @@ -14,7 +14,7 @@ class NetworkInterfacePaged(Paged): """ - A paging container for iterating over a list of NetworkInterface object + A paging container for iterating over a list of :class:`NetworkInterface ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/network_management_client_enums.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/network_management_client_enums.py index d4de70b97b23..acce4aaa9bf7 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/network_management_client_enums.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/network_management_client_enums.py @@ -244,6 +244,13 @@ class NetworkOperationStatus(Enum): failed = "Failed" +class EffectiveSecurityRuleProtocol(Enum): + + tcp = "Tcp" + udp = "Udp" + all = "All" + + class EffectiveRouteSource(Enum): unknown = "Unknown" diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/network_security_group_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/network_security_group_paged.py index 784c34f9c988..3a7b4c5d2bc7 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/network_security_group_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/network_security_group_paged.py @@ -14,7 +14,7 @@ class NetworkSecurityGroupPaged(Paged): """ - A paging container for iterating over a list of NetworkSecurityGroup object + A paging container for iterating over a list of :class:`NetworkSecurityGroup ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/network_watcher_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/network_watcher_paged.py index ec8d6661f054..854d5352bb2c 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/network_watcher_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/network_watcher_paged.py @@ -14,7 +14,7 @@ class NetworkWatcherPaged(Paged): """ - A paging container for iterating over a list of NetworkWatcher object + A paging container for iterating over a list of :class:`NetworkWatcher ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/packet_capture_result_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/packet_capture_result_paged.py index 5c58e48e659b..8100949e3bee 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/packet_capture_result_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/packet_capture_result_paged.py @@ -14,7 +14,7 @@ class PacketCaptureResultPaged(Paged): """ - A paging container for iterating over a list of PacketCaptureResult object + A paging container for iterating over a list of :class:`PacketCaptureResult ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/patch_route_filter.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/patch_route_filter.py index 4d6d5ed7fc72..5c7c443a3b9b 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/patch_route_filter.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/patch_route_filter.py @@ -24,9 +24,9 @@ class PatchRouteFilter(SubResource): filter. :type rules: list of :class:`RouteFilterRule ` - :ivar peerings: A collection of references to express route circuit + :param peerings: A collection of references to express route circuit peerings. - :vartype peerings: list of :class:`ExpressRouteCircuitPeering + :type peerings: list of :class:`ExpressRouteCircuitPeering ` :ivar provisioning_state: The provisioning state of the resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. @@ -44,7 +44,6 @@ class PatchRouteFilter(SubResource): """ _validation = { - 'peerings': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'name': {'readonly': True}, 'etag': {'readonly': True}, @@ -62,10 +61,10 @@ class PatchRouteFilter(SubResource): 'tags': {'key': 'tags', 'type': '{str}'}, } - def __init__(self, id=None, rules=None, tags=None): + def __init__(self, id=None, rules=None, peerings=None, tags=None): super(PatchRouteFilter, self).__init__(id=id) self.rules = rules - self.peerings = None + self.peerings = peerings self.provisioning_state = None self.name = None self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/private_access_service_result.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/private_access_service_result.py deleted file mode 100644 index 445960bea49f..000000000000 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/private_access_service_result.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .sub_resource import SubResource - - -class PrivateAccessServiceResult(SubResource): - """Private access service. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param id: Resource ID. - :type id: str - :ivar name: Name of the private access value. - :vartype name: str - :ivar type: Type of the private access value. - :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(PrivateAccessServiceResult, self).__init__(id=id) - self.name = None - self.type = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/private_access_service_result_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/probe_paged.py similarity index 69% rename from azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/private_access_service_result_paged.py rename to azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/probe_paged.py index c54639222a05..0e0dff4101b6 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/private_access_service_result_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/probe_paged.py @@ -12,16 +12,16 @@ from msrest.paging import Paged -class PrivateAccessServiceResultPaged(Paged): +class ProbePaged(Paged): """ - A paging container for iterating over a list of PrivateAccessServiceResult object + 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': '[PrivateAccessServiceResult]'} + 'current_page': {'key': 'value', 'type': '[Probe]'} } def __init__(self, *args, **kwargs): - super(PrivateAccessServiceResultPaged, self).__init__(*args, **kwargs) + super(ProbePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/public_ip_address.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/public_ip_address.py index 8636ad3d53c2..03b76e1f9ae2 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/public_ip_address.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/public_ip_address.py @@ -37,14 +37,16 @@ class PublicIPAddress(Resource): values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6' :type public_ip_address_version: str or :class:`IPVersion ` - :ivar ip_configuration: + :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: + :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 diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/public_ip_address_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/public_ip_address_paged.py index e86263ccb4a4..bd3f523fda4b 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/public_ip_address_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/public_ip_address_paged.py @@ -14,7 +14,7 @@ class PublicIPAddressPaged(Paged): """ - A paging container for iterating over a list of PublicIPAddress object + A paging container for iterating over a list of :class:`PublicIPAddress ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/resource.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/resource.py index 562d40a68661..0f0b2f02f123 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/resource.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/resource.py @@ -13,7 +13,7 @@ class Resource(Model): - """Resource. + """Common resource representation. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/route_filter.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/route_filter.py index 8e4d36fc5a4a..f4d74e2fb83e 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/route_filter.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/route_filter.py @@ -32,9 +32,9 @@ class RouteFilter(Resource): filter. :type rules: list of :class:`RouteFilterRule ` - :ivar peerings: A collection of references to express route circuit + :param peerings: A collection of references to express route circuit peerings. - :vartype peerings: list of :class:`ExpressRouteCircuitPeering + :type peerings: list of :class:`ExpressRouteCircuitPeering ` :ivar provisioning_state: The provisioning state of the resource. Possible values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. @@ -47,7 +47,6 @@ class RouteFilter(Resource): _validation = { 'name': {'readonly': True}, 'type': {'readonly': True}, - 'peerings': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'etag': {'readonly': True}, } @@ -64,9 +63,9 @@ class RouteFilter(Resource): 'etag': {'key': 'etag', 'type': 'str'}, } - def __init__(self, id=None, location=None, tags=None, rules=None): + 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 = None + self.peerings = peerings self.provisioning_state = None self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/route_filter_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/route_filter_paged.py index f85821f96944..1965bdf68fde 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/route_filter_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/route_filter_paged.py @@ -14,7 +14,7 @@ class RouteFilterPaged(Paged): """ - A paging container for iterating over a list of RouteFilter object + A paging container for iterating over a list of :class:`RouteFilter ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/route_filter_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/route_filter_rule.py index 229fee814710..1b2086516f7a 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/route_filter_rule.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/route_filter_rule.py @@ -33,9 +33,9 @@ class RouteFilterRule(SubResource): :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 + :param 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 + :type name: str :param location: Resource location. :type location: str :ivar etag: A unique read-only string that changes whenever the resource @@ -50,7 +50,6 @@ class RouteFilterRule(SubResource): 'route_filter_rule_type': {'required': True, 'constant': True}, 'communities': {'required': True}, 'provisioning_state': {'readonly': True}, - 'name': {'readonly': True}, 'etag': {'readonly': True}, } @@ -68,12 +67,12 @@ class RouteFilterRule(SubResource): route_filter_rule_type = "Community" - def __init__(self, access, communities, id=None, location=None, tags=None): + 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 = None + self.name = name self.location = location self.etag = None self.tags = tags diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/route_filter_rule_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/route_filter_rule_paged.py index d0a00286743e..e17a4ba91f36 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/route_filter_rule_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/route_filter_rule_paged.py @@ -14,7 +14,7 @@ class RouteFilterRulePaged(Paged): """ - A paging container for iterating over a list of RouteFilterRule object + A paging container for iterating over a list of :class:`RouteFilterRule ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/route_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/route_paged.py index df8a2fbbca40..2521a18d0ca2 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/route_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/route_paged.py @@ -14,7 +14,7 @@ class RoutePaged(Paged): """ - A paging container for iterating over a list of Route object + A paging container for iterating over a list of :class:`Route ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/route_table_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/route_table_paged.py index 5e2b3b385a4c..65965aadb822 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/route_table_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/route_table_paged.py @@ -14,7 +14,7 @@ class RouteTablePaged(Paged): """ - A paging container for iterating over a list of RouteTable object + A paging container for iterating over a list of :class:`RouteTable ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/security_rule.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/security_rule.py index cff8c8abb6aa..c14827c06c57 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/security_rule.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/security_rule.py @@ -35,11 +35,20 @@ class SecurityRule(SubResource): '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 destination_address_prefix: The destination address prefix. 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. + 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 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 @@ -81,7 +90,11 @@ class SecurityRule(SubResource): '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]'}, 'destination_address_prefix': {'key': 'properties.destinationAddressPrefix', 'type': 'str'}, + 'destination_address_prefixes': {'key': 'properties.destinationAddressPrefixes', 'type': '[str]'}, + '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'}, @@ -90,14 +103,18 @@ class SecurityRule(SubResource): '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, priority=None, provisioning_state=None, name=None, etag=None): + 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, destination_address_prefixes=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.destination_address_prefix = destination_address_prefix + self.destination_address_prefixes = destination_address_prefixes + self.source_port_ranges = source_port_ranges + self.destination_port_ranges = destination_port_ranges self.access = access self.priority = priority self.direction = direction diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/security_rule_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/security_rule_paged.py index 5d7ba44f9b9a..5fc404468820 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/security_rule_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/security_rule_paged.py @@ -14,7 +14,7 @@ class SecurityRulePaged(Paged): """ - A paging container for iterating over a list of SecurityRule object + A paging container for iterating over a list of :class:`SecurityRule ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/private_access_service_properties_format.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/service_endpoint_properties_format.py similarity index 88% rename from azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/private_access_service_properties_format.py rename to azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/service_endpoint_properties_format.py index 6e0a0d33a6d4..8677cdf300be 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/private_access_service_properties_format.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/service_endpoint_properties_format.py @@ -12,10 +12,10 @@ from msrest.serialization import Model -class PrivateAccessServicePropertiesFormat(Model): - """The private access service properties. +class ServiceEndpointPropertiesFormat(Model): + """The service endpoint properties. - :param service: The type of the private access. + :param service: The type of the endpoint service. :type service: str :param locations: A list of locations. :type locations: list of str diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/sub_resource.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/sub_resource.py index e7fa13135e83..b23dc42afd0e 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/sub_resource.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/sub_resource.py @@ -13,7 +13,7 @@ class SubResource(Model): - """SubResource. + """Reference to another subresource. :param id: Resource ID. :type id: str diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/subnet.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/subnet.py index 9737e52aa045..a5e8a523cb07 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/subnet.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/subnet.py @@ -29,11 +29,9 @@ class Subnet(SubResource): :param route_table: The reference of the RouteTable resource. :type route_table: :class:`RouteTable ` - :param private_access_services: An array of private access services - values. - :type private_access_services: list of - :class:`PrivateAccessServicePropertiesFormat - ` + :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 @@ -61,7 +59,7 @@ class Subnet(SubResource): 'address_prefix': {'key': 'properties.addressPrefix', 'type': 'str'}, 'network_security_group': {'key': 'properties.networkSecurityGroup', 'type': 'NetworkSecurityGroup'}, 'route_table': {'key': 'properties.routeTable', 'type': 'RouteTable'}, - 'private_access_services': {'key': 'properties.privateAccessServices', 'type': '[PrivateAccessServicePropertiesFormat]'}, + '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'}, @@ -69,12 +67,12 @@ class Subnet(SubResource): 'etag': {'key': 'etag', 'type': 'str'}, } - def __init__(self, id=None, address_prefix=None, network_security_group=None, route_table=None, private_access_services=None, resource_navigation_links=None, provisioning_state=None, name=None, etag=None): + 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.private_access_services = private_access_services + self.service_endpoints = service_endpoints self.ip_configurations = None self.resource_navigation_links = resource_navigation_links self.provisioning_state = provisioning_state diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/subnet_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/subnet_paged.py index 2bbe5a5cd31a..3156fce63e42 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/subnet_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/subnet_paged.py @@ -14,7 +14,7 @@ class SubnetPaged(Paged): """ - A paging container for iterating over a list of Subnet object + A paging container for iterating over a list of :class:`Subnet ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/usage_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/usage_paged.py index f357b8c198be..82b2f0c52ad9 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/usage_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/usage_paged.py @@ -14,7 +14,7 @@ class UsagePaged(Paged): """ - A paging container for iterating over a list of Usage object + A paging container for iterating over a list of :class:`Usage ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_connection_gateway_reference.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_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_06_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_06_01/models/virtual_network_gateway.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_gateway.py index ca1a448e4b94..aa805f228bed 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_gateway.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_gateway.py @@ -64,12 +64,6 @@ class VirtualNetworkGateway(Resource): :param bgp_settings: Virtual network gateway's BGP speaker settings. :type bgp_settings: :class:`BgpSettings ` - :param radius_server: The radius server address property of the - VirtualNetworkGateway resource for vpn client connection. - :type radius_server: str - :param radius_secret: The radius secret property of the - VirtualNetworkGateway resource for vpn client connection. - :type radius_secret: str :param resource_guid: The resource GUID property of the VirtualNetworkGateway resource. :type resource_guid: str @@ -103,14 +97,12 @@ class VirtualNetworkGateway(Resource): 'sku': {'key': 'properties.sku', 'type': 'VirtualNetworkGatewaySku'}, 'vpn_client_configuration': {'key': 'properties.vpnClientConfiguration', 'type': 'VpnClientConfiguration'}, 'bgp_settings': {'key': 'properties.bgpSettings', 'type': 'BgpSettings'}, - 'radius_server': {'key': 'properties.radiusServer', 'type': 'str'}, - 'radius_secret': {'key': 'properties.radiusSecret', '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, 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, radius_server=None, radius_secret=None, resource_guid=None, etag=None): + 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 @@ -121,8 +113,6 @@ def __init__(self, id=None, location=None, tags=None, ip_configurations=None, ga self.sku = sku self.vpn_client_configuration = vpn_client_configuration self.bgp_settings = bgp_settings - self.radius_server = radius_server - self.radius_secret = radius_secret self.resource_guid = resource_guid self.provisioning_state = None self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_gateway_connection.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_gateway_connection.py index cc9908c99d96..fe4a2b479c16 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_gateway_connection.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_gateway_connection.py @@ -30,13 +30,16 @@ class VirtualNetworkGatewayConnection(Resource): :type tags: dict :param authorization_key: The authorizationKey. :type authorization_key: str - :param virtual_network_gateway1: + :param virtual_network_gateway1: The reference to virtual network gateway + resource. :type virtual_network_gateway1: :class:`VirtualNetworkGateway ` - :param virtual_network_gateway2: + :param virtual_network_gateway2: The reference to virtual network gateway + resource. :type virtual_network_gateway2: :class:`VirtualNetworkGateway ` - :param local_network_gateway2: + :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: diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_gateway_connection_list_entity.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_gateway_connection_list_entity.py new file mode 100644 index 000000000000..a1dc24782322 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_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_06_01/models/virtual_network_gateway_connection_list_entity_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_gateway_connection_list_entity_paged.py new file mode 100644 index 000000000000..e32a2dde9061 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_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_06_01/models/virtual_network_gateway_connection_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_gateway_connection_paged.py index ea77037dfe72..9c22932ccbd8 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_gateway_connection_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_gateway_connection_paged.py @@ -14,7 +14,7 @@ class VirtualNetworkGatewayConnectionPaged(Paged): """ - A paging container for iterating over a list of VirtualNetworkGatewayConnection object + A paging container for iterating over a list of :class:`VirtualNetworkGatewayConnection ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_gateway_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_gateway_paged.py index 9a3806758ad1..84bab166b7f0 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_gateway_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_gateway_paged.py @@ -14,7 +14,7 @@ class VirtualNetworkGatewayPaged(Paged): """ - A paging container for iterating over a list of VirtualNetworkGateway object + A paging container for iterating over a list of :class:`VirtualNetworkGateway ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_paged.py index 2959222e9930..4103051affb6 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_paged.py @@ -14,7 +14,7 @@ class VirtualNetworkPaged(Paged): """ - A paging container for iterating over a list of VirtualNetwork object + A paging container for iterating over a list of :class:`VirtualNetwork ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_peering_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_peering_paged.py index 1fb81948331d..14f309302732 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_peering_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_peering_paged.py @@ -14,7 +14,7 @@ class VirtualNetworkPeeringPaged(Paged): """ - A paging container for iterating over a list of VirtualNetworkPeering object + A paging container for iterating over a list of :class:`VirtualNetworkPeering ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_usage_paged.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_usage_paged.py index a77b05f4714c..d92f8b69e3da 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_usage_paged.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/virtual_network_usage_paged.py @@ -14,7 +14,7 @@ class VirtualNetworkUsagePaged(Paged): """ - A paging container for iterating over a list of VirtualNetworkUsage object + A paging container for iterating over a list of :class:`VirtualNetworkUsage ` object """ _attribute_map = { diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/vpn_client_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/vpn_client_configuration.py index 2e55c8bb4bd9..ef4b42c05a86 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/vpn_client_configuration.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/vpn_client_configuration.py @@ -33,6 +33,12 @@ class VpnClientConfiguration(Model): 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 = { @@ -40,10 +46,14 @@ class VpnClientConfiguration(Model): '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): + 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_06_01/network_management_client.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/network_management_client.py index a8745e8b2d9e..22651bf4973b 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/network_management_client.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/network_management_client.py @@ -23,9 +23,18 @@ 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 @@ -41,7 +50,6 @@ 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 .operations.available_private_access_services_operations import AvailablePrivateAccessServicesOperations from . import models @@ -82,7 +90,7 @@ def __init__( class NetworkManagementClient(object): - """Composite Swagger for Network Client + """Network Client :ivar config: Configuration for client. :vartype config: NetworkManagementClientConfiguration @@ -99,12 +107,30 @@ class NetworkManagementClient(object): :vartype express_route_service_providers: azure.mgmt.network.v2017_06_01.operations.ExpressRouteServiceProvidersOperations :ivar load_balancers: LoadBalancers operations :vartype load_balancers: azure.mgmt.network.v2017_06_01.operations.LoadBalancersOperations + :ivar load_balancer_backend_address_pools: LoadBalancerBackendAddressPools operations + :vartype load_balancer_backend_address_pools: azure.mgmt.network.v2017_06_01.operations.LoadBalancerBackendAddressPoolsOperations + :ivar load_balancer_frontend_ip_configurations: LoadBalancerFrontendIPConfigurations operations + :vartype load_balancer_frontend_ip_configurations: azure.mgmt.network.v2017_06_01.operations.LoadBalancerFrontendIPConfigurationsOperations + :ivar inbound_nat_rules: InboundNatRules operations + :vartype inbound_nat_rules: azure.mgmt.network.v2017_06_01.operations.InboundNatRulesOperations + :ivar load_balancer_load_balancing_rules: LoadBalancerLoadBalancingRules operations + :vartype load_balancer_load_balancing_rules: azure.mgmt.network.v2017_06_01.operations.LoadBalancerLoadBalancingRulesOperations + :ivar load_balancer_network_interfaces: LoadBalancerNetworkInterfaces operations + :vartype load_balancer_network_interfaces: azure.mgmt.network.v2017_06_01.operations.LoadBalancerNetworkInterfacesOperations + :ivar load_balancer_probes: LoadBalancerProbes operations + :vartype load_balancer_probes: azure.mgmt.network.v2017_06_01.operations.LoadBalancerProbesOperations :ivar network_interfaces: NetworkInterfaces operations :vartype network_interfaces: azure.mgmt.network.v2017_06_01.operations.NetworkInterfacesOperations + :ivar network_interface_ip_configurations: NetworkInterfaceIPConfigurations operations + :vartype network_interface_ip_configurations: azure.mgmt.network.v2017_06_01.operations.NetworkInterfaceIPConfigurationsOperations + :ivar network_interface_load_balancers: NetworkInterfaceLoadBalancers operations + :vartype network_interface_load_balancers: azure.mgmt.network.v2017_06_01.operations.NetworkInterfaceLoadBalancersOperations :ivar network_security_groups: NetworkSecurityGroups operations :vartype network_security_groups: azure.mgmt.network.v2017_06_01.operations.NetworkSecurityGroupsOperations :ivar security_rules: SecurityRules operations :vartype security_rules: azure.mgmt.network.v2017_06_01.operations.SecurityRulesOperations + :ivar default_security_rules: DefaultSecurityRules operations + :vartype default_security_rules: azure.mgmt.network.v2017_06_01.operations.DefaultSecurityRulesOperations :ivar network_watchers: NetworkWatchers operations :vartype network_watchers: azure.mgmt.network.v2017_06_01.operations.NetworkWatchersOperations :ivar packet_captures: PacketCaptures operations @@ -135,8 +161,6 @@ class NetworkManagementClient(object): :vartype virtual_network_gateway_connections: azure.mgmt.network.v2017_06_01.operations.VirtualNetworkGatewayConnectionsOperations :ivar local_network_gateways: LocalNetworkGateways operations :vartype local_network_gateways: azure.mgmt.network.v2017_06_01.operations.LocalNetworkGatewaysOperations - :ivar available_private_access_services: AvailablePrivateAccessServices operations - :vartype available_private_access_services: azure.mgmt.network.v2017_06_01.operations.AvailablePrivateAccessServicesOperations :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials @@ -170,12 +194,30 @@ def __init__( 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( @@ -206,8 +248,6 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.local_network_gateways = LocalNetworkGatewaysOperations( self._client, self.config, self._serialize, self._deserialize) - self.available_private_access_services = AvailablePrivateAccessServicesOperations( - 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): @@ -225,10 +265,13 @@ def check_dns_name_availability( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`DnsNameAvailabilityResult + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`DnsNameAvailabilityResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2017-06-01" diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/__init__.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/__init__.py index 227164f21911..0286ab1cd6da 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/__init__.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/__init__.py @@ -15,9 +15,18 @@ 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 @@ -33,7 +42,6 @@ from .virtual_network_gateways_operations import VirtualNetworkGatewaysOperations from .virtual_network_gateway_connections_operations import VirtualNetworkGatewayConnectionsOperations from .local_network_gateways_operations import LocalNetworkGatewaysOperations -from .available_private_access_services_operations import AvailablePrivateAccessServicesOperations __all__ = [ 'ApplicationGatewaysOperations', @@ -42,9 +50,18 @@ 'ExpressRouteCircuitsOperations', 'ExpressRouteServiceProvidersOperations', 'LoadBalancersOperations', + 'LoadBalancerBackendAddressPoolsOperations', + 'LoadBalancerFrontendIPConfigurationsOperations', + 'InboundNatRulesOperations', + 'LoadBalancerLoadBalancingRulesOperations', + 'LoadBalancerNetworkInterfacesOperations', + 'LoadBalancerProbesOperations', 'NetworkInterfacesOperations', + 'NetworkInterfaceIPConfigurationsOperations', + 'NetworkInterfaceLoadBalancersOperations', 'NetworkSecurityGroupsOperations', 'SecurityRulesOperations', + 'DefaultSecurityRulesOperations', 'NetworkWatchersOperations', 'PacketCapturesOperations', 'PublicIPAddressesOperations', @@ -60,5 +77,4 @@ 'VirtualNetworkGatewaysOperations', 'VirtualNetworkGatewayConnectionsOperations', 'LocalNetworkGatewaysOperations', - 'AvailablePrivateAccessServicesOperations', ] diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/application_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/application_gateways_operations.py index 12ee03822b38..7f3f520367df 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/application_gateways_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/application_gateways_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -126,10 +129,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ApplicationGateway + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ApplicationGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -190,12 +196,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ApplicationGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -281,6 +290,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`ApplicationGateway + ` :rtype: :class:`ApplicationGatewayPaged ` :raises: :class:`CloudError` @@ -345,6 +356,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`ApplicationGateway + ` :rtype: :class:`ApplicationGatewayPaged ` :raises: :class:`CloudError` @@ -410,11 +423,14 @@ def start( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -487,11 +503,14 @@ def stop( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -568,12 +587,15 @@ def backend_health( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ApplicationGatewayBackendHealth ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -653,10 +675,13 @@ def list_available_waf_rule_sets( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ApplicationGatewayAvailableWafRuleSetsResult + ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`ApplicationGatewayAvailableWafRuleSetsResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -709,10 +734,13 @@ def list_available_ssl_options( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ApplicationGatewayAvailableSslOptions + ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`ApplicationGatewayAvailableSslOptions ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -765,6 +793,9 @@ def list_available_ssl_predefined_policies( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of + :class:`ApplicationGatewaySslPredefinedPolicy + ` :rtype: :class:`ApplicationGatewaySslPredefinedPolicyPaged ` :raises: :class:`CloudError` @@ -830,10 +861,13 @@ def get_ssl_predefined_policy( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ApplicationGatewaySslPredefinedPolicy + ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`ApplicationGatewaySslPredefinedPolicy ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/bgp_service_communities_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/bgp_service_communities_operations.py index bf269ae5d810..f07ba96ae4a4 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/bgp_service_communities_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/bgp_service_communities_operations.py @@ -9,9 +9,9 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError -import uuid from .. import models @@ -44,6 +44,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`BgpServiceCommunity + ` :rtype: :class:`BgpServiceCommunityPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/default_security_rules_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/default_security_rules_operations.py new file mode 100644 index 000000000000..0f0f688237a1 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_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-06-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-06-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_06_01/operations/express_route_circuit_authorizations_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/express_route_circuit_authorizations_operations.py index d91adaf2e0d8..789ee1af1c88 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/express_route_circuit_authorizations_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/express_route_circuit_authorizations_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -50,11 +50,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -133,10 +136,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ExpressRouteCircuitAuthorization + ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`ExpressRouteCircuitAuthorization ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -202,12 +208,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuitAuthorization ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -296,6 +305,9 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of + :class:`ExpressRouteCircuitAuthorization + ` :rtype: :class:`ExpressRouteCircuitAuthorizationPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/express_route_circuit_peerings_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/express_route_circuit_peerings_operations.py index f8a2c636ca76..7beb1644862b 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/express_route_circuit_peerings_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/express_route_circuit_peerings_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -49,11 +49,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -132,10 +135,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ExpressRouteCircuitPeering + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ExpressRouteCircuitPeering - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -199,12 +205,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuitPeering - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -293,6 +302,9 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of + :class:`ExpressRouteCircuitPeering + ` :rtype: :class:`ExpressRouteCircuitPeeringPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/express_route_circuits_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/express_route_circuits_operations.py index 10b3299f03be..aae155186983 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/express_route_circuits_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/express_route_circuits_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -126,10 +129,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ExpressRouteCircuit + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ExpressRouteCircuit - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -190,12 +196,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuit - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -286,12 +295,15 @@ def list_arp_table( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuitsArpTableListResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -378,13 +390,16 @@ def list_routes_table( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuitsRoutesTableListResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -471,13 +486,16 @@ def list_routes_table_summary( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ExpressRouteCircuitsRoutesTableSummaryListResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -561,10 +579,13 @@ def get_stats( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ExpressRouteCircuitStats + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ExpressRouteCircuitStats - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -625,10 +646,13 @@ def get_peering_stats( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ExpressRouteCircuitStats + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ExpressRouteCircuitStats - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -686,6 +710,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`ExpressRouteCircuit + ` :rtype: :class:`ExpressRouteCircuitPaged ` :raises: :class:`CloudError` @@ -750,6 +776,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`ExpressRouteCircuit + ` :rtype: :class:`ExpressRouteCircuitPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/express_route_service_providers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/express_route_service_providers_operations.py index b5457862b648..e9435fc40d00 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/express_route_service_providers_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/express_route_service_providers_operations.py @@ -9,9 +9,9 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError -import uuid from .. import models @@ -44,6 +44,9 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of + :class:`ExpressRouteServiceProvider + ` :rtype: :class:`ExpressRouteServiceProviderPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/inbound_nat_rules_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/inbound_nat_rules_operations.py new file mode 100644 index 000000000000..9beb33827ef0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_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-06-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-06-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_06_01/operations/load_balancer_backend_address_pools_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/load_balancer_backend_address_pools_operations.py new file mode 100644 index 000000000000..7191e781b7d9 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_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-06-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-06-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_06_01/operations/load_balancer_frontend_ip_configurations_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/load_balancer_frontend_ip_configurations_operations.py new file mode 100644 index 000000000000..e57fdcc6d224 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_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-06-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-06-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_06_01/operations/load_balancer_load_balancing_rules_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/load_balancer_load_balancing_rules_operations.py new file mode 100644 index 000000000000..5685171c33b2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_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-06-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-06-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_06_01/operations/available_private_access_services_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/load_balancer_network_interfaces_operations.py similarity index 70% rename from azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/available_private_access_services_operations.py rename to azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/load_balancer_network_interfaces_operations.py index a762b1b50a48..6f82b213d3f2 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/available_private_access_services_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/load_balancer_network_interfaces_operations.py @@ -9,15 +9,15 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError -import uuid from .. import models -class AvailablePrivateAccessServicesOperations(object): - """AvailablePrivateAccessServicesOperations operations. +class LoadBalancerNetworkInterfacesOperations(object): + """LoadBalancerNetworkInterfacesOperations operations. :param client: Client for service requests. :param config: Configuration of service client. @@ -36,28 +36,32 @@ def __init__(self, client, config, serializer, deserializer): self.config = config def list( - self, location, custom_headers=None, raw=False, **operation_config): - """List what values of private access services are available for use. + self, resource_group_name, load_balancer_name, custom_headers=None, raw=False, **operation_config): + """Gets associated load balancer network interfaces. - :param location: The location to check available private access - values. - :type location: str + :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`. - :rtype: :class:`PrivateAccessServiceResultPaged - ` + :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}/providers/Microsoft.Network/locations/{location}/privateAccessServices' + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/networkInterfaces' path_format_arguments = { - 'location': self._serialize.url("location", location, 'str'), + '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) @@ -93,11 +97,11 @@ def internal_paging(next_link=None, raw=False): return response # Deserialize response - deserialized = models.PrivateAccessServiceResultPaged(internal_paging, self._deserialize.dependencies) + deserialized = models.NetworkInterfacePaged(internal_paging, self._deserialize.dependencies) if raw: header_dict = {} - client_raw_response = models.PrivateAccessServiceResultPaged(internal_paging, self._deserialize.dependencies, 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_06_01/operations/load_balancer_probes_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/load_balancer_probes_operations.py new file mode 100644 index 000000000000..de5fd24a3677 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_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-06-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-06-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_06_01/operations/load_balancers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/load_balancers_operations.py index 9c3746593d16..2515883809c1 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/load_balancers_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/load_balancers_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`LoadBalancer + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`LoadBalancer - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -194,12 +200,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`LoadBalancer - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -283,6 +292,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`LoadBalancer + ` :rtype: :class:`LoadBalancerPaged ` :raises: :class:`CloudError` @@ -348,6 +359,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`LoadBalancer + ` :rtype: :class:`LoadBalancerPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/local_network_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/local_network_gateways_operations.py index 5da5462d5dcd..225f88fcc824 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/local_network_gateways_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/local_network_gateways_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -53,12 +53,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`LocalNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -147,10 +150,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`LocalNetworkGateway + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`LocalNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -208,11 +214,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -285,6 +294,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`LocalNetworkGateway + ` :rtype: :class:`LocalNetworkGatewayPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/network_interface_ip_configurations_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/network_interface_ip_configurations_operations.py new file mode 100644 index 000000000000..57470356febc --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_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-06-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-06-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_06_01/operations/network_interface_load_balancers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/network_interface_load_balancers_operations.py new file mode 100644 index 000000000000..cb759d12d2b4 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_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-06-01". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-06-01" + + self.config = config + + def list( + self, resource_group_name, network_interface_name, custom_headers=None, raw=False, **operation_config): + """Get 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_06_01/operations/network_interfaces_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/network_interfaces_operations.py index 76a315ef1984..31fecf3403a1 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/network_interfaces_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/network_interfaces_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -45,11 +45,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2017-06-01" @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`NetworkInterface + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`NetworkInterface - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2017-06-01" @@ -196,12 +202,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`NetworkInterface - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2017-06-01" @@ -287,6 +296,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkInterface + ` :rtype: :class:`NetworkInterfacePaged ` :raises: :class:`CloudError` @@ -354,6 +365,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkInterface + ` :rtype: :class:`NetworkInterfacePaged ` :raises: :class:`CloudError` @@ -422,12 +435,15 @@ def get_effective_route_table( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`EffectiveRouteListResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2017-06-01" @@ -509,12 +525,15 @@ def list_effective_network_security_groups( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`EffectiveNetworkSecurityGroupListResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2017-06-01" @@ -602,6 +621,8 @@ def list_virtual_machine_scale_set_vm_network_interfaces( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkInterface + ` :rtype: :class:`NetworkInterfacePaged ` :raises: :class:`CloudError` @@ -675,6 +696,8 @@ def list_virtual_machine_scale_set_network_interfaces( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkInterface + ` :rtype: :class:`NetworkInterfacePaged ` :raises: :class:`CloudError` @@ -753,10 +776,13 @@ def get_virtual_machine_scale_set_network_interface( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`NetworkInterface + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`NetworkInterface - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2017-03-30" diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/network_security_groups_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/network_security_groups_operations.py index aeddcd68b813..4a2a633e3847 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/network_security_groups_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/network_security_groups_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -48,11 +48,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -130,10 +133,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`NetworkSecurityGroup + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`NetworkSecurityGroup - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -198,12 +204,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`NetworkSecurityGroup - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -287,6 +296,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkSecurityGroup + ` :rtype: :class:`NetworkSecurityGroupPaged ` :raises: :class:`CloudError` @@ -352,6 +363,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkSecurityGroup + ` :rtype: :class:`NetworkSecurityGroupPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/network_watchers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/network_watchers_operations.py index ae3566800726..c30c4de7a239 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/network_watchers_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/network_watchers_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -53,10 +53,13 @@ def create_or_update( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`NetworkWatcher + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`NetworkWatcher - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -121,10 +124,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`NetworkWatcher + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`NetworkWatcher - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -181,11 +187,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -258,6 +267,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkWatcher + ` :rtype: :class:`NetworkWatcherPaged ` :raises: :class:`CloudError` @@ -322,6 +333,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`NetworkWatcher + ` :rtype: :class:`NetworkWatcherPaged ` :raises: :class:`CloudError` @@ -392,10 +405,13 @@ def get_topology( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`Topology + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`Topology - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.TopologyParameters(target_resource_group_name=target_resource_group_name) @@ -462,12 +478,15 @@ def verify_ip_flow( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VerificationIPFlowResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -557,12 +576,15 @@ def get_next_hop( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`NextHopResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -651,12 +673,15 @@ def get_vm_security_rules( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`SecurityGroupViewResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.SecurityGroupViewParameters(target_resource_id=target_resource_id) @@ -748,12 +773,15 @@ def get_troubleshooting( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`TroubleshootingResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -842,12 +870,15 @@ def get_troubleshooting_result( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`TroubleshootingResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.QueryTroubleshootingParameters(target_resource_id=target_resource_id) @@ -940,12 +971,15 @@ def set_flow_log_configuration( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`FlowLogInformation - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -1035,12 +1069,15 @@ def get_flow_log_status( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`FlowLogInformation - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.FlowLogStatusParameters(target_resource_id=target_resource_id) @@ -1137,12 +1174,15 @@ def check_connectivity( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ConnectivityInformation - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.ConnectivityParameters(source=source, destination=destination) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/packet_captures_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/packet_captures_operations.py index a48c92b0114b..560b6d4212f4 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/packet_captures_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/packet_captures_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -53,12 +53,15 @@ def create( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`PacketCaptureResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -147,10 +150,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`PacketCaptureResult + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`PacketCaptureResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -210,11 +216,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -290,11 +299,14 @@ def stop( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -371,12 +383,15 @@ def get_status( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`PacketCaptureQueryStatusResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -461,6 +476,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`PacketCaptureResult + ` :rtype: :class:`PacketCaptureResultPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/public_ip_addresses_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/public_ip_addresses_operations.py index daa37d4873f6..f5dc4a1d7e97 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/public_ip_addresses_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/public_ip_addresses_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -45,11 +45,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2017-06-01" @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`PublicIPAddress + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`PublicIPAddress - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2017-06-01" @@ -196,12 +202,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`PublicIPAddress - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2017-06-01" @@ -287,6 +296,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`PublicIPAddress + ` :rtype: :class:`PublicIPAddressPaged ` :raises: :class:`CloudError` @@ -354,6 +365,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`PublicIPAddress + ` :rtype: :class:`PublicIPAddressPaged ` :raises: :class:`CloudError` @@ -426,6 +439,8 @@ def list_virtual_machine_scale_set_public_ip_addresses( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`PublicIPAddress + ` :rtype: :class:`PublicIPAddressPaged ` :raises: :class:`CloudError` @@ -505,6 +520,8 @@ def list_virtual_machine_scale_set_vm_public_ip_addresses( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`PublicIPAddress + ` :rtype: :class:`PublicIPAddressPaged ` :raises: :class:`CloudError` @@ -590,10 +607,13 @@ def get_virtual_machine_scale_set_public_ip_address( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`PublicIPAddress + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`PublicIPAddress - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ api_version = "2017-03-30" diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/route_filter_rules_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/route_filter_rules_operations.py index ea86212e3371..057c06e6ceda 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/route_filter_rules_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/route_filter_rules_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -49,11 +49,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -131,10 +134,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`RouteFilterRule + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`RouteFilterRule - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -198,12 +204,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`RouteFilterRule - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -296,12 +305,15 @@ def update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`RouteFilterRule - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -388,6 +400,8 @@ def list_by_route_filter( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`RouteFilterRule + ` :rtype: :class:`RouteFilterRulePaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/route_filters_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/route_filters_operations.py index 1022a48e1eb5..cb924c2de87b 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/route_filters_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/route_filters_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`RouteFilter + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`RouteFilter - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -194,12 +200,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`RouteFilter - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -289,12 +298,15 @@ def update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`RouteFilter - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -378,6 +390,8 @@ def list_by_resource_group( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`RouteFilter + ` :rtype: :class:`RouteFilterPaged ` :raises: :class:`CloudError` @@ -442,6 +456,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`RouteFilter + ` :rtype: :class:`RouteFilterPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/route_tables_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/route_tables_operations.py index 6f34c6e2d87c..6a728f50f884 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/route_tables_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/route_tables_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`RouteTable + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`RouteTable - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -194,12 +200,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`RouteTable - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -285,6 +294,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`RouteTable + ` :rtype: :class:`RouteTablePaged ` :raises: :class:`CloudError` @@ -349,6 +360,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`RouteTable + ` :rtype: :class:`RouteTablePaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/routes_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/routes_operations.py index 8f8ce7dadc8d..8666801a8ad1 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/routes_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/routes_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -49,11 +49,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -131,9 +134,11 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`Route ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`Route ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -197,12 +202,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`Route - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -291,6 +299,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`Route + ` :rtype: :class:`RoutePaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/security_rules_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/security_rules_operations.py index a18abfa77bf1..cac09d5c62ec 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/security_rules_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/security_rules_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -50,11 +50,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -133,10 +136,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`SecurityRule + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`SecurityRule - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -202,12 +208,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`SecurityRule - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -297,6 +306,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`SecurityRule + ` :rtype: :class:`SecurityRulePaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/subnets_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/subnets_operations.py index e48a0c4fbe9f..93045a72375e 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/subnets_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/subnets_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -49,11 +49,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -133,9 +136,12 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`Subnet + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`Subnet ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -201,12 +207,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`Subnet - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -295,6 +304,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`Subnet + ` :rtype: :class:`SubnetPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/usages_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/usages_operations.py index 04060dd87699..4a9c00e644c0 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/usages_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/usages_operations.py @@ -9,9 +9,9 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError -import uuid from .. import models @@ -46,6 +46,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`Usage + ` :rtype: :class:`UsagePaged ` :raises: :class:`CloudError` @@ -56,7 +58,7 @@ def internal_paging(next_link=None, raw=False): # Construct URL url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/usages' path_format_arguments = { - 'location': self._serialize.url("location", location, 'str', pattern='^[-\w\._]+$'), + '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) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/virtual_network_gateway_connections_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/virtual_network_gateway_connections_operations.py index 87a41caedfb3..7d1cfd1a9cbc 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/virtual_network_gateway_connections_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/virtual_network_gateway_connections_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -53,12 +53,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VirtualNetworkGatewayConnection ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -148,10 +151,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`VirtualNetworkGatewayConnection + ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`VirtualNetworkGatewayConnection ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -209,11 +215,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -292,12 +301,15 @@ def set_shared_key( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ConnectionSharedKey - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.ConnectionSharedKey(value=value) @@ -390,10 +402,13 @@ def get_shared_key( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`ConnectionSharedKey + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`ConnectionSharedKey - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -451,6 +466,9 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of + :class:`VirtualNetworkGatewayConnection + ` :rtype: :class:`VirtualNetworkGatewayConnectionPaged ` :raises: :class:`CloudError` @@ -524,12 +542,15 @@ def reset_shared_key( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`ConnectionResetSharedKey - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ parameters = models.ConnectionResetSharedKey(key_length=key_length) diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/virtual_network_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/virtual_network_gateways_operations.py index 6e49b489f3cd..0fe18d37589a 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/virtual_network_gateways_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/virtual_network_gateways_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -53,12 +53,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VirtualNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -147,10 +150,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`VirtualNetworkGateway + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`VirtualNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -208,11 +214,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -285,6 +294,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`VirtualNetworkGateway + ` :rtype: :class:`VirtualNetworkGatewayPaged ` :raises: :class:`CloudError` @@ -340,6 +351,79 @@ def internal_paging(next_link=None, raw=False): 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 @@ -356,12 +440,15 @@ def reset( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VirtualNetworkGateway - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -449,11 +536,14 @@ def generatevpnclientpackage( :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` - instance that returns str - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -544,11 +634,14 @@ def generate_vpn_profile( :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` - instance that returns str - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -635,12 +728,15 @@ def get_bgp_peer_status( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`BgpPeerStatusListResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -724,12 +820,15 @@ def get_learned_routes( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`GatewayRouteListResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -813,12 +912,15 @@ def get_advertised_routes( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`GatewayRouteListResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/virtual_network_peerings_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/virtual_network_peerings_operations.py index 9fc558d8a7f1..0b4b3caa5293 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/virtual_network_peerings_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/virtual_network_peerings_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -50,11 +50,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -133,10 +136,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`VirtualNetworkPeering + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`VirtualNetworkPeering - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -201,12 +207,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VirtualNetworkPeering - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -295,6 +304,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`VirtualNetworkPeering + ` :rtype: :class:`VirtualNetworkPeeringPaged ` :raises: :class:`CloudError` diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/virtual_networks_operations.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/virtual_networks_operations.py index a25fda1cfdef..d482a0cbfa18 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/virtual_networks_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/operations/virtual_networks_operations.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- +import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from msrestazure.azure_operation import AzureOperationPoller -import uuid from .. import models @@ -47,11 +47,14 @@ def delete( :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` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -128,10 +131,13 @@ def get( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`VirtualNetwork + ` or + :class:`ClientRawResponse` if + raw=true :rtype: :class:`VirtualNetwork - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -194,12 +200,15 @@ def create_or_update( :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response - :rtype: + :return: :class:`AzureOperationPoller` instance that returns :class:`VirtualNetwork - ` - :rtype: :class:`ClientRawResponse` - if raw=true + ` or + :class:`ClientRawResponse` if + raw=true + :rtype: + :class:`AzureOperationPoller` + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -283,6 +292,8 @@ def list_all( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`VirtualNetwork + ` :rtype: :class:`VirtualNetworkPaged ` :raises: :class:`CloudError` @@ -348,6 +359,8 @@ def list( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`VirtualNetwork + ` :rtype: :class:`VirtualNetworkPaged ` :raises: :class:`CloudError` @@ -418,10 +431,13 @@ def check_ip_address_availability( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: :class:`IPAddressAvailabilityResult + ` + or :class:`ClientRawResponse` if + raw=true :rtype: :class:`IPAddressAvailabilityResult ` - :rtype: :class:`ClientRawResponse` - if raw=true + or :class:`ClientRawResponse` :raises: :class:`CloudError` """ # Construct URL @@ -482,6 +498,8 @@ def list_usage( deserialized response :param operation_config: :ref:`Operation configuration overrides`. + :return: An iterator like instance of :class:`VirtualNetworkUsage + ` :rtype: :class:`VirtualNetworkUsagePaged ` :raises: :class:`CloudError`