Method: Azure::Hdinsight::Mgmt::V2018_06_01_preview::Clusters#list_as_lazy
- Defined in:
- lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/clusters.rb
#list_as_lazy(custom_headers: nil) ⇒ ClusterListResult
Lists all the HDInsight clusters under the subscription.
will be added to the HTTP request.
response.
1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/clusters.rb', line 1675 def list_as_lazy(custom_headers:nil) response = list_async(custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_next_async(next_page_link, custom_headers:custom_headers) end page end end |