Possibility to retrive includes?
還沒有人認領這個 Issue。
評估
研究方向
使用 v3.apps.get(..., include="org") 重現該範例,並將其結果與底層請求傳回的 payload 進行比較。追蹤 apps manager 如何處理 API 回應,然後驗證所包含的資料仍然可用,並驗證現有的導覽行為對於 include="space.organization" 仍然有效。
由索引模型根據 Issue 內容生成。
描述
Hey, not sure if it's missing or I don't know how to exactly use it. However, I can't retrieve 'included' from any out of the box options eg. list, get, get_first. However, if I get retrieved payload from underlying methods then it's there. So I assume, parameter is passed while calling API, however, method returning payload only process 'resources' and 'included' is omitted.
Using CF CLI:
cf curl /v3/apps/9a81aaf5-7dac-4adc-a764-263b98935707?include=org | jq -r .included.organizations[].guid
42b716bb-42c5-4bcf-9c1c-f4be4d11685b
Using Python client:
app = client.v3.apps.get("9a81aaf5-7dac-4adc-a764-263b98935707", include="org")
print(json.dumps(app["included"], indent=4))
print(json.dumps(app["included"], indent=4))
KeyError: 'included'
By changing the first line only, a single request fetches all the data. The navigation from app to space and space to organization remains unchanged.
app = client.v3.apps.get("app-guid", include="space.organization")
The managers provide the same methods as the V2 managers with the following differences:
get(**kwargs): supports keyword arguments that are passed on to the API, e.g. "include"
- 主要語言
- Python
- 星號
- 55
- 分支
- 54
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
cloudfoundry-community/cf-python-client 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 25/100
-
難度 4/5 3-5 天 新手友好度 35/100
-
難度 4/5 3-5 天 新手友好度 35/100
cloudfoundry-community/cf-python-client#180 · 2 則留言 ·
-
難度 3/5 1-2 天 新手友好度 35/100
cloudfoundry-community/cf-python-client#177 · 2 則留言 ·
-
難度 4/5 3-5 天 新手友好度 30/100
cloudfoundry-community/cf-python-client#170 · 2 則留言 ·
查看 cloudfoundry-community/cf-python-client 的全部 Issue
相似的 Issue
-
bot-triaged module: LrScheduler module: optimizer triaged
難度 2/5 1-3 小時 新手友好度 70/100
維護者通常 1 天內回覆
-
documentation glm5 llm-model
難度 2/5 1-3 小時 新手友好度 78/100
vllm-project/vllm-ascend#19062 ·
維護者通常 1 天內回覆
-
author-page correction
難度 2/5 1-3 小時 新手友好度 68/100
acl-org/acl-anthology#10496 · 1 則留言 ·
維護者通常 1 天內回覆
-
Issue Type: Bug Report
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
enhancement good first issue
難度 2/5 1-3 小時 新手友好度 76/100
SasanLabs/VulnerableApp#836 ·
維護者通常 1 天內回覆