azure_mgmt_network 0.18.9 → 0.19.0

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