private static Flux<SharedDomainResource> requestListSharedDomains( CloudFoundryClient cloudFoundryClient) { return PaginationUtils.requestClientV2Resources( page -> cloudFoundryClient .sharedDomains() .list(ListSharedDomainsRequest.builder().page(page).build())); }
private static Flux<OrganizationResource> requestOrganizations( CloudFoundryClient cloudFoundryClient, String organization) { return PaginationUtils.requestClientV2Resources( page -> cloudFoundryClient .organizations() .list(ListOrganizationsRequest.builder().name(organization).page(page).build())); }
private static Flux<PrivateDomainResource> requestListPrivateDomains( CloudFoundryClient cloudFoundryClient, String domain) { return PaginationUtils.requestClientV2Resources( page -> cloudFoundryClient .privateDomains() .list(ListPrivateDomainsRequest.builder().name(domain).page(page).build())); }