azure_mgmt_network 0.23.4 → 0.24.0

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