azure_mgmt_network 0.24.1 → 0.25.0

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