An air-conditioning apparatus that has: a refrigerant circuit in which a compressor, a first heat exchanger, a first expansion device, and a refrigerant side passage of a second heat exchanger are connected by refrigerant pipes to circulate a heat source side refrigerant; and a heat medium circuit in which a pump and a heat medium side passage of the second heat exchanger are connected by heat medium pipes to circulate a heat medium, the second heat exchanger exchanging heat between the heat source side refrigerant and the heat medium, the apparatus comprising: a heat medium flow reversing device provided in the heat medium circuit for switching a flow direction of the heat medium in the heat medium side passage of the second heat exchanger, wherein the heat medium flow reversing device is formed by a plurality of three-way valves that are each provided with a motor, a rotary tube having a cylindrical shape, and a hole that is provided in a side face of the rotary tube and that allows the heat medium to flow between an inside and an outside of the rotary tube, the plurality of three-way valves being able to vary a position of the hole in the side face of the rotary tube in a circumferential direction by rotating the rotary tube by an action of the motor, the plurality of three-way valves being divided into two sets; and the heat medium that circulates through the heat medium circuit flows from an end of a rotary tube in one set of the three-way valves, and flows out of an end of a rotary tube in another set of the three-way valves, in both of a case in which the heat medium is cooled in the second heat exchanger and a case where the heat medium is heated in the second heat exchanger. a refrigerant circuit in which a compressor, a first heat exchanger, a first expansion device, and a refrigerant side passage of a second heat exchanger are connected by refrigerant pipes to circulate a heat source side refrigerant; and a heat medium circuit in which a pump and a heat medium side passage of the second heat exchanger are connected by heat medium pipes to circulate a heat medium, the second heat exchanger exchanging heat between the heat source side refrigerant and the heat medium, the apparatus comprising: a heat medium flow reversing device provided in the heat medium circuit for switching a flow direction of the heat medium in the heat medium side passage of the second heat exchanger, wherein the heat medium flow reversing device is formed by a plurality of three-way valves that are each provided with a motor, a rotary tube having a cylindrical shape, and a hole that is provided in a side face of the rotary tube and that allows the heat medium to flow between an inside and an outside of the rotary tube, the plurality of three-way valves being able to vary a position of the hole in the side face of the rotary tube in a circumferential direction by rotating the rotary tube by an action of the motor, the plurality of three-way valves being divided into two sets; and the heat medium that circulates through the heat medium circuit flows from an end of a rotary tube in one set of the three-way valves, and flows out of an end of a rotary tube in another set of the three-way valves, in both of a case in which the heat medium is cooled in the second heat exchanger and a case where the heat medium is heated in the second heat exchanger. a heat medium flow reversing device provided in the heat medium circuit for switching a flow direction of the heat medium in the heat medium side passage of the second heat exchanger, wherein the heat medium flow reversing device is formed by a plurality of three-way valves that are each provided with a motor, a rotary tube having a cylindrical shape, and a hole that is provided in a side face of the rotary tube and that allows the heat medium to flow between an inside and an outside of the rotary tube, the plurality of three-way valves being able to vary a position of the hole in the side face of the rotary tube in a circumferential direction by rotating the rotary tube by an action of the motor, the plurality of three-way valves being divided into two sets; and the heat medium that circulates through the heat medium circuit flows from an end of a rotary tube in one set of the three-way valves, and flows out of an end of a rotary tube in another set of the three-way valves, in both of a case in which the heat medium is cooled in the second heat exchanger and a case where the heat medium is heated in the second heat exchanger.