コード例 #1
0
 private static Flux<SharedDomainResource> requestListSharedDomains(
     CloudFoundryClient cloudFoundryClient) {
   return PaginationUtils.requestClientV2Resources(
       page ->
           cloudFoundryClient
               .sharedDomains()
               .list(ListSharedDomainsRequest.builder().page(page).build()));
 }
コード例 #2
0
 private static Mono<CreateSharedDomainResponse> requestCreateSharedDomain(
     CloudFoundryClient cloudFoundryClient, String domain) {
   return cloudFoundryClient
       .sharedDomains()
       .create(
           org.cloudfoundry.client.v2.shareddomains.CreateSharedDomainRequest.builder()
               .name(domain)
               .build());
 }