def list_environments(user_name, list_environments_payload, custom_headers:nil)
      response = list_environments_async(user_name, list_environments_payload, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def list_environments(user_name, list_environments_payload, custom_headers:nil)
      response = list_environments_async(user_name, list_environments_payload, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
List Environments for the user

 @param user_name [String] The name of the user.
 @param list_environments_payload [ListEnvironmentsPayload] Represents the
 payload to list environments owned by a user
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [ListEnvironmentsResponse] operation results.