def list_by_hub_as_lazy(resource_group_name, hub_name, user_id, custom_headers:nil)
      response = list_by_hub_async(resource_group_name, hub_name, user_id, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_by_hub_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
def list_by_hub_as_lazy(resource_group_name, hub_name, user_id, custom_headers:nil)
      response = list_by_hub_async(resource_group_name, hub_name, user_id, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_by_hub_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
Gets all available views for given user in the specified hub.

 @param resource_group_name [String] The name of the resource group.
 @param hub_name [String] The name of the hub.
 @param user_id [String] The user ID. Use * to retreive hub level views.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

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