From 243c3e4cce3cfa2c1e3f3b3228c332d9bc4684f5 Mon Sep 17 00:00:00 2001 From: SwaggerToSDK Automation Date: Wed, 20 Sep 2017 00:57:29 +0000 Subject: [PATCH] Generated from 84789796871de66927c09bb0e6891962b214ff98 --- .../lib/generated/azure_mgmt_network.rb | 137 +-- .../application_gateways.rb | 24 +- .../application_security_groups.rb | 795 ++++++++++++++++++ .../available_endpoint_services.rb | 2 +- .../bgp_service_communities.rb | 2 +- .../default_security_rules.rb | 4 +- .../express_route_circuit_authorizations.rb | 8 +- .../express_route_circuit_peerings.rb | 8 +- .../express_route_circuits.rb | 20 +- .../express_route_service_providers.rb | 2 +- .../azure_mgmt_network/inbound_nat_rules.rb | 8 +- .../load_balancer_backend_address_pools.rb | 4 +- ...load_balancer_frontend_ipconfigurations.rb | 4 +- .../load_balancer_load_balancing_rules.rb | 4 +- .../load_balancer_network_interfaces.rb | 2 +- .../load_balancer_probes.rb | 4 +- .../azure_mgmt_network/load_balancers.rb | 10 +- .../local_network_gateways.rb | 8 +- .../models/application_security_group.rb | 118 +++ .../application_security_group_list_result.rb | 96 +++ .../models/inbound_nat_pool.rb | 5 +- .../models/inbound_nat_rule.rb | 7 +- .../models/load_balancing_rule.rb | 12 +- .../network_interface_ipconfiguration.rb | 19 + .../models/security_rule.rb | 38 + .../models/transport_protocol.rb | 1 + .../models/virtual_network.rb | 22 + .../models/virtual_network_peering.rb | 5 +- .../network_interface_ipconfigurations.rb | 4 +- .../network_interface_load_balancers.rb | 2 +- .../azure_mgmt_network/network_interfaces.rb | 14 +- .../network_management_client.rb | 6 +- .../network_security_groups.rb | 10 +- .../azure_mgmt_network/network_watchers.rb | 28 +- .../azure_mgmt_network/packet_captures.rb | 12 +- .../azure_mgmt_network/public_ipaddresses.rb | 10 +- .../azure_mgmt_network/route_filter_rules.rb | 10 +- .../azure_mgmt_network/route_filters.rb | 12 +- .../azure_mgmt_network/route_tables.rb | 10 +- .../generated/azure_mgmt_network/routes.rb | 8 +- .../azure_mgmt_network/security_rules.rb | 8 +- .../generated/azure_mgmt_network/subnets.rb | 8 +- .../generated/azure_mgmt_network/usages.rb | 2 +- .../virtual_network_gateway_connections.rb | 14 +- .../virtual_network_gateways.rb | 24 +- .../virtual_network_peerings.rb | 8 +- .../azure_mgmt_network/virtual_networks.rb | 14 +- 47 files changed, 1335 insertions(+), 238 deletions(-) create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/application_security_groups.rb create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_security_group.rb create mode 100644 management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_security_group_list_result.rb diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network.rb index 4fc7bc865b..a35a935ff7 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network.rb @@ -21,6 +21,7 @@ module Azure::ARM::Network autoload :ApplicationGateways, 'generated/azure_mgmt_network/application_gateways.rb' + autoload :ApplicationSecurityGroups, 'generated/azure_mgmt_network/application_security_groups.rb' autoload :AvailableEndpointServices, 'generated/azure_mgmt_network/available_endpoint_services.rb' autoload :ExpressRouteCircuitAuthorizations, 'generated/azure_mgmt_network/express_route_circuit_authorizations.rb' autoload :ExpressRouteCircuitPeerings, 'generated/azure_mgmt_network/express_route_circuit_peerings.rb' @@ -57,27 +58,27 @@ module Azure::ARM::Network autoload :NetworkManagementClient, 'generated/azure_mgmt_network/network_management_client.rb' module Models + autoload :NetworkInterfaceIPConfigurationListResult, 'generated/azure_mgmt_network/models/network_interface_ipconfiguration_list_result.rb' autoload :NetworkInterfaceLoadBalancerListResult, 'generated/azure_mgmt_network/models/network_interface_load_balancer_list_result.rb' - autoload :EffectiveNetworkSecurityGroupAssociation, 'generated/azure_mgmt_network/models/effective_network_security_group_association.rb' + autoload :ExpressRouteCircuitsArpTableListResult, 'generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb' autoload :ExpressRouteCircuitRoutesTable, 'generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb' - autoload :ExpressRouteCircuitsRoutesTableListResult, 'generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb' autoload :NetworkInterfaceDnsSettings, 'generated/azure_mgmt_network/models/network_interface_dns_settings.rb' + autoload :ExpressRouteCircuitsRoutesTableListResult, 'generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb' + autoload :LocalNetworkGatewayListResult, 'generated/azure_mgmt_network/models/local_network_gateway_list_result.rb' autoload :ExpressRouteCircuitRoutesTableSummary, 'generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb' - autoload :VirtualNetworkConnectionGatewayReference, 'generated/azure_mgmt_network/models/virtual_network_connection_gateway_reference.rb' + autoload :ConnectionResetSharedKey, 'generated/azure_mgmt_network/models/connection_reset_shared_key.rb' autoload :ExpressRouteCircuitsRoutesTableSummaryListResult, 'generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb' - autoload :ConnectionSharedKey, 'generated/azure_mgmt_network/models/connection_shared_key.rb' - autoload :ExpressRouteCircuitListResult, 'generated/azure_mgmt_network/models/express_route_circuit_list_result.rb' autoload :PublicIPAddressSku, 'generated/azure_mgmt_network/models/public_ipaddress_sku.rb' + autoload :ExpressRouteCircuitListResult, 'generated/azure_mgmt_network/models/express_route_circuit_list_result.rb' + autoload :VirtualNetworkGatewayConnectionListResult, 'generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb' autoload :ExpressRouteServiceProviderBandwidthsOffered, 'generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb' - autoload :ConnectionResetSharedKey, 'generated/azure_mgmt_network/models/connection_reset_shared_key.rb' - autoload :RouteTableListResult, 'generated/azure_mgmt_network/models/route_table_list_result.rb' - autoload :IpsecPolicy, 'generated/azure_mgmt_network/models/ipsec_policy.rb' - autoload :ExpressRouteServiceProviderListResult, 'generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb' - autoload :GatewayRouteListResult, 'generated/azure_mgmt_network/models/gateway_route_list_result.rb' - autoload :LoadBalancerSku, 'generated/azure_mgmt_network/models/load_balancer_sku.rb' - autoload :BgpPeerStatusListResult, 'generated/azure_mgmt_network/models/bgp_peer_status_list_result.rb' + autoload :TunnelConnectionHealth, 'generated/azure_mgmt_network/models/tunnel_connection_health.rb' autoload :RouteFilterRuleListResult, 'generated/azure_mgmt_network/models/route_filter_rule_list_result.rb' + autoload :BgpPeerStatusListResult, 'generated/azure_mgmt_network/models/bgp_peer_status_list_result.rb' + autoload :ExpressRouteServiceProviderListResult, 'generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb' autoload :VirtualNetworkGatewayListResult, 'generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb' + autoload :LoadBalancerSku, 'generated/azure_mgmt_network/models/load_balancer_sku.rb' + autoload :VpnClientParameters, 'generated/azure_mgmt_network/models/vpn_client_parameters.rb' autoload :RouteFilterListResult, 'generated/azure_mgmt_network/models/route_filter_list_result.rb' autoload :ApplicationGatewayBackendHealthHttpSettings, 'generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb' autoload :PublicIPAddressListResult, 'generated/azure_mgmt_network/models/public_ipaddress_list_result.rb' @@ -85,111 +86,113 @@ module Models autoload :ConnectivityInformation, 'generated/azure_mgmt_network/models/connectivity_information.rb' autoload :ApplicationGatewaySslPolicy, 'generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb' autoload :ConnectivityHop, 'generated/azure_mgmt_network/models/connectivity_hop.rb' - autoload :GatewayRoute, 'generated/azure_mgmt_network/models/gateway_route.rb' + autoload :BgpPeerStatus, 'generated/azure_mgmt_network/models/bgp_peer_status.rb' autoload :ConnectivityIssue, 'generated/azure_mgmt_network/models/connectivity_issue.rb' - autoload :BgpSettings, 'generated/azure_mgmt_network/models/bgp_settings.rb' + autoload :VpnClientConfiguration, 'generated/azure_mgmt_network/models/vpn_client_configuration.rb' + autoload :ConnectivityParameters, 'generated/azure_mgmt_network/models/connectivity_parameters.rb' + autoload :VirtualNetworkListUsageResult, 'generated/azure_mgmt_network/models/virtual_network_list_usage_result.rb' autoload :LoadBalancerListResult, 'generated/azure_mgmt_network/models/load_balancer_list_result.rb' - autoload :VirtualNetworkGatewaySku, 'generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb' - autoload :InboundNatRuleListResult, 'generated/azure_mgmt_network/models/inbound_nat_rule_list_result.rb' autoload :ApplicationGatewayProbeHealthResponseMatch, 'generated/azure_mgmt_network/models/application_gateway_probe_health_response_match.rb' + autoload :InboundNatRuleListResult, 'generated/azure_mgmt_network/models/inbound_nat_rule_list_result.rb' + autoload :IPAddressAvailabilityResult, 'generated/azure_mgmt_network/models/ipaddress_availability_result.rb' autoload :LoadBalancerBackendAddressPoolListResult, 'generated/azure_mgmt_network/models/load_balancer_backend_address_pool_list_result.rb' - autoload :VirtualNetworkUsageName, 'generated/azure_mgmt_network/models/virtual_network_usage_name.rb' + autoload :DhcpOptions, 'generated/azure_mgmt_network/models/dhcp_options.rb' autoload :LoadBalancerFrontendIPConfigurationListResult, 'generated/azure_mgmt_network/models/load_balancer_frontend_ipconfiguration_list_result.rb' - autoload :VirtualNetworkListResult, 'generated/azure_mgmt_network/models/virtual_network_list_result.rb' - autoload :LoadBalancerLoadBalancingRuleListResult, 'generated/azure_mgmt_network/models/load_balancer_load_balancing_rule_list_result.rb' autoload :ApplicationGatewayWebApplicationFirewallConfiguration, 'generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb' - autoload :LoadBalancerProbeListResult, 'generated/azure_mgmt_network/models/load_balancer_probe_list_result.rb' + autoload :LoadBalancerLoadBalancingRuleListResult, 'generated/azure_mgmt_network/models/load_balancer_load_balancing_rule_list_result.rb' autoload :ApplicationGatewayListResult, 'generated/azure_mgmt_network/models/application_gateway_list_result.rb' - autoload :NetworkInterfaceListResult, 'generated/azure_mgmt_network/models/network_interface_list_result.rb' + autoload :LoadBalancerProbeListResult, 'generated/azure_mgmt_network/models/load_balancer_probe_list_result.rb' autoload :ApplicationGatewayFirewallRuleGroup, 'generated/azure_mgmt_network/models/application_gateway_firewall_rule_group.rb' - autoload :ErrorDetails, 'generated/azure_mgmt_network/models/error_details.rb' + autoload :NetworkInterfaceListResult, 'generated/azure_mgmt_network/models/network_interface_list_result.rb' autoload :ApplicationGatewayAvailableWafRuleSetsResult, 'generated/azure_mgmt_network/models/application_gateway_available_waf_rule_sets_result.rb' + autoload :ErrorDetails, 'generated/azure_mgmt_network/models/error_details.rb' + autoload :UsagesListResult, 'generated/azure_mgmt_network/models/usages_list_result.rb' autoload :Error, 'generated/azure_mgmt_network/models/error.rb' - autoload :SubnetListResult, 'generated/azure_mgmt_network/models/subnet_list_result.rb' autoload :AzureAsyncOperationResult, 'generated/azure_mgmt_network/models/azure_async_operation_result.rb' - autoload :NetworkInterfaceIPConfigurationListResult, 'generated/azure_mgmt_network/models/network_interface_ipconfiguration_list_result.rb' - autoload :UsagesListResult, 'generated/azure_mgmt_network/models/usages_list_result.rb' - autoload :EndpointServicesListResult, 'generated/azure_mgmt_network/models/endpoint_services_list_result.rb' - autoload :ConnectivitySource, 'generated/azure_mgmt_network/models/connectivity_source.rb' - autoload :AuthorizationListResult, 'generated/azure_mgmt_network/models/authorization_list_result.rb' - autoload :ConnectivityParameters, 'generated/azure_mgmt_network/models/connectivity_parameters.rb' + autoload :DnsNameAvailabilityResult, 'generated/azure_mgmt_network/models/dns_name_availability_result.rb' + autoload :Usage, 'generated/azure_mgmt_network/models/usage.rb' + autoload :FlowLogInformation, 'generated/azure_mgmt_network/models/flow_log_information.rb' autoload :UsageName, 'generated/azure_mgmt_network/models/usage_name.rb' + autoload :ConnectivityDestination, 'generated/azure_mgmt_network/models/connectivity_destination.rb' + autoload :ExpressRouteCircuitPeeringConfig, 'generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb' + autoload :EffectiveNetworkSecurityGroupAssociation, 'generated/azure_mgmt_network/models/effective_network_security_group_association.rb' + autoload :ExpressRouteCircuitStats, 'generated/azure_mgmt_network/models/express_route_circuit_stats.rb' autoload :EffectiveNetworkSecurityRule, 'generated/azure_mgmt_network/models/effective_network_security_rule.rb' - autoload :BgpServiceCommunityListResult, 'generated/azure_mgmt_network/models/bgp_service_community_list_result.rb' + autoload :RouteListResult, 'generated/azure_mgmt_network/models/route_list_result.rb' autoload :EffectiveNetworkSecurityGroup, 'generated/azure_mgmt_network/models/effective_network_security_group.rb' - autoload :Ipv6ExpressRouteCircuitPeeringConfig, 'generated/azure_mgmt_network/models/ipv6express_route_circuit_peering_config.rb' + autoload :ExpressRouteCircuitPeeringListResult, 'generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb' autoload :EffectiveNetworkSecurityGroupListResult, 'generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb' - autoload :ExpressRouteCircuitSku, 'generated/azure_mgmt_network/models/express_route_circuit_sku.rb' + autoload :ExpressRouteCircuitServiceProviderProperties, 'generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb' autoload :EffectiveRoute, 'generated/azure_mgmt_network/models/effective_route.rb' - autoload :RouteListResult, 'generated/azure_mgmt_network/models/route_list_result.rb' + autoload :ExpressRouteCircuitArpTable, 'generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb' autoload :EffectiveRouteListResult, 'generated/azure_mgmt_network/models/effective_route_list_result.rb' - autoload :ExpressRouteCircuitsArpTableListResult, 'generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb' + autoload :VirtualNetworkConnectionGatewayReference, 'generated/azure_mgmt_network/models/virtual_network_connection_gateway_reference.rb' autoload :SecurityRuleListResult, 'generated/azure_mgmt_network/models/security_rule_list_result.rb' - autoload :VirtualNetworkGatewayListConnectionsResult, 'generated/azure_mgmt_network/models/virtual_network_gateway_list_connections_result.rb' - autoload :NetworkSecurityGroupListResult, 'generated/azure_mgmt_network/models/network_security_group_list_result.rb' autoload :ServiceEndpointPropertiesFormat, 'generated/azure_mgmt_network/models/service_endpoint_properties_format.rb' - autoload :ConnectivityDestination, 'generated/azure_mgmt_network/models/connectivity_destination.rb' - autoload :VirtualNetworkGatewayConnectionListResult, 'generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb' - autoload :NetworkWatcherListResult, 'generated/azure_mgmt_network/models/network_watcher_list_result.rb' + autoload :NetworkSecurityGroupListResult, 'generated/azure_mgmt_network/models/network_security_group_list_result.rb' + autoload :IpsecPolicy, 'generated/azure_mgmt_network/models/ipsec_policy.rb' + autoload :ConnectivitySource, 'generated/azure_mgmt_network/models/connectivity_source.rb' autoload :ApplicationGatewayBackendAddress, 'generated/azure_mgmt_network/models/application_gateway_backend_address.rb' - autoload :TopologyParameters, 'generated/azure_mgmt_network/models/topology_parameters.rb' + autoload :NetworkWatcherListResult, 'generated/azure_mgmt_network/models/network_watcher_list_result.rb' autoload :ApplicationGatewayBackendHealthServer, 'generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb' - autoload :TopologyAssociation, 'generated/azure_mgmt_network/models/topology_association.rb' + autoload :TopologyParameters, 'generated/azure_mgmt_network/models/topology_parameters.rb' autoload :ApplicationGatewaySku, 'generated/azure_mgmt_network/models/application_gateway_sku.rb' + autoload :TopologyAssociation, 'generated/azure_mgmt_network/models/topology_association.rb' + autoload :BgpSettings, 'generated/azure_mgmt_network/models/bgp_settings.rb' autoload :TopologyResource, 'generated/azure_mgmt_network/models/topology_resource.rb' - autoload :BgpPeerStatus, 'generated/azure_mgmt_network/models/bgp_peer_status.rb' + autoload :VirtualNetworkUsage, 'generated/azure_mgmt_network/models/virtual_network_usage.rb' autoload :Topology, 'generated/azure_mgmt_network/models/topology.rb' - autoload :VirtualNetworkListUsageResult, 'generated/azure_mgmt_network/models/virtual_network_list_usage_result.rb' + autoload :VirtualNetworkListResult, 'generated/azure_mgmt_network/models/virtual_network_list_result.rb' autoload :VerificationIPFlowParameters, 'generated/azure_mgmt_network/models/verification_ipflow_parameters.rb' - autoload :IPAddressAvailabilityResult, 'generated/azure_mgmt_network/models/ipaddress_availability_result.rb' + autoload :AddressSpace, 'generated/azure_mgmt_network/models/address_space.rb' autoload :VerificationIPFlowResult, 'generated/azure_mgmt_network/models/verification_ipflow_result.rb' - autoload :DhcpOptions, 'generated/azure_mgmt_network/models/dhcp_options.rb' + autoload :VirtualNetworkPeeringListResult, 'generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb' autoload :NextHopParameters, 'generated/azure_mgmt_network/models/next_hop_parameters.rb' - autoload :AddressSpace, 'generated/azure_mgmt_network/models/address_space.rb' - autoload :NextHopResult, 'generated/azure_mgmt_network/models/next_hop_result.rb' autoload :ApplicationGatewayAvailableSslPredefinedPolicies, 'generated/azure_mgmt_network/models/application_gateway_available_ssl_predefined_policies.rb' + autoload :NextHopResult, 'generated/azure_mgmt_network/models/next_hop_result.rb' + autoload :EndpointServicesListResult, 'generated/azure_mgmt_network/models/endpoint_services_list_result.rb' autoload :SecurityGroupViewParameters, 'generated/azure_mgmt_network/models/security_group_view_parameters.rb' - autoload :Usage, 'generated/azure_mgmt_network/models/usage.rb' + autoload :BgpServiceCommunityListResult, 'generated/azure_mgmt_network/models/bgp_service_community_list_result.rb' autoload :NetworkInterfaceAssociation, 'generated/azure_mgmt_network/models/network_interface_association.rb' - autoload :ExpressRouteCircuitStats, 'generated/azure_mgmt_network/models/express_route_circuit_stats.rb' + autoload :Ipv6ExpressRouteCircuitPeeringConfig, 'generated/azure_mgmt_network/models/ipv6express_route_circuit_peering_config.rb' autoload :SubnetAssociation, 'generated/azure_mgmt_network/models/subnet_association.rb' - autoload :ExpressRouteCircuitPeeringListResult, 'generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb' + autoload :RouteTableListResult, 'generated/azure_mgmt_network/models/route_table_list_result.rb' autoload :SecurityRuleAssociations, 'generated/azure_mgmt_network/models/security_rule_associations.rb' - autoload :ExpressRouteCircuitArpTable, 'generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb' + autoload :ConnectionSharedKey, 'generated/azure_mgmt_network/models/connection_shared_key.rb' autoload :SecurityGroupNetworkInterface, 'generated/azure_mgmt_network/models/security_group_network_interface.rb' - autoload :LocalNetworkGatewayListResult, 'generated/azure_mgmt_network/models/local_network_gateway_list_result.rb' + autoload :GatewayRouteListResult, 'generated/azure_mgmt_network/models/gateway_route_list_result.rb' autoload :SecurityGroupViewResult, 'generated/azure_mgmt_network/models/security_group_view_result.rb' - autoload :TunnelConnectionHealth, 'generated/azure_mgmt_network/models/tunnel_connection_health.rb' - autoload :PacketCaptureStorageLocation, 'generated/azure_mgmt_network/models/packet_capture_storage_location.rb' autoload :ApplicationGatewayBackendHealthPool, 'generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb' + autoload :PacketCaptureStorageLocation, 'generated/azure_mgmt_network/models/packet_capture_storage_location.rb' + autoload :VirtualNetworkGatewaySku, 'generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb' autoload :PacketCaptureFilter, 'generated/azure_mgmt_network/models/packet_capture_filter.rb' - autoload :VpnClientConfiguration, 'generated/azure_mgmt_network/models/vpn_client_configuration.rb' - autoload :PacketCaptureParameters, 'generated/azure_mgmt_network/models/packet_capture_parameters.rb' autoload :ApplicationGatewayFirewallDisabledRuleGroup, 'generated/azure_mgmt_network/models/application_gateway_firewall_disabled_rule_group.rb' + autoload :PacketCaptureParameters, 'generated/azure_mgmt_network/models/packet_capture_parameters.rb' + autoload :SubnetListResult, 'generated/azure_mgmt_network/models/subnet_list_result.rb' autoload :PacketCapture, 'generated/azure_mgmt_network/models/packet_capture.rb' - autoload :VirtualNetworkPeeringListResult, 'generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb' + autoload :AuthorizationListResult, 'generated/azure_mgmt_network/models/authorization_list_result.rb' autoload :PacketCaptureResult, 'generated/azure_mgmt_network/models/packet_capture_result.rb' - autoload :ExpressRouteCircuitPeeringConfig, 'generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb' + autoload :ExpressRouteCircuitSku, 'generated/azure_mgmt_network/models/express_route_circuit_sku.rb' autoload :PacketCaptureListResult, 'generated/azure_mgmt_network/models/packet_capture_list_result.rb' - autoload :ExpressRouteCircuitServiceProviderProperties, 'generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb' - autoload :PacketCaptureQueryStatusResult, 'generated/azure_mgmt_network/models/packet_capture_query_status_result.rb' autoload :PublicIPAddressDnsSettings, 'generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb' + autoload :PacketCaptureQueryStatusResult, 'generated/azure_mgmt_network/models/packet_capture_query_status_result.rb' + autoload :GatewayRoute, 'generated/azure_mgmt_network/models/gateway_route.rb' autoload :TroubleshootingParameters, 'generated/azure_mgmt_network/models/troubleshooting_parameters.rb' - autoload :VpnClientParameters, 'generated/azure_mgmt_network/models/vpn_client_parameters.rb' - autoload :QueryTroubleshootingParameters, 'generated/azure_mgmt_network/models/query_troubleshooting_parameters.rb' autoload :ApplicationGatewayFirewallRule, 'generated/azure_mgmt_network/models/application_gateway_firewall_rule.rb' - autoload :TroubleshootingRecommendedActions, 'generated/azure_mgmt_network/models/troubleshooting_recommended_actions.rb' + autoload :QueryTroubleshootingParameters, 'generated/azure_mgmt_network/models/query_troubleshooting_parameters.rb' autoload :BGPCommunity, 'generated/azure_mgmt_network/models/bgpcommunity.rb' - autoload :TroubleshootingDetails, 'generated/azure_mgmt_network/models/troubleshooting_details.rb' + autoload :TroubleshootingRecommendedActions, 'generated/azure_mgmt_network/models/troubleshooting_recommended_actions.rb' autoload :ApplicationGatewayConnectionDraining, 'generated/azure_mgmt_network/models/application_gateway_connection_draining.rb' + autoload :TroubleshootingDetails, 'generated/azure_mgmt_network/models/troubleshooting_details.rb' + autoload :ApplicationSecurityGroupListResult, 'generated/azure_mgmt_network/models/application_security_group_list_result.rb' autoload :TroubleshootingResult, 'generated/azure_mgmt_network/models/troubleshooting_result.rb' - autoload :DnsNameAvailabilityResult, 'generated/azure_mgmt_network/models/dns_name_availability_result.rb' + autoload :VirtualNetworkUsageName, 'generated/azure_mgmt_network/models/virtual_network_usage_name.rb' autoload :RetentionPolicyParameters, 'generated/azure_mgmt_network/models/retention_policy_parameters.rb' - autoload :VirtualNetworkUsage, 'generated/azure_mgmt_network/models/virtual_network_usage.rb' + autoload :VirtualNetworkGatewayListConnectionsResult, 'generated/azure_mgmt_network/models/virtual_network_gateway_list_connections_result.rb' autoload :FlowLogStatusParameters, 'generated/azure_mgmt_network/models/flow_log_status_parameters.rb' - autoload :FlowLogInformation, 'generated/azure_mgmt_network/models/flow_log_information.rb' autoload :BackendAddressPool, 'generated/azure_mgmt_network/models/backend_address_pool.rb' autoload :InboundNatRule, 'generated/azure_mgmt_network/models/inbound_nat_rule.rb' + autoload :ApplicationSecurityGroup, 'generated/azure_mgmt_network/models/application_security_group.rb' autoload :SecurityRule, 'generated/azure_mgmt_network/models/security_rule.rb' autoload :NetworkInterface, 'generated/azure_mgmt_network/models/network_interface.rb' autoload :NetworkSecurityGroup, 'generated/azure_mgmt_network/models/network_security_group.rb' diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/application_gateways.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/application_gateways.rb index 1f7fd6285a..85146d79b3 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/application_gateways.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/application_gateways.rb @@ -101,7 +101,7 @@ def get_with_http_info(resource_group_name, application_gateway_name, custom_hea def get_async(resource_group_name, application_gateway_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -234,7 +234,7 @@ def list_with_http_info(resource_group_name, custom_headers = nil) # def list_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -317,7 +317,7 @@ def list_all_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_all_async(custom_headers = nil) - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -523,7 +523,7 @@ def list_available_waf_rule_sets_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_available_waf_rule_sets_async(custom_headers = nil) - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -606,7 +606,7 @@ def list_available_ssl_options_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_available_ssl_options_async(custom_headers = nil) - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -689,7 +689,7 @@ def list_available_ssl_predefined_policies_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_available_ssl_predefined_policies_async(custom_headers = nil) - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -775,7 +775,7 @@ def get_ssl_predefined_policy_with_http_info(predefined_policy_name, custom_head # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def get_ssl_predefined_policy_async(predefined_policy_name, custom_headers = nil) - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'predefined_policy_name is nil' if predefined_policy_name.nil? @@ -866,7 +866,7 @@ def begin_delete_with_http_info(resource_group_name, application_gateway_name, c def begin_delete_async(resource_group_name, application_gateway_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -954,7 +954,7 @@ def begin_create_or_update_async(resource_group_name, application_gateway_name, fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1063,7 +1063,7 @@ def begin_start_with_http_info(resource_group_name, application_gateway_name, cu def begin_start_async(resource_group_name, application_gateway_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1143,7 +1143,7 @@ def begin_stop_with_http_info(resource_group_name, application_gateway_name, cus def begin_stop_async(resource_group_name, application_gateway_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1233,7 +1233,7 @@ def begin_backend_health_with_http_info(resource_group_name, application_gateway def begin_backend_health_async(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/application_security_groups.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/application_security_groups.rb new file mode 100644 index 0000000000..d0ed126704 --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/application_security_groups.rb @@ -0,0 +1,795 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + # + # Network Client + # + class ApplicationSecurityGroups + include MsRestAzure + + # + # Creates and initializes a new instance of the ApplicationSecurityGroups class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [NetworkManagementClient] reference to the NetworkManagementClient + attr_reader :client + + # + # Deletes the specified application security group. + # + # @param resource_group_name [String] The name of the resource group. + # @param application_security_group_name [String] The name of the application + # security group. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + def delete(resource_group_name, application_security_group_name, custom_headers = nil) + response = delete_async(resource_group_name, application_security_group_name, custom_headers).value! + nil + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param application_security_group_name [String] The name of the application + # security group. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Concurrent::Promise] promise which provides async access to http + # response. + # + def delete_async(resource_group_name, application_security_group_name, custom_headers = nil) + # Send request + promise = begin_delete_async(resource_group_name, application_security_group_name, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Gets information about the specified application security group. + # + # @param resource_group_name [String] The name of the resource group. + # @param application_security_group_name [String] The name of the application + # security group. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApplicationSecurityGroup] operation results. + # + def get(resource_group_name, application_security_group_name, custom_headers = nil) + response = get_async(resource_group_name, application_security_group_name, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets information about the specified application security group. + # + # @param resource_group_name [String] The name of the resource group. + # @param application_security_group_name [String] The name of the application + # security group. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def get_with_http_info(resource_group_name, application_security_group_name, custom_headers = nil) + get_async(resource_group_name, application_security_group_name, custom_headers).value! + end + + # + # Gets information about the specified application security group. + # + # @param resource_group_name [String] The name of the resource group. + # @param application_security_group_name [String] The name of the application + # security group. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def get_async(resource_group_name, application_security_group_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'application_security_group_name is nil' if application_security_group_name.nil? + api_version = '2017-09-01' + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'applicationSecurityGroupName' => application_security_group_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::ApplicationSecurityGroup.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Creates or updates an application security group. + # + # @param resource_group_name [String] The name of the resource group. + # @param application_security_group_name [String] The name of the application + # security group. + # @param parameters [ApplicationSecurityGroup] Parameters supplied to the + # create or update ApplicationSecurityGroup operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApplicationSecurityGroup] operation results. + # + def create_or_update(resource_group_name, application_security_group_name, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, application_security_group_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # @param resource_group_name [String] The name of the resource group. + # @param application_security_group_name [String] The name of the application + # security group. + # @param parameters [ApplicationSecurityGroup] Parameters supplied to the + # create or update ApplicationSecurityGroup operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Concurrent::Promise] promise which provides async access to http + # response. + # + def create_or_update_async(resource_group_name, application_security_group_name, parameters, custom_headers = nil) + # Send request + promise = begin_create_or_update_async(resource_group_name, application_security_group_name, parameters, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::ARM::Network::Models::ApplicationSecurityGroup.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Gets all application security groups in a subscription. + # + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list_all(custom_headers = nil) + first_page = list_all_as_lazy(custom_headers) + first_page.get_all_items + end + + # + # Gets all application security groups in a subscription. + # + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_all_with_http_info(custom_headers = nil) + list_all_async(custom_headers).value! + end + + # + # Gets all application security groups in a subscription. + # + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_all_async(custom_headers = nil) + api_version = '2017-09-01' + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationSecurityGroups' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::ApplicationSecurityGroupListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets all the application security groups in a resource group. + # + # @param resource_group_name [String] The name of the resource group. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Array] operation results. + # + def list(resource_group_name, custom_headers = nil) + first_page = list_as_lazy(resource_group_name, custom_headers) + first_page.get_all_items + end + + # + # Gets all the application security groups in a resource group. + # + # @param resource_group_name [String] The name of the resource group. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_with_http_info(resource_group_name, custom_headers = nil) + list_async(resource_group_name, custom_headers).value! + end + + # + # Gets all the application security groups in a resource group. + # + # @param resource_group_name [String] The name of the resource group. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_async(resource_group_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + api_version = '2017-09-01' + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::ApplicationSecurityGroupListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Deletes the specified application security group. + # + # @param resource_group_name [String] The name of the resource group. + # @param application_security_group_name [String] The name of the application + # security group. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def begin_delete(resource_group_name, application_security_group_name, custom_headers = nil) + response = begin_delete_async(resource_group_name, application_security_group_name, custom_headers).value! + nil + end + + # + # Deletes the specified application security group. + # + # @param resource_group_name [String] The name of the resource group. + # @param application_security_group_name [String] The name of the application + # security group. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def begin_delete_with_http_info(resource_group_name, application_security_group_name, custom_headers = nil) + begin_delete_async(resource_group_name, application_security_group_name, custom_headers).value! + end + + # + # Deletes the specified application security group. + # + # @param resource_group_name [String] The name of the resource group. + # @param application_security_group_name [String] The name of the application + # security group. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def begin_delete_async(resource_group_name, application_security_group_name, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'application_security_group_name is nil' if application_security_group_name.nil? + api_version = '2017-09-01' + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'applicationSecurityGroupName' => application_security_group_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:delete, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 204 || status_code == 202 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Creates or updates an application security group. + # + # @param resource_group_name [String] The name of the resource group. + # @param application_security_group_name [String] The name of the application + # security group. + # @param parameters [ApplicationSecurityGroup] Parameters supplied to the + # create or update ApplicationSecurityGroup operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApplicationSecurityGroup] operation results. + # + def begin_create_or_update(resource_group_name, application_security_group_name, parameters, custom_headers = nil) + response = begin_create_or_update_async(resource_group_name, application_security_group_name, parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates or updates an application security group. + # + # @param resource_group_name [String] The name of the resource group. + # @param application_security_group_name [String] The name of the application + # security group. + # @param parameters [ApplicationSecurityGroup] Parameters supplied to the + # create or update ApplicationSecurityGroup operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def begin_create_or_update_with_http_info(resource_group_name, application_security_group_name, parameters, custom_headers = nil) + begin_create_or_update_async(resource_group_name, application_security_group_name, parameters, custom_headers).value! + end + + # + # Creates or updates an application security group. + # + # @param resource_group_name [String] The name of the resource group. + # @param application_security_group_name [String] The name of the application + # security group. + # @param parameters [ApplicationSecurityGroup] Parameters supplied to the + # create or update ApplicationSecurityGroup operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def begin_create_or_update_async(resource_group_name, application_security_group_name, parameters, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'application_security_group_name is nil' if application_security_group_name.nil? + fail ArgumentError, 'parameters is nil' if parameters.nil? + api_version = '2017-09-01' + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::ARM::Network::Models::ApplicationSecurityGroup.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'applicationSecurityGroupName' => application_security_group_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 || status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::ApplicationSecurityGroup.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::ApplicationSecurityGroup.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets all application security groups in a subscription. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApplicationSecurityGroupListResult] operation results. + # + def list_all_next(next_page_link, custom_headers = nil) + response = list_all_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets all application security groups in a subscription. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_all_next_with_http_info(next_page_link, custom_headers = nil) + list_all_next_async(next_page_link, custom_headers).value! + end + + # + # Gets all application security groups in a subscription. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_all_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::ApplicationSecurityGroupListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets all the application security groups in a resource group. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApplicationSecurityGroupListResult] operation results. + # + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! + response.body unless response.nil? + end + + # + # Gets all the application security groups in a resource group. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! + end + + # + # Gets all the application security groups in a resource group. + # + # @param next_page_link [String] The NextLink from the previous successful call + # to List operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_next_async(next_page_link, custom_headers = nil) + fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = '{nextLink}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + skip_encoding_path_params: {'nextLink' => next_page_link}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::ARM::Network::Models::ApplicationSecurityGroupListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Gets all application security groups in a subscription. + # + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApplicationSecurityGroupListResult] which provide lazy access to + # pages of the response. + # + def list_all_as_lazy(custom_headers = nil) + response = list_all_async(custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_all_next_async(next_page_link, custom_headers) + end + page + end + end + + # + # Gets all the application security groups in a resource group. + # + # @param resource_group_name [String] The name of the resource group. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [ApplicationSecurityGroupListResult] which provide lazy access to + # pages of the response. + # + def list_as_lazy(resource_group_name, custom_headers = nil) + response = list_async(resource_group_name, custom_headers).value! + unless response.nil? + page = response.body + page.next_method = Proc.new do |next_page_link| + list_next_async(next_page_link, custom_headers) + end + page + end + end + + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/available_endpoint_services.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/available_endpoint_services.rb index d23221c631..93bd75a0b1 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/available_endpoint_services.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/available_endpoint_services.rb @@ -59,7 +59,7 @@ def list_with_http_info(location, custom_headers = nil) # def list_async(location, custom_headers = nil) fail ArgumentError, 'location is nil' if location.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/bgp_service_communities.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/bgp_service_communities.rb index c9be3f0512..8b0823b788 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/bgp_service_communities.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/bgp_service_communities.rb @@ -55,7 +55,7 @@ def list_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_async(custom_headers = nil) - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/default_security_rules.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/default_security_rules.rb index df336a89d1..cb79d2be92 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/default_security_rules.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/default_security_rules.rb @@ -66,7 +66,7 @@ def list_with_http_info(resource_group_name, network_security_group_name, custom def list_async(resource_group_name, network_security_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -167,7 +167,7 @@ def get_async(resource_group_name, network_security_group_name, default_security fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'default_security_rule_name is nil' if default_security_rule_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb index 2300fbe5fe..8a6fa91622 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb @@ -107,7 +107,7 @@ def get_async(resource_group_name, circuit_name, authorization_name, custom_head fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -248,7 +248,7 @@ def list_with_http_info(resource_group_name, circuit_name, custom_headers = nil) def list_async(resource_group_name, circuit_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -342,7 +342,7 @@ def begin_delete_async(resource_group_name, circuit_name, authorization_name, cu fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -437,7 +437,7 @@ def begin_create_or_update_async(resource_group_name, circuit_name, authorizatio fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'authorization_name is nil' if authorization_name.nil? fail ArgumentError, 'authorization_parameters is nil' if authorization_parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb index 76f825de7d..c41e71f2e7 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb @@ -107,7 +107,7 @@ def get_async(resource_group_name, circuit_name, peering_name, custom_headers = fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -246,7 +246,7 @@ def list_with_http_info(resource_group_name, circuit_name, custom_headers = nil) def list_async(resource_group_name, circuit_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -340,7 +340,7 @@ def begin_delete_async(resource_group_name, circuit_name, peering_name, custom_h fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -432,7 +432,7 @@ def begin_create_or_update_async(resource_group_name, circuit_name, peering_name fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? fail ArgumentError, 'peering_parameters is nil' if peering_parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuits.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuits.rb index 88fb55f25d..449f612acb 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuits.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuits.rb @@ -101,7 +101,7 @@ def get_with_http_info(resource_group_name, circuit_name, custom_headers = nil) def get_async(resource_group_name, circuit_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -379,7 +379,7 @@ def get_stats_with_http_info(resource_group_name, circuit_name, custom_headers = def get_stats_async(resource_group_name, circuit_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -474,7 +474,7 @@ def get_peering_stats_async(resource_group_name, circuit_name, peering_name, cus fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -561,7 +561,7 @@ def list_with_http_info(resource_group_name, custom_headers = nil) # def list_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -644,7 +644,7 @@ def list_all_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_all_async(custom_headers = nil) - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -734,7 +734,7 @@ def begin_delete_with_http_info(resource_group_name, circuit_name, custom_header def begin_delete_async(resource_group_name, circuit_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -822,7 +822,7 @@ def begin_create_or_update_async(resource_group_name, circuit_name, parameters, fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -943,7 +943,7 @@ def begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? fail ArgumentError, 'device_path is nil' if device_path.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1045,7 +1045,7 @@ def begin_list_routes_table_async(resource_group_name, circuit_name, peering_nam fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? fail ArgumentError, 'device_path is nil' if device_path.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1147,7 +1147,7 @@ def begin_list_routes_table_summary_async(resource_group_name, circuit_name, pee fail ArgumentError, 'circuit_name is nil' if circuit_name.nil? fail ArgumentError, 'peering_name is nil' if peering_name.nil? fail ArgumentError, 'device_path is nil' if device_path.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_service_providers.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_service_providers.rb index f7443f5bb4..9ff360fc0e 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_service_providers.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_service_providers.rb @@ -55,7 +55,7 @@ def list_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_async(custom_headers = nil) - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/inbound_nat_rules.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/inbound_nat_rules.rb index ac2c17ccc5..01a1e14076 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/inbound_nat_rules.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/inbound_nat_rules.rb @@ -63,7 +63,7 @@ def list_with_http_info(resource_group_name, load_balancer_name, custom_headers def list_async(resource_group_name, load_balancer_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -201,7 +201,7 @@ def get_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, ex fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, 'inbound_nat_rule_name is nil' if inbound_nat_rule_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -343,7 +343,7 @@ def begin_delete_async(resource_group_name, load_balancer_name, inbound_nat_rule fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, 'inbound_nat_rule_name is nil' if inbound_nat_rule_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -435,7 +435,7 @@ def begin_create_or_update_async(resource_group_name, load_balancer_name, inboun fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, 'inbound_nat_rule_name is nil' if inbound_nat_rule_name.nil? fail ArgumentError, 'inbound_nat_rule_parameters is nil' if inbound_nat_rule_parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb index 2677d60641..0c968b0c8c 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb @@ -63,7 +63,7 @@ def list_with_http_info(resource_group_name, load_balancer_name, custom_headers def list_async(resource_group_name, load_balancer_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -161,7 +161,7 @@ def get_async(resource_group_name, load_balancer_name, backend_address_pool_name fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, 'backend_address_pool_name is nil' if backend_address_pool_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb index 1bd354c947..29f142a6d9 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb @@ -63,7 +63,7 @@ def list_with_http_info(resource_group_name, load_balancer_name, custom_headers def list_async(resource_group_name, load_balancer_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -161,7 +161,7 @@ def get_async(resource_group_name, load_balancer_name, frontend_ipconfiguration_ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, 'frontend_ipconfiguration_name is nil' if frontend_ipconfiguration_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb index 4d92c418bd..230e14e4dc 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb @@ -63,7 +63,7 @@ def list_with_http_info(resource_group_name, load_balancer_name, custom_headers def list_async(resource_group_name, load_balancer_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -158,7 +158,7 @@ def get_async(resource_group_name, load_balancer_name, load_balancing_rule_name, fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, 'load_balancing_rule_name is nil' if load_balancing_rule_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_network_interfaces.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_network_interfaces.rb index c856ae6cfc..8f2d8b97e8 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_network_interfaces.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_network_interfaces.rb @@ -63,7 +63,7 @@ def list_with_http_info(resource_group_name, load_balancer_name, custom_headers def list_async(resource_group_name, load_balancer_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_probes.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_probes.rb index aec06eb921..c1fe401f72 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_probes.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_probes.rb @@ -63,7 +63,7 @@ def list_with_http_info(resource_group_name, load_balancer_name, custom_headers def list_async(resource_group_name, load_balancer_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -158,7 +158,7 @@ def get_async(resource_group_name, load_balancer_name, probe_name, custom_header fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, 'probe_name is nil' if probe_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancers.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancers.rb index f76f4928a4..1debc6aff9 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancers.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancers.rb @@ -104,7 +104,7 @@ def get_with_http_info(resource_group_name, load_balancer_name, expand = nil, cu def get_async(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -233,7 +233,7 @@ def list_all_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_all_async(custom_headers = nil) - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -320,7 +320,7 @@ def list_with_http_info(resource_group_name, custom_headers = nil) # def list_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -410,7 +410,7 @@ def begin_delete_with_http_info(resource_group_name, load_balancer_name, custom_ def begin_delete_async(resource_group_name, load_balancer_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -498,7 +498,7 @@ def begin_create_or_update_async(resource_group_name, load_balancer_name, parame fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/local_network_gateways.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/local_network_gateways.rb index 06a1132a65..3e558c783e 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/local_network_gateways.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/local_network_gateways.rb @@ -114,7 +114,7 @@ def get_with_http_info(resource_group_name, local_network_gateway_name, custom_h def get_async(resource_group_name, local_network_gateway_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -241,7 +241,7 @@ def list_with_http_info(resource_group_name, custom_headers = nil) # def list_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -342,7 +342,7 @@ def begin_create_or_update_async(resource_group_name, local_network_gateway_name fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -454,7 +454,7 @@ def begin_delete_with_http_info(resource_group_name, local_network_gateway_name, def begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_security_group.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_security_group.rb new file mode 100644 index 0000000000..6547b984f4 --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_security_group.rb @@ -0,0 +1,118 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + module Models + # + # An application security group in a resource group. + # + class ApplicationSecurityGroup < MsRestAzure::Resource + + include MsRestAzure + + include MsRest::JSONable + # @return [String] The resource GUID property of the application security + # group resource. It uniquely identifies a resource, even if the user + # changes its name or migrate the resource across subscriptions or + # resource groups. + attr_accessor :resource_guid + + # @return [String] The provisioning state of the application security + # group resource. Possible values are: 'Succeeded', 'Updating', + # 'Deleting', and 'Failed'. + attr_accessor :provisioning_state + + # @return [String] A unique read-only string that changes whenever the + # resource is updated. + attr_accessor :etag + + + # + # Mapper for ApplicationSecurityGroup class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApplicationSecurityGroup', + type: { + name: 'Composite', + class_name: 'ApplicationSecurityGroup', + model_properties: { + id: { + required: false, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + resource_guid: { + required: false, + read_only: true, + serialized_name: 'properties.resourceGuid', + type: { + name: 'String' + } + }, + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'properties.provisioningState', + type: { + name: 'String' + } + }, + etag: { + required: false, + read_only: true, + serialized_name: 'etag', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_security_group_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_security_group_list_result.rb new file mode 100644 index 0000000000..5b1c3ba979 --- /dev/null +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_security_group_list_result.rb @@ -0,0 +1,96 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::ARM::Network + module Models + # + # A list of application security groups. + # + class ApplicationSecurityGroupListResult + + include MsRestAzure + + include MsRest::JSONable + # @return [Array] A list of application + # security groups. + attr_accessor :value + + # @return [String] The URL to get the next set of results. + attr_accessor :next_link + + # return [Proc] with next page method call. + attr_accessor :next_method + + # + # Gets the rest of the items for the request, enabling auto-pagination. + # + # @return [Array] operation results. + # + def get_all_items + items = @value + page = self + while page.next_link != nil do + page = page.get_next_page + items.concat(page.value) + end + items + end + + # + # Gets the next page of results. + # + # @return [ApplicationSecurityGroupListResult] with next page content. + # + def get_next_page + response = @next_method.call(@next_link).value! unless @next_method.nil? + unless response.nil? + @next_link = response.body.next_link + @value = response.body.value + self + end + end + + # + # Mapper for ApplicationSecurityGroupListResult class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ApplicationSecurityGroupListResult', + type: { + name: 'Composite', + class_name: 'ApplicationSecurityGroupListResult', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ApplicationSecurityGroupElementType', + type: { + name: 'Composite', + class_name: 'ApplicationSecurityGroup' + } + } + } + }, + next_link: { + required: false, + read_only: true, + serialized_name: 'nextLink', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_pool.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_pool.rb index f5f7b476c5..8645146df1 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_pool.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_pool.rb @@ -16,9 +16,8 @@ class InboundNatPool < MsRestAzure::SubResource # @return [SubResource] A reference to frontend IP addresses. attr_accessor :frontend_ipconfiguration - # @return [TransportProtocol] The transport protocol for the endpoint. - # Possible values are: 'Udp' or 'Tcp'. Possible values include: 'Udp', - # 'Tcp' + # @return [TransportProtocol] Possible values include: 'Udp', 'Tcp', + # 'All' attr_accessor :protocol # @return [Integer] The first port number in the range of external ports diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb index 88dd8bfdc9..71287d0afd 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb @@ -22,13 +22,12 @@ class InboundNatRule < MsRestAzure::SubResource # the backend IP. attr_accessor :backend_ipconfiguration - # @return [TransportProtocol] The transport protocol for the endpoint. - # Possible values are: 'Udp' or 'Tcp'. Possible values include: 'Udp', - # 'Tcp' + # @return [TransportProtocol] Possible values include: 'Udp', 'Tcp', + # 'All' attr_accessor :protocol # @return [Integer] The port for the external endpoint. Port numbers for - # each Rule must be unique within the Load Balancer. Acceptable values + # each rule must be unique within the Load Balancer. Acceptable values # range from 1 to 65534. attr_accessor :frontend_port diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb index abfa91e169..3000bd2bfd 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb @@ -24,9 +24,8 @@ class LoadBalancingRule < MsRestAzure::SubResource # the load balancing rule. attr_accessor :probe - # @return [TransportProtocol] The transport protocol for the external - # endpoint. Possible values are 'Udp' or 'Tcp'. Possible values include: - # 'Udp', 'Tcp' + # @return [TransportProtocol] Possible values include: 'Udp', 'Tcp', + # 'All' attr_accessor :protocol # @return [LoadDistribution] The load distribution policy for this rule. @@ -35,12 +34,13 @@ class LoadBalancingRule < MsRestAzure::SubResource attr_accessor :load_distribution # @return [Integer] The port for the external endpoint. Port numbers for - # each Rule must be unique within the Load Balancer. Acceptable values - # are between 1 and 65534. + # each rule must be unique within the Load Balancer. Acceptable values + # are between 0 and 65534. Note that value 0 enables "Any Port" attr_accessor :frontend_port # @return [Integer] The port used for internal connections on the - # endpoint. Acceptable values are between 1 and 65535. + # endpoint. Acceptable values are between 0 and 65535. Note that value 0 + # enables "Any Port" attr_accessor :backend_port # @return [Integer] The timeout for the TCP idle connection. The value diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb index b4a6470bb8..227867c67a 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb @@ -50,6 +50,10 @@ class NetworkInterfaceIPConfiguration < MsRestAzure::SubResource # configuration. attr_accessor :public_ipaddress + # @return [Array] Application security groups + # in which the IP configuration is included. + attr_accessor :application_security_groups + # @return [String] The provisioning state of the network interface IP # configuration. Possible values are: 'Updating', 'Deleting', and # 'Failed'. @@ -172,6 +176,21 @@ def self.mapper() class_name: 'PublicIPAddress' } }, + application_security_groups: { + required: false, + serialized_name: 'properties.applicationSecurityGroups', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ApplicationSecurityGroupElementType', + type: { + name: 'Composite', + class_name: 'ApplicationSecurityGroup' + } + } + } + }, provisioning_state: { required: false, serialized_name: 'properties.provisioningState', diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/security_rule.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/security_rule.rb index f77fa35c4a..e5054a10b2 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/security_rule.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/security_rule.rb @@ -38,6 +38,10 @@ class SecurityRule < MsRestAzure::SubResource # @return [Array] The CIDR or source IP ranges. attr_accessor :source_address_prefixes + # @return [Array] The application security + # group specified as source. + attr_accessor :source_application_security_groups + # @return [String] The destination address prefix. CIDR or destination IP # range. Asterix '*' can also be used to match all source IPs. Default # tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can @@ -48,6 +52,10 @@ class SecurityRule < MsRestAzure::SubResource # destination IP ranges. attr_accessor :destination_address_prefixes + # @return [Array] The application security + # group specified as destination. + attr_accessor :destination_application_security_groups + # @return [Array] The source port ranges. attr_accessor :source_port_ranges @@ -152,6 +160,21 @@ def self.mapper() } } }, + source_application_security_groups: { + required: false, + serialized_name: 'properties.sourceApplicationSecurityGroups', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ApplicationSecurityGroupElementType', + type: { + name: 'Composite', + class_name: 'ApplicationSecurityGroup' + } + } + } + }, destination_address_prefix: { required: true, serialized_name: 'properties.destinationAddressPrefix', @@ -173,6 +196,21 @@ def self.mapper() } } }, + destination_application_security_groups: { + required: false, + serialized_name: 'properties.destinationApplicationSecurityGroups', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'ApplicationSecurityGroupElementType', + type: { + name: 'Composite', + class_name: 'ApplicationSecurityGroup' + } + } + } + }, source_port_ranges: { required: false, serialized_name: 'properties.sourcePortRanges', diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/transport_protocol.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/transport_protocol.rb index 2616eeb184..0325449beb 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/transport_protocol.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/transport_protocol.rb @@ -11,6 +11,7 @@ module Models module TransportProtocol Udp = "Udp" Tcp = "Tcp" + All = "All" end end end diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network.rb index ec9ce87f57..2f31566642 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network.rb @@ -36,6 +36,14 @@ class VirtualNetwork < MsRestAzure::Resource # Possible values are: 'Updating', 'Deleting', and 'Failed'. attr_accessor :provisioning_state + # @return [Boolean] Indicates if DDoS protection is enabled for all the + # protected resources in a Virtual Network. + attr_accessor :enable_ddos_protection + + # @return [Boolean] Indicates if Vm protection is enabled for all the + # subnets in a Virtual Network. + attr_accessor :enable_vm_protection + # @return [String] Gets a unique read-only string that changes whenever # the resource is updated. attr_accessor :etag @@ -157,6 +165,20 @@ def self.mapper() name: 'String' } }, + enable_ddos_protection: { + required: false, + serialized_name: 'properties.enableDdosProtection', + type: { + name: 'Boolean' + } + }, + enable_vm_protection: { + required: false, + serialized_name: 'properties.enableVmProtection', + type: { + name: 'Boolean' + } + }, etag: { required: false, serialized_name: 'etag', diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_peering.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_peering.rb index cd1af80750..23d541df54 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_peering.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/virtual_network_peering.rb @@ -32,7 +32,10 @@ class VirtualNetworkPeering < MsRestAzure::SubResource # true. This flag cannot be set if virtual network already has a gateway. attr_accessor :use_remote_gateways - # @return [SubResource] The reference of the remote virtual network. + # @return [SubResource] The reference of the remote virtual network. The + # remote virtual network can be in the same or different region + # (preview). See here to register for the preview and learn more + # (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering). attr_accessor :remote_virtual_network # @return [VirtualNetworkPeeringState] The status of the virtual network diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_interface_ipconfigurations.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_interface_ipconfigurations.rb index 20cb076104..89be83e630 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_interface_ipconfigurations.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_interface_ipconfigurations.rb @@ -63,7 +63,7 @@ def list_with_http_info(resource_group_name, network_interface_name, custom_head def list_async(resource_group_name, network_interface_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -158,7 +158,7 @@ def get_async(resource_group_name, network_interface_name, ip_configuration_name fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, 'ip_configuration_name is nil' if ip_configuration_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_interface_load_balancers.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_interface_load_balancers.rb index 76d6886688..c47aca0b48 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_interface_load_balancers.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_interface_load_balancers.rb @@ -63,7 +63,7 @@ def list_with_http_info(resource_group_name, network_interface_name, custom_head def list_async(resource_group_name, network_interface_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_interfaces.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_interfaces.rb index 2376955c6e..d04ca2d369 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_interfaces.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_interfaces.rb @@ -104,7 +104,7 @@ def get_with_http_info(resource_group_name, network_interface_name, expand = nil def get_async(resource_group_name, network_interface_name, expand = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -233,7 +233,7 @@ def list_all_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_all_async(custom_headers = nil) - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -320,7 +320,7 @@ def list_with_http_info(resource_group_name, custom_headers = nil) # def list_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -794,7 +794,7 @@ def begin_delete_with_http_info(resource_group_name, network_interface_name, cus def begin_delete_async(resource_group_name, network_interface_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -882,7 +882,7 @@ def begin_create_or_update_async(resource_group_name, network_interface_name, pa fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -992,7 +992,7 @@ def begin_get_effective_route_table_with_http_info(resource_group_name, network_ def begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1083,7 +1083,7 @@ def begin_list_effective_network_security_groups_with_http_info(resource_group_n def begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_management_client.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_management_client.rb index 14b4d49128..e47b24e9f4 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_management_client.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_management_client.rb @@ -36,6 +36,9 @@ class NetworkManagementClient < MsRestAzure::AzureServiceClient # @return [ApplicationGateways] application_gateways attr_reader :application_gateways + # @return [ApplicationSecurityGroups] application_security_groups + attr_reader :application_security_groups + # @return [AvailableEndpointServices] available_endpoint_services attr_reader :available_endpoint_services @@ -155,6 +158,7 @@ def initialize(credentials = nil, base_url = nil, options = nil) @credentials = credentials @application_gateways = ApplicationGateways.new(self) + @application_security_groups = ApplicationSecurityGroups.new(self) @available_endpoint_services = AvailableEndpointServices.new(self) @express_route_circuit_authorizations = ExpressRouteCircuitAuthorizations.new(self) @express_route_circuit_peerings = ExpressRouteCircuitPeerings.new(self) @@ -297,7 +301,7 @@ def check_dns_name_availability_with_http_info(location, domain_name_label, cust def check_dns_name_availability_async(location, domain_name_label, custom_headers = nil) fail ArgumentError, 'location is nil' if location.nil? fail ArgumentError, 'domain_name_label is nil' if domain_name_label.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_security_groups.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_security_groups.rb index 1d084abf19..b349eb454d 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_security_groups.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_security_groups.rb @@ -109,7 +109,7 @@ def get_with_http_info(resource_group_name, network_security_group_name, expand def get_async(resource_group_name, network_security_group_name, expand = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -240,7 +240,7 @@ def list_all_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_all_async(custom_headers = nil) - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -327,7 +327,7 @@ def list_with_http_info(resource_group_name, custom_headers = nil) # def list_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -420,7 +420,7 @@ def begin_delete_with_http_info(resource_group_name, network_security_group_name def begin_delete_async(resource_group_name, network_security_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -511,7 +511,7 @@ def begin_create_or_update_async(resource_group_name, network_security_group_nam fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_watchers.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_watchers.rb index a97e21d5a5..69d549cc9a 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_watchers.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/network_watchers.rb @@ -70,7 +70,7 @@ def create_or_update_async(resource_group_name, network_watcher_name, parameters fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -180,7 +180,7 @@ def get_with_http_info(resource_group_name, network_watcher_name, custom_headers def get_async(resource_group_name, network_watcher_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -305,7 +305,7 @@ def list_with_http_info(resource_group_name, custom_headers = nil) # def list_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -388,7 +388,7 @@ def list_all_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_all_async(custom_headers = nil) - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -486,7 +486,7 @@ def get_topology_async(resource_group_name, network_watcher_name, parameters, cu fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -972,7 +972,7 @@ def begin_delete_with_http_info(resource_group_name, network_watcher_name, custo def begin_delete_async(resource_group_name, network_watcher_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1063,7 +1063,7 @@ def begin_verify_ipflow_async(resource_group_name, network_watcher_name, paramet fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1180,7 +1180,7 @@ def begin_get_next_hop_async(resource_group_name, network_watcher_name, paramete fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1297,7 +1297,7 @@ def begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1417,7 +1417,7 @@ def begin_get_troubleshooting_async(resource_group_name, network_watcher_name, p fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1537,7 +1537,7 @@ def begin_get_troubleshooting_result_async(resource_group_name, network_watcher_ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1660,7 +1660,7 @@ def begin_set_flow_log_configuration_async(resource_group_name, network_watcher_ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1783,7 +1783,7 @@ def begin_get_flow_log_status_async(resource_group_name, network_watcher_name, p fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1912,7 +1912,7 @@ def begin_check_connectivity_async(resource_group_name, network_watcher_name, pa fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/packet_captures.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/packet_captures.rb index 1c5dc0e89e..8cf09ff4a8 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/packet_captures.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/packet_captures.rb @@ -115,7 +115,7 @@ def get_async(resource_group_name, network_watcher_name, packet_capture_name, cu fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -337,7 +337,7 @@ def list_with_http_info(resource_group_name, network_watcher_name, custom_header def list_async(resource_group_name, network_watcher_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -439,7 +439,7 @@ def begin_create_async(resource_group_name, network_watcher_name, packet_capture fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -542,7 +542,7 @@ def begin_delete_async(resource_group_name, network_watcher_name, packet_capture fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -626,7 +626,7 @@ def begin_stop_async(resource_group_name, network_watcher_name, packet_capture_n fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -717,7 +717,7 @@ def begin_get_status_async(resource_group_name, network_watcher_name, packet_cap fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil? fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/public_ipaddresses.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/public_ipaddresses.rb index cb9d5ffb0d..1965c965b5 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/public_ipaddresses.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/public_ipaddresses.rb @@ -104,7 +104,7 @@ def get_with_http_info(resource_group_name, public_ip_address_name, expand = nil def get_async(resource_group_name, public_ip_address_name, expand = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -233,7 +233,7 @@ def list_all_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_all_async(custom_headers = nil) - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -320,7 +320,7 @@ def list_with_http_info(resource_group_name, custom_headers = nil) # def list_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -729,7 +729,7 @@ def begin_delete_with_http_info(resource_group_name, public_ip_address_name, cus def begin_delete_async(resource_group_name, public_ip_address_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -817,7 +817,7 @@ def begin_create_or_update_async(resource_group_name, public_ip_address_name, pa fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/route_filter_rules.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/route_filter_rules.rb index 560e05402c..af171562dd 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/route_filter_rules.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/route_filter_rules.rb @@ -107,7 +107,7 @@ def get_async(resource_group_name, route_filter_name, rule_name, custom_headers fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -294,7 +294,7 @@ def list_by_route_filter_with_http_info(resource_group_name, route_filter_name, def list_by_route_filter_async(resource_group_name, route_filter_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -388,7 +388,7 @@ def begin_delete_async(resource_group_name, route_filter_name, rule_name, custom fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -480,7 +480,7 @@ def begin_create_or_update_async(resource_group_name, route_filter_name, rule_na fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? fail ArgumentError, 'route_filter_rule_parameters is nil' if route_filter_rule_parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -601,7 +601,7 @@ def begin_update_async(resource_group_name, route_filter_name, rule_name, route_ fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'rule_name is nil' if rule_name.nil? fail ArgumentError, 'route_filter_rule_parameters is nil' if route_filter_rule_parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/route_filters.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/route_filters.rb index 4563f34c9a..a7c7bf4b62 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/route_filters.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/route_filters.rb @@ -107,7 +107,7 @@ def get_with_http_info(resource_group_name, route_filter_name, expand = nil, cus def get_async(resource_group_name, route_filter_name, expand = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -286,7 +286,7 @@ def list_by_resource_group_with_http_info(resource_group_name, custom_headers = # def list_by_resource_group_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -369,7 +369,7 @@ def list_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_async(custom_headers = nil) - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -459,7 +459,7 @@ def begin_delete_with_http_info(resource_group_name, route_filter_name, custom_h def begin_delete_async(resource_group_name, route_filter_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -547,7 +547,7 @@ def begin_create_or_update_async(resource_group_name, route_filter_name, route_f fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'route_filter_parameters is nil' if route_filter_parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -664,7 +664,7 @@ def begin_update_async(resource_group_name, route_filter_name, route_filter_para fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_filter_name is nil' if route_filter_name.nil? fail ArgumentError, 'route_filter_parameters is nil' if route_filter_parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/route_tables.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/route_tables.rb index 8d01932aa9..69793ac612 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/route_tables.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/route_tables.rb @@ -104,7 +104,7 @@ def get_with_http_info(resource_group_name, route_table_name, expand = nil, cust def get_async(resource_group_name, route_table_name, expand = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -237,7 +237,7 @@ def list_with_http_info(resource_group_name, custom_headers = nil) # def list_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -320,7 +320,7 @@ def list_all_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_all_async(custom_headers = nil) - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -410,7 +410,7 @@ def begin_delete_with_http_info(resource_group_name, route_table_name, custom_he def begin_delete_async(resource_group_name, route_table_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -498,7 +498,7 @@ def begin_create_or_update_async(resource_group_name, route_table_name, paramete fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/routes.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/routes.rb index 5e6d744900..805921c3c4 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/routes.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/routes.rb @@ -107,7 +107,7 @@ def get_async(resource_group_name, route_table_name, route_name, custom_headers fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -246,7 +246,7 @@ def list_with_http_info(resource_group_name, route_table_name, custom_headers = def list_async(resource_group_name, route_table_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -340,7 +340,7 @@ def begin_delete_async(resource_group_name, route_table_name, route_name, custom fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -432,7 +432,7 @@ def begin_create_or_update_async(resource_group_name, route_table_name, route_na fail ArgumentError, 'route_table_name is nil' if route_table_name.nil? fail ArgumentError, 'route_name is nil' if route_name.nil? fail ArgumentError, 'route_parameters is nil' if route_parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/security_rules.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/security_rules.rb index 68c445432b..0a1e60ee32 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/security_rules.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/security_rules.rb @@ -112,7 +112,7 @@ def get_async(resource_group_name, network_security_group_name, security_rule_na fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -256,7 +256,7 @@ def list_with_http_info(resource_group_name, network_security_group_name, custom def list_async(resource_group_name, network_security_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -353,7 +353,7 @@ def begin_delete_async(resource_group_name, network_security_group_name, securit fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -448,7 +448,7 @@ def begin_create_or_update_async(resource_group_name, network_security_group_nam fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil? fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil? fail ArgumentError, 'security_rule_parameters is nil' if security_rule_parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/subnets.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/subnets.rb index 13b33c8dbb..2c27ba4f50 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/subnets.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/subnets.rb @@ -110,7 +110,7 @@ def get_async(resource_group_name, virtual_network_name, subnet_name, expand = n fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -249,7 +249,7 @@ def list_with_http_info(resource_group_name, virtual_network_name, custom_header def list_async(resource_group_name, virtual_network_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -343,7 +343,7 @@ def begin_delete_async(resource_group_name, virtual_network_name, subnet_name, c fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -435,7 +435,7 @@ def begin_create_or_update_async(resource_group_name, virtual_network_name, subn fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'subnet_name is nil' if subnet_name.nil? fail ArgumentError, 'subnet_parameters is nil' if subnet_parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/usages.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/usages.rb index 89b4fb7d11..8d89a3aa5e 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/usages.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/usages.rb @@ -59,7 +59,7 @@ def list_with_http_info(location, custom_headers = nil) # def list_async(location, custom_headers = nil) fail ArgumentError, 'location is nil' if location.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_network_gateway_connections.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_network_gateway_connections.rb index c7609e88c1..26e2e62208 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_network_gateway_connections.rb @@ -115,7 +115,7 @@ def get_with_http_info(resource_group_name, virtual_network_gateway_connection_n def get_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -307,7 +307,7 @@ def get_shared_key_with_http_info(resource_group_name, virtual_network_gateway_c def get_shared_key_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -397,7 +397,7 @@ def list_with_http_info(resource_group_name, custom_headers = nil) # def list_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -554,7 +554,7 @@ def begin_create_or_update_async(resource_group_name, virtual_network_gateway_co fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -666,7 +666,7 @@ def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_con def begin_delete_async(resource_group_name, virtual_network_gateway_connection_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -766,7 +766,7 @@ def begin_set_shared_key_async(resource_group_name, virtual_network_gateway_conn fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -898,7 +898,7 @@ def begin_reset_shared_key_async(resource_group_name, virtual_network_gateway_co fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_connection_name is nil' if virtual_network_gateway_connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_network_gateways.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_network_gateways.rb index 08ac9c24f4..cbfca943fa 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_network_gateways.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_network_gateways.rb @@ -114,7 +114,7 @@ def get_with_http_info(resource_group_name, virtual_network_gateway_name, custom def get_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -241,7 +241,7 @@ def list_with_http_info(resource_group_name, custom_headers = nil) # def list_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -335,7 +335,7 @@ def list_connections_with_http_info(resource_group_name, virtual_network_gateway def list_connections_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -785,7 +785,7 @@ def begin_create_or_update_async(resource_group_name, virtual_network_gateway_na fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -897,7 +897,7 @@ def begin_delete_with_http_info(resource_group_name, virtual_network_gateway_nam def begin_delete_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -990,7 +990,7 @@ def begin_reset_with_http_info(resource_group_name, virtual_network_gateway_name def begin_reset_async(resource_group_name, virtual_network_gateway_name, gateway_vip = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1094,7 +1094,7 @@ def begin_generatevpnclientpackage_async(resource_group_name, virtual_network_ga fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1213,7 +1213,7 @@ def begin_generate_vpn_profile_async(resource_group_name, virtual_network_gatewa fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1328,7 +1328,7 @@ def begin_get_vpn_profile_package_url_with_http_info(resource_group_name, virtua def begin_get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1431,7 +1431,7 @@ def begin_get_bgp_peer_status_with_http_info(resource_group_name, virtual_networ def begin_get_bgp_peer_status_async(resource_group_name, virtual_network_gateway_name, peer = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1528,7 +1528,7 @@ def begin_get_learned_routes_with_http_info(resource_group_name, virtual_network def begin_get_learned_routes_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -1629,7 +1629,7 @@ def begin_get_advertised_routes_async(resource_group_name, virtual_network_gatew fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil? fail ArgumentError, 'peer is nil' if peer.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_network_peerings.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_network_peerings.rb index d3d5603c9b..23da74dc9f 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_network_peerings.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_network_peerings.rb @@ -112,7 +112,7 @@ def get_async(resource_group_name, virtual_network_name, virtual_network_peering fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'virtual_network_peering_name is nil' if virtual_network_peering_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -251,7 +251,7 @@ def list_with_http_info(resource_group_name, virtual_network_name, custom_header def list_async(resource_group_name, virtual_network_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -348,7 +348,7 @@ def begin_delete_async(resource_group_name, virtual_network_name, virtual_networ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'virtual_network_peering_name is nil' if virtual_network_peering_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -440,7 +440,7 @@ def begin_create_or_update_async(resource_group_name, virtual_network_name, virt fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'virtual_network_peering_name is nil' if virtual_network_peering_name.nil? fail ArgumentError, 'virtual_network_peering_parameters is nil' if virtual_network_peering_parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_networks.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_networks.rb index 60315e4cbf..0a03d56717 100644 --- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_networks.rb +++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/virtual_networks.rb @@ -104,7 +104,7 @@ def get_with_http_info(resource_group_name, virtual_network_name, expand = nil, def get_async(resource_group_name, virtual_network_name, expand = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -233,7 +233,7 @@ def list_all_with_http_info(custom_headers = nil) # @return [Concurrent::Promise] Promise object which holds the HTTP response. # def list_all_async(custom_headers = nil) - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -320,7 +320,7 @@ def list_with_http_info(resource_group_name, custom_headers = nil) # def list_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -414,7 +414,7 @@ def check_ipaddress_availability_with_http_info(resource_group_name, virtual_net def check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -505,7 +505,7 @@ def list_usage_with_http_info(resource_group_name, virtual_network_name, custom_ def list_usage_async(resource_group_name, virtual_network_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -595,7 +595,7 @@ def begin_delete_with_http_info(resource_group_name, virtual_network_name, custo def begin_delete_async(resource_group_name, virtual_network_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -683,7 +683,7 @@ def begin_create_or_update_async(resource_group_name, virtual_network_name, para fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? - api_version = '2017-08-01' + api_version = '2017-09-01' fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?