def list_as_lazy(cache_control:'no-cache', custom_headers:nil)
      response = list_async(cache_control:cache_control, 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, cache_control:cache_control, custom_headers:custom_headers)
        end
        page
      end
    end
def list_as_lazy(cache_control:'no-cache', custom_headers:nil)
      response = list_async(cache_control:cache_control, 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, cache_control:cache_control, custom_headers:custom_headers)
        end
        page
      end
    end
List management groups for the authenticated user.


 @param cache_control [String] Indicates that the request shouldn't utilize
 any caches.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

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