azure_mgmt_network 0.24.1 → 0.25.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (837) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-05-01-preview/generated/azure_mgmt_network/network_management_client.rb +1 -1
  3. data/lib/2015-06-15/generated/azure_mgmt_network/network_management_client.rb +1 -1
  4. data/lib/2016-03-30/generated/azure_mgmt_network/network_management_client.rb +1 -1
  5. data/lib/2016-06-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  6. data/lib/2016-09-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  7. data/lib/2016-12-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  8. data/lib/2017-03-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  9. data/lib/2017-03-30/generated/azure_mgmt_network/network_management_client.rb +1 -1
  10. data/lib/2017-09-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  11. data/lib/2017-10-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  12. data/lib/2017-11-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  13. data/lib/2018-01-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  14. data/lib/2018-02-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  15. data/lib/2018-04-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  16. data/lib/2018-06-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  17. data/lib/2018-07-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  18. data/lib/2018-08-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  19. data/lib/2018-10-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  20. data/lib/2018-11-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  21. data/lib/2018-12-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  22. data/lib/2019-02-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  23. data/lib/2019-04-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  24. data/lib/2019-06-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  25. data/lib/2019-07-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  26. data/lib/2019-08-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  27. data/lib/2019-09-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  28. data/lib/2019-11-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  29. data/lib/2019-12-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  30. data/lib/2020-03-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  31. data/lib/2020-04-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  32. data/lib/2020-05-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  33. data/lib/2020-06-01/generated/azure_mgmt_network/network_management_client.rb +1 -1
  34. data/lib/2020-07-01/generated/azure_mgmt_network.rb +824 -0
  35. data/lib/2020-07-01/generated/azure_mgmt_network/application_gateway_private_endpoint_connections.rb +631 -0
  36. data/lib/2020-07-01/generated/azure_mgmt_network/application_gateway_private_link_resources.rb +231 -0
  37. data/lib/2020-07-01/generated/azure_mgmt_network/application_gateways.rb +2230 -0
  38. data/lib/2020-07-01/generated/azure_mgmt_network/application_security_groups.rb +925 -0
  39. data/lib/2020-07-01/generated/azure_mgmt_network/available_delegations.rb +233 -0
  40. data/lib/2020-07-01/generated/azure_mgmt_network/available_endpoint_services.rb +226 -0
  41. data/lib/2020-07-01/generated/azure_mgmt_network/available_private_endpoint_types.rb +446 -0
  42. data/lib/2020-07-01/generated/azure_mgmt_network/available_resource_group_delegations.rb +238 -0
  43. data/lib/2020-07-01/generated/azure_mgmt_network/available_service_aliases.rb +432 -0
  44. data/lib/2020-07-01/generated/azure_mgmt_network/azure_firewall_fqdn_tags.rb +221 -0
  45. data/lib/2020-07-01/generated/azure_mgmt_network/azure_firewalls.rb +957 -0
  46. data/lib/2020-07-01/generated/azure_mgmt_network/bastion_hosts.rb +801 -0
  47. data/lib/2020-07-01/generated/azure_mgmt_network/bgp_service_communities.rb +221 -0
  48. data/lib/2020-07-01/generated/azure_mgmt_network/connection_monitors.rb +1109 -0
  49. data/lib/2020-07-01/generated/azure_mgmt_network/custom_ipprefixes.rb +912 -0
  50. data/lib/2020-07-01/generated/azure_mgmt_network/ddos_custom_policies.rb +512 -0
  51. data/lib/2020-07-01/generated/azure_mgmt_network/ddos_protection_plans.rb +925 -0
  52. data/lib/2020-07-01/generated/azure_mgmt_network/default_security_rules.rb +339 -0
  53. data/lib/2020-07-01/generated/azure_mgmt_network/dscp_configuration_operations.rb +801 -0
  54. data/lib/2020-07-01/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +631 -0
  55. data/lib/2020-07-01/generated/azure_mgmt_network/express_route_circuit_connections.rb +683 -0
  56. data/lib/2020-07-01/generated/azure_mgmt_network/express_route_circuit_peerings.rb +626 -0
  57. data/lib/2020-07-01/generated/azure_mgmt_network/express_route_circuits.rb +1557 -0
  58. data/lib/2020-07-01/generated/azure_mgmt_network/express_route_connections.rb +534 -0
  59. data/lib/2020-07-01/generated/azure_mgmt_network/express_route_cross_connection_peerings.rb +648 -0
  60. data/lib/2020-07-01/generated/azure_mgmt_network/express_route_cross_connections.rb +1262 -0
  61. data/lib/2020-07-01/generated/azure_mgmt_network/express_route_gateways.rb +601 -0
  62. data/lib/2020-07-01/generated/azure_mgmt_network/express_route_links.rb +343 -0
  63. data/lib/2020-07-01/generated/azure_mgmt_network/express_route_ports.rb +1033 -0
  64. data/lib/2020-07-01/generated/azure_mgmt_network/express_route_ports_locations.rb +331 -0
  65. data/lib/2020-07-01/generated/azure_mgmt_network/express_route_service_providers.rb +221 -0
  66. data/lib/2020-07-01/generated/azure_mgmt_network/firewall_policies.rb +804 -0
  67. data/lib/2020-07-01/generated/azure_mgmt_network/firewall_policy_rule_collection_groups.rb +639 -0
  68. data/lib/2020-07-01/generated/azure_mgmt_network/flow_logs.rb +743 -0
  69. data/lib/2020-07-01/generated/azure_mgmt_network/hub_route_tables.rb +647 -0
  70. data/lib/2020-07-01/generated/azure_mgmt_network/hub_virtual_network_connections.rb +652 -0
  71. data/lib/2020-07-01/generated/azure_mgmt_network/inbound_nat_rules.rb +629 -0
  72. data/lib/2020-07-01/generated/azure_mgmt_network/inbound_security_rule_operations.rb +204 -0
  73. data/lib/2020-07-01/generated/azure_mgmt_network/ip_allocations.rb +912 -0
  74. data/lib/2020-07-01/generated/azure_mgmt_network/ip_groups.rb +915 -0
  75. data/lib/2020-07-01/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb +639 -0
  76. data/lib/2020-07-01/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb +332 -0
  77. data/lib/2020-07-01/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb +329 -0
  78. data/lib/2020-07-01/generated/azure_mgmt_network/load_balancer_network_interfaces.rb +231 -0
  79. data/lib/2020-07-01/generated/azure_mgmt_network/load_balancer_outbound_rules.rb +329 -0
  80. data/lib/2020-07-01/generated/azure_mgmt_network/load_balancer_probes.rb +329 -0
  81. data/lib/2020-07-01/generated/azure_mgmt_network/load_balancers.rb +912 -0
  82. data/lib/2020-07-01/generated/azure_mgmt_network/local_network_gateways.rb +733 -0
  83. data/lib/2020-07-01/generated/azure_mgmt_network/models/aad_authentication_parameters.rb +68 -0
  84. data/lib/2020-07-01/generated/azure_mgmt_network/models/access.rb +16 -0
  85. data/lib/2020-07-01/generated/azure_mgmt_network/models/address_space.rb +56 -0
  86. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway.rb +699 -0
  87. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb +106 -0
  88. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_autoscale_configuration.rb +65 -0
  89. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_available_ssl_options.rb +159 -0
  90. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_available_ssl_predefined_policies.rb +102 -0
  91. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_available_waf_rule_sets_result.rb +57 -0
  92. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_backend_address.rb +57 -0
  93. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +136 -0
  94. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_backend_health.rb +56 -0
  95. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb +70 -0
  96. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_backend_health_on_demand.rb +61 -0
  97. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb +69 -0
  98. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb +83 -0
  99. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_backend_health_server_health.rb +19 -0
  100. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +266 -0
  101. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_client_auth_configuration.rb +48 -0
  102. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb +64 -0
  103. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +16 -0
  104. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_custom_error.rb +60 -0
  105. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_custom_error_status_code.rb +16 -0
  106. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_firewall_disabled_rule_group.rb +67 -0
  107. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_firewall_exclusion.rb +71 -0
  108. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_firewall_mode.rb +16 -0
  109. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule.rb +57 -0
  110. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule_group.rb +79 -0
  111. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_firewall_rule_set.rb +143 -0
  112. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +156 -0
  113. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb +105 -0
  114. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_header_configuration.rb +57 -0
  115. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_http_listener.rb +232 -0
  116. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +108 -0
  117. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_list_result.rb +99 -0
  118. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_on_demand_probe.rb +134 -0
  119. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_operational_state.rb +18 -0
  120. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_path_rule.rb +177 -0
  121. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_private_endpoint_connection.rb +134 -0
  122. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_private_endpoint_connection_list_result.rb +103 -0
  123. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_private_link_configuration.rb +116 -0
  124. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_private_link_ip_configuration.rb +141 -0
  125. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_private_link_resource.rb +132 -0
  126. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_private_link_resource_list_result.rb +103 -0
  127. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_probe.rb +223 -0
  128. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_probe_health_response_match.rb +68 -0
  129. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_protocol.rb +16 -0
  130. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb +201 -0
  131. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_redirect_type.rb +18 -0
  132. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +198 -0
  133. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +16 -0
  134. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_rewrite_rule.rb +93 -0
  135. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_rewrite_rule_action_set.rb +90 -0
  136. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_rewrite_rule_condition.rb +82 -0
  137. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_rewrite_rule_set.rb +103 -0
  138. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_sku.rb +71 -0
  139. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_sku_name.rb +21 -0
  140. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +143 -0
  141. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +42 -0
  142. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb +113 -0
  143. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy_name.rb +17 -0
  144. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_ssl_policy_type.rb +16 -0
  145. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_ssl_predefined_policy.rb +87 -0
  146. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_ssl_profile.rb +141 -0
  147. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb +17 -0
  148. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_tier.rb +18 -0
  149. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_trusted_client_certificate.rb +106 -0
  150. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_trusted_root_certificate.rb +117 -0
  151. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_url_configuration.rb +72 -0
  152. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb +168 -0
  153. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb +180 -0
  154. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_rule.rb +232 -0
  155. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_security_group.rb +127 -0
  156. data/lib/2020-07-01/generated/azure_mgmt_network/models/application_security_group_list_result.rb +100 -0
  157. data/lib/2020-07-01/generated/azure_mgmt_network/models/association_type.rb +16 -0
  158. data/lib/2020-07-01/generated/azure_mgmt_network/models/authentication_method.rb +16 -0
  159. data/lib/2020-07-01/generated/azure_mgmt_network/models/authorization_list_result.rb +100 -0
  160. data/lib/2020-07-01/generated/azure_mgmt_network/models/authorization_use_status.rb +16 -0
  161. data/lib/2020-07-01/generated/azure_mgmt_network/models/auto_approved_private_link_service.rb +46 -0
  162. data/lib/2020-07-01/generated/azure_mgmt_network/models/auto_approved_private_link_services_result.rb +101 -0
  163. data/lib/2020-07-01/generated/azure_mgmt_network/models/availability.rb +68 -0
  164. data/lib/2020-07-01/generated/azure_mgmt_network/models/available_delegation.rb +101 -0
  165. data/lib/2020-07-01/generated/azure_mgmt_network/models/available_delegations_result.rb +99 -0
  166. data/lib/2020-07-01/generated/azure_mgmt_network/models/available_private_endpoint_type.rb +80 -0
  167. data/lib/2020-07-01/generated/azure_mgmt_network/models/available_private_endpoint_types_result.rb +100 -0
  168. data/lib/2020-07-01/generated/azure_mgmt_network/models/available_providers_list.rb +56 -0
  169. data/lib/2020-07-01/generated/azure_mgmt_network/models/available_providers_list_city.rb +65 -0
  170. data/lib/2020-07-01/generated/azure_mgmt_network/models/available_providers_list_country.rb +86 -0
  171. data/lib/2020-07-01/generated/azure_mgmt_network/models/available_providers_list_parameters.rb +88 -0
  172. data/lib/2020-07-01/generated/azure_mgmt_network/models/available_providers_list_state.rb +86 -0
  173. data/lib/2020-07-01/generated/azure_mgmt_network/models/available_service_alias.rb +79 -0
  174. data/lib/2020-07-01/generated/azure_mgmt_network/models/available_service_aliases_result.rb +100 -0
  175. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_async_operation_result.rb +67 -0
  176. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_firewall.rb +332 -0
  177. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_firewall_application_rule.rb +154 -0
  178. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_firewall_application_rule_collection.rb +130 -0
  179. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_firewall_application_rule_protocol.rb +63 -0
  180. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_firewall_application_rule_protocol_type.rb +17 -0
  181. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_firewall_fqdn_tag.rb +124 -0
  182. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_firewall_fqdn_tag_list_result.rb +99 -0
  183. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_firewall_ip_groups.rb +59 -0
  184. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_firewall_ipconfiguration.rb +133 -0
  185. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_firewall_list_result.rb +99 -0
  186. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_firewall_nat_rcaction.rb +47 -0
  187. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_firewall_nat_rcaction_type.rb +16 -0
  188. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_firewall_nat_rule.rb +187 -0
  189. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_firewall_nat_rule_collection.rb +131 -0
  190. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_firewall_network_rule.rb +191 -0
  191. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_firewall_network_rule_collection.rb +130 -0
  192. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_firewall_network_rule_protocol.rb +18 -0
  193. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_firewall_public_ipaddress.rb +46 -0
  194. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_firewall_rcaction.rb +47 -0
  195. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_firewall_rcaction_type.rb +16 -0
  196. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_firewall_sku.rb +59 -0
  197. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_firewall_sku_name.rb +16 -0
  198. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_firewall_sku_tier.rb +16 -0
  199. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_firewall_threat_intel_mode.rb +17 -0
  200. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_reachability_report.rb +81 -0
  201. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_reachability_report_item.rb +78 -0
  202. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_reachability_report_latency_info.rb +62 -0
  203. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_reachability_report_location.rb +68 -0
  204. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_reachability_report_parameters.rb +108 -0
  205. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_web_category.rb +95 -0
  206. data/lib/2020-07-01/generated/azure_mgmt_network/models/azure_web_category_list_result.rb +99 -0
  207. data/lib/2020-07-01/generated/azure_mgmt_network/models/backend_address_pool.rb +196 -0
  208. data/lib/2020-07-01/generated/azure_mgmt_network/models/bastion_active_session.rb +168 -0
  209. data/lib/2020-07-01/generated/azure_mgmt_network/models/bastion_active_session_list_result.rb +99 -0
  210. data/lib/2020-07-01/generated/azure_mgmt_network/models/bastion_connect_protocol.rb +16 -0
  211. data/lib/2020-07-01/generated/azure_mgmt_network/models/bastion_host.rb +145 -0
  212. data/lib/2020-07-01/generated/azure_mgmt_network/models/bastion_host_ipconfiguration.rb +130 -0
  213. data/lib/2020-07-01/generated/azure_mgmt_network/models/bastion_host_list_result.rb +98 -0
  214. data/lib/2020-07-01/generated/azure_mgmt_network/models/bastion_session_delete_result.rb +99 -0
  215. data/lib/2020-07-01/generated/azure_mgmt_network/models/bastion_session_state.rb +72 -0
  216. data/lib/2020-07-01/generated/azure_mgmt_network/models/bastion_shareable_link.rb +85 -0
  217. data/lib/2020-07-01/generated/azure_mgmt_network/models/bastion_shareable_link_list_request.rb +55 -0
  218. data/lib/2020-07-01/generated/azure_mgmt_network/models/bastion_shareable_link_list_result.rb +99 -0
  219. data/lib/2020-07-01/generated/azure_mgmt_network/models/bgp_connection.rb +132 -0
  220. data/lib/2020-07-01/generated/azure_mgmt_network/models/bgp_peer_state.rb +19 -0
  221. data/lib/2020-07-01/generated/azure_mgmt_network/models/bgp_peer_status.rb +136 -0
  222. data/lib/2020-07-01/generated/azure_mgmt_network/models/bgp_peer_status_list_result.rb +55 -0
  223. data/lib/2020-07-01/generated/azure_mgmt_network/models/bgp_service_community.rb +116 -0
  224. data/lib/2020-07-01/generated/azure_mgmt_network/models/bgp_service_community_list_result.rb +99 -0
  225. data/lib/2020-07-01/generated/azure_mgmt_network/models/bgp_settings.rb +95 -0
  226. data/lib/2020-07-01/generated/azure_mgmt_network/models/bgpcommunity.rb +112 -0
  227. data/lib/2020-07-01/generated/azure_mgmt_network/models/break_out_category_policies.rb +68 -0
  228. data/lib/2020-07-01/generated/azure_mgmt_network/models/check_private_link_service_visibility_request.rb +46 -0
  229. data/lib/2020-07-01/generated/azure_mgmt_network/models/circuit_connection_status.rb +17 -0
  230. data/lib/2020-07-01/generated/azure_mgmt_network/models/commissioned_state.rb +20 -0
  231. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor.rb +216 -0
  232. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor_destination.rb +74 -0
  233. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor_endpoint.rb +120 -0
  234. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor_endpoint_filter.rb +69 -0
  235. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor_endpoint_filter_item.rb +59 -0
  236. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor_endpoint_filter_item_type.rb +15 -0
  237. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor_endpoint_filter_type.rb +15 -0
  238. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor_endpoint_scope.rb +77 -0
  239. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor_endpoint_scope_item.rb +47 -0
  240. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor_http_configuration.rb +127 -0
  241. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor_icmp_configuration.rb +47 -0
  242. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor_list_result.rb +56 -0
  243. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor_output.rb +61 -0
  244. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor_parameters.rb +186 -0
  245. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor_query_result.rb +68 -0
  246. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor_result.rb +317 -0
  247. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor_source.rb +62 -0
  248. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor_source_status.rb +17 -0
  249. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor_success_threshold.rb +59 -0
  250. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor_tcp_configuration.rb +74 -0
  251. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor_test_configuration.rb +135 -0
  252. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor_test_configuration_protocol.rb +17 -0
  253. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor_test_group.rb +114 -0
  254. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor_type.rb +16 -0
  255. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_monitor_workspace_settings.rb +47 -0
  256. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_reset_shared_key.rb +51 -0
  257. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_shared_key.rb +54 -0
  258. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_state.rb +17 -0
  259. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_state_snapshot.rb +178 -0
  260. data/lib/2020-07-01/generated/azure_mgmt_network/models/connection_status.rb +18 -0
  261. data/lib/2020-07-01/generated/azure_mgmt_network/models/connectivity_destination.rb +74 -0
  262. data/lib/2020-07-01/generated/azure_mgmt_network/models/connectivity_hop.rb +186 -0
  263. data/lib/2020-07-01/generated/azure_mgmt_network/models/connectivity_information.rb +130 -0
  264. data/lib/2020-07-01/generated/azure_mgmt_network/models/connectivity_issue.rb +106 -0
  265. data/lib/2020-07-01/generated/azure_mgmt_network/models/connectivity_parameters.rb +95 -0
  266. data/lib/2020-07-01/generated/azure_mgmt_network/models/connectivity_source.rb +63 -0
  267. data/lib/2020-07-01/generated/azure_mgmt_network/models/container.rb +43 -0
  268. data/lib/2020-07-01/generated/azure_mgmt_network/models/container_network_interface.rb +144 -0
  269. data/lib/2020-07-01/generated/azure_mgmt_network/models/container_network_interface_configuration.rb +136 -0
  270. data/lib/2020-07-01/generated/azure_mgmt_network/models/container_network_interface_ip_configuration.rb +86 -0
  271. data/lib/2020-07-01/generated/azure_mgmt_network/models/coverage_level.rb +20 -0
  272. data/lib/2020-07-01/generated/azure_mgmt_network/models/custom_dns_config_properties_format.rb +66 -0
  273. data/lib/2020-07-01/generated/azure_mgmt_network/models/custom_ip_prefix.rb +192 -0
  274. data/lib/2020-07-01/generated/azure_mgmt_network/models/custom_ip_prefix_list_result.rb +99 -0
  275. data/lib/2020-07-01/generated/azure_mgmt_network/models/ddos_custom_policy.rb +170 -0
  276. data/lib/2020-07-01/generated/azure_mgmt_network/models/ddos_custom_policy_protocol.rb +17 -0
  277. data/lib/2020-07-01/generated/azure_mgmt_network/models/ddos_custom_policy_trigger_sensitivity_override.rb +18 -0
  278. data/lib/2020-07-01/generated/azure_mgmt_network/models/ddos_protection_plan.rb +165 -0
  279. data/lib/2020-07-01/generated/azure_mgmt_network/models/ddos_protection_plan_list_result.rb +99 -0
  280. data/lib/2020-07-01/generated/azure_mgmt_network/models/ddos_settings.rb +72 -0
  281. data/lib/2020-07-01/generated/azure_mgmt_network/models/ddos_settings_protection_coverage.rb +16 -0
  282. data/lib/2020-07-01/generated/azure_mgmt_network/models/delegation.rb +115 -0
  283. data/lib/2020-07-01/generated/azure_mgmt_network/models/destination_port_behavior.rb +16 -0
  284. data/lib/2020-07-01/generated/azure_mgmt_network/models/device_properties.rb +68 -0
  285. data/lib/2020-07-01/generated/azure_mgmt_network/models/dh_group.rb +22 -0
  286. data/lib/2020-07-01/generated/azure_mgmt_network/models/dhcp_options.rb +56 -0
  287. data/lib/2020-07-01/generated/azure_mgmt_network/models/dimension.rb +68 -0
  288. data/lib/2020-07-01/generated/azure_mgmt_network/models/direction.rb +16 -0
  289. data/lib/2020-07-01/generated/azure_mgmt_network/models/dns_name_availability_result.rb +46 -0
  290. data/lib/2020-07-01/generated/azure_mgmt_network/models/dns_settings.rb +78 -0
  291. data/lib/2020-07-01/generated/azure_mgmt_network/models/dscp_configuration.rb +272 -0
  292. data/lib/2020-07-01/generated/azure_mgmt_network/models/dscp_configuration_list_result.rb +100 -0
  293. data/lib/2020-07-01/generated/azure_mgmt_network/models/effective_network_security_group.rb +109 -0
  294. data/lib/2020-07-01/generated/azure_mgmt_network/models/effective_network_security_group_association.rb +59 -0
  295. data/lib/2020-07-01/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +68 -0
  296. data/lib/2020-07-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb +260 -0
  297. data/lib/2020-07-01/generated/azure_mgmt_network/models/effective_route.rb +135 -0
  298. data/lib/2020-07-01/generated/azure_mgmt_network/models/effective_route_list_result.rb +67 -0
  299. data/lib/2020-07-01/generated/azure_mgmt_network/models/effective_route_source.rb +18 -0
  300. data/lib/2020-07-01/generated/azure_mgmt_network/models/effective_route_state.rb +16 -0
  301. data/lib/2020-07-01/generated/azure_mgmt_network/models/effective_routes_parameters.rb +61 -0
  302. data/lib/2020-07-01/generated/azure_mgmt_network/models/effective_security_rule_protocol.rb +17 -0
  303. data/lib/2020-07-01/generated/azure_mgmt_network/models/endpoint_service_result.rb +67 -0
  304. data/lib/2020-07-01/generated/azure_mgmt_network/models/endpoint_services_list_result.rb +99 -0
  305. data/lib/2020-07-01/generated/azure_mgmt_network/models/endpoint_type.rb +20 -0
  306. data/lib/2020-07-01/generated/azure_mgmt_network/models/error.rb +99 -0
  307. data/lib/2020-07-01/generated/azure_mgmt_network/models/error_details.rb +68 -0
  308. data/lib/2020-07-01/generated/azure_mgmt_network/models/error_response.rb +47 -0
  309. data/lib/2020-07-01/generated/azure_mgmt_network/models/evaluated_network_security_group.rb +92 -0
  310. data/lib/2020-07-01/generated/azure_mgmt_network/models/evaluation_state.rb +17 -0
  311. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_circuit.rb +296 -0
  312. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb +79 -0
  313. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb +117 -0
  314. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_circuit_connection.rb +170 -0
  315. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_circuit_connection_list_result.rb +101 -0
  316. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_circuit_list_result.rb +99 -0
  317. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +341 -0
  318. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +18 -0
  319. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb +122 -0
  320. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_circuit_peering_id.rb +46 -0
  321. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +100 -0
  322. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_circuit_peering_state.rb +16 -0
  323. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_circuit_reference.rb +46 -0
  324. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb +91 -0
  325. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +93 -0
  326. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +69 -0
  327. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_circuit_sku.rb +70 -0
  328. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_circuit_sku_family.rb +16 -0
  329. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +18 -0
  330. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_circuit_stats.rb +79 -0
  331. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +66 -0
  332. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +69 -0
  333. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb +69 -0
  334. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_connection.rb +127 -0
  335. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_connection_id.rb +47 -0
  336. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_connection_list.rb +56 -0
  337. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_cross_connection.rb +231 -0
  338. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_cross_connection_list_result.rb +100 -0
  339. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_cross_connection_peering.rb +251 -0
  340. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_cross_connection_peering_list.rb +102 -0
  341. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_cross_connection_routes_table_summary.rb +83 -0
  342. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_cross_connections_routes_table_summary_list_result.rb +70 -0
  343. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_gateway.rb +160 -0
  344. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_gateway_list.rb +55 -0
  345. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_gateway_properties_auto_scale_configuration.rb +49 -0
  346. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_gateway_properties_auto_scale_configuration_bounds.rb +60 -0
  347. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_link.rb +169 -0
  348. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_link_admin_state.rb +16 -0
  349. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_link_connector_type.rb +16 -0
  350. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_link_list_result.rb +99 -0
  351. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_link_mac_sec_cipher.rb +18 -0
  352. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_link_mac_sec_config.rb +86 -0
  353. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_link_mac_sec_sci_state.rb +16 -0
  354. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_peering_state.rb +16 -0
  355. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_peering_type.rb +17 -0
  356. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_port.rb +268 -0
  357. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_port_list_result.rb +98 -0
  358. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_ports_encapsulation.rb +16 -0
  359. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_ports_location.rb +146 -0
  360. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_ports_location_bandwidths.rb +61 -0
  361. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_ports_location_list_result.rb +99 -0
  362. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_service_provider.rb +139 -0
  363. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +58 -0
  364. data/lib/2020-07-01/generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb +99 -0
  365. data/lib/2020-07-01/generated/azure_mgmt_network/models/extended_location.rb +60 -0
  366. data/lib/2020-07-01/generated/azure_mgmt_network/models/extended_location_types.rb +15 -0
  367. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy.rb +277 -0
  368. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_certificate_authority.rb +58 -0
  369. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_filter_rule_collection.rb +106 -0
  370. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_filter_rule_collection_action.rb +47 -0
  371. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_filter_rule_collection_action_type.rb +16 -0
  372. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_intrusion_detection.rb +60 -0
  373. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_intrusion_detection_bypass_traffic_specifications.rb +167 -0
  374. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_intrusion_detection_configuration.rb +79 -0
  375. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_intrusion_detection_protocol.rb +18 -0
  376. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_intrusion_detection_signature_specification.rb +59 -0
  377. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_intrusion_detection_state_type.rb +17 -0
  378. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_list_result.rb +99 -0
  379. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_nat_rule_collection.rb +106 -0
  380. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_nat_rule_collection_action.rb +47 -0
  381. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_nat_rule_collection_action_type.rb +15 -0
  382. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_rule.rb +70 -0
  383. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_rule_application_protocol.rb +63 -0
  384. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_rule_application_protocol_type.rb +16 -0
  385. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_rule_collection.rb +74 -0
  386. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_rule_collection_group.rb +133 -0
  387. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_rule_collection_group_list_result.rb +101 -0
  388. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_rule_network_protocol.rb +18 -0
  389. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_sku.rb +47 -0
  390. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_sku_tier.rb +16 -0
  391. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_threat_intel_whitelist.rb +74 -0
  392. data/lib/2020-07-01/generated/azure_mgmt_network/models/firewall_policy_transport_security.rb +48 -0
  393. data/lib/2020-07-01/generated/azure_mgmt_network/models/flow_log.rb +198 -0
  394. data/lib/2020-07-01/generated/azure_mgmt_network/models/flow_log_format_parameters.rb +60 -0
  395. data/lib/2020-07-01/generated/azure_mgmt_network/models/flow_log_format_type.rb +15 -0
  396. data/lib/2020-07-01/generated/azure_mgmt_network/models/flow_log_information.rb +110 -0
  397. data/lib/2020-07-01/generated/azure_mgmt_network/models/flow_log_list_result.rb +99 -0
  398. data/lib/2020-07-01/generated/azure_mgmt_network/models/flow_log_status_parameters.rb +48 -0
  399. data/lib/2020-07-01/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb +274 -0
  400. data/lib/2020-07-01/generated/azure_mgmt_network/models/gateway_route.rb +119 -0
  401. data/lib/2020-07-01/generated/azure_mgmt_network/models/gateway_route_list_result.rb +55 -0
  402. data/lib/2020-07-01/generated/azure_mgmt_network/models/generate_express_route_ports_loarequest.rb +46 -0
  403. data/lib/2020-07-01/generated/azure_mgmt_network/models/generate_express_route_ports_loaresult.rb +46 -0
  404. data/lib/2020-07-01/generated/azure_mgmt_network/models/get_vpn_sites_configuration_request.rb +67 -0
  405. data/lib/2020-07-01/generated/azure_mgmt_network/models/hop_link.rb +160 -0
  406. data/lib/2020-07-01/generated/azure_mgmt_network/models/httpconfiguration.rb +85 -0
  407. data/lib/2020-07-01/generated/azure_mgmt_network/models/httpconfiguration_method.rb +16 -0
  408. data/lib/2020-07-01/generated/azure_mgmt_network/models/httpheader.rb +57 -0
  409. data/lib/2020-07-01/generated/azure_mgmt_network/models/httpmethod.rb +15 -0
  410. data/lib/2020-07-01/generated/azure_mgmt_network/models/hub_bgp_connection_status.rb +18 -0
  411. data/lib/2020-07-01/generated/azure_mgmt_network/models/hub_ip_configuration.rb +140 -0
  412. data/lib/2020-07-01/generated/azure_mgmt_network/models/hub_ipaddresses.rb +59 -0
  413. data/lib/2020-07-01/generated/azure_mgmt_network/models/hub_public_ipaddresses.rb +69 -0
  414. data/lib/2020-07-01/generated/azure_mgmt_network/models/hub_route.rb +100 -0
  415. data/lib/2020-07-01/generated/azure_mgmt_network/models/hub_route_table.rb +176 -0
  416. data/lib/2020-07-01/generated/azure_mgmt_network/models/hub_virtual_network_connection.rb +142 -0
  417. data/lib/2020-07-01/generated/azure_mgmt_network/models/hub_virtual_network_connection_status.rb +18 -0
  418. data/lib/2020-07-01/generated/azure_mgmt_network/models/ike_encryption.rb +21 -0
  419. data/lib/2020-07-01/generated/azure_mgmt_network/models/ike_integrity.rb +20 -0
  420. data/lib/2020-07-01/generated/azure_mgmt_network/models/inbound_nat_pool.rb +199 -0
  421. data/lib/2020-07-01/generated/azure_mgmt_network/models/inbound_nat_rule.rb +202 -0
  422. data/lib/2020-07-01/generated/azure_mgmt_network/models/inbound_nat_rule_list_result.rb +100 -0
  423. data/lib/2020-07-01/generated/azure_mgmt_network/models/inbound_security_rule.rb +112 -0
  424. data/lib/2020-07-01/generated/azure_mgmt_network/models/inbound_security_rules.rb +75 -0
  425. data/lib/2020-07-01/generated/azure_mgmt_network/models/inbound_security_rules_protocol.rb +16 -0
  426. data/lib/2020-07-01/generated/azure_mgmt_network/models/ip_allocation.rb +204 -0
  427. data/lib/2020-07-01/generated/azure_mgmt_network/models/ip_allocation_list_result.rb +98 -0
  428. data/lib/2020-07-01/generated/azure_mgmt_network/models/ip_allocation_type.rb +16 -0
  429. data/lib/2020-07-01/generated/azure_mgmt_network/models/ip_flow_protocol.rb +16 -0
  430. data/lib/2020-07-01/generated/azure_mgmt_network/models/ip_group.rb +176 -0
  431. data/lib/2020-07-01/generated/azure_mgmt_network/models/ip_group_list_result.rb +98 -0
  432. data/lib/2020-07-01/generated/azure_mgmt_network/models/ip_tag.rb +58 -0
  433. data/lib/2020-07-01/generated/azure_mgmt_network/models/ipaddress_availability_result.rb +66 -0
  434. data/lib/2020-07-01/generated/azure_mgmt_network/models/ipallocation_method.rb +16 -0
  435. data/lib/2020-07-01/generated/azure_mgmt_network/models/ipconfiguration.rb +129 -0
  436. data/lib/2020-07-01/generated/azure_mgmt_network/models/ipconfiguration_bgp_peering_address.rb +108 -0
  437. data/lib/2020-07-01/generated/azure_mgmt_network/models/ipconfiguration_profile.rb +107 -0
  438. data/lib/2020-07-01/generated/azure_mgmt_network/models/ipsec_encryption.rb +23 -0
  439. data/lib/2020-07-01/generated/azure_mgmt_network/models/ipsec_integrity.rb +20 -0
  440. data/lib/2020-07-01/generated/azure_mgmt_network/models/ipsec_policy.rb +137 -0
  441. data/lib/2020-07-01/generated/azure_mgmt_network/models/ipv6circuit_connection_config.rb +61 -0
  442. data/lib/2020-07-01/generated/azure_mgmt_network/models/ipv6express_route_circuit_peering_config.rb +94 -0
  443. data/lib/2020-07-01/generated/azure_mgmt_network/models/ipversion.rb +16 -0
  444. data/lib/2020-07-01/generated/azure_mgmt_network/models/issue_type.rb +23 -0
  445. data/lib/2020-07-01/generated/azure_mgmt_network/models/list_hub_route_tables_result.rb +99 -0
  446. data/lib/2020-07-01/generated/azure_mgmt_network/models/list_hub_virtual_network_connections_result.rb +102 -0
  447. data/lib/2020-07-01/generated/azure_mgmt_network/models/list_p2svpn_gateways_result.rb +100 -0
  448. data/lib/2020-07-01/generated/azure_mgmt_network/models/list_virtual_hub_bgp_connection_results.rb +98 -0
  449. data/lib/2020-07-01/generated/azure_mgmt_network/models/list_virtual_hub_ip_configuration_results.rb +99 -0
  450. data/lib/2020-07-01/generated/azure_mgmt_network/models/list_virtual_hub_route_table_v2s_result.rb +101 -0
  451. data/lib/2020-07-01/generated/azure_mgmt_network/models/list_virtual_hubs_result.rb +100 -0
  452. data/lib/2020-07-01/generated/azure_mgmt_network/models/list_virtual_wans_result.rb +100 -0
  453. data/lib/2020-07-01/generated/azure_mgmt_network/models/list_vpn_connections_result.rb +101 -0
  454. data/lib/2020-07-01/generated/azure_mgmt_network/models/list_vpn_gateways_result.rb +100 -0
  455. data/lib/2020-07-01/generated/azure_mgmt_network/models/list_vpn_server_configurations_result.rb +102 -0
  456. data/lib/2020-07-01/generated/azure_mgmt_network/models/list_vpn_site_link_connections_result.rb +101 -0
  457. data/lib/2020-07-01/generated/azure_mgmt_network/models/list_vpn_site_links_result.rb +100 -0
  458. data/lib/2020-07-01/generated/azure_mgmt_network/models/list_vpn_sites_result.rb +100 -0
  459. data/lib/2020-07-01/generated/azure_mgmt_network/models/load_balancer.rb +306 -0
  460. data/lib/2020-07-01/generated/azure_mgmt_network/models/load_balancer_backend_address.rb +97 -0
  461. data/lib/2020-07-01/generated/azure_mgmt_network/models/load_balancer_backend_address_pool_list_result.rb +101 -0
  462. data/lib/2020-07-01/generated/azure_mgmt_network/models/load_balancer_frontend_ipconfiguration_list_result.rb +102 -0
  463. data/lib/2020-07-01/generated/azure_mgmt_network/models/load_balancer_list_result.rb +100 -0
  464. data/lib/2020-07-01/generated/azure_mgmt_network/models/load_balancer_load_balancing_rule_list_result.rb +101 -0
  465. data/lib/2020-07-01/generated/azure_mgmt_network/models/load_balancer_outbound_rule_list_result.rb +100 -0
  466. data/lib/2020-07-01/generated/azure_mgmt_network/models/load_balancer_outbound_rule_protocol.rb +17 -0
  467. data/lib/2020-07-01/generated/azure_mgmt_network/models/load_balancer_probe_list_result.rb +99 -0
  468. data/lib/2020-07-01/generated/azure_mgmt_network/models/load_balancer_sku.rb +59 -0
  469. data/lib/2020-07-01/generated/azure_mgmt_network/models/load_balancer_sku_name.rb +16 -0
  470. data/lib/2020-07-01/generated/azure_mgmt_network/models/load_balancer_sku_tier.rb +16 -0
  471. data/lib/2020-07-01/generated/azure_mgmt_network/models/load_balancing_rule.rb +238 -0
  472. data/lib/2020-07-01/generated/azure_mgmt_network/models/load_distribution.rb +17 -0
  473. data/lib/2020-07-01/generated/azure_mgmt_network/models/local_network_gateway.rb +171 -0
  474. data/lib/2020-07-01/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb +100 -0
  475. data/lib/2020-07-01/generated/azure_mgmt_network/models/log_specification.rb +68 -0
  476. data/lib/2020-07-01/generated/azure_mgmt_network/models/managed_rule_enabled_state.rb +15 -0
  477. data/lib/2020-07-01/generated/azure_mgmt_network/models/managed_rule_group_override.rb +67 -0
  478. data/lib/2020-07-01/generated/azure_mgmt_network/models/managed_rule_override.rb +59 -0
  479. data/lib/2020-07-01/generated/azure_mgmt_network/models/managed_rule_set.rb +78 -0
  480. data/lib/2020-07-01/generated/azure_mgmt_network/models/managed_rules_definition.rb +77 -0
  481. data/lib/2020-07-01/generated/azure_mgmt_network/models/managed_service_identity.rb +102 -0
  482. data/lib/2020-07-01/generated/azure_mgmt_network/models/managed_service_identity_user_assigned_identities_value.rb +61 -0
  483. data/lib/2020-07-01/generated/azure_mgmt_network/models/match_condition.rb +118 -0
  484. data/lib/2020-07-01/generated/azure_mgmt_network/models/match_variable.rb +60 -0
  485. data/lib/2020-07-01/generated/azure_mgmt_network/models/matched_rule.rb +58 -0
  486. data/lib/2020-07-01/generated/azure_mgmt_network/models/metric_specification.rb +207 -0
  487. data/lib/2020-07-01/generated/azure_mgmt_network/models/nat_gateway.rb +232 -0
  488. data/lib/2020-07-01/generated/azure_mgmt_network/models/nat_gateway_list_result.rb +99 -0
  489. data/lib/2020-07-01/generated/azure_mgmt_network/models/nat_gateway_sku.rb +47 -0
  490. data/lib/2020-07-01/generated/azure_mgmt_network/models/nat_gateway_sku_name.rb +15 -0
  491. data/lib/2020-07-01/generated/azure_mgmt_network/models/nat_rule.rb +196 -0
  492. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_parameters.rb +81 -0
  493. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_profile.rb +95 -0
  494. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_response.rb +57 -0
  495. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_configuration_diagnostic_result.rb +61 -0
  496. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_intent_policy.rb +98 -0
  497. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_intent_policy_configuration.rb +60 -0
  498. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_interface.rb +318 -0
  499. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_interface_association.rb +67 -0
  500. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_interface_dns_settings.rb +120 -0
  501. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb +274 -0
  502. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_interface_ipconfiguration_list_result.rb +102 -0
  503. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_interface_ipconfiguration_private_link_connection_properties.rb +83 -0
  504. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_interface_list_result.rb +100 -0
  505. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_interface_load_balancer_list_result.rb +100 -0
  506. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_interface_tap_configuration.rb +107 -0
  507. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_interface_tap_configuration_list_result.rb +102 -0
  508. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_operation_status.rb +17 -0
  509. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_profile.rb +168 -0
  510. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_profile_list_result.rb +99 -0
  511. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_rule.rb +201 -0
  512. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_security_group.rb +233 -0
  513. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_security_group_list_result.rb +99 -0
  514. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_security_group_result.rb +70 -0
  515. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_security_rules_evaluation_result.rb +101 -0
  516. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_virtual_appliance.rb +291 -0
  517. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_virtual_appliance_list_result.rb +99 -0
  518. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_virtual_appliance_site_list_result.rb +99 -0
  519. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_virtual_appliance_sku.rb +153 -0
  520. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_virtual_appliance_sku_instances.rb +61 -0
  521. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_virtual_appliance_sku_list_result.rb +99 -0
  522. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_watcher.rb +112 -0
  523. data/lib/2020-07-01/generated/azure_mgmt_network/models/network_watcher_list_result.rb +55 -0
  524. data/lib/2020-07-01/generated/azure_mgmt_network/models/next_hop_parameters.rb +82 -0
  525. data/lib/2020-07-01/generated/azure_mgmt_network/models/next_hop_result.rb +73 -0
  526. data/lib/2020-07-01/generated/azure_mgmt_network/models/next_hop_type.rb +20 -0
  527. data/lib/2020-07-01/generated/azure_mgmt_network/models/o365break_out_category_policies.rb +68 -0
  528. data/lib/2020-07-01/generated/azure_mgmt_network/models/o365policy_properties.rb +47 -0
  529. data/lib/2020-07-01/generated/azure_mgmt_network/models/office365policy_properties.rb +47 -0
  530. data/lib/2020-07-01/generated/azure_mgmt_network/models/office_traffic_category.rb +18 -0
  531. data/lib/2020-07-01/generated/azure_mgmt_network/models/operation.rb +83 -0
  532. data/lib/2020-07-01/generated/azure_mgmt_network/models/operation_display.rb +79 -0
  533. data/lib/2020-07-01/generated/azure_mgmt_network/models/operation_list_result.rb +101 -0
  534. data/lib/2020-07-01/generated/azure_mgmt_network/models/operation_properties_format_service_specification.rb +76 -0
  535. data/lib/2020-07-01/generated/azure_mgmt_network/models/origin.rb +17 -0
  536. data/lib/2020-07-01/generated/azure_mgmt_network/models/outbound_rule.rb +177 -0
  537. data/lib/2020-07-01/generated/azure_mgmt_network/models/output_type.rb +15 -0
  538. data/lib/2020-07-01/generated/azure_mgmt_network/models/owasp_crs_exclusion_entry.rb +74 -0
  539. data/lib/2020-07-01/generated/azure_mgmt_network/models/owasp_crs_exclusion_entry_match_variable.rb +17 -0
  540. data/lib/2020-07-01/generated/azure_mgmt_network/models/owasp_crs_exclusion_entry_selector_match_operator.rb +19 -0
  541. data/lib/2020-07-01/generated/azure_mgmt_network/models/p2sconnection_configuration.rb +120 -0
  542. data/lib/2020-07-01/generated/azure_mgmt_network/models/p2svpn_connection_health.rb +47 -0
  543. data/lib/2020-07-01/generated/azure_mgmt_network/models/p2svpn_connection_health_request.rb +67 -0
  544. data/lib/2020-07-01/generated/azure_mgmt_network/models/p2svpn_connection_request.rb +54 -0
  545. data/lib/2020-07-01/generated/azure_mgmt_network/models/p2svpn_gateway.rb +215 -0
  546. data/lib/2020-07-01/generated/azure_mgmt_network/models/p2svpn_profile_parameters.rb +47 -0
  547. data/lib/2020-07-01/generated/azure_mgmt_network/models/packet_capture.rb +131 -0
  548. data/lib/2020-07-01/generated/azure_mgmt_network/models/packet_capture_filter.rb +107 -0
  549. data/lib/2020-07-01/generated/azure_mgmt_network/models/packet_capture_list_result.rb +56 -0
  550. data/lib/2020-07-01/generated/azure_mgmt_network/models/packet_capture_parameters.rb +131 -0
  551. data/lib/2020-07-01/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb +111 -0
  552. data/lib/2020-07-01/generated/azure_mgmt_network/models/packet_capture_result.rb +182 -0
  553. data/lib/2020-07-01/generated/azure_mgmt_network/models/packet_capture_storage_location.rb +74 -0
  554. data/lib/2020-07-01/generated/azure_mgmt_network/models/patch_route_filter.rb +179 -0
  555. data/lib/2020-07-01/generated/azure_mgmt_network/models/patch_route_filter_rule.rb +129 -0
  556. data/lib/2020-07-01/generated/azure_mgmt_network/models/pc_error.rb +19 -0
  557. data/lib/2020-07-01/generated/azure_mgmt_network/models/pc_protocol.rb +17 -0
  558. data/lib/2020-07-01/generated/azure_mgmt_network/models/pc_status.rb +19 -0
  559. data/lib/2020-07-01/generated/azure_mgmt_network/models/peer_express_route_circuit_connection.rb +170 -0
  560. data/lib/2020-07-01/generated/azure_mgmt_network/models/peer_express_route_circuit_connection_list_result.rb +104 -0
  561. data/lib/2020-07-01/generated/azure_mgmt_network/models/peer_route.rb +119 -0
  562. data/lib/2020-07-01/generated/azure_mgmt_network/models/peer_route_list.rb +55 -0
  563. data/lib/2020-07-01/generated/azure_mgmt_network/models/pfs_group.rb +23 -0
  564. data/lib/2020-07-01/generated/azure_mgmt_network/models/policy_settings.rb +99 -0
  565. data/lib/2020-07-01/generated/azure_mgmt_network/models/preferred_ipversion.rb +16 -0
  566. data/lib/2020-07-01/generated/azure_mgmt_network/models/prepare_network_policies_request.rb +68 -0
  567. data/lib/2020-07-01/generated/azure_mgmt_network/models/private_dns_zone_config.rb +80 -0
  568. data/lib/2020-07-01/generated/azure_mgmt_network/models/private_dns_zone_group.rb +103 -0
  569. data/lib/2020-07-01/generated/azure_mgmt_network/models/private_dns_zone_group_list_result.rb +100 -0
  570. data/lib/2020-07-01/generated/azure_mgmt_network/models/private_endpoint.rb +212 -0
  571. data/lib/2020-07-01/generated/azure_mgmt_network/models/private_endpoint_connection.rb +133 -0
  572. data/lib/2020-07-01/generated/azure_mgmt_network/models/private_endpoint_connection_list_result.rb +101 -0
  573. data/lib/2020-07-01/generated/azure_mgmt_network/models/private_endpoint_list_result.rb +100 -0
  574. data/lib/2020-07-01/generated/azure_mgmt_network/models/private_link_service.rb +267 -0
  575. data/lib/2020-07-01/generated/azure_mgmt_network/models/private_link_service_connection.rb +150 -0
  576. data/lib/2020-07-01/generated/azure_mgmt_network/models/private_link_service_connection_state.rb +71 -0
  577. data/lib/2020-07-01/generated/azure_mgmt_network/models/private_link_service_ip_configuration.rb +151 -0
  578. data/lib/2020-07-01/generated/azure_mgmt_network/models/private_link_service_list_result.rb +100 -0
  579. data/lib/2020-07-01/generated/azure_mgmt_network/models/private_link_service_properties_auto_approval.rb +51 -0
  580. data/lib/2020-07-01/generated/azure_mgmt_network/models/private_link_service_properties_visibility.rb +51 -0
  581. data/lib/2020-07-01/generated/azure_mgmt_network/models/private_link_service_visibility.rb +46 -0
  582. data/lib/2020-07-01/generated/azure_mgmt_network/models/probe.rb +186 -0
  583. data/lib/2020-07-01/generated/azure_mgmt_network/models/probe_protocol.rb +17 -0
  584. data/lib/2020-07-01/generated/azure_mgmt_network/models/processor_architecture.rb +16 -0
  585. data/lib/2020-07-01/generated/azure_mgmt_network/models/propagated_route_table.rb +75 -0
  586. data/lib/2020-07-01/generated/azure_mgmt_network/models/protocol.rb +18 -0
  587. data/lib/2020-07-01/generated/azure_mgmt_network/models/protocol_configuration.rb +48 -0
  588. data/lib/2020-07-01/generated/azure_mgmt_network/models/protocol_custom_settings_format.rb +87 -0
  589. data/lib/2020-07-01/generated/azure_mgmt_network/models/protocol_type.rb +23 -0
  590. data/lib/2020-07-01/generated/azure_mgmt_network/models/provisioning_state.rb +18 -0
  591. data/lib/2020-07-01/generated/azure_mgmt_network/models/public_ipaddress.rb +291 -0
  592. data/lib/2020-07-01/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +77 -0
  593. data/lib/2020-07-01/generated/azure_mgmt_network/models/public_ipaddress_list_result.rb +99 -0
  594. data/lib/2020-07-01/generated/azure_mgmt_network/models/public_ipaddress_sku.rb +59 -0
  595. data/lib/2020-07-01/generated/azure_mgmt_network/models/public_ipaddress_sku_name.rb +16 -0
  596. data/lib/2020-07-01/generated/azure_mgmt_network/models/public_ipaddress_sku_tier.rb +16 -0
  597. data/lib/2020-07-01/generated/azure_mgmt_network/models/public_ipprefix.rb +275 -0
  598. data/lib/2020-07-01/generated/azure_mgmt_network/models/public_ipprefix_list_result.rb +99 -0
  599. data/lib/2020-07-01/generated/azure_mgmt_network/models/public_ipprefix_sku.rb +59 -0
  600. data/lib/2020-07-01/generated/azure_mgmt_network/models/public_ipprefix_sku_name.rb +15 -0
  601. data/lib/2020-07-01/generated/azure_mgmt_network/models/public_ipprefix_sku_tier.rb +16 -0
  602. data/lib/2020-07-01/generated/azure_mgmt_network/models/qos_ip_range.rb +57 -0
  603. data/lib/2020-07-01/generated/azure_mgmt_network/models/qos_port_range.rb +57 -0
  604. data/lib/2020-07-01/generated/azure_mgmt_network/models/query_troubleshooting_parameters.rb +47 -0
  605. data/lib/2020-07-01/generated/azure_mgmt_network/models/radius_server.rb +68 -0
  606. data/lib/2020-07-01/generated/azure_mgmt_network/models/record_set.rb +111 -0
  607. data/lib/2020-07-01/generated/azure_mgmt_network/models/referenced_public_ip_address.rb +46 -0
  608. data/lib/2020-07-01/generated/azure_mgmt_network/models/resource.rb +109 -0
  609. data/lib/2020-07-01/generated/azure_mgmt_network/models/resource_identity_type.rb +18 -0
  610. data/lib/2020-07-01/generated/azure_mgmt_network/models/resource_navigation_link.rb +116 -0
  611. data/lib/2020-07-01/generated/azure_mgmt_network/models/resource_navigation_links_list_result.rb +68 -0
  612. data/lib/2020-07-01/generated/azure_mgmt_network/models/resource_set.rb +54 -0
  613. data/lib/2020-07-01/generated/azure_mgmt_network/models/retention_policy_parameters.rb +61 -0
  614. data/lib/2020-07-01/generated/azure_mgmt_network/models/route.rb +119 -0
  615. data/lib/2020-07-01/generated/azure_mgmt_network/models/route_filter.rb +177 -0
  616. data/lib/2020-07-01/generated/azure_mgmt_network/models/route_filter_list_result.rb +99 -0
  617. data/lib/2020-07-01/generated/azure_mgmt_network/models/route_filter_rule.rb +139 -0
  618. data/lib/2020-07-01/generated/azure_mgmt_network/models/route_filter_rule_list_result.rb +99 -0
  619. data/lib/2020-07-01/generated/azure_mgmt_network/models/route_list_result.rb +98 -0
  620. data/lib/2020-07-01/generated/azure_mgmt_network/models/route_next_hop_type.rb +19 -0
  621. data/lib/2020-07-01/generated/azure_mgmt_network/models/route_table.rb +166 -0
  622. data/lib/2020-07-01/generated/azure_mgmt_network/models/route_table_list_result.rb +98 -0
  623. data/lib/2020-07-01/generated/azure_mgmt_network/models/routing_configuration.rb +75 -0
  624. data/lib/2020-07-01/generated/azure_mgmt_network/models/routing_state.rb +18 -0
  625. data/lib/2020-07-01/generated/azure_mgmt_network/models/security_group_network_interface.rb +59 -0
  626. data/lib/2020-07-01/generated/azure_mgmt_network/models/security_group_view_parameters.rb +46 -0
  627. data/lib/2020-07-01/generated/azure_mgmt_network/models/security_group_view_result.rb +56 -0
  628. data/lib/2020-07-01/generated/azure_mgmt_network/models/security_partner_provider.rb +151 -0
  629. data/lib/2020-07-01/generated/azure_mgmt_network/models/security_partner_provider_connection_status.rb +18 -0
  630. data/lib/2020-07-01/generated/azure_mgmt_network/models/security_partner_provider_list_result.rb +99 -0
  631. data/lib/2020-07-01/generated/azure_mgmt_network/models/security_provider_name.rb +17 -0
  632. data/lib/2020-07-01/generated/azure_mgmt_network/models/security_rule.rb +315 -0
  633. data/lib/2020-07-01/generated/azure_mgmt_network/models/security_rule_access.rb +16 -0
  634. data/lib/2020-07-01/generated/azure_mgmt_network/models/security_rule_associations.rb +102 -0
  635. data/lib/2020-07-01/generated/azure_mgmt_network/models/security_rule_direction.rb +16 -0
  636. data/lib/2020-07-01/generated/azure_mgmt_network/models/security_rule_list_result.rb +100 -0
  637. data/lib/2020-07-01/generated/azure_mgmt_network/models/security_rule_protocol.rb +20 -0
  638. data/lib/2020-07-01/generated/azure_mgmt_network/models/service_association_link.rb +146 -0
  639. data/lib/2020-07-01/generated/azure_mgmt_network/models/service_association_links_list_result.rb +68 -0
  640. data/lib/2020-07-01/generated/azure_mgmt_network/models/service_endpoint_policy.rb +167 -0
  641. data/lib/2020-07-01/generated/azure_mgmt_network/models/service_endpoint_policy_definition.rb +123 -0
  642. data/lib/2020-07-01/generated/azure_mgmt_network/models/service_endpoint_policy_definition_list_result.rb +103 -0
  643. data/lib/2020-07-01/generated/azure_mgmt_network/models/service_endpoint_policy_list_result.rb +100 -0
  644. data/lib/2020-07-01/generated/azure_mgmt_network/models/service_endpoint_properties_format.rb +79 -0
  645. data/lib/2020-07-01/generated/azure_mgmt_network/models/service_provider_provisioning_state.rb +18 -0
  646. data/lib/2020-07-01/generated/azure_mgmt_network/models/service_tag_information.rb +73 -0
  647. data/lib/2020-07-01/generated/azure_mgmt_network/models/service_tag_information_properties_format.rb +91 -0
  648. data/lib/2020-07-01/generated/azure_mgmt_network/models/service_tags_list_result.rb +130 -0
  649. data/lib/2020-07-01/generated/azure_mgmt_network/models/session_ids.rb +54 -0
  650. data/lib/2020-07-01/generated/azure_mgmt_network/models/severity.rb +16 -0
  651. data/lib/2020-07-01/generated/azure_mgmt_network/models/static_route.rb +77 -0
  652. data/lib/2020-07-01/generated/azure_mgmt_network/models/sub_resource.rb +46 -0
  653. data/lib/2020-07-01/generated/azure_mgmt_network/models/subnet.rb +380 -0
  654. data/lib/2020-07-01/generated/azure_mgmt_network/models/subnet_association.rb +67 -0
  655. data/lib/2020-07-01/generated/azure_mgmt_network/models/subnet_list_result.rb +99 -0
  656. data/lib/2020-07-01/generated/azure_mgmt_network/models/tags_object.rb +54 -0
  657. data/lib/2020-07-01/generated/azure_mgmt_network/models/topology.rb +92 -0
  658. data/lib/2020-07-01/generated/azure_mgmt_network/models/topology_association.rb +71 -0
  659. data/lib/2020-07-01/generated/azure_mgmt_network/models/topology_parameters.rb +71 -0
  660. data/lib/2020-07-01/generated/azure_mgmt_network/models/topology_resource.rb +89 -0
  661. data/lib/2020-07-01/generated/azure_mgmt_network/models/traffic_analytics_configuration_properties.rb +91 -0
  662. data/lib/2020-07-01/generated/azure_mgmt_network/models/traffic_analytics_properties.rb +48 -0
  663. data/lib/2020-07-01/generated/azure_mgmt_network/models/traffic_selector_policy.rb +75 -0
  664. data/lib/2020-07-01/generated/azure_mgmt_network/models/transport_protocol.rb +17 -0
  665. data/lib/2020-07-01/generated/azure_mgmt_network/models/troubleshooting_details.rb +100 -0
  666. data/lib/2020-07-01/generated/azure_mgmt_network/models/troubleshooting_parameters.rb +70 -0
  667. data/lib/2020-07-01/generated/azure_mgmt_network/models/troubleshooting_recommended_actions.rb +81 -0
  668. data/lib/2020-07-01/generated/azure_mgmt_network/models/troubleshooting_result.rb +89 -0
  669. data/lib/2020-07-01/generated/azure_mgmt_network/models/tunnel_connection_health.rb +98 -0
  670. data/lib/2020-07-01/generated/azure_mgmt_network/models/tunnel_connection_status.rb +18 -0
  671. data/lib/2020-07-01/generated/azure_mgmt_network/models/unprepare_network_policies_request.rb +47 -0
  672. data/lib/2020-07-01/generated/azure_mgmt_network/models/usage.rb +95 -0
  673. data/lib/2020-07-01/generated/azure_mgmt_network/models/usage_name.rb +57 -0
  674. data/lib/2020-07-01/generated/azure_mgmt_network/models/usages_list_result.rb +98 -0
  675. data/lib/2020-07-01/generated/azure_mgmt_network/models/verbosity_level.rb +17 -0
  676. data/lib/2020-07-01/generated/azure_mgmt_network/models/verification_ipflow_parameters.rb +133 -0
  677. data/lib/2020-07-01/generated/azure_mgmt_network/models/verification_ipflow_result.rb +59 -0
  678. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_appliance_nic_properties.rb +71 -0
  679. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_appliance_site.rb +115 -0
  680. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_appliance_sku_properties.rb +68 -0
  681. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_hub.rb +354 -0
  682. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_hub_effective_route.rb +106 -0
  683. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_hub_effective_route_list.rb +56 -0
  684. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_hub_id.rb +48 -0
  685. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_hub_route.rb +65 -0
  686. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_hub_route_table.rb +55 -0
  687. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_hub_route_table_v2.rb +122 -0
  688. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_hub_route_v2.rb +95 -0
  689. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network.rb +279 -0
  690. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_bgp_communities.rb +60 -0
  691. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_connection_gateway_reference.rb +47 -0
  692. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_gateway.rb +336 -0
  693. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb +406 -0
  694. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_entity.rb +383 -0
  695. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +103 -0
  696. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_mode.rb +17 -0
  697. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_protocol.rb +16 -0
  698. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +18 -0
  699. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +18 -0
  700. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +130 -0
  701. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_gateway_list_connections_result.rb +104 -0
  702. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +100 -0
  703. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb +77 -0
  704. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +31 -0
  705. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +31 -0
  706. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_gateway_type.rb +17 -0
  707. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_list_result.rb +99 -0
  708. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_list_usage_result.rb +99 -0
  709. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_peering.rb +188 -0
  710. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb +100 -0
  711. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_peering_state.rb +17 -0
  712. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_tap.rb +186 -0
  713. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_tap_list_result.rb +99 -0
  714. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_usage.rb +97 -0
  715. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_network_usage_name.rb +59 -0
  716. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_router.rb +191 -0
  717. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_router_list_result.rb +98 -0
  718. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_router_peering.rb +119 -0
  719. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_router_peering_list_result.rb +99 -0
  720. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_wan.rb +210 -0
  721. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_wan_security_provider.rb +69 -0
  722. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_wan_security_provider_type.rb +16 -0
  723. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_wan_security_providers.rb +56 -0
  724. data/lib/2020-07-01/generated/azure_mgmt_network/models/virtual_wan_vpn_profile_parameters.rb +59 -0
  725. data/lib/2020-07-01/generated/azure_mgmt_network/models/vm.rb +85 -0
  726. data/lib/2020-07-01/generated/azure_mgmt_network/models/vnet_route.rb +56 -0
  727. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_authentication_type.rb +17 -0
  728. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_client_configuration.rb +212 -0
  729. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_client_connection_health.rb +93 -0
  730. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_client_connection_health_detail.rb +179 -0
  731. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_client_connection_health_detail_list_result.rb +57 -0
  732. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_client_ipsec_parameters.rb +137 -0
  733. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_client_parameters.rb +94 -0
  734. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_client_protocol.rb +17 -0
  735. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +93 -0
  736. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_client_root_certificate.rb +93 -0
  737. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_connection.rb +296 -0
  738. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_connection_packet_capture_start_parameters.rb +67 -0
  739. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_connection_packet_capture_stop_parameters.rb +66 -0
  740. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_connection_status.rb +18 -0
  741. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_device_script_parameters.rb +68 -0
  742. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_gateway.rb +202 -0
  743. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_gateway_generation.rb +17 -0
  744. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_gateway_ip_configuration.rb +69 -0
  745. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_gateway_packet_capture_start_parameters.rb +46 -0
  746. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_gateway_packet_capture_stop_parameters.rb +46 -0
  747. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_gateway_tunneling_protocol.rb +16 -0
  748. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_link_bgp_settings.rb +58 -0
  749. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_link_provider_properties.rb +57 -0
  750. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_packet_capture_start_parameters.rb +46 -0
  751. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_packet_capture_stop_parameters.rb +46 -0
  752. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_profile_response.rb +46 -0
  753. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_server_config_radius_client_root_certificate.rb +59 -0
  754. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_server_config_radius_server_root_certificate.rb +58 -0
  755. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_server_config_vpn_client_revoked_certificate.rb +59 -0
  756. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_server_config_vpn_client_root_certificate.rb +57 -0
  757. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_server_configuration.rb +360 -0
  758. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_server_configurations_response.rb +55 -0
  759. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_site.rb +226 -0
  760. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_site_id.rb +48 -0
  761. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_site_link.rb +140 -0
  762. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_site_link_connection.rb +252 -0
  763. data/lib/2020-07-01/generated/azure_mgmt_network/models/vpn_type.rb +16 -0
  764. data/lib/2020-07-01/generated/azure_mgmt_network/models/web_application_firewall_action.rb +17 -0
  765. data/lib/2020-07-01/generated/azure_mgmt_network/models/web_application_firewall_custom_rule.rb +119 -0
  766. data/lib/2020-07-01/generated/azure_mgmt_network/models/web_application_firewall_enabled_state.rb +16 -0
  767. data/lib/2020-07-01/generated/azure_mgmt_network/models/web_application_firewall_match_variable.rb +22 -0
  768. data/lib/2020-07-01/generated/azure_mgmt_network/models/web_application_firewall_mode.rb +16 -0
  769. data/lib/2020-07-01/generated/azure_mgmt_network/models/web_application_firewall_operator.rb +25 -0
  770. data/lib/2020-07-01/generated/azure_mgmt_network/models/web_application_firewall_policy.rb +237 -0
  771. data/lib/2020-07-01/generated/azure_mgmt_network/models/web_application_firewall_policy_list_result.rb +105 -0
  772. data/lib/2020-07-01/generated/azure_mgmt_network/models/web_application_firewall_policy_resource_state.rb +20 -0
  773. data/lib/2020-07-01/generated/azure_mgmt_network/models/web_application_firewall_rule_type.rb +16 -0
  774. data/lib/2020-07-01/generated/azure_mgmt_network/models/web_application_firewall_transform.rb +20 -0
  775. data/lib/2020-07-01/generated/azure_mgmt_network/module_definition.rb +9 -0
  776. data/lib/2020-07-01/generated/azure_mgmt_network/nat_gateways.rb +912 -0
  777. data/lib/2020-07-01/generated/azure_mgmt_network/network_interface_ipconfigurations.rb +329 -0
  778. data/lib/2020-07-01/generated/azure_mgmt_network/network_interface_load_balancers.rb +231 -0
  779. data/lib/2020-07-01/generated/azure_mgmt_network/network_interface_tap_configurations.rb +626 -0
  780. data/lib/2020-07-01/generated/azure_mgmt_network/network_interfaces.rb +1713 -0
  781. data/lib/2020-07-01/generated/azure_mgmt_network/network_management_client.rb +2733 -0
  782. data/lib/2020-07-01/generated/azure_mgmt_network/network_profiles.rb +866 -0
  783. data/lib/2020-07-01/generated/azure_mgmt_network/network_security_groups.rb +928 -0
  784. data/lib/2020-07-01/generated/azure_mgmt_network/network_virtual_appliances.rb +931 -0
  785. data/lib/2020-07-01/generated/azure_mgmt_network/network_watchers.rb +2670 -0
  786. data/lib/2020-07-01/generated/azure_mgmt_network/operations.rb +219 -0
  787. data/lib/2020-07-01/generated/azure_mgmt_network/p2s_vpn_gateways.rb +1721 -0
  788. data/lib/2020-07-01/generated/azure_mgmt_network/packet_captures.rb +796 -0
  789. data/lib/2020-07-01/generated/azure_mgmt_network/peer_express_route_circuit_connections.rb +351 -0
  790. data/lib/2020-07-01/generated/azure_mgmt_network/private_dns_zone_groups.rb +646 -0
  791. data/lib/2020-07-01/generated/azure_mgmt_network/private_endpoints.rb +804 -0
  792. data/lib/2020-07-01/generated/azure_mgmt_network/private_link_services.rb +2098 -0
  793. data/lib/2020-07-01/generated/azure_mgmt_network/public_ipaddresses.rb +1459 -0
  794. data/lib/2020-07-01/generated/azure_mgmt_network/public_ipprefixes.rb +912 -0
  795. data/lib/2020-07-01/generated/azure_mgmt_network/resource_navigation_links.rb +123 -0
  796. data/lib/2020-07-01/generated/azure_mgmt_network/route_filter_rules.rb +626 -0
  797. data/lib/2020-07-01/generated/azure_mgmt_network/route_filters.rb +915 -0
  798. data/lib/2020-07-01/generated/azure_mgmt_network/route_tables.rb +912 -0
  799. data/lib/2020-07-01/generated/azure_mgmt_network/routes.rb +625 -0
  800. data/lib/2020-07-01/generated/azure_mgmt_network/security_partner_providers.rb +925 -0
  801. data/lib/2020-07-01/generated/azure_mgmt_network/security_rules.rb +643 -0
  802. data/lib/2020-07-01/generated/azure_mgmt_network/service_association_links.rb +123 -0
  803. data/lib/2020-07-01/generated/azure_mgmt_network/service_endpoint_policies.rb +928 -0
  804. data/lib/2020-07-01/generated/azure_mgmt_network/service_endpoint_policy_definitions.rb +668 -0
  805. data/lib/2020-07-01/generated/azure_mgmt_network/service_tags.rb +124 -0
  806. data/lib/2020-07-01/generated/azure_mgmt_network/subnets.rb +929 -0
  807. data/lib/2020-07-01/generated/azure_mgmt_network/usages.rb +227 -0
  808. data/lib/2020-07-01/generated/azure_mgmt_network/virtual_appliance_sites.rb +650 -0
  809. data/lib/2020-07-01/generated/azure_mgmt_network/virtual_appliance_skus.rb +311 -0
  810. data/lib/2020-07-01/generated/azure_mgmt_network/virtual_hub_bgp_connection.rb +432 -0
  811. data/lib/2020-07-01/generated/azure_mgmt_network/virtual_hub_bgp_connections.rb +523 -0
  812. data/lib/2020-07-01/generated/azure_mgmt_network/virtual_hub_ip_configuration.rb +642 -0
  813. data/lib/2020-07-01/generated/azure_mgmt_network/virtual_hub_route_table_v2s.rb +647 -0
  814. data/lib/2020-07-01/generated/azure_mgmt_network/virtual_hubs.rb +1080 -0
  815. data/lib/2020-07-01/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +1612 -0
  816. data/lib/2020-07-01/generated/azure_mgmt_network/virtual_network_gateways.rb +3423 -0
  817. data/lib/2020-07-01/generated/azure_mgmt_network/virtual_network_peerings.rb +634 -0
  818. data/lib/2020-07-01/generated/azure_mgmt_network/virtual_network_taps.rb +909 -0
  819. data/lib/2020-07-01/generated/azure_mgmt_network/virtual_networks.rb +1216 -0
  820. data/lib/2020-07-01/generated/azure_mgmt_network/virtual_router_peerings.rb +626 -0
  821. data/lib/2020-07-01/generated/azure_mgmt_network/virtual_routers.rb +804 -0
  822. data/lib/2020-07-01/generated/azure_mgmt_network/virtual_wans.rb +938 -0
  823. data/lib/2020-07-01/generated/azure_mgmt_network/vpn_connections.rb +1003 -0
  824. data/lib/2020-07-01/generated/azure_mgmt_network/vpn_gateways.rb +1466 -0
  825. data/lib/2020-07-01/generated/azure_mgmt_network/vpn_link_connections.rb +247 -0
  826. data/lib/2020-07-01/generated/azure_mgmt_network/vpn_server_configurations.rb +949 -0
  827. data/lib/2020-07-01/generated/azure_mgmt_network/vpn_server_configurations_associated_with_virtual_wan.rb +170 -0
  828. data/lib/2020-07-01/generated/azure_mgmt_network/vpn_site_link_connections.rb +130 -0
  829. data/lib/2020-07-01/generated/azure_mgmt_network/vpn_site_links.rb +332 -0
  830. data/lib/2020-07-01/generated/azure_mgmt_network/vpn_sites.rb +918 -0
  831. data/lib/2020-07-01/generated/azure_mgmt_network/vpn_sites_configuration.rb +173 -0
  832. data/lib/2020-07-01/generated/azure_mgmt_network/web_application_firewall_policies.rb +758 -0
  833. data/lib/2020-07-01/generated/azure_mgmt_network/web_categories.rb +317 -0
  834. data/lib/azure_mgmt_network.rb +26 -25
  835. data/lib/profiles/latest/modules/network_profile_module.rb +1749 -1661
  836. data/lib/version.rb +1 -1
  837. metadata +803 -3
@@ -0,0 +1,1713 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Network::Mgmt::V2020_07_01
7
+ #
8
+ # NetworkInterfaces
9
+ #
10
+ class NetworkInterfaces
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the NetworkInterfaces class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [NetworkManagementClient] reference to the NetworkManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Deletes the specified network interface.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group.
28
+ # @param network_interface_name [String] The name of the network interface.
29
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
30
+ # will be added to the HTTP request.
31
+ #
32
+ def delete(resource_group_name, network_interface_name, custom_headers:nil)
33
+ response = delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value!
34
+ nil
35
+ end
36
+
37
+ #
38
+ # @param resource_group_name [String] The name of the resource group.
39
+ # @param network_interface_name [String] The name of the network interface.
40
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
41
+ # will be added to the HTTP request.
42
+ #
43
+ # @return [Concurrent::Promise] promise which provides async access to http
44
+ # response.
45
+ #
46
+ def delete_async(resource_group_name, network_interface_name, custom_headers:nil)
47
+ # Send request
48
+ promise = begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers)
49
+
50
+ promise = promise.then do |response|
51
+ # Defining deserialization method.
52
+ deserialize_method = lambda do |parsed_response|
53
+ end
54
+
55
+ # Waiting for response.
56
+ @client.get_long_running_operation_result(response, deserialize_method)
57
+ end
58
+
59
+ promise
60
+ end
61
+
62
+ #
63
+ # Gets information about the specified network interface.
64
+ #
65
+ # @param resource_group_name [String] The name of the resource group.
66
+ # @param network_interface_name [String] The name of the network interface.
67
+ # @param expand [String] Expands referenced resources.
68
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
69
+ # will be added to the HTTP request.
70
+ #
71
+ # @return [NetworkInterface] operation results.
72
+ #
73
+ def get(resource_group_name, network_interface_name, expand:nil, custom_headers:nil)
74
+ response = get_async(resource_group_name, network_interface_name, expand:expand, custom_headers:custom_headers).value!
75
+ response.body unless response.nil?
76
+ end
77
+
78
+ #
79
+ # Gets information about the specified network interface.
80
+ #
81
+ # @param resource_group_name [String] The name of the resource group.
82
+ # @param network_interface_name [String] The name of the network interface.
83
+ # @param expand [String] Expands referenced resources.
84
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
85
+ # will be added to the HTTP request.
86
+ #
87
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
88
+ #
89
+ def get_with_http_info(resource_group_name, network_interface_name, expand:nil, custom_headers:nil)
90
+ get_async(resource_group_name, network_interface_name, expand:expand, custom_headers:custom_headers).value!
91
+ end
92
+
93
+ #
94
+ # Gets information about the specified network interface.
95
+ #
96
+ # @param resource_group_name [String] The name of the resource group.
97
+ # @param network_interface_name [String] The name of the network interface.
98
+ # @param expand [String] Expands referenced resources.
99
+ # @param [Hash{String => String}] A hash of custom headers that will be added
100
+ # to the HTTP request.
101
+ #
102
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
103
+ #
104
+ def get_async(resource_group_name, network_interface_name, expand:nil, custom_headers:nil)
105
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
106
+ fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
107
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
108
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
109
+
110
+
111
+ request_headers = {}
112
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
113
+
114
+ # Set Headers
115
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
116
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
117
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}'
118
+
119
+ request_url = @base_url || @client.base_url
120
+
121
+ options = {
122
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
123
+ path_params: {'resourceGroupName' => resource_group_name,'networkInterfaceName' => network_interface_name,'subscriptionId' => @client.subscription_id},
124
+ query_params: {'api-version' => @client.api_version,'$expand' => expand},
125
+ headers: request_headers.merge(custom_headers || {}),
126
+ base_url: request_url
127
+ }
128
+ promise = @client.make_request_async(:get, path_template, options)
129
+
130
+ promise = promise.then do |result|
131
+ http_response = result.response
132
+ status_code = http_response.status
133
+ response_content = http_response.body
134
+ unless status_code == 200
135
+ error_model = JSON.load(response_content)
136
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
137
+ end
138
+
139
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
140
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
141
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
142
+ # Deserialize Response
143
+ if status_code == 200
144
+ begin
145
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
146
+ result_mapper = Azure::Network::Mgmt::V2020_07_01::Models::NetworkInterface.mapper()
147
+ result.body = @client.deserialize(result_mapper, parsed_response)
148
+ rescue Exception => e
149
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
150
+ end
151
+ end
152
+
153
+ result
154
+ end
155
+
156
+ promise.execute
157
+ end
158
+
159
+ #
160
+ # Creates or updates a network interface.
161
+ #
162
+ # @param resource_group_name [String] The name of the resource group.
163
+ # @param network_interface_name [String] The name of the network interface.
164
+ # @param parameters [NetworkInterface] Parameters supplied to the create or
165
+ # update network interface operation.
166
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
167
+ # will be added to the HTTP request.
168
+ #
169
+ # @return [NetworkInterface] operation results.
170
+ #
171
+ def create_or_update(resource_group_name, network_interface_name, parameters, custom_headers:nil)
172
+ response = create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value!
173
+ response.body unless response.nil?
174
+ end
175
+
176
+ #
177
+ # @param resource_group_name [String] The name of the resource group.
178
+ # @param network_interface_name [String] The name of the network interface.
179
+ # @param parameters [NetworkInterface] Parameters supplied to the create or
180
+ # update network interface operation.
181
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
182
+ # will be added to the HTTP request.
183
+ #
184
+ # @return [Concurrent::Promise] promise which provides async access to http
185
+ # response.
186
+ #
187
+ def create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:nil)
188
+ # Send request
189
+ promise = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers)
190
+
191
+ promise = promise.then do |response|
192
+ # Defining deserialization method.
193
+ deserialize_method = lambda do |parsed_response|
194
+ result_mapper = Azure::Network::Mgmt::V2020_07_01::Models::NetworkInterface.mapper()
195
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
196
+ end
197
+
198
+ # Waiting for response.
199
+ @client.get_long_running_operation_result(response, deserialize_method)
200
+ end
201
+
202
+ promise
203
+ end
204
+
205
+ #
206
+ # Updates a network interface tags.
207
+ #
208
+ # @param resource_group_name [String] The name of the resource group.
209
+ # @param network_interface_name [String] The name of the network interface.
210
+ # @param parameters [TagsObject] Parameters supplied to update network
211
+ # interface tags.
212
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
213
+ # will be added to the HTTP request.
214
+ #
215
+ # @return [NetworkInterface] operation results.
216
+ #
217
+ def update_tags(resource_group_name, network_interface_name, parameters, custom_headers:nil)
218
+ response = update_tags_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value!
219
+ response.body unless response.nil?
220
+ end
221
+
222
+ #
223
+ # Updates a network interface tags.
224
+ #
225
+ # @param resource_group_name [String] The name of the resource group.
226
+ # @param network_interface_name [String] The name of the network interface.
227
+ # @param parameters [TagsObject] Parameters supplied to update network
228
+ # interface tags.
229
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
230
+ # will be added to the HTTP request.
231
+ #
232
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
233
+ #
234
+ def update_tags_with_http_info(resource_group_name, network_interface_name, parameters, custom_headers:nil)
235
+ update_tags_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value!
236
+ end
237
+
238
+ #
239
+ # Updates a network interface tags.
240
+ #
241
+ # @param resource_group_name [String] The name of the resource group.
242
+ # @param network_interface_name [String] The name of the network interface.
243
+ # @param parameters [TagsObject] Parameters supplied to update network
244
+ # interface tags.
245
+ # @param [Hash{String => String}] A hash of custom headers that will be added
246
+ # to the HTTP request.
247
+ #
248
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
249
+ #
250
+ def update_tags_async(resource_group_name, network_interface_name, parameters, custom_headers:nil)
251
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
252
+ fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
253
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
254
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
255
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
256
+
257
+
258
+ request_headers = {}
259
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
260
+
261
+ # Set Headers
262
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
263
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
264
+
265
+ # Serialize Request
266
+ request_mapper = Azure::Network::Mgmt::V2020_07_01::Models::TagsObject.mapper()
267
+ request_content = @client.serialize(request_mapper, parameters)
268
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
269
+
270
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}'
271
+
272
+ request_url = @base_url || @client.base_url
273
+
274
+ options = {
275
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
276
+ path_params: {'resourceGroupName' => resource_group_name,'networkInterfaceName' => network_interface_name,'subscriptionId' => @client.subscription_id},
277
+ query_params: {'api-version' => @client.api_version},
278
+ body: request_content,
279
+ headers: request_headers.merge(custom_headers || {}),
280
+ base_url: request_url
281
+ }
282
+ promise = @client.make_request_async(:patch, path_template, options)
283
+
284
+ promise = promise.then do |result|
285
+ http_response = result.response
286
+ status_code = http_response.status
287
+ response_content = http_response.body
288
+ unless status_code == 200
289
+ error_model = JSON.load(response_content)
290
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
291
+ end
292
+
293
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
294
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
295
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
296
+ # Deserialize Response
297
+ if status_code == 200
298
+ begin
299
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
300
+ result_mapper = Azure::Network::Mgmt::V2020_07_01::Models::NetworkInterface.mapper()
301
+ result.body = @client.deserialize(result_mapper, parsed_response)
302
+ rescue Exception => e
303
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
304
+ end
305
+ end
306
+
307
+ result
308
+ end
309
+
310
+ promise.execute
311
+ end
312
+
313
+ #
314
+ # Gets all network interfaces in a subscription.
315
+ #
316
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
317
+ # will be added to the HTTP request.
318
+ #
319
+ # @return [Array<NetworkInterface>] operation results.
320
+ #
321
+ def list_all(custom_headers:nil)
322
+ first_page = list_all_as_lazy(custom_headers:custom_headers)
323
+ first_page.get_all_items
324
+ end
325
+
326
+ #
327
+ # Gets all network interfaces in a subscription.
328
+ #
329
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
330
+ # will be added to the HTTP request.
331
+ #
332
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
333
+ #
334
+ def list_all_with_http_info(custom_headers:nil)
335
+ list_all_async(custom_headers:custom_headers).value!
336
+ end
337
+
338
+ #
339
+ # Gets all network interfaces in a subscription.
340
+ #
341
+ # @param [Hash{String => String}] A hash of custom headers that will be added
342
+ # to the HTTP request.
343
+ #
344
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
345
+ #
346
+ def list_all_async(custom_headers:nil)
347
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
348
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
349
+
350
+
351
+ request_headers = {}
352
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
353
+
354
+ # Set Headers
355
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
356
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
357
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/networkInterfaces'
358
+
359
+ request_url = @base_url || @client.base_url
360
+
361
+ options = {
362
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
363
+ path_params: {'subscriptionId' => @client.subscription_id},
364
+ query_params: {'api-version' => @client.api_version},
365
+ headers: request_headers.merge(custom_headers || {}),
366
+ base_url: request_url
367
+ }
368
+ promise = @client.make_request_async(:get, path_template, options)
369
+
370
+ promise = promise.then do |result|
371
+ http_response = result.response
372
+ status_code = http_response.status
373
+ response_content = http_response.body
374
+ unless status_code == 200
375
+ error_model = JSON.load(response_content)
376
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
377
+ end
378
+
379
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
380
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
381
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
382
+ # Deserialize Response
383
+ if status_code == 200
384
+ begin
385
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
386
+ result_mapper = Azure::Network::Mgmt::V2020_07_01::Models::NetworkInterfaceListResult.mapper()
387
+ result.body = @client.deserialize(result_mapper, parsed_response)
388
+ rescue Exception => e
389
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
390
+ end
391
+ end
392
+
393
+ result
394
+ end
395
+
396
+ promise.execute
397
+ end
398
+
399
+ #
400
+ # Gets all network interfaces in a resource group.
401
+ #
402
+ # @param resource_group_name [String] The name of the resource group.
403
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
404
+ # will be added to the HTTP request.
405
+ #
406
+ # @return [Array<NetworkInterface>] operation results.
407
+ #
408
+ def list(resource_group_name, custom_headers:nil)
409
+ first_page = list_as_lazy(resource_group_name, custom_headers:custom_headers)
410
+ first_page.get_all_items
411
+ end
412
+
413
+ #
414
+ # Gets all network interfaces in a resource group.
415
+ #
416
+ # @param resource_group_name [String] The name of the resource group.
417
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
418
+ # will be added to the HTTP request.
419
+ #
420
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
421
+ #
422
+ def list_with_http_info(resource_group_name, custom_headers:nil)
423
+ list_async(resource_group_name, custom_headers:custom_headers).value!
424
+ end
425
+
426
+ #
427
+ # Gets all network interfaces in a resource group.
428
+ #
429
+ # @param resource_group_name [String] The name of the resource group.
430
+ # @param [Hash{String => String}] A hash of custom headers that will be added
431
+ # to the HTTP request.
432
+ #
433
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
434
+ #
435
+ def list_async(resource_group_name, custom_headers:nil)
436
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
437
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
438
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
439
+
440
+
441
+ request_headers = {}
442
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
443
+
444
+ # Set Headers
445
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
446
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
447
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces'
448
+
449
+ request_url = @base_url || @client.base_url
450
+
451
+ options = {
452
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
453
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
454
+ query_params: {'api-version' => @client.api_version},
455
+ headers: request_headers.merge(custom_headers || {}),
456
+ base_url: request_url
457
+ }
458
+ promise = @client.make_request_async(:get, path_template, options)
459
+
460
+ promise = promise.then do |result|
461
+ http_response = result.response
462
+ status_code = http_response.status
463
+ response_content = http_response.body
464
+ unless status_code == 200
465
+ error_model = JSON.load(response_content)
466
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
467
+ end
468
+
469
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
470
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
471
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
472
+ # Deserialize Response
473
+ if status_code == 200
474
+ begin
475
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
476
+ result_mapper = Azure::Network::Mgmt::V2020_07_01::Models::NetworkInterfaceListResult.mapper()
477
+ result.body = @client.deserialize(result_mapper, parsed_response)
478
+ rescue Exception => e
479
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
480
+ end
481
+ end
482
+
483
+ result
484
+ end
485
+
486
+ promise.execute
487
+ end
488
+
489
+ #
490
+ # Gets all route tables applied to a network interface.
491
+ #
492
+ # @param resource_group_name [String] The name of the resource group.
493
+ # @param network_interface_name [String] The name of the network interface.
494
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
495
+ # will be added to the HTTP request.
496
+ #
497
+ # @return [EffectiveRouteListResult] operation results.
498
+ #
499
+ def get_effective_route_table(resource_group_name, network_interface_name, custom_headers:nil)
500
+ response = get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value!
501
+ response.body unless response.nil?
502
+ end
503
+
504
+ #
505
+ # @param resource_group_name [String] The name of the resource group.
506
+ # @param network_interface_name [String] The name of the network interface.
507
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
508
+ # will be added to the HTTP request.
509
+ #
510
+ # @return [Concurrent::Promise] promise which provides async access to http
511
+ # response.
512
+ #
513
+ def get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:nil)
514
+ # Send request
515
+ promise = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:custom_headers)
516
+
517
+ promise = promise.then do |response|
518
+ # Defining deserialization method.
519
+ deserialize_method = lambda do |parsed_response|
520
+ result_mapper = Azure::Network::Mgmt::V2020_07_01::Models::EffectiveRouteListResult.mapper()
521
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
522
+ end
523
+
524
+ # Waiting for response.
525
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
526
+ end
527
+
528
+ promise
529
+ end
530
+
531
+ #
532
+ # Gets all network security groups applied to a network interface.
533
+ #
534
+ # @param resource_group_name [String] The name of the resource group.
535
+ # @param network_interface_name [String] The name of the network interface.
536
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
537
+ # will be added to the HTTP request.
538
+ #
539
+ # @return [EffectiveNetworkSecurityGroupListResult] operation results.
540
+ #
541
+ def list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers:nil)
542
+ response = list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value!
543
+ response.body unless response.nil?
544
+ end
545
+
546
+ #
547
+ # @param resource_group_name [String] The name of the resource group.
548
+ # @param network_interface_name [String] The name of the network interface.
549
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
550
+ # will be added to the HTTP request.
551
+ #
552
+ # @return [Concurrent::Promise] promise which provides async access to http
553
+ # response.
554
+ #
555
+ def list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:nil)
556
+ # Send request
557
+ promise = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:custom_headers)
558
+
559
+ promise = promise.then do |response|
560
+ # Defining deserialization method.
561
+ deserialize_method = lambda do |parsed_response|
562
+ result_mapper = Azure::Network::Mgmt::V2020_07_01::Models::EffectiveNetworkSecurityGroupListResult.mapper()
563
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
564
+ end
565
+
566
+ # Waiting for response.
567
+ @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::LOCATION)
568
+ end
569
+
570
+ promise
571
+ end
572
+
573
+ #
574
+ # Gets information about all network interfaces in a role instance in a cloud
575
+ # service
576
+ #
577
+ # @param resource_group_name [String] The name of the resource group.
578
+ # @param cloud_service_name [String] The name of the cloud service.
579
+ # @param role_instance_name [String] The name of role instance.
580
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
581
+ # will be added to the HTTP request.
582
+ #
583
+ # @return [Array<NetworkInterface>] operation results.
584
+ #
585
+ def list_cloud_service_role_instance_network_interfaces(resource_group_name, cloud_service_name, role_instance_name, custom_headers:nil)
586
+ first_page = list_cloud_service_role_instance_network_interfaces_as_lazy(resource_group_name, cloud_service_name, role_instance_name, custom_headers:custom_headers)
587
+ first_page.get_all_items
588
+ end
589
+
590
+ #
591
+ # Gets information about all network interfaces in a role instance in a cloud
592
+ # service
593
+ #
594
+ # @param resource_group_name [String] The name of the resource group.
595
+ # @param cloud_service_name [String] The name of the cloud service.
596
+ # @param role_instance_name [String] The name of role instance.
597
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
598
+ # will be added to the HTTP request.
599
+ #
600
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
601
+ #
602
+ def list_cloud_service_role_instance_network_interfaces_with_http_info(resource_group_name, cloud_service_name, role_instance_name, custom_headers:nil)
603
+ list_cloud_service_role_instance_network_interfaces_async(resource_group_name, cloud_service_name, role_instance_name, custom_headers:custom_headers).value!
604
+ end
605
+
606
+ #
607
+ # Gets information about all network interfaces in a role instance in a cloud
608
+ # service
609
+ #
610
+ # @param resource_group_name [String] The name of the resource group.
611
+ # @param cloud_service_name [String] The name of the cloud service.
612
+ # @param role_instance_name [String] The name of role instance.
613
+ # @param [Hash{String => String}] A hash of custom headers that will be added
614
+ # to the HTTP request.
615
+ #
616
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
617
+ #
618
+ def list_cloud_service_role_instance_network_interfaces_async(resource_group_name, cloud_service_name, role_instance_name, custom_headers:nil)
619
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
620
+ fail ArgumentError, 'cloud_service_name is nil' if cloud_service_name.nil?
621
+ fail ArgumentError, 'role_instance_name is nil' if role_instance_name.nil?
622
+ @client.api_version = '2017-03-30'
623
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
624
+
625
+
626
+ request_headers = {}
627
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
628
+
629
+ # Set Headers
630
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
631
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
632
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/networkInterfaces'
633
+
634
+ request_url = @base_url || @client.base_url
635
+
636
+ options = {
637
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
638
+ path_params: {'resourceGroupName' => resource_group_name,'cloudServiceName' => cloud_service_name,'roleInstanceName' => role_instance_name,'subscriptionId' => @client.subscription_id},
639
+ query_params: {'api-version' => @client.api_version},
640
+ headers: request_headers.merge(custom_headers || {}),
641
+ base_url: request_url
642
+ }
643
+ promise = @client.make_request_async(:get, path_template, options)
644
+
645
+ promise = promise.then do |result|
646
+ http_response = result.response
647
+ status_code = http_response.status
648
+ response_content = http_response.body
649
+ unless status_code == 200
650
+ error_model = JSON.load(response_content)
651
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
652
+ end
653
+
654
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
655
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
656
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
657
+ # Deserialize Response
658
+ if status_code == 200
659
+ begin
660
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
661
+ result_mapper = Azure::Network::Mgmt::V2020_07_01::Models::NetworkInterfaceListResult.mapper()
662
+ result.body = @client.deserialize(result_mapper, parsed_response)
663
+ rescue Exception => e
664
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
665
+ end
666
+ end
667
+
668
+ result
669
+ end
670
+
671
+ promise.execute
672
+ end
673
+
674
+ #
675
+ # Gets all network interfaces in a cloud service.
676
+ #
677
+ # @param resource_group_name [String] The name of the resource group.
678
+ # @param cloud_service_name [String] The name of the cloud service.
679
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
680
+ # will be added to the HTTP request.
681
+ #
682
+ # @return [Array<NetworkInterface>] operation results.
683
+ #
684
+ def list_cloud_service_network_interfaces(resource_group_name, cloud_service_name, custom_headers:nil)
685
+ first_page = list_cloud_service_network_interfaces_as_lazy(resource_group_name, cloud_service_name, custom_headers:custom_headers)
686
+ first_page.get_all_items
687
+ end
688
+
689
+ #
690
+ # Gets all network interfaces in a cloud service.
691
+ #
692
+ # @param resource_group_name [String] The name of the resource group.
693
+ # @param cloud_service_name [String] The name of the cloud service.
694
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
695
+ # will be added to the HTTP request.
696
+ #
697
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
698
+ #
699
+ def list_cloud_service_network_interfaces_with_http_info(resource_group_name, cloud_service_name, custom_headers:nil)
700
+ list_cloud_service_network_interfaces_async(resource_group_name, cloud_service_name, custom_headers:custom_headers).value!
701
+ end
702
+
703
+ #
704
+ # Gets all network interfaces in a cloud service.
705
+ #
706
+ # @param resource_group_name [String] The name of the resource group.
707
+ # @param cloud_service_name [String] The name of the cloud service.
708
+ # @param [Hash{String => String}] A hash of custom headers that will be added
709
+ # to the HTTP request.
710
+ #
711
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
712
+ #
713
+ def list_cloud_service_network_interfaces_async(resource_group_name, cloud_service_name, custom_headers:nil)
714
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
715
+ fail ArgumentError, 'cloud_service_name is nil' if cloud_service_name.nil?
716
+ @client.api_version = '2017-03-30'
717
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
718
+
719
+
720
+ request_headers = {}
721
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
722
+
723
+ # Set Headers
724
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
725
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
726
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/networkInterfaces'
727
+
728
+ request_url = @base_url || @client.base_url
729
+
730
+ options = {
731
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
732
+ path_params: {'resourceGroupName' => resource_group_name,'cloudServiceName' => cloud_service_name,'subscriptionId' => @client.subscription_id},
733
+ query_params: {'api-version' => @client.api_version},
734
+ headers: request_headers.merge(custom_headers || {}),
735
+ base_url: request_url
736
+ }
737
+ promise = @client.make_request_async(:get, path_template, options)
738
+
739
+ promise = promise.then do |result|
740
+ http_response = result.response
741
+ status_code = http_response.status
742
+ response_content = http_response.body
743
+ unless status_code == 200
744
+ error_model = JSON.load(response_content)
745
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
746
+ end
747
+
748
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
749
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
750
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
751
+ # Deserialize Response
752
+ if status_code == 200
753
+ begin
754
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
755
+ result_mapper = Azure::Network::Mgmt::V2020_07_01::Models::NetworkInterfaceListResult.mapper()
756
+ result.body = @client.deserialize(result_mapper, parsed_response)
757
+ rescue Exception => e
758
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
759
+ end
760
+ end
761
+
762
+ result
763
+ end
764
+
765
+ promise.execute
766
+ end
767
+
768
+ #
769
+ # Get the specified network interface in a cloud service.
770
+ #
771
+ # @param resource_group_name [String] The name of the resource group.
772
+ # @param cloud_service_name [String] The name of the cloud service.
773
+ # @param role_instance_name [String] The name of role instance
774
+ # @param network_interface_name [String] The name of the network interface.
775
+ # @param expand [String] Expands referenced resources.
776
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
777
+ # will be added to the HTTP request.
778
+ #
779
+ # @return [NetworkInterface] operation results.
780
+ #
781
+ def get_cloud_service_network_interface(resource_group_name, cloud_service_name, role_instance_name, network_interface_name, expand:nil, custom_headers:nil)
782
+ response = get_cloud_service_network_interface_async(resource_group_name, cloud_service_name, role_instance_name, network_interface_name, expand:expand, custom_headers:custom_headers).value!
783
+ response.body unless response.nil?
784
+ end
785
+
786
+ #
787
+ # Get the specified network interface in a cloud service.
788
+ #
789
+ # @param resource_group_name [String] The name of the resource group.
790
+ # @param cloud_service_name [String] The name of the cloud service.
791
+ # @param role_instance_name [String] The name of role instance
792
+ # @param network_interface_name [String] The name of the network interface.
793
+ # @param expand [String] Expands referenced resources.
794
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
795
+ # will be added to the HTTP request.
796
+ #
797
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
798
+ #
799
+ def get_cloud_service_network_interface_with_http_info(resource_group_name, cloud_service_name, role_instance_name, network_interface_name, expand:nil, custom_headers:nil)
800
+ get_cloud_service_network_interface_async(resource_group_name, cloud_service_name, role_instance_name, network_interface_name, expand:expand, custom_headers:custom_headers).value!
801
+ end
802
+
803
+ #
804
+ # Get the specified network interface in a cloud service.
805
+ #
806
+ # @param resource_group_name [String] The name of the resource group.
807
+ # @param cloud_service_name [String] The name of the cloud service.
808
+ # @param role_instance_name [String] The name of role instance
809
+ # @param network_interface_name [String] The name of the network interface.
810
+ # @param expand [String] Expands referenced resources.
811
+ # @param [Hash{String => String}] A hash of custom headers that will be added
812
+ # to the HTTP request.
813
+ #
814
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
815
+ #
816
+ def get_cloud_service_network_interface_async(resource_group_name, cloud_service_name, role_instance_name, network_interface_name, expand:nil, custom_headers:nil)
817
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
818
+ fail ArgumentError, 'cloud_service_name is nil' if cloud_service_name.nil?
819
+ fail ArgumentError, 'role_instance_name is nil' if role_instance_name.nil?
820
+ fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
821
+ @client.api_version = '2017-03-30'
822
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
823
+
824
+
825
+ request_headers = {}
826
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
827
+
828
+ # Set Headers
829
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
830
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
831
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/networkInterfaces/{networkInterfaceName}'
832
+
833
+ request_url = @base_url || @client.base_url
834
+
835
+ options = {
836
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
837
+ path_params: {'resourceGroupName' => resource_group_name,'cloudServiceName' => cloud_service_name,'roleInstanceName' => role_instance_name,'networkInterfaceName' => network_interface_name,'subscriptionId' => @client.subscription_id},
838
+ query_params: {'api-version' => @client.api_version,'$expand' => expand},
839
+ headers: request_headers.merge(custom_headers || {}),
840
+ base_url: request_url
841
+ }
842
+ promise = @client.make_request_async(:get, path_template, options)
843
+
844
+ promise = promise.then do |result|
845
+ http_response = result.response
846
+ status_code = http_response.status
847
+ response_content = http_response.body
848
+ unless status_code == 200
849
+ error_model = JSON.load(response_content)
850
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
851
+ end
852
+
853
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
854
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
855
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
856
+ # Deserialize Response
857
+ if status_code == 200
858
+ begin
859
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
860
+ result_mapper = Azure::Network::Mgmt::V2020_07_01::Models::NetworkInterface.mapper()
861
+ result.body = @client.deserialize(result_mapper, parsed_response)
862
+ rescue Exception => e
863
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
864
+ end
865
+ end
866
+
867
+ result
868
+ end
869
+
870
+ promise.execute
871
+ end
872
+
873
+ #
874
+ # Deletes the specified network interface.
875
+ #
876
+ # @param resource_group_name [String] The name of the resource group.
877
+ # @param network_interface_name [String] The name of the network interface.
878
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
879
+ # will be added to the HTTP request.
880
+ #
881
+ #
882
+ def begin_delete(resource_group_name, network_interface_name, custom_headers:nil)
883
+ response = begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value!
884
+ nil
885
+ end
886
+
887
+ #
888
+ # Deletes the specified network interface.
889
+ #
890
+ # @param resource_group_name [String] The name of the resource group.
891
+ # @param network_interface_name [String] The name of the network interface.
892
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
893
+ # will be added to the HTTP request.
894
+ #
895
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
896
+ #
897
+ def begin_delete_with_http_info(resource_group_name, network_interface_name, custom_headers:nil)
898
+ begin_delete_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value!
899
+ end
900
+
901
+ #
902
+ # Deletes the specified network interface.
903
+ #
904
+ # @param resource_group_name [String] The name of the resource group.
905
+ # @param network_interface_name [String] The name of the network interface.
906
+ # @param [Hash{String => String}] A hash of custom headers that will be added
907
+ # to the HTTP request.
908
+ #
909
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
910
+ #
911
+ def begin_delete_async(resource_group_name, network_interface_name, custom_headers:nil)
912
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
913
+ fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
914
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
915
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
916
+
917
+
918
+ request_headers = {}
919
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
920
+
921
+ # Set Headers
922
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
923
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
924
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}'
925
+
926
+ request_url = @base_url || @client.base_url
927
+
928
+ options = {
929
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
930
+ path_params: {'resourceGroupName' => resource_group_name,'networkInterfaceName' => network_interface_name,'subscriptionId' => @client.subscription_id},
931
+ query_params: {'api-version' => @client.api_version},
932
+ headers: request_headers.merge(custom_headers || {}),
933
+ base_url: request_url
934
+ }
935
+ promise = @client.make_request_async(:delete, path_template, options)
936
+
937
+ promise = promise.then do |result|
938
+ http_response = result.response
939
+ status_code = http_response.status
940
+ response_content = http_response.body
941
+ unless status_code == 204 || status_code == 202 || status_code == 200
942
+ error_model = JSON.load(response_content)
943
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
944
+ end
945
+
946
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
947
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
948
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
949
+
950
+ result
951
+ end
952
+
953
+ promise.execute
954
+ end
955
+
956
+ #
957
+ # Creates or updates a network interface.
958
+ #
959
+ # @param resource_group_name [String] The name of the resource group.
960
+ # @param network_interface_name [String] The name of the network interface.
961
+ # @param parameters [NetworkInterface] Parameters supplied to the create or
962
+ # update network interface operation.
963
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
964
+ # will be added to the HTTP request.
965
+ #
966
+ # @return [NetworkInterface] operation results.
967
+ #
968
+ def begin_create_or_update(resource_group_name, network_interface_name, parameters, custom_headers:nil)
969
+ response = begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value!
970
+ response.body unless response.nil?
971
+ end
972
+
973
+ #
974
+ # Creates or updates a network interface.
975
+ #
976
+ # @param resource_group_name [String] The name of the resource group.
977
+ # @param network_interface_name [String] The name of the network interface.
978
+ # @param parameters [NetworkInterface] Parameters supplied to the create or
979
+ # update network interface operation.
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 begin_create_or_update_with_http_info(resource_group_name, network_interface_name, parameters, custom_headers:nil)
986
+ begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:custom_headers).value!
987
+ end
988
+
989
+ #
990
+ # Creates or updates a network interface.
991
+ #
992
+ # @param resource_group_name [String] The name of the resource group.
993
+ # @param network_interface_name [String] The name of the network interface.
994
+ # @param parameters [NetworkInterface] Parameters supplied to the create or
995
+ # update network interface operation.
996
+ # @param [Hash{String => String}] A hash of custom headers that will be added
997
+ # to the HTTP request.
998
+ #
999
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1000
+ #
1001
+ def begin_create_or_update_async(resource_group_name, network_interface_name, parameters, custom_headers:nil)
1002
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1003
+ fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
1004
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
1005
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1006
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1007
+
1008
+
1009
+ request_headers = {}
1010
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1011
+
1012
+ # Set Headers
1013
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1014
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1015
+
1016
+ # Serialize Request
1017
+ request_mapper = Azure::Network::Mgmt::V2020_07_01::Models::NetworkInterface.mapper()
1018
+ request_content = @client.serialize(request_mapper, parameters)
1019
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
1020
+
1021
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}'
1022
+
1023
+ request_url = @base_url || @client.base_url
1024
+
1025
+ options = {
1026
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1027
+ path_params: {'resourceGroupName' => resource_group_name,'networkInterfaceName' => network_interface_name,'subscriptionId' => @client.subscription_id},
1028
+ query_params: {'api-version' => @client.api_version},
1029
+ body: request_content,
1030
+ headers: request_headers.merge(custom_headers || {}),
1031
+ base_url: request_url
1032
+ }
1033
+ promise = @client.make_request_async(:put, path_template, options)
1034
+
1035
+ promise = promise.then do |result|
1036
+ http_response = result.response
1037
+ status_code = http_response.status
1038
+ response_content = http_response.body
1039
+ unless status_code == 201 || status_code == 200
1040
+ error_model = JSON.load(response_content)
1041
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1042
+ end
1043
+
1044
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1045
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1046
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1047
+ # Deserialize Response
1048
+ if status_code == 201
1049
+ begin
1050
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1051
+ result_mapper = Azure::Network::Mgmt::V2020_07_01::Models::NetworkInterface.mapper()
1052
+ result.body = @client.deserialize(result_mapper, parsed_response)
1053
+ rescue Exception => e
1054
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1055
+ end
1056
+ end
1057
+ # Deserialize Response
1058
+ if status_code == 200
1059
+ begin
1060
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1061
+ result_mapper = Azure::Network::Mgmt::V2020_07_01::Models::NetworkInterface.mapper()
1062
+ result.body = @client.deserialize(result_mapper, parsed_response)
1063
+ rescue Exception => e
1064
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1065
+ end
1066
+ end
1067
+
1068
+ result
1069
+ end
1070
+
1071
+ promise.execute
1072
+ end
1073
+
1074
+ #
1075
+ # Gets all route tables applied to a network interface.
1076
+ #
1077
+ # @param resource_group_name [String] The name of the resource group.
1078
+ # @param network_interface_name [String] The name of the network interface.
1079
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1080
+ # will be added to the HTTP request.
1081
+ #
1082
+ # @return [EffectiveRouteListResult] operation results.
1083
+ #
1084
+ def begin_get_effective_route_table(resource_group_name, network_interface_name, custom_headers:nil)
1085
+ response = begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value!
1086
+ response.body unless response.nil?
1087
+ end
1088
+
1089
+ #
1090
+ # Gets all route tables applied to a network interface.
1091
+ #
1092
+ # @param resource_group_name [String] The name of the resource group.
1093
+ # @param network_interface_name [String] The name of the network interface.
1094
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1095
+ # will be added to the HTTP request.
1096
+ #
1097
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1098
+ #
1099
+ def begin_get_effective_route_table_with_http_info(resource_group_name, network_interface_name, custom_headers:nil)
1100
+ begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value!
1101
+ end
1102
+
1103
+ #
1104
+ # Gets all route tables applied to a network interface.
1105
+ #
1106
+ # @param resource_group_name [String] The name of the resource group.
1107
+ # @param network_interface_name [String] The name of the network interface.
1108
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1109
+ # to the HTTP request.
1110
+ #
1111
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1112
+ #
1113
+ def begin_get_effective_route_table_async(resource_group_name, network_interface_name, custom_headers:nil)
1114
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1115
+ fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
1116
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1117
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1118
+
1119
+
1120
+ request_headers = {}
1121
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1122
+
1123
+ # Set Headers
1124
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1125
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1126
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveRouteTable'
1127
+
1128
+ request_url = @base_url || @client.base_url
1129
+
1130
+ options = {
1131
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1132
+ path_params: {'resourceGroupName' => resource_group_name,'networkInterfaceName' => network_interface_name,'subscriptionId' => @client.subscription_id},
1133
+ query_params: {'api-version' => @client.api_version},
1134
+ headers: request_headers.merge(custom_headers || {}),
1135
+ base_url: request_url
1136
+ }
1137
+ promise = @client.make_request_async(:post, path_template, options)
1138
+
1139
+ promise = promise.then do |result|
1140
+ http_response = result.response
1141
+ status_code = http_response.status
1142
+ response_content = http_response.body
1143
+ unless status_code == 200 || status_code == 202
1144
+ error_model = JSON.load(response_content)
1145
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1146
+ end
1147
+
1148
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1149
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1150
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1151
+ # Deserialize Response
1152
+ if status_code == 200
1153
+ begin
1154
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1155
+ result_mapper = Azure::Network::Mgmt::V2020_07_01::Models::EffectiveRouteListResult.mapper()
1156
+ result.body = @client.deserialize(result_mapper, parsed_response)
1157
+ rescue Exception => e
1158
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1159
+ end
1160
+ end
1161
+
1162
+ result
1163
+ end
1164
+
1165
+ promise.execute
1166
+ end
1167
+
1168
+ #
1169
+ # Gets all network security groups applied to a network interface.
1170
+ #
1171
+ # @param resource_group_name [String] The name of the resource group.
1172
+ # @param network_interface_name [String] The name of the network interface.
1173
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1174
+ # will be added to the HTTP request.
1175
+ #
1176
+ # @return [EffectiveNetworkSecurityGroupListResult] operation results.
1177
+ #
1178
+ def begin_list_effective_network_security_groups(resource_group_name, network_interface_name, custom_headers:nil)
1179
+ response = begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value!
1180
+ response.body unless response.nil?
1181
+ end
1182
+
1183
+ #
1184
+ # Gets all network security groups applied to a network interface.
1185
+ #
1186
+ # @param resource_group_name [String] The name of the resource group.
1187
+ # @param network_interface_name [String] The name of the network interface.
1188
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1189
+ # will be added to the HTTP request.
1190
+ #
1191
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1192
+ #
1193
+ def begin_list_effective_network_security_groups_with_http_info(resource_group_name, network_interface_name, custom_headers:nil)
1194
+ begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:custom_headers).value!
1195
+ end
1196
+
1197
+ #
1198
+ # Gets all network security groups applied to a network interface.
1199
+ #
1200
+ # @param resource_group_name [String] The name of the resource group.
1201
+ # @param network_interface_name [String] The name of the network interface.
1202
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1203
+ # to the HTTP request.
1204
+ #
1205
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1206
+ #
1207
+ def begin_list_effective_network_security_groups_async(resource_group_name, network_interface_name, custom_headers:nil)
1208
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
1209
+ fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
1210
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
1211
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
1212
+
1213
+
1214
+ request_headers = {}
1215
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1216
+
1217
+ # Set Headers
1218
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1219
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1220
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveNetworkSecurityGroups'
1221
+
1222
+ request_url = @base_url || @client.base_url
1223
+
1224
+ options = {
1225
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1226
+ path_params: {'resourceGroupName' => resource_group_name,'networkInterfaceName' => network_interface_name,'subscriptionId' => @client.subscription_id},
1227
+ query_params: {'api-version' => @client.api_version},
1228
+ headers: request_headers.merge(custom_headers || {}),
1229
+ base_url: request_url
1230
+ }
1231
+ promise = @client.make_request_async(:post, path_template, options)
1232
+
1233
+ promise = promise.then do |result|
1234
+ http_response = result.response
1235
+ status_code = http_response.status
1236
+ response_content = http_response.body
1237
+ unless status_code == 200 || status_code == 202
1238
+ error_model = JSON.load(response_content)
1239
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1240
+ end
1241
+
1242
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1243
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1244
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1245
+ # Deserialize Response
1246
+ if status_code == 200
1247
+ begin
1248
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1249
+ result_mapper = Azure::Network::Mgmt::V2020_07_01::Models::EffectiveNetworkSecurityGroupListResult.mapper()
1250
+ result.body = @client.deserialize(result_mapper, parsed_response)
1251
+ rescue Exception => e
1252
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1253
+ end
1254
+ end
1255
+
1256
+ result
1257
+ end
1258
+
1259
+ promise.execute
1260
+ end
1261
+
1262
+ #
1263
+ # Gets all network interfaces in a subscription.
1264
+ #
1265
+ # @param next_page_link [String] The NextLink from the previous successful call
1266
+ # to List operation.
1267
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1268
+ # will be added to the HTTP request.
1269
+ #
1270
+ # @return [NetworkInterfaceListResult] operation results.
1271
+ #
1272
+ def list_all_next(next_page_link, custom_headers:nil)
1273
+ response = list_all_next_async(next_page_link, custom_headers:custom_headers).value!
1274
+ response.body unless response.nil?
1275
+ end
1276
+
1277
+ #
1278
+ # Gets all network interfaces in a subscription.
1279
+ #
1280
+ # @param next_page_link [String] The NextLink from the previous successful call
1281
+ # to List operation.
1282
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1283
+ # will be added to the HTTP request.
1284
+ #
1285
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1286
+ #
1287
+ def list_all_next_with_http_info(next_page_link, custom_headers:nil)
1288
+ list_all_next_async(next_page_link, custom_headers:custom_headers).value!
1289
+ end
1290
+
1291
+ #
1292
+ # Gets all network interfaces in a subscription.
1293
+ #
1294
+ # @param next_page_link [String] The NextLink from the previous successful call
1295
+ # to List operation.
1296
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1297
+ # to the HTTP request.
1298
+ #
1299
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1300
+ #
1301
+ def list_all_next_async(next_page_link, custom_headers:nil)
1302
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1303
+
1304
+
1305
+ request_headers = {}
1306
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1307
+
1308
+ # Set Headers
1309
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1310
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1311
+ path_template = '{nextLink}'
1312
+
1313
+ request_url = @base_url || @client.base_url
1314
+
1315
+ options = {
1316
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1317
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1318
+ headers: request_headers.merge(custom_headers || {}),
1319
+ base_url: request_url
1320
+ }
1321
+ promise = @client.make_request_async(:get, path_template, options)
1322
+
1323
+ promise = promise.then do |result|
1324
+ http_response = result.response
1325
+ status_code = http_response.status
1326
+ response_content = http_response.body
1327
+ unless status_code == 200
1328
+ error_model = JSON.load(response_content)
1329
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1330
+ end
1331
+
1332
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1333
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1334
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1335
+ # Deserialize Response
1336
+ if status_code == 200
1337
+ begin
1338
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1339
+ result_mapper = Azure::Network::Mgmt::V2020_07_01::Models::NetworkInterfaceListResult.mapper()
1340
+ result.body = @client.deserialize(result_mapper, parsed_response)
1341
+ rescue Exception => e
1342
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1343
+ end
1344
+ end
1345
+
1346
+ result
1347
+ end
1348
+
1349
+ promise.execute
1350
+ end
1351
+
1352
+ #
1353
+ # Gets all network interfaces in a resource group.
1354
+ #
1355
+ # @param next_page_link [String] The NextLink from the previous successful call
1356
+ # to List operation.
1357
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1358
+ # will be added to the HTTP request.
1359
+ #
1360
+ # @return [NetworkInterfaceListResult] operation results.
1361
+ #
1362
+ def list_next(next_page_link, custom_headers:nil)
1363
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
1364
+ response.body unless response.nil?
1365
+ end
1366
+
1367
+ #
1368
+ # Gets all network interfaces in a resource group.
1369
+ #
1370
+ # @param next_page_link [String] The NextLink from the previous successful call
1371
+ # to List operation.
1372
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1373
+ # will be added to the HTTP request.
1374
+ #
1375
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1376
+ #
1377
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
1378
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
1379
+ end
1380
+
1381
+ #
1382
+ # Gets all network interfaces in a resource group.
1383
+ #
1384
+ # @param next_page_link [String] The NextLink from the previous successful call
1385
+ # to List operation.
1386
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1387
+ # to the HTTP request.
1388
+ #
1389
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1390
+ #
1391
+ def list_next_async(next_page_link, custom_headers:nil)
1392
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1393
+
1394
+
1395
+ request_headers = {}
1396
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1397
+
1398
+ # Set Headers
1399
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1400
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1401
+ path_template = '{nextLink}'
1402
+
1403
+ request_url = @base_url || @client.base_url
1404
+
1405
+ options = {
1406
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1407
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1408
+ headers: request_headers.merge(custom_headers || {}),
1409
+ base_url: request_url
1410
+ }
1411
+ promise = @client.make_request_async(:get, path_template, options)
1412
+
1413
+ promise = promise.then do |result|
1414
+ http_response = result.response
1415
+ status_code = http_response.status
1416
+ response_content = http_response.body
1417
+ unless status_code == 200
1418
+ error_model = JSON.load(response_content)
1419
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1420
+ end
1421
+
1422
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1423
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1424
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1425
+ # Deserialize Response
1426
+ if status_code == 200
1427
+ begin
1428
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1429
+ result_mapper = Azure::Network::Mgmt::V2020_07_01::Models::NetworkInterfaceListResult.mapper()
1430
+ result.body = @client.deserialize(result_mapper, parsed_response)
1431
+ rescue Exception => e
1432
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1433
+ end
1434
+ end
1435
+
1436
+ result
1437
+ end
1438
+
1439
+ promise.execute
1440
+ end
1441
+
1442
+ #
1443
+ # Gets information about all network interfaces in a role instance in a cloud
1444
+ # service
1445
+ #
1446
+ # @param next_page_link [String] The NextLink from the previous successful call
1447
+ # to List operation.
1448
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1449
+ # will be added to the HTTP request.
1450
+ #
1451
+ # @return [NetworkInterfaceListResult] operation results.
1452
+ #
1453
+ def list_cloud_service_role_instance_network_interfaces_next(next_page_link, custom_headers:nil)
1454
+ response = list_cloud_service_role_instance_network_interfaces_next_async(next_page_link, custom_headers:custom_headers).value!
1455
+ response.body unless response.nil?
1456
+ end
1457
+
1458
+ #
1459
+ # Gets information about all network interfaces in a role instance in a cloud
1460
+ # service
1461
+ #
1462
+ # @param next_page_link [String] The NextLink from the previous successful call
1463
+ # to List operation.
1464
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1465
+ # will be added to the HTTP request.
1466
+ #
1467
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1468
+ #
1469
+ def list_cloud_service_role_instance_network_interfaces_next_with_http_info(next_page_link, custom_headers:nil)
1470
+ list_cloud_service_role_instance_network_interfaces_next_async(next_page_link, custom_headers:custom_headers).value!
1471
+ end
1472
+
1473
+ #
1474
+ # Gets information about all network interfaces in a role instance in a cloud
1475
+ # service
1476
+ #
1477
+ # @param next_page_link [String] The NextLink from the previous successful call
1478
+ # to List operation.
1479
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1480
+ # to the HTTP request.
1481
+ #
1482
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1483
+ #
1484
+ def list_cloud_service_role_instance_network_interfaces_next_async(next_page_link, custom_headers:nil)
1485
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1486
+
1487
+
1488
+ request_headers = {}
1489
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1490
+
1491
+ # Set Headers
1492
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1493
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1494
+ path_template = '{nextLink}'
1495
+
1496
+ request_url = @base_url || @client.base_url
1497
+
1498
+ options = {
1499
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1500
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1501
+ headers: request_headers.merge(custom_headers || {}),
1502
+ base_url: request_url
1503
+ }
1504
+ promise = @client.make_request_async(:get, path_template, options)
1505
+
1506
+ promise = promise.then do |result|
1507
+ http_response = result.response
1508
+ status_code = http_response.status
1509
+ response_content = http_response.body
1510
+ unless status_code == 200
1511
+ error_model = JSON.load(response_content)
1512
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1513
+ end
1514
+
1515
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1516
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1517
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1518
+ # Deserialize Response
1519
+ if status_code == 200
1520
+ begin
1521
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1522
+ result_mapper = Azure::Network::Mgmt::V2020_07_01::Models::NetworkInterfaceListResult.mapper()
1523
+ result.body = @client.deserialize(result_mapper, parsed_response)
1524
+ rescue Exception => e
1525
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1526
+ end
1527
+ end
1528
+
1529
+ result
1530
+ end
1531
+
1532
+ promise.execute
1533
+ end
1534
+
1535
+ #
1536
+ # Gets all network interfaces in a cloud service.
1537
+ #
1538
+ # @param next_page_link [String] The NextLink from the previous successful call
1539
+ # to List operation.
1540
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1541
+ # will be added to the HTTP request.
1542
+ #
1543
+ # @return [NetworkInterfaceListResult] operation results.
1544
+ #
1545
+ def list_cloud_service_network_interfaces_next(next_page_link, custom_headers:nil)
1546
+ response = list_cloud_service_network_interfaces_next_async(next_page_link, custom_headers:custom_headers).value!
1547
+ response.body unless response.nil?
1548
+ end
1549
+
1550
+ #
1551
+ # Gets all network interfaces in a cloud service.
1552
+ #
1553
+ # @param next_page_link [String] The NextLink from the previous successful call
1554
+ # to List operation.
1555
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1556
+ # will be added to the HTTP request.
1557
+ #
1558
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
1559
+ #
1560
+ def list_cloud_service_network_interfaces_next_with_http_info(next_page_link, custom_headers:nil)
1561
+ list_cloud_service_network_interfaces_next_async(next_page_link, custom_headers:custom_headers).value!
1562
+ end
1563
+
1564
+ #
1565
+ # Gets all network interfaces in a cloud service.
1566
+ #
1567
+ # @param next_page_link [String] The NextLink from the previous successful call
1568
+ # to List operation.
1569
+ # @param [Hash{String => String}] A hash of custom headers that will be added
1570
+ # to the HTTP request.
1571
+ #
1572
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
1573
+ #
1574
+ def list_cloud_service_network_interfaces_next_async(next_page_link, custom_headers:nil)
1575
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
1576
+
1577
+
1578
+ request_headers = {}
1579
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
1580
+
1581
+ # Set Headers
1582
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1583
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1584
+ path_template = '{nextLink}'
1585
+
1586
+ request_url = @base_url || @client.base_url
1587
+
1588
+ options = {
1589
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
1590
+ skip_encoding_path_params: {'nextLink' => next_page_link},
1591
+ headers: request_headers.merge(custom_headers || {}),
1592
+ base_url: request_url
1593
+ }
1594
+ promise = @client.make_request_async(:get, path_template, options)
1595
+
1596
+ promise = promise.then do |result|
1597
+ http_response = result.response
1598
+ status_code = http_response.status
1599
+ response_content = http_response.body
1600
+ unless status_code == 200
1601
+ error_model = JSON.load(response_content)
1602
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1603
+ end
1604
+
1605
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
1606
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
1607
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
1608
+ # Deserialize Response
1609
+ if status_code == 200
1610
+ begin
1611
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
1612
+ result_mapper = Azure::Network::Mgmt::V2020_07_01::Models::NetworkInterfaceListResult.mapper()
1613
+ result.body = @client.deserialize(result_mapper, parsed_response)
1614
+ rescue Exception => e
1615
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
1616
+ end
1617
+ end
1618
+
1619
+ result
1620
+ end
1621
+
1622
+ promise.execute
1623
+ end
1624
+
1625
+ #
1626
+ # Gets all network interfaces in a subscription.
1627
+ #
1628
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1629
+ # will be added to the HTTP request.
1630
+ #
1631
+ # @return [NetworkInterfaceListResult] which provide lazy access to pages of
1632
+ # the response.
1633
+ #
1634
+ def list_all_as_lazy(custom_headers:nil)
1635
+ response = list_all_async(custom_headers:custom_headers).value!
1636
+ unless response.nil?
1637
+ page = response.body
1638
+ page.next_method = Proc.new do |next_page_link|
1639
+ list_all_next_async(next_page_link, custom_headers:custom_headers)
1640
+ end
1641
+ page
1642
+ end
1643
+ end
1644
+
1645
+ #
1646
+ # Gets all network interfaces in a resource group.
1647
+ #
1648
+ # @param resource_group_name [String] The name of the resource group.
1649
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1650
+ # will be added to the HTTP request.
1651
+ #
1652
+ # @return [NetworkInterfaceListResult] which provide lazy access to pages of
1653
+ # the response.
1654
+ #
1655
+ def list_as_lazy(resource_group_name, custom_headers:nil)
1656
+ response = list_async(resource_group_name, custom_headers:custom_headers).value!
1657
+ unless response.nil?
1658
+ page = response.body
1659
+ page.next_method = Proc.new do |next_page_link|
1660
+ list_next_async(next_page_link, custom_headers:custom_headers)
1661
+ end
1662
+ page
1663
+ end
1664
+ end
1665
+
1666
+ #
1667
+ # Gets information about all network interfaces in a role instance in a cloud
1668
+ # service
1669
+ #
1670
+ # @param resource_group_name [String] The name of the resource group.
1671
+ # @param cloud_service_name [String] The name of the cloud service.
1672
+ # @param role_instance_name [String] The name of role instance.
1673
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1674
+ # will be added to the HTTP request.
1675
+ #
1676
+ # @return [NetworkInterfaceListResult] which provide lazy access to pages of
1677
+ # the response.
1678
+ #
1679
+ def list_cloud_service_role_instance_network_interfaces_as_lazy(resource_group_name, cloud_service_name, role_instance_name, custom_headers:nil)
1680
+ response = list_cloud_service_role_instance_network_interfaces_async(resource_group_name, cloud_service_name, role_instance_name, custom_headers:custom_headers).value!
1681
+ unless response.nil?
1682
+ page = response.body
1683
+ page.next_method = Proc.new do |next_page_link|
1684
+ list_cloud_service_role_instance_network_interfaces_next_async(next_page_link, custom_headers:custom_headers)
1685
+ end
1686
+ page
1687
+ end
1688
+ end
1689
+
1690
+ #
1691
+ # Gets all network interfaces in a cloud service.
1692
+ #
1693
+ # @param resource_group_name [String] The name of the resource group.
1694
+ # @param cloud_service_name [String] The name of the cloud service.
1695
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
1696
+ # will be added to the HTTP request.
1697
+ #
1698
+ # @return [NetworkInterfaceListResult] which provide lazy access to pages of
1699
+ # the response.
1700
+ #
1701
+ def list_cloud_service_network_interfaces_as_lazy(resource_group_name, cloud_service_name, custom_headers:nil)
1702
+ response = list_cloud_service_network_interfaces_async(resource_group_name, cloud_service_name, custom_headers:custom_headers).value!
1703
+ unless response.nil?
1704
+ page = response.body
1705
+ page.next_method = Proc.new do |next_page_link|
1706
+ list_cloud_service_network_interfaces_next_async(next_page_link, custom_headers:custom_headers)
1707
+ end
1708
+ page
1709
+ end
1710
+ end
1711
+
1712
+ end
1713
+ end