def list_by_environment_as_lazy(location, environment, custom_headers:nil)
      response = list_by_environment_async(location, environment, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_by_environment_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
def list_by_environment_as_lazy(location, environment, custom_headers:nil)
      response = list_by_environment_async(location, environment, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_by_environment_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
List cluster code versions by environment

 @param location [String] The location for the cluster code versions, this is
 different from cluster location
 @param environment [Enum] Cluster operating system, the default means all.
 Possible values include: 'Windows', 'Linux'
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

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