V3 API: How To Construct Query To List Roles Including User, Space Or Organization
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu với rolesV3() và ListRolesRequest.builder(), sau đó so sánh mô hình request của Java client với tham số include của v3 API cho list-roles. Xác nhận liệu request có thể biểu diễn việc bao gồm user, space và organization hay không; hoàn thành khi query được hỗ trợ có thể truy xuất thông tin role và username cần thiết.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Given:
- I try to use v3 api to receive all space roles assignments.
- In v2 it was retrieved using this endpoint: https://apidocs.cloudfoundry.org/16.22.0/spaces/retrieving_the_roles_of_all_users_in_the_space.html
The response contains all the required info for the processing on our side:
-
list of roles (resources.entity.space_roles)
-
username (resources.entity.username)
-
In v3 I found that roles endpoint should be used: https://v3-apidocs.cloudfoundry.org/version/3.151.0/index.html#list-roles
-
It has Include parameter to get user, space, organization
-
org.cloudfoundry library version is 5.10.0.RELEASE
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!
- Ngôn ngữ chính
- Java
- Star
- 334
- Fork
- 319
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của cloudfoundry/cf-java-client
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
cloudfoundry/cf-java-client#1374 ·
-
Integration tests fail: test-service-broker.jar incompatible with java-buildpack v5 (JDK 17 default) Đang mở
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 74/100
cloudfoundry/cf-java-client#1344 · 1 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
cloudfoundry/cf-java-client#1376 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
cloudfoundry/cf-java-client#1373 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
cloudfoundry/cf-java-client#1370 ·
Tất cả issue của cloudfoundry/cf-java-client
Issue tương tự
-
Bug Java Platform: Java
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
getsentry/sentry-java#6138 · 1 bình luận ·
-
bug needs triage p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
GoogleCloudPlatform/DataflowTemplates#4273 · 1 bình luận ·
-
[Studio][Bug] Bulk-deleting a full page of alert rules steps the page back while more rules remain Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/rocketmq-dashboard#4654 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100