azure_mgmt_network 0.23.2 → 0.23.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (753) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-05-01-preview/generated/azure_mgmt_network/network_management_client.rb +1 -1
  3. data/lib/2015-06-15/generated/azure_mgmt_network/network_management_client.rb +1 -1
  4. data/lib/2016-03-30/generated/azure_mgmt_network/network_management_client.rb +1 -1
  5. data/lib/2016-06-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  6. data/lib/2016-09-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  7. data/lib/2016-12-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  8. data/lib/2017-03-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  9. data/lib/2017-03-30/generated/azure_mgmt_network/network_management_client.rb +1 -1
  10. data/lib/2017-09-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  11. data/lib/2017-10-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  12. data/lib/2017-11-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  13. data/lib/2018-01-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  14. data/lib/2018-02-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  15. data/lib/2018-04-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  16. data/lib/2018-06-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  17. data/lib/2018-07-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  18. data/lib/2018-08-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  19. data/lib/2018-10-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  20. data/lib/2018-11-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  21. data/lib/2018-12-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  22. data/lib/2019-02-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  23. data/lib/2019-04-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  24. data/lib/2019-06-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  25. data/lib/2019-07-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  26. data/lib/2019-08-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  27. data/lib/2019-09-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  28. data/lib/2019-11-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  29. data/lib/2019-12-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  30. data/lib/2020-03-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  31. data/lib/2020-04-01/generated/azure_mgmt_network.rb +743 -0
  32. data/lib/2020-04-01/generated/azure_mgmt_network/application_gateways.rb +2230 -0
  33. data/lib/2020-04-01/generated/azure_mgmt_network/application_security_groups.rb +925 -0
  34. data/lib/2020-04-01/generated/azure_mgmt_network/available_delegations.rb +233 -0
  35. data/lib/2020-04-01/generated/azure_mgmt_network/available_endpoint_services.rb +226 -0
  36. data/lib/2020-04-01/generated/azure_mgmt_network/available_private_endpoint_types.rb +446 -0
  37. data/lib/2020-04-01/generated/azure_mgmt_network/available_resource_group_delegations.rb +238 -0
  38. data/lib/2020-04-01/generated/azure_mgmt_network/available_service_aliases.rb +432 -0
  39. data/lib/2020-04-01/generated/azure_mgmt_network/azure_firewall_fqdn_tags.rb +221 -0
  40. data/lib/2020-04-01/generated/azure_mgmt_network/azure_firewalls.rb +957 -0
  41. data/lib/2020-04-01/generated/azure_mgmt_network/bastion_hosts.rb +801 -0
  42. data/lib/2020-04-01/generated/azure_mgmt_network/bgp_service_communities.rb +221 -0
  43. data/lib/2020-04-01/generated/azure_mgmt_network/connection_monitors.rb +1099 -0
  44. data/lib/2020-04-01/generated/azure_mgmt_network/ddos_custom_policies.rb +512 -0
  45. data/lib/2020-04-01/generated/azure_mgmt_network/ddos_protection_plans.rb +925 -0
  46. data/lib/2020-04-01/generated/azure_mgmt_network/default_security_rules.rb +339 -0
  47. data/lib/2020-04-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +631 -0
  48. data/lib/2020-04-01/generated/azure_mgmt_network/express_route_circuit_connections.rb +683 -0
  49. data/lib/2020-04-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb +626 -0
  50. data/lib/2020-04-01/generated/azure_mgmt_network/express_route_circuits.rb +1557 -0
  51. data/lib/2020-04-01/generated/azure_mgmt_network/express_route_connections.rb +534 -0
  52. data/lib/2020-04-01/generated/azure_mgmt_network/express_route_cross_connection_peerings.rb +648 -0
  53. data/lib/2020-04-01/generated/azure_mgmt_network/express_route_cross_connections.rb +1262 -0
  54. data/lib/2020-04-01/generated/azure_mgmt_network/express_route_gateways.rb +601 -0
  55. data/lib/2020-04-01/generated/azure_mgmt_network/express_route_links.rb +343 -0
  56. data/lib/2020-04-01/generated/azure_mgmt_network/express_route_ports.rb +922 -0
  57. data/lib/2020-04-01/generated/azure_mgmt_network/express_route_ports_locations.rb +331 -0
  58. data/lib/2020-04-01/generated/azure_mgmt_network/express_route_service_providers.rb +221 -0
  59. data/lib/2020-04-01/generated/azure_mgmt_network/firewall_policies.rb +804 -0
  60. data/lib/2020-04-01/generated/azure_mgmt_network/firewall_policy_rule_groups.rb +626 -0
  61. data/lib/2020-04-01/generated/azure_mgmt_network/flow_logs.rb +634 -0
  62. data/lib/2020-04-01/generated/azure_mgmt_network/hub_route_tables.rb +647 -0
  63. data/lib/2020-04-01/generated/azure_mgmt_network/hub_virtual_network_connections.rb +336 -0
  64. data/lib/2020-04-01/generated/azure_mgmt_network/inbound_nat_rules.rb +629 -0
  65. data/lib/2020-04-01/generated/azure_mgmt_network/ip_allocations.rb +912 -0
  66. data/lib/2020-04-01/generated/azure_mgmt_network/ip_groups.rb +915 -0
  67. data/lib/2020-04-01/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb +639 -0
  68. data/lib/2020-04-01/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb +332 -0
  69. data/lib/2020-04-01/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb +329 -0
  70. data/lib/2020-04-01/generated/azure_mgmt_network/load_balancer_network_interfaces.rb +231 -0
  71. data/lib/2020-04-01/generated/azure_mgmt_network/load_balancer_outbound_rules.rb +329 -0
  72. data/lib/2020-04-01/generated/azure_mgmt_network/load_balancer_probes.rb +329 -0
  73. data/lib/2020-04-01/generated/azure_mgmt_network/load_balancers.rb +912 -0
  74. data/lib/2020-04-01/generated/azure_mgmt_network/local_network_gateways.rb +733 -0
  75. data/lib/2020-04-01/generated/azure_mgmt_network/models/aad_authentication_parameters.rb +68 -0
  76. data/lib/2020-04-01/generated/azure_mgmt_network/models/access.rb +16 -0
  77. data/lib/2020-04-01/generated/azure_mgmt_network/models/address_space.rb +56 -0
  78. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway.rb +610 -0
  79. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb +106 -0
  80. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_autoscale_configuration.rb +65 -0
  81. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_available_ssl_options.rb +159 -0
  82. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_available_ssl_predefined_policies.rb +102 -0
  83. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_available_waf_rule_sets_result.rb +57 -0
  84. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_backend_address.rb +57 -0
  85. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +136 -0
  86. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_backend_health.rb +56 -0
  87. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb +70 -0
  88. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_backend_health_on_demand.rb +61 -0
  89. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb +69 -0
  90. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb +83 -0
  91. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_backend_health_server_health.rb +19 -0
  92. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +266 -0
  93. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb +64 -0
  94. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +16 -0
  95. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_custom_error.rb +60 -0
  96. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_custom_error_status_code.rb +16 -0
  97. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_firewall_disabled_rule_group.rb +67 -0
  98. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_firewall_exclusion.rb +71 -0
  99. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_firewall_mode.rb +16 -0
  100. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule.rb +57 -0
  101. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule_group.rb +79 -0
  102. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule_set.rb +143 -0
  103. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +143 -0
  104. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb +105 -0
  105. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_header_configuration.rb +57 -0
  106. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_http_listener.rb +220 -0
  107. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +108 -0
  108. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_list_result.rb +99 -0
  109. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_on_demand_probe.rb +134 -0
  110. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_operational_state.rb +18 -0
  111. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_path_rule.rb +177 -0
  112. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_probe.rb +223 -0
  113. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_probe_health_response_match.rb +68 -0
  114. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_protocol.rb +16 -0
  115. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb +201 -0
  116. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_redirect_type.rb +18 -0
  117. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +198 -0
  118. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +16 -0
  119. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_rewrite_rule.rb +93 -0
  120. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_rewrite_rule_action_set.rb +90 -0
  121. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_rewrite_rule_condition.rb +82 -0
  122. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_rewrite_rule_set.rb +103 -0
  123. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_sku.rb +71 -0
  124. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_sku_name.rb +21 -0
  125. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +143 -0
  126. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +42 -0
  127. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb +113 -0
  128. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy_name.rb +17 -0
  129. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy_type.rb +16 -0
  130. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_ssl_predefined_policy.rb +87 -0
  131. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb +17 -0
  132. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_tier.rb +18 -0
  133. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_trusted_root_certificate.rb +117 -0
  134. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_url_configuration.rb +72 -0
  135. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb +168 -0
  136. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb +180 -0
  137. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_rule_condition.rb +202 -0
  138. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_security_group.rb +127 -0
  139. data/lib/2020-04-01/generated/azure_mgmt_network/models/application_security_group_list_result.rb +100 -0
  140. data/lib/2020-04-01/generated/azure_mgmt_network/models/association_type.rb +16 -0
  141. data/lib/2020-04-01/generated/azure_mgmt_network/models/authentication_method.rb +16 -0
  142. data/lib/2020-04-01/generated/azure_mgmt_network/models/authorization_list_result.rb +100 -0
  143. data/lib/2020-04-01/generated/azure_mgmt_network/models/authorization_use_status.rb +16 -0
  144. data/lib/2020-04-01/generated/azure_mgmt_network/models/auto_approved_private_link_service.rb +46 -0
  145. data/lib/2020-04-01/generated/azure_mgmt_network/models/auto_approved_private_link_services_result.rb +101 -0
  146. data/lib/2020-04-01/generated/azure_mgmt_network/models/availability.rb +68 -0
  147. data/lib/2020-04-01/generated/azure_mgmt_network/models/available_delegation.rb +101 -0
  148. data/lib/2020-04-01/generated/azure_mgmt_network/models/available_delegations_result.rb +99 -0
  149. data/lib/2020-04-01/generated/azure_mgmt_network/models/available_private_endpoint_type.rb +80 -0
  150. data/lib/2020-04-01/generated/azure_mgmt_network/models/available_private_endpoint_types_result.rb +100 -0
  151. data/lib/2020-04-01/generated/azure_mgmt_network/models/available_providers_list.rb +56 -0
  152. data/lib/2020-04-01/generated/azure_mgmt_network/models/available_providers_list_city.rb +65 -0
  153. data/lib/2020-04-01/generated/azure_mgmt_network/models/available_providers_list_country.rb +86 -0
  154. data/lib/2020-04-01/generated/azure_mgmt_network/models/available_providers_list_parameters.rb +88 -0
  155. data/lib/2020-04-01/generated/azure_mgmt_network/models/available_providers_list_state.rb +86 -0
  156. data/lib/2020-04-01/generated/azure_mgmt_network/models/available_service_alias.rb +79 -0
  157. data/lib/2020-04-01/generated/azure_mgmt_network/models/available_service_aliases_result.rb +100 -0
  158. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_async_operation_result.rb +67 -0
  159. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_firewall.rb +333 -0
  160. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_firewall_application_rule.rb +154 -0
  161. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_firewall_application_rule_collection.rb +130 -0
  162. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_firewall_application_rule_protocol.rb +63 -0
  163. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_firewall_application_rule_protocol_type.rb +17 -0
  164. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_firewall_fqdn_tag.rb +124 -0
  165. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_firewall_fqdn_tag_list_result.rb +99 -0
  166. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_firewall_ip_groups.rb +59 -0
  167. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_firewall_ipconfiguration.rb +133 -0
  168. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_firewall_list_result.rb +99 -0
  169. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_firewall_nat_rcaction.rb +47 -0
  170. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_firewall_nat_rcaction_type.rb +16 -0
  171. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_firewall_nat_rule.rb +187 -0
  172. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_firewall_nat_rule_collection.rb +131 -0
  173. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_firewall_network_rule.rb +191 -0
  174. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_firewall_network_rule_collection.rb +130 -0
  175. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_firewall_network_rule_protocol.rb +18 -0
  176. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_firewall_public_ipaddress.rb +46 -0
  177. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_firewall_rcaction.rb +47 -0
  178. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_firewall_rcaction_type.rb +16 -0
  179. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_firewall_sku.rb +59 -0
  180. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_firewall_sku_name.rb +16 -0
  181. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_firewall_sku_tier.rb +16 -0
  182. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_firewall_threat_intel_mode.rb +17 -0
  183. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_reachability_report.rb +81 -0
  184. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_reachability_report_item.rb +78 -0
  185. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_reachability_report_latency_info.rb +62 -0
  186. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_reachability_report_location.rb +68 -0
  187. data/lib/2020-04-01/generated/azure_mgmt_network/models/azure_reachability_report_parameters.rb +108 -0
  188. data/lib/2020-04-01/generated/azure_mgmt_network/models/backend_address_pool.rb +196 -0
  189. data/lib/2020-04-01/generated/azure_mgmt_network/models/bastion_active_session.rb +168 -0
  190. data/lib/2020-04-01/generated/azure_mgmt_network/models/bastion_active_session_list_result.rb +99 -0
  191. data/lib/2020-04-01/generated/azure_mgmt_network/models/bastion_connect_protocol.rb +16 -0
  192. data/lib/2020-04-01/generated/azure_mgmt_network/models/bastion_host.rb +145 -0
  193. data/lib/2020-04-01/generated/azure_mgmt_network/models/bastion_host_ipconfiguration.rb +130 -0
  194. data/lib/2020-04-01/generated/azure_mgmt_network/models/bastion_host_list_result.rb +98 -0
  195. data/lib/2020-04-01/generated/azure_mgmt_network/models/bastion_session_delete_result.rb +99 -0
  196. data/lib/2020-04-01/generated/azure_mgmt_network/models/bastion_session_state.rb +72 -0
  197. data/lib/2020-04-01/generated/azure_mgmt_network/models/bastion_shareable_link.rb +85 -0
  198. data/lib/2020-04-01/generated/azure_mgmt_network/models/bastion_shareable_link_list_request.rb +55 -0
  199. data/lib/2020-04-01/generated/azure_mgmt_network/models/bastion_shareable_link_list_result.rb +99 -0
  200. data/lib/2020-04-01/generated/azure_mgmt_network/models/bgp_peer_state.rb +19 -0
  201. data/lib/2020-04-01/generated/azure_mgmt_network/models/bgp_peer_status.rb +136 -0
  202. data/lib/2020-04-01/generated/azure_mgmt_network/models/bgp_peer_status_list_result.rb +55 -0
  203. data/lib/2020-04-01/generated/azure_mgmt_network/models/bgp_service_community.rb +116 -0
  204. data/lib/2020-04-01/generated/azure_mgmt_network/models/bgp_service_community_list_result.rb +99 -0
  205. data/lib/2020-04-01/generated/azure_mgmt_network/models/bgp_settings.rb +95 -0
  206. data/lib/2020-04-01/generated/azure_mgmt_network/models/bgpcommunity.rb +112 -0
  207. data/lib/2020-04-01/generated/azure_mgmt_network/models/check_private_link_service_visibility_request.rb +46 -0
  208. data/lib/2020-04-01/generated/azure_mgmt_network/models/circuit_connection_status.rb +17 -0
  209. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_monitor.rb +212 -0
  210. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_monitor_destination.rb +70 -0
  211. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_monitor_endpoint.rb +82 -0
  212. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_monitor_endpoint_filter.rb +69 -0
  213. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_monitor_endpoint_filter_item.rb +59 -0
  214. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_monitor_endpoint_filter_item_type.rb +15 -0
  215. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_monitor_endpoint_filter_type.rb +15 -0
  216. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_monitor_http_configuration.rb +123 -0
  217. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_monitor_icmp_configuration.rb +47 -0
  218. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_monitor_list_result.rb +56 -0
  219. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_monitor_output.rb +61 -0
  220. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_monitor_parameters.rb +182 -0
  221. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_monitor_query_result.rb +68 -0
  222. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_monitor_result.rb +313 -0
  223. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_monitor_source.rb +58 -0
  224. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_monitor_source_status.rb +17 -0
  225. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_monitor_success_threshold.rb +59 -0
  226. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_monitor_tcp_configuration.rb +58 -0
  227. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_monitor_test_configuration.rb +135 -0
  228. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_monitor_test_configuration_protocol.rb +17 -0
  229. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_monitor_test_group.rb +114 -0
  230. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_monitor_type.rb +16 -0
  231. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_monitor_workspace_settings.rb +47 -0
  232. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_reset_shared_key.rb +51 -0
  233. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_shared_key.rb +54 -0
  234. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_state.rb +17 -0
  235. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_state_snapshot.rb +158 -0
  236. data/lib/2020-04-01/generated/azure_mgmt_network/models/connection_status.rb +18 -0
  237. data/lib/2020-04-01/generated/azure_mgmt_network/models/connectivity_destination.rb +70 -0
  238. data/lib/2020-04-01/generated/azure_mgmt_network/models/connectivity_hop.rb +124 -0
  239. data/lib/2020-04-01/generated/azure_mgmt_network/models/connectivity_information.rb +130 -0
  240. data/lib/2020-04-01/generated/azure_mgmt_network/models/connectivity_issue.rb +106 -0
  241. data/lib/2020-04-01/generated/azure_mgmt_network/models/connectivity_parameters.rb +95 -0
  242. data/lib/2020-04-01/generated/azure_mgmt_network/models/connectivity_source.rb +59 -0
  243. data/lib/2020-04-01/generated/azure_mgmt_network/models/container.rb +43 -0
  244. data/lib/2020-04-01/generated/azure_mgmt_network/models/container_network_interface.rb +144 -0
  245. data/lib/2020-04-01/generated/azure_mgmt_network/models/container_network_interface_configuration.rb +136 -0
  246. data/lib/2020-04-01/generated/azure_mgmt_network/models/container_network_interface_ip_configuration.rb +86 -0
  247. data/lib/2020-04-01/generated/azure_mgmt_network/models/custom_dns_config_properties_format.rb +66 -0
  248. data/lib/2020-04-01/generated/azure_mgmt_network/models/ddos_custom_policy.rb +170 -0
  249. data/lib/2020-04-01/generated/azure_mgmt_network/models/ddos_custom_policy_protocol.rb +17 -0
  250. data/lib/2020-04-01/generated/azure_mgmt_network/models/ddos_custom_policy_trigger_sensitivity_override.rb +18 -0
  251. data/lib/2020-04-01/generated/azure_mgmt_network/models/ddos_protection_plan.rb +165 -0
  252. data/lib/2020-04-01/generated/azure_mgmt_network/models/ddos_protection_plan_list_result.rb +99 -0
  253. data/lib/2020-04-01/generated/azure_mgmt_network/models/ddos_settings.rb +72 -0
  254. data/lib/2020-04-01/generated/azure_mgmt_network/models/ddos_settings_protection_coverage.rb +16 -0
  255. data/lib/2020-04-01/generated/azure_mgmt_network/models/delegation.rb +115 -0
  256. data/lib/2020-04-01/generated/azure_mgmt_network/models/device_properties.rb +68 -0
  257. data/lib/2020-04-01/generated/azure_mgmt_network/models/dh_group.rb +22 -0
  258. data/lib/2020-04-01/generated/azure_mgmt_network/models/dhcp_options.rb +56 -0
  259. data/lib/2020-04-01/generated/azure_mgmt_network/models/dimension.rb +68 -0
  260. data/lib/2020-04-01/generated/azure_mgmt_network/models/direction.rb +16 -0
  261. data/lib/2020-04-01/generated/azure_mgmt_network/models/dns_name_availability_result.rb +46 -0
  262. data/lib/2020-04-01/generated/azure_mgmt_network/models/effective_network_security_group.rb +109 -0
  263. data/lib/2020-04-01/generated/azure_mgmt_network/models/effective_network_security_group_association.rb +59 -0
  264. data/lib/2020-04-01/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +68 -0
  265. data/lib/2020-04-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb +260 -0
  266. data/lib/2020-04-01/generated/azure_mgmt_network/models/effective_route.rb +135 -0
  267. data/lib/2020-04-01/generated/azure_mgmt_network/models/effective_route_list_result.rb +67 -0
  268. data/lib/2020-04-01/generated/azure_mgmt_network/models/effective_route_source.rb +18 -0
  269. data/lib/2020-04-01/generated/azure_mgmt_network/models/effective_route_state.rb +16 -0
  270. data/lib/2020-04-01/generated/azure_mgmt_network/models/effective_security_rule_protocol.rb +17 -0
  271. data/lib/2020-04-01/generated/azure_mgmt_network/models/endpoint_service_result.rb +67 -0
  272. data/lib/2020-04-01/generated/azure_mgmt_network/models/endpoint_services_list_result.rb +99 -0
  273. data/lib/2020-04-01/generated/azure_mgmt_network/models/error.rb +99 -0
  274. data/lib/2020-04-01/generated/azure_mgmt_network/models/error_details.rb +68 -0
  275. data/lib/2020-04-01/generated/azure_mgmt_network/models/error_response.rb +47 -0
  276. data/lib/2020-04-01/generated/azure_mgmt_network/models/evaluated_network_security_group.rb +92 -0
  277. data/lib/2020-04-01/generated/azure_mgmt_network/models/evaluation_state.rb +17 -0
  278. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_circuit.rb +296 -0
  279. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb +79 -0
  280. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb +117 -0
  281. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_circuit_connection.rb +170 -0
  282. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_circuit_connection_list_result.rb +101 -0
  283. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_circuit_list_result.rb +99 -0
  284. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +341 -0
  285. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +18 -0
  286. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb +122 -0
  287. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_circuit_peering_id.rb +46 -0
  288. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +100 -0
  289. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_circuit_peering_state.rb +16 -0
  290. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_circuit_reference.rb +46 -0
  291. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb +91 -0
  292. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +93 -0
  293. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +69 -0
  294. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_circuit_sku.rb +70 -0
  295. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_circuit_sku_family.rb +16 -0
  296. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +18 -0
  297. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_circuit_stats.rb +79 -0
  298. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +66 -0
  299. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +69 -0
  300. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb +69 -0
  301. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_connection.rb +127 -0
  302. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_connection_id.rb +47 -0
  303. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_connection_list.rb +56 -0
  304. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_cross_connection.rb +229 -0
  305. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_cross_connection_list_result.rb +100 -0
  306. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_cross_connection_peering.rb +251 -0
  307. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_cross_connection_peering_list.rb +102 -0
  308. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_cross_connection_routes_table_summary.rb +83 -0
  309. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_cross_connections_routes_table_summary_list_result.rb +70 -0
  310. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_gateway.rb +160 -0
  311. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_gateway_list.rb +55 -0
  312. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_gateway_properties_auto_scale_configuration.rb +49 -0
  313. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_gateway_properties_auto_scale_configuration_bounds.rb +60 -0
  314. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_link.rb +169 -0
  315. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_link_admin_state.rb +16 -0
  316. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_link_connector_type.rb +16 -0
  317. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_link_list_result.rb +99 -0
  318. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_link_mac_sec_cipher.rb +16 -0
  319. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_link_mac_sec_config.rb +73 -0
  320. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_peering_state.rb +16 -0
  321. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_peering_type.rb +17 -0
  322. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_port.rb +268 -0
  323. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_port_list_result.rb +98 -0
  324. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_ports_encapsulation.rb +16 -0
  325. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_ports_location.rb +146 -0
  326. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_ports_location_bandwidths.rb +61 -0
  327. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_ports_location_list_result.rb +99 -0
  328. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_service_provider.rb +139 -0
  329. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +58 -0
  330. data/lib/2020-04-01/generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb +99 -0
  331. data/lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy.rb +252 -0
  332. data/lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_certificate_authority.rb +58 -0
  333. data/lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_filter_rule.rb +106 -0
  334. data/lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_filter_rule_action.rb +47 -0
  335. data/lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_filter_rule_action_type.rb +16 -0
  336. data/lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_intrusion_system_mode.rb +16 -0
  337. data/lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_list_result.rb +99 -0
  338. data/lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_nat_rule.rb +119 -0
  339. data/lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_nat_rule_action.rb +47 -0
  340. data/lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_nat_rule_action_type.rb +15 -0
  341. data/lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_rule.rb +73 -0
  342. data/lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition.rb +70 -0
  343. data/lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition_application_protocol.rb +64 -0
  344. data/lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition_application_protocol_type.rb +16 -0
  345. data/lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_rule_condition_network_protocol.rb +18 -0
  346. data/lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_rule_group.rb +131 -0
  347. data/lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_rule_group_list_result.rb +99 -0
  348. data/lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_threat_intel_whitelist.rb +74 -0
  349. data/lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_transport_security.rb +89 -0
  350. data/lib/2020-04-01/generated/azure_mgmt_network/models/firewall_policy_trusted_root_certificate.rb +59 -0
  351. data/lib/2020-04-01/generated/azure_mgmt_network/models/flow_log.rb +198 -0
  352. data/lib/2020-04-01/generated/azure_mgmt_network/models/flow_log_format_parameters.rb +60 -0
  353. data/lib/2020-04-01/generated/azure_mgmt_network/models/flow_log_format_type.rb +15 -0
  354. data/lib/2020-04-01/generated/azure_mgmt_network/models/flow_log_information.rb +110 -0
  355. data/lib/2020-04-01/generated/azure_mgmt_network/models/flow_log_list_result.rb +99 -0
  356. data/lib/2020-04-01/generated/azure_mgmt_network/models/flow_log_status_parameters.rb +48 -0
  357. data/lib/2020-04-01/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb +274 -0
  358. data/lib/2020-04-01/generated/azure_mgmt_network/models/gateway_route.rb +119 -0
  359. data/lib/2020-04-01/generated/azure_mgmt_network/models/gateway_route_list_result.rb +55 -0
  360. data/lib/2020-04-01/generated/azure_mgmt_network/models/get_vpn_sites_configuration_request.rb +67 -0
  361. data/lib/2020-04-01/generated/azure_mgmt_network/models/httpconfiguration.rb +85 -0
  362. data/lib/2020-04-01/generated/azure_mgmt_network/models/httpconfiguration_method.rb +16 -0
  363. data/lib/2020-04-01/generated/azure_mgmt_network/models/httpheader.rb +57 -0
  364. data/lib/2020-04-01/generated/azure_mgmt_network/models/httpmethod.rb +15 -0
  365. data/lib/2020-04-01/generated/azure_mgmt_network/models/hub_ipaddresses.rb +67 -0
  366. data/lib/2020-04-01/generated/azure_mgmt_network/models/hub_route.rb +100 -0
  367. data/lib/2020-04-01/generated/azure_mgmt_network/models/hub_route_table.rb +178 -0
  368. data/lib/2020-04-01/generated/azure_mgmt_network/models/hub_virtual_network_connection.rb +140 -0
  369. data/lib/2020-04-01/generated/azure_mgmt_network/models/hub_virtual_network_connection_status.rb +18 -0
  370. data/lib/2020-04-01/generated/azure_mgmt_network/models/ike_encryption.rb +21 -0
  371. data/lib/2020-04-01/generated/azure_mgmt_network/models/ike_integrity.rb +20 -0
  372. data/lib/2020-04-01/generated/azure_mgmt_network/models/inbound_nat_pool.rb +199 -0
  373. data/lib/2020-04-01/generated/azure_mgmt_network/models/inbound_nat_rule.rb +202 -0
  374. data/lib/2020-04-01/generated/azure_mgmt_network/models/inbound_nat_rule_list_result.rb +100 -0
  375. data/lib/2020-04-01/generated/azure_mgmt_network/models/ip_allocation.rb +204 -0
  376. data/lib/2020-04-01/generated/azure_mgmt_network/models/ip_allocation_list_result.rb +98 -0
  377. data/lib/2020-04-01/generated/azure_mgmt_network/models/ip_allocation_type.rb +16 -0
  378. data/lib/2020-04-01/generated/azure_mgmt_network/models/ip_flow_protocol.rb +16 -0
  379. data/lib/2020-04-01/generated/azure_mgmt_network/models/ip_group.rb +154 -0
  380. data/lib/2020-04-01/generated/azure_mgmt_network/models/ip_group_list_result.rb +98 -0
  381. data/lib/2020-04-01/generated/azure_mgmt_network/models/ip_tag.rb +58 -0
  382. data/lib/2020-04-01/generated/azure_mgmt_network/models/ipaddress_availability_result.rb +66 -0
  383. data/lib/2020-04-01/generated/azure_mgmt_network/models/ipallocation_method.rb +16 -0
  384. data/lib/2020-04-01/generated/azure_mgmt_network/models/ipconfiguration.rb +129 -0
  385. data/lib/2020-04-01/generated/azure_mgmt_network/models/ipconfiguration_bgp_peering_address.rb +108 -0
  386. data/lib/2020-04-01/generated/azure_mgmt_network/models/ipconfiguration_profile.rb +107 -0
  387. data/lib/2020-04-01/generated/azure_mgmt_network/models/ipsec_encryption.rb +23 -0
  388. data/lib/2020-04-01/generated/azure_mgmt_network/models/ipsec_integrity.rb +20 -0
  389. data/lib/2020-04-01/generated/azure_mgmt_network/models/ipsec_policy.rb +137 -0
  390. data/lib/2020-04-01/generated/azure_mgmt_network/models/ipv6circuit_connection_config.rb +61 -0
  391. data/lib/2020-04-01/generated/azure_mgmt_network/models/ipv6express_route_circuit_peering_config.rb +94 -0
  392. data/lib/2020-04-01/generated/azure_mgmt_network/models/ipversion.rb +16 -0
  393. data/lib/2020-04-01/generated/azure_mgmt_network/models/issue_type.rb +23 -0
  394. data/lib/2020-04-01/generated/azure_mgmt_network/models/list_hub_route_tables_result.rb +99 -0
  395. data/lib/2020-04-01/generated/azure_mgmt_network/models/list_hub_virtual_network_connections_result.rb +102 -0
  396. data/lib/2020-04-01/generated/azure_mgmt_network/models/list_p2svpn_gateways_result.rb +100 -0
  397. data/lib/2020-04-01/generated/azure_mgmt_network/models/list_virtual_hub_route_table_v2s_result.rb +101 -0
  398. data/lib/2020-04-01/generated/azure_mgmt_network/models/list_virtual_hubs_result.rb +100 -0
  399. data/lib/2020-04-01/generated/azure_mgmt_network/models/list_virtual_wans_result.rb +100 -0
  400. data/lib/2020-04-01/generated/azure_mgmt_network/models/list_vpn_connections_result.rb +101 -0
  401. data/lib/2020-04-01/generated/azure_mgmt_network/models/list_vpn_gateways_result.rb +100 -0
  402. data/lib/2020-04-01/generated/azure_mgmt_network/models/list_vpn_server_configurations_result.rb +102 -0
  403. data/lib/2020-04-01/generated/azure_mgmt_network/models/list_vpn_site_link_connections_result.rb +101 -0
  404. data/lib/2020-04-01/generated/azure_mgmt_network/models/list_vpn_site_links_result.rb +100 -0
  405. data/lib/2020-04-01/generated/azure_mgmt_network/models/list_vpn_sites_result.rb +100 -0
  406. data/lib/2020-04-01/generated/azure_mgmt_network/models/load_balancer.rb +294 -0
  407. data/lib/2020-04-01/generated/azure_mgmt_network/models/load_balancer_backend_address.rb +83 -0
  408. data/lib/2020-04-01/generated/azure_mgmt_network/models/load_balancer_backend_address_pool_list_result.rb +101 -0
  409. data/lib/2020-04-01/generated/azure_mgmt_network/models/load_balancer_frontend_ipconfiguration_list_result.rb +102 -0
  410. data/lib/2020-04-01/generated/azure_mgmt_network/models/load_balancer_list_result.rb +100 -0
  411. data/lib/2020-04-01/generated/azure_mgmt_network/models/load_balancer_load_balancing_rule_list_result.rb +101 -0
  412. data/lib/2020-04-01/generated/azure_mgmt_network/models/load_balancer_outbound_rule_list_result.rb +100 -0
  413. data/lib/2020-04-01/generated/azure_mgmt_network/models/load_balancer_outbound_rule_protocol.rb +17 -0
  414. data/lib/2020-04-01/generated/azure_mgmt_network/models/load_balancer_probe_list_result.rb +99 -0
  415. data/lib/2020-04-01/generated/azure_mgmt_network/models/load_balancer_sku.rb +47 -0
  416. data/lib/2020-04-01/generated/azure_mgmt_network/models/load_balancer_sku_name.rb +16 -0
  417. data/lib/2020-04-01/generated/azure_mgmt_network/models/load_balancing_rule.rb +238 -0
  418. data/lib/2020-04-01/generated/azure_mgmt_network/models/load_distribution.rb +17 -0
  419. data/lib/2020-04-01/generated/azure_mgmt_network/models/local_network_gateway.rb +171 -0
  420. data/lib/2020-04-01/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb +100 -0
  421. data/lib/2020-04-01/generated/azure_mgmt_network/models/log_specification.rb +68 -0
  422. data/lib/2020-04-01/generated/azure_mgmt_network/models/managed_rule_enabled_state.rb +15 -0
  423. data/lib/2020-04-01/generated/azure_mgmt_network/models/managed_rule_group_override.rb +67 -0
  424. data/lib/2020-04-01/generated/azure_mgmt_network/models/managed_rule_override.rb +59 -0
  425. data/lib/2020-04-01/generated/azure_mgmt_network/models/managed_rule_set.rb +78 -0
  426. data/lib/2020-04-01/generated/azure_mgmt_network/models/managed_rules_definition.rb +77 -0
  427. data/lib/2020-04-01/generated/azure_mgmt_network/models/managed_service_identity.rb +102 -0
  428. data/lib/2020-04-01/generated/azure_mgmt_network/models/managed_service_identity_user_assigned_identities_value.rb +61 -0
  429. data/lib/2020-04-01/generated/azure_mgmt_network/models/match_condition.rb +118 -0
  430. data/lib/2020-04-01/generated/azure_mgmt_network/models/match_variable.rb +60 -0
  431. data/lib/2020-04-01/generated/azure_mgmt_network/models/matched_rule.rb +58 -0
  432. data/lib/2020-04-01/generated/azure_mgmt_network/models/metric_specification.rb +207 -0
  433. data/lib/2020-04-01/generated/azure_mgmt_network/models/nat_gateway.rb +232 -0
  434. data/lib/2020-04-01/generated/azure_mgmt_network/models/nat_gateway_list_result.rb +99 -0
  435. data/lib/2020-04-01/generated/azure_mgmt_network/models/nat_gateway_sku.rb +47 -0
  436. data/lib/2020-04-01/generated/azure_mgmt_network/models/nat_gateway_sku_name.rb +15 -0
  437. data/lib/2020-04-01/generated/azure_mgmt_network/models/nat_rule_condition.rb +174 -0
  438. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_parameters.rb +81 -0
  439. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_profile.rb +95 -0
  440. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_response.rb +57 -0
  441. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_result.rb +61 -0
  442. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_intent_policy.rb +98 -0
  443. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_intent_policy_configuration.rb +60 -0
  444. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_interface.rb +291 -0
  445. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_interface_association.rb +67 -0
  446. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_interface_dns_settings.rb +120 -0
  447. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb +274 -0
  448. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_interface_ipconfiguration_list_result.rb +102 -0
  449. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_interface_ipconfiguration_private_link_connection_properties.rb +83 -0
  450. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_interface_list_result.rb +100 -0
  451. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_interface_load_balancer_list_result.rb +100 -0
  452. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_interface_tap_configuration.rb +107 -0
  453. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_interface_tap_configuration_list_result.rb +102 -0
  454. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_operation_status.rb +17 -0
  455. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_profile.rb +168 -0
  456. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_profile_list_result.rb +99 -0
  457. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_rule_condition.rb +182 -0
  458. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_security_group.rb +233 -0
  459. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_security_group_list_result.rb +99 -0
  460. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_security_group_result.rb +70 -0
  461. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_security_rules_evaluation_result.rb +101 -0
  462. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_virtual_appliance.rb +224 -0
  463. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_virtual_appliance_list_result.rb +99 -0
  464. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_watcher.rb +112 -0
  465. data/lib/2020-04-01/generated/azure_mgmt_network/models/network_watcher_list_result.rb +55 -0
  466. data/lib/2020-04-01/generated/azure_mgmt_network/models/next_hop_parameters.rb +82 -0
  467. data/lib/2020-04-01/generated/azure_mgmt_network/models/next_hop_result.rb +73 -0
  468. data/lib/2020-04-01/generated/azure_mgmt_network/models/next_hop_type.rb +20 -0
  469. data/lib/2020-04-01/generated/azure_mgmt_network/models/office_traffic_category.rb +18 -0
  470. data/lib/2020-04-01/generated/azure_mgmt_network/models/operation.rb +83 -0
  471. data/lib/2020-04-01/generated/azure_mgmt_network/models/operation_display.rb +79 -0
  472. data/lib/2020-04-01/generated/azure_mgmt_network/models/operation_list_result.rb +101 -0
  473. data/lib/2020-04-01/generated/azure_mgmt_network/models/operation_properties_format_service_specification.rb +76 -0
  474. data/lib/2020-04-01/generated/azure_mgmt_network/models/origin.rb +17 -0
  475. data/lib/2020-04-01/generated/azure_mgmt_network/models/outbound_rule.rb +177 -0
  476. data/lib/2020-04-01/generated/azure_mgmt_network/models/output_type.rb +15 -0
  477. data/lib/2020-04-01/generated/azure_mgmt_network/models/owasp_crs_exclusion_entry.rb +74 -0
  478. data/lib/2020-04-01/generated/azure_mgmt_network/models/owasp_crs_exclusion_entry_match_variable.rb +17 -0
  479. data/lib/2020-04-01/generated/azure_mgmt_network/models/owasp_crs_exclusion_entry_selector_match_operator.rb +19 -0
  480. data/lib/2020-04-01/generated/azure_mgmt_network/models/p2sconnection_configuration.rb +108 -0
  481. data/lib/2020-04-01/generated/azure_mgmt_network/models/p2svpn_connection_health.rb +47 -0
  482. data/lib/2020-04-01/generated/azure_mgmt_network/models/p2svpn_connection_health_request.rb +67 -0
  483. data/lib/2020-04-01/generated/azure_mgmt_network/models/p2svpn_connection_request.rb +54 -0
  484. data/lib/2020-04-01/generated/azure_mgmt_network/models/p2svpn_gateway.rb +183 -0
  485. data/lib/2020-04-01/generated/azure_mgmt_network/models/p2svpn_profile_parameters.rb +47 -0
  486. data/lib/2020-04-01/generated/azure_mgmt_network/models/packet_capture.rb +119 -0
  487. data/lib/2020-04-01/generated/azure_mgmt_network/models/packet_capture_filter.rb +107 -0
  488. data/lib/2020-04-01/generated/azure_mgmt_network/models/packet_capture_list_result.rb +56 -0
  489. data/lib/2020-04-01/generated/azure_mgmt_network/models/packet_capture_parameters.rb +119 -0
  490. data/lib/2020-04-01/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb +111 -0
  491. data/lib/2020-04-01/generated/azure_mgmt_network/models/packet_capture_result.rb +170 -0
  492. data/lib/2020-04-01/generated/azure_mgmt_network/models/packet_capture_storage_location.rb +74 -0
  493. data/lib/2020-04-01/generated/azure_mgmt_network/models/patch_route_filter.rb +179 -0
  494. data/lib/2020-04-01/generated/azure_mgmt_network/models/patch_route_filter_rule.rb +129 -0
  495. data/lib/2020-04-01/generated/azure_mgmt_network/models/pc_error.rb +19 -0
  496. data/lib/2020-04-01/generated/azure_mgmt_network/models/pc_protocol.rb +17 -0
  497. data/lib/2020-04-01/generated/azure_mgmt_network/models/pc_status.rb +19 -0
  498. data/lib/2020-04-01/generated/azure_mgmt_network/models/peer_express_route_circuit_connection.rb +170 -0
  499. data/lib/2020-04-01/generated/azure_mgmt_network/models/peer_express_route_circuit_connection_list_result.rb +104 -0
  500. data/lib/2020-04-01/generated/azure_mgmt_network/models/pfs_group.rb +23 -0
  501. data/lib/2020-04-01/generated/azure_mgmt_network/models/policy_settings.rb +99 -0
  502. data/lib/2020-04-01/generated/azure_mgmt_network/models/preferred_ipversion.rb +16 -0
  503. data/lib/2020-04-01/generated/azure_mgmt_network/models/prepare_network_policies_request.rb +68 -0
  504. data/lib/2020-04-01/generated/azure_mgmt_network/models/private_dns_zone_config.rb +80 -0
  505. data/lib/2020-04-01/generated/azure_mgmt_network/models/private_dns_zone_group.rb +103 -0
  506. data/lib/2020-04-01/generated/azure_mgmt_network/models/private_dns_zone_group_list_result.rb +100 -0
  507. data/lib/2020-04-01/generated/azure_mgmt_network/models/private_endpoint.rb +212 -0
  508. data/lib/2020-04-01/generated/azure_mgmt_network/models/private_endpoint_connection.rb +133 -0
  509. data/lib/2020-04-01/generated/azure_mgmt_network/models/private_endpoint_connection_list_result.rb +101 -0
  510. data/lib/2020-04-01/generated/azure_mgmt_network/models/private_endpoint_list_result.rb +100 -0
  511. data/lib/2020-04-01/generated/azure_mgmt_network/models/private_link_service.rb +267 -0
  512. data/lib/2020-04-01/generated/azure_mgmt_network/models/private_link_service_connection.rb +150 -0
  513. data/lib/2020-04-01/generated/azure_mgmt_network/models/private_link_service_connection_state.rb +71 -0
  514. data/lib/2020-04-01/generated/azure_mgmt_network/models/private_link_service_ip_configuration.rb +151 -0
  515. data/lib/2020-04-01/generated/azure_mgmt_network/models/private_link_service_list_result.rb +100 -0
  516. data/lib/2020-04-01/generated/azure_mgmt_network/models/private_link_service_properties_auto_approval.rb +51 -0
  517. data/lib/2020-04-01/generated/azure_mgmt_network/models/private_link_service_properties_visibility.rb +51 -0
  518. data/lib/2020-04-01/generated/azure_mgmt_network/models/private_link_service_visibility.rb +46 -0
  519. data/lib/2020-04-01/generated/azure_mgmt_network/models/probe.rb +186 -0
  520. data/lib/2020-04-01/generated/azure_mgmt_network/models/probe_protocol.rb +17 -0
  521. data/lib/2020-04-01/generated/azure_mgmt_network/models/processor_architecture.rb +16 -0
  522. data/lib/2020-04-01/generated/azure_mgmt_network/models/propagated_route_table.rb +75 -0
  523. data/lib/2020-04-01/generated/azure_mgmt_network/models/protocol.rb +18 -0
  524. data/lib/2020-04-01/generated/azure_mgmt_network/models/protocol_configuration.rb +48 -0
  525. data/lib/2020-04-01/generated/azure_mgmt_network/models/protocol_custom_settings_format.rb +87 -0
  526. data/lib/2020-04-01/generated/azure_mgmt_network/models/provisioning_state.rb +18 -0
  527. data/lib/2020-04-01/generated/azure_mgmt_network/models/public_ipaddress.rb +278 -0
  528. data/lib/2020-04-01/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +77 -0
  529. data/lib/2020-04-01/generated/azure_mgmt_network/models/public_ipaddress_list_result.rb +99 -0
  530. data/lib/2020-04-01/generated/azure_mgmt_network/models/public_ipaddress_sku.rb +47 -0
  531. data/lib/2020-04-01/generated/azure_mgmt_network/models/public_ipaddress_sku_name.rb +16 -0
  532. data/lib/2020-04-01/generated/azure_mgmt_network/models/public_ipprefix.rb +249 -0
  533. data/lib/2020-04-01/generated/azure_mgmt_network/models/public_ipprefix_list_result.rb +99 -0
  534. data/lib/2020-04-01/generated/azure_mgmt_network/models/public_ipprefix_sku.rb +47 -0
  535. data/lib/2020-04-01/generated/azure_mgmt_network/models/public_ipprefix_sku_name.rb +15 -0
  536. data/lib/2020-04-01/generated/azure_mgmt_network/models/query_troubleshooting_parameters.rb +47 -0
  537. data/lib/2020-04-01/generated/azure_mgmt_network/models/radius_server.rb +68 -0
  538. data/lib/2020-04-01/generated/azure_mgmt_network/models/record_set.rb +111 -0
  539. data/lib/2020-04-01/generated/azure_mgmt_network/models/referenced_public_ip_address.rb +46 -0
  540. data/lib/2020-04-01/generated/azure_mgmt_network/models/resource.rb +109 -0
  541. data/lib/2020-04-01/generated/azure_mgmt_network/models/resource_identity_type.rb +18 -0
  542. data/lib/2020-04-01/generated/azure_mgmt_network/models/resource_navigation_link.rb +116 -0
  543. data/lib/2020-04-01/generated/azure_mgmt_network/models/resource_navigation_links_list_result.rb +68 -0
  544. data/lib/2020-04-01/generated/azure_mgmt_network/models/resource_set.rb +54 -0
  545. data/lib/2020-04-01/generated/azure_mgmt_network/models/retention_policy_parameters.rb +61 -0
  546. data/lib/2020-04-01/generated/azure_mgmt_network/models/route.rb +119 -0
  547. data/lib/2020-04-01/generated/azure_mgmt_network/models/route_filter.rb +177 -0
  548. data/lib/2020-04-01/generated/azure_mgmt_network/models/route_filter_list_result.rb +99 -0
  549. data/lib/2020-04-01/generated/azure_mgmt_network/models/route_filter_rule.rb +139 -0
  550. data/lib/2020-04-01/generated/azure_mgmt_network/models/route_filter_rule_list_result.rb +99 -0
  551. data/lib/2020-04-01/generated/azure_mgmt_network/models/route_list_result.rb +98 -0
  552. data/lib/2020-04-01/generated/azure_mgmt_network/models/route_next_hop_type.rb +19 -0
  553. data/lib/2020-04-01/generated/azure_mgmt_network/models/route_table.rb +166 -0
  554. data/lib/2020-04-01/generated/azure_mgmt_network/models/route_table_list_result.rb +98 -0
  555. data/lib/2020-04-01/generated/azure_mgmt_network/models/routing_configuration.rb +75 -0
  556. data/lib/2020-04-01/generated/azure_mgmt_network/models/security_group_network_interface.rb +59 -0
  557. data/lib/2020-04-01/generated/azure_mgmt_network/models/security_group_view_parameters.rb +46 -0
  558. data/lib/2020-04-01/generated/azure_mgmt_network/models/security_group_view_result.rb +56 -0
  559. data/lib/2020-04-01/generated/azure_mgmt_network/models/security_partner_provider.rb +151 -0
  560. data/lib/2020-04-01/generated/azure_mgmt_network/models/security_partner_provider_connection_status.rb +18 -0
  561. data/lib/2020-04-01/generated/azure_mgmt_network/models/security_partner_provider_list_result.rb +99 -0
  562. data/lib/2020-04-01/generated/azure_mgmt_network/models/security_provider_name.rb +17 -0
  563. data/lib/2020-04-01/generated/azure_mgmt_network/models/security_rule.rb +315 -0
  564. data/lib/2020-04-01/generated/azure_mgmt_network/models/security_rule_access.rb +16 -0
  565. data/lib/2020-04-01/generated/azure_mgmt_network/models/security_rule_associations.rb +102 -0
  566. data/lib/2020-04-01/generated/azure_mgmt_network/models/security_rule_direction.rb +16 -0
  567. data/lib/2020-04-01/generated/azure_mgmt_network/models/security_rule_list_result.rb +100 -0
  568. data/lib/2020-04-01/generated/azure_mgmt_network/models/security_rule_protocol.rb +20 -0
  569. data/lib/2020-04-01/generated/azure_mgmt_network/models/service_association_link.rb +146 -0
  570. data/lib/2020-04-01/generated/azure_mgmt_network/models/service_association_links_list_result.rb +68 -0
  571. data/lib/2020-04-01/generated/azure_mgmt_network/models/service_endpoint_policy.rb +167 -0
  572. data/lib/2020-04-01/generated/azure_mgmt_network/models/service_endpoint_policy_definition.rb +123 -0
  573. data/lib/2020-04-01/generated/azure_mgmt_network/models/service_endpoint_policy_definition_list_result.rb +103 -0
  574. data/lib/2020-04-01/generated/azure_mgmt_network/models/service_endpoint_policy_list_result.rb +100 -0
  575. data/lib/2020-04-01/generated/azure_mgmt_network/models/service_endpoint_properties_format.rb +79 -0
  576. data/lib/2020-04-01/generated/azure_mgmt_network/models/service_provider_provisioning_state.rb +18 -0
  577. data/lib/2020-04-01/generated/azure_mgmt_network/models/service_tag_information.rb +73 -0
  578. data/lib/2020-04-01/generated/azure_mgmt_network/models/service_tag_information_properties_format.rb +91 -0
  579. data/lib/2020-04-01/generated/azure_mgmt_network/models/service_tags_list_result.rb +117 -0
  580. data/lib/2020-04-01/generated/azure_mgmt_network/models/session_ids.rb +54 -0
  581. data/lib/2020-04-01/generated/azure_mgmt_network/models/severity.rb +16 -0
  582. data/lib/2020-04-01/generated/azure_mgmt_network/models/static_route.rb +77 -0
  583. data/lib/2020-04-01/generated/azure_mgmt_network/models/sub_resource.rb +46 -0
  584. data/lib/2020-04-01/generated/azure_mgmt_network/models/subnet.rb +380 -0
  585. data/lib/2020-04-01/generated/azure_mgmt_network/models/subnet_association.rb +67 -0
  586. data/lib/2020-04-01/generated/azure_mgmt_network/models/subnet_list_result.rb +99 -0
  587. data/lib/2020-04-01/generated/azure_mgmt_network/models/tags_object.rb +54 -0
  588. data/lib/2020-04-01/generated/azure_mgmt_network/models/topology.rb +92 -0
  589. data/lib/2020-04-01/generated/azure_mgmt_network/models/topology_association.rb +71 -0
  590. data/lib/2020-04-01/generated/azure_mgmt_network/models/topology_parameters.rb +71 -0
  591. data/lib/2020-04-01/generated/azure_mgmt_network/models/topology_resource.rb +89 -0
  592. data/lib/2020-04-01/generated/azure_mgmt_network/models/traffic_analytics_configuration_properties.rb +91 -0
  593. data/lib/2020-04-01/generated/azure_mgmt_network/models/traffic_analytics_properties.rb +48 -0
  594. data/lib/2020-04-01/generated/azure_mgmt_network/models/traffic_selector_policy.rb +75 -0
  595. data/lib/2020-04-01/generated/azure_mgmt_network/models/transport_protocol.rb +17 -0
  596. data/lib/2020-04-01/generated/azure_mgmt_network/models/troubleshooting_details.rb +100 -0
  597. data/lib/2020-04-01/generated/azure_mgmt_network/models/troubleshooting_parameters.rb +70 -0
  598. data/lib/2020-04-01/generated/azure_mgmt_network/models/troubleshooting_recommended_actions.rb +81 -0
  599. data/lib/2020-04-01/generated/azure_mgmt_network/models/troubleshooting_result.rb +89 -0
  600. data/lib/2020-04-01/generated/azure_mgmt_network/models/tunnel_connection_health.rb +98 -0
  601. data/lib/2020-04-01/generated/azure_mgmt_network/models/tunnel_connection_status.rb +18 -0
  602. data/lib/2020-04-01/generated/azure_mgmt_network/models/unprepare_network_policies_request.rb +47 -0
  603. data/lib/2020-04-01/generated/azure_mgmt_network/models/usage.rb +95 -0
  604. data/lib/2020-04-01/generated/azure_mgmt_network/models/usage_name.rb +57 -0
  605. data/lib/2020-04-01/generated/azure_mgmt_network/models/usages_list_result.rb +98 -0
  606. data/lib/2020-04-01/generated/azure_mgmt_network/models/verbosity_level.rb +17 -0
  607. data/lib/2020-04-01/generated/azure_mgmt_network/models/verification_ipflow_parameters.rb +133 -0
  608. data/lib/2020-04-01/generated/azure_mgmt_network/models/verification_ipflow_result.rb +59 -0
  609. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_appliance_nic_properties.rb +71 -0
  610. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_appliance_sku_properties.rb +68 -0
  611. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_hub.rb +276 -0
  612. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_hub_id.rb +48 -0
  613. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_hub_route.rb +65 -0
  614. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_hub_route_table.rb +55 -0
  615. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_hub_route_table_v2.rb +122 -0
  616. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_hub_route_v2.rb +95 -0
  617. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network.rb +266 -0
  618. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_bgp_communities.rb +60 -0
  619. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_connection_gateway_reference.rb +47 -0
  620. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_gateway.rb +310 -0
  621. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb +392 -0
  622. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_entity.rb +370 -0
  623. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +103 -0
  624. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_protocol.rb +16 -0
  625. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +18 -0
  626. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +18 -0
  627. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +130 -0
  628. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_list_connections_result.rb +104 -0
  629. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +100 -0
  630. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb +77 -0
  631. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +31 -0
  632. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +31 -0
  633. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_gateway_type.rb +16 -0
  634. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_list_result.rb +99 -0
  635. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_list_usage_result.rb +99 -0
  636. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_peering.rb +175 -0
  637. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb +100 -0
  638. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_peering_state.rb +17 -0
  639. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_tap.rb +186 -0
  640. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_tap_list_result.rb +99 -0
  641. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_usage.rb +97 -0
  642. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_network_usage_name.rb +59 -0
  643. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_router.rb +191 -0
  644. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_router_list_result.rb +98 -0
  645. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_router_peering.rb +119 -0
  646. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_router_peering_list_result.rb +99 -0
  647. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_wan.rb +210 -0
  648. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_wan_security_provider.rb +69 -0
  649. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_wan_security_provider_type.rb +16 -0
  650. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_wan_security_providers.rb +56 -0
  651. data/lib/2020-04-01/generated/azure_mgmt_network/models/virtual_wan_vpn_profile_parameters.rb +59 -0
  652. data/lib/2020-04-01/generated/azure_mgmt_network/models/vm.rb +85 -0
  653. data/lib/2020-04-01/generated/azure_mgmt_network/models/vnet_route.rb +56 -0
  654. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_authentication_type.rb +17 -0
  655. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_client_configuration.rb +212 -0
  656. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_client_connection_health.rb +93 -0
  657. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_client_connection_health_detail.rb +179 -0
  658. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_client_connection_health_detail_list_result.rb +57 -0
  659. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_client_ipsec_parameters.rb +137 -0
  660. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_client_parameters.rb +94 -0
  661. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_client_protocol.rb +17 -0
  662. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +93 -0
  663. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_client_root_certificate.rb +93 -0
  664. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_connection.rb +297 -0
  665. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_connection_status.rb +18 -0
  666. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_device_script_parameters.rb +68 -0
  667. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_gateway.rb +168 -0
  668. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_gateway_generation.rb +17 -0
  669. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_gateway_tunneling_protocol.rb +16 -0
  670. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_link_bgp_settings.rb +58 -0
  671. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_link_provider_properties.rb +57 -0
  672. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_packet_capture_start_parameters.rb +46 -0
  673. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_packet_capture_stop_parameters.rb +46 -0
  674. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_profile_response.rb +46 -0
  675. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_server_config_radius_client_root_certificate.rb +59 -0
  676. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_server_config_radius_server_root_certificate.rb +58 -0
  677. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_server_config_vpn_client_revoked_certificate.rb +59 -0
  678. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_server_config_vpn_client_root_certificate.rb +57 -0
  679. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_server_configuration.rb +360 -0
  680. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_server_configurations_response.rb +55 -0
  681. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_site.rb +214 -0
  682. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_site_id.rb +48 -0
  683. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_site_link.rb +140 -0
  684. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_site_link_connection.rb +252 -0
  685. data/lib/2020-04-01/generated/azure_mgmt_network/models/vpn_type.rb +16 -0
  686. data/lib/2020-04-01/generated/azure_mgmt_network/models/web_application_firewall_action.rb +17 -0
  687. data/lib/2020-04-01/generated/azure_mgmt_network/models/web_application_firewall_custom_rule.rb +119 -0
  688. data/lib/2020-04-01/generated/azure_mgmt_network/models/web_application_firewall_enabled_state.rb +16 -0
  689. data/lib/2020-04-01/generated/azure_mgmt_network/models/web_application_firewall_match_variable.rb +22 -0
  690. data/lib/2020-04-01/generated/azure_mgmt_network/models/web_application_firewall_mode.rb +16 -0
  691. data/lib/2020-04-01/generated/azure_mgmt_network/models/web_application_firewall_operator.rb +25 -0
  692. data/lib/2020-04-01/generated/azure_mgmt_network/models/web_application_firewall_policy.rb +237 -0
  693. data/lib/2020-04-01/generated/azure_mgmt_network/models/web_application_firewall_policy_list_result.rb +105 -0
  694. data/lib/2020-04-01/generated/azure_mgmt_network/models/web_application_firewall_policy_resource_state.rb +20 -0
  695. data/lib/2020-04-01/generated/azure_mgmt_network/models/web_application_firewall_rule_type.rb +16 -0
  696. data/lib/2020-04-01/generated/azure_mgmt_network/models/web_application_firewall_transform.rb +20 -0
  697. data/lib/2020-04-01/generated/azure_mgmt_network/module_definition.rb +9 -0
  698. data/lib/2020-04-01/generated/azure_mgmt_network/nat_gateways.rb +922 -0
  699. data/lib/2020-04-01/generated/azure_mgmt_network/network_interface_ipconfigurations.rb +329 -0
  700. data/lib/2020-04-01/generated/azure_mgmt_network/network_interface_load_balancers.rb +231 -0
  701. data/lib/2020-04-01/generated/azure_mgmt_network/network_interface_tap_configurations.rb +626 -0
  702. data/lib/2020-04-01/generated/azure_mgmt_network/network_interfaces.rb +1184 -0
  703. data/lib/2020-04-01/generated/azure_mgmt_network/network_management_client.rb +2686 -0
  704. data/lib/2020-04-01/generated/azure_mgmt_network/network_profiles.rb +866 -0
  705. data/lib/2020-04-01/generated/azure_mgmt_network/network_security_groups.rb +928 -0
  706. data/lib/2020-04-01/generated/azure_mgmt_network/network_virtual_appliances.rb +931 -0
  707. data/lib/2020-04-01/generated/azure_mgmt_network/network_watchers.rb +2670 -0
  708. data/lib/2020-04-01/generated/azure_mgmt_network/operations.rb +219 -0
  709. data/lib/2020-04-01/generated/azure_mgmt_network/p2s_vpn_gateways.rb +1532 -0
  710. data/lib/2020-04-01/generated/azure_mgmt_network/packet_captures.rb +796 -0
  711. data/lib/2020-04-01/generated/azure_mgmt_network/peer_express_route_circuit_connections.rb +351 -0
  712. data/lib/2020-04-01/generated/azure_mgmt_network/private_dns_zone_groups.rb +646 -0
  713. data/lib/2020-04-01/generated/azure_mgmt_network/private_endpoints.rb +804 -0
  714. data/lib/2020-04-01/generated/azure_mgmt_network/private_link_services.rb +2007 -0
  715. data/lib/2020-04-01/generated/azure_mgmt_network/public_ipaddresses.rb +912 -0
  716. data/lib/2020-04-01/generated/azure_mgmt_network/public_ipprefixes.rb +912 -0
  717. data/lib/2020-04-01/generated/azure_mgmt_network/resource_navigation_links.rb +123 -0
  718. data/lib/2020-04-01/generated/azure_mgmt_network/route_filter_rules.rb +626 -0
  719. data/lib/2020-04-01/generated/azure_mgmt_network/route_filters.rb +915 -0
  720. data/lib/2020-04-01/generated/azure_mgmt_network/route_tables.rb +912 -0
  721. data/lib/2020-04-01/generated/azure_mgmt_network/routes.rb +625 -0
  722. data/lib/2020-04-01/generated/azure_mgmt_network/security_partner_providers.rb +925 -0
  723. data/lib/2020-04-01/generated/azure_mgmt_network/security_rules.rb +643 -0
  724. data/lib/2020-04-01/generated/azure_mgmt_network/service_association_links.rb +123 -0
  725. data/lib/2020-04-01/generated/azure_mgmt_network/service_endpoint_policies.rb +928 -0
  726. data/lib/2020-04-01/generated/azure_mgmt_network/service_endpoint_policy_definitions.rb +668 -0
  727. data/lib/2020-04-01/generated/azure_mgmt_network/service_tags.rb +124 -0
  728. data/lib/2020-04-01/generated/azure_mgmt_network/subnets.rb +929 -0
  729. data/lib/2020-04-01/generated/azure_mgmt_network/usages.rb +227 -0
  730. data/lib/2020-04-01/generated/azure_mgmt_network/virtual_hub_route_table_v2s.rb +647 -0
  731. data/lib/2020-04-01/generated/azure_mgmt_network/virtual_hubs.rb +933 -0
  732. data/lib/2020-04-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1612 -0
  733. data/lib/2020-04-01/generated/azure_mgmt_network/virtual_network_gateways.rb +3423 -0
  734. data/lib/2020-04-01/generated/azure_mgmt_network/virtual_network_peerings.rb +634 -0
  735. data/lib/2020-04-01/generated/azure_mgmt_network/virtual_network_taps.rb +909 -0
  736. data/lib/2020-04-01/generated/azure_mgmt_network/virtual_networks.rb +1216 -0
  737. data/lib/2020-04-01/generated/azure_mgmt_network/virtual_router_peerings.rb +626 -0
  738. data/lib/2020-04-01/generated/azure_mgmt_network/virtual_routers.rb +804 -0
  739. data/lib/2020-04-01/generated/azure_mgmt_network/virtual_wans.rb +938 -0
  740. data/lib/2020-04-01/generated/azure_mgmt_network/vpn_connections.rb +647 -0
  741. data/lib/2020-04-01/generated/azure_mgmt_network/vpn_gateways.rb +1074 -0
  742. data/lib/2020-04-01/generated/azure_mgmt_network/vpn_link_connections.rb +247 -0
  743. data/lib/2020-04-01/generated/azure_mgmt_network/vpn_server_configurations.rb +949 -0
  744. data/lib/2020-04-01/generated/azure_mgmt_network/vpn_server_configurations_associated_with_virtual_wan.rb +170 -0
  745. data/lib/2020-04-01/generated/azure_mgmt_network/vpn_site_link_connections.rb +130 -0
  746. data/lib/2020-04-01/generated/azure_mgmt_network/vpn_site_links.rb +332 -0
  747. data/lib/2020-04-01/generated/azure_mgmt_network/vpn_sites.rb +918 -0
  748. data/lib/2020-04-01/generated/azure_mgmt_network/vpn_sites_configuration.rb +173 -0
  749. data/lib/2020-04-01/generated/azure_mgmt_network/web_application_firewall_policies.rb +758 -0
  750. data/lib/azure_mgmt_network.rb +23 -22
  751. data/lib/profiles/latest/modules/network_profile_module.rb +1586 -1536
  752. data/lib/version.rb +1 -1
  753. metadata +721 -2
@@ -0,0 +1,2686 @@
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::V2020_04_01
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class NetworkManagementClient < MsRestAzure::AzureServiceClient
11
+ include MsRestAzure
12
+ include MsRestAzure::Serialization
13
+
14
+ # @return [String] the base URI of the service.
15
+ attr_accessor :base_url
16
+
17
+ # @return Credentials needed for the client to connect to Azure.
18
+ attr_reader :credentials
19
+
20
+ # @return [String] The subscription credentials which uniquely identify the
21
+ # Microsoft Azure subscription. The subscription ID forms part of the URI
22
+ # for every service call.
23
+ attr_accessor :subscription_id
24
+
25
+ # @return [String] Client API version.
26
+ attr_reader :api_version
27
+
28
+ # @return [String] Client API version.
29
+ attr_accessor :api_version1
30
+
31
+ # @return [String] The preferred language for the response.
32
+ attr_accessor :accept_language
33
+
34
+ # @return [Integer] The retry timeout in seconds for Long Running
35
+ # Operations. Default value is 30.
36
+ attr_accessor :long_running_operation_retry_timeout
37
+
38
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
39
+ # generated. When set to true a unique x-ms-client-request-id value is
40
+ # generated and included in each request. Default is true.
41
+ attr_accessor :generate_client_request_id
42
+
43
+ # @return [ApplicationGateways] application_gateways
44
+ attr_reader :application_gateways
45
+
46
+ # @return [ApplicationSecurityGroups] application_security_groups
47
+ attr_reader :application_security_groups
48
+
49
+ # @return [AvailableDelegations] available_delegations
50
+ attr_reader :available_delegations
51
+
52
+ # @return [AvailableResourceGroupDelegations]
53
+ # available_resource_group_delegations
54
+ attr_reader :available_resource_group_delegations
55
+
56
+ # @return [AvailableServiceAliases] available_service_aliases
57
+ attr_reader :available_service_aliases
58
+
59
+ # @return [AzureFirewalls] azure_firewalls
60
+ attr_reader :azure_firewalls
61
+
62
+ # @return [AzureFirewallFqdnTags] azure_firewall_fqdn_tags
63
+ attr_reader :azure_firewall_fqdn_tags
64
+
65
+ # @return [BastionHosts] bastion_hosts
66
+ attr_reader :bastion_hosts
67
+
68
+ # @return [DdosCustomPolicies] ddos_custom_policies
69
+ attr_reader :ddos_custom_policies
70
+
71
+ # @return [DdosProtectionPlans] ddos_protection_plans
72
+ attr_reader :ddos_protection_plans
73
+
74
+ # @return [AvailableEndpointServices] available_endpoint_services
75
+ attr_reader :available_endpoint_services
76
+
77
+ # @return [ExpressRouteCircuitAuthorizations]
78
+ # express_route_circuit_authorizations
79
+ attr_reader :express_route_circuit_authorizations
80
+
81
+ # @return [ExpressRouteCircuitPeerings] express_route_circuit_peerings
82
+ attr_reader :express_route_circuit_peerings
83
+
84
+ # @return [ExpressRouteCircuitConnections]
85
+ # express_route_circuit_connections
86
+ attr_reader :express_route_circuit_connections
87
+
88
+ # @return [PeerExpressRouteCircuitConnections]
89
+ # peer_express_route_circuit_connections
90
+ attr_reader :peer_express_route_circuit_connections
91
+
92
+ # @return [ExpressRouteCircuits] express_route_circuits
93
+ attr_reader :express_route_circuits
94
+
95
+ # @return [ExpressRouteServiceProviders] express_route_service_providers
96
+ attr_reader :express_route_service_providers
97
+
98
+ # @return [ExpressRouteCrossConnections] express_route_cross_connections
99
+ attr_reader :express_route_cross_connections
100
+
101
+ # @return [ExpressRouteCrossConnectionPeerings]
102
+ # express_route_cross_connection_peerings
103
+ attr_reader :express_route_cross_connection_peerings
104
+
105
+ # @return [ExpressRoutePortsLocations] express_route_ports_locations
106
+ attr_reader :express_route_ports_locations
107
+
108
+ # @return [ExpressRoutePorts] express_route_ports
109
+ attr_reader :express_route_ports
110
+
111
+ # @return [ExpressRouteLinks] express_route_links
112
+ attr_reader :express_route_links
113
+
114
+ # @return [FirewallPolicies] firewall_policies
115
+ attr_reader :firewall_policies
116
+
117
+ # @return [FirewallPolicyRuleGroups] firewall_policy_rule_groups
118
+ attr_reader :firewall_policy_rule_groups
119
+
120
+ # @return [IpAllocations] ip_allocations
121
+ attr_reader :ip_allocations
122
+
123
+ # @return [IpGroups] ip_groups
124
+ attr_reader :ip_groups
125
+
126
+ # @return [LoadBalancers] load_balancers
127
+ attr_reader :load_balancers
128
+
129
+ # @return [LoadBalancerBackendAddressPools]
130
+ # load_balancer_backend_address_pools
131
+ attr_reader :load_balancer_backend_address_pools
132
+
133
+ # @return [LoadBalancerFrontendIPConfigurations]
134
+ # load_balancer_frontend_ipconfigurations
135
+ attr_reader :load_balancer_frontend_ipconfigurations
136
+
137
+ # @return [InboundNatRules] inbound_nat_rules
138
+ attr_reader :inbound_nat_rules
139
+
140
+ # @return [LoadBalancerLoadBalancingRules]
141
+ # load_balancer_load_balancing_rules
142
+ attr_reader :load_balancer_load_balancing_rules
143
+
144
+ # @return [LoadBalancerOutboundRules] load_balancer_outbound_rules
145
+ attr_reader :load_balancer_outbound_rules
146
+
147
+ # @return [LoadBalancerNetworkInterfaces] load_balancer_network_interfaces
148
+ attr_reader :load_balancer_network_interfaces
149
+
150
+ # @return [LoadBalancerProbes] load_balancer_probes
151
+ attr_reader :load_balancer_probes
152
+
153
+ # @return [NatGateways] nat_gateways
154
+ attr_reader :nat_gateways
155
+
156
+ # @return [NetworkInterfaces] network_interfaces
157
+ attr_reader :network_interfaces
158
+
159
+ # @return [NetworkInterfaceIPConfigurations]
160
+ # network_interface_ipconfigurations
161
+ attr_reader :network_interface_ipconfigurations
162
+
163
+ # @return [NetworkInterfaceLoadBalancers] network_interface_load_balancers
164
+ attr_reader :network_interface_load_balancers
165
+
166
+ # @return [NetworkInterfaceTapConfigurations]
167
+ # network_interface_tap_configurations
168
+ attr_reader :network_interface_tap_configurations
169
+
170
+ # @return [NetworkProfiles] network_profiles
171
+ attr_reader :network_profiles
172
+
173
+ # @return [NetworkSecurityGroups] network_security_groups
174
+ attr_reader :network_security_groups
175
+
176
+ # @return [SecurityRules] security_rules
177
+ attr_reader :security_rules
178
+
179
+ # @return [DefaultSecurityRules] default_security_rules
180
+ attr_reader :default_security_rules
181
+
182
+ # @return [NetworkVirtualAppliances] network_virtual_appliances
183
+ attr_reader :network_virtual_appliances
184
+
185
+ # @return [NetworkWatchers] network_watchers
186
+ attr_reader :network_watchers
187
+
188
+ # @return [PacketCaptures] packet_captures
189
+ attr_reader :packet_captures
190
+
191
+ # @return [ConnectionMonitors] connection_monitors
192
+ attr_reader :connection_monitors
193
+
194
+ # @return [FlowLogs] flow_logs
195
+ attr_reader :flow_logs
196
+
197
+ # @return [Operations] operations
198
+ attr_reader :operations
199
+
200
+ # @return [PrivateEndpoints] private_endpoints
201
+ attr_reader :private_endpoints
202
+
203
+ # @return [AvailablePrivateEndpointTypes] available_private_endpoint_types
204
+ attr_reader :available_private_endpoint_types
205
+
206
+ # @return [PrivateDnsZoneGroups] private_dns_zone_groups
207
+ attr_reader :private_dns_zone_groups
208
+
209
+ # @return [PrivateLinkServices] private_link_services
210
+ attr_reader :private_link_services
211
+
212
+ # @return [PublicIPAddresses] public_ipaddresses
213
+ attr_reader :public_ipaddresses
214
+
215
+ # @return [PublicIPPrefixes] public_ipprefixes
216
+ attr_reader :public_ipprefixes
217
+
218
+ # @return [RouteFilters] route_filters
219
+ attr_reader :route_filters
220
+
221
+ # @return [RouteFilterRules] route_filter_rules
222
+ attr_reader :route_filter_rules
223
+
224
+ # @return [RouteTables] route_tables
225
+ attr_reader :route_tables
226
+
227
+ # @return [Routes] routes
228
+ attr_reader :routes
229
+
230
+ # @return [SecurityPartnerProviders] security_partner_providers
231
+ attr_reader :security_partner_providers
232
+
233
+ # @return [BgpServiceCommunities] bgp_service_communities
234
+ attr_reader :bgp_service_communities
235
+
236
+ # @return [ServiceEndpointPolicies] service_endpoint_policies
237
+ attr_reader :service_endpoint_policies
238
+
239
+ # @return [ServiceEndpointPolicyDefinitions]
240
+ # service_endpoint_policy_definitions
241
+ attr_reader :service_endpoint_policy_definitions
242
+
243
+ # @return [ServiceTags] service_tags
244
+ attr_reader :service_tags
245
+
246
+ # @return [Usages] usages
247
+ attr_reader :usages
248
+
249
+ # @return [VirtualNetworks] virtual_networks
250
+ attr_reader :virtual_networks
251
+
252
+ # @return [Subnets] subnets
253
+ attr_reader :subnets
254
+
255
+ # @return [ResourceNavigationLinks] resource_navigation_links
256
+ attr_reader :resource_navigation_links
257
+
258
+ # @return [ServiceAssociationLinks] service_association_links
259
+ attr_reader :service_association_links
260
+
261
+ # @return [VirtualNetworkPeerings] virtual_network_peerings
262
+ attr_reader :virtual_network_peerings
263
+
264
+ # @return [VirtualNetworkGateways] virtual_network_gateways
265
+ attr_reader :virtual_network_gateways
266
+
267
+ # @return [VirtualNetworkGatewayConnections]
268
+ # virtual_network_gateway_connections
269
+ attr_reader :virtual_network_gateway_connections
270
+
271
+ # @return [LocalNetworkGateways] local_network_gateways
272
+ attr_reader :local_network_gateways
273
+
274
+ # @return [VirtualNetworkTaps] virtual_network_taps
275
+ attr_reader :virtual_network_taps
276
+
277
+ # @return [VirtualRouters] virtual_routers
278
+ attr_reader :virtual_routers
279
+
280
+ # @return [VirtualRouterPeerings] virtual_router_peerings
281
+ attr_reader :virtual_router_peerings
282
+
283
+ # @return [VirtualWans] virtual_wans
284
+ attr_reader :virtual_wans
285
+
286
+ # @return [VpnSites] vpn_sites
287
+ attr_reader :vpn_sites
288
+
289
+ # @return [VpnSiteLinks] vpn_site_links
290
+ attr_reader :vpn_site_links
291
+
292
+ # @return [VpnSitesConfiguration] vpn_sites_configuration
293
+ attr_reader :vpn_sites_configuration
294
+
295
+ # @return [VpnServerConfigurations] vpn_server_configurations
296
+ attr_reader :vpn_server_configurations
297
+
298
+ # @return [VirtualHubs] virtual_hubs
299
+ attr_reader :virtual_hubs
300
+
301
+ # @return [HubVirtualNetworkConnections] hub_virtual_network_connections
302
+ attr_reader :hub_virtual_network_connections
303
+
304
+ # @return [VpnGateways] vpn_gateways
305
+ attr_reader :vpn_gateways
306
+
307
+ # @return [VpnConnections] vpn_connections
308
+ attr_reader :vpn_connections
309
+
310
+ # @return [VpnSiteLinkConnections] vpn_site_link_connections
311
+ attr_reader :vpn_site_link_connections
312
+
313
+ # @return [VpnLinkConnections] vpn_link_connections
314
+ attr_reader :vpn_link_connections
315
+
316
+ # @return [P2sVpnGateways] p2s_vpn_gateways
317
+ attr_reader :p2s_vpn_gateways
318
+
319
+ # @return [VpnServerConfigurationsAssociatedWithVirtualWan]
320
+ # vpn_server_configurations_associated_with_virtual_wan
321
+ attr_reader :vpn_server_configurations_associated_with_virtual_wan
322
+
323
+ # @return [VirtualHubRouteTableV2s] virtual_hub_route_table_v2s
324
+ attr_reader :virtual_hub_route_table_v2s
325
+
326
+ # @return [ExpressRouteGateways] express_route_gateways
327
+ attr_reader :express_route_gateways
328
+
329
+ # @return [ExpressRouteConnections] express_route_connections
330
+ attr_reader :express_route_connections
331
+
332
+ # @return [HubRouteTables] hub_route_tables
333
+ attr_reader :hub_route_tables
334
+
335
+ # @return [WebApplicationFirewallPolicies]
336
+ # web_application_firewall_policies
337
+ attr_reader :web_application_firewall_policies
338
+
339
+ #
340
+ # Creates initializes a new instance of the NetworkManagementClient class.
341
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
342
+ # @param base_url [String] the base URI of the service.
343
+ # @param options [Array] filters to be applied to the HTTP requests.
344
+ #
345
+ def initialize(credentials = nil, base_url = nil, options = nil)
346
+ super(credentials, options)
347
+ @base_url = base_url || 'https://management.azure.com'
348
+
349
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
350
+ @credentials = credentials
351
+
352
+ @application_gateways = ApplicationGateways.new(self)
353
+ @application_security_groups = ApplicationSecurityGroups.new(self)
354
+ @available_delegations = AvailableDelegations.new(self)
355
+ @available_resource_group_delegations = AvailableResourceGroupDelegations.new(self)
356
+ @available_service_aliases = AvailableServiceAliases.new(self)
357
+ @azure_firewalls = AzureFirewalls.new(self)
358
+ @azure_firewall_fqdn_tags = AzureFirewallFqdnTags.new(self)
359
+ @bastion_hosts = BastionHosts.new(self)
360
+ @ddos_custom_policies = DdosCustomPolicies.new(self)
361
+ @ddos_protection_plans = DdosProtectionPlans.new(self)
362
+ @available_endpoint_services = AvailableEndpointServices.new(self)
363
+ @express_route_circuit_authorizations = ExpressRouteCircuitAuthorizations.new(self)
364
+ @express_route_circuit_peerings = ExpressRouteCircuitPeerings.new(self)
365
+ @express_route_circuit_connections = ExpressRouteCircuitConnections.new(self)
366
+ @peer_express_route_circuit_connections = PeerExpressRouteCircuitConnections.new(self)
367
+ @express_route_circuits = ExpressRouteCircuits.new(self)
368
+ @express_route_service_providers = ExpressRouteServiceProviders.new(self)
369
+ @express_route_cross_connections = ExpressRouteCrossConnections.new(self)
370
+ @express_route_cross_connection_peerings = ExpressRouteCrossConnectionPeerings.new(self)
371
+ @express_route_ports_locations = ExpressRoutePortsLocations.new(self)
372
+ @express_route_ports = ExpressRoutePorts.new(self)
373
+ @express_route_links = ExpressRouteLinks.new(self)
374
+ @firewall_policies = FirewallPolicies.new(self)
375
+ @firewall_policy_rule_groups = FirewallPolicyRuleGroups.new(self)
376
+ @ip_allocations = IpAllocations.new(self)
377
+ @ip_groups = IpGroups.new(self)
378
+ @load_balancers = LoadBalancers.new(self)
379
+ @load_balancer_backend_address_pools = LoadBalancerBackendAddressPools.new(self)
380
+ @load_balancer_frontend_ipconfigurations = LoadBalancerFrontendIPConfigurations.new(self)
381
+ @inbound_nat_rules = InboundNatRules.new(self)
382
+ @load_balancer_load_balancing_rules = LoadBalancerLoadBalancingRules.new(self)
383
+ @load_balancer_outbound_rules = LoadBalancerOutboundRules.new(self)
384
+ @load_balancer_network_interfaces = LoadBalancerNetworkInterfaces.new(self)
385
+ @load_balancer_probes = LoadBalancerProbes.new(self)
386
+ @nat_gateways = NatGateways.new(self)
387
+ @network_interfaces = NetworkInterfaces.new(self)
388
+ @network_interface_ipconfigurations = NetworkInterfaceIPConfigurations.new(self)
389
+ @network_interface_load_balancers = NetworkInterfaceLoadBalancers.new(self)
390
+ @network_interface_tap_configurations = NetworkInterfaceTapConfigurations.new(self)
391
+ @network_profiles = NetworkProfiles.new(self)
392
+ @network_security_groups = NetworkSecurityGroups.new(self)
393
+ @security_rules = SecurityRules.new(self)
394
+ @default_security_rules = DefaultSecurityRules.new(self)
395
+ @network_virtual_appliances = NetworkVirtualAppliances.new(self)
396
+ @network_watchers = NetworkWatchers.new(self)
397
+ @packet_captures = PacketCaptures.new(self)
398
+ @connection_monitors = ConnectionMonitors.new(self)
399
+ @flow_logs = FlowLogs.new(self)
400
+ @operations = Operations.new(self)
401
+ @private_endpoints = PrivateEndpoints.new(self)
402
+ @available_private_endpoint_types = AvailablePrivateEndpointTypes.new(self)
403
+ @private_dns_zone_groups = PrivateDnsZoneGroups.new(self)
404
+ @private_link_services = PrivateLinkServices.new(self)
405
+ @public_ipaddresses = PublicIPAddresses.new(self)
406
+ @public_ipprefixes = PublicIPPrefixes.new(self)
407
+ @route_filters = RouteFilters.new(self)
408
+ @route_filter_rules = RouteFilterRules.new(self)
409
+ @route_tables = RouteTables.new(self)
410
+ @routes = Routes.new(self)
411
+ @security_partner_providers = SecurityPartnerProviders.new(self)
412
+ @bgp_service_communities = BgpServiceCommunities.new(self)
413
+ @service_endpoint_policies = ServiceEndpointPolicies.new(self)
414
+ @service_endpoint_policy_definitions = ServiceEndpointPolicyDefinitions.new(self)
415
+ @service_tags = ServiceTags.new(self)
416
+ @usages = Usages.new(self)
417
+ @virtual_networks = VirtualNetworks.new(self)
418
+ @subnets = Subnets.new(self)
419
+ @resource_navigation_links = ResourceNavigationLinks.new(self)
420
+ @service_association_links = ServiceAssociationLinks.new(self)
421
+ @virtual_network_peerings = VirtualNetworkPeerings.new(self)
422
+ @virtual_network_gateways = VirtualNetworkGateways.new(self)
423
+ @virtual_network_gateway_connections = VirtualNetworkGatewayConnections.new(self)
424
+ @local_network_gateways = LocalNetworkGateways.new(self)
425
+ @virtual_network_taps = VirtualNetworkTaps.new(self)
426
+ @virtual_routers = VirtualRouters.new(self)
427
+ @virtual_router_peerings = VirtualRouterPeerings.new(self)
428
+ @virtual_wans = VirtualWans.new(self)
429
+ @vpn_sites = VpnSites.new(self)
430
+ @vpn_site_links = VpnSiteLinks.new(self)
431
+ @vpn_sites_configuration = VpnSitesConfiguration.new(self)
432
+ @vpn_server_configurations = VpnServerConfigurations.new(self)
433
+ @virtual_hubs = VirtualHubs.new(self)
434
+ @hub_virtual_network_connections = HubVirtualNetworkConnections.new(self)
435
+ @vpn_gateways = VpnGateways.new(self)
436
+ @vpn_connections = VpnConnections.new(self)
437
+ @vpn_site_link_connections = VpnSiteLinkConnections.new(self)
438
+ @vpn_link_connections = VpnLinkConnections.new(self)
439
+ @p2s_vpn_gateways = P2sVpnGateways.new(self)
440
+ @vpn_server_configurations_associated_with_virtual_wan = VpnServerConfigurationsAssociatedWithVirtualWan.new(self)
441
+ @virtual_hub_route_table_v2s = VirtualHubRouteTableV2s.new(self)
442
+ @express_route_gateways = ExpressRouteGateways.new(self)
443
+ @express_route_connections = ExpressRouteConnections.new(self)
444
+ @hub_route_tables = HubRouteTables.new(self)
445
+ @web_application_firewall_policies = WebApplicationFirewallPolicies.new(self)
446
+ @api_version = '2020-04-01'
447
+ @api_version1 = '2017-03-30'
448
+ @accept_language = 'en-US'
449
+ @long_running_operation_retry_timeout = 30
450
+ @generate_client_request_id = true
451
+ add_telemetry
452
+ end
453
+
454
+ #
455
+ # Makes a request and returns the body of the response.
456
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
457
+ # @param path [String] the path, relative to {base_url}.
458
+ # @param options [Hash{String=>String}] specifying any request options like :body.
459
+ # @return [Hash{String=>String}] containing the body of the response.
460
+ # Example:
461
+ #
462
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
463
+ # path = "/path"
464
+ # options = {
465
+ # body: request_content,
466
+ # query_params: {'api-version' => '2016-02-01'}
467
+ # }
468
+ # result = @client.make_request(:put, path, options)
469
+ #
470
+ def make_request(method, path, options = {})
471
+ result = make_request_with_http_info(method, path, options)
472
+ result.body unless result.nil?
473
+ end
474
+
475
+ #
476
+ # Makes a request and returns the operation response.
477
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
478
+ # @param path [String] the path, relative to {base_url}.
479
+ # @param options [Hash{String=>String}] specifying any request options like :body.
480
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
481
+ #
482
+ def make_request_with_http_info(method, path, options = {})
483
+ result = make_request_async(method, path, options).value!
484
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
485
+ result
486
+ end
487
+
488
+ #
489
+ # Makes a request asynchronously.
490
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
491
+ # @param path [String] the path, relative to {base_url}.
492
+ # @param options [Hash{String=>String}] specifying any request options like :body.
493
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
494
+ #
495
+ def make_request_async(method, path, options = {})
496
+ fail ArgumentError, 'method is nil' if method.nil?
497
+ fail ArgumentError, 'path is nil' if path.nil?
498
+
499
+ request_url = options[:base_url] || @base_url
500
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
501
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
502
+ end
503
+
504
+ request_headers = @request_headers
505
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
506
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
507
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
508
+
509
+ super(request_url, method, path, options)
510
+ end
511
+
512
+ #
513
+ # Creates a Bastion Shareable Links for all the VMs specified in the request.
514
+ #
515
+ # @param resource_group_name [String] The name of the resource group.
516
+ # @param bastion_host_name [String] The name of the Bastion Host.
517
+ # @param bsl_request [BastionShareableLinkListRequest] Post request for all the
518
+ # Bastion Shareable Link endpoints.
519
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
520
+ # will be added to the HTTP request.
521
+ #
522
+ # @return [Array<BastionShareableLink>] operation results.
523
+ #
524
+ def put_bastion_shareable_link(resource_group_name, bastion_host_name, bsl_request, custom_headers:nil)
525
+ first_page = put_bastion_shareable_link_as_lazy(resource_group_name, bastion_host_name, bsl_request, custom_headers:custom_headers)
526
+ first_page.get_all_items
527
+ end
528
+
529
+ #
530
+ # Creates a Bastion Shareable Links for all the VMs specified in the request.
531
+ #
532
+ # @param resource_group_name [String] The name of the resource group.
533
+ # @param bastion_host_name [String] The name of the Bastion Host.
534
+ # @param bsl_request [BastionShareableLinkListRequest] Post request for all the
535
+ # Bastion Shareable Link endpoints.
536
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
537
+ # will be added to the HTTP request.
538
+ #
539
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
540
+ #
541
+ def put_bastion_shareable_link_with_http_info(resource_group_name, bastion_host_name, bsl_request, custom_headers:nil)
542
+ put_bastion_shareable_link_async(resource_group_name, bastion_host_name, bsl_request, custom_headers:custom_headers).value!
543
+ end
544
+
545
+ #
546
+ # Creates a Bastion Shareable Links for all the VMs specified in the request.
547
+ #
548
+ # @param resource_group_name [String] The name of the resource group.
549
+ # @param bastion_host_name [String] The name of the Bastion Host.
550
+ # @param bsl_request [BastionShareableLinkListRequest] Post request for all the
551
+ # Bastion Shareable Link endpoints.
552
+ # @param [Hash{String => String}] A hash of custom headers that will be added
553
+ # to the HTTP request.
554
+ #
555
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
556
+ #
557
+ def put_bastion_shareable_link_async(resource_group_name, bastion_host_name, bsl_request, custom_headers:nil)
558
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
559
+ fail ArgumentError, 'bastion_host_name is nil' if bastion_host_name.nil?
560
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
561
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
562
+ fail ArgumentError, 'bsl_request is nil' if bsl_request.nil?
563
+
564
+
565
+ request_headers = {}
566
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
567
+
568
+ # Set Headers
569
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
570
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
571
+
572
+ # Serialize Request
573
+ request_mapper = Azure::Network::Mgmt::V2020_04_01::Models::BastionShareableLinkListRequest.mapper()
574
+ request_content = self.serialize(request_mapper, bsl_request)
575
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
576
+
577
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/createShareableLinks'
578
+
579
+ request_url = @base_url || self.base_url
580
+
581
+ options = {
582
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
583
+ path_params: {'resourceGroupName' => resource_group_name,'bastionHostName' => bastion_host_name,'subscriptionId' => subscription_id},
584
+ query_params: {'api-version' => api_version},
585
+ body: request_content,
586
+ headers: request_headers.merge(custom_headers || {}),
587
+ base_url: request_url
588
+ }
589
+ promise = self.make_request_async(:post, path_template, options)
590
+
591
+ promise = promise.then do |result|
592
+ http_response = result.response
593
+ status_code = http_response.status
594
+ response_content = http_response.body
595
+ unless status_code == 200 || status_code == 202
596
+ error_model = JSON.load(response_content)
597
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
598
+ end
599
+
600
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
601
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
602
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
603
+ # Deserialize Response
604
+ if status_code == 200
605
+ begin
606
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
607
+ result_mapper = Azure::Network::Mgmt::V2020_04_01::Models::BastionShareableLinkListResult.mapper()
608
+ result.body = self.deserialize(result_mapper, parsed_response)
609
+ rescue Exception => e
610
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
611
+ end
612
+ end
613
+
614
+ result
615
+ end
616
+
617
+ promise.execute
618
+ end
619
+
620
+ #
621
+ # Deletes the Bastion Shareable Links for all the VMs specified in the request.
622
+ #
623
+ # @param resource_group_name [String] The name of the resource group.
624
+ # @param bastion_host_name [String] The name of the Bastion Host.
625
+ # @param bsl_request [BastionShareableLinkListRequest] Post request for all the
626
+ # Bastion Shareable Link endpoints.
627
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
628
+ # will be added to the HTTP request.
629
+ #
630
+ #
631
+ def delete_bastion_shareable_link(resource_group_name, bastion_host_name, bsl_request, custom_headers:nil)
632
+ response = delete_bastion_shareable_link_async(resource_group_name, bastion_host_name, bsl_request, custom_headers:custom_headers).value!
633
+ nil
634
+ end
635
+
636
+ #
637
+ # Deletes the Bastion Shareable Links for all the VMs specified in the request.
638
+ #
639
+ # @param resource_group_name [String] The name of the resource group.
640
+ # @param bastion_host_name [String] The name of the Bastion Host.
641
+ # @param bsl_request [BastionShareableLinkListRequest] Post request for all the
642
+ # Bastion Shareable Link endpoints.
643
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
644
+ # will be added to the HTTP request.
645
+ #
646
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
647
+ #
648
+ def delete_bastion_shareable_link_with_http_info(resource_group_name, bastion_host_name, bsl_request, custom_headers:nil)
649
+ delete_bastion_shareable_link_async(resource_group_name, bastion_host_name, bsl_request, custom_headers:custom_headers).value!
650
+ end
651
+
652
+ #
653
+ # Deletes the Bastion Shareable Links for all the VMs specified in the request.
654
+ #
655
+ # @param resource_group_name [String] The name of the resource group.
656
+ # @param bastion_host_name [String] The name of the Bastion Host.
657
+ # @param bsl_request [BastionShareableLinkListRequest] Post request for all the
658
+ # Bastion Shareable Link endpoints.
659
+ # @param [Hash{String => String}] A hash of custom headers that will be added
660
+ # to the HTTP request.
661
+ #
662
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
663
+ #
664
+ def delete_bastion_shareable_link_async(resource_group_name, bastion_host_name, bsl_request, custom_headers:nil)
665
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
666
+ fail ArgumentError, 'bastion_host_name is nil' if bastion_host_name.nil?
667
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
668
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
669
+ fail ArgumentError, 'bsl_request is nil' if bsl_request.nil?
670
+
671
+
672
+ request_headers = {}
673
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
674
+
675
+ # Set Headers
676
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
677
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
678
+
679
+ # Serialize Request
680
+ request_mapper = Azure::Network::Mgmt::V2020_04_01::Models::BastionShareableLinkListRequest.mapper()
681
+ request_content = self.serialize(request_mapper, bsl_request)
682
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
683
+
684
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/deleteShareableLinks'
685
+
686
+ request_url = @base_url || self.base_url
687
+
688
+ options = {
689
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
690
+ path_params: {'resourceGroupName' => resource_group_name,'bastionHostName' => bastion_host_name,'subscriptionId' => subscription_id},
691
+ query_params: {'api-version' => api_version},
692
+ body: request_content,
693
+ headers: request_headers.merge(custom_headers || {}),
694
+ base_url: request_url
695
+ }
696
+ promise = self.make_request_async(:post, path_template, options)
697
+
698
+ promise = promise.then do |result|
699
+ http_response = result.response
700
+ status_code = http_response.status
701
+ response_content = http_response.body
702
+ unless status_code == 200 || status_code == 202
703
+ error_model = JSON.load(response_content)
704
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
705
+ end
706
+
707
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
708
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
709
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
710
+
711
+ result
712
+ end
713
+
714
+ promise.execute
715
+ end
716
+
717
+ #
718
+ # Return the Bastion Shareable Links for all the VMs specified in the request.
719
+ #
720
+ # @param resource_group_name [String] The name of the resource group.
721
+ # @param bastion_host_name [String] The name of the Bastion Host.
722
+ # @param bsl_request [BastionShareableLinkListRequest] Post request for all the
723
+ # Bastion Shareable Link endpoints.
724
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
725
+ # will be added to the HTTP request.
726
+ #
727
+ # @return [Array<BastionShareableLink>] operation results.
728
+ #
729
+ def get_bastion_shareable_link(resource_group_name, bastion_host_name, bsl_request, custom_headers:nil)
730
+ first_page = get_bastion_shareable_link_as_lazy(resource_group_name, bastion_host_name, bsl_request, custom_headers:custom_headers)
731
+ first_page.get_all_items
732
+ end
733
+
734
+ #
735
+ # Return the Bastion Shareable Links for all the VMs specified in the request.
736
+ #
737
+ # @param resource_group_name [String] The name of the resource group.
738
+ # @param bastion_host_name [String] The name of the Bastion Host.
739
+ # @param bsl_request [BastionShareableLinkListRequest] Post request for all the
740
+ # Bastion Shareable Link endpoints.
741
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
742
+ # will be added to the HTTP request.
743
+ #
744
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
745
+ #
746
+ def get_bastion_shareable_link_with_http_info(resource_group_name, bastion_host_name, bsl_request, custom_headers:nil)
747
+ get_bastion_shareable_link_async(resource_group_name, bastion_host_name, bsl_request, custom_headers:custom_headers).value!
748
+ end
749
+
750
+ #
751
+ # Return the Bastion Shareable Links for all the VMs specified in the request.
752
+ #
753
+ # @param resource_group_name [String] The name of the resource group.
754
+ # @param bastion_host_name [String] The name of the Bastion Host.
755
+ # @param bsl_request [BastionShareableLinkListRequest] Post request for all the
756
+ # Bastion Shareable Link endpoints.
757
+ # @param [Hash{String => String}] A hash of custom headers that will be added
758
+ # to the HTTP request.
759
+ #
760
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
761
+ #
762
+ def get_bastion_shareable_link_async(resource_group_name, bastion_host_name, bsl_request, custom_headers:nil)
763
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
764
+ fail ArgumentError, 'bastion_host_name is nil' if bastion_host_name.nil?
765
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
766
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
767
+ fail ArgumentError, 'bsl_request is nil' if bsl_request.nil?
768
+
769
+
770
+ request_headers = {}
771
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
772
+
773
+ # Set Headers
774
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
775
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
776
+
777
+ # Serialize Request
778
+ request_mapper = Azure::Network::Mgmt::V2020_04_01::Models::BastionShareableLinkListRequest.mapper()
779
+ request_content = self.serialize(request_mapper, bsl_request)
780
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
781
+
782
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/getShareableLinks'
783
+
784
+ request_url = @base_url || self.base_url
785
+
786
+ options = {
787
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
788
+ path_params: {'resourceGroupName' => resource_group_name,'bastionHostName' => bastion_host_name,'subscriptionId' => subscription_id},
789
+ query_params: {'api-version' => api_version},
790
+ body: request_content,
791
+ headers: request_headers.merge(custom_headers || {}),
792
+ base_url: request_url
793
+ }
794
+ promise = self.make_request_async(:post, path_template, options)
795
+
796
+ promise = promise.then do |result|
797
+ http_response = result.response
798
+ status_code = http_response.status
799
+ response_content = http_response.body
800
+ unless status_code == 200
801
+ error_model = JSON.load(response_content)
802
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
803
+ end
804
+
805
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
806
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
807
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
808
+ # Deserialize Response
809
+ if status_code == 200
810
+ begin
811
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
812
+ result_mapper = Azure::Network::Mgmt::V2020_04_01::Models::BastionShareableLinkListResult.mapper()
813
+ result.body = self.deserialize(result_mapper, parsed_response)
814
+ rescue Exception => e
815
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
816
+ end
817
+ end
818
+
819
+ result
820
+ end
821
+
822
+ promise.execute
823
+ end
824
+
825
+ #
826
+ # Returns the list of currently active sessions on the Bastion.
827
+ #
828
+ # @param resource_group_name [String] The name of the resource group.
829
+ # @param bastion_host_name [String] The name of the Bastion Host.
830
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
831
+ # will be added to the HTTP request.
832
+ #
833
+ # @return [Array<BastionActiveSession>] operation results.
834
+ #
835
+ def get_active_sessions(resource_group_name, bastion_host_name, custom_headers:nil)
836
+ first_page = get_active_sessions_as_lazy(resource_group_name, bastion_host_name, custom_headers:custom_headers)
837
+ first_page.get_all_items
838
+ end
839
+
840
+ #
841
+ # Returns the list of currently active sessions on the Bastion.
842
+ #
843
+ # @param resource_group_name [String] The name of the resource group.
844
+ # @param bastion_host_name [String] The name of the Bastion Host.
845
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
846
+ # will be added to the HTTP request.
847
+ #
848
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
849
+ #
850
+ def get_active_sessions_with_http_info(resource_group_name, bastion_host_name, custom_headers:nil)
851
+ get_active_sessions_async(resource_group_name, bastion_host_name, custom_headers:custom_headers).value!
852
+ end
853
+
854
+ #
855
+ # Returns the list of currently active sessions on the Bastion.
856
+ #
857
+ # @param resource_group_name [String] The name of the resource group.
858
+ # @param bastion_host_name [String] The name of the Bastion Host.
859
+ # @param [Hash{String => String}] A hash of custom headers that will be added
860
+ # to the HTTP request.
861
+ #
862
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
863
+ #
864
+ def get_active_sessions_async(resource_group_name, bastion_host_name, custom_headers:nil)
865
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
866
+ fail ArgumentError, 'bastion_host_name is nil' if bastion_host_name.nil?
867
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
868
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
869
+
870
+
871
+ request_headers = {}
872
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
873
+
874
+ # Set Headers
875
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
876
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
877
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/getActiveSessions'
878
+
879
+ request_url = @base_url || self.base_url
880
+
881
+ options = {
882
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
883
+ path_params: {'resourceGroupName' => resource_group_name,'bastionHostName' => bastion_host_name,'subscriptionId' => subscription_id},
884
+ query_params: {'api-version' => api_version},
885
+ headers: request_headers.merge(custom_headers || {}),
886
+ base_url: request_url
887
+ }
888
+ promise = self.make_request_async(:post, path_template, options)
889
+
890
+ promise = promise.then do |result|
891
+ http_response = result.response
892
+ status_code = http_response.status
893
+ response_content = http_response.body
894
+ unless status_code == 200 || status_code == 202
895
+ error_model = JSON.load(response_content)
896
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
897
+ end
898
+
899
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
900
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
901
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
902
+ # Deserialize Response
903
+ if status_code == 200
904
+ begin
905
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
906
+ result_mapper = Azure::Network::Mgmt::V2020_04_01::Models::BastionActiveSessionListResult.mapper()
907
+ result.body = self.deserialize(result_mapper, parsed_response)
908
+ rescue Exception => e
909
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
910
+ end
911
+ end
912
+
913
+ result
914
+ end
915
+
916
+ promise.execute
917
+ end
918
+
919
+ #
920
+ # Returns the list of currently active sessions on the Bastion.
921
+ #
922
+ # @param resource_group_name [String] The name of the resource group.
923
+ # @param bastion_host_name [String] The name of the Bastion Host.
924
+ # @param session_ids [SessionIds] The list of sessionids to disconnect.
925
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
926
+ # will be added to the HTTP request.
927
+ #
928
+ # @return [Array<BastionSessionState>] operation results.
929
+ #
930
+ def disconnect_active_sessions(resource_group_name, bastion_host_name, session_ids, custom_headers:nil)
931
+ first_page = disconnect_active_sessions_as_lazy(resource_group_name, bastion_host_name, session_ids, custom_headers:custom_headers)
932
+ first_page.get_all_items
933
+ end
934
+
935
+ #
936
+ # Returns the list of currently active sessions on the Bastion.
937
+ #
938
+ # @param resource_group_name [String] The name of the resource group.
939
+ # @param bastion_host_name [String] The name of the Bastion Host.
940
+ # @param session_ids [SessionIds] The list of sessionids to disconnect.
941
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
942
+ # will be added to the HTTP request.
943
+ #
944
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
945
+ #
946
+ def disconnect_active_sessions_with_http_info(resource_group_name, bastion_host_name, session_ids, custom_headers:nil)
947
+ disconnect_active_sessions_async(resource_group_name, bastion_host_name, session_ids, custom_headers:custom_headers).value!
948
+ end
949
+
950
+ #
951
+ # Returns the list of currently active sessions on the Bastion.
952
+ #
953
+ # @param resource_group_name [String] The name of the resource group.
954
+ # @param bastion_host_name [String] The name of the Bastion Host.
955
+ # @param session_ids [SessionIds] The list of sessionids to disconnect.
956
+ # @param [Hash{String => String}] A hash of custom headers that will be added
957
+ # to the HTTP request.
958
+ #
959
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
960
+ #
961
+ def disconnect_active_sessions_async(resource_group_name, bastion_host_name, session_ids, custom_headers:nil)
962
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
963
+ fail ArgumentError, 'bastion_host_name is nil' if bastion_host_name.nil?
964
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
965
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
966
+ fail ArgumentError, 'session_ids is nil' if session_ids.nil?
967
+
968
+
969
+ request_headers = {}
970
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
971
+
972
+ # Set Headers
973
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
974
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
975
+
976
+ # Serialize Request
977
+ request_mapper = Azure::Network::Mgmt::V2020_04_01::Models::SessionIds.mapper()
978
+ request_content = self.serialize(request_mapper, session_ids)
979
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
980
+
981
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/disconnectActiveSessions'
982
+
983
+ request_url = @base_url || self.base_url
984
+
985
+ options = {
986
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
987
+ path_params: {'resourceGroupName' => resource_group_name,'bastionHostName' => bastion_host_name,'subscriptionId' => subscription_id},
988
+ query_params: {'api-version' => api_version},
989
+ body: request_content,
990
+ headers: request_headers.merge(custom_headers || {}),
991
+ base_url: request_url
992
+ }
993
+ promise = self.make_request_async(:post, path_template, options)
994
+
995
+ promise = promise.then do |result|
996
+ http_response = result.response
997
+ status_code = http_response.status
998
+ response_content = http_response.body
999
+ unless status_code == 200
1000
+ error_model = JSON.load(response_content)
1001
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1002
+ end
1003
+
1004
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1005
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1006
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1007
+ # Deserialize Response
1008
+ if status_code == 200
1009
+ begin
1010
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1011
+ result_mapper = Azure::Network::Mgmt::V2020_04_01::Models::BastionSessionDeleteResult.mapper()
1012
+ result.body = self.deserialize(result_mapper, parsed_response)
1013
+ rescue Exception => e
1014
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1015
+ end
1016
+ end
1017
+
1018
+ result
1019
+ end
1020
+
1021
+ promise.execute
1022
+ end
1023
+
1024
+ #
1025
+ # Checks whether a domain name in the cloudapp.azure.com zone is available for
1026
+ # use.
1027
+ #
1028
+ # @param location [String] The location of the domain name.
1029
+ # @param domain_name_label [String] The domain name to be verified. It must
1030
+ # conform to the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$.
1031
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1032
+ # will be added to the HTTP request.
1033
+ #
1034
+ # @return [DnsNameAvailabilityResult] operation results.
1035
+ #
1036
+ def check_dns_name_availability(location, domain_name_label, custom_headers:nil)
1037
+ response = check_dns_name_availability_async(location, domain_name_label, custom_headers:custom_headers).value!
1038
+ response.body unless response.nil?
1039
+ end
1040
+
1041
+ #
1042
+ # Checks whether a domain name in the cloudapp.azure.com zone is available for
1043
+ # use.
1044
+ #
1045
+ # @param location [String] The location of the domain name.
1046
+ # @param domain_name_label [String] The domain name to be verified. It must
1047
+ # conform to the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$.
1048
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1049
+ # will be added to the HTTP request.
1050
+ #
1051
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1052
+ #
1053
+ def check_dns_name_availability_with_http_info(location, domain_name_label, custom_headers:nil)
1054
+ check_dns_name_availability_async(location, domain_name_label, custom_headers:custom_headers).value!
1055
+ end
1056
+
1057
+ #
1058
+ # Checks whether a domain name in the cloudapp.azure.com zone is available for
1059
+ # use.
1060
+ #
1061
+ # @param location [String] The location of the domain name.
1062
+ # @param domain_name_label [String] The domain name to be verified. It must
1063
+ # conform to the following regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$.
1064
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1065
+ # to the HTTP request.
1066
+ #
1067
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1068
+ #
1069
+ def check_dns_name_availability_async(location, domain_name_label, custom_headers:nil)
1070
+ fail ArgumentError, 'location is nil' if location.nil?
1071
+ fail ArgumentError, 'domain_name_label is nil' if domain_name_label.nil?
1072
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
1073
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
1074
+
1075
+
1076
+ request_headers = {}
1077
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1078
+
1079
+ # Set Headers
1080
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1081
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
1082
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/CheckDnsNameAvailability'
1083
+
1084
+ request_url = @base_url || self.base_url
1085
+
1086
+ options = {
1087
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1088
+ path_params: {'location' => location,'subscriptionId' => subscription_id},
1089
+ query_params: {'domainNameLabel' => domain_name_label,'api-version' => api_version},
1090
+ headers: request_headers.merge(custom_headers || {}),
1091
+ base_url: request_url
1092
+ }
1093
+ promise = self.make_request_async(:get, path_template, options)
1094
+
1095
+ promise = promise.then do |result|
1096
+ http_response = result.response
1097
+ status_code = http_response.status
1098
+ response_content = http_response.body
1099
+ unless status_code == 200
1100
+ error_model = JSON.load(response_content)
1101
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1102
+ end
1103
+
1104
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1105
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1106
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1107
+ # Deserialize Response
1108
+ if status_code == 200
1109
+ begin
1110
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1111
+ result_mapper = Azure::Network::Mgmt::V2020_04_01::Models::DnsNameAvailabilityResult.mapper()
1112
+ result.body = self.deserialize(result_mapper, parsed_response)
1113
+ rescue Exception => e
1114
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1115
+ end
1116
+ end
1117
+
1118
+ result
1119
+ end
1120
+
1121
+ promise.execute
1122
+ end
1123
+
1124
+ #
1125
+ # Gives the supported security providers for the virtual wan.
1126
+ #
1127
+ # @param resource_group_name [String] The resource group name.
1128
+ # @param virtual_wanname [String] The name of the VirtualWAN for which
1129
+ # supported security providers are needed.
1130
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1131
+ # will be added to the HTTP request.
1132
+ #
1133
+ # @return [VirtualWanSecurityProviders] operation results.
1134
+ #
1135
+ def supported_security_providers(resource_group_name, virtual_wanname, custom_headers:nil)
1136
+ response = supported_security_providers_async(resource_group_name, virtual_wanname, custom_headers:custom_headers).value!
1137
+ response.body unless response.nil?
1138
+ end
1139
+
1140
+ #
1141
+ # Gives the supported security providers for the virtual wan.
1142
+ #
1143
+ # @param resource_group_name [String] The resource group name.
1144
+ # @param virtual_wanname [String] The name of the VirtualWAN for which
1145
+ # supported security providers are needed.
1146
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1147
+ # will be added to the HTTP request.
1148
+ #
1149
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1150
+ #
1151
+ def supported_security_providers_with_http_info(resource_group_name, virtual_wanname, custom_headers:nil)
1152
+ supported_security_providers_async(resource_group_name, virtual_wanname, custom_headers:custom_headers).value!
1153
+ end
1154
+
1155
+ #
1156
+ # Gives the supported security providers for the virtual wan.
1157
+ #
1158
+ # @param resource_group_name [String] The resource group name.
1159
+ # @param virtual_wanname [String] The name of the VirtualWAN for which
1160
+ # supported security providers are needed.
1161
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1162
+ # to the HTTP request.
1163
+ #
1164
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1165
+ #
1166
+ def supported_security_providers_async(resource_group_name, virtual_wanname, custom_headers:nil)
1167
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
1168
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1169
+ fail ArgumentError, 'virtual_wanname is nil' if virtual_wanname.nil?
1170
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
1171
+
1172
+
1173
+ request_headers = {}
1174
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1175
+
1176
+ # Set Headers
1177
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1178
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
1179
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/supportedSecurityProviders'
1180
+
1181
+ request_url = @base_url || self.base_url
1182
+
1183
+ options = {
1184
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1185
+ path_params: {'subscriptionId' => subscription_id,'resourceGroupName' => resource_group_name,'virtualWANName' => virtual_wanname},
1186
+ query_params: {'api-version' => api_version},
1187
+ headers: request_headers.merge(custom_headers || {}),
1188
+ base_url: request_url
1189
+ }
1190
+ promise = self.make_request_async(:get, path_template, options)
1191
+
1192
+ promise = promise.then do |result|
1193
+ http_response = result.response
1194
+ status_code = http_response.status
1195
+ response_content = http_response.body
1196
+ unless status_code == 200
1197
+ error_model = JSON.load(response_content)
1198
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1199
+ end
1200
+
1201
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1202
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1203
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1204
+ # Deserialize Response
1205
+ if status_code == 200
1206
+ begin
1207
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1208
+ result_mapper = Azure::Network::Mgmt::V2020_04_01::Models::VirtualWanSecurityProviders.mapper()
1209
+ result.body = self.deserialize(result_mapper, parsed_response)
1210
+ rescue Exception => e
1211
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1212
+ end
1213
+ end
1214
+
1215
+ result
1216
+ end
1217
+
1218
+ promise.execute
1219
+ end
1220
+
1221
+ #
1222
+ # Generates a unique VPN profile for P2S clients for VirtualWan and associated
1223
+ # VpnServerConfiguration combination in the specified resource group.
1224
+ #
1225
+ # @param resource_group_name [String] The resource group name.
1226
+ # @param virtual_wanname [String] The name of the VirtualWAN whose associated
1227
+ # VpnServerConfigurations is needed.
1228
+ # @param vpn_client_params [VirtualWanVpnProfileParameters] Parameters supplied
1229
+ # to the generate VirtualWan VPN profile generation operation.
1230
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1231
+ # will be added to the HTTP request.
1232
+ #
1233
+ # @return [VpnProfileResponse] operation results.
1234
+ #
1235
+ def generatevirtualwanvpnserverconfigurationvpnprofile(resource_group_name, virtual_wanname, vpn_client_params, custom_headers:nil)
1236
+ response = generatevirtualwanvpnserverconfigurationvpnprofile_async(resource_group_name, virtual_wanname, vpn_client_params, custom_headers:custom_headers).value!
1237
+ response.body unless response.nil?
1238
+ end
1239
+
1240
+ #
1241
+ # Generates a unique VPN profile for P2S clients for VirtualWan and associated
1242
+ # VpnServerConfiguration combination in the specified resource group.
1243
+ #
1244
+ # @param resource_group_name [String] The resource group name.
1245
+ # @param virtual_wanname [String] The name of the VirtualWAN whose associated
1246
+ # VpnServerConfigurations is needed.
1247
+ # @param vpn_client_params [VirtualWanVpnProfileParameters] Parameters supplied
1248
+ # to the generate VirtualWan VPN profile generation operation.
1249
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1250
+ # will be added to the HTTP request.
1251
+ #
1252
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1253
+ #
1254
+ def generatevirtualwanvpnserverconfigurationvpnprofile_with_http_info(resource_group_name, virtual_wanname, vpn_client_params, custom_headers:nil)
1255
+ generatevirtualwanvpnserverconfigurationvpnprofile_async(resource_group_name, virtual_wanname, vpn_client_params, custom_headers:custom_headers).value!
1256
+ end
1257
+
1258
+ #
1259
+ # Generates a unique VPN profile for P2S clients for VirtualWan and associated
1260
+ # VpnServerConfiguration combination in the specified resource group.
1261
+ #
1262
+ # @param resource_group_name [String] The resource group name.
1263
+ # @param virtual_wanname [String] The name of the VirtualWAN whose associated
1264
+ # VpnServerConfigurations is needed.
1265
+ # @param vpn_client_params [VirtualWanVpnProfileParameters] Parameters supplied
1266
+ # to the generate VirtualWan VPN profile generation operation.
1267
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1268
+ # to the HTTP request.
1269
+ #
1270
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1271
+ #
1272
+ def generatevirtualwanvpnserverconfigurationvpnprofile_async(resource_group_name, virtual_wanname, vpn_client_params, custom_headers:nil)
1273
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
1274
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1275
+ fail ArgumentError, 'virtual_wanname is nil' if virtual_wanname.nil?
1276
+ fail ArgumentError, 'vpn_client_params is nil' if vpn_client_params.nil?
1277
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
1278
+
1279
+
1280
+ request_headers = {}
1281
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1282
+
1283
+ # Set Headers
1284
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1285
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
1286
+
1287
+ # Serialize Request
1288
+ request_mapper = Azure::Network::Mgmt::V2020_04_01::Models::VirtualWanVpnProfileParameters.mapper()
1289
+ request_content = self.serialize(request_mapper, vpn_client_params)
1290
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1291
+
1292
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/GenerateVpnProfile'
1293
+
1294
+ request_url = @base_url || self.base_url
1295
+
1296
+ options = {
1297
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1298
+ path_params: {'subscriptionId' => subscription_id,'resourceGroupName' => resource_group_name,'virtualWANName' => virtual_wanname},
1299
+ query_params: {'api-version' => api_version},
1300
+ body: request_content,
1301
+ headers: request_headers.merge(custom_headers || {}),
1302
+ base_url: request_url
1303
+ }
1304
+ promise = self.make_request_async(:post, path_template, options)
1305
+
1306
+ promise = promise.then do |result|
1307
+ http_response = result.response
1308
+ status_code = http_response.status
1309
+ response_content = http_response.body
1310
+ unless status_code == 200 || status_code == 202
1311
+ error_model = JSON.load(response_content)
1312
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1313
+ end
1314
+
1315
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1316
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1317
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-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::V2020_04_01::Models::VpnProfileResponse.mapper()
1323
+ result.body = self.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
+
1329
+ result
1330
+ end
1331
+
1332
+ promise.execute
1333
+ end
1334
+
1335
+ #
1336
+ # Creates a Bastion Shareable Links for all the VMs specified in the request.
1337
+ #
1338
+ # @param resource_group_name [String] The name of the resource group.
1339
+ # @param bastion_host_name [String] The name of the Bastion Host.
1340
+ # @param bsl_request [BastionShareableLinkListRequest] Post request for all the
1341
+ # Bastion Shareable Link endpoints.
1342
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1343
+ # will be added to the HTTP request.
1344
+ #
1345
+ # @return [Array<BastionShareableLink>] operation results.
1346
+ #
1347
+ def begin_put_bastion_shareable_link(resource_group_name, bastion_host_name, bsl_request, custom_headers:nil)
1348
+ first_page = begin_put_bastion_shareable_link_as_lazy(resource_group_name, bastion_host_name, bsl_request, custom_headers:custom_headers)
1349
+ first_page.get_all_items
1350
+ end
1351
+
1352
+ #
1353
+ # Creates a Bastion Shareable Links for all the VMs specified in the request.
1354
+ #
1355
+ # @param resource_group_name [String] The name of the resource group.
1356
+ # @param bastion_host_name [String] The name of the Bastion Host.
1357
+ # @param bsl_request [BastionShareableLinkListRequest] Post request for all the
1358
+ # Bastion Shareable Link endpoints.
1359
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1360
+ # will be added to the HTTP request.
1361
+ #
1362
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1363
+ #
1364
+ def begin_put_bastion_shareable_link_with_http_info(resource_group_name, bastion_host_name, bsl_request, custom_headers:nil)
1365
+ begin_put_bastion_shareable_link_async(resource_group_name, bastion_host_name, bsl_request, custom_headers:custom_headers).value!
1366
+ end
1367
+
1368
+ #
1369
+ # Creates a Bastion Shareable Links for all the VMs specified in the request.
1370
+ #
1371
+ # @param resource_group_name [String] The name of the resource group.
1372
+ # @param bastion_host_name [String] The name of the Bastion Host.
1373
+ # @param bsl_request [BastionShareableLinkListRequest] Post request for all the
1374
+ # Bastion Shareable Link endpoints.
1375
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1376
+ # to the HTTP request.
1377
+ #
1378
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1379
+ #
1380
+ def begin_put_bastion_shareable_link_async(resource_group_name, bastion_host_name, bsl_request, custom_headers:nil)
1381
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1382
+ fail ArgumentError, 'bastion_host_name is nil' if bastion_host_name.nil?
1383
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
1384
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
1385
+ fail ArgumentError, 'bsl_request is nil' if bsl_request.nil?
1386
+
1387
+
1388
+ request_headers = {}
1389
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1390
+
1391
+ # Set Headers
1392
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1393
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
1394
+
1395
+ # Serialize Request
1396
+ request_mapper = Azure::Network::Mgmt::V2020_04_01::Models::BastionShareableLinkListRequest.mapper()
1397
+ request_content = self.serialize(request_mapper, bsl_request)
1398
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1399
+
1400
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/createShareableLinks'
1401
+
1402
+ request_url = @base_url || self.base_url
1403
+
1404
+ options = {
1405
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1406
+ path_params: {'resourceGroupName' => resource_group_name,'bastionHostName' => bastion_host_name,'subscriptionId' => subscription_id},
1407
+ query_params: {'api-version' => api_version},
1408
+ body: request_content,
1409
+ headers: request_headers.merge(custom_headers || {}),
1410
+ base_url: request_url
1411
+ }
1412
+ promise = self.make_request_async(:post, path_template, options)
1413
+
1414
+ promise = promise.then do |result|
1415
+ http_response = result.response
1416
+ status_code = http_response.status
1417
+ response_content = http_response.body
1418
+ unless status_code == 200 || status_code == 202
1419
+ error_model = JSON.load(response_content)
1420
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1421
+ end
1422
+
1423
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1424
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1425
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1426
+ # Deserialize Response
1427
+ if status_code == 200
1428
+ begin
1429
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1430
+ result_mapper = Azure::Network::Mgmt::V2020_04_01::Models::BastionShareableLinkListResult.mapper()
1431
+ result.body = self.deserialize(result_mapper, parsed_response)
1432
+ rescue Exception => e
1433
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1434
+ end
1435
+ end
1436
+
1437
+ result
1438
+ end
1439
+
1440
+ promise.execute
1441
+ end
1442
+
1443
+ #
1444
+ # Deletes the Bastion Shareable Links for all the VMs specified in the request.
1445
+ #
1446
+ # @param resource_group_name [String] The name of the resource group.
1447
+ # @param bastion_host_name [String] The name of the Bastion Host.
1448
+ # @param bsl_request [BastionShareableLinkListRequest] Post request for all the
1449
+ # Bastion Shareable Link endpoints.
1450
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1451
+ # will be added to the HTTP request.
1452
+ #
1453
+ #
1454
+ def begin_delete_bastion_shareable_link(resource_group_name, bastion_host_name, bsl_request, custom_headers:nil)
1455
+ response = begin_delete_bastion_shareable_link_async(resource_group_name, bastion_host_name, bsl_request, custom_headers:custom_headers).value!
1456
+ nil
1457
+ end
1458
+
1459
+ #
1460
+ # Deletes the Bastion Shareable Links for all the VMs specified in the request.
1461
+ #
1462
+ # @param resource_group_name [String] The name of the resource group.
1463
+ # @param bastion_host_name [String] The name of the Bastion Host.
1464
+ # @param bsl_request [BastionShareableLinkListRequest] Post request for all the
1465
+ # Bastion Shareable Link endpoints.
1466
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1467
+ # will be added to the HTTP request.
1468
+ #
1469
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1470
+ #
1471
+ def begin_delete_bastion_shareable_link_with_http_info(resource_group_name, bastion_host_name, bsl_request, custom_headers:nil)
1472
+ begin_delete_bastion_shareable_link_async(resource_group_name, bastion_host_name, bsl_request, custom_headers:custom_headers).value!
1473
+ end
1474
+
1475
+ #
1476
+ # Deletes the Bastion Shareable Links for all the VMs specified in the request.
1477
+ #
1478
+ # @param resource_group_name [String] The name of the resource group.
1479
+ # @param bastion_host_name [String] The name of the Bastion Host.
1480
+ # @param bsl_request [BastionShareableLinkListRequest] Post request for all the
1481
+ # Bastion Shareable Link endpoints.
1482
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1483
+ # to the HTTP request.
1484
+ #
1485
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1486
+ #
1487
+ def begin_delete_bastion_shareable_link_async(resource_group_name, bastion_host_name, bsl_request, custom_headers:nil)
1488
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1489
+ fail ArgumentError, 'bastion_host_name is nil' if bastion_host_name.nil?
1490
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
1491
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
1492
+ fail ArgumentError, 'bsl_request is nil' if bsl_request.nil?
1493
+
1494
+
1495
+ request_headers = {}
1496
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1497
+
1498
+ # Set Headers
1499
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1500
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
1501
+
1502
+ # Serialize Request
1503
+ request_mapper = Azure::Network::Mgmt::V2020_04_01::Models::BastionShareableLinkListRequest.mapper()
1504
+ request_content = self.serialize(request_mapper, bsl_request)
1505
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1506
+
1507
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/deleteShareableLinks'
1508
+
1509
+ request_url = @base_url || self.base_url
1510
+
1511
+ options = {
1512
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1513
+ path_params: {'resourceGroupName' => resource_group_name,'bastionHostName' => bastion_host_name,'subscriptionId' => subscription_id},
1514
+ query_params: {'api-version' => api_version},
1515
+ body: request_content,
1516
+ headers: request_headers.merge(custom_headers || {}),
1517
+ base_url: request_url
1518
+ }
1519
+ promise = self.make_request_async(:post, path_template, options)
1520
+
1521
+ promise = promise.then do |result|
1522
+ http_response = result.response
1523
+ status_code = http_response.status
1524
+ response_content = http_response.body
1525
+ unless status_code == 200 || status_code == 202
1526
+ error_model = JSON.load(response_content)
1527
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1528
+ end
1529
+
1530
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1531
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1532
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1533
+
1534
+ result
1535
+ end
1536
+
1537
+ promise.execute
1538
+ end
1539
+
1540
+ #
1541
+ # Returns the list of currently active sessions on the Bastion.
1542
+ #
1543
+ # @param resource_group_name [String] The name of the resource group.
1544
+ # @param bastion_host_name [String] The name of the Bastion Host.
1545
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1546
+ # will be added to the HTTP request.
1547
+ #
1548
+ # @return [Array<BastionActiveSession>] operation results.
1549
+ #
1550
+ def begin_get_active_sessions(resource_group_name, bastion_host_name, custom_headers:nil)
1551
+ first_page = begin_get_active_sessions_as_lazy(resource_group_name, bastion_host_name, custom_headers:custom_headers)
1552
+ first_page.get_all_items
1553
+ end
1554
+
1555
+ #
1556
+ # Returns the list of currently active sessions on the Bastion.
1557
+ #
1558
+ # @param resource_group_name [String] The name of the resource group.
1559
+ # @param bastion_host_name [String] The name of the Bastion Host.
1560
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1561
+ # will be added to the HTTP request.
1562
+ #
1563
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1564
+ #
1565
+ def begin_get_active_sessions_with_http_info(resource_group_name, bastion_host_name, custom_headers:nil)
1566
+ begin_get_active_sessions_async(resource_group_name, bastion_host_name, custom_headers:custom_headers).value!
1567
+ end
1568
+
1569
+ #
1570
+ # Returns the list of currently active sessions on the Bastion.
1571
+ #
1572
+ # @param resource_group_name [String] The name of the resource group.
1573
+ # @param bastion_host_name [String] The name of the Bastion Host.
1574
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1575
+ # to the HTTP request.
1576
+ #
1577
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1578
+ #
1579
+ def begin_get_active_sessions_async(resource_group_name, bastion_host_name, custom_headers:nil)
1580
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1581
+ fail ArgumentError, 'bastion_host_name is nil' if bastion_host_name.nil?
1582
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
1583
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
1584
+
1585
+
1586
+ request_headers = {}
1587
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1588
+
1589
+ # Set Headers
1590
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1591
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
1592
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/getActiveSessions'
1593
+
1594
+ request_url = @base_url || self.base_url
1595
+
1596
+ options = {
1597
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1598
+ path_params: {'resourceGroupName' => resource_group_name,'bastionHostName' => bastion_host_name,'subscriptionId' => subscription_id},
1599
+ query_params: {'api-version' => api_version},
1600
+ headers: request_headers.merge(custom_headers || {}),
1601
+ base_url: request_url
1602
+ }
1603
+ promise = self.make_request_async(:post, path_template, options)
1604
+
1605
+ promise = promise.then do |result|
1606
+ http_response = result.response
1607
+ status_code = http_response.status
1608
+ response_content = http_response.body
1609
+ unless status_code == 200 || status_code == 202
1610
+ error_model = JSON.load(response_content)
1611
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1612
+ end
1613
+
1614
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1615
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1616
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1617
+ # Deserialize Response
1618
+ if status_code == 200
1619
+ begin
1620
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1621
+ result_mapper = Azure::Network::Mgmt::V2020_04_01::Models::BastionActiveSessionListResult.mapper()
1622
+ result.body = self.deserialize(result_mapper, parsed_response)
1623
+ rescue Exception => e
1624
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1625
+ end
1626
+ end
1627
+
1628
+ result
1629
+ end
1630
+
1631
+ promise.execute
1632
+ end
1633
+
1634
+ #
1635
+ # Generates a unique VPN profile for P2S clients for VirtualWan and associated
1636
+ # VpnServerConfiguration combination in the specified resource group.
1637
+ #
1638
+ # @param resource_group_name [String] The resource group name.
1639
+ # @param virtual_wanname [String] The name of the VirtualWAN whose associated
1640
+ # VpnServerConfigurations is needed.
1641
+ # @param vpn_client_params [VirtualWanVpnProfileParameters] Parameters supplied
1642
+ # to the generate VirtualWan VPN profile generation operation.
1643
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1644
+ # will be added to the HTTP request.
1645
+ #
1646
+ # @return [VpnProfileResponse] operation results.
1647
+ #
1648
+ def begin_generatevirtualwanvpnserverconfigurationvpnprofile(resource_group_name, virtual_wanname, vpn_client_params, custom_headers:nil)
1649
+ response = begin_generatevirtualwanvpnserverconfigurationvpnprofile_async(resource_group_name, virtual_wanname, vpn_client_params, custom_headers:custom_headers).value!
1650
+ response.body unless response.nil?
1651
+ end
1652
+
1653
+ #
1654
+ # Generates a unique VPN profile for P2S clients for VirtualWan and associated
1655
+ # VpnServerConfiguration combination in the specified resource group.
1656
+ #
1657
+ # @param resource_group_name [String] The resource group name.
1658
+ # @param virtual_wanname [String] The name of the VirtualWAN whose associated
1659
+ # VpnServerConfigurations is needed.
1660
+ # @param vpn_client_params [VirtualWanVpnProfileParameters] Parameters supplied
1661
+ # to the generate VirtualWan VPN profile generation operation.
1662
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1663
+ # will be added to the HTTP request.
1664
+ #
1665
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1666
+ #
1667
+ def begin_generatevirtualwanvpnserverconfigurationvpnprofile_with_http_info(resource_group_name, virtual_wanname, vpn_client_params, custom_headers:nil)
1668
+ begin_generatevirtualwanvpnserverconfigurationvpnprofile_async(resource_group_name, virtual_wanname, vpn_client_params, custom_headers:custom_headers).value!
1669
+ end
1670
+
1671
+ #
1672
+ # Generates a unique VPN profile for P2S clients for VirtualWan and associated
1673
+ # VpnServerConfiguration combination in the specified resource group.
1674
+ #
1675
+ # @param resource_group_name [String] The resource group name.
1676
+ # @param virtual_wanname [String] The name of the VirtualWAN whose associated
1677
+ # VpnServerConfigurations is needed.
1678
+ # @param vpn_client_params [VirtualWanVpnProfileParameters] Parameters supplied
1679
+ # to the generate VirtualWan VPN profile generation operation.
1680
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1681
+ # to the HTTP request.
1682
+ #
1683
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1684
+ #
1685
+ def begin_generatevirtualwanvpnserverconfigurationvpnprofile_async(resource_group_name, virtual_wanname, vpn_client_params, custom_headers:nil)
1686
+ fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
1687
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1688
+ fail ArgumentError, 'virtual_wanname is nil' if virtual_wanname.nil?
1689
+ fail ArgumentError, 'vpn_client_params is nil' if vpn_client_params.nil?
1690
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
1691
+
1692
+
1693
+ request_headers = {}
1694
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1695
+
1696
+ # Set Headers
1697
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1698
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
1699
+
1700
+ # Serialize Request
1701
+ request_mapper = Azure::Network::Mgmt::V2020_04_01::Models::VirtualWanVpnProfileParameters.mapper()
1702
+ request_content = self.serialize(request_mapper, vpn_client_params)
1703
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1704
+
1705
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/GenerateVpnProfile'
1706
+
1707
+ request_url = @base_url || self.base_url
1708
+
1709
+ options = {
1710
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1711
+ path_params: {'subscriptionId' => subscription_id,'resourceGroupName' => resource_group_name,'virtualWANName' => virtual_wanname},
1712
+ query_params: {'api-version' => api_version},
1713
+ body: request_content,
1714
+ headers: request_headers.merge(custom_headers || {}),
1715
+ base_url: request_url
1716
+ }
1717
+ promise = self.make_request_async(:post, path_template, options)
1718
+
1719
+ promise = promise.then do |result|
1720
+ http_response = result.response
1721
+ status_code = http_response.status
1722
+ response_content = http_response.body
1723
+ unless status_code == 200 || status_code == 202
1724
+ error_model = JSON.load(response_content)
1725
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1726
+ end
1727
+
1728
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1729
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1730
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1731
+ # Deserialize Response
1732
+ if status_code == 200
1733
+ begin
1734
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1735
+ result_mapper = Azure::Network::Mgmt::V2020_04_01::Models::VpnProfileResponse.mapper()
1736
+ result.body = self.deserialize(result_mapper, parsed_response)
1737
+ rescue Exception => e
1738
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1739
+ end
1740
+ end
1741
+
1742
+ result
1743
+ end
1744
+
1745
+ promise.execute
1746
+ end
1747
+
1748
+ #
1749
+ # Creates a Bastion Shareable Links for all the VMs specified in the request.
1750
+ #
1751
+ # @param next_page_link [String] The NextLink from the previous successful call
1752
+ # to List operation.
1753
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1754
+ # will be added to the HTTP request.
1755
+ #
1756
+ # @return [BastionShareableLinkListResult] operation results.
1757
+ #
1758
+ def put_bastion_shareable_link_next(next_page_link, custom_headers:nil)
1759
+ response = put_bastion_shareable_link_next_async(next_page_link, custom_headers:custom_headers).value!
1760
+ response.body unless response.nil?
1761
+ end
1762
+
1763
+ #
1764
+ # Creates a Bastion Shareable Links for all the VMs specified in the request.
1765
+ #
1766
+ # @param next_page_link [String] The NextLink from the previous successful call
1767
+ # to List operation.
1768
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1769
+ # will be added to the HTTP request.
1770
+ #
1771
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1772
+ #
1773
+ def put_bastion_shareable_link_next_with_http_info(next_page_link, custom_headers:nil)
1774
+ put_bastion_shareable_link_next_async(next_page_link, custom_headers:custom_headers).value!
1775
+ end
1776
+
1777
+ #
1778
+ # Creates a Bastion Shareable Links for all the VMs specified in the request.
1779
+ #
1780
+ # @param next_page_link [String] The NextLink from the previous successful call
1781
+ # to List operation.
1782
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1783
+ # to the HTTP request.
1784
+ #
1785
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1786
+ #
1787
+ def put_bastion_shareable_link_next_async(next_page_link, custom_headers:nil)
1788
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1789
+
1790
+
1791
+ request_headers = {}
1792
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1793
+
1794
+ # Set Headers
1795
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1796
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
1797
+ path_template = '{nextLink}'
1798
+
1799
+ request_url = @base_url || self.base_url
1800
+
1801
+ options = {
1802
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1803
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1804
+ headers: request_headers.merge(custom_headers || {}),
1805
+ base_url: request_url
1806
+ }
1807
+ promise = self.make_request_async(:post, path_template, options)
1808
+
1809
+ promise = promise.then do |result|
1810
+ http_response = result.response
1811
+ status_code = http_response.status
1812
+ response_content = http_response.body
1813
+ unless status_code == 200 || status_code == 202
1814
+ error_model = JSON.load(response_content)
1815
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1816
+ end
1817
+
1818
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1819
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1820
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1821
+ # Deserialize Response
1822
+ if status_code == 200
1823
+ begin
1824
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1825
+ result_mapper = Azure::Network::Mgmt::V2020_04_01::Models::BastionShareableLinkListResult.mapper()
1826
+ result.body = self.deserialize(result_mapper, parsed_response)
1827
+ rescue Exception => e
1828
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1829
+ end
1830
+ end
1831
+
1832
+ result
1833
+ end
1834
+
1835
+ promise.execute
1836
+ end
1837
+
1838
+ #
1839
+ # Return the Bastion Shareable Links for all the VMs specified in the request.
1840
+ #
1841
+ # @param next_page_link [String] The NextLink from the previous successful call
1842
+ # to List operation.
1843
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1844
+ # will be added to the HTTP request.
1845
+ #
1846
+ # @return [BastionShareableLinkListResult] operation results.
1847
+ #
1848
+ def get_bastion_shareable_link_next(next_page_link, custom_headers:nil)
1849
+ response = get_bastion_shareable_link_next_async(next_page_link, custom_headers:custom_headers).value!
1850
+ response.body unless response.nil?
1851
+ end
1852
+
1853
+ #
1854
+ # Return the Bastion Shareable Links for all the VMs specified in the request.
1855
+ #
1856
+ # @param next_page_link [String] The NextLink from the previous successful call
1857
+ # to List operation.
1858
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1859
+ # will be added to the HTTP request.
1860
+ #
1861
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1862
+ #
1863
+ def get_bastion_shareable_link_next_with_http_info(next_page_link, custom_headers:nil)
1864
+ get_bastion_shareable_link_next_async(next_page_link, custom_headers:custom_headers).value!
1865
+ end
1866
+
1867
+ #
1868
+ # Return the Bastion Shareable Links for all the VMs specified in the request.
1869
+ #
1870
+ # @param next_page_link [String] The NextLink from the previous successful call
1871
+ # to List operation.
1872
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1873
+ # to the HTTP request.
1874
+ #
1875
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1876
+ #
1877
+ def get_bastion_shareable_link_next_async(next_page_link, custom_headers:nil)
1878
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1879
+
1880
+
1881
+ request_headers = {}
1882
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1883
+
1884
+ # Set Headers
1885
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1886
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
1887
+ path_template = '{nextLink}'
1888
+
1889
+ request_url = @base_url || self.base_url
1890
+
1891
+ options = {
1892
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1893
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1894
+ headers: request_headers.merge(custom_headers || {}),
1895
+ base_url: request_url
1896
+ }
1897
+ promise = self.make_request_async(:post, path_template, options)
1898
+
1899
+ promise = promise.then do |result|
1900
+ http_response = result.response
1901
+ status_code = http_response.status
1902
+ response_content = http_response.body
1903
+ unless status_code == 200
1904
+ error_model = JSON.load(response_content)
1905
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1906
+ end
1907
+
1908
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1909
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1910
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1911
+ # Deserialize Response
1912
+ if status_code == 200
1913
+ begin
1914
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1915
+ result_mapper = Azure::Network::Mgmt::V2020_04_01::Models::BastionShareableLinkListResult.mapper()
1916
+ result.body = self.deserialize(result_mapper, parsed_response)
1917
+ rescue Exception => e
1918
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1919
+ end
1920
+ end
1921
+
1922
+ result
1923
+ end
1924
+
1925
+ promise.execute
1926
+ end
1927
+
1928
+ #
1929
+ # Returns the list of currently active sessions on the Bastion.
1930
+ #
1931
+ # @param next_page_link [String] The NextLink from the previous successful call
1932
+ # to List operation.
1933
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1934
+ # will be added to the HTTP request.
1935
+ #
1936
+ # @return [BastionActiveSessionListResult] operation results.
1937
+ #
1938
+ def get_active_sessions_next(next_page_link, custom_headers:nil)
1939
+ response = get_active_sessions_next_async(next_page_link, custom_headers:custom_headers).value!
1940
+ response.body unless response.nil?
1941
+ end
1942
+
1943
+ #
1944
+ # Returns the list of currently active sessions on the Bastion.
1945
+ #
1946
+ # @param next_page_link [String] The NextLink from the previous successful call
1947
+ # to List operation.
1948
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1949
+ # will be added to the HTTP request.
1950
+ #
1951
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1952
+ #
1953
+ def get_active_sessions_next_with_http_info(next_page_link, custom_headers:nil)
1954
+ get_active_sessions_next_async(next_page_link, custom_headers:custom_headers).value!
1955
+ end
1956
+
1957
+ #
1958
+ # Returns the list of currently active sessions on the Bastion.
1959
+ #
1960
+ # @param next_page_link [String] The NextLink from the previous successful call
1961
+ # to List operation.
1962
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1963
+ # to the HTTP request.
1964
+ #
1965
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1966
+ #
1967
+ def get_active_sessions_next_async(next_page_link, custom_headers:nil)
1968
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1969
+
1970
+
1971
+ request_headers = {}
1972
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1973
+
1974
+ # Set Headers
1975
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1976
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
1977
+ path_template = '{nextLink}'
1978
+
1979
+ request_url = @base_url || self.base_url
1980
+
1981
+ options = {
1982
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1983
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1984
+ headers: request_headers.merge(custom_headers || {}),
1985
+ base_url: request_url
1986
+ }
1987
+ promise = self.make_request_async(:post, path_template, options)
1988
+
1989
+ promise = promise.then do |result|
1990
+ http_response = result.response
1991
+ status_code = http_response.status
1992
+ response_content = http_response.body
1993
+ unless status_code == 200 || status_code == 202
1994
+ error_model = JSON.load(response_content)
1995
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1996
+ end
1997
+
1998
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1999
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2000
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2001
+ # Deserialize Response
2002
+ if status_code == 200
2003
+ begin
2004
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2005
+ result_mapper = Azure::Network::Mgmt::V2020_04_01::Models::BastionActiveSessionListResult.mapper()
2006
+ result.body = self.deserialize(result_mapper, parsed_response)
2007
+ rescue Exception => e
2008
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2009
+ end
2010
+ end
2011
+
2012
+ result
2013
+ end
2014
+
2015
+ promise.execute
2016
+ end
2017
+
2018
+ #
2019
+ # Returns the list of currently active sessions on the Bastion.
2020
+ #
2021
+ # @param next_page_link [String] The NextLink from the previous successful call
2022
+ # to List operation.
2023
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2024
+ # will be added to the HTTP request.
2025
+ #
2026
+ # @return [BastionSessionDeleteResult] operation results.
2027
+ #
2028
+ def disconnect_active_sessions_next(next_page_link, custom_headers:nil)
2029
+ response = disconnect_active_sessions_next_async(next_page_link, custom_headers:custom_headers).value!
2030
+ response.body unless response.nil?
2031
+ end
2032
+
2033
+ #
2034
+ # Returns the list of currently active sessions on the Bastion.
2035
+ #
2036
+ # @param next_page_link [String] The NextLink from the previous successful call
2037
+ # to List operation.
2038
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2039
+ # will be added to the HTTP request.
2040
+ #
2041
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2042
+ #
2043
+ def disconnect_active_sessions_next_with_http_info(next_page_link, custom_headers:nil)
2044
+ disconnect_active_sessions_next_async(next_page_link, custom_headers:custom_headers).value!
2045
+ end
2046
+
2047
+ #
2048
+ # Returns the list of currently active sessions on the Bastion.
2049
+ #
2050
+ # @param next_page_link [String] The NextLink from the previous successful call
2051
+ # to List operation.
2052
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2053
+ # to the HTTP request.
2054
+ #
2055
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2056
+ #
2057
+ def disconnect_active_sessions_next_async(next_page_link, custom_headers:nil)
2058
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2059
+
2060
+
2061
+ request_headers = {}
2062
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2063
+
2064
+ # Set Headers
2065
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2066
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
2067
+ path_template = '{nextLink}'
2068
+
2069
+ request_url = @base_url || self.base_url
2070
+
2071
+ options = {
2072
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2073
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2074
+ headers: request_headers.merge(custom_headers || {}),
2075
+ base_url: request_url
2076
+ }
2077
+ promise = self.make_request_async(:post, path_template, options)
2078
+
2079
+ promise = promise.then do |result|
2080
+ http_response = result.response
2081
+ status_code = http_response.status
2082
+ response_content = http_response.body
2083
+ unless status_code == 200
2084
+ error_model = JSON.load(response_content)
2085
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2086
+ end
2087
+
2088
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2089
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2090
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2091
+ # Deserialize Response
2092
+ if status_code == 200
2093
+ begin
2094
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2095
+ result_mapper = Azure::Network::Mgmt::V2020_04_01::Models::BastionSessionDeleteResult.mapper()
2096
+ result.body = self.deserialize(result_mapper, parsed_response)
2097
+ rescue Exception => e
2098
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2099
+ end
2100
+ end
2101
+
2102
+ result
2103
+ end
2104
+
2105
+ promise.execute
2106
+ end
2107
+
2108
+ #
2109
+ # Creates a Bastion Shareable Links for all the VMs specified in the request.
2110
+ #
2111
+ # @param next_page_link [String] The NextLink from the previous successful call
2112
+ # to List operation.
2113
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2114
+ # will be added to the HTTP request.
2115
+ #
2116
+ # @return [BastionShareableLinkListResult] operation results.
2117
+ #
2118
+ def begin_put_bastion_shareable_link_next(next_page_link, custom_headers:nil)
2119
+ response = begin_put_bastion_shareable_link_next_async(next_page_link, custom_headers:custom_headers).value!
2120
+ response.body unless response.nil?
2121
+ end
2122
+
2123
+ #
2124
+ # Creates a Bastion Shareable Links for all the VMs specified in the request.
2125
+ #
2126
+ # @param next_page_link [String] The NextLink from the previous successful call
2127
+ # to List operation.
2128
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2129
+ # will be added to the HTTP request.
2130
+ #
2131
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2132
+ #
2133
+ def begin_put_bastion_shareable_link_next_with_http_info(next_page_link, custom_headers:nil)
2134
+ begin_put_bastion_shareable_link_next_async(next_page_link, custom_headers:custom_headers).value!
2135
+ end
2136
+
2137
+ #
2138
+ # Creates a Bastion Shareable Links for all the VMs specified in the request.
2139
+ #
2140
+ # @param next_page_link [String] The NextLink from the previous successful call
2141
+ # to List operation.
2142
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2143
+ # to the HTTP request.
2144
+ #
2145
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2146
+ #
2147
+ def begin_put_bastion_shareable_link_next_async(next_page_link, custom_headers:nil)
2148
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2149
+
2150
+
2151
+ request_headers = {}
2152
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2153
+
2154
+ # Set Headers
2155
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2156
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
2157
+ path_template = '{nextLink}'
2158
+
2159
+ request_url = @base_url || self.base_url
2160
+
2161
+ options = {
2162
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2163
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2164
+ headers: request_headers.merge(custom_headers || {}),
2165
+ base_url: request_url
2166
+ }
2167
+ promise = self.make_request_async(:post, path_template, options)
2168
+
2169
+ promise = promise.then do |result|
2170
+ http_response = result.response
2171
+ status_code = http_response.status
2172
+ response_content = http_response.body
2173
+ unless status_code == 200 || status_code == 202
2174
+ error_model = JSON.load(response_content)
2175
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2176
+ end
2177
+
2178
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2179
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2180
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2181
+ # Deserialize Response
2182
+ if status_code == 200
2183
+ begin
2184
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2185
+ result_mapper = Azure::Network::Mgmt::V2020_04_01::Models::BastionShareableLinkListResult.mapper()
2186
+ result.body = self.deserialize(result_mapper, parsed_response)
2187
+ rescue Exception => e
2188
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2189
+ end
2190
+ end
2191
+
2192
+ result
2193
+ end
2194
+
2195
+ promise.execute
2196
+ end
2197
+
2198
+ #
2199
+ # Returns the list of currently active sessions on the Bastion.
2200
+ #
2201
+ # @param next_page_link [String] The NextLink from the previous successful call
2202
+ # to List operation.
2203
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2204
+ # will be added to the HTTP request.
2205
+ #
2206
+ # @return [BastionActiveSessionListResult] operation results.
2207
+ #
2208
+ def begin_get_active_sessions_next(next_page_link, custom_headers:nil)
2209
+ response = begin_get_active_sessions_next_async(next_page_link, custom_headers:custom_headers).value!
2210
+ response.body unless response.nil?
2211
+ end
2212
+
2213
+ #
2214
+ # Returns the list of currently active sessions on the Bastion.
2215
+ #
2216
+ # @param next_page_link [String] The NextLink from the previous successful call
2217
+ # to List operation.
2218
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2219
+ # will be added to the HTTP request.
2220
+ #
2221
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2222
+ #
2223
+ def begin_get_active_sessions_next_with_http_info(next_page_link, custom_headers:nil)
2224
+ begin_get_active_sessions_next_async(next_page_link, custom_headers:custom_headers).value!
2225
+ end
2226
+
2227
+ #
2228
+ # Returns the list of currently active sessions on the Bastion.
2229
+ #
2230
+ # @param next_page_link [String] The NextLink from the previous successful call
2231
+ # to List operation.
2232
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2233
+ # to the HTTP request.
2234
+ #
2235
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2236
+ #
2237
+ def begin_get_active_sessions_next_async(next_page_link, custom_headers:nil)
2238
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
2239
+
2240
+
2241
+ request_headers = {}
2242
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2243
+
2244
+ # Set Headers
2245
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
2246
+ request_headers['accept-language'] = accept_language unless accept_language.nil?
2247
+ path_template = '{nextLink}'
2248
+
2249
+ request_url = @base_url || self.base_url
2250
+
2251
+ options = {
2252
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2253
+ skip_encoding_path_params: {'nextLink' => next_page_link},
2254
+ headers: request_headers.merge(custom_headers || {}),
2255
+ base_url: request_url
2256
+ }
2257
+ promise = self.make_request_async(:post, path_template, options)
2258
+
2259
+ promise = promise.then do |result|
2260
+ http_response = result.response
2261
+ status_code = http_response.status
2262
+ response_content = http_response.body
2263
+ unless status_code == 200 || status_code == 202
2264
+ error_model = JSON.load(response_content)
2265
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2266
+ end
2267
+
2268
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2269
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2270
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2271
+ # Deserialize Response
2272
+ if status_code == 200
2273
+ begin
2274
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2275
+ result_mapper = Azure::Network::Mgmt::V2020_04_01::Models::BastionActiveSessionListResult.mapper()
2276
+ result.body = self.deserialize(result_mapper, parsed_response)
2277
+ rescue Exception => e
2278
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2279
+ end
2280
+ end
2281
+
2282
+ result
2283
+ end
2284
+
2285
+ promise.execute
2286
+ end
2287
+
2288
+ #
2289
+ # Return the Bastion Shareable Links for all the VMs specified in the request.
2290
+ #
2291
+ # @param resource_group_name [String] The name of the resource group.
2292
+ # @param bastion_host_name [String] The name of the Bastion Host.
2293
+ # @param bsl_request [BastionShareableLinkListRequest] Post request for all the
2294
+ # Bastion Shareable Link endpoints.
2295
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2296
+ # will be added to the HTTP request.
2297
+ #
2298
+ # @return [BastionShareableLinkListResult] operation results.
2299
+ #
2300
+ def get_bastion_shareable_link_as_lazy(resource_group_name, bastion_host_name, bsl_request, custom_headers:nil)
2301
+ first_page = get_bastion_shareable_link_as_lazy_as_lazy(resource_group_name, bastion_host_name, bsl_request, custom_headers:custom_headers)
2302
+ first_page.get_all_items
2303
+ end
2304
+
2305
+ #
2306
+ # Return the Bastion Shareable Links for all the VMs specified in the request.
2307
+ #
2308
+ # @param resource_group_name [String] The name of the resource group.
2309
+ # @param bastion_host_name [String] The name of the Bastion Host.
2310
+ # @param bsl_request [BastionShareableLinkListRequest] Post request for all the
2311
+ # Bastion Shareable Link endpoints.
2312
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2313
+ # will be added to the HTTP request.
2314
+ #
2315
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2316
+ #
2317
+ def get_bastion_shareable_link_as_lazy_with_http_info(resource_group_name, bastion_host_name, bsl_request, custom_headers:nil)
2318
+ get_bastion_shareable_link_as_lazy_async(resource_group_name, bastion_host_name, bsl_request, custom_headers:custom_headers).value!
2319
+ end
2320
+
2321
+ #
2322
+ # Return the Bastion Shareable Links for all the VMs specified in the request.
2323
+ #
2324
+ # @param resource_group_name [String] The name of the resource group.
2325
+ # @param bastion_host_name [String] The name of the Bastion Host.
2326
+ # @param bsl_request [BastionShareableLinkListRequest] Post request for all the
2327
+ # Bastion Shareable Link endpoints.
2328
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2329
+ # to the HTTP request.
2330
+ #
2331
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2332
+ #
2333
+ def get_bastion_shareable_link_as_lazy_async(resource_group_name, bastion_host_name, bsl_request, custom_headers:nil)
2334
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2335
+ fail ArgumentError, 'bastion_host_name is nil' if bastion_host_name.nil?
2336
+ fail ArgumentError, 'bsl_request is nil' if bsl_request.nil?
2337
+
2338
+
2339
+ request_headers = {}
2340
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2341
+
2342
+ # Serialize Request
2343
+ request_mapper = Azure::Network::Mgmt::V2020_04_01::Models::BastionShareableLinkListRequest.mapper()
2344
+ request_content = self.serialize(request_mapper, bsl_request)
2345
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2346
+
2347
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/getShareableLinks'
2348
+
2349
+ request_url = @base_url || self.base_url
2350
+
2351
+ options = {
2352
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2353
+ path_params: {'resourceGroupName' => resource_group_name,'bastionHostName' => bastion_host_name},
2354
+ body: request_content,
2355
+ headers: request_headers.merge(custom_headers || {}),
2356
+ base_url: request_url
2357
+ }
2358
+ promise = self.make_request_async(:post, path_template, options)
2359
+
2360
+ promise = promise.then do |result|
2361
+ http_response = result.response
2362
+ status_code = http_response.status
2363
+ response_content = http_response.body
2364
+ unless status_code == 200
2365
+ error_model = JSON.load(response_content)
2366
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2367
+ end
2368
+
2369
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2370
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2371
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2372
+ # Deserialize Response
2373
+ if status_code == 200
2374
+ begin
2375
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2376
+ result_mapper = Azure::Network::Mgmt::V2020_04_01::Models::BastionShareableLinkListResult.mapper()
2377
+ result.body = self.deserialize(result_mapper, parsed_response)
2378
+ rescue Exception => e
2379
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2380
+ end
2381
+ end
2382
+
2383
+ result
2384
+ end
2385
+
2386
+ promise.execute
2387
+ end
2388
+
2389
+ #
2390
+ # Returns the list of currently active sessions on the Bastion.
2391
+ #
2392
+ # @param resource_group_name [String] The name of the resource group.
2393
+ # @param bastion_host_name [String] The name of the Bastion Host.
2394
+ # @param session_ids [SessionIds] The list of sessionids to disconnect.
2395
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2396
+ # will be added to the HTTP request.
2397
+ #
2398
+ # @return [BastionSessionDeleteResult] operation results.
2399
+ #
2400
+ def disconnect_active_sessions_as_lazy(resource_group_name, bastion_host_name, session_ids, custom_headers:nil)
2401
+ first_page = disconnect_active_sessions_as_lazy_as_lazy(resource_group_name, bastion_host_name, session_ids, custom_headers:custom_headers)
2402
+ first_page.get_all_items
2403
+ end
2404
+
2405
+ #
2406
+ # Returns the list of currently active sessions on the Bastion.
2407
+ #
2408
+ # @param resource_group_name [String] The name of the resource group.
2409
+ # @param bastion_host_name [String] The name of the Bastion Host.
2410
+ # @param session_ids [SessionIds] The list of sessionids to disconnect.
2411
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2412
+ # will be added to the HTTP request.
2413
+ #
2414
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2415
+ #
2416
+ def disconnect_active_sessions_as_lazy_with_http_info(resource_group_name, bastion_host_name, session_ids, custom_headers:nil)
2417
+ disconnect_active_sessions_as_lazy_async(resource_group_name, bastion_host_name, session_ids, custom_headers:custom_headers).value!
2418
+ end
2419
+
2420
+ #
2421
+ # Returns the list of currently active sessions on the Bastion.
2422
+ #
2423
+ # @param resource_group_name [String] The name of the resource group.
2424
+ # @param bastion_host_name [String] The name of the Bastion Host.
2425
+ # @param session_ids [SessionIds] The list of sessionids to disconnect.
2426
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2427
+ # to the HTTP request.
2428
+ #
2429
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2430
+ #
2431
+ def disconnect_active_sessions_as_lazy_async(resource_group_name, bastion_host_name, session_ids, custom_headers:nil)
2432
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2433
+ fail ArgumentError, 'bastion_host_name is nil' if bastion_host_name.nil?
2434
+ fail ArgumentError, 'session_ids is nil' if session_ids.nil?
2435
+
2436
+
2437
+ request_headers = {}
2438
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2439
+
2440
+ # Serialize Request
2441
+ request_mapper = Azure::Network::Mgmt::V2020_04_01::Models::SessionIds.mapper()
2442
+ request_content = self.serialize(request_mapper, session_ids)
2443
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2444
+
2445
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/disconnectActiveSessions'
2446
+
2447
+ request_url = @base_url || self.base_url
2448
+
2449
+ options = {
2450
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2451
+ path_params: {'resourceGroupName' => resource_group_name,'bastionHostName' => bastion_host_name},
2452
+ body: request_content,
2453
+ headers: request_headers.merge(custom_headers || {}),
2454
+ base_url: request_url
2455
+ }
2456
+ promise = self.make_request_async(:post, path_template, options)
2457
+
2458
+ promise = promise.then do |result|
2459
+ http_response = result.response
2460
+ status_code = http_response.status
2461
+ response_content = http_response.body
2462
+ unless status_code == 200
2463
+ error_model = JSON.load(response_content)
2464
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2465
+ end
2466
+
2467
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2468
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2469
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2470
+ # Deserialize Response
2471
+ if status_code == 200
2472
+ begin
2473
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2474
+ result_mapper = Azure::Network::Mgmt::V2020_04_01::Models::BastionSessionDeleteResult.mapper()
2475
+ result.body = self.deserialize(result_mapper, parsed_response)
2476
+ rescue Exception => e
2477
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2478
+ end
2479
+ end
2480
+
2481
+ result
2482
+ end
2483
+
2484
+ promise.execute
2485
+ end
2486
+
2487
+ #
2488
+ # Creates a Bastion Shareable Links for all the VMs specified in the request.
2489
+ #
2490
+ # @param resource_group_name [String] The name of the resource group.
2491
+ # @param bastion_host_name [String] The name of the Bastion Host.
2492
+ # @param bsl_request [BastionShareableLinkListRequest] Post request for all the
2493
+ # Bastion Shareable Link endpoints.
2494
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2495
+ # will be added to the HTTP request.
2496
+ #
2497
+ # @return [BastionShareableLinkListResult] operation results.
2498
+ #
2499
+ def begin_put_bastion_shareable_link_as_lazy(resource_group_name, bastion_host_name, bsl_request, custom_headers:nil)
2500
+ first_page = begin_put_bastion_shareable_link_as_lazy_as_lazy(resource_group_name, bastion_host_name, bsl_request, custom_headers:custom_headers)
2501
+ first_page.get_all_items
2502
+ end
2503
+
2504
+ #
2505
+ # Creates a Bastion Shareable Links for all the VMs specified in the request.
2506
+ #
2507
+ # @param resource_group_name [String] The name of the resource group.
2508
+ # @param bastion_host_name [String] The name of the Bastion Host.
2509
+ # @param bsl_request [BastionShareableLinkListRequest] Post request for all the
2510
+ # Bastion Shareable Link endpoints.
2511
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2512
+ # will be added to the HTTP request.
2513
+ #
2514
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2515
+ #
2516
+ def begin_put_bastion_shareable_link_as_lazy_with_http_info(resource_group_name, bastion_host_name, bsl_request, custom_headers:nil)
2517
+ begin_put_bastion_shareable_link_as_lazy_async(resource_group_name, bastion_host_name, bsl_request, custom_headers:custom_headers).value!
2518
+ end
2519
+
2520
+ #
2521
+ # Creates a Bastion Shareable Links for all the VMs specified in the request.
2522
+ #
2523
+ # @param resource_group_name [String] The name of the resource group.
2524
+ # @param bastion_host_name [String] The name of the Bastion Host.
2525
+ # @param bsl_request [BastionShareableLinkListRequest] Post request for all the
2526
+ # Bastion Shareable Link endpoints.
2527
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2528
+ # to the HTTP request.
2529
+ #
2530
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2531
+ #
2532
+ def begin_put_bastion_shareable_link_as_lazy_async(resource_group_name, bastion_host_name, bsl_request, custom_headers:nil)
2533
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2534
+ fail ArgumentError, 'bastion_host_name is nil' if bastion_host_name.nil?
2535
+ fail ArgumentError, 'bsl_request is nil' if bsl_request.nil?
2536
+
2537
+
2538
+ request_headers = {}
2539
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2540
+
2541
+ # Serialize Request
2542
+ request_mapper = Azure::Network::Mgmt::V2020_04_01::Models::BastionShareableLinkListRequest.mapper()
2543
+ request_content = self.serialize(request_mapper, bsl_request)
2544
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
2545
+
2546
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/createShareableLinks'
2547
+
2548
+ request_url = @base_url || self.base_url
2549
+
2550
+ options = {
2551
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2552
+ path_params: {'resourceGroupName' => resource_group_name,'bastionHostName' => bastion_host_name},
2553
+ body: request_content,
2554
+ headers: request_headers.merge(custom_headers || {}),
2555
+ base_url: request_url
2556
+ }
2557
+ promise = self.make_request_async(:post, path_template, options)
2558
+
2559
+ promise = promise.then do |result|
2560
+ http_response = result.response
2561
+ status_code = http_response.status
2562
+ response_content = http_response.body
2563
+ unless status_code == 200 || status_code == 202
2564
+ error_model = JSON.load(response_content)
2565
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2566
+ end
2567
+
2568
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2569
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2570
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2571
+ # Deserialize Response
2572
+ if status_code == 200
2573
+ begin
2574
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2575
+ result_mapper = Azure::Network::Mgmt::V2020_04_01::Models::BastionShareableLinkListResult.mapper()
2576
+ result.body = self.deserialize(result_mapper, parsed_response)
2577
+ rescue Exception => e
2578
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2579
+ end
2580
+ end
2581
+
2582
+ result
2583
+ end
2584
+
2585
+ promise.execute
2586
+ end
2587
+
2588
+ #
2589
+ # Returns the list of currently active sessions on the Bastion.
2590
+ #
2591
+ # @param resource_group_name [String] The name of the resource group.
2592
+ # @param bastion_host_name [String] The name of the Bastion Host.
2593
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2594
+ # will be added to the HTTP request.
2595
+ #
2596
+ # @return [BastionActiveSessionListResult] operation results.
2597
+ #
2598
+ def begin_get_active_sessions_as_lazy(resource_group_name, bastion_host_name, custom_headers:nil)
2599
+ first_page = begin_get_active_sessions_as_lazy_as_lazy(resource_group_name, bastion_host_name, custom_headers:custom_headers)
2600
+ first_page.get_all_items
2601
+ end
2602
+
2603
+ #
2604
+ # Returns the list of currently active sessions on the Bastion.
2605
+ #
2606
+ # @param resource_group_name [String] The name of the resource group.
2607
+ # @param bastion_host_name [String] The name of the Bastion Host.
2608
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
2609
+ # will be added to the HTTP request.
2610
+ #
2611
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
2612
+ #
2613
+ def begin_get_active_sessions_as_lazy_with_http_info(resource_group_name, bastion_host_name, custom_headers:nil)
2614
+ begin_get_active_sessions_as_lazy_async(resource_group_name, bastion_host_name, custom_headers:custom_headers).value!
2615
+ end
2616
+
2617
+ #
2618
+ # Returns the list of currently active sessions on the Bastion.
2619
+ #
2620
+ # @param resource_group_name [String] The name of the resource group.
2621
+ # @param bastion_host_name [String] The name of the Bastion Host.
2622
+ # @param [Hash{String => String}] A hash of custom headers that will be added
2623
+ # to the HTTP request.
2624
+ #
2625
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
2626
+ #
2627
+ def begin_get_active_sessions_as_lazy_async(resource_group_name, bastion_host_name, custom_headers:nil)
2628
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
2629
+ fail ArgumentError, 'bastion_host_name is nil' if bastion_host_name.nil?
2630
+
2631
+
2632
+ request_headers = {}
2633
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
2634
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}/getActiveSessions'
2635
+
2636
+ request_url = @base_url || self.base_url
2637
+
2638
+ options = {
2639
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
2640
+ path_params: {'resourceGroupName' => resource_group_name,'bastionHostName' => bastion_host_name},
2641
+ headers: request_headers.merge(custom_headers || {}),
2642
+ base_url: request_url
2643
+ }
2644
+ promise = self.make_request_async(:post, path_template, options)
2645
+
2646
+ promise = promise.then do |result|
2647
+ http_response = result.response
2648
+ status_code = http_response.status
2649
+ response_content = http_response.body
2650
+ unless status_code == 200 || status_code == 202
2651
+ error_model = JSON.load(response_content)
2652
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
2653
+ end
2654
+
2655
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
2656
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
2657
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
2658
+ # Deserialize Response
2659
+ if status_code == 200
2660
+ begin
2661
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
2662
+ result_mapper = Azure::Network::Mgmt::V2020_04_01::Models::BastionActiveSessionListResult.mapper()
2663
+ result.body = self.deserialize(result_mapper, parsed_response)
2664
+ rescue Exception => e
2665
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
2666
+ end
2667
+ end
2668
+
2669
+ result
2670
+ end
2671
+
2672
+ promise.execute
2673
+ end
2674
+
2675
+
2676
+ private
2677
+ #
2678
+ # Adds telemetry information.
2679
+ #
2680
+ def add_telemetry
2681
+ sdk_information = 'azure_mgmt_network'
2682
+ sdk_information = "#{sdk_information}/0.23.3"
2683
+ add_user_agent_information(sdk_information)
2684
+ end
2685
+ end
2686
+ end