def get_endpoint_health_as_lazy(resource_group_name, iot_hub_name, custom_headers:nil)
      response = get_endpoint_health_async(resource_group_name, iot_hub_name, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          get_endpoint_health_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
def get_endpoint_health_as_lazy(resource_group_name, iot_hub_name, custom_headers:nil)
      response = get_endpoint_health_async(resource_group_name, iot_hub_name, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          get_endpoint_health_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
Get the health for routing endpoints

 Get the health for routing endpoints.

 @param resource_group_name [String]
 @param iot_hub_name [String]
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [EndpointHealthDataListResult] which provide lazy access to pages of
 the response.