def check_connectivity(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
      response = check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def check_connectivity(resource_group_name, network_watcher_name, parameters, custom_headers:nil)
      response = check_connectivity_async(resource_group_name, network_watcher_name, parameters, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Verifies the possibility of establishing a direct TCP connection from a
 virtual machine to a given endpoint including another VM or an arbitrary
 remote server.

 @param resource_group_name [String] The name of the network watcher resource
 group.
 @param network_watcher_name [String] The name of the network watcher
 resource.
 @param parameters [ConnectivityParameters] Parameters that determine how the
 connectivity check will be performed.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [ConnectivityInformation] operation results.