微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何使用Azure-devops-python的CreateProcessRuleRequest python方法?

如何解决如何使用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:

从类驱动。然后我在存储库中搜索了定义。

https://github.com/microsoft/azure-devops-python-api/blob/c798941aeeb7b474558f2d835d20d41f3c0a0bb5/azure-devops/azure/devops/v5_1/work_item_tracking_process/models.py

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 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?