azure_mgmt_network 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1191) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-05-01-preview/generated/azure_mgmt_network/application_gateways.rb +76 -69
  3. data/lib/2015-05-01-preview/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +41 -38
  4. data/lib/2015-05-01-preview/generated/azure_mgmt_network/express_route_circuit_peerings.rb +41 -38
  5. data/lib/2015-05-01-preview/generated/azure_mgmt_network/express_route_circuits.rb +101 -90
  6. data/lib/2015-05-01-preview/generated/azure_mgmt_network/express_route_service_providers.rb +15 -13
  7. data/lib/2015-05-01-preview/generated/azure_mgmt_network/load_balancers.rb +56 -51
  8. data/lib/2015-05-01-preview/generated/azure_mgmt_network/local_network_gateways.rb +41 -38
  9. data/lib/2015-05-01-preview/generated/azure_mgmt_network/models/usages_list_result.rb +11 -0
  10. data/lib/2015-05-01-preview/generated/azure_mgmt_network/network_interfaces.rb +92 -82
  11. data/lib/2015-05-01-preview/generated/azure_mgmt_network/network_management_client.rb +10 -6
  12. data/lib/2015-05-01-preview/generated/azure_mgmt_network/network_security_groups.rb +56 -51
  13. data/lib/2015-05-01-preview/generated/azure_mgmt_network/public_ip_addresses.rb +56 -51
  14. data/lib/2015-05-01-preview/generated/azure_mgmt_network/route_tables.rb +56 -51
  15. data/lib/2015-05-01-preview/generated/azure_mgmt_network/routes.rb +41 -38
  16. data/lib/2015-05-01-preview/generated/azure_mgmt_network/security_rules.rb +41 -38
  17. data/lib/2015-05-01-preview/generated/azure_mgmt_network/subnets.rb +41 -38
  18. data/lib/2015-05-01-preview/generated/azure_mgmt_network/usages.rb +15 -13
  19. data/lib/2015-05-01-preview/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +67 -65
  20. data/lib/2015-05-01-preview/generated/azure_mgmt_network/virtual_network_gateways.rb +51 -49
  21. data/lib/2015-05-01-preview/generated/azure_mgmt_network/virtual_networks.rb +56 -51
  22. data/lib/2015-06-15/generated/azure_mgmt_network/application_gateways.rb +76 -69
  23. data/lib/2015-06-15/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +41 -38
  24. data/lib/2015-06-15/generated/azure_mgmt_network/express_route_circuit_peerings.rb +41 -38
  25. data/lib/2015-06-15/generated/azure_mgmt_network/express_route_circuits.rb +101 -90
  26. data/lib/2015-06-15/generated/azure_mgmt_network/express_route_service_providers.rb +15 -13
  27. data/lib/2015-06-15/generated/azure_mgmt_network/load_balancers.rb +56 -51
  28. data/lib/2015-06-15/generated/azure_mgmt_network/local_network_gateways.rb +41 -38
  29. data/lib/2015-06-15/generated/azure_mgmt_network/models/usages_list_result.rb +11 -0
  30. data/lib/2015-06-15/generated/azure_mgmt_network/network_interfaces.rb +92 -82
  31. data/lib/2015-06-15/generated/azure_mgmt_network/network_management_client.rb +10 -6
  32. data/lib/2015-06-15/generated/azure_mgmt_network/network_security_groups.rb +56 -51
  33. data/lib/2015-06-15/generated/azure_mgmt_network/public_ipaddresses.rb +56 -51
  34. data/lib/2015-06-15/generated/azure_mgmt_network/route_tables.rb +56 -51
  35. data/lib/2015-06-15/generated/azure_mgmt_network/routes.rb +41 -38
  36. data/lib/2015-06-15/generated/azure_mgmt_network/security_rules.rb +41 -38
  37. data/lib/2015-06-15/generated/azure_mgmt_network/subnets.rb +41 -38
  38. data/lib/2015-06-15/generated/azure_mgmt_network/usages.rb +15 -13
  39. data/lib/2015-06-15/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +67 -65
  40. data/lib/2015-06-15/generated/azure_mgmt_network/virtual_network_gateways.rb +57 -56
  41. data/lib/2015-06-15/generated/azure_mgmt_network/virtual_networks.rb +56 -51
  42. data/lib/2016-03-30/generated/azure_mgmt_network/application_gateways.rb +76 -69
  43. data/lib/2016-03-30/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +41 -38
  44. data/lib/2016-03-30/generated/azure_mgmt_network/express_route_circuit_peerings.rb +41 -38
  45. data/lib/2016-03-30/generated/azure_mgmt_network/express_route_circuits.rb +98 -88
  46. data/lib/2016-03-30/generated/azure_mgmt_network/express_route_service_providers.rb +15 -13
  47. data/lib/2016-03-30/generated/azure_mgmt_network/load_balancers.rb +56 -51
  48. data/lib/2016-03-30/generated/azure_mgmt_network/local_network_gateways.rb +41 -38
  49. data/lib/2016-03-30/generated/azure_mgmt_network/network_interfaces.rb +92 -82
  50. data/lib/2016-03-30/generated/azure_mgmt_network/network_management_client.rb +10 -6
  51. data/lib/2016-03-30/generated/azure_mgmt_network/network_security_groups.rb +56 -51
  52. data/lib/2016-03-30/generated/azure_mgmt_network/public_ipaddresses.rb +56 -51
  53. data/lib/2016-03-30/generated/azure_mgmt_network/route_tables.rb +56 -51
  54. data/lib/2016-03-30/generated/azure_mgmt_network/routes.rb +41 -38
  55. data/lib/2016-03-30/generated/azure_mgmt_network/security_rules.rb +41 -38
  56. data/lib/2016-03-30/generated/azure_mgmt_network/subnets.rb +41 -38
  57. data/lib/2016-03-30/generated/azure_mgmt_network/usages.rb +6 -5
  58. data/lib/2016-03-30/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +67 -65
  59. data/lib/2016-03-30/generated/azure_mgmt_network/virtual_network_gateways.rb +57 -56
  60. data/lib/2016-03-30/generated/azure_mgmt_network/virtual_networks.rb +56 -51
  61. data/lib/2016-06-01/generated/azure_mgmt_network/application_gateways.rb +76 -69
  62. data/lib/2016-06-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +41 -38
  63. data/lib/2016-06-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb +41 -38
  64. data/lib/2016-06-01/generated/azure_mgmt_network/express_route_circuits.rb +98 -88
  65. data/lib/2016-06-01/generated/azure_mgmt_network/express_route_service_providers.rb +15 -13
  66. data/lib/2016-06-01/generated/azure_mgmt_network/load_balancers.rb +56 -51
  67. data/lib/2016-06-01/generated/azure_mgmt_network/local_network_gateways.rb +41 -38
  68. data/lib/2016-06-01/generated/azure_mgmt_network/network_interfaces.rb +112 -100
  69. data/lib/2016-06-01/generated/azure_mgmt_network/network_management_client.rb +10 -6
  70. data/lib/2016-06-01/generated/azure_mgmt_network/network_security_groups.rb +56 -51
  71. data/lib/2016-06-01/generated/azure_mgmt_network/public_ipaddresses.rb +56 -51
  72. data/lib/2016-06-01/generated/azure_mgmt_network/route_tables.rb +56 -51
  73. data/lib/2016-06-01/generated/azure_mgmt_network/routes.rb +41 -38
  74. data/lib/2016-06-01/generated/azure_mgmt_network/security_rules.rb +41 -38
  75. data/lib/2016-06-01/generated/azure_mgmt_network/subnets.rb +41 -38
  76. data/lib/2016-06-01/generated/azure_mgmt_network/usages.rb +15 -13
  77. data/lib/2016-06-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +67 -65
  78. data/lib/2016-06-01/generated/azure_mgmt_network/virtual_network_gateways.rb +57 -56
  79. data/lib/2016-06-01/generated/azure_mgmt_network/virtual_network_peerings.rb +41 -38
  80. data/lib/2016-06-01/generated/azure_mgmt_network/virtual_networks.rb +62 -56
  81. data/lib/2016-09-01/generated/azure_mgmt_network/application_gateways.rb +86 -78
  82. data/lib/2016-09-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +41 -38
  83. data/lib/2016-09-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb +41 -38
  84. data/lib/2016-09-01/generated/azure_mgmt_network/express_route_circuits.rb +98 -88
  85. data/lib/2016-09-01/generated/azure_mgmt_network/express_route_service_providers.rb +15 -13
  86. data/lib/2016-09-01/generated/azure_mgmt_network/load_balancers.rb +56 -51
  87. data/lib/2016-09-01/generated/azure_mgmt_network/local_network_gateways.rb +41 -38
  88. data/lib/2016-09-01/generated/azure_mgmt_network/network_interfaces.rb +112 -100
  89. data/lib/2016-09-01/generated/azure_mgmt_network/network_management_client.rb +10 -6
  90. data/lib/2016-09-01/generated/azure_mgmt_network/network_security_groups.rb +56 -51
  91. data/lib/2016-09-01/generated/azure_mgmt_network/network_watchers.rb +110 -115
  92. data/lib/2016-09-01/generated/azure_mgmt_network/packet_captures.rb +52 -48
  93. data/lib/2016-09-01/generated/azure_mgmt_network/public_ipaddresses.rb +56 -51
  94. data/lib/2016-09-01/generated/azure_mgmt_network/route_tables.rb +56 -51
  95. data/lib/2016-09-01/generated/azure_mgmt_network/routes.rb +41 -38
  96. data/lib/2016-09-01/generated/azure_mgmt_network/security_rules.rb +41 -38
  97. data/lib/2016-09-01/generated/azure_mgmt_network/subnets.rb +41 -38
  98. data/lib/2016-09-01/generated/azure_mgmt_network/usages.rb +15 -13
  99. data/lib/2016-09-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +67 -65
  100. data/lib/2016-09-01/generated/azure_mgmt_network/virtual_network_gateways.rb +87 -81
  101. data/lib/2016-09-01/generated/azure_mgmt_network/virtual_network_peerings.rb +41 -38
  102. data/lib/2016-09-01/generated/azure_mgmt_network/virtual_networks.rb +62 -56
  103. data/lib/2016-12-01/generated/azure_mgmt_network/application_gateways.rb +86 -78
  104. data/lib/2016-12-01/generated/azure_mgmt_network/bgp_service_communities.rb +15 -13
  105. data/lib/2016-12-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +41 -38
  106. data/lib/2016-12-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb +41 -38
  107. data/lib/2016-12-01/generated/azure_mgmt_network/express_route_circuits.rb +98 -88
  108. data/lib/2016-12-01/generated/azure_mgmt_network/express_route_service_providers.rb +15 -13
  109. data/lib/2016-12-01/generated/azure_mgmt_network/load_balancers.rb +56 -51
  110. data/lib/2016-12-01/generated/azure_mgmt_network/local_network_gateways.rb +41 -38
  111. data/lib/2016-12-01/generated/azure_mgmt_network/network_interfaces.rb +112 -100
  112. data/lib/2016-12-01/generated/azure_mgmt_network/network_management_client.rb +10 -6
  113. data/lib/2016-12-01/generated/azure_mgmt_network/network_security_groups.rb +56 -51
  114. data/lib/2016-12-01/generated/azure_mgmt_network/network_watchers.rb +110 -115
  115. data/lib/2016-12-01/generated/azure_mgmt_network/packet_captures.rb +52 -48
  116. data/lib/2016-12-01/generated/azure_mgmt_network/public_ipaddresses.rb +56 -51
  117. data/lib/2016-12-01/generated/azure_mgmt_network/route_filter_rules.rb +51 -49
  118. data/lib/2016-12-01/generated/azure_mgmt_network/route_filters.rb +66 -62
  119. data/lib/2016-12-01/generated/azure_mgmt_network/route_tables.rb +56 -51
  120. data/lib/2016-12-01/generated/azure_mgmt_network/routes.rb +41 -38
  121. data/lib/2016-12-01/generated/azure_mgmt_network/security_rules.rb +41 -38
  122. data/lib/2016-12-01/generated/azure_mgmt_network/subnets.rb +41 -38
  123. data/lib/2016-12-01/generated/azure_mgmt_network/usages.rb +15 -13
  124. data/lib/2016-12-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +67 -65
  125. data/lib/2016-12-01/generated/azure_mgmt_network/virtual_network_gateways.rb +87 -81
  126. data/lib/2016-12-01/generated/azure_mgmt_network/virtual_network_peerings.rb +41 -38
  127. data/lib/2016-12-01/generated/azure_mgmt_network/virtual_networks.rb +62 -56
  128. data/lib/2017-03-01/generated/azure_mgmt_network/application_gateways.rb +92 -83
  129. data/lib/2017-03-01/generated/azure_mgmt_network/bgp_service_communities.rb +15 -13
  130. data/lib/2017-03-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +41 -38
  131. data/lib/2017-03-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb +41 -38
  132. data/lib/2017-03-01/generated/azure_mgmt_network/express_route_circuits.rb +98 -88
  133. data/lib/2017-03-01/generated/azure_mgmt_network/express_route_service_providers.rb +15 -13
  134. data/lib/2017-03-01/generated/azure_mgmt_network/load_balancers.rb +56 -51
  135. data/lib/2017-03-01/generated/azure_mgmt_network/local_network_gateways.rb +41 -38
  136. data/lib/2017-03-01/generated/azure_mgmt_network/network_interfaces.rb +76 -69
  137. data/lib/2017-03-01/generated/azure_mgmt_network/network_management_client.rb +10 -6
  138. data/lib/2017-03-01/generated/azure_mgmt_network/network_security_groups.rb +56 -51
  139. data/lib/2017-03-01/generated/azure_mgmt_network/network_watchers.rb +120 -126
  140. data/lib/2017-03-01/generated/azure_mgmt_network/packet_captures.rb +52 -48
  141. data/lib/2017-03-01/generated/azure_mgmt_network/public_ipaddresses.rb +56 -51
  142. data/lib/2017-03-01/generated/azure_mgmt_network/route_filter_rules.rb +51 -49
  143. data/lib/2017-03-01/generated/azure_mgmt_network/route_filters.rb +66 -62
  144. data/lib/2017-03-01/generated/azure_mgmt_network/route_tables.rb +56 -51
  145. data/lib/2017-03-01/generated/azure_mgmt_network/routes.rb +41 -38
  146. data/lib/2017-03-01/generated/azure_mgmt_network/security_rules.rb +41 -38
  147. data/lib/2017-03-01/generated/azure_mgmt_network/subnets.rb +41 -38
  148. data/lib/2017-03-01/generated/azure_mgmt_network/usages.rb +15 -13
  149. data/lib/2017-03-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +67 -65
  150. data/lib/2017-03-01/generated/azure_mgmt_network/virtual_network_gateways.rb +87 -81
  151. data/lib/2017-03-01/generated/azure_mgmt_network/virtual_network_peerings.rb +41 -38
  152. data/lib/2017-03-01/generated/azure_mgmt_network/virtual_networks.rb +77 -69
  153. data/lib/2017-03-30/generated/azure_mgmt_network.rb +6 -5
  154. data/lib/2017-03-30/generated/azure_mgmt_network/models/network_interface_ipconfiguration_list_result.rb +102 -0
  155. data/lib/2017-03-30/generated/azure_mgmt_network/network_interfaces.rb +376 -31
  156. data/lib/2017-03-30/generated/azure_mgmt_network/network_management_client.rb +4 -1
  157. data/lib/2017-03-30/generated/azure_mgmt_network/public_ipaddresses.rb +36 -31
  158. data/lib/2017-09-01/generated/azure_mgmt_network.rb +95 -85
  159. data/lib/2017-09-01/generated/azure_mgmt_network/application_gateways.rb +271 -106
  160. data/lib/2017-09-01/generated/azure_mgmt_network/application_security_groups.rb +56 -51
  161. data/lib/2017-09-01/generated/azure_mgmt_network/available_endpoint_services.rb +15 -13
  162. data/lib/2017-09-01/generated/azure_mgmt_network/bgp_service_communities.rb +15 -13
  163. data/lib/2017-09-01/generated/azure_mgmt_network/default_security_rules.rb +21 -18
  164. data/lib/2017-09-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +41 -38
  165. data/lib/2017-09-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb +41 -38
  166. data/lib/2017-09-01/generated/azure_mgmt_network/express_route_circuits.rb +250 -88
  167. data/lib/2017-09-01/generated/azure_mgmt_network/express_route_service_providers.rb +15 -13
  168. data/lib/2017-09-01/generated/azure_mgmt_network/inbound_nat_rules.rb +41 -38
  169. data/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb +21 -18
  170. data/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb +21 -18
  171. data/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb +21 -18
  172. data/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_network_interfaces.rb +15 -13
  173. data/lib/2017-09-01/generated/azure_mgmt_network/load_balancer_probes.rb +21 -18
  174. data/lib/2017-09-01/generated/azure_mgmt_network/load_balancers.rb +208 -51
  175. data/lib/2017-09-01/generated/azure_mgmt_network/local_network_gateways.rb +199 -38
  176. data/lib/2017-09-01/generated/azure_mgmt_network/models/availability.rb +68 -0
  177. data/lib/2017-09-01/generated/azure_mgmt_network/models/dimension.rb +68 -0
  178. data/lib/2017-09-01/generated/azure_mgmt_network/models/log_specification.rb +68 -0
  179. data/lib/2017-09-01/generated/azure_mgmt_network/models/metric_specification.rb +207 -0
  180. data/lib/2017-09-01/generated/azure_mgmt_network/models/operation.rb +83 -0
  181. data/lib/2017-09-01/generated/azure_mgmt_network/models/operation_display.rb +79 -0
  182. data/lib/2017-09-01/generated/azure_mgmt_network/models/operation_list_result.rb +101 -0
  183. data/lib/2017-09-01/generated/azure_mgmt_network/models/operation_properties_format_service_specification.rb +76 -0
  184. data/lib/2017-09-01/generated/azure_mgmt_network/models/tags_object.rb +54 -0
  185. data/lib/2017-09-01/generated/azure_mgmt_network/models/virtual_network_peering.rb +13 -0
  186. data/lib/2017-09-01/generated/azure_mgmt_network/network_interface_ipconfigurations.rb +21 -18
  187. data/lib/2017-09-01/generated/azure_mgmt_network/network_interface_load_balancers.rb +15 -13
  188. data/lib/2017-09-01/generated/azure_mgmt_network/network_interfaces.rb +228 -69
  189. data/lib/2017-09-01/generated/azure_mgmt_network/network_management_client.rb +14 -6
  190. data/lib/2017-09-01/generated/azure_mgmt_network/network_security_groups.rb +213 -51
  191. data/lib/2017-09-01/generated/azure_mgmt_network/network_watchers.rb +246 -148
  192. data/lib/2017-09-01/generated/azure_mgmt_network/operations.rb +218 -0
  193. data/lib/2017-09-01/generated/azure_mgmt_network/packet_captures.rb +52 -48
  194. data/lib/2017-09-01/generated/azure_mgmt_network/public_ipaddresses.rb +208 -51
  195. data/lib/2017-09-01/generated/azure_mgmt_network/route_filter_rules.rb +51 -49
  196. data/lib/2017-09-01/generated/azure_mgmt_network/route_filters.rb +66 -62
  197. data/lib/2017-09-01/generated/azure_mgmt_network/route_tables.rb +208 -51
  198. data/lib/2017-09-01/generated/azure_mgmt_network/routes.rb +41 -38
  199. data/lib/2017-09-01/generated/azure_mgmt_network/security_rules.rb +41 -38
  200. data/lib/2017-09-01/generated/azure_mgmt_network/subnets.rb +41 -38
  201. data/lib/2017-09-01/generated/azure_mgmt_network/usages.rb +15 -13
  202. data/lib/2017-09-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +224 -65
  203. data/lib/2017-09-01/generated/azure_mgmt_network/virtual_network_gateways.rb +295 -130
  204. data/lib/2017-09-01/generated/azure_mgmt_network/virtual_network_peerings.rb +41 -38
  205. data/lib/2017-09-01/generated/azure_mgmt_network/virtual_networks.rb +229 -69
  206. data/lib/2017-10-01/generated/azure_mgmt_network.rb +349 -0
  207. data/lib/2017-10-01/generated/azure_mgmt_network/application_gateways.rb +1776 -0
  208. data/lib/2017-10-01/generated/azure_mgmt_network/application_security_groups.rb +803 -0
  209. data/lib/2017-10-01/generated/azure_mgmt_network/available_endpoint_services.rb +225 -0
  210. data/lib/2017-10-01/generated/azure_mgmt_network/bgp_service_communities.rb +220 -0
  211. data/lib/2017-10-01/generated/azure_mgmt_network/connection_monitors.rb +976 -0
  212. data/lib/2017-10-01/generated/azure_mgmt_network/default_security_rules.rb +336 -0
  213. data/lib/2017-10-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +624 -0
  214. data/lib/2017-10-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb +619 -0
  215. data/lib/2017-10-01/generated/azure_mgmt_network/express_route_circuits.rb +1580 -0
  216. data/lib/2017-10-01/generated/azure_mgmt_network/express_route_service_providers.rb +220 -0
  217. data/lib/2017-10-01/generated/azure_mgmt_network/inbound_nat_rules.rb +622 -0
  218. data/lib/2017-10-01/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb +329 -0
  219. data/lib/2017-10-01/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb +329 -0
  220. data/lib/2017-10-01/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb +326 -0
  221. data/lib/2017-10-01/generated/azure_mgmt_network/load_balancer_network_interfaces.rb +230 -0
  222. data/lib/2017-10-01/generated/azure_mgmt_network/load_balancer_probes.rb +326 -0
  223. data/lib/2017-10-01/generated/azure_mgmt_network/load_balancers.rb +945 -0
  224. data/lib/2017-10-01/generated/azure_mgmt_network/local_network_gateways.rb +772 -0
  225. data/lib/2017-10-01/generated/azure_mgmt_network/models/access.rb +16 -0
  226. data/lib/2017-10-01/generated/azure_mgmt_network/models/address_space.rb +56 -0
  227. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway.rb +438 -0
  228. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb +102 -0
  229. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_available_ssl_options.rb +159 -0
  230. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_available_ssl_predefined_policies.rb +102 -0
  231. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_available_waf_rule_sets_result.rb +57 -0
  232. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_backend_address.rb +57 -0
  233. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +131 -0
  234. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_backend_health.rb +55 -0
  235. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb +70 -0
  236. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb +69 -0
  237. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb +72 -0
  238. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_backend_health_server_health.rb +19 -0
  239. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +241 -0
  240. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb +64 -0
  241. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +16 -0
  242. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_firewall_disabled_rule_group.rb +67 -0
  243. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_firewall_mode.rb +16 -0
  244. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule.rb +57 -0
  245. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule_group.rb +79 -0
  246. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule_set.rb +141 -0
  247. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +139 -0
  248. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb +101 -0
  249. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_http_listener.rb +163 -0
  250. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +104 -0
  251. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_list_result.rb +99 -0
  252. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_operational_state.rb +18 -0
  253. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_path_rule.rb +148 -0
  254. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_probe.rb +201 -0
  255. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_probe_health_response_match.rb +68 -0
  256. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_protocol.rb +16 -0
  257. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb +200 -0
  258. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_redirect_type.rb +18 -0
  259. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +166 -0
  260. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +16 -0
  261. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_sku.rb +71 -0
  262. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_sku_name.rb +19 -0
  263. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +126 -0
  264. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +39 -0
  265. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb +113 -0
  266. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy_name.rb +17 -0
  267. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy_type.rb +16 -0
  268. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_ssl_predefined_policy.rb +87 -0
  269. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb +17 -0
  270. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_tier.rb +16 -0
  271. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb +151 -0
  272. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb +104 -0
  273. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_security_group.rb +127 -0
  274. data/lib/2017-10-01/generated/azure_mgmt_network/models/application_security_group_list_result.rb +100 -0
  275. data/lib/2017-10-01/generated/azure_mgmt_network/models/association_type.rb +16 -0
  276. data/lib/2017-10-01/generated/azure_mgmt_network/models/authentication_method.rb +16 -0
  277. data/lib/2017-10-01/generated/azure_mgmt_network/models/authorization_list_result.rb +100 -0
  278. data/lib/2017-10-01/generated/azure_mgmt_network/models/authorization_use_status.rb +16 -0
  279. data/lib/2017-10-01/generated/azure_mgmt_network/models/availability.rb +68 -0
  280. data/lib/2017-10-01/generated/azure_mgmt_network/models/available_providers_list.rb +56 -0
  281. data/lib/2017-10-01/generated/azure_mgmt_network/models/available_providers_list_city.rb +65 -0
  282. data/lib/2017-10-01/generated/azure_mgmt_network/models/available_providers_list_country.rb +86 -0
  283. data/lib/2017-10-01/generated/azure_mgmt_network/models/available_providers_list_parameters.rb +88 -0
  284. data/lib/2017-10-01/generated/azure_mgmt_network/models/available_providers_list_state.rb +86 -0
  285. data/lib/2017-10-01/generated/azure_mgmt_network/models/azure_async_operation_result.rb +67 -0
  286. data/lib/2017-10-01/generated/azure_mgmt_network/models/azure_reachability_report.rb +80 -0
  287. data/lib/2017-10-01/generated/azure_mgmt_network/models/azure_reachability_report_item.rb +78 -0
  288. data/lib/2017-10-01/generated/azure_mgmt_network/models/azure_reachability_report_latency_info.rb +62 -0
  289. data/lib/2017-10-01/generated/azure_mgmt_network/models/azure_reachability_report_location.rb +68 -0
  290. data/lib/2017-10-01/generated/azure_mgmt_network/models/azure_reachability_report_parameters.rb +107 -0
  291. data/lib/2017-10-01/generated/azure_mgmt_network/models/backend_address_pool.rb +137 -0
  292. data/lib/2017-10-01/generated/azure_mgmt_network/models/bgp_peer_state.rb +19 -0
  293. data/lib/2017-10-01/generated/azure_mgmt_network/models/bgp_peer_status.rb +132 -0
  294. data/lib/2017-10-01/generated/azure_mgmt_network/models/bgp_peer_status_list_result.rb +55 -0
  295. data/lib/2017-10-01/generated/azure_mgmt_network/models/bgp_service_community.rb +116 -0
  296. data/lib/2017-10-01/generated/azure_mgmt_network/models/bgp_service_community_list_result.rb +99 -0
  297. data/lib/2017-10-01/generated/azure_mgmt_network/models/bgp_settings.rb +70 -0
  298. data/lib/2017-10-01/generated/azure_mgmt_network/models/bgpcommunity.rb +112 -0
  299. data/lib/2017-10-01/generated/azure_mgmt_network/models/connection_monitor.rb +114 -0
  300. data/lib/2017-10-01/generated/azure_mgmt_network/models/connection_monitor_destination.rb +70 -0
  301. data/lib/2017-10-01/generated/azure_mgmt_network/models/connection_monitor_list_result.rb +56 -0
  302. data/lib/2017-10-01/generated/azure_mgmt_network/models/connection_monitor_parameters.rb +84 -0
  303. data/lib/2017-10-01/generated/azure_mgmt_network/models/connection_monitor_query_result.rb +56 -0
  304. data/lib/2017-10-01/generated/azure_mgmt_network/models/connection_monitor_result.rb +199 -0
  305. data/lib/2017-10-01/generated/azure_mgmt_network/models/connection_monitor_source.rb +58 -0
  306. data/lib/2017-10-01/generated/azure_mgmt_network/models/connection_reset_shared_key.rb +51 -0
  307. data/lib/2017-10-01/generated/azure_mgmt_network/models/connection_shared_key.rb +46 -0
  308. data/lib/2017-10-01/generated/azure_mgmt_network/models/connection_state.rb +17 -0
  309. data/lib/2017-10-01/generated/azure_mgmt_network/models/connection_state_snapshot.rb +103 -0
  310. data/lib/2017-10-01/generated/azure_mgmt_network/models/connection_status.rb +18 -0
  311. data/lib/2017-10-01/generated/azure_mgmt_network/models/connectivity_destination.rb +70 -0
  312. data/lib/2017-10-01/generated/azure_mgmt_network/models/connectivity_hop.rb +124 -0
  313. data/lib/2017-10-01/generated/azure_mgmt_network/models/connectivity_information.rb +130 -0
  314. data/lib/2017-10-01/generated/azure_mgmt_network/models/connectivity_issue.rb +106 -0
  315. data/lib/2017-10-01/generated/azure_mgmt_network/models/connectivity_parameters.rb +59 -0
  316. data/lib/2017-10-01/generated/azure_mgmt_network/models/connectivity_source.rb +59 -0
  317. data/lib/2017-10-01/generated/azure_mgmt_network/models/dh_group.rb +22 -0
  318. data/lib/2017-10-01/generated/azure_mgmt_network/models/dhcp_options.rb +56 -0
  319. data/lib/2017-10-01/generated/azure_mgmt_network/models/dimension.rb +68 -0
  320. data/lib/2017-10-01/generated/azure_mgmt_network/models/direction.rb +16 -0
  321. data/lib/2017-10-01/generated/azure_mgmt_network/models/dns_name_availability_result.rb +46 -0
  322. data/lib/2017-10-01/generated/azure_mgmt_network/models/effective_network_security_group.rb +109 -0
  323. data/lib/2017-10-01/generated/azure_mgmt_network/models/effective_network_security_group_association.rb +59 -0
  324. data/lib/2017-10-01/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +68 -0
  325. data/lib/2017-10-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb +263 -0
  326. data/lib/2017-10-01/generated/azure_mgmt_network/models/effective_route.rb +128 -0
  327. data/lib/2017-10-01/generated/azure_mgmt_network/models/effective_route_list_result.rb +67 -0
  328. data/lib/2017-10-01/generated/azure_mgmt_network/models/effective_route_source.rb +18 -0
  329. data/lib/2017-10-01/generated/azure_mgmt_network/models/effective_route_state.rb +16 -0
  330. data/lib/2017-10-01/generated/azure_mgmt_network/models/effective_security_rule_protocol.rb +17 -0
  331. data/lib/2017-10-01/generated/azure_mgmt_network/models/endpoint_service_result.rb +67 -0
  332. data/lib/2017-10-01/generated/azure_mgmt_network/models/endpoint_services_list_result.rb +99 -0
  333. data/lib/2017-10-01/generated/azure_mgmt_network/models/error.rb +100 -0
  334. data/lib/2017-10-01/generated/azure_mgmt_network/models/error_details.rb +69 -0
  335. data/lib/2017-10-01/generated/azure_mgmt_network/models/evaluation_state.rb +17 -0
  336. data/lib/2017-10-01/generated/azure_mgmt_network/models/express_route_circuit.rb +246 -0
  337. data/lib/2017-10-01/generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb +79 -0
  338. data/lib/2017-10-01/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb +104 -0
  339. data/lib/2017-10-01/generated/azure_mgmt_network/models/express_route_circuit_list_result.rb +99 -0
  340. data/lib/2017-10-01/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +272 -0
  341. data/lib/2017-10-01/generated/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +18 -0
  342. data/lib/2017-10-01/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb +122 -0
  343. data/lib/2017-10-01/generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +100 -0
  344. data/lib/2017-10-01/generated/azure_mgmt_network/models/express_route_circuit_peering_state.rb +16 -0
  345. data/lib/2017-10-01/generated/azure_mgmt_network/models/express_route_circuit_peering_type.rb +17 -0
  346. data/lib/2017-10-01/generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb +90 -0
  347. data/lib/2017-10-01/generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +93 -0
  348. data/lib/2017-10-01/generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +69 -0
  349. data/lib/2017-10-01/generated/azure_mgmt_network/models/express_route_circuit_sku.rb +72 -0
  350. data/lib/2017-10-01/generated/azure_mgmt_network/models/express_route_circuit_sku_family.rb +16 -0
  351. data/lib/2017-10-01/generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +16 -0
  352. data/lib/2017-10-01/generated/azure_mgmt_network/models/express_route_circuit_stats.rb +79 -0
  353. data/lib/2017-10-01/generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +67 -0
  354. data/lib/2017-10-01/generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +69 -0
  355. data/lib/2017-10-01/generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb +69 -0
  356. data/lib/2017-10-01/generated/azure_mgmt_network/models/express_route_service_provider.rb +136 -0
  357. data/lib/2017-10-01/generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +58 -0
  358. data/lib/2017-10-01/generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb +99 -0
  359. data/lib/2017-10-01/generated/azure_mgmt_network/models/flow_log_information.rb +81 -0
  360. data/lib/2017-10-01/generated/azure_mgmt_network/models/flow_log_status_parameters.rb +47 -0
  361. data/lib/2017-10-01/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb +235 -0
  362. data/lib/2017-10-01/generated/azure_mgmt_network/models/gateway_route.rb +119 -0
  363. data/lib/2017-10-01/generated/azure_mgmt_network/models/gateway_route_list_result.rb +55 -0
  364. data/lib/2017-10-01/generated/azure_mgmt_network/models/ike_encryption.rb +19 -0
  365. data/lib/2017-10-01/generated/azure_mgmt_network/models/ike_integrity.rb +18 -0
  366. data/lib/2017-10-01/generated/azure_mgmt_network/models/inbound_nat_pool.rb +141 -0
  367. data/lib/2017-10-01/generated/azure_mgmt_network/models/inbound_nat_rule.rb +172 -0
  368. data/lib/2017-10-01/generated/azure_mgmt_network/models/inbound_nat_rule_list_result.rb +100 -0
  369. data/lib/2017-10-01/generated/azure_mgmt_network/models/ipaddress_availability_result.rb +66 -0
  370. data/lib/2017-10-01/generated/azure_mgmt_network/models/ipallocation_method.rb +16 -0
  371. data/lib/2017-10-01/generated/azure_mgmt_network/models/ipconfiguration.rb +127 -0
  372. data/lib/2017-10-01/generated/azure_mgmt_network/models/ipsec_encryption.rb +23 -0
  373. data/lib/2017-10-01/generated/azure_mgmt_network/models/ipsec_integrity.rb +20 -0
  374. data/lib/2017-10-01/generated/azure_mgmt_network/models/ipsec_policy.rb +135 -0
  375. data/lib/2017-10-01/generated/azure_mgmt_network/models/ipv6express_route_circuit_peering_config.rb +95 -0
  376. data/lib/2017-10-01/generated/azure_mgmt_network/models/ipversion.rb +16 -0
  377. data/lib/2017-10-01/generated/azure_mgmt_network/models/issue_type.rb +23 -0
  378. data/lib/2017-10-01/generated/azure_mgmt_network/models/load_balancer.rb +290 -0
  379. data/lib/2017-10-01/generated/azure_mgmt_network/models/load_balancer_backend_address_pool_list_result.rb +101 -0
  380. data/lib/2017-10-01/generated/azure_mgmt_network/models/load_balancer_frontend_ipconfiguration_list_result.rb +102 -0
  381. data/lib/2017-10-01/generated/azure_mgmt_network/models/load_balancer_list_result.rb +100 -0
  382. data/lib/2017-10-01/generated/azure_mgmt_network/models/load_balancer_load_balancing_rule_list_result.rb +101 -0
  383. data/lib/2017-10-01/generated/azure_mgmt_network/models/load_balancer_probe_list_result.rb +99 -0
  384. data/lib/2017-10-01/generated/azure_mgmt_network/models/load_balancer_sku.rb +47 -0
  385. data/lib/2017-10-01/generated/azure_mgmt_network/models/load_balancer_sku_name.rb +16 -0
  386. data/lib/2017-10-01/generated/azure_mgmt_network/models/load_balancing_rule.rb +209 -0
  387. data/lib/2017-10-01/generated/azure_mgmt_network/models/load_distribution.rb +17 -0
  388. data/lib/2017-10-01/generated/azure_mgmt_network/models/local_network_gateway.rb +157 -0
  389. data/lib/2017-10-01/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb +100 -0
  390. data/lib/2017-10-01/generated/azure_mgmt_network/models/log_specification.rb +68 -0
  391. data/lib/2017-10-01/generated/azure_mgmt_network/models/metric_specification.rb +207 -0
  392. data/lib/2017-10-01/generated/azure_mgmt_network/models/network_interface.rb +227 -0
  393. data/lib/2017-10-01/generated/azure_mgmt_network/models/network_interface_association.rb +67 -0
  394. data/lib/2017-10-01/generated/azure_mgmt_network/models/network_interface_dns_settings.rb +117 -0
  395. data/lib/2017-10-01/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb +239 -0
  396. data/lib/2017-10-01/generated/azure_mgmt_network/models/network_interface_ipconfiguration_list_result.rb +102 -0
  397. data/lib/2017-10-01/generated/azure_mgmt_network/models/network_interface_list_result.rb +100 -0
  398. data/lib/2017-10-01/generated/azure_mgmt_network/models/network_interface_load_balancer_list_result.rb +100 -0
  399. data/lib/2017-10-01/generated/azure_mgmt_network/models/network_operation_status.rb +17 -0
  400. data/lib/2017-10-01/generated/azure_mgmt_network/models/network_security_group.rb +206 -0
  401. data/lib/2017-10-01/generated/azure_mgmt_network/models/network_security_group_list_result.rb +99 -0
  402. data/lib/2017-10-01/generated/azure_mgmt_network/models/network_watcher.rb +110 -0
  403. data/lib/2017-10-01/generated/azure_mgmt_network/models/network_watcher_list_result.rb +55 -0
  404. data/lib/2017-10-01/generated/azure_mgmt_network/models/next_hop_parameters.rb +82 -0
  405. data/lib/2017-10-01/generated/azure_mgmt_network/models/next_hop_result.rb +73 -0
  406. data/lib/2017-10-01/generated/azure_mgmt_network/models/next_hop_type.rb +20 -0
  407. data/lib/2017-10-01/generated/azure_mgmt_network/models/operation.rb +83 -0
  408. data/lib/2017-10-01/generated/azure_mgmt_network/models/operation_display.rb +79 -0
  409. data/lib/2017-10-01/generated/azure_mgmt_network/models/operation_list_result.rb +101 -0
  410. data/lib/2017-10-01/generated/azure_mgmt_network/models/operation_properties_format_service_specification.rb +76 -0
  411. data/lib/2017-10-01/generated/azure_mgmt_network/models/origin.rb +17 -0
  412. data/lib/2017-10-01/generated/azure_mgmt_network/models/outbound_nat_rule.rb +124 -0
  413. data/lib/2017-10-01/generated/azure_mgmt_network/models/packet_capture.rb +118 -0
  414. data/lib/2017-10-01/generated/azure_mgmt_network/models/packet_capture_filter.rb +107 -0
  415. data/lib/2017-10-01/generated/azure_mgmt_network/models/packet_capture_list_result.rb +56 -0
  416. data/lib/2017-10-01/generated/azure_mgmt_network/models/packet_capture_parameters.rb +118 -0
  417. data/lib/2017-10-01/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb +111 -0
  418. data/lib/2017-10-01/generated/azure_mgmt_network/models/packet_capture_result.rb +168 -0
  419. data/lib/2017-10-01/generated/azure_mgmt_network/models/packet_capture_storage_location.rb +74 -0
  420. data/lib/2017-10-01/generated/azure_mgmt_network/models/patch_route_filter.rb +155 -0
  421. data/lib/2017-10-01/generated/azure_mgmt_network/models/patch_route_filter_rule.rb +147 -0
  422. data/lib/2017-10-01/generated/azure_mgmt_network/models/pc_error.rb +19 -0
  423. data/lib/2017-10-01/generated/azure_mgmt_network/models/pc_protocol.rb +17 -0
  424. data/lib/2017-10-01/generated/azure_mgmt_network/models/pc_status.rb +19 -0
  425. data/lib/2017-10-01/generated/azure_mgmt_network/models/pfs_group.rb +21 -0
  426. data/lib/2017-10-01/generated/azure_mgmt_network/models/probe.rb +170 -0
  427. data/lib/2017-10-01/generated/azure_mgmt_network/models/probe_protocol.rb +16 -0
  428. data/lib/2017-10-01/generated/azure_mgmt_network/models/processor_architecture.rb +16 -0
  429. data/lib/2017-10-01/generated/azure_mgmt_network/models/protocol.rb +16 -0
  430. data/lib/2017-10-01/generated/azure_mgmt_network/models/provisioning_state.rb +18 -0
  431. data/lib/2017-10-01/generated/azure_mgmt_network/models/public_ipaddress.rb +227 -0
  432. data/lib/2017-10-01/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +77 -0
  433. data/lib/2017-10-01/generated/azure_mgmt_network/models/public_ipaddress_list_result.rb +99 -0
  434. data/lib/2017-10-01/generated/azure_mgmt_network/models/public_ipaddress_sku.rb +47 -0
  435. data/lib/2017-10-01/generated/azure_mgmt_network/models/public_ipaddress_sku_name.rb +16 -0
  436. data/lib/2017-10-01/generated/azure_mgmt_network/models/query_troubleshooting_parameters.rb +47 -0
  437. data/lib/2017-10-01/generated/azure_mgmt_network/models/resource.rb +100 -0
  438. data/lib/2017-10-01/generated/azure_mgmt_network/models/resource_navigation_link.rb +103 -0
  439. data/lib/2017-10-01/generated/azure_mgmt_network/models/retention_policy_parameters.rb +61 -0
  440. data/lib/2017-10-01/generated/azure_mgmt_network/models/route.rb +118 -0
  441. data/lib/2017-10-01/generated/azure_mgmt_network/models/route_filter.rb +153 -0
  442. data/lib/2017-10-01/generated/azure_mgmt_network/models/route_filter_list_result.rb +99 -0
  443. data/lib/2017-10-01/generated/azure_mgmt_network/models/route_filter_rule.rb +157 -0
  444. data/lib/2017-10-01/generated/azure_mgmt_network/models/route_filter_rule_list_result.rb +99 -0
  445. data/lib/2017-10-01/generated/azure_mgmt_network/models/route_list_result.rb +98 -0
  446. data/lib/2017-10-01/generated/azure_mgmt_network/models/route_next_hop_type.rb +19 -0
  447. data/lib/2017-10-01/generated/azure_mgmt_network/models/route_table.rb +163 -0
  448. data/lib/2017-10-01/generated/azure_mgmt_network/models/route_table_list_result.rb +99 -0
  449. data/lib/2017-10-01/generated/azure_mgmt_network/models/security_group_network_interface.rb +58 -0
  450. data/lib/2017-10-01/generated/azure_mgmt_network/models/security_group_view_parameters.rb +46 -0
  451. data/lib/2017-10-01/generated/azure_mgmt_network/models/security_group_view_result.rb +56 -0
  452. data/lib/2017-10-01/generated/azure_mgmt_network/models/security_rule.rb +315 -0
  453. data/lib/2017-10-01/generated/azure_mgmt_network/models/security_rule_access.rb +16 -0
  454. data/lib/2017-10-01/generated/azure_mgmt_network/models/security_rule_associations.rb +101 -0
  455. data/lib/2017-10-01/generated/azure_mgmt_network/models/security_rule_direction.rb +16 -0
  456. data/lib/2017-10-01/generated/azure_mgmt_network/models/security_rule_list_result.rb +100 -0
  457. data/lib/2017-10-01/generated/azure_mgmt_network/models/security_rule_protocol.rb +17 -0
  458. data/lib/2017-10-01/generated/azure_mgmt_network/models/service_endpoint_properties_format.rb +76 -0
  459. data/lib/2017-10-01/generated/azure_mgmt_network/models/service_provider_provisioning_state.rb +18 -0
  460. data/lib/2017-10-01/generated/azure_mgmt_network/models/severity.rb +16 -0
  461. data/lib/2017-10-01/generated/azure_mgmt_network/models/sub_resource.rb +46 -0
  462. data/lib/2017-10-01/generated/azure_mgmt_network/models/subnet.rb +178 -0
  463. data/lib/2017-10-01/generated/azure_mgmt_network/models/subnet_association.rb +67 -0
  464. data/lib/2017-10-01/generated/azure_mgmt_network/models/subnet_list_result.rb +99 -0
  465. data/lib/2017-10-01/generated/azure_mgmt_network/models/tags_object.rb +54 -0
  466. data/lib/2017-10-01/generated/azure_mgmt_network/models/topology.rb +92 -0
  467. data/lib/2017-10-01/generated/azure_mgmt_network/models/topology_association.rb +71 -0
  468. data/lib/2017-10-01/generated/azure_mgmt_network/models/topology_parameters.rb +71 -0
  469. data/lib/2017-10-01/generated/azure_mgmt_network/models/topology_resource.rb +89 -0
  470. data/lib/2017-10-01/generated/azure_mgmt_network/models/transport_protocol.rb +17 -0
  471. data/lib/2017-10-01/generated/azure_mgmt_network/models/troubleshooting_details.rb +100 -0
  472. data/lib/2017-10-01/generated/azure_mgmt_network/models/troubleshooting_parameters.rb +70 -0
  473. data/lib/2017-10-01/generated/azure_mgmt_network/models/troubleshooting_recommended_actions.rb +81 -0
  474. data/lib/2017-10-01/generated/azure_mgmt_network/models/troubleshooting_result.rb +89 -0
  475. data/lib/2017-10-01/generated/azure_mgmt_network/models/tunnel_connection_health.rb +98 -0
  476. data/lib/2017-10-01/generated/azure_mgmt_network/models/usage.rb +95 -0
  477. data/lib/2017-10-01/generated/azure_mgmt_network/models/usage_name.rb +57 -0
  478. data/lib/2017-10-01/generated/azure_mgmt_network/models/usages_list_result.rb +98 -0
  479. data/lib/2017-10-01/generated/azure_mgmt_network/models/verification_ipflow_parameters.rb +133 -0
  480. data/lib/2017-10-01/generated/azure_mgmt_network/models/verification_ipflow_result.rb +59 -0
  481. data/lib/2017-10-01/generated/azure_mgmt_network/models/virtual_network.rb +212 -0
  482. data/lib/2017-10-01/generated/azure_mgmt_network/models/virtual_network_connection_gateway_reference.rb +47 -0
  483. data/lib/2017-10-01/generated/azure_mgmt_network/models/virtual_network_gateway.rb +246 -0
  484. data/lib/2017-10-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb +325 -0
  485. data/lib/2017-10-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_entity.rb +326 -0
  486. data/lib/2017-10-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +103 -0
  487. data/lib/2017-10-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +18 -0
  488. data/lib/2017-10-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +18 -0
  489. data/lib/2017-10-01/generated/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +117 -0
  490. data/lib/2017-10-01/generated/azure_mgmt_network/models/virtual_network_gateway_list_connections_result.rb +104 -0
  491. data/lib/2017-10-01/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +100 -0
  492. data/lib/2017-10-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb +72 -0
  493. data/lib/2017-10-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +21 -0
  494. data/lib/2017-10-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +21 -0
  495. data/lib/2017-10-01/generated/azure_mgmt_network/models/virtual_network_gateway_type.rb +16 -0
  496. data/lib/2017-10-01/generated/azure_mgmt_network/models/virtual_network_list_result.rb +99 -0
  497. data/lib/2017-10-01/generated/azure_mgmt_network/models/virtual_network_list_usage_result.rb +99 -0
  498. data/lib/2017-10-01/generated/azure_mgmt_network/models/virtual_network_peering.rb +171 -0
  499. data/lib/2017-10-01/generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb +100 -0
  500. data/lib/2017-10-01/generated/azure_mgmt_network/models/virtual_network_peering_state.rb +17 -0
  501. data/lib/2017-10-01/generated/azure_mgmt_network/models/virtual_network_usage.rb +97 -0
  502. data/lib/2017-10-01/generated/azure_mgmt_network/models/virtual_network_usage_name.rb +59 -0
  503. data/lib/2017-10-01/generated/azure_mgmt_network/models/vpn_client_configuration.rb +134 -0
  504. data/lib/2017-10-01/generated/azure_mgmt_network/models/vpn_client_parameters.rb +96 -0
  505. data/lib/2017-10-01/generated/azure_mgmt_network/models/vpn_client_protocol.rb +16 -0
  506. data/lib/2017-10-01/generated/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +92 -0
  507. data/lib/2017-10-01/generated/azure_mgmt_network/models/vpn_client_root_certificate.rb +92 -0
  508. data/lib/2017-10-01/generated/azure_mgmt_network/models/vpn_device_script_parameters.rb +68 -0
  509. data/lib/2017-10-01/generated/azure_mgmt_network/models/vpn_type.rb +16 -0
  510. data/lib/2017-10-01/generated/azure_mgmt_network/module_definition.rb +9 -0
  511. data/lib/2017-10-01/generated/azure_mgmt_network/network_interface_ipconfigurations.rb +326 -0
  512. data/lib/2017-10-01/generated/azure_mgmt_network/network_interface_load_balancers.rb +230 -0
  513. data/lib/2017-10-01/generated/azure_mgmt_network/network_interfaces.rb +1213 -0
  514. data/lib/2017-10-01/generated/azure_mgmt_network/network_management_client.rb +380 -0
  515. data/lib/2017-10-01/generated/azure_mgmt_network/network_security_groups.rb +963 -0
  516. data/lib/2017-10-01/generated/azure_mgmt_network/network_watchers.rb +2435 -0
  517. data/lib/2017-10-01/generated/azure_mgmt_network/operations.rb +218 -0
  518. data/lib/2017-10-01/generated/azure_mgmt_network/packet_captures.rb +787 -0
  519. data/lib/2017-10-01/generated/azure_mgmt_network/public_ipaddresses.rb +945 -0
  520. data/lib/2017-10-01/generated/azure_mgmt_network/route_filter_rules.rb +777 -0
  521. data/lib/2017-10-01/generated/azure_mgmt_network/route_filters.rb +948 -0
  522. data/lib/2017-10-01/generated/azure_mgmt_network/route_tables.rb +945 -0
  523. data/lib/2017-10-01/generated/azure_mgmt_network/routes.rb +618 -0
  524. data/lib/2017-10-01/generated/azure_mgmt_network/security_rules.rb +636 -0
  525. data/lib/2017-10-01/generated/azure_mgmt_network/subnets.rb +622 -0
  526. data/lib/2017-10-01/generated/azure_mgmt_network/usages.rb +226 -0
  527. data/lib/2017-10-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1234 -0
  528. data/lib/2017-10-01/generated/azure_mgmt_network/virtual_network_gateways.rb +2295 -0
  529. data/lib/2017-10-01/generated/azure_mgmt_network/virtual_network_peerings.rb +627 -0
  530. data/lib/2017-10-01/generated/azure_mgmt_network/virtual_networks.rb +1242 -0
  531. data/lib/2017-11-01/generated/azure_mgmt_network.rb +350 -0
  532. data/lib/2017-11-01/generated/azure_mgmt_network/application_gateways.rb +1776 -0
  533. data/lib/2017-11-01/generated/azure_mgmt_network/application_security_groups.rb +803 -0
  534. data/lib/2017-11-01/generated/azure_mgmt_network/available_endpoint_services.rb +225 -0
  535. data/lib/2017-11-01/generated/azure_mgmt_network/bgp_service_communities.rb +220 -0
  536. data/lib/2017-11-01/generated/azure_mgmt_network/connection_monitors.rb +976 -0
  537. data/lib/2017-11-01/generated/azure_mgmt_network/default_security_rules.rb +336 -0
  538. data/lib/2017-11-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +624 -0
  539. data/lib/2017-11-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb +619 -0
  540. data/lib/2017-11-01/generated/azure_mgmt_network/express_route_circuits.rb +1580 -0
  541. data/lib/2017-11-01/generated/azure_mgmt_network/express_route_service_providers.rb +220 -0
  542. data/lib/2017-11-01/generated/azure_mgmt_network/inbound_nat_rules.rb +622 -0
  543. data/lib/2017-11-01/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb +329 -0
  544. data/lib/2017-11-01/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb +329 -0
  545. data/lib/2017-11-01/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb +326 -0
  546. data/lib/2017-11-01/generated/azure_mgmt_network/load_balancer_network_interfaces.rb +230 -0
  547. data/lib/2017-11-01/generated/azure_mgmt_network/load_balancer_probes.rb +326 -0
  548. data/lib/2017-11-01/generated/azure_mgmt_network/load_balancers.rb +945 -0
  549. data/lib/2017-11-01/generated/azure_mgmt_network/local_network_gateways.rb +772 -0
  550. data/lib/2017-11-01/generated/azure_mgmt_network/models/access.rb +16 -0
  551. data/lib/2017-11-01/generated/azure_mgmt_network/models/address_space.rb +56 -0
  552. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway.rb +438 -0
  553. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb +102 -0
  554. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_available_ssl_options.rb +159 -0
  555. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_available_ssl_predefined_policies.rb +102 -0
  556. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_available_waf_rule_sets_result.rb +57 -0
  557. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_backend_address.rb +57 -0
  558. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +131 -0
  559. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_backend_health.rb +55 -0
  560. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb +70 -0
  561. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb +69 -0
  562. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb +72 -0
  563. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_backend_health_server_health.rb +19 -0
  564. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +241 -0
  565. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb +64 -0
  566. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +16 -0
  567. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_firewall_disabled_rule_group.rb +67 -0
  568. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_firewall_mode.rb +16 -0
  569. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule.rb +57 -0
  570. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule_group.rb +79 -0
  571. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule_set.rb +141 -0
  572. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +139 -0
  573. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb +101 -0
  574. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_http_listener.rb +163 -0
  575. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +104 -0
  576. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_list_result.rb +99 -0
  577. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_operational_state.rb +18 -0
  578. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_path_rule.rb +148 -0
  579. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_probe.rb +201 -0
  580. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_probe_health_response_match.rb +68 -0
  581. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_protocol.rb +16 -0
  582. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb +200 -0
  583. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_redirect_type.rb +18 -0
  584. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +166 -0
  585. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +16 -0
  586. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_sku.rb +71 -0
  587. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_sku_name.rb +19 -0
  588. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +126 -0
  589. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +39 -0
  590. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb +113 -0
  591. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy_name.rb +17 -0
  592. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy_type.rb +16 -0
  593. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_ssl_predefined_policy.rb +87 -0
  594. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb +17 -0
  595. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_tier.rb +16 -0
  596. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb +151 -0
  597. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb +104 -0
  598. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_security_group.rb +127 -0
  599. data/lib/2017-11-01/generated/azure_mgmt_network/models/application_security_group_list_result.rb +100 -0
  600. data/lib/2017-11-01/generated/azure_mgmt_network/models/association_type.rb +16 -0
  601. data/lib/2017-11-01/generated/azure_mgmt_network/models/authentication_method.rb +16 -0
  602. data/lib/2017-11-01/generated/azure_mgmt_network/models/authorization_list_result.rb +100 -0
  603. data/lib/2017-11-01/generated/azure_mgmt_network/models/authorization_use_status.rb +16 -0
  604. data/lib/2017-11-01/generated/azure_mgmt_network/models/availability.rb +68 -0
  605. data/lib/2017-11-01/generated/azure_mgmt_network/models/available_providers_list.rb +56 -0
  606. data/lib/2017-11-01/generated/azure_mgmt_network/models/available_providers_list_city.rb +65 -0
  607. data/lib/2017-11-01/generated/azure_mgmt_network/models/available_providers_list_country.rb +86 -0
  608. data/lib/2017-11-01/generated/azure_mgmt_network/models/available_providers_list_parameters.rb +88 -0
  609. data/lib/2017-11-01/generated/azure_mgmt_network/models/available_providers_list_state.rb +86 -0
  610. data/lib/2017-11-01/generated/azure_mgmt_network/models/azure_async_operation_result.rb +67 -0
  611. data/lib/2017-11-01/generated/azure_mgmt_network/models/azure_reachability_report.rb +80 -0
  612. data/lib/2017-11-01/generated/azure_mgmt_network/models/azure_reachability_report_item.rb +78 -0
  613. data/lib/2017-11-01/generated/azure_mgmt_network/models/azure_reachability_report_latency_info.rb +62 -0
  614. data/lib/2017-11-01/generated/azure_mgmt_network/models/azure_reachability_report_location.rb +68 -0
  615. data/lib/2017-11-01/generated/azure_mgmt_network/models/azure_reachability_report_parameters.rb +107 -0
  616. data/lib/2017-11-01/generated/azure_mgmt_network/models/backend_address_pool.rb +137 -0
  617. data/lib/2017-11-01/generated/azure_mgmt_network/models/bgp_peer_state.rb +19 -0
  618. data/lib/2017-11-01/generated/azure_mgmt_network/models/bgp_peer_status.rb +132 -0
  619. data/lib/2017-11-01/generated/azure_mgmt_network/models/bgp_peer_status_list_result.rb +55 -0
  620. data/lib/2017-11-01/generated/azure_mgmt_network/models/bgp_service_community.rb +116 -0
  621. data/lib/2017-11-01/generated/azure_mgmt_network/models/bgp_service_community_list_result.rb +99 -0
  622. data/lib/2017-11-01/generated/azure_mgmt_network/models/bgp_settings.rb +70 -0
  623. data/lib/2017-11-01/generated/azure_mgmt_network/models/bgpcommunity.rb +112 -0
  624. data/lib/2017-11-01/generated/azure_mgmt_network/models/connection_monitor.rb +114 -0
  625. data/lib/2017-11-01/generated/azure_mgmt_network/models/connection_monitor_destination.rb +70 -0
  626. data/lib/2017-11-01/generated/azure_mgmt_network/models/connection_monitor_list_result.rb +56 -0
  627. data/lib/2017-11-01/generated/azure_mgmt_network/models/connection_monitor_parameters.rb +84 -0
  628. data/lib/2017-11-01/generated/azure_mgmt_network/models/connection_monitor_query_result.rb +56 -0
  629. data/lib/2017-11-01/generated/azure_mgmt_network/models/connection_monitor_result.rb +199 -0
  630. data/lib/2017-11-01/generated/azure_mgmt_network/models/connection_monitor_source.rb +58 -0
  631. data/lib/2017-11-01/generated/azure_mgmt_network/models/connection_reset_shared_key.rb +51 -0
  632. data/lib/2017-11-01/generated/azure_mgmt_network/models/connection_shared_key.rb +46 -0
  633. data/lib/2017-11-01/generated/azure_mgmt_network/models/connection_state.rb +17 -0
  634. data/lib/2017-11-01/generated/azure_mgmt_network/models/connection_state_snapshot.rb +103 -0
  635. data/lib/2017-11-01/generated/azure_mgmt_network/models/connection_status.rb +18 -0
  636. data/lib/2017-11-01/generated/azure_mgmt_network/models/connectivity_destination.rb +70 -0
  637. data/lib/2017-11-01/generated/azure_mgmt_network/models/connectivity_hop.rb +124 -0
  638. data/lib/2017-11-01/generated/azure_mgmt_network/models/connectivity_information.rb +130 -0
  639. data/lib/2017-11-01/generated/azure_mgmt_network/models/connectivity_issue.rb +106 -0
  640. data/lib/2017-11-01/generated/azure_mgmt_network/models/connectivity_parameters.rb +59 -0
  641. data/lib/2017-11-01/generated/azure_mgmt_network/models/connectivity_source.rb +59 -0
  642. data/lib/2017-11-01/generated/azure_mgmt_network/models/dh_group.rb +22 -0
  643. data/lib/2017-11-01/generated/azure_mgmt_network/models/dhcp_options.rb +56 -0
  644. data/lib/2017-11-01/generated/azure_mgmt_network/models/dimension.rb +68 -0
  645. data/lib/2017-11-01/generated/azure_mgmt_network/models/direction.rb +16 -0
  646. data/lib/2017-11-01/generated/azure_mgmt_network/models/dns_name_availability_result.rb +46 -0
  647. data/lib/2017-11-01/generated/azure_mgmt_network/models/effective_network_security_group.rb +109 -0
  648. data/lib/2017-11-01/generated/azure_mgmt_network/models/effective_network_security_group_association.rb +59 -0
  649. data/lib/2017-11-01/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +68 -0
  650. data/lib/2017-11-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb +263 -0
  651. data/lib/2017-11-01/generated/azure_mgmt_network/models/effective_route.rb +128 -0
  652. data/lib/2017-11-01/generated/azure_mgmt_network/models/effective_route_list_result.rb +67 -0
  653. data/lib/2017-11-01/generated/azure_mgmt_network/models/effective_route_source.rb +18 -0
  654. data/lib/2017-11-01/generated/azure_mgmt_network/models/effective_route_state.rb +16 -0
  655. data/lib/2017-11-01/generated/azure_mgmt_network/models/effective_security_rule_protocol.rb +17 -0
  656. data/lib/2017-11-01/generated/azure_mgmt_network/models/endpoint_service_result.rb +67 -0
  657. data/lib/2017-11-01/generated/azure_mgmt_network/models/endpoint_services_list_result.rb +99 -0
  658. data/lib/2017-11-01/generated/azure_mgmt_network/models/error.rb +100 -0
  659. data/lib/2017-11-01/generated/azure_mgmt_network/models/error_details.rb +69 -0
  660. data/lib/2017-11-01/generated/azure_mgmt_network/models/evaluation_state.rb +17 -0
  661. data/lib/2017-11-01/generated/azure_mgmt_network/models/express_route_circuit.rb +246 -0
  662. data/lib/2017-11-01/generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb +79 -0
  663. data/lib/2017-11-01/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb +104 -0
  664. data/lib/2017-11-01/generated/azure_mgmt_network/models/express_route_circuit_list_result.rb +99 -0
  665. data/lib/2017-11-01/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +272 -0
  666. data/lib/2017-11-01/generated/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +18 -0
  667. data/lib/2017-11-01/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb +122 -0
  668. data/lib/2017-11-01/generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +100 -0
  669. data/lib/2017-11-01/generated/azure_mgmt_network/models/express_route_circuit_peering_state.rb +16 -0
  670. data/lib/2017-11-01/generated/azure_mgmt_network/models/express_route_circuit_peering_type.rb +17 -0
  671. data/lib/2017-11-01/generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb +90 -0
  672. data/lib/2017-11-01/generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +93 -0
  673. data/lib/2017-11-01/generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +69 -0
  674. data/lib/2017-11-01/generated/azure_mgmt_network/models/express_route_circuit_sku.rb +72 -0
  675. data/lib/2017-11-01/generated/azure_mgmt_network/models/express_route_circuit_sku_family.rb +16 -0
  676. data/lib/2017-11-01/generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +16 -0
  677. data/lib/2017-11-01/generated/azure_mgmt_network/models/express_route_circuit_stats.rb +79 -0
  678. data/lib/2017-11-01/generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +67 -0
  679. data/lib/2017-11-01/generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +69 -0
  680. data/lib/2017-11-01/generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb +69 -0
  681. data/lib/2017-11-01/generated/azure_mgmt_network/models/express_route_service_provider.rb +136 -0
  682. data/lib/2017-11-01/generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +58 -0
  683. data/lib/2017-11-01/generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb +99 -0
  684. data/lib/2017-11-01/generated/azure_mgmt_network/models/flow_log_information.rb +81 -0
  685. data/lib/2017-11-01/generated/azure_mgmt_network/models/flow_log_status_parameters.rb +47 -0
  686. data/lib/2017-11-01/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb +235 -0
  687. data/lib/2017-11-01/generated/azure_mgmt_network/models/gateway_route.rb +119 -0
  688. data/lib/2017-11-01/generated/azure_mgmt_network/models/gateway_route_list_result.rb +55 -0
  689. data/lib/2017-11-01/generated/azure_mgmt_network/models/ike_encryption.rb +19 -0
  690. data/lib/2017-11-01/generated/azure_mgmt_network/models/ike_integrity.rb +18 -0
  691. data/lib/2017-11-01/generated/azure_mgmt_network/models/inbound_nat_pool.rb +169 -0
  692. data/lib/2017-11-01/generated/azure_mgmt_network/models/inbound_nat_rule.rb +172 -0
  693. data/lib/2017-11-01/generated/azure_mgmt_network/models/inbound_nat_rule_list_result.rb +100 -0
  694. data/lib/2017-11-01/generated/azure_mgmt_network/models/ip_tag.rb +58 -0
  695. data/lib/2017-11-01/generated/azure_mgmt_network/models/ipaddress_availability_result.rb +66 -0
  696. data/lib/2017-11-01/generated/azure_mgmt_network/models/ipallocation_method.rb +16 -0
  697. data/lib/2017-11-01/generated/azure_mgmt_network/models/ipconfiguration.rb +127 -0
  698. data/lib/2017-11-01/generated/azure_mgmt_network/models/ipsec_encryption.rb +23 -0
  699. data/lib/2017-11-01/generated/azure_mgmt_network/models/ipsec_integrity.rb +20 -0
  700. data/lib/2017-11-01/generated/azure_mgmt_network/models/ipsec_policy.rb +135 -0
  701. data/lib/2017-11-01/generated/azure_mgmt_network/models/ipv6express_route_circuit_peering_config.rb +95 -0
  702. data/lib/2017-11-01/generated/azure_mgmt_network/models/ipversion.rb +16 -0
  703. data/lib/2017-11-01/generated/azure_mgmt_network/models/issue_type.rb +23 -0
  704. data/lib/2017-11-01/generated/azure_mgmt_network/models/load_balancer.rb +290 -0
  705. data/lib/2017-11-01/generated/azure_mgmt_network/models/load_balancer_backend_address_pool_list_result.rb +101 -0
  706. data/lib/2017-11-01/generated/azure_mgmt_network/models/load_balancer_frontend_ipconfiguration_list_result.rb +102 -0
  707. data/lib/2017-11-01/generated/azure_mgmt_network/models/load_balancer_list_result.rb +100 -0
  708. data/lib/2017-11-01/generated/azure_mgmt_network/models/load_balancer_load_balancing_rule_list_result.rb +101 -0
  709. data/lib/2017-11-01/generated/azure_mgmt_network/models/load_balancer_probe_list_result.rb +99 -0
  710. data/lib/2017-11-01/generated/azure_mgmt_network/models/load_balancer_sku.rb +47 -0
  711. data/lib/2017-11-01/generated/azure_mgmt_network/models/load_balancer_sku_name.rb +16 -0
  712. data/lib/2017-11-01/generated/azure_mgmt_network/models/load_balancing_rule.rb +209 -0
  713. data/lib/2017-11-01/generated/azure_mgmt_network/models/load_distribution.rb +17 -0
  714. data/lib/2017-11-01/generated/azure_mgmt_network/models/local_network_gateway.rb +157 -0
  715. data/lib/2017-11-01/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb +100 -0
  716. data/lib/2017-11-01/generated/azure_mgmt_network/models/log_specification.rb +68 -0
  717. data/lib/2017-11-01/generated/azure_mgmt_network/models/metric_specification.rb +207 -0
  718. data/lib/2017-11-01/generated/azure_mgmt_network/models/network_interface.rb +227 -0
  719. data/lib/2017-11-01/generated/azure_mgmt_network/models/network_interface_association.rb +67 -0
  720. data/lib/2017-11-01/generated/azure_mgmt_network/models/network_interface_dns_settings.rb +117 -0
  721. data/lib/2017-11-01/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb +239 -0
  722. data/lib/2017-11-01/generated/azure_mgmt_network/models/network_interface_ipconfiguration_list_result.rb +102 -0
  723. data/lib/2017-11-01/generated/azure_mgmt_network/models/network_interface_list_result.rb +100 -0
  724. data/lib/2017-11-01/generated/azure_mgmt_network/models/network_interface_load_balancer_list_result.rb +100 -0
  725. data/lib/2017-11-01/generated/azure_mgmt_network/models/network_operation_status.rb +17 -0
  726. data/lib/2017-11-01/generated/azure_mgmt_network/models/network_security_group.rb +206 -0
  727. data/lib/2017-11-01/generated/azure_mgmt_network/models/network_security_group_list_result.rb +99 -0
  728. data/lib/2017-11-01/generated/azure_mgmt_network/models/network_watcher.rb +110 -0
  729. data/lib/2017-11-01/generated/azure_mgmt_network/models/network_watcher_list_result.rb +55 -0
  730. data/lib/2017-11-01/generated/azure_mgmt_network/models/next_hop_parameters.rb +82 -0
  731. data/lib/2017-11-01/generated/azure_mgmt_network/models/next_hop_result.rb +73 -0
  732. data/lib/2017-11-01/generated/azure_mgmt_network/models/next_hop_type.rb +20 -0
  733. data/lib/2017-11-01/generated/azure_mgmt_network/models/operation.rb +83 -0
  734. data/lib/2017-11-01/generated/azure_mgmt_network/models/operation_display.rb +79 -0
  735. data/lib/2017-11-01/generated/azure_mgmt_network/models/operation_list_result.rb +101 -0
  736. data/lib/2017-11-01/generated/azure_mgmt_network/models/operation_properties_format_service_specification.rb +76 -0
  737. data/lib/2017-11-01/generated/azure_mgmt_network/models/origin.rb +17 -0
  738. data/lib/2017-11-01/generated/azure_mgmt_network/models/outbound_nat_rule.rb +124 -0
  739. data/lib/2017-11-01/generated/azure_mgmt_network/models/packet_capture.rb +118 -0
  740. data/lib/2017-11-01/generated/azure_mgmt_network/models/packet_capture_filter.rb +107 -0
  741. data/lib/2017-11-01/generated/azure_mgmt_network/models/packet_capture_list_result.rb +56 -0
  742. data/lib/2017-11-01/generated/azure_mgmt_network/models/packet_capture_parameters.rb +118 -0
  743. data/lib/2017-11-01/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb +111 -0
  744. data/lib/2017-11-01/generated/azure_mgmt_network/models/packet_capture_result.rb +168 -0
  745. data/lib/2017-11-01/generated/azure_mgmt_network/models/packet_capture_storage_location.rb +74 -0
  746. data/lib/2017-11-01/generated/azure_mgmt_network/models/patch_route_filter.rb +155 -0
  747. data/lib/2017-11-01/generated/azure_mgmt_network/models/patch_route_filter_rule.rb +128 -0
  748. data/lib/2017-11-01/generated/azure_mgmt_network/models/pc_error.rb +19 -0
  749. data/lib/2017-11-01/generated/azure_mgmt_network/models/pc_protocol.rb +17 -0
  750. data/lib/2017-11-01/generated/azure_mgmt_network/models/pc_status.rb +19 -0
  751. data/lib/2017-11-01/generated/azure_mgmt_network/models/pfs_group.rb +21 -0
  752. data/lib/2017-11-01/generated/azure_mgmt_network/models/probe.rb +170 -0
  753. data/lib/2017-11-01/generated/azure_mgmt_network/models/probe_protocol.rb +16 -0
  754. data/lib/2017-11-01/generated/azure_mgmt_network/models/processor_architecture.rb +16 -0
  755. data/lib/2017-11-01/generated/azure_mgmt_network/models/protocol.rb +16 -0
  756. data/lib/2017-11-01/generated/azure_mgmt_network/models/provisioning_state.rb +18 -0
  757. data/lib/2017-11-01/generated/azure_mgmt_network/models/public_ipaddress.rb +248 -0
  758. data/lib/2017-11-01/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +77 -0
  759. data/lib/2017-11-01/generated/azure_mgmt_network/models/public_ipaddress_list_result.rb +99 -0
  760. data/lib/2017-11-01/generated/azure_mgmt_network/models/public_ipaddress_sku.rb +47 -0
  761. data/lib/2017-11-01/generated/azure_mgmt_network/models/public_ipaddress_sku_name.rb +16 -0
  762. data/lib/2017-11-01/generated/azure_mgmt_network/models/query_troubleshooting_parameters.rb +47 -0
  763. data/lib/2017-11-01/generated/azure_mgmt_network/models/resource.rb +100 -0
  764. data/lib/2017-11-01/generated/azure_mgmt_network/models/resource_navigation_link.rb +103 -0
  765. data/lib/2017-11-01/generated/azure_mgmt_network/models/retention_policy_parameters.rb +61 -0
  766. data/lib/2017-11-01/generated/azure_mgmt_network/models/route.rb +118 -0
  767. data/lib/2017-11-01/generated/azure_mgmt_network/models/route_filter.rb +153 -0
  768. data/lib/2017-11-01/generated/azure_mgmt_network/models/route_filter_list_result.rb +99 -0
  769. data/lib/2017-11-01/generated/azure_mgmt_network/models/route_filter_rule.rb +138 -0
  770. data/lib/2017-11-01/generated/azure_mgmt_network/models/route_filter_rule_list_result.rb +99 -0
  771. data/lib/2017-11-01/generated/azure_mgmt_network/models/route_list_result.rb +98 -0
  772. data/lib/2017-11-01/generated/azure_mgmt_network/models/route_next_hop_type.rb +19 -0
  773. data/lib/2017-11-01/generated/azure_mgmt_network/models/route_table.rb +163 -0
  774. data/lib/2017-11-01/generated/azure_mgmt_network/models/route_table_list_result.rb +99 -0
  775. data/lib/2017-11-01/generated/azure_mgmt_network/models/security_group_network_interface.rb +58 -0
  776. data/lib/2017-11-01/generated/azure_mgmt_network/models/security_group_view_parameters.rb +46 -0
  777. data/lib/2017-11-01/generated/azure_mgmt_network/models/security_group_view_result.rb +56 -0
  778. data/lib/2017-11-01/generated/azure_mgmt_network/models/security_rule.rb +315 -0
  779. data/lib/2017-11-01/generated/azure_mgmt_network/models/security_rule_access.rb +16 -0
  780. data/lib/2017-11-01/generated/azure_mgmt_network/models/security_rule_associations.rb +101 -0
  781. data/lib/2017-11-01/generated/azure_mgmt_network/models/security_rule_direction.rb +16 -0
  782. data/lib/2017-11-01/generated/azure_mgmt_network/models/security_rule_list_result.rb +100 -0
  783. data/lib/2017-11-01/generated/azure_mgmt_network/models/security_rule_protocol.rb +17 -0
  784. data/lib/2017-11-01/generated/azure_mgmt_network/models/service_endpoint_properties_format.rb +76 -0
  785. data/lib/2017-11-01/generated/azure_mgmt_network/models/service_provider_provisioning_state.rb +18 -0
  786. data/lib/2017-11-01/generated/azure_mgmt_network/models/severity.rb +16 -0
  787. data/lib/2017-11-01/generated/azure_mgmt_network/models/sub_resource.rb +46 -0
  788. data/lib/2017-11-01/generated/azure_mgmt_network/models/subnet.rb +178 -0
  789. data/lib/2017-11-01/generated/azure_mgmt_network/models/subnet_association.rb +67 -0
  790. data/lib/2017-11-01/generated/azure_mgmt_network/models/subnet_list_result.rb +99 -0
  791. data/lib/2017-11-01/generated/azure_mgmt_network/models/tags_object.rb +54 -0
  792. data/lib/2017-11-01/generated/azure_mgmt_network/models/topology.rb +92 -0
  793. data/lib/2017-11-01/generated/azure_mgmt_network/models/topology_association.rb +71 -0
  794. data/lib/2017-11-01/generated/azure_mgmt_network/models/topology_parameters.rb +71 -0
  795. data/lib/2017-11-01/generated/azure_mgmt_network/models/topology_resource.rb +89 -0
  796. data/lib/2017-11-01/generated/azure_mgmt_network/models/transport_protocol.rb +17 -0
  797. data/lib/2017-11-01/generated/azure_mgmt_network/models/troubleshooting_details.rb +100 -0
  798. data/lib/2017-11-01/generated/azure_mgmt_network/models/troubleshooting_parameters.rb +70 -0
  799. data/lib/2017-11-01/generated/azure_mgmt_network/models/troubleshooting_recommended_actions.rb +81 -0
  800. data/lib/2017-11-01/generated/azure_mgmt_network/models/troubleshooting_result.rb +89 -0
  801. data/lib/2017-11-01/generated/azure_mgmt_network/models/tunnel_connection_health.rb +98 -0
  802. data/lib/2017-11-01/generated/azure_mgmt_network/models/usage.rb +95 -0
  803. data/lib/2017-11-01/generated/azure_mgmt_network/models/usage_name.rb +57 -0
  804. data/lib/2017-11-01/generated/azure_mgmt_network/models/usages_list_result.rb +98 -0
  805. data/lib/2017-11-01/generated/azure_mgmt_network/models/verification_ipflow_parameters.rb +133 -0
  806. data/lib/2017-11-01/generated/azure_mgmt_network/models/verification_ipflow_result.rb +59 -0
  807. data/lib/2017-11-01/generated/azure_mgmt_network/models/virtual_network.rb +212 -0
  808. data/lib/2017-11-01/generated/azure_mgmt_network/models/virtual_network_connection_gateway_reference.rb +47 -0
  809. data/lib/2017-11-01/generated/azure_mgmt_network/models/virtual_network_gateway.rb +246 -0
  810. data/lib/2017-11-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb +325 -0
  811. data/lib/2017-11-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_entity.rb +326 -0
  812. data/lib/2017-11-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +103 -0
  813. data/lib/2017-11-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +18 -0
  814. data/lib/2017-11-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +18 -0
  815. data/lib/2017-11-01/generated/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +117 -0
  816. data/lib/2017-11-01/generated/azure_mgmt_network/models/virtual_network_gateway_list_connections_result.rb +104 -0
  817. data/lib/2017-11-01/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +100 -0
  818. data/lib/2017-11-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb +72 -0
  819. data/lib/2017-11-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +21 -0
  820. data/lib/2017-11-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +21 -0
  821. data/lib/2017-11-01/generated/azure_mgmt_network/models/virtual_network_gateway_type.rb +16 -0
  822. data/lib/2017-11-01/generated/azure_mgmt_network/models/virtual_network_list_result.rb +99 -0
  823. data/lib/2017-11-01/generated/azure_mgmt_network/models/virtual_network_list_usage_result.rb +99 -0
  824. data/lib/2017-11-01/generated/azure_mgmt_network/models/virtual_network_peering.rb +171 -0
  825. data/lib/2017-11-01/generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb +100 -0
  826. data/lib/2017-11-01/generated/azure_mgmt_network/models/virtual_network_peering_state.rb +17 -0
  827. data/lib/2017-11-01/generated/azure_mgmt_network/models/virtual_network_usage.rb +97 -0
  828. data/lib/2017-11-01/generated/azure_mgmt_network/models/virtual_network_usage_name.rb +59 -0
  829. data/lib/2017-11-01/generated/azure_mgmt_network/models/vpn_client_configuration.rb +134 -0
  830. data/lib/2017-11-01/generated/azure_mgmt_network/models/vpn_client_parameters.rb +96 -0
  831. data/lib/2017-11-01/generated/azure_mgmt_network/models/vpn_client_protocol.rb +16 -0
  832. data/lib/2017-11-01/generated/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +92 -0
  833. data/lib/2017-11-01/generated/azure_mgmt_network/models/vpn_client_root_certificate.rb +92 -0
  834. data/lib/2017-11-01/generated/azure_mgmt_network/models/vpn_device_script_parameters.rb +68 -0
  835. data/lib/2017-11-01/generated/azure_mgmt_network/models/vpn_type.rb +16 -0
  836. data/lib/2017-11-01/generated/azure_mgmt_network/module_definition.rb +9 -0
  837. data/lib/2017-11-01/generated/azure_mgmt_network/network_interface_ipconfigurations.rb +326 -0
  838. data/lib/2017-11-01/generated/azure_mgmt_network/network_interface_load_balancers.rb +230 -0
  839. data/lib/2017-11-01/generated/azure_mgmt_network/network_interfaces.rb +1213 -0
  840. data/lib/2017-11-01/generated/azure_mgmt_network/network_management_client.rb +380 -0
  841. data/lib/2017-11-01/generated/azure_mgmt_network/network_security_groups.rb +963 -0
  842. data/lib/2017-11-01/generated/azure_mgmt_network/network_watchers.rb +2435 -0
  843. data/lib/2017-11-01/generated/azure_mgmt_network/operations.rb +218 -0
  844. data/lib/2017-11-01/generated/azure_mgmt_network/packet_captures.rb +787 -0
  845. data/lib/2017-11-01/generated/azure_mgmt_network/public_ipaddresses.rb +945 -0
  846. data/lib/2017-11-01/generated/azure_mgmt_network/route_filter_rules.rb +777 -0
  847. data/lib/2017-11-01/generated/azure_mgmt_network/route_filters.rb +948 -0
  848. data/lib/2017-11-01/generated/azure_mgmt_network/route_tables.rb +945 -0
  849. data/lib/2017-11-01/generated/azure_mgmt_network/routes.rb +618 -0
  850. data/lib/2017-11-01/generated/azure_mgmt_network/security_rules.rb +636 -0
  851. data/lib/2017-11-01/generated/azure_mgmt_network/subnets.rb +622 -0
  852. data/lib/2017-11-01/generated/azure_mgmt_network/usages.rb +226 -0
  853. data/lib/2017-11-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1234 -0
  854. data/lib/2017-11-01/generated/azure_mgmt_network/virtual_network_gateways.rb +2295 -0
  855. data/lib/2017-11-01/generated/azure_mgmt_network/virtual_network_peerings.rb +627 -0
  856. data/lib/2017-11-01/generated/azure_mgmt_network/virtual_networks.rb +1242 -0
  857. data/lib/2018-01-01/generated/azure_mgmt_network.rb +350 -0
  858. data/lib/2018-01-01/generated/azure_mgmt_network/application_gateways.rb +1776 -0
  859. data/lib/2018-01-01/generated/azure_mgmt_network/application_security_groups.rb +803 -0
  860. data/lib/2018-01-01/generated/azure_mgmt_network/available_endpoint_services.rb +225 -0
  861. data/lib/2018-01-01/generated/azure_mgmt_network/bgp_service_communities.rb +220 -0
  862. data/lib/2018-01-01/generated/azure_mgmt_network/connection_monitors.rb +976 -0
  863. data/lib/2018-01-01/generated/azure_mgmt_network/default_security_rules.rb +336 -0
  864. data/lib/2018-01-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +624 -0
  865. data/lib/2018-01-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb +619 -0
  866. data/lib/2018-01-01/generated/azure_mgmt_network/express_route_circuits.rb +1580 -0
  867. data/lib/2018-01-01/generated/azure_mgmt_network/express_route_service_providers.rb +220 -0
  868. data/lib/2018-01-01/generated/azure_mgmt_network/inbound_nat_rules.rb +622 -0
  869. data/lib/2018-01-01/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb +329 -0
  870. data/lib/2018-01-01/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb +329 -0
  871. data/lib/2018-01-01/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb +326 -0
  872. data/lib/2018-01-01/generated/azure_mgmt_network/load_balancer_network_interfaces.rb +230 -0
  873. data/lib/2018-01-01/generated/azure_mgmt_network/load_balancer_probes.rb +326 -0
  874. data/lib/2018-01-01/generated/azure_mgmt_network/load_balancers.rb +945 -0
  875. data/lib/2018-01-01/generated/azure_mgmt_network/local_network_gateways.rb +772 -0
  876. data/lib/2018-01-01/generated/azure_mgmt_network/models/access.rb +16 -0
  877. data/lib/2018-01-01/generated/azure_mgmt_network/models/address_space.rb +56 -0
  878. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway.rb +438 -0
  879. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb +102 -0
  880. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_available_ssl_options.rb +159 -0
  881. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_available_ssl_predefined_policies.rb +102 -0
  882. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_available_waf_rule_sets_result.rb +57 -0
  883. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_backend_address.rb +57 -0
  884. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +131 -0
  885. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_backend_health.rb +55 -0
  886. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb +70 -0
  887. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb +69 -0
  888. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb +72 -0
  889. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_backend_health_server_health.rb +19 -0
  890. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +241 -0
  891. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb +64 -0
  892. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +16 -0
  893. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_firewall_disabled_rule_group.rb +67 -0
  894. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_firewall_mode.rb +16 -0
  895. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule.rb +57 -0
  896. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule_group.rb +79 -0
  897. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule_set.rb +141 -0
  898. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +139 -0
  899. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb +101 -0
  900. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_http_listener.rb +163 -0
  901. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +104 -0
  902. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_list_result.rb +99 -0
  903. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_operational_state.rb +18 -0
  904. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_path_rule.rb +148 -0
  905. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_probe.rb +201 -0
  906. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_probe_health_response_match.rb +68 -0
  907. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_protocol.rb +16 -0
  908. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb +200 -0
  909. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_redirect_type.rb +18 -0
  910. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +166 -0
  911. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +16 -0
  912. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_sku.rb +71 -0
  913. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_sku_name.rb +19 -0
  914. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +126 -0
  915. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +39 -0
  916. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb +113 -0
  917. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy_name.rb +17 -0
  918. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy_type.rb +16 -0
  919. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_ssl_predefined_policy.rb +87 -0
  920. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb +17 -0
  921. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_tier.rb +16 -0
  922. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb +151 -0
  923. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb +130 -0
  924. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_security_group.rb +127 -0
  925. data/lib/2018-01-01/generated/azure_mgmt_network/models/application_security_group_list_result.rb +100 -0
  926. data/lib/2018-01-01/generated/azure_mgmt_network/models/association_type.rb +16 -0
  927. data/lib/2018-01-01/generated/azure_mgmt_network/models/authentication_method.rb +16 -0
  928. data/lib/2018-01-01/generated/azure_mgmt_network/models/authorization_list_result.rb +100 -0
  929. data/lib/2018-01-01/generated/azure_mgmt_network/models/authorization_use_status.rb +16 -0
  930. data/lib/2018-01-01/generated/azure_mgmt_network/models/availability.rb +68 -0
  931. data/lib/2018-01-01/generated/azure_mgmt_network/models/available_providers_list.rb +56 -0
  932. data/lib/2018-01-01/generated/azure_mgmt_network/models/available_providers_list_city.rb +65 -0
  933. data/lib/2018-01-01/generated/azure_mgmt_network/models/available_providers_list_country.rb +86 -0
  934. data/lib/2018-01-01/generated/azure_mgmt_network/models/available_providers_list_parameters.rb +88 -0
  935. data/lib/2018-01-01/generated/azure_mgmt_network/models/available_providers_list_state.rb +86 -0
  936. data/lib/2018-01-01/generated/azure_mgmt_network/models/azure_async_operation_result.rb +67 -0
  937. data/lib/2018-01-01/generated/azure_mgmt_network/models/azure_reachability_report.rb +80 -0
  938. data/lib/2018-01-01/generated/azure_mgmt_network/models/azure_reachability_report_item.rb +78 -0
  939. data/lib/2018-01-01/generated/azure_mgmt_network/models/azure_reachability_report_latency_info.rb +62 -0
  940. data/lib/2018-01-01/generated/azure_mgmt_network/models/azure_reachability_report_location.rb +68 -0
  941. data/lib/2018-01-01/generated/azure_mgmt_network/models/azure_reachability_report_parameters.rb +107 -0
  942. data/lib/2018-01-01/generated/azure_mgmt_network/models/backend_address_pool.rb +137 -0
  943. data/lib/2018-01-01/generated/azure_mgmt_network/models/bgp_peer_state.rb +19 -0
  944. data/lib/2018-01-01/generated/azure_mgmt_network/models/bgp_peer_status.rb +132 -0
  945. data/lib/2018-01-01/generated/azure_mgmt_network/models/bgp_peer_status_list_result.rb +55 -0
  946. data/lib/2018-01-01/generated/azure_mgmt_network/models/bgp_service_community.rb +116 -0
  947. data/lib/2018-01-01/generated/azure_mgmt_network/models/bgp_service_community_list_result.rb +99 -0
  948. data/lib/2018-01-01/generated/azure_mgmt_network/models/bgp_settings.rb +70 -0
  949. data/lib/2018-01-01/generated/azure_mgmt_network/models/bgpcommunity.rb +112 -0
  950. data/lib/2018-01-01/generated/azure_mgmt_network/models/connection_monitor.rb +114 -0
  951. data/lib/2018-01-01/generated/azure_mgmt_network/models/connection_monitor_destination.rb +70 -0
  952. data/lib/2018-01-01/generated/azure_mgmt_network/models/connection_monitor_list_result.rb +56 -0
  953. data/lib/2018-01-01/generated/azure_mgmt_network/models/connection_monitor_parameters.rb +84 -0
  954. data/lib/2018-01-01/generated/azure_mgmt_network/models/connection_monitor_query_result.rb +56 -0
  955. data/lib/2018-01-01/generated/azure_mgmt_network/models/connection_monitor_result.rb +199 -0
  956. data/lib/2018-01-01/generated/azure_mgmt_network/models/connection_monitor_source.rb +58 -0
  957. data/lib/2018-01-01/generated/azure_mgmt_network/models/connection_reset_shared_key.rb +51 -0
  958. data/lib/2018-01-01/generated/azure_mgmt_network/models/connection_shared_key.rb +46 -0
  959. data/lib/2018-01-01/generated/azure_mgmt_network/models/connection_state.rb +17 -0
  960. data/lib/2018-01-01/generated/azure_mgmt_network/models/connection_state_snapshot.rb +103 -0
  961. data/lib/2018-01-01/generated/azure_mgmt_network/models/connection_status.rb +18 -0
  962. data/lib/2018-01-01/generated/azure_mgmt_network/models/connectivity_destination.rb +70 -0
  963. data/lib/2018-01-01/generated/azure_mgmt_network/models/connectivity_hop.rb +124 -0
  964. data/lib/2018-01-01/generated/azure_mgmt_network/models/connectivity_information.rb +130 -0
  965. data/lib/2018-01-01/generated/azure_mgmt_network/models/connectivity_issue.rb +106 -0
  966. data/lib/2018-01-01/generated/azure_mgmt_network/models/connectivity_parameters.rb +59 -0
  967. data/lib/2018-01-01/generated/azure_mgmt_network/models/connectivity_source.rb +59 -0
  968. data/lib/2018-01-01/generated/azure_mgmt_network/models/dh_group.rb +22 -0
  969. data/lib/2018-01-01/generated/azure_mgmt_network/models/dhcp_options.rb +56 -0
  970. data/lib/2018-01-01/generated/azure_mgmt_network/models/dimension.rb +68 -0
  971. data/lib/2018-01-01/generated/azure_mgmt_network/models/direction.rb +16 -0
  972. data/lib/2018-01-01/generated/azure_mgmt_network/models/dns_name_availability_result.rb +46 -0
  973. data/lib/2018-01-01/generated/azure_mgmt_network/models/effective_network_security_group.rb +109 -0
  974. data/lib/2018-01-01/generated/azure_mgmt_network/models/effective_network_security_group_association.rb +59 -0
  975. data/lib/2018-01-01/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +68 -0
  976. data/lib/2018-01-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb +263 -0
  977. data/lib/2018-01-01/generated/azure_mgmt_network/models/effective_route.rb +128 -0
  978. data/lib/2018-01-01/generated/azure_mgmt_network/models/effective_route_list_result.rb +67 -0
  979. data/lib/2018-01-01/generated/azure_mgmt_network/models/effective_route_source.rb +18 -0
  980. data/lib/2018-01-01/generated/azure_mgmt_network/models/effective_route_state.rb +16 -0
  981. data/lib/2018-01-01/generated/azure_mgmt_network/models/effective_security_rule_protocol.rb +17 -0
  982. data/lib/2018-01-01/generated/azure_mgmt_network/models/endpoint_service_result.rb +67 -0
  983. data/lib/2018-01-01/generated/azure_mgmt_network/models/endpoint_services_list_result.rb +99 -0
  984. data/lib/2018-01-01/generated/azure_mgmt_network/models/error.rb +100 -0
  985. data/lib/2018-01-01/generated/azure_mgmt_network/models/error_details.rb +69 -0
  986. data/lib/2018-01-01/generated/azure_mgmt_network/models/evaluation_state.rb +17 -0
  987. data/lib/2018-01-01/generated/azure_mgmt_network/models/express_route_circuit.rb +246 -0
  988. data/lib/2018-01-01/generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb +79 -0
  989. data/lib/2018-01-01/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb +104 -0
  990. data/lib/2018-01-01/generated/azure_mgmt_network/models/express_route_circuit_list_result.rb +99 -0
  991. data/lib/2018-01-01/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +272 -0
  992. data/lib/2018-01-01/generated/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +18 -0
  993. data/lib/2018-01-01/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb +122 -0
  994. data/lib/2018-01-01/generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +100 -0
  995. data/lib/2018-01-01/generated/azure_mgmt_network/models/express_route_circuit_peering_state.rb +16 -0
  996. data/lib/2018-01-01/generated/azure_mgmt_network/models/express_route_circuit_peering_type.rb +17 -0
  997. data/lib/2018-01-01/generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb +90 -0
  998. data/lib/2018-01-01/generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +93 -0
  999. data/lib/2018-01-01/generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +69 -0
  1000. data/lib/2018-01-01/generated/azure_mgmt_network/models/express_route_circuit_sku.rb +72 -0
  1001. data/lib/2018-01-01/generated/azure_mgmt_network/models/express_route_circuit_sku_family.rb +16 -0
  1002. data/lib/2018-01-01/generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +16 -0
  1003. data/lib/2018-01-01/generated/azure_mgmt_network/models/express_route_circuit_stats.rb +79 -0
  1004. data/lib/2018-01-01/generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +67 -0
  1005. data/lib/2018-01-01/generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +69 -0
  1006. data/lib/2018-01-01/generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb +69 -0
  1007. data/lib/2018-01-01/generated/azure_mgmt_network/models/express_route_service_provider.rb +136 -0
  1008. data/lib/2018-01-01/generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +58 -0
  1009. data/lib/2018-01-01/generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb +99 -0
  1010. data/lib/2018-01-01/generated/azure_mgmt_network/models/flow_log_information.rb +81 -0
  1011. data/lib/2018-01-01/generated/azure_mgmt_network/models/flow_log_status_parameters.rb +47 -0
  1012. data/lib/2018-01-01/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb +235 -0
  1013. data/lib/2018-01-01/generated/azure_mgmt_network/models/gateway_route.rb +119 -0
  1014. data/lib/2018-01-01/generated/azure_mgmt_network/models/gateway_route_list_result.rb +55 -0
  1015. data/lib/2018-01-01/generated/azure_mgmt_network/models/ike_encryption.rb +19 -0
  1016. data/lib/2018-01-01/generated/azure_mgmt_network/models/ike_integrity.rb +18 -0
  1017. data/lib/2018-01-01/generated/azure_mgmt_network/models/inbound_nat_pool.rb +169 -0
  1018. data/lib/2018-01-01/generated/azure_mgmt_network/models/inbound_nat_rule.rb +172 -0
  1019. data/lib/2018-01-01/generated/azure_mgmt_network/models/inbound_nat_rule_list_result.rb +100 -0
  1020. data/lib/2018-01-01/generated/azure_mgmt_network/models/ip_tag.rb +58 -0
  1021. data/lib/2018-01-01/generated/azure_mgmt_network/models/ipaddress_availability_result.rb +66 -0
  1022. data/lib/2018-01-01/generated/azure_mgmt_network/models/ipallocation_method.rb +16 -0
  1023. data/lib/2018-01-01/generated/azure_mgmt_network/models/ipconfiguration.rb +127 -0
  1024. data/lib/2018-01-01/generated/azure_mgmt_network/models/ipsec_encryption.rb +23 -0
  1025. data/lib/2018-01-01/generated/azure_mgmt_network/models/ipsec_integrity.rb +20 -0
  1026. data/lib/2018-01-01/generated/azure_mgmt_network/models/ipsec_policy.rb +135 -0
  1027. data/lib/2018-01-01/generated/azure_mgmt_network/models/ipv6express_route_circuit_peering_config.rb +95 -0
  1028. data/lib/2018-01-01/generated/azure_mgmt_network/models/ipversion.rb +16 -0
  1029. data/lib/2018-01-01/generated/azure_mgmt_network/models/issue_type.rb +23 -0
  1030. data/lib/2018-01-01/generated/azure_mgmt_network/models/load_balancer.rb +290 -0
  1031. data/lib/2018-01-01/generated/azure_mgmt_network/models/load_balancer_backend_address_pool_list_result.rb +101 -0
  1032. data/lib/2018-01-01/generated/azure_mgmt_network/models/load_balancer_frontend_ipconfiguration_list_result.rb +102 -0
  1033. data/lib/2018-01-01/generated/azure_mgmt_network/models/load_balancer_list_result.rb +100 -0
  1034. data/lib/2018-01-01/generated/azure_mgmt_network/models/load_balancer_load_balancing_rule_list_result.rb +101 -0
  1035. data/lib/2018-01-01/generated/azure_mgmt_network/models/load_balancer_probe_list_result.rb +99 -0
  1036. data/lib/2018-01-01/generated/azure_mgmt_network/models/load_balancer_sku.rb +47 -0
  1037. data/lib/2018-01-01/generated/azure_mgmt_network/models/load_balancer_sku_name.rb +16 -0
  1038. data/lib/2018-01-01/generated/azure_mgmt_network/models/load_balancing_rule.rb +209 -0
  1039. data/lib/2018-01-01/generated/azure_mgmt_network/models/load_distribution.rb +17 -0
  1040. data/lib/2018-01-01/generated/azure_mgmt_network/models/local_network_gateway.rb +157 -0
  1041. data/lib/2018-01-01/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb +100 -0
  1042. data/lib/2018-01-01/generated/azure_mgmt_network/models/log_specification.rb +68 -0
  1043. data/lib/2018-01-01/generated/azure_mgmt_network/models/metric_specification.rb +207 -0
  1044. data/lib/2018-01-01/generated/azure_mgmt_network/models/network_interface.rb +227 -0
  1045. data/lib/2018-01-01/generated/azure_mgmt_network/models/network_interface_association.rb +67 -0
  1046. data/lib/2018-01-01/generated/azure_mgmt_network/models/network_interface_dns_settings.rb +117 -0
  1047. data/lib/2018-01-01/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb +239 -0
  1048. data/lib/2018-01-01/generated/azure_mgmt_network/models/network_interface_ipconfiguration_list_result.rb +102 -0
  1049. data/lib/2018-01-01/generated/azure_mgmt_network/models/network_interface_list_result.rb +100 -0
  1050. data/lib/2018-01-01/generated/azure_mgmt_network/models/network_interface_load_balancer_list_result.rb +100 -0
  1051. data/lib/2018-01-01/generated/azure_mgmt_network/models/network_operation_status.rb +17 -0
  1052. data/lib/2018-01-01/generated/azure_mgmt_network/models/network_security_group.rb +206 -0
  1053. data/lib/2018-01-01/generated/azure_mgmt_network/models/network_security_group_list_result.rb +99 -0
  1054. data/lib/2018-01-01/generated/azure_mgmt_network/models/network_watcher.rb +110 -0
  1055. data/lib/2018-01-01/generated/azure_mgmt_network/models/network_watcher_list_result.rb +55 -0
  1056. data/lib/2018-01-01/generated/azure_mgmt_network/models/next_hop_parameters.rb +82 -0
  1057. data/lib/2018-01-01/generated/azure_mgmt_network/models/next_hop_result.rb +73 -0
  1058. data/lib/2018-01-01/generated/azure_mgmt_network/models/next_hop_type.rb +20 -0
  1059. data/lib/2018-01-01/generated/azure_mgmt_network/models/operation.rb +83 -0
  1060. data/lib/2018-01-01/generated/azure_mgmt_network/models/operation_display.rb +79 -0
  1061. data/lib/2018-01-01/generated/azure_mgmt_network/models/operation_list_result.rb +101 -0
  1062. data/lib/2018-01-01/generated/azure_mgmt_network/models/operation_properties_format_service_specification.rb +76 -0
  1063. data/lib/2018-01-01/generated/azure_mgmt_network/models/origin.rb +17 -0
  1064. data/lib/2018-01-01/generated/azure_mgmt_network/models/outbound_nat_rule.rb +124 -0
  1065. data/lib/2018-01-01/generated/azure_mgmt_network/models/packet_capture.rb +118 -0
  1066. data/lib/2018-01-01/generated/azure_mgmt_network/models/packet_capture_filter.rb +107 -0
  1067. data/lib/2018-01-01/generated/azure_mgmt_network/models/packet_capture_list_result.rb +56 -0
  1068. data/lib/2018-01-01/generated/azure_mgmt_network/models/packet_capture_parameters.rb +118 -0
  1069. data/lib/2018-01-01/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb +111 -0
  1070. data/lib/2018-01-01/generated/azure_mgmt_network/models/packet_capture_result.rb +168 -0
  1071. data/lib/2018-01-01/generated/azure_mgmt_network/models/packet_capture_storage_location.rb +74 -0
  1072. data/lib/2018-01-01/generated/azure_mgmt_network/models/patch_route_filter.rb +155 -0
  1073. data/lib/2018-01-01/generated/azure_mgmt_network/models/patch_route_filter_rule.rb +128 -0
  1074. data/lib/2018-01-01/generated/azure_mgmt_network/models/pc_error.rb +19 -0
  1075. data/lib/2018-01-01/generated/azure_mgmt_network/models/pc_protocol.rb +17 -0
  1076. data/lib/2018-01-01/generated/azure_mgmt_network/models/pc_status.rb +19 -0
  1077. data/lib/2018-01-01/generated/azure_mgmt_network/models/pfs_group.rb +21 -0
  1078. data/lib/2018-01-01/generated/azure_mgmt_network/models/probe.rb +170 -0
  1079. data/lib/2018-01-01/generated/azure_mgmt_network/models/probe_protocol.rb +16 -0
  1080. data/lib/2018-01-01/generated/azure_mgmt_network/models/processor_architecture.rb +16 -0
  1081. data/lib/2018-01-01/generated/azure_mgmt_network/models/protocol.rb +16 -0
  1082. data/lib/2018-01-01/generated/azure_mgmt_network/models/provisioning_state.rb +18 -0
  1083. data/lib/2018-01-01/generated/azure_mgmt_network/models/public_ipaddress.rb +248 -0
  1084. data/lib/2018-01-01/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +77 -0
  1085. data/lib/2018-01-01/generated/azure_mgmt_network/models/public_ipaddress_list_result.rb +99 -0
  1086. data/lib/2018-01-01/generated/azure_mgmt_network/models/public_ipaddress_sku.rb +47 -0
  1087. data/lib/2018-01-01/generated/azure_mgmt_network/models/public_ipaddress_sku_name.rb +16 -0
  1088. data/lib/2018-01-01/generated/azure_mgmt_network/models/query_troubleshooting_parameters.rb +47 -0
  1089. data/lib/2018-01-01/generated/azure_mgmt_network/models/resource.rb +100 -0
  1090. data/lib/2018-01-01/generated/azure_mgmt_network/models/resource_navigation_link.rb +103 -0
  1091. data/lib/2018-01-01/generated/azure_mgmt_network/models/retention_policy_parameters.rb +61 -0
  1092. data/lib/2018-01-01/generated/azure_mgmt_network/models/route.rb +118 -0
  1093. data/lib/2018-01-01/generated/azure_mgmt_network/models/route_filter.rb +153 -0
  1094. data/lib/2018-01-01/generated/azure_mgmt_network/models/route_filter_list_result.rb +99 -0
  1095. data/lib/2018-01-01/generated/azure_mgmt_network/models/route_filter_rule.rb +138 -0
  1096. data/lib/2018-01-01/generated/azure_mgmt_network/models/route_filter_rule_list_result.rb +99 -0
  1097. data/lib/2018-01-01/generated/azure_mgmt_network/models/route_list_result.rb +98 -0
  1098. data/lib/2018-01-01/generated/azure_mgmt_network/models/route_next_hop_type.rb +19 -0
  1099. data/lib/2018-01-01/generated/azure_mgmt_network/models/route_table.rb +163 -0
  1100. data/lib/2018-01-01/generated/azure_mgmt_network/models/route_table_list_result.rb +99 -0
  1101. data/lib/2018-01-01/generated/azure_mgmt_network/models/security_group_network_interface.rb +58 -0
  1102. data/lib/2018-01-01/generated/azure_mgmt_network/models/security_group_view_parameters.rb +46 -0
  1103. data/lib/2018-01-01/generated/azure_mgmt_network/models/security_group_view_result.rb +56 -0
  1104. data/lib/2018-01-01/generated/azure_mgmt_network/models/security_rule.rb +315 -0
  1105. data/lib/2018-01-01/generated/azure_mgmt_network/models/security_rule_access.rb +16 -0
  1106. data/lib/2018-01-01/generated/azure_mgmt_network/models/security_rule_associations.rb +101 -0
  1107. data/lib/2018-01-01/generated/azure_mgmt_network/models/security_rule_direction.rb +16 -0
  1108. data/lib/2018-01-01/generated/azure_mgmt_network/models/security_rule_list_result.rb +100 -0
  1109. data/lib/2018-01-01/generated/azure_mgmt_network/models/security_rule_protocol.rb +17 -0
  1110. data/lib/2018-01-01/generated/azure_mgmt_network/models/service_endpoint_properties_format.rb +76 -0
  1111. data/lib/2018-01-01/generated/azure_mgmt_network/models/service_provider_provisioning_state.rb +18 -0
  1112. data/lib/2018-01-01/generated/azure_mgmt_network/models/severity.rb +16 -0
  1113. data/lib/2018-01-01/generated/azure_mgmt_network/models/sub_resource.rb +46 -0
  1114. data/lib/2018-01-01/generated/azure_mgmt_network/models/subnet.rb +178 -0
  1115. data/lib/2018-01-01/generated/azure_mgmt_network/models/subnet_association.rb +67 -0
  1116. data/lib/2018-01-01/generated/azure_mgmt_network/models/subnet_list_result.rb +99 -0
  1117. data/lib/2018-01-01/generated/azure_mgmt_network/models/tags_object.rb +54 -0
  1118. data/lib/2018-01-01/generated/azure_mgmt_network/models/topology.rb +92 -0
  1119. data/lib/2018-01-01/generated/azure_mgmt_network/models/topology_association.rb +71 -0
  1120. data/lib/2018-01-01/generated/azure_mgmt_network/models/topology_parameters.rb +71 -0
  1121. data/lib/2018-01-01/generated/azure_mgmt_network/models/topology_resource.rb +89 -0
  1122. data/lib/2018-01-01/generated/azure_mgmt_network/models/transport_protocol.rb +17 -0
  1123. data/lib/2018-01-01/generated/azure_mgmt_network/models/troubleshooting_details.rb +100 -0
  1124. data/lib/2018-01-01/generated/azure_mgmt_network/models/troubleshooting_parameters.rb +70 -0
  1125. data/lib/2018-01-01/generated/azure_mgmt_network/models/troubleshooting_recommended_actions.rb +81 -0
  1126. data/lib/2018-01-01/generated/azure_mgmt_network/models/troubleshooting_result.rb +89 -0
  1127. data/lib/2018-01-01/generated/azure_mgmt_network/models/tunnel_connection_health.rb +98 -0
  1128. data/lib/2018-01-01/generated/azure_mgmt_network/models/usage.rb +95 -0
  1129. data/lib/2018-01-01/generated/azure_mgmt_network/models/usage_name.rb +57 -0
  1130. data/lib/2018-01-01/generated/azure_mgmt_network/models/usages_list_result.rb +98 -0
  1131. data/lib/2018-01-01/generated/azure_mgmt_network/models/verification_ipflow_parameters.rb +133 -0
  1132. data/lib/2018-01-01/generated/azure_mgmt_network/models/verification_ipflow_result.rb +59 -0
  1133. data/lib/2018-01-01/generated/azure_mgmt_network/models/virtual_network.rb +212 -0
  1134. data/lib/2018-01-01/generated/azure_mgmt_network/models/virtual_network_connection_gateway_reference.rb +47 -0
  1135. data/lib/2018-01-01/generated/azure_mgmt_network/models/virtual_network_gateway.rb +246 -0
  1136. data/lib/2018-01-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb +325 -0
  1137. data/lib/2018-01-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_entity.rb +326 -0
  1138. data/lib/2018-01-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +103 -0
  1139. data/lib/2018-01-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +18 -0
  1140. data/lib/2018-01-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +18 -0
  1141. data/lib/2018-01-01/generated/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +117 -0
  1142. data/lib/2018-01-01/generated/azure_mgmt_network/models/virtual_network_gateway_list_connections_result.rb +104 -0
  1143. data/lib/2018-01-01/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +100 -0
  1144. data/lib/2018-01-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb +72 -0
  1145. data/lib/2018-01-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +21 -0
  1146. data/lib/2018-01-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +21 -0
  1147. data/lib/2018-01-01/generated/azure_mgmt_network/models/virtual_network_gateway_type.rb +16 -0
  1148. data/lib/2018-01-01/generated/azure_mgmt_network/models/virtual_network_list_result.rb +99 -0
  1149. data/lib/2018-01-01/generated/azure_mgmt_network/models/virtual_network_list_usage_result.rb +99 -0
  1150. data/lib/2018-01-01/generated/azure_mgmt_network/models/virtual_network_peering.rb +171 -0
  1151. data/lib/2018-01-01/generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb +100 -0
  1152. data/lib/2018-01-01/generated/azure_mgmt_network/models/virtual_network_peering_state.rb +17 -0
  1153. data/lib/2018-01-01/generated/azure_mgmt_network/models/virtual_network_usage.rb +97 -0
  1154. data/lib/2018-01-01/generated/azure_mgmt_network/models/virtual_network_usage_name.rb +59 -0
  1155. data/lib/2018-01-01/generated/azure_mgmt_network/models/vpn_client_configuration.rb +134 -0
  1156. data/lib/2018-01-01/generated/azure_mgmt_network/models/vpn_client_parameters.rb +96 -0
  1157. data/lib/2018-01-01/generated/azure_mgmt_network/models/vpn_client_protocol.rb +16 -0
  1158. data/lib/2018-01-01/generated/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +92 -0
  1159. data/lib/2018-01-01/generated/azure_mgmt_network/models/vpn_client_root_certificate.rb +92 -0
  1160. data/lib/2018-01-01/generated/azure_mgmt_network/models/vpn_device_script_parameters.rb +68 -0
  1161. data/lib/2018-01-01/generated/azure_mgmt_network/models/vpn_type.rb +16 -0
  1162. data/lib/2018-01-01/generated/azure_mgmt_network/module_definition.rb +9 -0
  1163. data/lib/2018-01-01/generated/azure_mgmt_network/network_interface_ipconfigurations.rb +326 -0
  1164. data/lib/2018-01-01/generated/azure_mgmt_network/network_interface_load_balancers.rb +230 -0
  1165. data/lib/2018-01-01/generated/azure_mgmt_network/network_interfaces.rb +1213 -0
  1166. data/lib/2018-01-01/generated/azure_mgmt_network/network_management_client.rb +380 -0
  1167. data/lib/2018-01-01/generated/azure_mgmt_network/network_security_groups.rb +963 -0
  1168. data/lib/2018-01-01/generated/azure_mgmt_network/network_watchers.rb +2435 -0
  1169. data/lib/2018-01-01/generated/azure_mgmt_network/operations.rb +218 -0
  1170. data/lib/2018-01-01/generated/azure_mgmt_network/packet_captures.rb +787 -0
  1171. data/lib/2018-01-01/generated/azure_mgmt_network/public_ipaddresses.rb +945 -0
  1172. data/lib/2018-01-01/generated/azure_mgmt_network/route_filter_rules.rb +777 -0
  1173. data/lib/2018-01-01/generated/azure_mgmt_network/route_filters.rb +948 -0
  1174. data/lib/2018-01-01/generated/azure_mgmt_network/route_tables.rb +945 -0
  1175. data/lib/2018-01-01/generated/azure_mgmt_network/routes.rb +618 -0
  1176. data/lib/2018-01-01/generated/azure_mgmt_network/security_rules.rb +636 -0
  1177. data/lib/2018-01-01/generated/azure_mgmt_network/subnets.rb +622 -0
  1178. data/lib/2018-01-01/generated/azure_mgmt_network/usages.rb +226 -0
  1179. data/lib/2018-01-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1234 -0
  1180. data/lib/2018-01-01/generated/azure_mgmt_network/virtual_network_gateways.rb +2295 -0
  1181. data/lib/2018-01-01/generated/azure_mgmt_network/virtual_network_peerings.rb +627 -0
  1182. data/lib/2018-01-01/generated/azure_mgmt_network/virtual_networks.rb +1242 -0
  1183. data/lib/azure_mgmt_network.rb +3 -0
  1184. data/lib/profiles/latest/modules/network_profile_module.rb +1246 -1143
  1185. data/lib/profiles/latest/network_latest_profile_client.rb +28 -9
  1186. data/lib/profiles/latest/network_module_definition.rb +0 -1
  1187. data/lib/profiles/v2017_03_09/modules/network_profile_module.rb +399 -380
  1188. data/lib/profiles/v2017_03_09/network_module_definition.rb +0 -1
  1189. data/lib/profiles/v2017_03_09/network_v2017_03_09_profile_client.rb +28 -9
  1190. data/lib/version.rb +1 -1
  1191. metadata +991 -3
@@ -0,0 +1,2435 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Network::Mgmt::V2018_01_01
7
+ #
8
+ # The Microsoft Azure Network management API provides a RESTful set of web
9
+ # services that interact with Microsoft Azure Networks service to manage your
10
+ # network resources. The API has entities that capture the relationship
11
+ # between an end user and the Microsoft Azure Networks service.
12
+ #
13
+ class NetworkWatchers
14
+ include MsRestAzure
15
+
16
+ #
17
+ # Creates and initializes a new instance of the NetworkWatchers class.
18
+ # @param client service class for accessing basic functionality.
19
+ #
20
+ def initialize(client)
21
+ @client = client
22
+ end
23
+
24
+ # @return [NetworkManagementClient] reference to the NetworkManagementClient
25
+ attr_reader :client
26
+
27
+ #
28
+ # Creates or updates a network watcher in the specified resource group.
29
+ #
30
+ # @param resource_group_name [String] The name of the resource group.
31
+ # @param network_watcher_name [String] The name of the network watcher.
32
+ # @param parameters [NetworkWatcher] Parameters that define the network watcher
33
+ # resource.
34
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
35
+ # will be added to the HTTP request.
36
+ #
37
+ # @return [NetworkWatcher] operation results.
38
+ #
39
+ def create_or_update(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
40
+ response = create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
41
+ response.body unless response.nil?
42
+ end
43
+
44
+ #
45
+ # Creates or updates a network watcher in the specified resource group.
46
+ #
47
+ # @param resource_group_name [String] The name of the resource group.
48
+ # @param network_watcher_name [String] The name of the network watcher.
49
+ # @param parameters [NetworkWatcher] Parameters that define the network watcher
50
+ # resource.
51
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
52
+ # will be added to the HTTP request.
53
+ #
54
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
55
+ #
56
+ def create_or_update_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
57
+ create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
58
+ end
59
+
60
+ #
61
+ # Creates or updates a network watcher in the specified resource group.
62
+ #
63
+ # @param resource_group_name [String] The name of the resource group.
64
+ # @param network_watcher_name [String] The name of the network watcher.
65
+ # @param parameters [NetworkWatcher] Parameters that define the network watcher
66
+ # resource.
67
+ # @param [Hash{String => String}] A hash of custom headers that will be added
68
+ # to the HTTP request.
69
+ #
70
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
71
+ #
72
+ def create_or_update_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
73
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
74
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
75
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
76
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
77
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
78
+
79
+
80
+ request_headers = {}
81
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
82
+
83
+ # Set Headers
84
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
85
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
86
+
87
+ # Serialize Request
88
+ request_mapper = Azure::Network::Mgmt::V2018_01_01::Models::NetworkWatcher.mapper()
89
+ request_content = @client.serialize(request_mapper, parameters)
90
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
91
+
92
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}'
93
+
94
+ request_url = @base_url || @client.base_url
95
+
96
+ options = {
97
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
98
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
99
+ query_params: {'api-version' => @client.api_version},
100
+ body: request_content,
101
+ headers: request_headers.merge(custom_headers || {}),
102
+ base_url: request_url
103
+ }
104
+ promise = @client.make_request_async(:put, path_template, options)
105
+
106
+ promise = promise.then do |result|
107
+ http_response = result.response
108
+ status_code = http_response.status
109
+ response_content = http_response.body
110
+ unless status_code == 200 || status_code == 201
111
+ error_model = JSON.load(response_content)
112
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
113
+ end
114
+
115
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
116
+ # Deserialize Response
117
+ if status_code == 200
118
+ begin
119
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
120
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::NetworkWatcher.mapper()
121
+ result.body = @client.deserialize(result_mapper, parsed_response)
122
+ rescue Exception => e
123
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
124
+ end
125
+ end
126
+ # Deserialize Response
127
+ if status_code == 201
128
+ begin
129
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
130
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::NetworkWatcher.mapper()
131
+ result.body = @client.deserialize(result_mapper, parsed_response)
132
+ rescue Exception => e
133
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
134
+ end
135
+ end
136
+
137
+ result
138
+ end
139
+
140
+ promise.execute
141
+ end
142
+
143
+ #
144
+ # Gets the specified network watcher by resource group.
145
+ #
146
+ # @param resource_group_name [String] The name of the resource group.
147
+ # @param network_watcher_name [String] The name of the network watcher.
148
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
149
+ # will be added to the HTTP request.
150
+ #
151
+ # @return [NetworkWatcher] operation results.
152
+ #
153
+ def get(resource_group_name, network_watcher_name, custom_headers:nil)
154
+ response = get_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value!
155
+ response.body unless response.nil?
156
+ end
157
+
158
+ #
159
+ # Gets the specified network watcher by resource group.
160
+ #
161
+ # @param resource_group_name [String] The name of the resource group.
162
+ # @param network_watcher_name [String] The name of the network watcher.
163
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
164
+ # will be added to the HTTP request.
165
+ #
166
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
167
+ #
168
+ def get_with_http_info(resource_group_name, network_watcher_name, custom_headers:nil)
169
+ get_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value!
170
+ end
171
+
172
+ #
173
+ # Gets the specified network watcher by resource group.
174
+ #
175
+ # @param resource_group_name [String] The name of the resource group.
176
+ # @param network_watcher_name [String] The name of the network watcher.
177
+ # @param [Hash{String => String}] A hash of custom headers that will be added
178
+ # to the HTTP request.
179
+ #
180
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
181
+ #
182
+ def get_async(resource_group_name, network_watcher_name, custom_headers:nil)
183
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
184
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
185
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
186
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
187
+
188
+
189
+ request_headers = {}
190
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
191
+
192
+ # Set Headers
193
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
194
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
195
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}'
196
+
197
+ request_url = @base_url || @client.base_url
198
+
199
+ options = {
200
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
201
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
202
+ query_params: {'api-version' => @client.api_version},
203
+ headers: request_headers.merge(custom_headers || {}),
204
+ base_url: request_url
205
+ }
206
+ promise = @client.make_request_async(:get, path_template, options)
207
+
208
+ promise = promise.then do |result|
209
+ http_response = result.response
210
+ status_code = http_response.status
211
+ response_content = http_response.body
212
+ unless status_code == 200
213
+ error_model = JSON.load(response_content)
214
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
215
+ end
216
+
217
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
218
+ # Deserialize Response
219
+ if status_code == 200
220
+ begin
221
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
222
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::NetworkWatcher.mapper()
223
+ result.body = @client.deserialize(result_mapper, parsed_response)
224
+ rescue Exception => e
225
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
226
+ end
227
+ end
228
+
229
+ result
230
+ end
231
+
232
+ promise.execute
233
+ end
234
+
235
+ #
236
+ # Deletes the specified network watcher resource.
237
+ #
238
+ # @param resource_group_name [String] The name of the resource group.
239
+ # @param network_watcher_name [String] The name of the network watcher.
240
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
241
+ # will be added to the HTTP request.
242
+ #
243
+ def delete(resource_group_name, network_watcher_name, custom_headers:nil)
244
+ response = delete_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value!
245
+ nil
246
+ end
247
+
248
+ #
249
+ # @param resource_group_name [String] The name of the resource group.
250
+ # @param network_watcher_name [String] The name of the network watcher.
251
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
252
+ # will be added to the HTTP request.
253
+ #
254
+ # @return [Concurrent::Promise] promise which provides async access to http
255
+ # response.
256
+ #
257
+ def delete_async(resource_group_name, network_watcher_name, custom_headers:nil)
258
+ # Send request
259
+ promise = begin_delete_async(resource_group_name, network_watcher_name, custom_headers:custom_headers)
260
+
261
+ promise = promise.then do |response|
262
+ # Defining deserialization method.
263
+ deserialize_method = lambda do |parsed_response|
264
+ end
265
+
266
+ # Waiting for response.
267
+ @client.get_long_running_operation_result(response, deserialize_method)
268
+ end
269
+
270
+ promise
271
+ end
272
+
273
+ #
274
+ # Updates a network watcher tags.
275
+ #
276
+ # @param resource_group_name [String] The name of the resource group.
277
+ # @param network_watcher_name [String] The name of the network watcher.
278
+ # @param parameters [TagsObject] Parameters supplied to update network watcher
279
+ # tags.
280
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
281
+ # will be added to the HTTP request.
282
+ #
283
+ # @return [NetworkWatcher] operation results.
284
+ #
285
+ def update_tags(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
286
+ response = update_tags_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
287
+ response.body unless response.nil?
288
+ end
289
+
290
+ #
291
+ # Updates a network watcher tags.
292
+ #
293
+ # @param resource_group_name [String] The name of the resource group.
294
+ # @param network_watcher_name [String] The name of the network watcher.
295
+ # @param parameters [TagsObject] Parameters supplied to update network watcher
296
+ # tags.
297
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
298
+ # will be added to the HTTP request.
299
+ #
300
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
301
+ #
302
+ def update_tags_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
303
+ update_tags_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
304
+ end
305
+
306
+ #
307
+ # Updates a network watcher tags.
308
+ #
309
+ # @param resource_group_name [String] The name of the resource group.
310
+ # @param network_watcher_name [String] The name of the network watcher.
311
+ # @param parameters [TagsObject] Parameters supplied to update network watcher
312
+ # tags.
313
+ # @param [Hash{String => String}] A hash of custom headers that will be added
314
+ # to the HTTP request.
315
+ #
316
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
317
+ #
318
+ def update_tags_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
319
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
320
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
321
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
322
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
323
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
324
+
325
+
326
+ request_headers = {}
327
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
328
+
329
+ # Set Headers
330
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
331
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
332
+
333
+ # Serialize Request
334
+ request_mapper = Azure::Network::Mgmt::V2018_01_01::Models::TagsObject.mapper()
335
+ request_content = @client.serialize(request_mapper, parameters)
336
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
337
+
338
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}'
339
+
340
+ request_url = @base_url || @client.base_url
341
+
342
+ options = {
343
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
344
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
345
+ query_params: {'api-version' => @client.api_version},
346
+ body: request_content,
347
+ headers: request_headers.merge(custom_headers || {}),
348
+ base_url: request_url
349
+ }
350
+ promise = @client.make_request_async(:patch, path_template, options)
351
+
352
+ promise = promise.then do |result|
353
+ http_response = result.response
354
+ status_code = http_response.status
355
+ response_content = http_response.body
356
+ unless status_code == 200
357
+ error_model = JSON.load(response_content)
358
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
359
+ end
360
+
361
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
362
+ # Deserialize Response
363
+ if status_code == 200
364
+ begin
365
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
366
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::NetworkWatcher.mapper()
367
+ result.body = @client.deserialize(result_mapper, parsed_response)
368
+ rescue Exception => e
369
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
370
+ end
371
+ end
372
+
373
+ result
374
+ end
375
+
376
+ promise.execute
377
+ end
378
+
379
+ #
380
+ # Gets all network watchers by resource group.
381
+ #
382
+ # @param resource_group_name [String] The name of the resource group.
383
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
384
+ # will be added to the HTTP request.
385
+ #
386
+ # @return [NetworkWatcherListResult] operation results.
387
+ #
388
+ def list(resource_group_name, custom_headers:nil)
389
+ response = list_async(resource_group_name, custom_headers:custom_headers).value!
390
+ response.body unless response.nil?
391
+ end
392
+
393
+ #
394
+ # Gets all network watchers by resource group.
395
+ #
396
+ # @param resource_group_name [String] The name of the resource group.
397
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
398
+ # will be added to the HTTP request.
399
+ #
400
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
401
+ #
402
+ def list_with_http_info(resource_group_name, custom_headers:nil)
403
+ list_async(resource_group_name, custom_headers:custom_headers).value!
404
+ end
405
+
406
+ #
407
+ # Gets all network watchers by resource group.
408
+ #
409
+ # @param resource_group_name [String] The name of the resource group.
410
+ # @param [Hash{String => String}] A hash of custom headers that will be added
411
+ # to the HTTP request.
412
+ #
413
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
414
+ #
415
+ def list_async(resource_group_name, custom_headers:nil)
416
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
417
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
418
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
419
+
420
+
421
+ request_headers = {}
422
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
423
+
424
+ # Set Headers
425
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
426
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
427
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers'
428
+
429
+ request_url = @base_url || @client.base_url
430
+
431
+ options = {
432
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
433
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
434
+ query_params: {'api-version' => @client.api_version},
435
+ headers: request_headers.merge(custom_headers || {}),
436
+ base_url: request_url
437
+ }
438
+ promise = @client.make_request_async(:get, path_template, options)
439
+
440
+ promise = promise.then do |result|
441
+ http_response = result.response
442
+ status_code = http_response.status
443
+ response_content = http_response.body
444
+ unless status_code == 200
445
+ error_model = JSON.load(response_content)
446
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
447
+ end
448
+
449
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
450
+ # Deserialize Response
451
+ if status_code == 200
452
+ begin
453
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
454
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::NetworkWatcherListResult.mapper()
455
+ result.body = @client.deserialize(result_mapper, parsed_response)
456
+ rescue Exception => e
457
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
458
+ end
459
+ end
460
+
461
+ result
462
+ end
463
+
464
+ promise.execute
465
+ end
466
+
467
+ #
468
+ # Gets all network watchers by subscription.
469
+ #
470
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
471
+ # will be added to the HTTP request.
472
+ #
473
+ # @return [NetworkWatcherListResult] operation results.
474
+ #
475
+ def list_all(custom_headers:nil)
476
+ response = list_all_async(custom_headers:custom_headers).value!
477
+ response.body unless response.nil?
478
+ end
479
+
480
+ #
481
+ # Gets all network watchers by subscription.
482
+ #
483
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
484
+ # will be added to the HTTP request.
485
+ #
486
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
487
+ #
488
+ def list_all_with_http_info(custom_headers:nil)
489
+ list_all_async(custom_headers:custom_headers).value!
490
+ end
491
+
492
+ #
493
+ # Gets all network watchers by subscription.
494
+ #
495
+ # @param [Hash{String => String}] A hash of custom headers that will be added
496
+ # to the HTTP request.
497
+ #
498
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
499
+ #
500
+ def list_all_async(custom_headers:nil)
501
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
502
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
503
+
504
+
505
+ request_headers = {}
506
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
507
+
508
+ # Set Headers
509
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
510
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
511
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/networkWatchers'
512
+
513
+ request_url = @base_url || @client.base_url
514
+
515
+ options = {
516
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
517
+ path_params: {'subscriptionId' => @client.subscription_id},
518
+ query_params: {'api-version' => @client.api_version},
519
+ headers: request_headers.merge(custom_headers || {}),
520
+ base_url: request_url
521
+ }
522
+ promise = @client.make_request_async(:get, path_template, options)
523
+
524
+ promise = promise.then do |result|
525
+ http_response = result.response
526
+ status_code = http_response.status
527
+ response_content = http_response.body
528
+ unless status_code == 200
529
+ error_model = JSON.load(response_content)
530
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
531
+ end
532
+
533
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
534
+ # Deserialize Response
535
+ if status_code == 200
536
+ begin
537
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
538
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::NetworkWatcherListResult.mapper()
539
+ result.body = @client.deserialize(result_mapper, parsed_response)
540
+ rescue Exception => e
541
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
542
+ end
543
+ end
544
+
545
+ result
546
+ end
547
+
548
+ promise.execute
549
+ end
550
+
551
+ #
552
+ # Gets the current network topology by resource group.
553
+ #
554
+ # @param resource_group_name [String] The name of the resource group.
555
+ # @param network_watcher_name [String] The name of the network watcher.
556
+ # @param parameters [TopologyParameters] Parameters that define the
557
+ # representation of topology.
558
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
559
+ # will be added to the HTTP request.
560
+ #
561
+ # @return [Topology] operation results.
562
+ #
563
+ def get_topology(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
564
+ response = get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
565
+ response.body unless response.nil?
566
+ end
567
+
568
+ #
569
+ # Gets the current network topology by resource group.
570
+ #
571
+ # @param resource_group_name [String] The name of the resource group.
572
+ # @param network_watcher_name [String] The name of the network watcher.
573
+ # @param parameters [TopologyParameters] Parameters that define the
574
+ # representation of topology.
575
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
576
+ # will be added to the HTTP request.
577
+ #
578
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
579
+ #
580
+ def get_topology_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
581
+ get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
582
+ end
583
+
584
+ #
585
+ # Gets the current network topology by resource group.
586
+ #
587
+ # @param resource_group_name [String] The name of the resource group.
588
+ # @param network_watcher_name [String] The name of the network watcher.
589
+ # @param parameters [TopologyParameters] Parameters that define the
590
+ # representation of topology.
591
+ # @param [Hash{String => String}] A hash of custom headers that will be added
592
+ # to the HTTP request.
593
+ #
594
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
595
+ #
596
+ def get_topology_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
597
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
598
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
599
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
600
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
601
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
602
+
603
+
604
+ request_headers = {}
605
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
606
+
607
+ # Set Headers
608
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
609
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
610
+
611
+ # Serialize Request
612
+ request_mapper = Azure::Network::Mgmt::V2018_01_01::Models::TopologyParameters.mapper()
613
+ request_content = @client.serialize(request_mapper, parameters)
614
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
615
+
616
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/topology'
617
+
618
+ request_url = @base_url || @client.base_url
619
+
620
+ options = {
621
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
622
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
623
+ query_params: {'api-version' => @client.api_version},
624
+ body: request_content,
625
+ headers: request_headers.merge(custom_headers || {}),
626
+ base_url: request_url
627
+ }
628
+ promise = @client.make_request_async(:post, path_template, options)
629
+
630
+ promise = promise.then do |result|
631
+ http_response = result.response
632
+ status_code = http_response.status
633
+ response_content = http_response.body
634
+ unless status_code == 200
635
+ error_model = JSON.load(response_content)
636
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
637
+ end
638
+
639
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
640
+ # Deserialize Response
641
+ if status_code == 200
642
+ begin
643
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
644
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::Topology.mapper()
645
+ result.body = @client.deserialize(result_mapper, parsed_response)
646
+ rescue Exception => e
647
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
648
+ end
649
+ end
650
+
651
+ result
652
+ end
653
+
654
+ promise.execute
655
+ end
656
+
657
+ #
658
+ # Verify IP flow from the specified VM to a location given the currently
659
+ # configured NSG rules.
660
+ #
661
+ # @param resource_group_name [String] The name of the resource group.
662
+ # @param network_watcher_name [String] The name of the network watcher.
663
+ # @param parameters [VerificationIPFlowParameters] Parameters that define the
664
+ # IP flow to be verified.
665
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
666
+ # will be added to the HTTP request.
667
+ #
668
+ # @return [VerificationIPFlowResult] operation results.
669
+ #
670
+ def verify_ipflow(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
671
+ response = verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
672
+ response.body unless response.nil?
673
+ end
674
+
675
+ #
676
+ # @param resource_group_name [String] The name of the resource group.
677
+ # @param network_watcher_name [String] The name of the network watcher.
678
+ # @param parameters [VerificationIPFlowParameters] Parameters that define the
679
+ # IP flow to be verified.
680
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
681
+ # will be added to the HTTP request.
682
+ #
683
+ # @return [Concurrent::Promise] promise which provides async access to http
684
+ # response.
685
+ #
686
+ def verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
687
+ # Send request
688
+ promise = begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers)
689
+
690
+ promise = promise.then do |response|
691
+ # Defining deserialization method.
692
+ deserialize_method = lambda do |parsed_response|
693
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::VerificationIPFlowResult.mapper()
694
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
695
+ end
696
+
697
+ # Waiting for response.
698
+ @client.get_long_running_operation_result(response, deserialize_method)
699
+ end
700
+
701
+ promise
702
+ end
703
+
704
+ #
705
+ # Gets the next hop from the specified VM.
706
+ #
707
+ # @param resource_group_name [String] The name of the resource group.
708
+ # @param network_watcher_name [String] The name of the network watcher.
709
+ # @param parameters [NextHopParameters] Parameters that define the source and
710
+ # destination endpoint.
711
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
712
+ # will be added to the HTTP request.
713
+ #
714
+ # @return [NextHopResult] operation results.
715
+ #
716
+ def get_next_hop(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
717
+ response = get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
718
+ response.body unless response.nil?
719
+ end
720
+
721
+ #
722
+ # @param resource_group_name [String] The name of the resource group.
723
+ # @param network_watcher_name [String] The name of the network watcher.
724
+ # @param parameters [NextHopParameters] Parameters that define the source and
725
+ # destination endpoint.
726
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
727
+ # will be added to the HTTP request.
728
+ #
729
+ # @return [Concurrent::Promise] promise which provides async access to http
730
+ # response.
731
+ #
732
+ def get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
733
+ # Send request
734
+ promise = begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers)
735
+
736
+ promise = promise.then do |response|
737
+ # Defining deserialization method.
738
+ deserialize_method = lambda do |parsed_response|
739
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::NextHopResult.mapper()
740
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
741
+ end
742
+
743
+ # Waiting for response.
744
+ @client.get_long_running_operation_result(response, deserialize_method)
745
+ end
746
+
747
+ promise
748
+ end
749
+
750
+ #
751
+ # Gets the configured and effective security group rules on the specified VM.
752
+ #
753
+ # @param resource_group_name [String] The name of the resource group.
754
+ # @param network_watcher_name [String] The name of the network watcher.
755
+ # @param parameters [SecurityGroupViewParameters] Parameters that define the VM
756
+ # to check security groups for.
757
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
758
+ # will be added to the HTTP request.
759
+ #
760
+ # @return [SecurityGroupViewResult] operation results.
761
+ #
762
+ def get_vmsecurity_rules(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
763
+ response = get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
764
+ response.body unless response.nil?
765
+ end
766
+
767
+ #
768
+ # @param resource_group_name [String] The name of the resource group.
769
+ # @param network_watcher_name [String] The name of the network watcher.
770
+ # @param parameters [SecurityGroupViewParameters] Parameters that define the VM
771
+ # to check security groups for.
772
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
773
+ # will be added to the HTTP request.
774
+ #
775
+ # @return [Concurrent::Promise] promise which provides async access to http
776
+ # response.
777
+ #
778
+ def get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
779
+ # Send request
780
+ promise = begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers)
781
+
782
+ promise = promise.then do |response|
783
+ # Defining deserialization method.
784
+ deserialize_method = lambda do |parsed_response|
785
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::SecurityGroupViewResult.mapper()
786
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
787
+ end
788
+
789
+ # Waiting for response.
790
+ @client.get_long_running_operation_result(response, deserialize_method)
791
+ end
792
+
793
+ promise
794
+ end
795
+
796
+ #
797
+ # Initiate troubleshooting on a specified resource
798
+ #
799
+ # @param resource_group_name [String] The name of the resource group.
800
+ # @param network_watcher_name [String] The name of the network watcher
801
+ # resource.
802
+ # @param parameters [TroubleshootingParameters] Parameters that define the
803
+ # resource to troubleshoot.
804
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
805
+ # will be added to the HTTP request.
806
+ #
807
+ # @return [TroubleshootingResult] operation results.
808
+ #
809
+ def get_troubleshooting(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
810
+ response = get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
811
+ response.body unless response.nil?
812
+ end
813
+
814
+ #
815
+ # @param resource_group_name [String] The name of the resource group.
816
+ # @param network_watcher_name [String] The name of the network watcher
817
+ # resource.
818
+ # @param parameters [TroubleshootingParameters] Parameters that define the
819
+ # resource to troubleshoot.
820
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
821
+ # will be added to the HTTP request.
822
+ #
823
+ # @return [Concurrent::Promise] promise which provides async access to http
824
+ # response.
825
+ #
826
+ def get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
827
+ # Send request
828
+ promise = begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers)
829
+
830
+ promise = promise.then do |response|
831
+ # Defining deserialization method.
832
+ deserialize_method = lambda do |parsed_response|
833
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::TroubleshootingResult.mapper()
834
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
835
+ end
836
+
837
+ # Waiting for response.
838
+ @client.get_long_running_operation_result(response, deserialize_method)
839
+ end
840
+
841
+ promise
842
+ end
843
+
844
+ #
845
+ # Get the last completed troubleshooting result on a specified resource
846
+ #
847
+ # @param resource_group_name [String] The name of the resource group.
848
+ # @param network_watcher_name [String] The name of the network watcher
849
+ # resource.
850
+ # @param parameters [QueryTroubleshootingParameters] Parameters that define the
851
+ # resource to query the troubleshooting result.
852
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
853
+ # will be added to the HTTP request.
854
+ #
855
+ # @return [TroubleshootingResult] operation results.
856
+ #
857
+ def get_troubleshooting_result(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
858
+ response = get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
859
+ response.body unless response.nil?
860
+ end
861
+
862
+ #
863
+ # @param resource_group_name [String] The name of the resource group.
864
+ # @param network_watcher_name [String] The name of the network watcher
865
+ # resource.
866
+ # @param parameters [QueryTroubleshootingParameters] Parameters that define the
867
+ # resource to query the troubleshooting result.
868
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
869
+ # will be added to the HTTP request.
870
+ #
871
+ # @return [Concurrent::Promise] promise which provides async access to http
872
+ # response.
873
+ #
874
+ def get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
875
+ # Send request
876
+ promise = begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers)
877
+
878
+ promise = promise.then do |response|
879
+ # Defining deserialization method.
880
+ deserialize_method = lambda do |parsed_response|
881
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::TroubleshootingResult.mapper()
882
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
883
+ end
884
+
885
+ # Waiting for response.
886
+ @client.get_long_running_operation_result(response, deserialize_method)
887
+ end
888
+
889
+ promise
890
+ end
891
+
892
+ #
893
+ # Configures flow log on a specified resource.
894
+ #
895
+ # @param resource_group_name [String] The name of the network watcher resource
896
+ # group.
897
+ # @param network_watcher_name [String] The name of the network watcher
898
+ # resource.
899
+ # @param parameters [FlowLogInformation] Parameters that define the
900
+ # configuration of flow log.
901
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
902
+ # will be added to the HTTP request.
903
+ #
904
+ # @return [FlowLogInformation] operation results.
905
+ #
906
+ def set_flow_log_configuration(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
907
+ response = set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
908
+ response.body unless response.nil?
909
+ end
910
+
911
+ #
912
+ # @param resource_group_name [String] The name of the network watcher resource
913
+ # group.
914
+ # @param network_watcher_name [String] The name of the network watcher
915
+ # resource.
916
+ # @param parameters [FlowLogInformation] Parameters that define the
917
+ # configuration of flow log.
918
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
919
+ # will be added to the HTTP request.
920
+ #
921
+ # @return [Concurrent::Promise] promise which provides async access to http
922
+ # response.
923
+ #
924
+ def set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
925
+ # Send request
926
+ promise = begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers)
927
+
928
+ promise = promise.then do |response|
929
+ # Defining deserialization method.
930
+ deserialize_method = lambda do |parsed_response|
931
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::FlowLogInformation.mapper()
932
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
933
+ end
934
+
935
+ # Waiting for response.
936
+ @client.get_long_running_operation_result(response, deserialize_method)
937
+ end
938
+
939
+ promise
940
+ end
941
+
942
+ #
943
+ # Queries status of flow log on a specified resource.
944
+ #
945
+ # @param resource_group_name [String] The name of the network watcher resource
946
+ # group.
947
+ # @param network_watcher_name [String] The name of the network watcher
948
+ # resource.
949
+ # @param parameters [FlowLogStatusParameters] Parameters that define a resource
950
+ # to query flow log status.
951
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
952
+ # will be added to the HTTP request.
953
+ #
954
+ # @return [FlowLogInformation] operation results.
955
+ #
956
+ def get_flow_log_status(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
957
+ response = get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
958
+ response.body unless response.nil?
959
+ end
960
+
961
+ #
962
+ # @param resource_group_name [String] The name of the network watcher resource
963
+ # group.
964
+ # @param network_watcher_name [String] The name of the network watcher
965
+ # resource.
966
+ # @param parameters [FlowLogStatusParameters] Parameters that define a resource
967
+ # to query flow log status.
968
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
969
+ # will be added to the HTTP request.
970
+ #
971
+ # @return [Concurrent::Promise] promise which provides async access to http
972
+ # response.
973
+ #
974
+ def get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
975
+ # Send request
976
+ promise = begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers)
977
+
978
+ promise = promise.then do |response|
979
+ # Defining deserialization method.
980
+ deserialize_method = lambda do |parsed_response|
981
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::FlowLogInformation.mapper()
982
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
983
+ end
984
+
985
+ # Waiting for response.
986
+ @client.get_long_running_operation_result(response, deserialize_method)
987
+ end
988
+
989
+ promise
990
+ end
991
+
992
+ #
993
+ # Verifies the possibility of establishing a direct TCP connection from a
994
+ # virtual machine to a given endpoint including another VM or an arbitrary
995
+ # remote server.
996
+ #
997
+ # @param resource_group_name [String] The name of the network watcher resource
998
+ # group.
999
+ # @param network_watcher_name [String] The name of the network watcher
1000
+ # resource.
1001
+ # @param parameters [ConnectivityParameters] Parameters that determine how the
1002
+ # connectivity check will be performed.
1003
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1004
+ # will be added to the HTTP request.
1005
+ #
1006
+ # @return [ConnectivityInformation] operation results.
1007
+ #
1008
+ def check_connectivity(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1009
+ response = check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1010
+ response.body unless response.nil?
1011
+ end
1012
+
1013
+ #
1014
+ # @param resource_group_name [String] The name of the network watcher resource
1015
+ # group.
1016
+ # @param network_watcher_name [String] The name of the network watcher
1017
+ # resource.
1018
+ # @param parameters [ConnectivityParameters] Parameters that determine how the
1019
+ # connectivity check will be performed.
1020
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1021
+ # will be added to the HTTP request.
1022
+ #
1023
+ # @return [Concurrent::Promise] promise which provides async access to http
1024
+ # response.
1025
+ #
1026
+ def check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1027
+ # Send request
1028
+ promise = begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers)
1029
+
1030
+ promise = promise.then do |response|
1031
+ # Defining deserialization method.
1032
+ deserialize_method = lambda do |parsed_response|
1033
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::ConnectivityInformation.mapper()
1034
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
1035
+ end
1036
+
1037
+ # Waiting for response.
1038
+ @client.get_long_running_operation_result(response, deserialize_method)
1039
+ end
1040
+
1041
+ promise
1042
+ end
1043
+
1044
+ #
1045
+ # Gets the relative latency score for internet service providers from a
1046
+ # specified location to Azure regions.
1047
+ #
1048
+ # @param resource_group_name [String] The name of the network watcher resource
1049
+ # group.
1050
+ # @param network_watcher_name [String] The name of the network watcher
1051
+ # resource.
1052
+ # @param parameters [AzureReachabilityReportParameters] Parameters that
1053
+ # determine Azure reachability report configuration.
1054
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1055
+ # will be added to the HTTP request.
1056
+ #
1057
+ # @return [AzureReachabilityReport] operation results.
1058
+ #
1059
+ def get_azure_reachability_report(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1060
+ response = get_azure_reachability_report_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1061
+ response.body unless response.nil?
1062
+ end
1063
+
1064
+ #
1065
+ # @param resource_group_name [String] The name of the network watcher resource
1066
+ # group.
1067
+ # @param network_watcher_name [String] The name of the network watcher
1068
+ # resource.
1069
+ # @param parameters [AzureReachabilityReportParameters] Parameters that
1070
+ # determine Azure reachability report configuration.
1071
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1072
+ # will be added to the HTTP request.
1073
+ #
1074
+ # @return [Concurrent::Promise] promise which provides async access to http
1075
+ # response.
1076
+ #
1077
+ def get_azure_reachability_report_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1078
+ # Send request
1079
+ promise = begin_get_azure_reachability_report_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers)
1080
+
1081
+ promise = promise.then do |response|
1082
+ # Defining deserialization method.
1083
+ deserialize_method = lambda do |parsed_response|
1084
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::AzureReachabilityReport.mapper()
1085
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
1086
+ end
1087
+
1088
+ # Waiting for response.
1089
+ @client.get_long_running_operation_result(response, deserialize_method)
1090
+ end
1091
+
1092
+ promise
1093
+ end
1094
+
1095
+ #
1096
+ # Lists all available internet service providers for a specified Azure region.
1097
+ #
1098
+ # @param resource_group_name [String] The name of the network watcher resource
1099
+ # group.
1100
+ # @param network_watcher_name [String] The name of the network watcher
1101
+ # resource.
1102
+ # @param parameters [AvailableProvidersListParameters] Parameters that scope
1103
+ # the list of available providers.
1104
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1105
+ # will be added to the HTTP request.
1106
+ #
1107
+ # @return [AvailableProvidersList] operation results.
1108
+ #
1109
+ def list_available_providers(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1110
+ response = list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1111
+ response.body unless response.nil?
1112
+ end
1113
+
1114
+ #
1115
+ # @param resource_group_name [String] The name of the network watcher resource
1116
+ # group.
1117
+ # @param network_watcher_name [String] The name of the network watcher
1118
+ # resource.
1119
+ # @param parameters [AvailableProvidersListParameters] Parameters that scope
1120
+ # the list of available providers.
1121
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1122
+ # will be added to the HTTP request.
1123
+ #
1124
+ # @return [Concurrent::Promise] promise which provides async access to http
1125
+ # response.
1126
+ #
1127
+ def list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1128
+ # Send request
1129
+ promise = begin_list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers)
1130
+
1131
+ promise = promise.then do |response|
1132
+ # Defining deserialization method.
1133
+ deserialize_method = lambda do |parsed_response|
1134
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::AvailableProvidersList.mapper()
1135
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
1136
+ end
1137
+
1138
+ # Waiting for response.
1139
+ @client.get_long_running_operation_result(response, deserialize_method)
1140
+ end
1141
+
1142
+ promise
1143
+ end
1144
+
1145
+ #
1146
+ # Deletes the specified network watcher resource.
1147
+ #
1148
+ # @param resource_group_name [String] The name of the resource group.
1149
+ # @param network_watcher_name [String] The name of the network watcher.
1150
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1151
+ # will be added to the HTTP request.
1152
+ #
1153
+ #
1154
+ def begin_delete(resource_group_name, network_watcher_name, custom_headers:nil)
1155
+ response = begin_delete_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value!
1156
+ nil
1157
+ end
1158
+
1159
+ #
1160
+ # Deletes the specified network watcher resource.
1161
+ #
1162
+ # @param resource_group_name [String] The name of the resource group.
1163
+ # @param network_watcher_name [String] The name of the network watcher.
1164
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1165
+ # will be added to the HTTP request.
1166
+ #
1167
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1168
+ #
1169
+ def begin_delete_with_http_info(resource_group_name, network_watcher_name, custom_headers:nil)
1170
+ begin_delete_async(resource_group_name, network_watcher_name, custom_headers:custom_headers).value!
1171
+ end
1172
+
1173
+ #
1174
+ # Deletes the specified network watcher resource.
1175
+ #
1176
+ # @param resource_group_name [String] The name of the resource group.
1177
+ # @param network_watcher_name [String] The name of the network watcher.
1178
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1179
+ # to the HTTP request.
1180
+ #
1181
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1182
+ #
1183
+ def begin_delete_async(resource_group_name, network_watcher_name, custom_headers:nil)
1184
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1185
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
1186
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1187
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1188
+
1189
+
1190
+ request_headers = {}
1191
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1192
+
1193
+ # Set Headers
1194
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1195
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1196
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}'
1197
+
1198
+ request_url = @base_url || @client.base_url
1199
+
1200
+ options = {
1201
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1202
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
1203
+ query_params: {'api-version' => @client.api_version},
1204
+ headers: request_headers.merge(custom_headers || {}),
1205
+ base_url: request_url
1206
+ }
1207
+ promise = @client.make_request_async(:delete, path_template, options)
1208
+
1209
+ promise = promise.then do |result|
1210
+ http_response = result.response
1211
+ status_code = http_response.status
1212
+ response_content = http_response.body
1213
+ unless status_code == 202 || status_code == 204
1214
+ error_model = JSON.load(response_content)
1215
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1216
+ end
1217
+
1218
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1219
+
1220
+ result
1221
+ end
1222
+
1223
+ promise.execute
1224
+ end
1225
+
1226
+ #
1227
+ # Verify IP flow from the specified VM to a location given the currently
1228
+ # configured NSG rules.
1229
+ #
1230
+ # @param resource_group_name [String] The name of the resource group.
1231
+ # @param network_watcher_name [String] The name of the network watcher.
1232
+ # @param parameters [VerificationIPFlowParameters] Parameters that define the
1233
+ # IP flow to be verified.
1234
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1235
+ # will be added to the HTTP request.
1236
+ #
1237
+ # @return [VerificationIPFlowResult] operation results.
1238
+ #
1239
+ def begin_verify_ipflow(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1240
+ response = begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1241
+ response.body unless response.nil?
1242
+ end
1243
+
1244
+ #
1245
+ # Verify IP flow from the specified VM to a location given the currently
1246
+ # configured NSG rules.
1247
+ #
1248
+ # @param resource_group_name [String] The name of the resource group.
1249
+ # @param network_watcher_name [String] The name of the network watcher.
1250
+ # @param parameters [VerificationIPFlowParameters] Parameters that define the
1251
+ # IP flow to be verified.
1252
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1253
+ # will be added to the HTTP request.
1254
+ #
1255
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1256
+ #
1257
+ def begin_verify_ipflow_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1258
+ begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1259
+ end
1260
+
1261
+ #
1262
+ # Verify IP flow from the specified VM to a location given the currently
1263
+ # configured NSG rules.
1264
+ #
1265
+ # @param resource_group_name [String] The name of the resource group.
1266
+ # @param network_watcher_name [String] The name of the network watcher.
1267
+ # @param parameters [VerificationIPFlowParameters] Parameters that define the
1268
+ # IP flow to be verified.
1269
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1270
+ # to the HTTP request.
1271
+ #
1272
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1273
+ #
1274
+ def begin_verify_ipflow_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1275
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1276
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
1277
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1278
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1279
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1280
+
1281
+
1282
+ request_headers = {}
1283
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1284
+
1285
+ # Set Headers
1286
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1287
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1288
+
1289
+ # Serialize Request
1290
+ request_mapper = Azure::Network::Mgmt::V2018_01_01::Models::VerificationIPFlowParameters.mapper()
1291
+ request_content = @client.serialize(request_mapper, parameters)
1292
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1293
+
1294
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/ipFlowVerify'
1295
+
1296
+ request_url = @base_url || @client.base_url
1297
+
1298
+ options = {
1299
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1300
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
1301
+ query_params: {'api-version' => @client.api_version},
1302
+ body: request_content,
1303
+ headers: request_headers.merge(custom_headers || {}),
1304
+ base_url: request_url
1305
+ }
1306
+ promise = @client.make_request_async(:post, path_template, options)
1307
+
1308
+ promise = promise.then do |result|
1309
+ http_response = result.response
1310
+ status_code = http_response.status
1311
+ response_content = http_response.body
1312
+ unless status_code == 200 || status_code == 202
1313
+ error_model = JSON.load(response_content)
1314
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1315
+ end
1316
+
1317
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1318
+ # Deserialize Response
1319
+ if status_code == 200
1320
+ begin
1321
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1322
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::VerificationIPFlowResult.mapper()
1323
+ result.body = @client.deserialize(result_mapper, parsed_response)
1324
+ rescue Exception => e
1325
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1326
+ end
1327
+ end
1328
+ # Deserialize Response
1329
+ if status_code == 202
1330
+ begin
1331
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1332
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::VerificationIPFlowResult.mapper()
1333
+ result.body = @client.deserialize(result_mapper, parsed_response)
1334
+ rescue Exception => e
1335
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1336
+ end
1337
+ end
1338
+
1339
+ result
1340
+ end
1341
+
1342
+ promise.execute
1343
+ end
1344
+
1345
+ #
1346
+ # Gets the next hop from the specified VM.
1347
+ #
1348
+ # @param resource_group_name [String] The name of the resource group.
1349
+ # @param network_watcher_name [String] The name of the network watcher.
1350
+ # @param parameters [NextHopParameters] Parameters that define the source and
1351
+ # destination endpoint.
1352
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1353
+ # will be added to the HTTP request.
1354
+ #
1355
+ # @return [NextHopResult] operation results.
1356
+ #
1357
+ def begin_get_next_hop(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1358
+ response = begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1359
+ response.body unless response.nil?
1360
+ end
1361
+
1362
+ #
1363
+ # Gets the next hop from the specified VM.
1364
+ #
1365
+ # @param resource_group_name [String] The name of the resource group.
1366
+ # @param network_watcher_name [String] The name of the network watcher.
1367
+ # @param parameters [NextHopParameters] Parameters that define the source and
1368
+ # destination endpoint.
1369
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1370
+ # will be added to the HTTP request.
1371
+ #
1372
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1373
+ #
1374
+ def begin_get_next_hop_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1375
+ begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1376
+ end
1377
+
1378
+ #
1379
+ # Gets the next hop from the specified VM.
1380
+ #
1381
+ # @param resource_group_name [String] The name of the resource group.
1382
+ # @param network_watcher_name [String] The name of the network watcher.
1383
+ # @param parameters [NextHopParameters] Parameters that define the source and
1384
+ # destination endpoint.
1385
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1386
+ # to the HTTP request.
1387
+ #
1388
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1389
+ #
1390
+ def begin_get_next_hop_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1391
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1392
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
1393
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1394
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1395
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1396
+
1397
+
1398
+ request_headers = {}
1399
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1400
+
1401
+ # Set Headers
1402
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1403
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1404
+
1405
+ # Serialize Request
1406
+ request_mapper = Azure::Network::Mgmt::V2018_01_01::Models::NextHopParameters.mapper()
1407
+ request_content = @client.serialize(request_mapper, parameters)
1408
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1409
+
1410
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/nextHop'
1411
+
1412
+ request_url = @base_url || @client.base_url
1413
+
1414
+ options = {
1415
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1416
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
1417
+ query_params: {'api-version' => @client.api_version},
1418
+ body: request_content,
1419
+ headers: request_headers.merge(custom_headers || {}),
1420
+ base_url: request_url
1421
+ }
1422
+ promise = @client.make_request_async(:post, path_template, options)
1423
+
1424
+ promise = promise.then do |result|
1425
+ http_response = result.response
1426
+ status_code = http_response.status
1427
+ response_content = http_response.body
1428
+ unless status_code == 200 || status_code == 202
1429
+ error_model = JSON.load(response_content)
1430
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1431
+ end
1432
+
1433
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1434
+ # Deserialize Response
1435
+ if status_code == 200
1436
+ begin
1437
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1438
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::NextHopResult.mapper()
1439
+ result.body = @client.deserialize(result_mapper, parsed_response)
1440
+ rescue Exception => e
1441
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1442
+ end
1443
+ end
1444
+ # Deserialize Response
1445
+ if status_code == 202
1446
+ begin
1447
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1448
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::NextHopResult.mapper()
1449
+ result.body = @client.deserialize(result_mapper, parsed_response)
1450
+ rescue Exception => e
1451
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1452
+ end
1453
+ end
1454
+
1455
+ result
1456
+ end
1457
+
1458
+ promise.execute
1459
+ end
1460
+
1461
+ #
1462
+ # Gets the configured and effective security group rules on the specified VM.
1463
+ #
1464
+ # @param resource_group_name [String] The name of the resource group.
1465
+ # @param network_watcher_name [String] The name of the network watcher.
1466
+ # @param parameters [SecurityGroupViewParameters] Parameters that define the VM
1467
+ # to check security groups for.
1468
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1469
+ # will be added to the HTTP request.
1470
+ #
1471
+ # @return [SecurityGroupViewResult] operation results.
1472
+ #
1473
+ def begin_get_vmsecurity_rules(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1474
+ response = begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1475
+ response.body unless response.nil?
1476
+ end
1477
+
1478
+ #
1479
+ # Gets the configured and effective security group rules on the specified VM.
1480
+ #
1481
+ # @param resource_group_name [String] The name of the resource group.
1482
+ # @param network_watcher_name [String] The name of the network watcher.
1483
+ # @param parameters [SecurityGroupViewParameters] Parameters that define the VM
1484
+ # to check security groups for.
1485
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1486
+ # will be added to the HTTP request.
1487
+ #
1488
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1489
+ #
1490
+ def begin_get_vmsecurity_rules_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1491
+ begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1492
+ end
1493
+
1494
+ #
1495
+ # Gets the configured and effective security group rules on the specified VM.
1496
+ #
1497
+ # @param resource_group_name [String] The name of the resource group.
1498
+ # @param network_watcher_name [String] The name of the network watcher.
1499
+ # @param parameters [SecurityGroupViewParameters] Parameters that define the VM
1500
+ # to check security groups for.
1501
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1502
+ # to the HTTP request.
1503
+ #
1504
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1505
+ #
1506
+ def begin_get_vmsecurity_rules_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1507
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1508
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
1509
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1510
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1511
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1512
+
1513
+
1514
+ request_headers = {}
1515
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1516
+
1517
+ # Set Headers
1518
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1519
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1520
+
1521
+ # Serialize Request
1522
+ request_mapper = Azure::Network::Mgmt::V2018_01_01::Models::SecurityGroupViewParameters.mapper()
1523
+ request_content = @client.serialize(request_mapper, parameters)
1524
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1525
+
1526
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/securityGroupView'
1527
+
1528
+ request_url = @base_url || @client.base_url
1529
+
1530
+ options = {
1531
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1532
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
1533
+ query_params: {'api-version' => @client.api_version},
1534
+ body: request_content,
1535
+ headers: request_headers.merge(custom_headers || {}),
1536
+ base_url: request_url
1537
+ }
1538
+ promise = @client.make_request_async(:post, path_template, options)
1539
+
1540
+ promise = promise.then do |result|
1541
+ http_response = result.response
1542
+ status_code = http_response.status
1543
+ response_content = http_response.body
1544
+ unless status_code == 200 || status_code == 202
1545
+ error_model = JSON.load(response_content)
1546
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1547
+ end
1548
+
1549
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1550
+ # Deserialize Response
1551
+ if status_code == 200
1552
+ begin
1553
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1554
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::SecurityGroupViewResult.mapper()
1555
+ result.body = @client.deserialize(result_mapper, parsed_response)
1556
+ rescue Exception => e
1557
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1558
+ end
1559
+ end
1560
+ # Deserialize Response
1561
+ if status_code == 202
1562
+ begin
1563
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1564
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::SecurityGroupViewResult.mapper()
1565
+ result.body = @client.deserialize(result_mapper, parsed_response)
1566
+ rescue Exception => e
1567
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1568
+ end
1569
+ end
1570
+
1571
+ result
1572
+ end
1573
+
1574
+ promise.execute
1575
+ end
1576
+
1577
+ #
1578
+ # Initiate troubleshooting on a specified resource
1579
+ #
1580
+ # @param resource_group_name [String] The name of the resource group.
1581
+ # @param network_watcher_name [String] The name of the network watcher
1582
+ # resource.
1583
+ # @param parameters [TroubleshootingParameters] Parameters that define the
1584
+ # resource to troubleshoot.
1585
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1586
+ # will be added to the HTTP request.
1587
+ #
1588
+ # @return [TroubleshootingResult] operation results.
1589
+ #
1590
+ def begin_get_troubleshooting(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1591
+ response = begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1592
+ response.body unless response.nil?
1593
+ end
1594
+
1595
+ #
1596
+ # Initiate troubleshooting on a specified resource
1597
+ #
1598
+ # @param resource_group_name [String] The name of the resource group.
1599
+ # @param network_watcher_name [String] The name of the network watcher
1600
+ # resource.
1601
+ # @param parameters [TroubleshootingParameters] Parameters that define the
1602
+ # resource to troubleshoot.
1603
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1604
+ # will be added to the HTTP request.
1605
+ #
1606
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1607
+ #
1608
+ def begin_get_troubleshooting_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1609
+ begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1610
+ end
1611
+
1612
+ #
1613
+ # Initiate troubleshooting on a specified resource
1614
+ #
1615
+ # @param resource_group_name [String] The name of the resource group.
1616
+ # @param network_watcher_name [String] The name of the network watcher
1617
+ # resource.
1618
+ # @param parameters [TroubleshootingParameters] Parameters that define the
1619
+ # resource to troubleshoot.
1620
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1621
+ # to the HTTP request.
1622
+ #
1623
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1624
+ #
1625
+ def begin_get_troubleshooting_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1626
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1627
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
1628
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1629
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1630
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1631
+
1632
+
1633
+ request_headers = {}
1634
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1635
+
1636
+ # Set Headers
1637
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1638
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1639
+
1640
+ # Serialize Request
1641
+ request_mapper = Azure::Network::Mgmt::V2018_01_01::Models::TroubleshootingParameters.mapper()
1642
+ request_content = @client.serialize(request_mapper, parameters)
1643
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1644
+
1645
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/troubleshoot'
1646
+
1647
+ request_url = @base_url || @client.base_url
1648
+
1649
+ options = {
1650
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1651
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
1652
+ query_params: {'api-version' => @client.api_version},
1653
+ body: request_content,
1654
+ headers: request_headers.merge(custom_headers || {}),
1655
+ base_url: request_url
1656
+ }
1657
+ promise = @client.make_request_async(:post, path_template, options)
1658
+
1659
+ promise = promise.then do |result|
1660
+ http_response = result.response
1661
+ status_code = http_response.status
1662
+ response_content = http_response.body
1663
+ unless status_code == 200 || status_code == 202
1664
+ error_model = JSON.load(response_content)
1665
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1666
+ end
1667
+
1668
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1669
+ # Deserialize Response
1670
+ if status_code == 200
1671
+ begin
1672
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1673
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::TroubleshootingResult.mapper()
1674
+ result.body = @client.deserialize(result_mapper, parsed_response)
1675
+ rescue Exception => e
1676
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1677
+ end
1678
+ end
1679
+ # Deserialize Response
1680
+ if status_code == 202
1681
+ begin
1682
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1683
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::TroubleshootingResult.mapper()
1684
+ result.body = @client.deserialize(result_mapper, parsed_response)
1685
+ rescue Exception => e
1686
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1687
+ end
1688
+ end
1689
+
1690
+ result
1691
+ end
1692
+
1693
+ promise.execute
1694
+ end
1695
+
1696
+ #
1697
+ # Get the last completed troubleshooting result on a specified resource
1698
+ #
1699
+ # @param resource_group_name [String] The name of the resource group.
1700
+ # @param network_watcher_name [String] The name of the network watcher
1701
+ # resource.
1702
+ # @param parameters [QueryTroubleshootingParameters] Parameters that define the
1703
+ # resource to query the troubleshooting result.
1704
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1705
+ # will be added to the HTTP request.
1706
+ #
1707
+ # @return [TroubleshootingResult] operation results.
1708
+ #
1709
+ def begin_get_troubleshooting_result(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1710
+ response = begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1711
+ response.body unless response.nil?
1712
+ end
1713
+
1714
+ #
1715
+ # Get the last completed troubleshooting result on a specified resource
1716
+ #
1717
+ # @param resource_group_name [String] The name of the resource group.
1718
+ # @param network_watcher_name [String] The name of the network watcher
1719
+ # resource.
1720
+ # @param parameters [QueryTroubleshootingParameters] Parameters that define the
1721
+ # resource to query the troubleshooting result.
1722
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1723
+ # will be added to the HTTP request.
1724
+ #
1725
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1726
+ #
1727
+ def begin_get_troubleshooting_result_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1728
+ begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1729
+ end
1730
+
1731
+ #
1732
+ # Get the last completed troubleshooting result on a specified resource
1733
+ #
1734
+ # @param resource_group_name [String] The name of the resource group.
1735
+ # @param network_watcher_name [String] The name of the network watcher
1736
+ # resource.
1737
+ # @param parameters [QueryTroubleshootingParameters] Parameters that define the
1738
+ # resource to query the troubleshooting result.
1739
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1740
+ # to the HTTP request.
1741
+ #
1742
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1743
+ #
1744
+ def begin_get_troubleshooting_result_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1745
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1746
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
1747
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1748
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1749
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1750
+
1751
+
1752
+ request_headers = {}
1753
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1754
+
1755
+ # Set Headers
1756
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1757
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1758
+
1759
+ # Serialize Request
1760
+ request_mapper = Azure::Network::Mgmt::V2018_01_01::Models::QueryTroubleshootingParameters.mapper()
1761
+ request_content = @client.serialize(request_mapper, parameters)
1762
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1763
+
1764
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryTroubleshootResult'
1765
+
1766
+ request_url = @base_url || @client.base_url
1767
+
1768
+ options = {
1769
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1770
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
1771
+ query_params: {'api-version' => @client.api_version},
1772
+ body: request_content,
1773
+ headers: request_headers.merge(custom_headers || {}),
1774
+ base_url: request_url
1775
+ }
1776
+ promise = @client.make_request_async(:post, path_template, options)
1777
+
1778
+ promise = promise.then do |result|
1779
+ http_response = result.response
1780
+ status_code = http_response.status
1781
+ response_content = http_response.body
1782
+ unless status_code == 200 || status_code == 202
1783
+ error_model = JSON.load(response_content)
1784
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1785
+ end
1786
+
1787
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1788
+ # Deserialize Response
1789
+ if status_code == 200
1790
+ begin
1791
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1792
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::TroubleshootingResult.mapper()
1793
+ result.body = @client.deserialize(result_mapper, parsed_response)
1794
+ rescue Exception => e
1795
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1796
+ end
1797
+ end
1798
+ # Deserialize Response
1799
+ if status_code == 202
1800
+ begin
1801
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1802
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::TroubleshootingResult.mapper()
1803
+ result.body = @client.deserialize(result_mapper, parsed_response)
1804
+ rescue Exception => e
1805
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1806
+ end
1807
+ end
1808
+
1809
+ result
1810
+ end
1811
+
1812
+ promise.execute
1813
+ end
1814
+
1815
+ #
1816
+ # Configures flow log on a specified resource.
1817
+ #
1818
+ # @param resource_group_name [String] The name of the network watcher resource
1819
+ # group.
1820
+ # @param network_watcher_name [String] The name of the network watcher
1821
+ # resource.
1822
+ # @param parameters [FlowLogInformation] Parameters that define the
1823
+ # configuration of flow log.
1824
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1825
+ # will be added to the HTTP request.
1826
+ #
1827
+ # @return [FlowLogInformation] operation results.
1828
+ #
1829
+ def begin_set_flow_log_configuration(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1830
+ response = begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1831
+ response.body unless response.nil?
1832
+ end
1833
+
1834
+ #
1835
+ # Configures flow log on a specified resource.
1836
+ #
1837
+ # @param resource_group_name [String] The name of the network watcher resource
1838
+ # group.
1839
+ # @param network_watcher_name [String] The name of the network watcher
1840
+ # resource.
1841
+ # @param parameters [FlowLogInformation] Parameters that define the
1842
+ # configuration of flow log.
1843
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1844
+ # will be added to the HTTP request.
1845
+ #
1846
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1847
+ #
1848
+ def begin_set_flow_log_configuration_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1849
+ begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1850
+ end
1851
+
1852
+ #
1853
+ # Configures flow log on a specified resource.
1854
+ #
1855
+ # @param resource_group_name [String] The name of the network watcher resource
1856
+ # group.
1857
+ # @param network_watcher_name [String] The name of the network watcher
1858
+ # resource.
1859
+ # @param parameters [FlowLogInformation] Parameters that define the
1860
+ # configuration of flow log.
1861
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1862
+ # to the HTTP request.
1863
+ #
1864
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1865
+ #
1866
+ def begin_set_flow_log_configuration_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1867
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1868
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
1869
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1870
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1871
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1872
+
1873
+
1874
+ request_headers = {}
1875
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1876
+
1877
+ # Set Headers
1878
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1879
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1880
+
1881
+ # Serialize Request
1882
+ request_mapper = Azure::Network::Mgmt::V2018_01_01::Models::FlowLogInformation.mapper()
1883
+ request_content = @client.serialize(request_mapper, parameters)
1884
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1885
+
1886
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/configureFlowLog'
1887
+
1888
+ request_url = @base_url || @client.base_url
1889
+
1890
+ options = {
1891
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1892
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
1893
+ query_params: {'api-version' => @client.api_version},
1894
+ body: request_content,
1895
+ headers: request_headers.merge(custom_headers || {}),
1896
+ base_url: request_url
1897
+ }
1898
+ promise = @client.make_request_async(:post, path_template, options)
1899
+
1900
+ promise = promise.then do |result|
1901
+ http_response = result.response
1902
+ status_code = http_response.status
1903
+ response_content = http_response.body
1904
+ unless status_code == 200 || status_code == 202
1905
+ error_model = JSON.load(response_content)
1906
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1907
+ end
1908
+
1909
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1910
+ # Deserialize Response
1911
+ if status_code == 200
1912
+ begin
1913
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1914
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::FlowLogInformation.mapper()
1915
+ result.body = @client.deserialize(result_mapper, parsed_response)
1916
+ rescue Exception => e
1917
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1918
+ end
1919
+ end
1920
+ # Deserialize Response
1921
+ if status_code == 202
1922
+ begin
1923
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1924
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::FlowLogInformation.mapper()
1925
+ result.body = @client.deserialize(result_mapper, parsed_response)
1926
+ rescue Exception => e
1927
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1928
+ end
1929
+ end
1930
+
1931
+ result
1932
+ end
1933
+
1934
+ promise.execute
1935
+ end
1936
+
1937
+ #
1938
+ # Queries status of flow log on a specified resource.
1939
+ #
1940
+ # @param resource_group_name [String] The name of the network watcher resource
1941
+ # group.
1942
+ # @param network_watcher_name [String] The name of the network watcher
1943
+ # resource.
1944
+ # @param parameters [FlowLogStatusParameters] Parameters that define a resource
1945
+ # to query flow log status.
1946
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1947
+ # will be added to the HTTP request.
1948
+ #
1949
+ # @return [FlowLogInformation] operation results.
1950
+ #
1951
+ def begin_get_flow_log_status(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1952
+ response = begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1953
+ response.body unless response.nil?
1954
+ end
1955
+
1956
+ #
1957
+ # Queries status of flow log on a specified resource.
1958
+ #
1959
+ # @param resource_group_name [String] The name of the network watcher resource
1960
+ # group.
1961
+ # @param network_watcher_name [String] The name of the network watcher
1962
+ # resource.
1963
+ # @param parameters [FlowLogStatusParameters] Parameters that define a resource
1964
+ # to query flow log status.
1965
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1966
+ # will be added to the HTTP request.
1967
+ #
1968
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1969
+ #
1970
+ def begin_get_flow_log_status_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1971
+ begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
1972
+ end
1973
+
1974
+ #
1975
+ # Queries status of flow log on a specified resource.
1976
+ #
1977
+ # @param resource_group_name [String] The name of the network watcher resource
1978
+ # group.
1979
+ # @param network_watcher_name [String] The name of the network watcher
1980
+ # resource.
1981
+ # @param parameters [FlowLogStatusParameters] Parameters that define a resource
1982
+ # to query flow log status.
1983
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1984
+ # to the HTTP request.
1985
+ #
1986
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1987
+ #
1988
+ def begin_get_flow_log_status_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
1989
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1990
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
1991
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1992
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1993
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1994
+
1995
+
1996
+ request_headers = {}
1997
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1998
+
1999
+ # Set Headers
2000
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2001
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2002
+
2003
+ # Serialize Request
2004
+ request_mapper = Azure::Network::Mgmt::V2018_01_01::Models::FlowLogStatusParameters.mapper()
2005
+ request_content = @client.serialize(request_mapper, parameters)
2006
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2007
+
2008
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryFlowLogStatus'
2009
+
2010
+ request_url = @base_url || @client.base_url
2011
+
2012
+ options = {
2013
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2014
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
2015
+ query_params: {'api-version' => @client.api_version},
2016
+ body: request_content,
2017
+ headers: request_headers.merge(custom_headers || {}),
2018
+ base_url: request_url
2019
+ }
2020
+ promise = @client.make_request_async(:post, path_template, options)
2021
+
2022
+ promise = promise.then do |result|
2023
+ http_response = result.response
2024
+ status_code = http_response.status
2025
+ response_content = http_response.body
2026
+ unless status_code == 200 || status_code == 202
2027
+ error_model = JSON.load(response_content)
2028
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2029
+ end
2030
+
2031
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2032
+ # Deserialize Response
2033
+ if status_code == 200
2034
+ begin
2035
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2036
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::FlowLogInformation.mapper()
2037
+ result.body = @client.deserialize(result_mapper, parsed_response)
2038
+ rescue Exception => e
2039
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2040
+ end
2041
+ end
2042
+ # Deserialize Response
2043
+ if status_code == 202
2044
+ begin
2045
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2046
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::FlowLogInformation.mapper()
2047
+ result.body = @client.deserialize(result_mapper, parsed_response)
2048
+ rescue Exception => e
2049
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2050
+ end
2051
+ end
2052
+
2053
+ result
2054
+ end
2055
+
2056
+ promise.execute
2057
+ end
2058
+
2059
+ #
2060
+ # Verifies the possibility of establishing a direct TCP connection from a
2061
+ # virtual machine to a given endpoint including another VM or an arbitrary
2062
+ # remote server.
2063
+ #
2064
+ # @param resource_group_name [String] The name of the network watcher resource
2065
+ # group.
2066
+ # @param network_watcher_name [String] The name of the network watcher
2067
+ # resource.
2068
+ # @param parameters [ConnectivityParameters] Parameters that determine how the
2069
+ # connectivity check will be performed.
2070
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2071
+ # will be added to the HTTP request.
2072
+ #
2073
+ # @return [ConnectivityInformation] operation results.
2074
+ #
2075
+ def begin_check_connectivity(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
2076
+ response = begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
2077
+ response.body unless response.nil?
2078
+ end
2079
+
2080
+ #
2081
+ # Verifies the possibility of establishing a direct TCP connection from a
2082
+ # virtual machine to a given endpoint including another VM or an arbitrary
2083
+ # remote server.
2084
+ #
2085
+ # @param resource_group_name [String] The name of the network watcher resource
2086
+ # group.
2087
+ # @param network_watcher_name [String] The name of the network watcher
2088
+ # resource.
2089
+ # @param parameters [ConnectivityParameters] Parameters that determine how the
2090
+ # connectivity check will be performed.
2091
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2092
+ # will be added to the HTTP request.
2093
+ #
2094
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2095
+ #
2096
+ def begin_check_connectivity_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
2097
+ begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
2098
+ end
2099
+
2100
+ #
2101
+ # Verifies the possibility of establishing a direct TCP connection from a
2102
+ # virtual machine to a given endpoint including another VM or an arbitrary
2103
+ # remote server.
2104
+ #
2105
+ # @param resource_group_name [String] The name of the network watcher resource
2106
+ # group.
2107
+ # @param network_watcher_name [String] The name of the network watcher
2108
+ # resource.
2109
+ # @param parameters [ConnectivityParameters] Parameters that determine how the
2110
+ # connectivity check will be performed.
2111
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2112
+ # to the HTTP request.
2113
+ #
2114
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2115
+ #
2116
+ def begin_check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
2117
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2118
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
2119
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
2120
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2121
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2122
+
2123
+
2124
+ request_headers = {}
2125
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2126
+
2127
+ # Set Headers
2128
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2129
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2130
+
2131
+ # Serialize Request
2132
+ request_mapper = Azure::Network::Mgmt::V2018_01_01::Models::ConnectivityParameters.mapper()
2133
+ request_content = @client.serialize(request_mapper, parameters)
2134
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2135
+
2136
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectivityCheck'
2137
+
2138
+ request_url = @base_url || @client.base_url
2139
+
2140
+ options = {
2141
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2142
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
2143
+ query_params: {'api-version' => @client.api_version},
2144
+ body: request_content,
2145
+ headers: request_headers.merge(custom_headers || {}),
2146
+ base_url: request_url
2147
+ }
2148
+ promise = @client.make_request_async(:post, path_template, options)
2149
+
2150
+ promise = promise.then do |result|
2151
+ http_response = result.response
2152
+ status_code = http_response.status
2153
+ response_content = http_response.body
2154
+ unless status_code == 200 || status_code == 202
2155
+ error_model = JSON.load(response_content)
2156
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2157
+ end
2158
+
2159
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2160
+ # Deserialize Response
2161
+ if status_code == 200
2162
+ begin
2163
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2164
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::ConnectivityInformation.mapper()
2165
+ result.body = @client.deserialize(result_mapper, parsed_response)
2166
+ rescue Exception => e
2167
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2168
+ end
2169
+ end
2170
+ # Deserialize Response
2171
+ if status_code == 202
2172
+ begin
2173
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2174
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::ConnectivityInformation.mapper()
2175
+ result.body = @client.deserialize(result_mapper, parsed_response)
2176
+ rescue Exception => e
2177
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2178
+ end
2179
+ end
2180
+
2181
+ result
2182
+ end
2183
+
2184
+ promise.execute
2185
+ end
2186
+
2187
+ #
2188
+ # Gets the relative latency score for internet service providers from a
2189
+ # specified location to Azure regions.
2190
+ #
2191
+ # @param resource_group_name [String] The name of the network watcher resource
2192
+ # group.
2193
+ # @param network_watcher_name [String] The name of the network watcher
2194
+ # resource.
2195
+ # @param parameters [AzureReachabilityReportParameters] Parameters that
2196
+ # determine Azure reachability report configuration.
2197
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2198
+ # will be added to the HTTP request.
2199
+ #
2200
+ # @return [AzureReachabilityReport] operation results.
2201
+ #
2202
+ def begin_get_azure_reachability_report(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
2203
+ response = begin_get_azure_reachability_report_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
2204
+ response.body unless response.nil?
2205
+ end
2206
+
2207
+ #
2208
+ # Gets the relative latency score for internet service providers from a
2209
+ # specified location to Azure regions.
2210
+ #
2211
+ # @param resource_group_name [String] The name of the network watcher resource
2212
+ # group.
2213
+ # @param network_watcher_name [String] The name of the network watcher
2214
+ # resource.
2215
+ # @param parameters [AzureReachabilityReportParameters] Parameters that
2216
+ # determine Azure reachability report configuration.
2217
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2218
+ # will be added to the HTTP request.
2219
+ #
2220
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2221
+ #
2222
+ def begin_get_azure_reachability_report_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
2223
+ begin_get_azure_reachability_report_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
2224
+ end
2225
+
2226
+ #
2227
+ # Gets the relative latency score for internet service providers from a
2228
+ # specified location to Azure regions.
2229
+ #
2230
+ # @param resource_group_name [String] The name of the network watcher resource
2231
+ # group.
2232
+ # @param network_watcher_name [String] The name of the network watcher
2233
+ # resource.
2234
+ # @param parameters [AzureReachabilityReportParameters] Parameters that
2235
+ # determine Azure reachability report configuration.
2236
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2237
+ # to the HTTP request.
2238
+ #
2239
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2240
+ #
2241
+ def begin_get_azure_reachability_report_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
2242
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2243
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
2244
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
2245
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2246
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2247
+
2248
+
2249
+ request_headers = {}
2250
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2251
+
2252
+ # Set Headers
2253
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2254
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2255
+
2256
+ # Serialize Request
2257
+ request_mapper = Azure::Network::Mgmt::V2018_01_01::Models::AzureReachabilityReportParameters.mapper()
2258
+ request_content = @client.serialize(request_mapper, parameters)
2259
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2260
+
2261
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/azureReachabilityReport'
2262
+
2263
+ request_url = @base_url || @client.base_url
2264
+
2265
+ options = {
2266
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2267
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
2268
+ query_params: {'api-version' => @client.api_version},
2269
+ body: request_content,
2270
+ headers: request_headers.merge(custom_headers || {}),
2271
+ base_url: request_url
2272
+ }
2273
+ promise = @client.make_request_async(:post, path_template, options)
2274
+
2275
+ promise = promise.then do |result|
2276
+ http_response = result.response
2277
+ status_code = http_response.status
2278
+ response_content = http_response.body
2279
+ unless status_code == 200 || status_code == 202
2280
+ error_model = JSON.load(response_content)
2281
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2282
+ end
2283
+
2284
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2285
+ # Deserialize Response
2286
+ if status_code == 200
2287
+ begin
2288
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2289
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::AzureReachabilityReport.mapper()
2290
+ result.body = @client.deserialize(result_mapper, parsed_response)
2291
+ rescue Exception => e
2292
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2293
+ end
2294
+ end
2295
+ # Deserialize Response
2296
+ if status_code == 202
2297
+ begin
2298
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2299
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::AzureReachabilityReport.mapper()
2300
+ result.body = @client.deserialize(result_mapper, parsed_response)
2301
+ rescue Exception => e
2302
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2303
+ end
2304
+ end
2305
+
2306
+ result
2307
+ end
2308
+
2309
+ promise.execute
2310
+ end
2311
+
2312
+ #
2313
+ # Lists all available internet service providers for a specified Azure region.
2314
+ #
2315
+ # @param resource_group_name [String] The name of the network watcher resource
2316
+ # group.
2317
+ # @param network_watcher_name [String] The name of the network watcher
2318
+ # resource.
2319
+ # @param parameters [AvailableProvidersListParameters] Parameters that scope
2320
+ # the list of available providers.
2321
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2322
+ # will be added to the HTTP request.
2323
+ #
2324
+ # @return [AvailableProvidersList] operation results.
2325
+ #
2326
+ def begin_list_available_providers(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
2327
+ response = begin_list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
2328
+ response.body unless response.nil?
2329
+ end
2330
+
2331
+ #
2332
+ # Lists all available internet service providers for a specified Azure region.
2333
+ #
2334
+ # @param resource_group_name [String] The name of the network watcher resource
2335
+ # group.
2336
+ # @param network_watcher_name [String] The name of the network watcher
2337
+ # resource.
2338
+ # @param parameters [AvailableProvidersListParameters] Parameters that scope
2339
+ # the list of available providers.
2340
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2341
+ # will be added to the HTTP request.
2342
+ #
2343
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2344
+ #
2345
+ def begin_list_available_providers_with_http_info(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
2346
+ begin_list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
2347
+ end
2348
+
2349
+ #
2350
+ # Lists all available internet service providers for a specified Azure region.
2351
+ #
2352
+ # @param resource_group_name [String] The name of the network watcher resource
2353
+ # group.
2354
+ # @param network_watcher_name [String] The name of the network watcher
2355
+ # resource.
2356
+ # @param parameters [AvailableProvidersListParameters] Parameters that scope
2357
+ # the list of available providers.
2358
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2359
+ # to the HTTP request.
2360
+ #
2361
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2362
+ #
2363
+ def begin_list_available_providers_async(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
2364
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2365
+ fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
2366
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
2367
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
2368
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
2369
+
2370
+
2371
+ request_headers = {}
2372
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2373
+
2374
+ # Set Headers
2375
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2376
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
2377
+
2378
+ # Serialize Request
2379
+ request_mapper = Azure::Network::Mgmt::V2018_01_01::Models::AvailableProvidersListParameters.mapper()
2380
+ request_content = @client.serialize(request_mapper, parameters)
2381
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2382
+
2383
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/availableProvidersList'
2384
+
2385
+ request_url = @base_url || @client.base_url
2386
+
2387
+ options = {
2388
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2389
+ path_params: {'resourceGroupName' => resource_group_name,'networkWatcherName' => network_watcher_name,'subscriptionId' => @client.subscription_id},
2390
+ query_params: {'api-version' => @client.api_version},
2391
+ body: request_content,
2392
+ headers: request_headers.merge(custom_headers || {}),
2393
+ base_url: request_url
2394
+ }
2395
+ promise = @client.make_request_async(:post, path_template, options)
2396
+
2397
+ promise = promise.then do |result|
2398
+ http_response = result.response
2399
+ status_code = http_response.status
2400
+ response_content = http_response.body
2401
+ unless status_code == 200 || status_code == 202
2402
+ error_model = JSON.load(response_content)
2403
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2404
+ end
2405
+
2406
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2407
+ # Deserialize Response
2408
+ if status_code == 200
2409
+ begin
2410
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2411
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::AvailableProvidersList.mapper()
2412
+ result.body = @client.deserialize(result_mapper, parsed_response)
2413
+ rescue Exception => e
2414
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2415
+ end
2416
+ end
2417
+ # Deserialize Response
2418
+ if status_code == 202
2419
+ begin
2420
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2421
+ result_mapper = Azure::Network::Mgmt::V2018_01_01::Models::AvailableProvidersList.mapper()
2422
+ result.body = @client.deserialize(result_mapper, parsed_response)
2423
+ rescue Exception => e
2424
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2425
+ end
2426
+ end
2427
+
2428
+ result
2429
+ end
2430
+
2431
+ promise.execute
2432
+ end
2433
+
2434
+ end
2435
+ end