def list_by_environment(location, environment, custom_headers:nil)
      first_page = list_by_environment_as_lazy(location, environment, custom_headers:custom_headers)
      first_page.get_all_items
    end
def list_by_environment(location, environment, custom_headers:nil)
      first_page = list_by_environment_as_lazy(location, environment, custom_headers:custom_headers)
      first_page.get_all_items
    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 [Array<ClusterCodeVersionsResult>] operation results.