PipelinesClient is missing model implementation for pipeline creation
還沒有人認領這個 Issue。
評估
研究方向
從 models.py 中的 CreatePipelineConfigurationParameters 開始,將其目前的欄位與 issue 中可正常運作的範例進行比較。檢查 RepositoryReference 的表示方式,以及這些模型如何為建立 pipeline 進行序列化。當 client 可以使用 issue 中描述的 repository 和 path 值建立 pipeline 時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
Hi,
i tried to create a build pipeline with the azure.devops.v6_0.pipelines.PipelinesClient and noticed that this is currently not possible because of a missing model definition within the CreatePipelineConfigurationParameters. This object currently only has a type attribute but it also needs (at least) a repository and a path attribute to refer the corresponding repository.
Attached you'll find a minimal working example for my case. I don't know which fields might be missing in addition to get it working in general.
I found my solution in this blog post and I'll move to a simple requests call for this case until it is fixed.
class CreatePipelineConfigurationParameters(Model):
"""
Configuration parameters of the pipeline.
:param type: Type of configuration.
:type type: object
"""
_attribute_map = {
'path': {'key': 'path', 'type': 'object'},
'repository': {'key': 'repository', 'type': 'RepositoryReference'}, # currently missing
'type': {'key': 'type', 'type': 'object'}, # currently missing
}
def __init__(self, path=None, repository=None, type=None):
super(CreatePipelineConfigurationParameters, self).__init__()
self.path = path
self.repository = repository # currently missing
self.type = type # currently missing
# currently missing, added as minimal working sample
class RepositoryReference(Model):
_attribute_map = {
'id': {'key': 'id', 'type': 'object'},
'type': {'key': 'type', 'type': 'object'}
}
def __init__(self, id=None, type=None):
self.id = id
self.type = type
- 主要語言
- Python
- 星號
- 682
- 分支
- 218
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
microsoft/azure-devops-python-api 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 55/100
-
難度 5/5 一週以上 新手友好度 25/100
-
難度 1/5 1 小時以內 新手友好度 55/100
-
難度 4/5 3-5 天 新手友好度 35/100
-
難度 3/5 1-2 天 新手友好度 45/100
查看 microsoft/azure-devops-python-api 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 3 天內回覆
-
Negation with "not" and "no" is ignored during sentiment analysis可能已有人在做 @vivek-3728 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 68/100
techcsispit/mess-mood#11 · 1 則留言 ·
-
changelog investigate
難度 2/5 1-3 小時 新手友好度 68/100
ramnes/notion-sdk-py#408 ·
-
good first issue
難度 2/5 1-3 小時 新手友好度 83/100
btclib-org/btclib-wallet#267 ·
維護者通常 1 天內回覆
-
good first issue tech-debt
難度 2/5 1-3 小時 新手友好度 85/100
knnmelprop/YAADO#111 ·