Move ListPaginatedResources method to gateway

[#65037890]