azure_mgmt_network 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_network.rb +59 -52
  3. data/lib/generated/azure_mgmt_network/application_gateways.rb +426 -308
  4. data/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +181 -199
  5. data/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb +175 -193
  6. data/lib/generated/azure_mgmt_network/express_route_circuits.rb +458 -497
  7. data/lib/generated/azure_mgmt_network/express_route_service_providers.rb +36 -43
  8. data/lib/generated/azure_mgmt_network/load_balancers.rb +225 -242
  9. data/lib/generated/azure_mgmt_network/local_network_gateways.rb +168 -191
  10. data/lib/generated/azure_mgmt_network/models/address_space.rb +4 -4
  11. data/lib/generated/azure_mgmt_network/models/application_gateway.rb +42 -28
  12. data/lib/generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb +6 -6
  13. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address.rb +4 -4
  14. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +6 -6
  15. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health.rb +52 -0
  16. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb +66 -0
  17. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb +65 -0
  18. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb +67 -0
  19. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_server_health.rb +18 -0
  20. data/lib/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +16 -13
  21. data/lib/generated/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +1 -1
  22. data/lib/generated/azure_mgmt_network/models/application_gateway_firewall_mode.rb +16 -0
  23. data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +13 -12
  24. data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb +6 -6
  25. data/lib/generated/azure_mgmt_network/models/application_gateway_http_listener.rb +16 -14
  26. data/lib/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +7 -6
  27. data/lib/generated/azure_mgmt_network/models/application_gateway_list_result.rb +4 -4
  28. data/lib/generated/azure_mgmt_network/models/application_gateway_operational_state.rb +1 -1
  29. data/lib/generated/azure_mgmt_network/models/application_gateway_path_rule.rb +9 -9
  30. data/lib/generated/azure_mgmt_network/models/application_gateway_probe.rb +19 -12
  31. data/lib/generated/azure_mgmt_network/models/application_gateway_protocol.rb +1 -1
  32. data/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +14 -11
  33. data/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +1 -1
  34. data/lib/generated/azure_mgmt_network/models/application_gateway_sku.rb +11 -8
  35. data/lib/generated/azure_mgmt_network/models/application_gateway_sku_name.rb +3 -1
  36. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +12 -9
  37. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb +4 -3
  38. data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb +1 -1
  39. data/lib/generated/azure_mgmt_network/models/application_gateway_tier.rb +2 -1
  40. data/lib/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb +10 -9
  41. data/lib/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb +57 -0
  42. data/lib/generated/azure_mgmt_network/models/authorization_list_result.rb +6 -6
  43. data/lib/generated/azure_mgmt_network/models/authorization_use_status.rb +1 -1
  44. data/lib/generated/azure_mgmt_network/models/azure_async_operation_result.rb +4 -3
  45. data/lib/generated/azure_mgmt_network/models/backend_address_pool.rb +11 -11
  46. data/lib/generated/azure_mgmt_network/models/bgp_settings.rb +7 -6
  47. data/lib/generated/azure_mgmt_network/models/connection_reset_shared_key.rb +8 -3
  48. data/lib/generated/azure_mgmt_network/models/connection_shared_key.rb +4 -4
  49. data/lib/generated/azure_mgmt_network/models/dhcp_options.rb +4 -4
  50. data/lib/generated/azure_mgmt_network/models/dns_name_availability_result.rb +3 -3
  51. data/lib/generated/azure_mgmt_network/models/effective_network_security_group.rb +5 -6
  52. data/lib/generated/azure_mgmt_network/models/effective_network_security_group_association.rb +4 -4
  53. data/lib/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +5 -5
  54. data/lib/generated/azure_mgmt_network/models/effective_network_security_rule.rb +20 -17
  55. data/lib/generated/azure_mgmt_network/models/effective_route.rb +16 -13
  56. data/lib/generated/azure_mgmt_network/models/effective_route_list_result.rb +4 -4
  57. data/lib/generated/azure_mgmt_network/models/effective_route_source.rb +1 -1
  58. data/lib/generated/azure_mgmt_network/models/effective_route_state.rb +1 -1
  59. data/lib/generated/azure_mgmt_network/models/error.rb +2 -1
  60. data/lib/generated/azure_mgmt_network/models/error_details.rb +2 -1
  61. data/lib/generated/azure_mgmt_network/models/express_route_circuit.rb +20 -21
  62. data/lib/generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb +6 -6
  63. data/lib/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb +10 -9
  64. data/lib/generated/azure_mgmt_network/models/express_route_circuit_list_result.rb +5 -5
  65. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +26 -24
  66. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +1 -1
  67. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb +10 -10
  68. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +6 -6
  69. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_state.rb +1 -1
  70. data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_type.rb +1 -1
  71. data/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb +4 -4
  72. data/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +5 -5
  73. data/lib/generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +5 -5
  74. data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku.rb +9 -7
  75. data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku_family.rb +1 -1
  76. data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +1 -1
  77. data/lib/generated/azure_mgmt_network/models/express_route_circuit_stats.rb +2 -2
  78. data/lib/generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +5 -4
  79. data/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +5 -5
  80. data/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb +5 -5
  81. data/lib/generated/azure_mgmt_network/models/express_route_service_provider.rb +6 -6
  82. data/lib/generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +4 -4
  83. data/lib/generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb +5 -5
  84. data/lib/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb +18 -19
  85. data/lib/generated/azure_mgmt_network/models/inbound_nat_pool.rb +19 -27
  86. data/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb +25 -33
  87. data/lib/generated/azure_mgmt_network/models/ipaddress_availability_result.rb +4 -4
  88. data/lib/generated/azure_mgmt_network/models/ipallocation_method.rb +1 -1
  89. data/lib/generated/azure_mgmt_network/models/ipconfiguration.rb +12 -13
  90. data/lib/generated/azure_mgmt_network/models/ipversion.rb +1 -1
  91. data/lib/generated/azure_mgmt_network/models/load_balancer.rb +31 -16
  92. data/lib/generated/azure_mgmt_network/models/load_balancer_list_result.rb +5 -5
  93. data/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb +29 -38
  94. data/lib/generated/azure_mgmt_network/models/load_distribution.rb +1 -1
  95. data/lib/generated/azure_mgmt_network/models/local_network_gateway.rb +11 -10
  96. data/lib/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb +5 -5
  97. data/lib/generated/azure_mgmt_network/models/network_interface.rb +31 -20
  98. data/lib/generated/azure_mgmt_network/models/network_interface_dns_settings.rb +18 -8
  99. data/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb +19 -16
  100. data/lib/generated/azure_mgmt_network/models/network_interface_list_result.rb +5 -5
  101. data/lib/generated/azure_mgmt_network/models/network_operation_status.rb +1 -1
  102. data/lib/generated/azure_mgmt_network/models/network_security_group.rb +15 -15
  103. data/lib/generated/azure_mgmt_network/models/network_security_group_list_result.rb +5 -5
  104. data/lib/generated/azure_mgmt_network/models/outbound_nat_rule.rb +12 -14
  105. data/lib/generated/azure_mgmt_network/models/probe.rb +27 -28
  106. data/lib/generated/azure_mgmt_network/models/probe_protocol.rb +1 -1
  107. data/lib/generated/azure_mgmt_network/models/processor_architecture.rb +1 -1
  108. data/lib/generated/azure_mgmt_network/models/public_ipaddress.rb +15 -15
  109. data/lib/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +15 -14
  110. data/lib/generated/azure_mgmt_network/models/public_ipaddress_list_result.rb +5 -5
  111. data/lib/generated/azure_mgmt_network/models/resource_navigation_link.rb +6 -6
  112. data/lib/generated/azure_mgmt_network/models/route.rb +13 -13
  113. data/lib/generated/azure_mgmt_network/models/route_list_result.rb +4 -4
  114. data/lib/generated/azure_mgmt_network/models/route_next_hop_type.rb +1 -1
  115. data/lib/generated/azure_mgmt_network/models/route_table.rb +8 -7
  116. data/lib/generated/azure_mgmt_network/models/route_table_list_result.rb +5 -5
  117. data/lib/generated/azure_mgmt_network/models/security_rule.rb +33 -36
  118. data/lib/generated/azure_mgmt_network/models/security_rule_access.rb +1 -1
  119. data/lib/generated/azure_mgmt_network/models/security_rule_direction.rb +1 -1
  120. data/lib/generated/azure_mgmt_network/models/security_rule_list_result.rb +6 -6
  121. data/lib/generated/azure_mgmt_network/models/security_rule_protocol.rb +1 -1
  122. data/lib/generated/azure_mgmt_network/models/service_provider_provisioning_state.rb +1 -1
  123. data/lib/generated/azure_mgmt_network/models/subnet.rb +14 -15
  124. data/lib/generated/azure_mgmt_network/models/subnet_list_result.rb +4 -4
  125. data/lib/generated/azure_mgmt_network/models/transport_protocol.rb +1 -1
  126. data/lib/generated/azure_mgmt_network/models/tunnel_connection_health.rb +92 -0
  127. data/lib/generated/azure_mgmt_network/models/usage.rb +7 -7
  128. data/lib/generated/azure_mgmt_network/models/usage_name.rb +4 -5
  129. data/lib/generated/azure_mgmt_network/models/usages_list_result.rb +3 -3
  130. data/lib/generated/azure_mgmt_network/models/virtual_network.rb +15 -16
  131. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway.rb +26 -23
  132. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb +45 -18
  133. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +6 -5
  134. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +1 -1
  135. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +1 -1
  136. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +15 -14
  137. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +5 -5
  138. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb +12 -10
  139. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +1 -1
  140. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +1 -1
  141. data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_type.rb +1 -1
  142. data/lib/generated/azure_mgmt_network/models/virtual_network_list_result.rb +5 -5
  143. data/lib/generated/azure_mgmt_network/models/virtual_network_peering.rb +21 -23
  144. data/lib/generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb +6 -6
  145. data/lib/generated/azure_mgmt_network/models/virtual_network_peering_state.rb +1 -1
  146. data/lib/generated/azure_mgmt_network/models/vpn_client_configuration.rb +5 -5
  147. data/lib/generated/azure_mgmt_network/models/vpn_client_parameters.rb +5 -4
  148. data/lib/generated/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +10 -9
  149. data/lib/generated/azure_mgmt_network/models/vpn_client_root_certificate.rb +10 -8
  150. data/lib/generated/azure_mgmt_network/models/vpn_type.rb +1 -1
  151. data/lib/generated/azure_mgmt_network/module_definition.rb +1 -1
  152. data/lib/generated/azure_mgmt_network/network_interfaces.rb +443 -478
  153. data/lib/generated/azure_mgmt_network/network_management_client.rb +20 -7
  154. data/lib/generated/azure_mgmt_network/network_security_groups.rb +224 -249
  155. data/lib/generated/azure_mgmt_network/public_ipaddresses.rb +220 -241
  156. data/lib/generated/azure_mgmt_network/route_tables.rb +219 -226
  157. data/lib/generated/azure_mgmt_network/routes.rb +171 -181
  158. data/lib/generated/azure_mgmt_network/security_rules.rb +175 -193
  159. data/lib/generated/azure_mgmt_network/subnets.rb +177 -181
  160. data/lib/generated/azure_mgmt_network/usages.rb +34 -34
  161. data/lib/generated/azure_mgmt_network/version.rb +2 -2
  162. data/lib/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +335 -358
  163. data/lib/generated/azure_mgmt_network/virtual_network_gateways.rb +246 -289
  164. data/lib/generated/azure_mgmt_network/virtual_network_peerings.rb +177 -191
  165. data/lib/generated/azure_mgmt_network/virtual_networks.rb +242 -249
  166. metadata +12 -5
  167. data/lib/generated/azure_mgmt_network/models/connection_shared_key_result.rb +0 -44
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf9ed819b59c21987c953f27cbd0dfaec8127e00
4
- data.tar.gz: 9b2532a9fdaa9606eb138bcdfc0f3c35a7879c08
3
+ metadata.gz: 32aa3179f6c2e06e3e2a41a5424a9efe757b55da
4
+ data.tar.gz: d0f1d304c9ba960e7fe80d7736eebaf23a9a9e0e
5
5
  SHA512:
6
- metadata.gz: 254e9eb153834c7dd3ee5cb3b96b4de16e402c98a627a76cebbbb7b1b437107d843ebca85f3fa51e9caf544d2c32e84a74683cc74a8440a5cd8763d759801d78
7
- data.tar.gz: 1850fb869a8c3a0a686f98fcb62219baabdbb0d6ca57fa6cff300ae54000dcd227275489d84fcdd2a5424786a3ead522d18054cfab185813d72e394af8298db5
6
+ metadata.gz: d1effd50a4925c7a85270b2beb2b3110c4244eac6f74f45ad05566fe6575dd306375d1590aeaf246c25401d668d564db7aed4faf9994efeec14919bbd7d465e3
7
+ data.tar.gz: 5c2a60e071b153d890ceec157c563d84bcc8eea51e9a189a73cca76bcae8489f218283032f074515761aca7bf23ba52b7d8187dabdd868adfcb7ddd02d372423
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -42,70 +42,70 @@ module Azure::ARM::Network
42
42
  autoload :NetworkManagementClient, 'generated/azure_mgmt_network/network_management_client.rb'
43
43
 
44
44
  module Models
45
- autoload :ApplicationGatewaySku, 'generated/azure_mgmt_network/models/application_gateway_sku.rb'
46
- autoload :ApplicationGatewaySslPolicy, 'generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb'
47
- autoload :ApplicationGatewayBackendAddress, 'generated/azure_mgmt_network/models/application_gateway_backend_address.rb'
48
- autoload :NetworkInterfaceDnsSettings, 'generated/azure_mgmt_network/models/network_interface_dns_settings.rb'
49
- autoload :PublicIPAddressDnsSettings, 'generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb'
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'
49
+ 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 :VirtualNetworkGatewayConnectionListResult, 'generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb'
50
53
  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'
51
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'
52
59
  autoload :ExpressRouteCircuitPeeringConfig, 'generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb'
60
+ autoload :Usage, 'generated/azure_mgmt_network/models/usage.rb'
53
61
  autoload :ExpressRouteCircuitStats, 'generated/azure_mgmt_network/models/express_route_circuit_stats.rb'
62
+ 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'
54
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'
55
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'
56
69
  autoload :ExpressRouteCircuitServiceProviderProperties, 'generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb'
57
- autoload :ExpressRouteCircuitArpTable, 'generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb'
58
- autoload :ExpressRouteCircuitsArpTableListResult, 'generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.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'
72
+ 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'
59
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'
60
79
  autoload :ExpressRouteCircuitsRoutesTableListResult, 'generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb'
61
80
  autoload :ExpressRouteCircuitRoutesTableSummary, 'generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb'
81
+ autoload :VpnClientConfiguration, 'generated/azure_mgmt_network/models/vpn_client_configuration.rb'
62
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'
63
84
  autoload :ExpressRouteCircuitListResult, 'generated/azure_mgmt_network/models/express_route_circuit_list_result.rb'
64
- autoload :ExpressRouteServiceProviderBandwidthsOffered, 'generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb'
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'
87
+ 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'
65
89
  autoload :ExpressRouteServiceProviderListResult, 'generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb'
66
- autoload :LoadBalancerListResult, 'generated/azure_mgmt_network/models/load_balancer_list_result.rb'
67
- autoload :AddressSpace, 'generated/azure_mgmt_network/models/address_space.rb'
68
- autoload :BgpSettings, 'generated/azure_mgmt_network/models/bgp_settings.rb'
69
- autoload :LocalNetworkGatewayListResult, 'generated/azure_mgmt_network/models/local_network_gateway_list_result.rb'
70
- autoload :NetworkInterfaceListResult, 'generated/azure_mgmt_network/models/network_interface_list_result.rb'
71
- autoload :EffectiveNetworkSecurityGroup, 'generated/azure_mgmt_network/models/effective_network_security_group.rb'
72
- autoload :EffectiveNetworkSecurityGroupAssociation, 'generated/azure_mgmt_network/models/effective_network_security_group_association.rb'
73
- autoload :EffectiveNetworkSecurityRule, 'generated/azure_mgmt_network/models/effective_network_security_rule.rb'
74
- autoload :EffectiveNetworkSecurityGroupListResult, 'generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb'
75
- autoload :NetworkSecurityGroupListResult, 'generated/azure_mgmt_network/models/network_security_group_list_result.rb'
76
- autoload :PublicIPAddressListResult, 'generated/azure_mgmt_network/models/public_ipaddress_list_result.rb'
77
90
  autoload :EffectiveRoute, 'generated/azure_mgmt_network/models/effective_route.rb'
78
- autoload :EffectiveRouteListResult, 'generated/azure_mgmt_network/models/effective_route_list_result.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'
79
97
  autoload :RouteTableListResult, 'generated/azure_mgmt_network/models/route_table_list_result.rb'
80
- autoload :RouteListResult, 'generated/azure_mgmt_network/models/route_list_result.rb'
81
- autoload :SecurityRuleListResult, 'generated/azure_mgmt_network/models/security_rule_list_result.rb'
82
- autoload :SubnetListResult, 'generated/azure_mgmt_network/models/subnet_list_result.rb'
83
- autoload :VirtualNetworkPeeringListResult, 'generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb'
84
- autoload :UsageName, 'generated/azure_mgmt_network/models/usage_name.rb'
85
- autoload :Usage, 'generated/azure_mgmt_network/models/usage.rb'
86
- autoload :UsagesListResult, 'generated/azure_mgmt_network/models/usages_list_result.rb'
87
- autoload :VirtualNetworkGatewaySku, 'generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb'
88
- autoload :VpnClientConfiguration, 'generated/azure_mgmt_network/models/vpn_client_configuration.rb'
89
- autoload :VpnClientParameters, 'generated/azure_mgmt_network/models/vpn_client_parameters.rb'
90
- autoload :ConnectionSharedKeyResult, 'generated/azure_mgmt_network/models/connection_shared_key_result.rb'
91
- autoload :VirtualNetworkGatewayConnectionListResult, 'generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb'
98
+ autoload :IPAddressAvailabilityResult, 'generated/azure_mgmt_network/models/ipaddress_availability_result.rb'
92
99
  autoload :ConnectionResetSharedKey, 'generated/azure_mgmt_network/models/connection_reset_shared_key.rb'
93
- autoload :ConnectionSharedKey, 'generated/azure_mgmt_network/models/connection_shared_key.rb'
94
- autoload :VirtualNetworkGatewayListResult, 'generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb'
95
- autoload :DhcpOptions, 'generated/azure_mgmt_network/models/dhcp_options.rb'
96
- autoload :VirtualNetworkListResult, 'generated/azure_mgmt_network/models/virtual_network_list_result.rb'
97
100
  autoload :DnsNameAvailabilityResult, 'generated/azure_mgmt_network/models/dns_name_availability_result.rb'
98
- autoload :IPAddressAvailabilityResult, 'generated/azure_mgmt_network/models/ipaddress_availability_result.rb'
99
- autoload :ErrorDetails, 'generated/azure_mgmt_network/models/error_details.rb'
100
- autoload :Error, 'generated/azure_mgmt_network/models/error.rb'
101
- autoload :AzureAsyncOperationResult, 'generated/azure_mgmt_network/models/azure_async_operation_result.rb'
102
- autoload :ApplicationGatewayIPConfiguration, 'generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb'
103
- autoload :ApplicationGatewayAuthenticationCertificate, 'generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb'
104
- autoload :ApplicationGatewaySslCertificate, 'generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb'
105
- autoload :ApplicationGatewayFrontendIPConfiguration, 'generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb'
106
- autoload :ApplicationGatewayFrontendPort, 'generated/azure_mgmt_network/models/application_gateway_frontend_port.rb'
107
- autoload :NetworkInterfaceIPConfiguration, 'generated/azure_mgmt_network/models/network_interface_ipconfiguration.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'
103
+ 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'
108
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
109
  autoload :BackendAddressPool, 'generated/azure_mgmt_network/models/backend_address_pool.rb'
110
110
  autoload :InboundNatRule, 'generated/azure_mgmt_network/models/inbound_nat_rule.rb'
111
111
  autoload :Subnet, 'generated/azure_mgmt_network/models/subnet.rb'
@@ -118,6 +118,11 @@ module Azure::ARM::Network
118
118
  autoload :PublicIPAddress, 'generated/azure_mgmt_network/models/public_ipaddress.rb'
119
119
  autoload :ResourceNavigationLink, 'generated/azure_mgmt_network/models/resource_navigation_link.rb'
120
120
  autoload :ApplicationGatewayBackendHttpSettings, 'generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb'
121
+ autoload :ApplicationGatewayIPConfiguration, 'generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb'
122
+ autoload :ApplicationGatewayAuthenticationCertificate, 'generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb'
123
+ autoload :ApplicationGatewaySslCertificate, 'generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb'
124
+ autoload :ApplicationGatewayFrontendIPConfiguration, 'generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb'
125
+ autoload :ApplicationGatewayFrontendPort, 'generated/azure_mgmt_network/models/application_gateway_frontend_port.rb'
121
126
  autoload :ApplicationGatewayHttpListener, 'generated/azure_mgmt_network/models/application_gateway_http_listener.rb'
122
127
  autoload :ApplicationGatewayPathRule, 'generated/azure_mgmt_network/models/application_gateway_path_rule.rb'
123
128
  autoload :ApplicationGatewayProbe, 'generated/azure_mgmt_network/models/application_gateway_probe.rb'
@@ -142,11 +147,8 @@ module Azure::ARM::Network
142
147
  autoload :VirtualNetworkGateway, 'generated/azure_mgmt_network/models/virtual_network_gateway.rb'
143
148
  autoload :VirtualNetworkGatewayConnection, 'generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb'
144
149
  autoload :VirtualNetwork, 'generated/azure_mgmt_network/models/virtual_network.rb'
145
- autoload :ApplicationGatewaySkuName, 'generated/azure_mgmt_network/models/application_gateway_sku_name.rb'
146
- autoload :ApplicationGatewayTier, 'generated/azure_mgmt_network/models/application_gateway_tier.rb'
147
- autoload :ApplicationGatewaySslProtocol, 'generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb'
148
- autoload :IPAllocationMethod, 'generated/azure_mgmt_network/models/ipallocation_method.rb'
149
150
  autoload :TransportProtocol, 'generated/azure_mgmt_network/models/transport_protocol.rb'
151
+ autoload :IPAllocationMethod, 'generated/azure_mgmt_network/models/ipallocation_method.rb'
150
152
  autoload :IPVersion, 'generated/azure_mgmt_network/models/ipversion.rb'
151
153
  autoload :SecurityRuleProtocol, 'generated/azure_mgmt_network/models/security_rule_protocol.rb'
152
154
  autoload :SecurityRuleAccess, 'generated/azure_mgmt_network/models/security_rule_access.rb'
@@ -154,8 +156,13 @@ module Azure::ARM::Network
154
156
  autoload :RouteNextHopType, 'generated/azure_mgmt_network/models/route_next_hop_type.rb'
155
157
  autoload :ApplicationGatewayProtocol, 'generated/azure_mgmt_network/models/application_gateway_protocol.rb'
156
158
  autoload :ApplicationGatewayCookieBasedAffinity, 'generated/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb'
159
+ autoload :ApplicationGatewayBackendHealthServerHealth, 'generated/azure_mgmt_network/models/application_gateway_backend_health_server_health.rb'
160
+ autoload :ApplicationGatewaySkuName, 'generated/azure_mgmt_network/models/application_gateway_sku_name.rb'
161
+ autoload :ApplicationGatewayTier, 'generated/azure_mgmt_network/models/application_gateway_tier.rb'
162
+ autoload :ApplicationGatewaySslProtocol, 'generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb'
157
163
  autoload :ApplicationGatewayRequestRoutingRuleType, 'generated/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb'
158
164
  autoload :ApplicationGatewayOperationalState, 'generated/azure_mgmt_network/models/application_gateway_operational_state.rb'
165
+ autoload :ApplicationGatewayFirewallMode, 'generated/azure_mgmt_network/models/application_gateway_firewall_mode.rb'
159
166
  autoload :AuthorizationUseStatus, 'generated/azure_mgmt_network/models/authorization_use_status.rb'
160
167
  autoload :ExpressRouteCircuitPeeringAdvertisedPublicPrefixState, 'generated/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb'
161
168
  autoload :ExpressRouteCircuitPeeringType, 'generated/azure_mgmt_network/models/express_route_circuit_peering_type.rb'
@@ -173,8 +180,8 @@ module Azure::ARM::Network
173
180
  autoload :VirtualNetworkGatewaySkuName, 'generated/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb'
174
181
  autoload :VirtualNetworkGatewaySkuTier, 'generated/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb'
175
182
  autoload :ProcessorArchitecture, 'generated/azure_mgmt_network/models/processor_architecture.rb'
176
- autoload :VirtualNetworkGatewayConnectionType, 'generated/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb'
177
183
  autoload :VirtualNetworkGatewayConnectionStatus, 'generated/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb'
184
+ autoload :VirtualNetworkGatewayConnectionType, 'generated/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb'
178
185
  autoload :NetworkOperationStatus, 'generated/azure_mgmt_network/models/network_operation_status.rb'
179
186
  end
180
187
  end
@@ -1,14 +1,14 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::Network
7
7
  #
8
8
  # The Microsoft Azure Network management API provides a RESTful set of web
9
- # services that interact with Microsoft Azure Networks service to manage
10
- # your network resources. The API has entities that capture the
11
- # relationship between an end user and the Microsoft Azure Networks service.
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.
12
12
  #
13
13
  class ApplicationGateways
14
14
  include Azure::ARM::Network::Models
@@ -26,8 +26,7 @@ module Azure::ARM::Network
26
26
  attr_reader :client
27
27
 
28
28
  #
29
- # The delete ApplicationGateway operation deletes the specified application
30
- # gateway.
29
+ # Deletes the specified application gateway.
31
30
  #
32
31
  # @param resource_group_name [String] The name of the resource group.
33
32
  # @param application_gateway_name [String] The name of the application gateway.
@@ -65,23 +64,22 @@ module Azure::ARM::Network
65
64
  end
66
65
 
67
66
  #
68
- # The delete ApplicationGateway operation deletes the specified application
69
- # gateway.
67
+ # Gets the specified application gateway.
70
68
  #
71
69
  # @param resource_group_name [String] The name of the resource group.
72
70
  # @param application_gateway_name [String] The name of the application gateway.
73
71
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
74
72
  # will be added to the HTTP request.
75
73
  #
74
+ # @return [ApplicationGateway] operation results.
76
75
  #
77
- def begin_delete(resource_group_name, application_gateway_name, custom_headers = nil)
78
- response = begin_delete_async(resource_group_name, application_gateway_name, custom_headers).value!
79
- nil
76
+ def get(resource_group_name, application_gateway_name, custom_headers = nil)
77
+ response = get_async(resource_group_name, application_gateway_name, custom_headers).value!
78
+ response.body unless response.nil?
80
79
  end
81
80
 
82
81
  #
83
- # The delete ApplicationGateway operation deletes the specified application
84
- # gateway.
82
+ # Gets the specified application gateway.
85
83
  #
86
84
  # @param resource_group_name [String] The name of the resource group.
87
85
  # @param application_gateway_name [String] The name of the application gateway.
@@ -90,13 +88,12 @@ module Azure::ARM::Network
90
88
  #
91
89
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
92
90
  #
93
- def begin_delete_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil)
94
- begin_delete_async(resource_group_name, application_gateway_name, custom_headers).value!
91
+ def get_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil)
92
+ get_async(resource_group_name, application_gateway_name, custom_headers).value!
95
93
  end
96
94
 
97
95
  #
98
- # The delete ApplicationGateway operation deletes the specified application
99
- # gateway.
96
+ # Gets the specified application gateway.
100
97
  #
101
98
  # @param resource_group_name [String] The name of the resource group.
102
99
  # @param application_gateway_name [String] The name of the application gateway.
@@ -105,7 +102,7 @@ module Azure::ARM::Network
105
102
  #
106
103
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
107
104
  #
108
- def begin_delete_async(resource_group_name, application_gateway_name, custom_headers = nil)
105
+ def get_async(resource_group_name, application_gateway_name, custom_headers = nil)
109
106
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
110
107
  fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
111
108
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -128,18 +125,28 @@ module Azure::ARM::Network
128
125
  headers: request_headers.merge(custom_headers || {}),
129
126
  base_url: request_url
130
127
  }
131
- promise = @client.make_request_async(:delete, path_template, options)
128
+ promise = @client.make_request_async(:get, path_template, options)
132
129
 
133
130
  promise = promise.then do |result|
134
131
  http_response = result.response
135
132
  status_code = http_response.status
136
133
  response_content = http_response.body
137
- unless status_code == 202 || status_code == 204 || status_code == 200
134
+ unless status_code == 200
138
135
  error_model = JSON.load(response_content)
139
136
  fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
140
137
  end
141
138
 
142
139
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
140
+ # Deserialize Response
141
+ if status_code == 200
142
+ begin
143
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
144
+ result_mapper = ApplicationGateway.mapper()
145
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
146
+ rescue Exception => e
147
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
148
+ end
149
+ end
143
150
 
144
151
  result
145
152
  end
@@ -148,50 +155,89 @@ module Azure::ARM::Network
148
155
  end
149
156
 
150
157
  #
151
- # The Get ApplicationGateway operation retrieves information about the
152
- # specified application gateway.
158
+ # Creates or updates the specified application gateway.
153
159
  #
154
160
  # @param resource_group_name [String] The name of the resource group.
155
161
  # @param application_gateway_name [String] The name of the application gateway.
162
+ # @param parameters [ApplicationGateway] Parameters supplied to the create or
163
+ # update application gateway operation.
156
164
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
157
165
  # will be added to the HTTP request.
158
166
  #
159
167
  # @return [ApplicationGateway] operation results.
160
168
  #
161
- def get(resource_group_name, application_gateway_name, custom_headers = nil)
162
- response = get_async(resource_group_name, application_gateway_name, custom_headers).value!
169
+ def create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers = nil)
170
+ response = create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value!
163
171
  response.body unless response.nil?
164
172
  end
165
173
 
166
- #
167
- # The Get ApplicationGateway operation retrieves information about the
168
- # specified application gateway.
169
174
  #
170
175
  # @param resource_group_name [String] The name of the resource group.
171
176
  # @param application_gateway_name [String] The name of the application gateway.
177
+ # @param parameters [ApplicationGateway] Parameters supplied to the create or
178
+ # update application gateway operation.
179
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
180
+ # will be added to the HTTP request.
181
+ #
182
+ # @return [Concurrent::Promise] promise which provides async access to http
183
+ # response.
184
+ #
185
+ def create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers = nil)
186
+ # Send request
187
+ promise = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers)
188
+
189
+ promise = promise.then do |response|
190
+ # Defining deserialization method.
191
+ deserialize_method = lambda do |parsed_response|
192
+ result_mapper = ApplicationGateway.mapper()
193
+ parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
194
+ end
195
+
196
+ # Waiting for response.
197
+ @client.get_long_running_operation_result(response, deserialize_method)
198
+ end
199
+
200
+ promise
201
+ end
202
+
203
+ #
204
+ # Lists all application gateways in a resource group.
205
+ #
206
+ # @param resource_group_name [String] The name of the resource group.
207
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
208
+ # will be added to the HTTP request.
209
+ #
210
+ # @return [Array<ApplicationGateway>] operation results.
211
+ #
212
+ def list(resource_group_name, custom_headers = nil)
213
+ first_page = list_as_lazy(resource_group_name, custom_headers)
214
+ first_page.get_all_items
215
+ end
216
+
217
+ #
218
+ # Lists all application gateways in a resource group.
219
+ #
220
+ # @param resource_group_name [String] The name of the resource group.
172
221
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
173
222
  # will be added to the HTTP request.
174
223
  #
175
224
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
176
225
  #
177
- def get_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil)
178
- get_async(resource_group_name, application_gateway_name, custom_headers).value!
226
+ def list_with_http_info(resource_group_name, custom_headers = nil)
227
+ list_async(resource_group_name, custom_headers).value!
179
228
  end
180
229
 
181
230
  #
182
- # The Get ApplicationGateway operation retrieves information about the
183
- # specified application gateway.
231
+ # Lists all application gateways in a resource group.
184
232
  #
185
233
  # @param resource_group_name [String] The name of the resource group.
186
- # @param application_gateway_name [String] The name of the application gateway.
187
234
  # @param [Hash{String => String}] A hash of custom headers that will be added
188
235
  # to the HTTP request.
189
236
  #
190
237
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
191
238
  #
192
- def get_async(resource_group_name, application_gateway_name, custom_headers = nil)
239
+ def list_async(resource_group_name, custom_headers = nil)
193
240
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
194
- fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
195
241
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
196
242
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
197
243
 
@@ -201,13 +247,13 @@ module Azure::ARM::Network
201
247
  # Set Headers
202
248
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
203
249
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
204
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}'
250
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways'
205
251
 
206
252
  request_url = @base_url || @client.base_url
207
253
 
208
254
  options = {
209
255
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
210
- path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
256
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
211
257
  query_params: {'api-version' => @client.api_version},
212
258
  headers: request_headers.merge(custom_headers || {}),
213
259
  base_url: request_url
@@ -228,7 +274,7 @@ module Azure::ARM::Network
228
274
  if status_code == 200
229
275
  begin
230
276
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
231
- result_mapper = ApplicationGateway.mapper()
277
+ result_mapper = ApplicationGatewayListResult.mapper()
232
278
  result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
233
279
  rescue Exception => e
234
280
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -242,100 +288,39 @@ module Azure::ARM::Network
242
288
  end
243
289
 
244
290
  #
245
- # The Put ApplicationGateway operation creates/updates a ApplicationGateway
291
+ # Gets all the application gateways in a subscription.
246
292
  #
247
- # @param resource_group_name [String] The name of the resource group.
248
- # @param application_gateway_name [String] The name of the ApplicationGateway.
249
- # @param parameters [ApplicationGateway] Parameters supplied to the
250
- # create/delete ApplicationGateway operation
251
293
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
252
294
  # will be added to the HTTP request.
253
295
  #
254
- # @return [ApplicationGateway] operation results.
255
- #
256
- def create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers = nil)
257
- response = create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value!
258
- response.body unless response.nil?
259
- end
260
-
261
- #
262
- # @param resource_group_name [String] The name of the resource group.
263
- # @param application_gateway_name [String] The name of the ApplicationGateway.
264
- # @param parameters [ApplicationGateway] Parameters supplied to the
265
- # create/delete ApplicationGateway operation
266
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
267
- # will be added to the HTTP request.
268
- #
269
- # @return [Concurrent::Promise] promise which provides async access to http
270
- # response.
271
- #
272
- def create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers = nil)
273
- # Send request
274
- promise = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers)
275
-
276
- promise = promise.then do |response|
277
- # Defining deserialization method.
278
- deserialize_method = lambda do |parsed_response|
279
- result_mapper = ApplicationGateway.mapper()
280
- parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
281
- end
282
-
283
- # Waiting for response.
284
- @client.get_long_running_operation_result(response, deserialize_method)
285
- end
286
-
287
- promise
288
- end
289
-
290
- #
291
- # The Put ApplicationGateway operation creates/updates a ApplicationGateway
292
- #
293
- # @param resource_group_name [String] The name of the resource group.
294
- # @param application_gateway_name [String] The name of the ApplicationGateway.
295
- # @param parameters [ApplicationGateway] Parameters supplied to the
296
- # create/delete ApplicationGateway operation
297
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
298
- # will be added to the HTTP request.
299
- #
300
- # @return [ApplicationGateway] operation results.
296
+ # @return [Array<ApplicationGateway>] operation results.
301
297
  #
302
- def begin_create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers = nil)
303
- response = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value!
304
- response.body unless response.nil?
298
+ def list_all(custom_headers = nil)
299
+ first_page = list_all_as_lazy(custom_headers)
300
+ first_page.get_all_items
305
301
  end
306
302
 
307
303
  #
308
- # The Put ApplicationGateway operation creates/updates a ApplicationGateway
304
+ # Gets all the application gateways in a subscription.
309
305
  #
310
- # @param resource_group_name [String] The name of the resource group.
311
- # @param application_gateway_name [String] The name of the ApplicationGateway.
312
- # @param parameters [ApplicationGateway] Parameters supplied to the
313
- # create/delete ApplicationGateway operation
314
306
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
315
307
  # will be added to the HTTP request.
316
308
  #
317
309
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
318
310
  #
319
- def begin_create_or_update_with_http_info(resource_group_name, application_gateway_name, parameters, custom_headers = nil)
320
- begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value!
311
+ def list_all_with_http_info(custom_headers = nil)
312
+ list_all_async(custom_headers).value!
321
313
  end
322
314
 
323
315
  #
324
- # The Put ApplicationGateway operation creates/updates a ApplicationGateway
316
+ # Gets all the application gateways in a subscription.
325
317
  #
326
- # @param resource_group_name [String] The name of the resource group.
327
- # @param application_gateway_name [String] The name of the ApplicationGateway.
328
- # @param parameters [ApplicationGateway] Parameters supplied to the
329
- # create/delete ApplicationGateway operation
330
318
  # @param [Hash{String => String}] A hash of custom headers that will be added
331
319
  # to the HTTP request.
332
320
  #
333
321
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
334
322
  #
335
- def begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers = nil)
336
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
337
- fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
338
- fail ArgumentError, 'parameters is nil' if parameters.nil?
323
+ def list_all_async(custom_headers = nil)
339
324
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
340
325
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
341
326
 
@@ -345,53 +330,34 @@ module Azure::ARM::Network
345
330
  # Set Headers
346
331
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
347
332
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
348
-
349
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
350
-
351
- # Serialize Request
352
- request_mapper = ApplicationGateway.mapper()
353
- request_content = @client.serialize(request_mapper, parameters, 'parameters')
354
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
355
-
356
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}'
333
+ path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGateways'
357
334
 
358
335
  request_url = @base_url || @client.base_url
359
336
 
360
337
  options = {
361
338
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
362
- path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
339
+ path_params: {'subscriptionId' => @client.subscription_id},
363
340
  query_params: {'api-version' => @client.api_version},
364
- body: request_content,
365
341
  headers: request_headers.merge(custom_headers || {}),
366
342
  base_url: request_url
367
343
  }
368
- promise = @client.make_request_async(:put, path_template, options)
344
+ promise = @client.make_request_async(:get, path_template, options)
369
345
 
370
346
  promise = promise.then do |result|
371
347
  http_response = result.response
372
348
  status_code = http_response.status
373
349
  response_content = http_response.body
374
- unless status_code == 201 || status_code == 200
350
+ unless status_code == 200
375
351
  error_model = JSON.load(response_content)
376
352
  fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
377
353
  end
378
354
 
379
355
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
380
356
  # Deserialize Response
381
- if status_code == 201
382
- begin
383
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
384
- result_mapper = ApplicationGateway.mapper()
385
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
386
- rescue Exception => e
387
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
388
- end
389
- end
390
- # Deserialize Response
391
357
  if status_code == 200
392
358
  begin
393
359
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
394
- result_mapper = ApplicationGateway.mapper()
360
+ result_mapper = ApplicationGatewayListResult.mapper()
395
361
  result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
396
362
  rescue Exception => e
397
363
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -405,68 +371,169 @@ module Azure::ARM::Network
405
371
  end
406
372
 
407
373
  #
408
- # The List ApplicationGateway operation retrieves all the application gateways
409
- # in a resource group.
374
+ # Starts the specified application gateway.
410
375
  #
411
376
  # @param resource_group_name [String] The name of the resource group.
377
+ # @param application_gateway_name [String] The name of the application gateway.
412
378
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
413
379
  # will be added to the HTTP request.
414
380
  #
415
- # @return [ApplicationGatewayListResult] which provide lazy access to pages of
416
- # the response.
381
+ def start(resource_group_name, application_gateway_name, custom_headers = nil)
382
+ response = start_async(resource_group_name, application_gateway_name, custom_headers).value!
383
+ nil
384
+ end
385
+
417
386
  #
418
- def list_as_lazy(resource_group_name, custom_headers = nil)
419
- response = list_async(resource_group_name, custom_headers).value!
420
- unless response.nil?
421
- page = response.body
422
- page.next_method = Proc.new do |next_page_link|
423
- list_next_async(next_page_link, custom_headers)
387
+ # @param resource_group_name [String] The name of the resource group.
388
+ # @param application_gateway_name [String] The name of the application gateway.
389
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
390
+ # will be added to the HTTP request.
391
+ #
392
+ # @return [Concurrent::Promise] promise which provides async access to http
393
+ # response.
394
+ #
395
+ def start_async(resource_group_name, application_gateway_name, custom_headers = nil)
396
+ # Send request
397
+ promise = begin_start_async(resource_group_name, application_gateway_name, custom_headers)
398
+
399
+ promise = promise.then do |response|
400
+ # Defining deserialization method.
401
+ deserialize_method = lambda do |parsed_response|
424
402
  end
425
- page
403
+
404
+ # Waiting for response.
405
+ @client.get_long_running_operation_result(response, deserialize_method)
426
406
  end
407
+
408
+ promise
427
409
  end
428
410
 
429
411
  #
430
- # The List ApplicationGateway operation retrieves all the application gateways
431
- # in a resource group.
412
+ # Stops the specified application gateway in a resource group.
432
413
  #
433
414
  # @param resource_group_name [String] The name of the resource group.
415
+ # @param application_gateway_name [String] The name of the application gateway.
434
416
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
435
417
  # will be added to the HTTP request.
436
418
  #
437
- # @return [Array<ApplicationGateway>] operation results.
419
+ def stop(resource_group_name, application_gateway_name, custom_headers = nil)
420
+ response = stop_async(resource_group_name, application_gateway_name, custom_headers).value!
421
+ nil
422
+ end
423
+
438
424
  #
439
- def list(resource_group_name, custom_headers = nil)
440
- first_page = list_as_lazy(resource_group_name, custom_headers)
441
- first_page.get_all_items
425
+ # @param resource_group_name [String] The name of the resource group.
426
+ # @param application_gateway_name [String] The name of the application gateway.
427
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
428
+ # will be added to the HTTP request.
429
+ #
430
+ # @return [Concurrent::Promise] promise which provides async access to http
431
+ # response.
432
+ #
433
+ def stop_async(resource_group_name, application_gateway_name, custom_headers = nil)
434
+ # Send request
435
+ promise = begin_stop_async(resource_group_name, application_gateway_name, custom_headers)
436
+
437
+ promise = promise.then do |response|
438
+ # Defining deserialization method.
439
+ deserialize_method = lambda do |parsed_response|
440
+ end
441
+
442
+ # Waiting for response.
443
+ @client.get_long_running_operation_result(response, deserialize_method)
444
+ end
445
+
446
+ promise
442
447
  end
443
448
 
444
449
  #
445
- # The List ApplicationGateway operation retrieves all the application gateways
446
- # in a resource group.
450
+ # Gets the backend health of the specified application gateway in a resource
451
+ # group.
447
452
  #
448
453
  # @param resource_group_name [String] The name of the resource group.
454
+ # @param application_gateway_name [String] The name of the application gateway.
455
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
456
+ # referenced in backend health.
449
457
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
450
458
  # will be added to the HTTP request.
451
459
  #
452
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
460
+ # @return [ApplicationGatewayBackendHealth] operation results.
453
461
  #
454
- def list_with_http_info(resource_group_name, custom_headers = nil)
455
- list_async(resource_group_name, custom_headers).value!
462
+ def backend_health(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil)
463
+ response = backend_health_async(resource_group_name, application_gateway_name, expand, custom_headers).value!
464
+ response.body unless response.nil?
465
+ end
466
+
467
+ #
468
+ # @param resource_group_name [String] The name of the resource group.
469
+ # @param application_gateway_name [String] The name of the application gateway.
470
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
471
+ # referenced in backend health.
472
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
473
+ # will be added to the HTTP request.
474
+ #
475
+ # @return [Concurrent::Promise] promise which provides async access to http
476
+ # response.
477
+ #
478
+ def backend_health_async(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil)
479
+ # Send request
480
+ promise = begin_backend_health_async(resource_group_name, application_gateway_name, expand, custom_headers)
481
+
482
+ promise = promise.then do |response|
483
+ # Defining deserialization method.
484
+ deserialize_method = lambda do |parsed_response|
485
+ result_mapper = ApplicationGatewayBackendHealth.mapper()
486
+ parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
487
+ end
488
+
489
+ # Waiting for response.
490
+ @client.get_long_running_operation_result(response, deserialize_method)
491
+ end
492
+
493
+ promise
494
+ end
495
+
496
+ #
497
+ # Deletes the specified application gateway.
498
+ #
499
+ # @param resource_group_name [String] The name of the resource group.
500
+ # @param application_gateway_name [String] The name of the application gateway.
501
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
502
+ # will be added to the HTTP request.
503
+ #
504
+ #
505
+ def begin_delete(resource_group_name, application_gateway_name, custom_headers = nil)
506
+ response = begin_delete_async(resource_group_name, application_gateway_name, custom_headers).value!
507
+ nil
508
+ end
509
+
510
+ #
511
+ # Deletes the specified application gateway.
512
+ #
513
+ # @param resource_group_name [String] The name of the resource group.
514
+ # @param application_gateway_name [String] The name of the application gateway.
515
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
516
+ # will be added to the HTTP request.
517
+ #
518
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
519
+ #
520
+ def begin_delete_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil)
521
+ begin_delete_async(resource_group_name, application_gateway_name, custom_headers).value!
456
522
  end
457
523
 
458
524
  #
459
- # The List ApplicationGateway operation retrieves all the application gateways
460
- # in a resource group.
525
+ # Deletes the specified application gateway.
461
526
  #
462
527
  # @param resource_group_name [String] The name of the resource group.
528
+ # @param application_gateway_name [String] The name of the application gateway.
463
529
  # @param [Hash{String => String}] A hash of custom headers that will be added
464
530
  # to the HTTP request.
465
531
  #
466
532
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
467
533
  #
468
- def list_async(resource_group_name, custom_headers = nil)
534
+ def begin_delete_async(resource_group_name, application_gateway_name, custom_headers = nil)
469
535
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
536
+ fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
470
537
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
471
538
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
472
539
 
@@ -476,39 +543,29 @@ module Azure::ARM::Network
476
543
  # Set Headers
477
544
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
478
545
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
479
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways'
546
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}'
480
547
 
481
548
  request_url = @base_url || @client.base_url
482
549
 
483
550
  options = {
484
551
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
485
- path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
552
+ path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
486
553
  query_params: {'api-version' => @client.api_version},
487
554
  headers: request_headers.merge(custom_headers || {}),
488
555
  base_url: request_url
489
556
  }
490
- promise = @client.make_request_async(:get, path_template, options)
557
+ promise = @client.make_request_async(:delete, path_template, options)
491
558
 
492
559
  promise = promise.then do |result|
493
560
  http_response = result.response
494
561
  status_code = http_response.status
495
562
  response_content = http_response.body
496
- unless status_code == 200
563
+ unless status_code == 202 || status_code == 204 || status_code == 200
497
564
  error_model = JSON.load(response_content)
498
565
  fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
499
566
  end
500
567
 
501
568
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
502
- # Deserialize Response
503
- if status_code == 200
504
- begin
505
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
506
- result_mapper = ApplicationGatewayListResult.mapper()
507
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
508
- rescue Exception => e
509
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
510
- end
511
- end
512
569
 
513
570
  result
514
571
  end
@@ -517,63 +574,54 @@ module Azure::ARM::Network
517
574
  end
518
575
 
519
576
  #
520
- # The List ApplicationGateway operation retrieves all the application gateways
521
- # in a subscription.
522
- #
523
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
524
- # will be added to the HTTP request.
525
- #
526
- # @return [ApplicationGatewayListResult] which provide lazy access to pages of
527
- # the response.
528
- #
529
- def list_all_as_lazy(custom_headers = nil)
530
- response = list_all_async(custom_headers).value!
531
- unless response.nil?
532
- page = response.body
533
- page.next_method = Proc.new do |next_page_link|
534
- list_all_next_async(next_page_link, custom_headers)
535
- end
536
- page
537
- end
538
- end
539
-
540
- #
541
- # The List ApplicationGateway operation retrieves all the application gateways
542
- # in a subscription.
577
+ # Creates or updates the specified application gateway.
543
578
  #
579
+ # @param resource_group_name [String] The name of the resource group.
580
+ # @param application_gateway_name [String] The name of the application gateway.
581
+ # @param parameters [ApplicationGateway] Parameters supplied to the create or
582
+ # update application gateway operation.
544
583
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
545
584
  # will be added to the HTTP request.
546
585
  #
547
- # @return [Array<ApplicationGateway>] operation results.
586
+ # @return [ApplicationGateway] operation results.
548
587
  #
549
- def list_all(custom_headers = nil)
550
- first_page = list_all_as_lazy(custom_headers)
551
- first_page.get_all_items
588
+ def begin_create_or_update(resource_group_name, application_gateway_name, parameters, custom_headers = nil)
589
+ response = begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value!
590
+ response.body unless response.nil?
552
591
  end
553
592
 
554
593
  #
555
- # The List ApplicationGateway operation retrieves all the application gateways
556
- # in a subscription.
594
+ # Creates or updates the specified application gateway.
557
595
  #
596
+ # @param resource_group_name [String] The name of the resource group.
597
+ # @param application_gateway_name [String] The name of the application gateway.
598
+ # @param parameters [ApplicationGateway] Parameters supplied to the create or
599
+ # update application gateway operation.
558
600
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
559
601
  # will be added to the HTTP request.
560
602
  #
561
603
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
562
604
  #
563
- def list_all_with_http_info(custom_headers = nil)
564
- list_all_async(custom_headers).value!
605
+ def begin_create_or_update_with_http_info(resource_group_name, application_gateway_name, parameters, custom_headers = nil)
606
+ begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers).value!
565
607
  end
566
608
 
567
609
  #
568
- # The List ApplicationGateway operation retrieves all the application gateways
569
- # in a subscription.
610
+ # Creates or updates the specified application gateway.
570
611
  #
612
+ # @param resource_group_name [String] The name of the resource group.
613
+ # @param application_gateway_name [String] The name of the application gateway.
614
+ # @param parameters [ApplicationGateway] Parameters supplied to the create or
615
+ # update application gateway operation.
571
616
  # @param [Hash{String => String}] A hash of custom headers that will be added
572
617
  # to the HTTP request.
573
618
  #
574
619
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
575
620
  #
576
- def list_all_async(custom_headers = nil)
621
+ def begin_create_or_update_async(resource_group_name, application_gateway_name, parameters, custom_headers = nil)
622
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
623
+ fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
624
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
577
625
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
578
626
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
579
627
 
@@ -583,34 +631,53 @@ module Azure::ARM::Network
583
631
  # Set Headers
584
632
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
585
633
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
586
- path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGateways'
634
+
635
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
636
+
637
+ # Serialize Request
638
+ request_mapper = ApplicationGateway.mapper()
639
+ request_content = @client.serialize(request_mapper, parameters, 'parameters')
640
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
641
+
642
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}'
587
643
 
588
644
  request_url = @base_url || @client.base_url
589
645
 
590
646
  options = {
591
647
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
592
- path_params: {'subscriptionId' => @client.subscription_id},
648
+ path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
593
649
  query_params: {'api-version' => @client.api_version},
650
+ body: request_content,
594
651
  headers: request_headers.merge(custom_headers || {}),
595
652
  base_url: request_url
596
653
  }
597
- promise = @client.make_request_async(:get, path_template, options)
654
+ promise = @client.make_request_async(:put, path_template, options)
598
655
 
599
656
  promise = promise.then do |result|
600
657
  http_response = result.response
601
658
  status_code = http_response.status
602
659
  response_content = http_response.body
603
- unless status_code == 200
660
+ unless status_code == 201 || status_code == 200
604
661
  error_model = JSON.load(response_content)
605
662
  fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
606
663
  end
607
664
 
608
665
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
609
666
  # Deserialize Response
667
+ if status_code == 201
668
+ begin
669
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
670
+ result_mapper = ApplicationGateway.mapper()
671
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
672
+ rescue Exception => e
673
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
674
+ end
675
+ end
676
+ # Deserialize Response
610
677
  if status_code == 200
611
678
  begin
612
679
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
613
- result_mapper = ApplicationGatewayListResult.mapper()
680
+ result_mapper = ApplicationGateway.mapper()
614
681
  result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
615
682
  rescue Exception => e
616
683
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -624,47 +691,7 @@ module Azure::ARM::Network
624
691
  end
625
692
 
626
693
  #
627
- # The Start ApplicationGateway operation starts application gateway in the
628
- # specified resource group through Network resource provider.
629
- #
630
- # @param resource_group_name [String] The name of the resource group.
631
- # @param application_gateway_name [String] The name of the application gateway.
632
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
633
- # will be added to the HTTP request.
634
- #
635
- def start(resource_group_name, application_gateway_name, custom_headers = nil)
636
- response = start_async(resource_group_name, application_gateway_name, custom_headers).value!
637
- nil
638
- end
639
-
640
- #
641
- # @param resource_group_name [String] The name of the resource group.
642
- # @param application_gateway_name [String] The name of the application gateway.
643
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
644
- # will be added to the HTTP request.
645
- #
646
- # @return [Concurrent::Promise] promise which provides async access to http
647
- # response.
648
- #
649
- def start_async(resource_group_name, application_gateway_name, custom_headers = nil)
650
- # Send request
651
- promise = begin_start_async(resource_group_name, application_gateway_name, custom_headers)
652
-
653
- promise = promise.then do |response|
654
- # Defining deserialization method.
655
- deserialize_method = lambda do |parsed_response|
656
- end
657
-
658
- # Waiting for response.
659
- @client.get_long_running_operation_result(response, deserialize_method)
660
- end
661
-
662
- promise
663
- end
664
-
665
- #
666
- # The Start ApplicationGateway operation starts application gateway in the
667
- # specified resource group through Network resource provider.
694
+ # Starts the specified application gateway.
668
695
  #
669
696
  # @param resource_group_name [String] The name of the resource group.
670
697
  # @param application_gateway_name [String] The name of the application gateway.
@@ -678,8 +705,7 @@ module Azure::ARM::Network
678
705
  end
679
706
 
680
707
  #
681
- # The Start ApplicationGateway operation starts application gateway in the
682
- # specified resource group through Network resource provider.
708
+ # Starts the specified application gateway.
683
709
  #
684
710
  # @param resource_group_name [String] The name of the resource group.
685
711
  # @param application_gateway_name [String] The name of the application gateway.
@@ -693,8 +719,7 @@ module Azure::ARM::Network
693
719
  end
694
720
 
695
721
  #
696
- # The Start ApplicationGateway operation starts application gateway in the
697
- # specified resource group through Network resource provider.
722
+ # Starts the specified application gateway.
698
723
  #
699
724
  # @param resource_group_name [String] The name of the resource group.
700
725
  # @param application_gateway_name [String] The name of the application gateway.
@@ -746,86 +771,134 @@ module Azure::ARM::Network
746
771
  end
747
772
 
748
773
  #
749
- # The STOP ApplicationGateway operation stops application gateway in the
750
- # specified resource group through Network resource provider.
774
+ # Stops the specified application gateway in a resource group.
751
775
  #
752
776
  # @param resource_group_name [String] The name of the resource group.
753
777
  # @param application_gateway_name [String] The name of the application gateway.
754
778
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
755
779
  # will be added to the HTTP request.
756
780
  #
757
- def stop(resource_group_name, application_gateway_name, custom_headers = nil)
758
- response = stop_async(resource_group_name, application_gateway_name, custom_headers).value!
781
+ #
782
+ def begin_stop(resource_group_name, application_gateway_name, custom_headers = nil)
783
+ response = begin_stop_async(resource_group_name, application_gateway_name, custom_headers).value!
759
784
  nil
760
785
  end
761
786
 
787
+ #
788
+ # Stops the specified application gateway in a resource group.
762
789
  #
763
790
  # @param resource_group_name [String] The name of the resource group.
764
791
  # @param application_gateway_name [String] The name of the application gateway.
765
792
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
766
793
  # will be added to the HTTP request.
767
794
  #
768
- # @return [Concurrent::Promise] promise which provides async access to http
769
- # response.
795
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
770
796
  #
771
- def stop_async(resource_group_name, application_gateway_name, custom_headers = nil)
772
- # Send request
773
- promise = begin_stop_async(resource_group_name, application_gateway_name, custom_headers)
797
+ def begin_stop_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil)
798
+ begin_stop_async(resource_group_name, application_gateway_name, custom_headers).value!
799
+ end
774
800
 
775
- promise = promise.then do |response|
776
- # Defining deserialization method.
777
- deserialize_method = lambda do |parsed_response|
801
+ #
802
+ # Stops the specified application gateway in a resource group.
803
+ #
804
+ # @param resource_group_name [String] The name of the resource group.
805
+ # @param application_gateway_name [String] The name of the application gateway.
806
+ # @param [Hash{String => String}] A hash of custom headers that will be added
807
+ # to the HTTP request.
808
+ #
809
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
810
+ #
811
+ def begin_stop_async(resource_group_name, application_gateway_name, custom_headers = nil)
812
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
813
+ 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?
815
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
816
+
817
+
818
+ request_headers = {}
819
+
820
+ # Set Headers
821
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
822
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
823
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/stop'
824
+
825
+ request_url = @base_url || @client.base_url
826
+
827
+ options = {
828
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
829
+ path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
830
+ query_params: {'api-version' => @client.api_version},
831
+ headers: request_headers.merge(custom_headers || {}),
832
+ base_url: request_url
833
+ }
834
+ promise = @client.make_request_async(:post, path_template, options)
835
+
836
+ promise = promise.then do |result|
837
+ http_response = result.response
838
+ status_code = http_response.status
839
+ response_content = http_response.body
840
+ unless status_code == 200 || status_code == 202
841
+ error_model = JSON.load(response_content)
842
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
778
843
  end
779
844
 
780
- # Waiting for response.
781
- @client.get_long_running_operation_result(response, deserialize_method)
845
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
846
+
847
+ result
782
848
  end
783
849
 
784
- promise
850
+ promise.execute
785
851
  end
786
852
 
787
853
  #
788
- # The STOP ApplicationGateway operation stops application gateway in the
789
- # specified resource group through Network resource provider.
854
+ # Gets the backend health of the specified application gateway in a resource
855
+ # group.
790
856
  #
791
857
  # @param resource_group_name [String] The name of the resource group.
792
858
  # @param application_gateway_name [String] The name of the application gateway.
859
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
860
+ # referenced in backend health.
793
861
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
794
862
  # will be added to the HTTP request.
795
863
  #
864
+ # @return [ApplicationGatewayBackendHealth] operation results.
796
865
  #
797
- def begin_stop(resource_group_name, application_gateway_name, custom_headers = nil)
798
- response = begin_stop_async(resource_group_name, application_gateway_name, custom_headers).value!
799
- nil
866
+ def begin_backend_health(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil)
867
+ response = begin_backend_health_async(resource_group_name, application_gateway_name, expand, custom_headers).value!
868
+ response.body unless response.nil?
800
869
  end
801
870
 
802
871
  #
803
- # The STOP ApplicationGateway operation stops application gateway in the
804
- # specified resource group through Network resource provider.
872
+ # Gets the backend health of the specified application gateway in a resource
873
+ # group.
805
874
  #
806
875
  # @param resource_group_name [String] The name of the resource group.
807
876
  # @param application_gateway_name [String] The name of the application gateway.
877
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
878
+ # referenced in backend health.
808
879
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
809
880
  # will be added to the HTTP request.
810
881
  #
811
882
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
812
883
  #
813
- def begin_stop_with_http_info(resource_group_name, application_gateway_name, custom_headers = nil)
814
- begin_stop_async(resource_group_name, application_gateway_name, custom_headers).value!
884
+ def begin_backend_health_with_http_info(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil)
885
+ begin_backend_health_async(resource_group_name, application_gateway_name, expand, custom_headers).value!
815
886
  end
816
887
 
817
888
  #
818
- # The STOP ApplicationGateway operation stops application gateway in the
819
- # specified resource group through Network resource provider.
889
+ # Gets the backend health of the specified application gateway in a resource
890
+ # group.
820
891
  #
821
892
  # @param resource_group_name [String] The name of the resource group.
822
893
  # @param application_gateway_name [String] The name of the application gateway.
894
+ # @param expand [String] Expands BackendAddressPool and BackendHttpSettings
895
+ # referenced in backend health.
823
896
  # @param [Hash{String => String}] A hash of custom headers that will be added
824
897
  # to the HTTP request.
825
898
  #
826
899
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
827
900
  #
828
- def begin_stop_async(resource_group_name, application_gateway_name, custom_headers = nil)
901
+ def begin_backend_health_async(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil)
829
902
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
830
903
  fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
831
904
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -837,14 +910,14 @@ module Azure::ARM::Network
837
910
  # Set Headers
838
911
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
839
912
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
840
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/stop'
913
+ path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendhealth'
841
914
 
842
915
  request_url = @base_url || @client.base_url
843
916
 
844
917
  options = {
845
918
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
846
919
  path_params: {'resourceGroupName' => resource_group_name,'applicationGatewayName' => application_gateway_name,'subscriptionId' => @client.subscription_id},
847
- query_params: {'api-version' => @client.api_version},
920
+ query_params: {'api-version' => @client.api_version,'$expand' => expand},
848
921
  headers: request_headers.merge(custom_headers || {}),
849
922
  base_url: request_url
850
923
  }
@@ -860,6 +933,16 @@ module Azure::ARM::Network
860
933
  end
861
934
 
862
935
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
936
+ # Deserialize Response
937
+ if status_code == 200
938
+ begin
939
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
940
+ result_mapper = ApplicationGatewayBackendHealth.mapper()
941
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
942
+ rescue Exception => e
943
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
944
+ end
945
+ end
863
946
 
864
947
  result
865
948
  end
@@ -868,11 +951,10 @@ module Azure::ARM::Network
868
951
  end
869
952
 
870
953
  #
871
- # The List ApplicationGateway operation retrieves all the application gateways
872
- # in a resource group.
954
+ # Lists all application gateways in a resource group.
873
955
  #
874
- # @param next_page_link [String] The NextLink from the previous successful
875
- # call to List operation.
956
+ # @param next_page_link [String] The NextLink from the previous successful call
957
+ # to List operation.
876
958
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
877
959
  # will be added to the HTTP request.
878
960
  #
@@ -884,11 +966,10 @@ module Azure::ARM::Network
884
966
  end
885
967
 
886
968
  #
887
- # The List ApplicationGateway operation retrieves all the application gateways
888
- # in a resource group.
969
+ # Lists all application gateways in a resource group.
889
970
  #
890
- # @param next_page_link [String] The NextLink from the previous successful
891
- # call to List operation.
971
+ # @param next_page_link [String] The NextLink from the previous successful call
972
+ # to List operation.
892
973
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
893
974
  # will be added to the HTTP request.
894
975
  #
@@ -899,11 +980,10 @@ module Azure::ARM::Network
899
980
  end
900
981
 
901
982
  #
902
- # The List ApplicationGateway operation retrieves all the application gateways
903
- # in a resource group.
983
+ # Lists all application gateways in a resource group.
904
984
  #
905
- # @param next_page_link [String] The NextLink from the previous successful
906
- # call to List operation.
985
+ # @param next_page_link [String] The NextLink from the previous successful call
986
+ # to List operation.
907
987
  # @param [Hash{String => String}] A hash of custom headers that will be added
908
988
  # to the HTTP request.
909
989
  #
@@ -958,11 +1038,10 @@ module Azure::ARM::Network
958
1038
  end
959
1039
 
960
1040
  #
961
- # The List ApplicationGateway operation retrieves all the application gateways
962
- # in a subscription.
1041
+ # Gets all the application gateways in a subscription.
963
1042
  #
964
- # @param next_page_link [String] The NextLink from the previous successful
965
- # call to List operation.
1043
+ # @param next_page_link [String] The NextLink from the previous successful call
1044
+ # to List operation.
966
1045
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
967
1046
  # will be added to the HTTP request.
968
1047
  #
@@ -974,11 +1053,10 @@ module Azure::ARM::Network
974
1053
  end
975
1054
 
976
1055
  #
977
- # The List ApplicationGateway operation retrieves all the application gateways
978
- # in a subscription.
1056
+ # Gets all the application gateways in a subscription.
979
1057
  #
980
- # @param next_page_link [String] The NextLink from the previous successful
981
- # call to List operation.
1058
+ # @param next_page_link [String] The NextLink from the previous successful call
1059
+ # to List operation.
982
1060
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
983
1061
  # will be added to the HTTP request.
984
1062
  #
@@ -989,11 +1067,10 @@ module Azure::ARM::Network
989
1067
  end
990
1068
 
991
1069
  #
992
- # The List ApplicationGateway operation retrieves all the application gateways
993
- # in a subscription.
1070
+ # Gets all the application gateways in a subscription.
994
1071
  #
995
- # @param next_page_link [String] The NextLink from the previous successful
996
- # call to List operation.
1072
+ # @param next_page_link [String] The NextLink from the previous successful call
1073
+ # to List operation.
997
1074
  # @param [Hash{String => String}] A hash of custom headers that will be added
998
1075
  # to the HTTP request.
999
1076
  #
@@ -1047,5 +1124,46 @@ module Azure::ARM::Network
1047
1124
  promise.execute
1048
1125
  end
1049
1126
 
1127
+ #
1128
+ # Lists all application gateways in a resource group.
1129
+ #
1130
+ # @param resource_group_name [String] The name of the resource group.
1131
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1132
+ # will be added to the HTTP request.
1133
+ #
1134
+ # @return [ApplicationGatewayListResult] which provide lazy access to pages of
1135
+ # the response.
1136
+ #
1137
+ def list_as_lazy(resource_group_name, custom_headers = nil)
1138
+ response = list_async(resource_group_name, custom_headers).value!
1139
+ unless response.nil?
1140
+ page = response.body
1141
+ page.next_method = Proc.new do |next_page_link|
1142
+ list_next_async(next_page_link, custom_headers)
1143
+ end
1144
+ page
1145
+ end
1146
+ end
1147
+
1148
+ #
1149
+ # Gets all the application gateways in a subscription.
1150
+ #
1151
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1152
+ # will be added to the HTTP request.
1153
+ #
1154
+ # @return [ApplicationGatewayListResult] which provide lazy access to pages of
1155
+ # the response.
1156
+ #
1157
+ def list_all_as_lazy(custom_headers = nil)
1158
+ response = list_all_async(custom_headers).value!
1159
+ unless response.nil?
1160
+ page = response.body
1161
+ page.next_method = Proc.new do |next_page_link|
1162
+ list_all_next_async(next_page_link, custom_headers)
1163
+ end
1164
+ page
1165
+ end
1166
+ end
1167
+
1050
1168
  end
1051
1169
  end