Switch requires relation from the old api charms.reactive.relations.RelationBase to the replacement charms.reactive.endpoints.Endpoint. Change-Id: I6fe7cab654d5768f521ffa4218ae5c3974ef4ae8