azure_mgmt_network 0.24.0 → 0.24.1

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