Java Code Examples for org.cloudfoundry.util.PaginationUtils#requestClientV2Resources()
The following examples show how to use
org.cloudfoundry.util.PaginationUtils#requestClientV2Resources() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CloudControllerRestClientImpl.java From cf-java-client-sap with Apache License 2.0 | 5 votes |
private Flux<? extends Resource<ApplicationEntity>> getApplicationResourcesByNames(Collection<String> names) { if (names.isEmpty()) { return Flux.empty(); } IntFunction<ListSpaceApplicationsRequest> pageRequestSupplier = page -> ListSpaceApplicationsRequest.builder() .spaceId(getTargetSpaceGuid().toString()) .addAllNames(names) .page(page) .build(); return PaginationUtils.requestClientV2Resources(page -> delegate.spaces() .listApplications(pageRequestSupplier.apply(page))); }
Example 2
Source File: CloudControllerRestClientImpl.java From cf-java-client-sap with Apache License 2.0 | 5 votes |
private Flux<? extends Resource<EventEntity>> getEventResources() { IntFunction<ListEventsRequest> pageRequestSupplier = page -> ListEventsRequest.builder() .page(page) .build(); return PaginationUtils.requestClientV2Resources(page -> delegate.events() .list(pageRequestSupplier.apply(page))); }
Example 3
Source File: CloudControllerRestClientImpl.java From cf-java-client-sap with Apache License 2.0 | 5 votes |
private Flux<? extends Resource<EventEntity>> getEventResourcesByActee(String actee) { IntFunction<ListEventsRequest> pageRequestSupplier = page -> ListEventsRequest.builder() .actee(actee) .page(page) .build(); return PaginationUtils.requestClientV2Resources(page -> delegate.events() .list(pageRequestSupplier.apply(page))); }
Example 4
Source File: CloudControllerRestClientImpl.java From cf-java-client-sap with Apache License 2.0 | 5 votes |
private Flux<? extends Resource<RouteMappingEntity>> getRouteMappingResourcesByRouteGuid(UUID routeGuid) { IntFunction<ListRouteMappingsRequest> pageRequestSupplier = page -> ListRouteMappingsRequest.builder() .routeId(routeGuid.toString()) .page(page) .build(); return PaginationUtils.requestClientV2Resources(page -> delegate.routeMappings() .list(pageRequestSupplier.apply(page))); }
Example 5
Source File: CloudControllerRestClientImpl.java From cf-java-client-sap with Apache License 2.0 | 5 votes |
private Flux<? extends Resource<RouteEntity>> getRouteResourcesByDomainGuidHostAndPath(UUID domainGuid, String host, String path) { ListSpaceRoutesRequest.Builder requestBuilder = ListSpaceRoutesRequest.builder(); if (host != null) { requestBuilder.host(host); } if (path != null) { requestBuilder.path(path); } requestBuilder.spaceId(getTargetSpaceGuid().toString()) .domainId(domainGuid.toString()); return PaginationUtils.requestClientV2Resources(page -> delegate.spaces() .listRoutes(requestBuilder.page(page) .build())); }
Example 6
Source File: CloudControllerRestClientImpl.java From cf-java-client-sap with Apache License 2.0 | 5 votes |
private Flux<? extends Resource<RouteEntity>> getRouteResourcesByDomainGuidAndSpaceGuid(UUID domainGuid, UUID spaceGuid) { IntFunction<ListSpaceRoutesRequest> pageRequestSupplier = page -> ListSpaceRoutesRequest.builder() .domainId(domainGuid.toString()) .spaceId(spaceGuid.toString()) .page(page) .build(); return PaginationUtils.requestClientV2Resources(page -> delegate.spaces() .listRoutes(pageRequestSupplier.apply(page))); }
Example 7
Source File: CloudControllerRestClientImpl.java From cf-java-client-sap with Apache License 2.0 | 5 votes |
private Flux<? extends Resource<PrivateDomainEntity>> getPrivateDomainResourcesByOrganizationGuid(UUID organizationGuid) { IntFunction<ListOrganizationPrivateDomainsRequest> pageRequestSupplier = page -> ListOrganizationPrivateDomainsRequest.builder() .organizationId(organizationGuid.toString()) .page(page) .build(); return PaginationUtils.requestClientV2Resources(page -> delegate.organizations() .listPrivateDomains(pageRequestSupplier.apply(page))); }
Example 8
Source File: CloudControllerRestClientImpl.java From cf-java-client-sap with Apache License 2.0 | 5 votes |
private Flux<? extends Resource<PrivateDomainEntity>> getPrivateDomainResources() { IntFunction<ListPrivateDomainsRequest> pageRequestSupplier = page -> ListPrivateDomainsRequest.builder() .page(page) .build(); return PaginationUtils.requestClientV2Resources(page -> delegate.privateDomains() .list(pageRequestSupplier.apply(page))); }
Example 9
Source File: CloudControllerRestClientImpl.java From cf-java-client-sap with Apache License 2.0 | 5 votes |
private Flux<? extends Resource<SharedDomainEntity>> getSharedDomainResources() { IntFunction<ListSharedDomainsRequest> pageRequestSupplier = page -> ListSharedDomainsRequest.builder() .page(page) .build(); return PaginationUtils.requestClientV2Resources(page -> delegate.sharedDomains() .list(pageRequestSupplier.apply(page))); }
Example 10
Source File: CloudControllerRestClientImpl.java From cf-java-client-sap with Apache License 2.0 | 5 votes |
private Flux<? extends Resource<UserEntity>> getSpaceManagerResourcesBySpaceGuid(UUID spaceGuid) { IntFunction<ListSpaceManagersRequest> pageRequestSupplier = page -> ListSpaceManagersRequest.builder() .spaceId(spaceGuid.toString()) .page(page) .build(); return PaginationUtils.requestClientV2Resources(page -> delegate.spaces() .listManagers(pageRequestSupplier.apply(page))); }
Example 11
Source File: CloudControllerRestClientImpl.java From cf-java-client-sap with Apache License 2.0 | 5 votes |
private Flux<? extends Resource<UserEntity>> getSpaceDeveloperResourcesBySpaceGuid(UUID spaceGuid) { IntFunction<ListSpaceDevelopersRequest> pageRequestSupplier = page -> ListSpaceDevelopersRequest.builder() .spaceId(spaceGuid.toString()) .page(page) .build(); return PaginationUtils.requestClientV2Resources(page -> delegate.spaces() .listDevelopers(pageRequestSupplier.apply(page))); }
Example 12
Source File: CloudControllerRestClientImpl.java From cf-java-client-sap with Apache License 2.0 | 5 votes |
private Flux<? extends Resource<UserEntity>> getSpaceAuditorResourcesBySpaceGuid(UUID spaceGuid) { IntFunction<ListSpaceAuditorsRequest> pageRequestSupplier = page -> ListSpaceAuditorsRequest.builder() .spaceId(spaceGuid.toString()) .page(page) .build(); return PaginationUtils.requestClientV2Resources(page -> delegate.spaces() .listAuditors(pageRequestSupplier.apply(page))); }
Example 13
Source File: CloudControllerRestClientImpl.java From cf-java-client-sap with Apache License 2.0 | 5 votes |
private Flux<? extends Resource<ServiceBindingEntity>> getServiceBindingResourcesByServiceInstanceGuid(UUID serviceInstanceGuid) { IntFunction<ListServiceBindingsRequest> pageRequestSupplier = page -> ListServiceBindingsRequest.builder() .serviceInstanceId(serviceInstanceGuid.toString()) .page(page) .build(); return PaginationUtils.requestClientV2Resources(page -> delegate.serviceBindingsV2() .list(pageRequestSupplier.apply(page))); }
Example 14
Source File: CloudControllerRestClientImpl.java From cf-java-client-sap with Apache License 2.0 | 5 votes |
private Flux<? extends Resource<ApplicationEntity>> getApplicationResources() { IntFunction<ListSpaceApplicationsRequest> pageRequestSupplier = page -> ListSpaceApplicationsRequest.builder() .spaceId(getTargetSpaceGuid().toString()) .page(page) .build(); return PaginationUtils.requestClientV2Resources(page -> delegate.spaces() .listApplications(pageRequestSupplier.apply(page))); }
Example 15
Source File: CloudControllerRestClientImpl.java From cf-java-client-sap with Apache License 2.0 | 4 votes |
private Flux<? extends Resource<SpaceEntity>> getSpaceResources(IntFunction<ListSpacesRequest> requestForPage) { return PaginationUtils.requestClientV2Resources(page -> delegate.spaces() .list(requestForPage.apply(page))); }
Example 16
Source File: CloudControllerRestClientImpl.java From cf-java-client-sap with Apache License 2.0 | 4 votes |
private Flux<? extends Resource<ServiceBrokerEntity>> getServiceBrokerResources(IntFunction<ListServiceBrokersRequest> pageRequestSupplier) { return PaginationUtils.requestClientV2Resources(page -> delegate.serviceBrokers() .list(pageRequestSupplier.apply(page))); }
Example 17
Source File: CloudControllerRestClientImpl.java From cf-java-client-sap with Apache License 2.0 | 4 votes |
private Flux<? extends Resource<ServiceBindingEntity>> getApplicationServiceBindingResources(IntFunction<ListApplicationServiceBindingsRequest> pageRequestSupplier) { return PaginationUtils.requestClientV2Resources(page -> delegate.applicationsV2() .listServiceBindings(pageRequestSupplier.apply(page))); }
Example 18
Source File: CloudControllerRestClientImpl.java From cf-java-client-sap with Apache License 2.0 | 4 votes |
private Flux<? extends Resource<ServiceEntity>> getServiceResources(IntFunction<ListSpaceServicesRequest> pageRequestSupplier) { return PaginationUtils.requestClientV2Resources(page -> delegate.spaces() .listServices(pageRequestSupplier.apply(page))); }
Example 19
Source File: CloudControllerRestClientImpl.java From cf-java-client-sap with Apache License 2.0 | 4 votes |
private Flux<? extends Resource<UnionServiceInstanceEntity>> getServiceInstanceResources(IntFunction<ListSpaceServiceInstancesRequest> pageRequestSupplier) { return PaginationUtils.requestClientV2Resources(page -> delegate.spaces() .listServiceInstances(pageRequestSupplier.apply(page))); }
Example 20
Source File: CloudControllerRestClientImpl.java From cf-java-client-sap with Apache License 2.0 | 4 votes |
private Flux<? extends Resource<StackEntity>> getStackResources(IntFunction<ListStacksRequest> requestForPage) { return PaginationUtils.requestClientV2Resources(page -> delegate.stacks() .list(requestForPage.apply(page))); }