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

Open
#1,204 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
api

Research direction

Start with rolesV3() and ListRolesRequest.builder(), then compare the Java client request model with the v3 API's list-roles include parameter. Confirm whether the request can represent user, space, and organization inclusion; done when the supported query can retrieve the required role and username information.

Written by the indexing model from the issue text.

Description

Given:

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

When:

  • I try to construct request in Java library

Then:

  • I don't see any option to specify include parameter

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!

Dominant language
Java
Stars
334
Forks
319
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cloudfoundry/cf-java-client

All issues in cloudfoundry/cf-java-client

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.