def list_by_environment(location, environment, api_version, subscription_id, custom_headers:nil)
      response = list_by_environment_async(location, environment, api_version, subscription_id, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def list_by_environment(location, environment, api_version, subscription_id, custom_headers:nil)
      response = list_by_environment_async(location, environment, api_version, subscription_id, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
List cluster code versions by environment

 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 api_version [String] The version of the API.
 @param subscription_id [String] The customer subscription identifier
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [ClusterCodeVersionsListResult] operation results.