cloudfoundry / cf-java-client

Java Client Library for Cloud Foundry
Apache License 2.0
328 stars 318 forks source link

V3 API: How To Construct Query To List Roles Including User, Space Or Organization #1204

Open SeliukovaYuliya opened 11 months ago

SeliukovaYuliya commented 11 months ago

Given:

The response contains all the required info for the processing on our side:

When:

Then:

My query:

PaginationUtils.requestClientV3Resources(page -> getClient(hostName)
                .rolesV3()
                .list(ListRolesRequest.builder().spaceId(spaceId)
                        .types(RoleType.SPACE_AUDITOR, RoleType.SPACE_MANAGER, RoleType.SPACE_DEVELOPER)
                        .build()));

ListRolesRequest.builder() doen not provide any option to specify include parameter. What did I do wrong ? Could you please assist here ?

Thank you!