azure_mgmt_network 0.25.0 → 0.26.0

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