如何解决如何使用Azure-devops-python的CreateProcessRuleRequest python方法?
当我尝试使用def add_process_work_item_type_rule(self,process_rule_create,process_id,wit_ref_name):
方法时,需要我传递一个参数
:param :class:`<CreateProcessRuleRequest> <azure.devops.v5_1.work_item_tracking_process.models.CreateProcessRuleRequest>` process_rule_create:
从类驱动。然后我在存储库中搜索了定义。
class CreateProcessRuleRequest(Model):
"""
Request object/class for creating a rule on a work item type.
:param actions: List of actions to take when the rule is triggered.
:type actions: list of :class:`RuleAction <azure.devops.v5_1.work_item_tracking.models.RuleAction>`
:param conditions: List of conditions when the rule should be triggered.
:type conditions: list of :class:`RuleCondition <azure.devops.v5_1.work_item_tracking.models.RuleCondition>`
:param is_disabled: Indicates if the rule is disabled.
:type is_disabled: bool
:param name: Name for the rule.
:type name: str
"""
_attribute_map = {
'actions': {'key': 'actions','type': '[RuleAction]'},'conditions': {'key': 'conditions','type': '[RuleCondition]'},'is_disabled': {'key': 'isdisabled','type': 'bool'},'name': {'key': 'name','type': 'str'}
}
def __init__(self,actions=None,conditions=None,is_disabled=None,name=None):
super(CreateProcessRuleRequest,self).__init__()
self.actions = actions
self.conditions = conditions
self.is_disabled = is_disabled
self.name = name
但是不知道我可以用它来构造对象,以便将值传递给参数process_rule_create
。
谢谢!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。