azure_mgmt_network 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_network.rb +91 -82
  3. data/lib/generated/azure_mgmt_network/application_gateways.rb +17 -20
  4. data/lib/generated/azure_mgmt_network/bgp_service_communities.rb +216 -0
  5. data/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +9 -12
  6. data/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb +9 -12
  7. data/lib/generated/azure_mgmt_network/express_route_circuits.rb +21 -24
  8. data/lib/generated/azure_mgmt_network/express_route_service_providers.rb +3 -6
  9. data/lib/generated/azure_mgmt_network/load_balancers.rb +11 -14
  10. data/lib/generated/azure_mgmt_network/local_network_gateways.rb +9 -12
  11. data/lib/generated/azure_mgmt_network/models/{network_operation_status.rb → access.rb} +4 -5
  12. data/lib/generated/azure_mgmt_network/models/{error.rb → bgp_service_community.rb} +39 -36
  13. data/lib/generated/azure_mgmt_network/models/bgp_service_community_list_result.rb +94 -0
  14. data/lib/generated/azure_mgmt_network/models/bgp_settings.rb +1 -1
  15. data/lib/generated/azure_mgmt_network/models/bgpcommunity.rb +84 -0
  16. data/lib/generated/azure_mgmt_network/models/connection_reset_shared_key.rb +1 -1
  17. data/lib/generated/azure_mgmt_network/models/express_route_circuit.rb +1 -0
  18. data/lib/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb +1 -0
  19. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +13 -1
  20. data/lib/generated/azure_mgmt_network/models/patch_route_filter.rb +144 -0
  21. data/lib/generated/azure_mgmt_network/models/patch_route_filter_rule.rb +136 -0
  22. data/lib/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +13 -14
  23. data/lib/generated/azure_mgmt_network/models/route_filter.rb +141 -0
  24. data/lib/generated/azure_mgmt_network/models/route_filter_list_result.rb +94 -0
  25. data/lib/generated/azure_mgmt_network/models/route_filter_rule.rb +146 -0
  26. data/lib/generated/azure_mgmt_network/models/route_filter_rule_list_result.rb +94 -0
  27. data/lib/generated/azure_mgmt_network/network_interfaces.rb +251 -254
  28. data/lib/generated/azure_mgmt_network/network_management_client.rb +60 -53
  29. data/lib/generated/azure_mgmt_network/network_security_groups.rb +11 -14
  30. data/lib/generated/azure_mgmt_network/public_ipaddresses.rb +11 -14
  31. data/lib/generated/azure_mgmt_network/route_filter_rules.rb +773 -0
  32. data/lib/generated/azure_mgmt_network/route_filters.rb +942 -0
  33. data/lib/generated/azure_mgmt_network/route_tables.rb +11 -14
  34. data/lib/generated/azure_mgmt_network/routes.rb +9 -12
  35. data/lib/generated/azure_mgmt_network/security_rules.rb +9 -12
  36. data/lib/generated/azure_mgmt_network/subnets.rb +9 -12
  37. data/lib/generated/azure_mgmt_network/usages.rb +3 -6
  38. data/lib/generated/azure_mgmt_network/version.rb +1 -1
  39. data/lib/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +15 -18
  40. data/lib/generated/azure_mgmt_network/virtual_network_gateways.rb +13 -16
  41. data/lib/generated/azure_mgmt_network/virtual_network_peerings.rb +9 -12
  42. data/lib/generated/azure_mgmt_network/virtual_networks.rb +13 -16
  43. metadata +17 -8
  44. data/lib/generated/azure_mgmt_network/models/azure_async_operation_result.rb +0 -64
  45. data/lib/generated/azure_mgmt_network/models/error_details.rb +0 -65
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32aa3179f6c2e06e3e2a41a5424a9efe757b55da
4
- data.tar.gz: d0f1d304c9ba960e7fe80d7736eebaf23a9a9e0e
3
+ metadata.gz: 9c82e915ce6f5cacee6fb98657888a69cc0229e0
4
+ data.tar.gz: 9f58958ca8fb1a5af9097c72392d406f38dcd2fa
5
5
  SHA512:
6
- metadata.gz: d1effd50a4925c7a85270b2beb2b3110c4244eac6f74f45ad05566fe6575dd306375d1590aeaf246c25401d668d564db7aed4faf9994efeec14919bbd7d465e3
7
- data.tar.gz: 5c2a60e071b153d890ceec157c563d84bcc8eea51e9a189a73cca76bcae8489f218283032f074515761aca7bf23ba52b7d8187dabdd868adfcb7ddd02d372423
6
+ metadata.gz: 2181c6e16478d8eeb0598e8e55104db58758eecac5e26a05af0a851260aeac14dcde0a0ed5fff2a1cef46e95625b87e19acd700ffd5a8168fb46a3d07b135481
7
+ data.tar.gz: cbe57edbec87a9feefcb58696f4fb3ac4ad3e74ef902d45d30c7edf5dd25db858401f1877fb4ba098fa6f806e766593dec468dac298aed1d570a1928de6c5572
@@ -21,102 +21,106 @@ require 'ms_rest_azure'
21
21
 
22
22
  module Azure::ARM::Network
23
23
  autoload :ApplicationGateways, 'generated/azure_mgmt_network/application_gateways.rb'
24
- autoload :ExpressRouteCircuitAuthorizations, 'generated/azure_mgmt_network/express_route_circuit_authorizations.rb'
25
- autoload :ExpressRouteCircuitPeerings, 'generated/azure_mgmt_network/express_route_circuit_peerings.rb'
26
- autoload :ExpressRouteCircuits, 'generated/azure_mgmt_network/express_route_circuits.rb'
27
- autoload :ExpressRouteServiceProviders, 'generated/azure_mgmt_network/express_route_service_providers.rb'
28
- autoload :LoadBalancers, 'generated/azure_mgmt_network/load_balancers.rb'
29
- autoload :LocalNetworkGateways, 'generated/azure_mgmt_network/local_network_gateways.rb'
30
- autoload :NetworkInterfaces, 'generated/azure_mgmt_network/network_interfaces.rb'
31
- autoload :NetworkSecurityGroups, 'generated/azure_mgmt_network/network_security_groups.rb'
32
- autoload :PublicIPAddresses, 'generated/azure_mgmt_network/public_ipaddresses.rb'
33
24
  autoload :RouteTables, 'generated/azure_mgmt_network/route_tables.rb'
34
25
  autoload :Routes, 'generated/azure_mgmt_network/routes.rb'
26
+ autoload :PublicIPAddresses, 'generated/azure_mgmt_network/public_ipaddresses.rb'
27
+ autoload :NetworkSecurityGroups, 'generated/azure_mgmt_network/network_security_groups.rb'
35
28
  autoload :SecurityRules, 'generated/azure_mgmt_network/security_rules.rb'
29
+ autoload :LoadBalancers, 'generated/azure_mgmt_network/load_balancers.rb'
30
+ autoload :VirtualNetworks, 'generated/azure_mgmt_network/virtual_networks.rb'
36
31
  autoload :Subnets, 'generated/azure_mgmt_network/subnets.rb'
37
32
  autoload :VirtualNetworkPeerings, 'generated/azure_mgmt_network/virtual_network_peerings.rb'
33
+ autoload :NetworkInterfaces, 'generated/azure_mgmt_network/network_interfaces.rb'
38
34
  autoload :Usages, 'generated/azure_mgmt_network/usages.rb'
39
- autoload :VirtualNetworkGatewayConnections, 'generated/azure_mgmt_network/virtual_network_gateway_connections.rb'
40
35
  autoload :VirtualNetworkGateways, 'generated/azure_mgmt_network/virtual_network_gateways.rb'
41
- autoload :VirtualNetworks, 'generated/azure_mgmt_network/virtual_networks.rb'
36
+ autoload :VirtualNetworkGatewayConnections, 'generated/azure_mgmt_network/virtual_network_gateway_connections.rb'
37
+ autoload :LocalNetworkGateways, 'generated/azure_mgmt_network/local_network_gateways.rb'
38
+ autoload :ExpressRouteCircuitAuthorizations, 'generated/azure_mgmt_network/express_route_circuit_authorizations.rb'
39
+ autoload :ExpressRouteCircuitPeerings, 'generated/azure_mgmt_network/express_route_circuit_peerings.rb'
40
+ autoload :ExpressRouteCircuits, 'generated/azure_mgmt_network/express_route_circuits.rb'
41
+ autoload :ExpressRouteServiceProviders, 'generated/azure_mgmt_network/express_route_service_providers.rb'
42
+ autoload :RouteFilters, 'generated/azure_mgmt_network/route_filters.rb'
43
+ autoload :RouteFilterRules, 'generated/azure_mgmt_network/route_filter_rules.rb'
44
+ autoload :BgpServiceCommunities, 'generated/azure_mgmt_network/bgp_service_communities.rb'
42
45
  autoload :NetworkManagementClient, 'generated/azure_mgmt_network/network_management_client.rb'
43
46
 
44
47
  module Models
45
- autoload :ExpressRouteServiceProviderBandwidthsOffered, 'generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb'
46
- autoload :ExpressRouteCircuitArpTable, 'generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb'
47
- autoload :ExpressRouteCircuitsArpTableListResult, 'generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb'
48
- autoload :EffectiveNetworkSecurityRule, 'generated/azure_mgmt_network/models/effective_network_security_rule.rb'
48
+ autoload :VirtualNetworkListResult, 'generated/azure_mgmt_network/models/virtual_network_list_result.rb'
49
+ autoload :IPAddressAvailabilityResult, 'generated/azure_mgmt_network/models/ipaddress_availability_result.rb'
50
+ autoload :ConnectionResetSharedKey, 'generated/azure_mgmt_network/models/connection_reset_shared_key.rb'
49
51
  autoload :ApplicationGatewayWebApplicationFirewallConfiguration, 'generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb'
50
- autoload :VpnClientParameters, 'generated/azure_mgmt_network/models/vpn_client_parameters.rb'
51
- autoload :EffectiveNetworkSecurityGroupAssociation, 'generated/azure_mgmt_network/models/effective_network_security_group_association.rb'
52
+ autoload :BgpServiceCommunityListResult, 'generated/azure_mgmt_network/models/bgp_service_community_list_result.rb'
52
53
  autoload :VirtualNetworkGatewayConnectionListResult, 'generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb'
54
+ autoload :BGPCommunity, 'generated/azure_mgmt_network/models/bgpcommunity.rb'
53
55
  autoload :ApplicationGatewayListResult, 'generated/azure_mgmt_network/models/application_gateway_list_result.rb'
54
- autoload :ConnectionSharedKey, 'generated/azure_mgmt_network/models/connection_shared_key.rb'
55
- autoload :EffectiveNetworkSecurityGroup, 'generated/azure_mgmt_network/models/effective_network_security_group.rb'
56
- autoload :VirtualNetworkGatewaySku, 'generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb'
57
- autoload :AuthorizationListResult, 'generated/azure_mgmt_network/models/authorization_list_result.rb'
58
- autoload :VirtualNetworkGatewayListResult, 'generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb'
59
- autoload :ExpressRouteCircuitPeeringConfig, 'generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb'
60
- autoload :Usage, 'generated/azure_mgmt_network/models/usage.rb'
61
- autoload :ExpressRouteCircuitStats, 'generated/azure_mgmt_network/models/express_route_circuit_stats.rb'
56
+ autoload :RouteFilterListResult, 'generated/azure_mgmt_network/models/route_filter_list_result.rb'
62
57
  autoload :PublicIPAddressDnsSettings, 'generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb'
63
- autoload :NetworkInterfaceListResult, 'generated/azure_mgmt_network/models/network_interface_list_result.rb'
64
- autoload :ApplicationGatewayBackendAddress, 'generated/azure_mgmt_network/models/application_gateway_backend_address.rb'
65
- autoload :ExpressRouteCircuitPeeringListResult, 'generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb'
66
- autoload :SubnetListResult, 'generated/azure_mgmt_network/models/subnet_list_result.rb'
67
- autoload :ExpressRouteCircuitSku, 'generated/azure_mgmt_network/models/express_route_circuit_sku.rb'
68
- autoload :ApplicationGatewaySku, 'generated/azure_mgmt_network/models/application_gateway_sku.rb'
69
- autoload :ExpressRouteCircuitServiceProviderProperties, 'generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb'
70
- autoload :DhcpOptions, 'generated/azure_mgmt_network/models/dhcp_options.rb'
71
- autoload :LocalNetworkGatewayListResult, 'generated/azure_mgmt_network/models/local_network_gateway_list_result.rb'
58
+ autoload :RouteTableListResult, 'generated/azure_mgmt_network/models/route_table_list_result.rb'
59
+ autoload :ExpressRouteCircuitListResult, 'generated/azure_mgmt_network/models/express_route_circuit_list_result.rb'
72
60
  autoload :RouteListResult, 'generated/azure_mgmt_network/models/route_list_result.rb'
73
- autoload :ApplicationGatewayBackendHealthPool, 'generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb'
74
- autoload :EffectiveRouteListResult, 'generated/azure_mgmt_network/models/effective_route_list_result.rb'
75
- autoload :VirtualNetworkListResult, 'generated/azure_mgmt_network/models/virtual_network_list_result.rb'
76
- autoload :PublicIPAddressListResult, 'generated/azure_mgmt_network/models/public_ipaddress_list_result.rb'
77
- autoload :ExpressRouteCircuitRoutesTable, 'generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb'
78
- autoload :EffectiveNetworkSecurityGroupListResult, 'generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb'
79
- autoload :ExpressRouteCircuitsRoutesTableListResult, 'generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb'
80
61
  autoload :ExpressRouteCircuitRoutesTableSummary, 'generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb'
62
+ autoload :PublicIPAddressListResult, 'generated/azure_mgmt_network/models/public_ipaddress_list_result.rb'
63
+ autoload :ApplicationGatewayBackendAddress, 'generated/azure_mgmt_network/models/application_gateway_backend_address.rb'
64
+ autoload :SecurityRuleListResult, 'generated/azure_mgmt_network/models/security_rule_list_result.rb'
65
+ autoload :ExpressRouteCircuitsArpTableListResult, 'generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb'
66
+ autoload :NetworkSecurityGroupListResult, 'generated/azure_mgmt_network/models/network_security_group_list_result.rb'
67
+ autoload :ApplicationGatewayBackendHealthHttpSettings, 'generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb'
68
+ autoload :TunnelConnectionHealth, 'generated/azure_mgmt_network/models/tunnel_connection_health.rb'
69
+ autoload :ApplicationGatewayBackendHealth, 'generated/azure_mgmt_network/models/application_gateway_backend_health.rb'
70
+ autoload :VirtualNetworkGatewayListResult, 'generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb'
71
+ autoload :ApplicationGatewaySslPolicy, 'generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb'
72
+ autoload :VpnClientParameters, 'generated/azure_mgmt_network/models/vpn_client_parameters.rb'
73
+ autoload :ExpressRouteCircuitServiceProviderProperties, 'generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb'
74
+ autoload :BgpSettings, 'generated/azure_mgmt_network/models/bgp_settings.rb'
75
+ autoload :ExpressRouteCircuitPeeringListResult, 'generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb'
81
76
  autoload :VpnClientConfiguration, 'generated/azure_mgmt_network/models/vpn_client_configuration.rb'
82
- autoload :ExpressRouteCircuitsRoutesTableSummaryListResult, 'generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb'
83
- autoload :UsagesListResult, 'generated/azure_mgmt_network/models/usages_list_result.rb'
84
- autoload :ExpressRouteCircuitListResult, 'generated/azure_mgmt_network/models/express_route_circuit_list_result.rb'
77
+ autoload :ExpressRouteCircuitPeeringConfig, 'generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb'
78
+ autoload :VirtualNetworkGatewaySku, 'generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb'
79
+ autoload :LocalNetworkGatewayListResult, 'generated/azure_mgmt_network/models/local_network_gateway_list_result.rb'
80
+ autoload :LoadBalancerListResult, 'generated/azure_mgmt_network/models/load_balancer_list_result.rb'
81
+ autoload :DnsNameAvailabilityResult, 'generated/azure_mgmt_network/models/dns_name_availability_result.rb'
82
+ autoload :RouteFilterRuleListResult, 'generated/azure_mgmt_network/models/route_filter_rule_list_result.rb'
83
+ autoload :SubnetListResult, 'generated/azure_mgmt_network/models/subnet_list_result.rb'
84
+ autoload :ExpressRouteServiceProviderBandwidthsOffered, 'generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb'
85
85
  autoload :VirtualNetworkPeeringListResult, 'generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb'
86
- autoload :ApplicationGatewayBackendHealth, 'generated/azure_mgmt_network/models/application_gateway_backend_health.rb'
86
+ autoload :ExpressRouteCircuitsRoutesTableListResult, 'generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb'
87
+ autoload :AddressSpace, 'generated/azure_mgmt_network/models/address_space.rb'
87
88
  autoload :ApplicationGatewayBackendHealthServer, 'generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb'
88
- autoload :SecurityRuleListResult, 'generated/azure_mgmt_network/models/security_rule_list_result.rb'
89
+ autoload :DhcpOptions, 'generated/azure_mgmt_network/models/dhcp_options.rb'
90
+ autoload :ApplicationGatewaySku, 'generated/azure_mgmt_network/models/application_gateway_sku.rb'
91
+ autoload :UsagesListResult, 'generated/azure_mgmt_network/models/usages_list_result.rb'
92
+ autoload :ExpressRouteCircuitSku, 'generated/azure_mgmt_network/models/express_route_circuit_sku.rb'
93
+ autoload :AuthorizationListResult, 'generated/azure_mgmt_network/models/authorization_list_result.rb'
94
+ autoload :Usage, 'generated/azure_mgmt_network/models/usage.rb'
95
+ autoload :NetworkInterfaceDnsSettings, 'generated/azure_mgmt_network/models/network_interface_dns_settings.rb'
96
+ autoload :NetworkInterfaceListResult, 'generated/azure_mgmt_network/models/network_interface_list_result.rb'
97
+ autoload :ExpressRouteCircuitsRoutesTableSummaryListResult, 'generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb'
98
+ autoload :EffectiveNetworkSecurityGroupAssociation, 'generated/azure_mgmt_network/models/effective_network_security_group_association.rb'
99
+ autoload :ApplicationGatewayBackendHealthPool, 'generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb'
100
+ autoload :EffectiveNetworkSecurityRule, 'generated/azure_mgmt_network/models/effective_network_security_rule.rb'
101
+ autoload :ExpressRouteCircuitStats, 'generated/azure_mgmt_network/models/express_route_circuit_stats.rb'
102
+ autoload :EffectiveNetworkSecurityGroup, 'generated/azure_mgmt_network/models/effective_network_security_group.rb'
89
103
  autoload :ExpressRouteServiceProviderListResult, 'generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb'
104
+ autoload :EffectiveNetworkSecurityGroupListResult, 'generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb'
105
+ autoload :ExpressRouteCircuitArpTable, 'generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb'
90
106
  autoload :EffectiveRoute, 'generated/azure_mgmt_network/models/effective_route.rb'
91
- autoload :TunnelConnectionHealth, 'generated/azure_mgmt_network/models/tunnel_connection_health.rb'
92
- autoload :AzureAsyncOperationResult, 'generated/azure_mgmt_network/models/azure_async_operation_result.rb'
93
- autoload :NetworkInterfaceDnsSettings, 'generated/azure_mgmt_network/models/network_interface_dns_settings.rb'
94
- autoload :Error, 'generated/azure_mgmt_network/models/error.rb'
95
- autoload :ApplicationGatewayBackendHealthHttpSettings, 'generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb'
96
- autoload :ErrorDetails, 'generated/azure_mgmt_network/models/error_details.rb'
97
- autoload :RouteTableListResult, 'generated/azure_mgmt_network/models/route_table_list_result.rb'
98
- autoload :IPAddressAvailabilityResult, 'generated/azure_mgmt_network/models/ipaddress_availability_result.rb'
99
- autoload :ConnectionResetSharedKey, 'generated/azure_mgmt_network/models/connection_reset_shared_key.rb'
100
- autoload :DnsNameAvailabilityResult, 'generated/azure_mgmt_network/models/dns_name_availability_result.rb'
101
- autoload :ApplicationGatewaySslPolicy, 'generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb'
102
- autoload :LoadBalancerListResult, 'generated/azure_mgmt_network/models/load_balancer_list_result.rb'
107
+ autoload :ExpressRouteCircuitRoutesTable, 'generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb'
108
+ autoload :EffectiveRouteListResult, 'generated/azure_mgmt_network/models/effective_route_list_result.rb'
109
+ autoload :ConnectionSharedKey, 'generated/azure_mgmt_network/models/connection_shared_key.rb'
103
110
  autoload :UsageName, 'generated/azure_mgmt_network/models/usage_name.rb'
104
- autoload :AddressSpace, 'generated/azure_mgmt_network/models/address_space.rb'
105
- autoload :NetworkSecurityGroupListResult, 'generated/azure_mgmt_network/models/network_security_group_list_result.rb'
106
- autoload :BgpSettings, 'generated/azure_mgmt_network/models/bgp_settings.rb'
107
- autoload :ApplicationGatewayBackendAddressPool, 'generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb'
108
- autoload :NetworkInterfaceIPConfiguration, 'generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb'
109
111
  autoload :BackendAddressPool, 'generated/azure_mgmt_network/models/backend_address_pool.rb'
110
112
  autoload :InboundNatRule, 'generated/azure_mgmt_network/models/inbound_nat_rule.rb'
111
- autoload :Subnet, 'generated/azure_mgmt_network/models/subnet.rb'
112
- autoload :NetworkSecurityGroup, 'generated/azure_mgmt_network/models/network_security_group.rb'
113
113
  autoload :SecurityRule, 'generated/azure_mgmt_network/models/security_rule.rb'
114
114
  autoload :NetworkInterface, 'generated/azure_mgmt_network/models/network_interface.rb'
115
- autoload :RouteTable, 'generated/azure_mgmt_network/models/route_table.rb'
115
+ autoload :NetworkSecurityGroup, 'generated/azure_mgmt_network/models/network_security_group.rb'
116
116
  autoload :Route, 'generated/azure_mgmt_network/models/route.rb'
117
- autoload :IPConfiguration, 'generated/azure_mgmt_network/models/ipconfiguration.rb'
117
+ autoload :RouteTable, 'generated/azure_mgmt_network/models/route_table.rb'
118
118
  autoload :PublicIPAddress, 'generated/azure_mgmt_network/models/public_ipaddress.rb'
119
+ autoload :IPConfiguration, 'generated/azure_mgmt_network/models/ipconfiguration.rb'
119
120
  autoload :ResourceNavigationLink, 'generated/azure_mgmt_network/models/resource_navigation_link.rb'
121
+ autoload :Subnet, 'generated/azure_mgmt_network/models/subnet.rb'
122
+ autoload :NetworkInterfaceIPConfiguration, 'generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb'
123
+ autoload :ApplicationGatewayBackendAddressPool, 'generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb'
120
124
  autoload :ApplicationGatewayBackendHttpSettings, 'generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb'
121
125
  autoload :ApplicationGatewayIPConfiguration, 'generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb'
122
126
  autoload :ApplicationGatewayAuthenticationCertificate, 'generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb'
@@ -129,24 +133,29 @@ module Azure::ARM::Network
129
133
  autoload :ApplicationGatewayRequestRoutingRule, 'generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb'
130
134
  autoload :ApplicationGatewayUrlPathMap, 'generated/azure_mgmt_network/models/application_gateway_url_path_map.rb'
131
135
  autoload :ApplicationGateway, 'generated/azure_mgmt_network/models/application_gateway.rb'
132
- autoload :ExpressRouteCircuitAuthorization, 'generated/azure_mgmt_network/models/express_route_circuit_authorization.rb'
133
- autoload :ExpressRouteCircuitPeering, 'generated/azure_mgmt_network/models/express_route_circuit_peering.rb'
134
- autoload :ExpressRouteCircuit, 'generated/azure_mgmt_network/models/express_route_circuit.rb'
135
- autoload :ExpressRouteServiceProvider, 'generated/azure_mgmt_network/models/express_route_service_provider.rb'
136
136
  autoload :FrontendIPConfiguration, 'generated/azure_mgmt_network/models/frontend_ipconfiguration.rb'
137
137
  autoload :LoadBalancingRule, 'generated/azure_mgmt_network/models/load_balancing_rule.rb'
138
138
  autoload :Probe, 'generated/azure_mgmt_network/models/probe.rb'
139
139
  autoload :InboundNatPool, 'generated/azure_mgmt_network/models/inbound_nat_pool.rb'
140
140
  autoload :OutboundNatRule, 'generated/azure_mgmt_network/models/outbound_nat_rule.rb'
141
141
  autoload :LoadBalancer, 'generated/azure_mgmt_network/models/load_balancer.rb'
142
- autoload :LocalNetworkGateway, 'generated/azure_mgmt_network/models/local_network_gateway.rb'
143
142
  autoload :VirtualNetworkPeering, 'generated/azure_mgmt_network/models/virtual_network_peering.rb'
143
+ autoload :VirtualNetwork, 'generated/azure_mgmt_network/models/virtual_network.rb'
144
144
  autoload :VirtualNetworkGatewayIPConfiguration, 'generated/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb'
145
145
  autoload :VpnClientRootCertificate, 'generated/azure_mgmt_network/models/vpn_client_root_certificate.rb'
146
146
  autoload :VpnClientRevokedCertificate, 'generated/azure_mgmt_network/models/vpn_client_revoked_certificate.rb'
147
147
  autoload :VirtualNetworkGateway, 'generated/azure_mgmt_network/models/virtual_network_gateway.rb'
148
+ autoload :LocalNetworkGateway, 'generated/azure_mgmt_network/models/local_network_gateway.rb'
148
149
  autoload :VirtualNetworkGatewayConnection, 'generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb'
149
- autoload :VirtualNetwork, 'generated/azure_mgmt_network/models/virtual_network.rb'
150
+ autoload :ExpressRouteCircuitAuthorization, 'generated/azure_mgmt_network/models/express_route_circuit_authorization.rb'
151
+ autoload :RouteFilterRule, 'generated/azure_mgmt_network/models/route_filter_rule.rb'
152
+ autoload :ExpressRouteCircuitPeering, 'generated/azure_mgmt_network/models/express_route_circuit_peering.rb'
153
+ autoload :RouteFilter, 'generated/azure_mgmt_network/models/route_filter.rb'
154
+ autoload :ExpressRouteCircuit, 'generated/azure_mgmt_network/models/express_route_circuit.rb'
155
+ autoload :ExpressRouteServiceProvider, 'generated/azure_mgmt_network/models/express_route_service_provider.rb'
156
+ autoload :PatchRouteFilterRule, 'generated/azure_mgmt_network/models/patch_route_filter_rule.rb'
157
+ autoload :PatchRouteFilter, 'generated/azure_mgmt_network/models/patch_route_filter.rb'
158
+ autoload :BgpServiceCommunity, 'generated/azure_mgmt_network/models/bgp_service_community.rb'
150
159
  autoload :TransportProtocol, 'generated/azure_mgmt_network/models/transport_protocol.rb'
151
160
  autoload :IPAllocationMethod, 'generated/azure_mgmt_network/models/ipallocation_method.rb'
152
161
  autoload :IPVersion, 'generated/azure_mgmt_network/models/ipversion.rb'
@@ -163,18 +172,11 @@ module Azure::ARM::Network
163
172
  autoload :ApplicationGatewayRequestRoutingRuleType, 'generated/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb'
164
173
  autoload :ApplicationGatewayOperationalState, 'generated/azure_mgmt_network/models/application_gateway_operational_state.rb'
165
174
  autoload :ApplicationGatewayFirewallMode, 'generated/azure_mgmt_network/models/application_gateway_firewall_mode.rb'
166
- autoload :AuthorizationUseStatus, 'generated/azure_mgmt_network/models/authorization_use_status.rb'
167
- autoload :ExpressRouteCircuitPeeringAdvertisedPublicPrefixState, 'generated/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb'
168
- autoload :ExpressRouteCircuitPeeringType, 'generated/azure_mgmt_network/models/express_route_circuit_peering_type.rb'
169
- autoload :ExpressRouteCircuitPeeringState, 'generated/azure_mgmt_network/models/express_route_circuit_peering_state.rb'
170
- autoload :ExpressRouteCircuitSkuTier, 'generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb'
171
- autoload :ExpressRouteCircuitSkuFamily, 'generated/azure_mgmt_network/models/express_route_circuit_sku_family.rb'
172
- autoload :ServiceProviderProvisioningState, 'generated/azure_mgmt_network/models/service_provider_provisioning_state.rb'
173
175
  autoload :LoadDistribution, 'generated/azure_mgmt_network/models/load_distribution.rb'
174
176
  autoload :ProbeProtocol, 'generated/azure_mgmt_network/models/probe_protocol.rb'
177
+ autoload :VirtualNetworkPeeringState, 'generated/azure_mgmt_network/models/virtual_network_peering_state.rb'
175
178
  autoload :EffectiveRouteSource, 'generated/azure_mgmt_network/models/effective_route_source.rb'
176
179
  autoload :EffectiveRouteState, 'generated/azure_mgmt_network/models/effective_route_state.rb'
177
- autoload :VirtualNetworkPeeringState, 'generated/azure_mgmt_network/models/virtual_network_peering_state.rb'
178
180
  autoload :VirtualNetworkGatewayType, 'generated/azure_mgmt_network/models/virtual_network_gateway_type.rb'
179
181
  autoload :VpnType, 'generated/azure_mgmt_network/models/vpn_type.rb'
180
182
  autoload :VirtualNetworkGatewaySkuName, 'generated/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb'
@@ -182,6 +184,13 @@ module Azure::ARM::Network
182
184
  autoload :ProcessorArchitecture, 'generated/azure_mgmt_network/models/processor_architecture.rb'
183
185
  autoload :VirtualNetworkGatewayConnectionStatus, 'generated/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb'
184
186
  autoload :VirtualNetworkGatewayConnectionType, 'generated/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb'
185
- autoload :NetworkOperationStatus, 'generated/azure_mgmt_network/models/network_operation_status.rb'
187
+ autoload :AuthorizationUseStatus, 'generated/azure_mgmt_network/models/authorization_use_status.rb'
188
+ autoload :ExpressRouteCircuitPeeringAdvertisedPublicPrefixState, 'generated/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb'
189
+ autoload :ExpressRouteCircuitPeeringType, 'generated/azure_mgmt_network/models/express_route_circuit_peering_type.rb'
190
+ autoload :ExpressRouteCircuitPeeringState, 'generated/azure_mgmt_network/models/express_route_circuit_peering_state.rb'
191
+ autoload :Access, 'generated/azure_mgmt_network/models/access.rb'
192
+ autoload :ExpressRouteCircuitSkuTier, 'generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb'
193
+ autoload :ExpressRouteCircuitSkuFamily, 'generated/azure_mgmt_network/models/express_route_circuit_sku_family.rb'
194
+ autoload :ServiceProviderProvisioningState, 'generated/azure_mgmt_network/models/service_provider_provisioning_state.rb'
186
195
  end
187
196
  end
@@ -5,10 +5,7 @@
5
5
 
6
6
  module Azure::ARM::Network
7
7
  #
8
- # The Microsoft Azure Network management API provides a RESTful set of web
9
- # services that interact with Microsoft Azure Networks service to manage your
10
- # network resources. The API has entities that capture the relationship
11
- # between an end user and the Microsoft Azure Networks service.
8
+ # Composite Swagger for Network Client
12
9
  #
13
10
  class ApplicationGateways
14
11
  include Azure::ARM::Network::Models
@@ -105,7 +102,7 @@ module Azure::ARM::Network
105
102
  def get_async(resource_group_name, application_gateway_name, custom_headers = nil)
106
103
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
107
104
  fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
108
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
105
+ api_version = '2016-09-01'
109
106
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
110
107
 
111
108
 
@@ -121,7 +118,7 @@ module Azure::ARM::Network
121
118
  options = {
122
119
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
123
120
  path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
124
- query_params: {'api-version' => @client.api_version},
121
+ query_params: {'api-version' => api_version},
125
122
  headers: request_headers.merge(custom_headers || {}),
126
123
  base_url: request_url
127
124
  }
@@ -238,7 +235,7 @@ module Azure::ARM::Network
238
235
  #
239
236
  def list_async(resource_group_name, custom_headers = nil)
240
237
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
241
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
238
+ api_version = '2016-09-01'
242
239
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
243
240
 
244
241
 
@@ -254,7 +251,7 @@ module Azure::ARM::Network
254
251
  options = {
255
252
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
256
253
  path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
257
- query_params: {'api-version' => @client.api_version},
254
+ query_params: {'api-version' => api_version},
258
255
  headers: request_headers.merge(custom_headers || {}),
259
256
  base_url: request_url
260
257
  }
@@ -321,7 +318,7 @@ module Azure::ARM::Network
321
318
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
322
319
  #
323
320
  def list_all_async(custom_headers = nil)
324
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
321
+ api_version = '2016-09-01'
325
322
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
326
323
 
327
324
 
@@ -337,7 +334,7 @@ module Azure::ARM::Network
337
334
  options = {
338
335
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
339
336
  path_params: {'subscriptionId' => @client.subscription_id},
340
- query_params: {'api-version' => @client.api_version},
337
+ query_params: {'api-version' => api_version},
341
338
  headers: request_headers.merge(custom_headers || {}),
342
339
  base_url: request_url
343
340
  }
@@ -534,7 +531,7 @@ module Azure::ARM::Network
534
531
  def begin_delete_async(resource_group_name, application_gateway_name, custom_headers = nil)
535
532
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
536
533
  fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
537
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
534
+ api_version = '2016-09-01'
538
535
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
539
536
 
540
537
 
@@ -550,7 +547,7 @@ module Azure::ARM::Network
550
547
  options = {
551
548
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
552
549
  path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
553
- query_params: {'api-version' => @client.api_version},
550
+ query_params: {'api-version' => api_version},
554
551
  headers: request_headers.merge(custom_headers || {}),
555
552
  base_url: request_url
556
553
  }
@@ -622,7 +619,7 @@ module Azure::ARM::Network
622
619
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
623
620
  fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
624
621
  fail ArgumentError, 'parameters is nil' if parameters.nil?
625
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
622
+ api_version = '2016-09-01'
626
623
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
627
624
 
628
625
 
@@ -646,7 +643,7 @@ module Azure::ARM::Network
646
643
  options = {
647
644
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
648
645
  path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
649
- query_params: {'api-version' => @client.api_version},
646
+ query_params: {'api-version' => api_version},
650
647
  body: request_content,
651
648
  headers: request_headers.merge(custom_headers || {}),
652
649
  base_url: request_url
@@ -731,7 +728,7 @@ module Azure::ARM::Network
731
728
  def begin_start_async(resource_group_name, application_gateway_name, custom_headers = nil)
732
729
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
733
730
  fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
734
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
731
+ api_version = '2016-09-01'
735
732
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
736
733
 
737
734
 
@@ -747,7 +744,7 @@ module Azure::ARM::Network
747
744
  options = {
748
745
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
749
746
  path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
750
- query_params: {'api-version' => @client.api_version},
747
+ query_params: {'api-version' => api_version},
751
748
  headers: request_headers.merge(custom_headers || {}),
752
749
  base_url: request_url
753
750
  }
@@ -811,7 +808,7 @@ module Azure::ARM::Network
811
808
  def begin_stop_async(resource_group_name, application_gateway_name, custom_headers = nil)
812
809
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
813
810
  fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
814
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
811
+ api_version = '2016-09-01'
815
812
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
816
813
 
817
814
 
@@ -827,7 +824,7 @@ module Azure::ARM::Network
827
824
  options = {
828
825
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
829
826
  path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
830
- query_params: {'api-version' => @client.api_version},
827
+ query_params: {'api-version' => api_version},
831
828
  headers: request_headers.merge(custom_headers || {}),
832
829
  base_url: request_url
833
830
  }
@@ -901,7 +898,7 @@ module Azure::ARM::Network
901
898
  def begin_backend_health_async(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil)
902
899
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
903
900
  fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
904
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
901
+ api_version = '2016-09-01'
905
902
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
906
903
 
907
904
 
@@ -917,7 +914,7 @@ module Azure::ARM::Network
917
914
  options = {
918
915
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
919
916
  path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
920
- query_params: {'api-version' => @client.api_version,'$expand' => expand},
917
+ query_params: {'api-version' => api_version,'$expand' => expand},
921
918
  headers: request_headers.merge(custom_headers || {}),
922
919
  base_url: request_url
923
920
  }
@@ -0,0 +1,216 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Network
7
+ #
8
+ # Composite Swagger for Network Client
9
+ #
10
+ class BgpServiceCommunities
11
+ include Azure::ARM::Network::Models
12
+ include MsRestAzure
13
+
14
+ #
15
+ # Creates and initializes a new instance of the BgpServiceCommunities class.
16
+ # @param client service class for accessing basic functionality.
17
+ #
18
+ def initialize(client)
19
+ @client = client
20
+ end
21
+
22
+ # @return [NetworkManagementClient] reference to the NetworkManagementClient
23
+ attr_reader :client
24
+
25
+ #
26
+ # Gets all the available bgp service communities.
27
+ #
28
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
29
+ # will be added to the HTTP request.
30
+ #
31
+ # @return [Array<BgpServiceCommunity>] operation results.
32
+ #
33
+ def list(custom_headers = nil)
34
+ first_page = list_as_lazy(custom_headers)
35
+ first_page.get_all_items
36
+ end
37
+
38
+ #
39
+ # Gets all the available bgp service communities.
40
+ #
41
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
42
+ # will be added to the HTTP request.
43
+ #
44
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
45
+ #
46
+ def list_with_http_info(custom_headers = nil)
47
+ list_async(custom_headers).value!
48
+ end
49
+
50
+ #
51
+ # Gets all the available bgp service communities.
52
+ #
53
+ # @param [Hash{String => String}] A hash of custom headers that will be added
54
+ # to the HTTP request.
55
+ #
56
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
57
+ #
58
+ def list_async(custom_headers = nil)
59
+ api_version = '2016-12-01'
60
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
61
+
62
+
63
+ request_headers = {}
64
+
65
+ # Set Headers
66
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
67
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
68
+ path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/bgpServiceCommunities'
69
+
70
+ request_url = @base_url || @client.base_url
71
+
72
+ options = {
73
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
74
+ path_params: {'subscriptionId' => @client.subscription_id},
75
+ query_params: {'api-version' => api_version},
76
+ headers: request_headers.merge(custom_headers || {}),
77
+ base_url: request_url
78
+ }
79
+ promise = @client.make_request_async(:get, path_template, options)
80
+
81
+ promise = promise.then do |result|
82
+ http_response = result.response
83
+ status_code = http_response.status
84
+ response_content = http_response.body
85
+ unless status_code == 200
86
+ error_model = JSON.load(response_content)
87
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
88
+ end
89
+
90
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
91
+ # Deserialize Response
92
+ if status_code == 200
93
+ begin
94
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
95
+ result_mapper = BgpServiceCommunityListResult.mapper()
96
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
97
+ rescue Exception => e
98
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
99
+ end
100
+ end
101
+
102
+ result
103
+ end
104
+
105
+ promise.execute
106
+ end
107
+
108
+ #
109
+ # Gets all the available bgp service communities.
110
+ #
111
+ # @param next_page_link [String] The NextLink from the previous successful call
112
+ # to List operation.
113
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
114
+ # will be added to the HTTP request.
115
+ #
116
+ # @return [BgpServiceCommunityListResult] operation results.
117
+ #
118
+ def list_next(next_page_link, custom_headers = nil)
119
+ response = list_next_async(next_page_link, custom_headers).value!
120
+ response.body unless response.nil?
121
+ end
122
+
123
+ #
124
+ # Gets all the available bgp service communities.
125
+ #
126
+ # @param next_page_link [String] The NextLink from the previous successful call
127
+ # to List operation.
128
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
129
+ # will be added to the HTTP request.
130
+ #
131
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
132
+ #
133
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
134
+ list_next_async(next_page_link, custom_headers).value!
135
+ end
136
+
137
+ #
138
+ # Gets all the available bgp service communities.
139
+ #
140
+ # @param next_page_link [String] The NextLink from the previous successful call
141
+ # to List operation.
142
+ # @param [Hash{String => String}] A hash of custom headers that will be added
143
+ # to the HTTP request.
144
+ #
145
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
146
+ #
147
+ def list_next_async(next_page_link, custom_headers = nil)
148
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
149
+
150
+
151
+ request_headers = {}
152
+
153
+ # Set Headers
154
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
155
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
156
+ path_template = '{nextLink}'
157
+
158
+ request_url = @base_url || @client.base_url
159
+
160
+ options = {
161
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
162
+ skip_encoding_path_params: {'nextLink' => next_page_link},
163
+ headers: request_headers.merge(custom_headers || {}),
164
+ base_url: request_url
165
+ }
166
+ promise = @client.make_request_async(:get, path_template, options)
167
+
168
+ promise = promise.then do |result|
169
+ http_response = result.response
170
+ status_code = http_response.status
171
+ response_content = http_response.body
172
+ unless status_code == 200
173
+ error_model = JSON.load(response_content)
174
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
175
+ end
176
+
177
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
178
+ # Deserialize Response
179
+ if status_code == 200
180
+ begin
181
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
182
+ result_mapper = BgpServiceCommunityListResult.mapper()
183
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
184
+ rescue Exception => e
185
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
186
+ end
187
+ end
188
+
189
+ result
190
+ end
191
+
192
+ promise.execute
193
+ end
194
+
195
+ #
196
+ # Gets all the available bgp service communities.
197
+ #
198
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
199
+ # will be added to the HTTP request.
200
+ #
201
+ # @return [BgpServiceCommunityListResult] which provide lazy access to pages of
202
+ # the response.
203
+ #
204
+ def list_as_lazy(custom_headers = nil)
205
+ response = list_async(custom_headers).value!
206
+ unless response.nil?
207
+ page = response.body
208
+ page.next_method = Proc.new do |next_page_link|
209
+ list_next_async(next_page_link, custom_headers)
210
+ end
211
+ page
212
+ end
213
+ end
214
+
215
+ end
216
+ end