def get_quota_metrics_as_lazy(resource_group_name, resource_name, custom_headers:nil)
      response = get_quota_metrics_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          get_quota_metrics_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
def get_quota_metrics_as_lazy(resource_group_name, resource_name, custom_headers:nil)
      response = get_quota_metrics_async(resource_group_name, resource_name, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          get_quota_metrics_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
Get the quota metrics for an IoT hub.

 Get the quota metrics for an IoT hub.

 @param resource_group_name [String] The name of the resource group that
 contains the IoT hub.
 @param resource_name [String] The name of the IoT hub.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

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