Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'description': {'key': 'description', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'}
}
def __init__(self, url=None, _links=None, description=None, id=None, name=None, work_item_type_name=None):
super(WorkItemTemplateReference, self).__init__(url=url, _links=_links)
self.description = description
self.id = id
self.name = name
self.work_item_type_name = work_item_type_name
class WorkItemTrackingReference(WorkItemTrackingResource):
"""WorkItemTrackingReference.
:param url:
:type url: str
:param _links: Link references to related REST resources.
:type _links: :class:`ReferenceLinks `
:param name: The name.
:type name: str
:param reference_name: The reference name.
:type reference_name: str
"""
_attribute_map = {
'url': {'key': 'url', 'type': 'str'},
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'name': {'key': 'name', 'type': 'str'},
'reference_name': {'key': 'referenceName', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'},
'always_required': {'key': 'alwaysRequired', 'type': 'bool'},
'dependent_fields': {'key': 'dependentFields', 'type': '[WorkItemFieldReference]'},
'help_text': {'key': 'helpText', 'type': 'str'},
'allowed_values': {'key': 'allowedValues', 'type': '[str]'},
'default_value': {'key': 'defaultValue', 'type': 'str'}
}
def __init__(self, name=None, reference_name=None, url=None, always_required=None, dependent_fields=None, help_text=None, allowed_values=None, default_value=None):
super(WorkItemTypeFieldInstance, self).__init__(name=name, reference_name=reference_name, url=url, always_required=always_required, dependent_fields=dependent_fields, help_text=help_text)
self.allowed_values = allowed_values
self.default_value = default_value
class WorkItemUpdate(WorkItemTrackingResource):
"""WorkItemUpdate.
:param url:
:type url: str
:param _links: Link references to related REST resources.
:type _links: :class:`ReferenceLinks `
:param fields: List of updates to fields.
:type fields: dict
:param id: ID of update.
:type id: int
:param relations: List of updates to relations.
:type relations: :class:`WorkItemRelationUpdates `
:param rev: The revision number of work item update.
:type rev: int
:param revised_by: Identity for the work item update.
:type revised_by: :class:`IdentityReference `
self.can_sort_by = can_sort_by
self.description = description
self.is_identity = is_identity
self.is_picklist = is_picklist
self.is_picklist_suggested = is_picklist_suggested
self.is_queryable = is_queryable
self.name = name
self.picklist_id = picklist_id
self.read_only = read_only
self.reference_name = reference_name
self.supported_operations = supported_operations
self.type = type
self.usage = usage
class WorkItemHistory(WorkItemTrackingResource):
"""WorkItemHistory.
:param url:
:type url: str
:param _links: Link references to related REST resources.
:type _links: :class:`ReferenceLinks `
:param rev:
:type rev: int
:param revised_by:
:type revised_by: :class:`IdentityReference `
:param revised_date:
:type revised_date: datetime
:param value:
:type value: str
"""
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'rev': {'key': 'rev', 'type': 'int'},
'revised_by': {'key': 'revisedBy', 'type': 'IdentityReference'},
'revised_date': {'key': 'revisedDate', 'type': 'iso-8601'},
'value': {'key': 'value', 'type': 'str'}
}
def __init__(self, url=None, _links=None, rev=None, revised_by=None, revised_date=None, value=None):
super(WorkItemHistory, self).__init__(url=url, _links=_links)
self.rev = rev
self.revised_by = revised_by
self.revised_date = revised_date
self.value = value
class WorkItemTemplateReference(WorkItemTrackingResource):
"""WorkItemTemplateReference.
:param url:
:type url: str
:param _links: Link references to related REST resources.
:type _links: :class:`ReferenceLinks `
:param description: The description of the work item template.
:type description: str
:param id: The identifier of the work item template.
:type id: str
:param name: The name of the work item template.
:type name: str
:param work_item_type_name: The name of the work item type.
:type work_item_type_name: str
"""
'revised_date': {'key': 'revisedDate', 'type': 'iso-8601'},
'work_item_id': {'key': 'workItemId', 'type': 'int'}
}
def __init__(self, url=None, _links=None, fields=None, id=None, relations=None, rev=None, revised_by=None, revised_date=None, work_item_id=None):
super(WorkItemUpdate, self).__init__(url=url, _links=_links)
self.fields = fields
self.id = id
self.relations = relations
self.rev = rev
self.revised_by = revised_by
self.revised_date = revised_date
self.work_item_id = work_item_id
class FieldDependentRule(WorkItemTrackingResource):
"""FieldDependentRule.
:param url:
:type url: str
:param _links: Link references to related REST resources.
:type _links: :class:`ReferenceLinks `
:param dependent_fields: The dependent fields.
:type dependent_fields: list of :class:`WorkItemFieldReference `
"""
_attribute_map = {
'url': {'key': 'url', 'type': 'str'},
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'dependent_fields': {'key': 'dependentFields', 'type': '[WorkItemFieldReference]'}
}
:param dependent_fields: The dependent fields.
:type dependent_fields: list of :class:`WorkItemFieldReference `
"""
_attribute_map = {
'url': {'key': 'url', 'type': 'str'},
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'dependent_fields': {'key': 'dependentFields', 'type': '[WorkItemFieldReference]'}
}
def __init__(self, url=None, _links=None, dependent_fields=None):
super(FieldDependentRule, self).__init__(url=url, _links=_links)
self.dependent_fields = dependent_fields
class QueryHierarchyItem(WorkItemTrackingResource):
"""QueryHierarchyItem.
:param url:
:type url: str
:param _links: Link references to related REST resources.
:type _links: :class:`ReferenceLinks `
:param children: The child query items inside a query folder.
:type children: list of :class:`QueryHierarchyItem `
:param clauses: The clauses for a flat query.
:type clauses: :class:`WorkItemQueryClause `
:param columns: The columns of the query.
:type columns: list of :class:`WorkItemFieldReference `
:param created_by: The identity who created the query item.
:type created_by: :class:`IdentityReference `
:param created_date: When the query item was created.
:type created_date: datetime
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'fields': {'key': 'fields', 'type': '{object}'},
'id': {'key': 'id', 'type': 'int'},
'relations': {'key': 'relations', 'type': '[WorkItemRelation]'},
'rev': {'key': 'rev', 'type': 'int'}
}
def __init__(self, url=None, _links=None, fields=None, id=None, relations=None, rev=None):
super(WorkItem, self).__init__(url=url, _links=_links)
self.fields = fields
self.id = id
self.relations = relations
self.rev = rev
class WorkItemClassificationNode(WorkItemTrackingResource):
"""WorkItemClassificationNode.
:param url:
:type url: str
:param _links: Link references to related REST resources.
:type _links: :class:`ReferenceLinks `
:param attributes: Dictionary that has node attributes like start/finish date for iteration nodes.
:type attributes: dict
:param children: List of child nodes fetched.
:type children: list of :class:`WorkItemClassificationNode `
:param has_children: Flag that indicates if the classification node has any child nodes.
:type has_children: bool
:param id: Integer ID of the classification node.
:type id: int
:param identifier: GUID ID of the classification node.
:type identifier: str
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'comments': {'key': 'comments', 'type': '[WorkItemComment]'},
'count': {'key': 'count', 'type': 'int'},
'from_revision_count': {'key': 'fromRevisionCount', 'type': 'int'},
'total_count': {'key': 'totalCount', 'type': 'int'}
}
def __init__(self, url=None, _links=None, comments=None, count=None, from_revision_count=None, total_count=None):
super(WorkItemComments, self).__init__(url=url, _links=_links)
self.comments = comments
self.count = count
self.from_revision_count = from_revision_count
self.total_count = total_count
class WorkItemField(WorkItemTrackingResource):
"""WorkItemField.
:param url:
:type url: str
:param _links: Link references to related REST resources.
:type _links: :class:`ReferenceLinks `
:param can_sort_by: Indicates whether the field is sortable in server queries.
:type can_sort_by: bool
:param description: The description of the field.
:type description: str
:param is_identity: Indicates whether this field is an identity field.
:type is_identity: bool
:param is_picklist: Indicates whether this instance is picklist.
:type is_picklist: bool
:param is_picklist_suggested: Indicates whether this instance is a suggested picklist .
:type is_picklist_suggested: bool
self.last_executed_by = last_executed_by
self.last_executed_date = last_executed_date
self.last_modified_by = last_modified_by
self.last_modified_date = last_modified_date
self.link_clauses = link_clauses
self.name = name
self.path = path
self.query_recursion_option = query_recursion_option
self.query_type = query_type
self.sort_columns = sort_columns
self.source_clauses = source_clauses
self.target_clauses = target_clauses
self.wiql = wiql
class WorkItem(WorkItemTrackingResource):
"""WorkItem.
:param url:
:type url: str
:param _links: Link references to related REST resources.
:type _links: :class:`ReferenceLinks `
:param fields: Map of field and values for the work item.
:type fields: dict
:param id: The work item ID.
:type id: int
:param relations: Relations of the work item.
:type relations: list of :class:`WorkItemRelation `
:param rev: Revision number of the work item.
:type rev: int
"""
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'revised_by': {'key': 'revisedBy', 'type': 'IdentityReference'},
'revised_date': {'key': 'revisedDate', 'type': 'iso-8601'},
'revision': {'key': 'revision', 'type': 'int'},
'text': {'key': 'text', 'type': 'str'}
}
def __init__(self, url=None, _links=None, revised_by=None, revised_date=None, revision=None, text=None):
super(WorkItemComment, self).__init__(url=url, _links=_links)
self.revised_by = revised_by
self.revised_date = revised_date
self.revision = revision
self.text = text
class WorkItemComments(WorkItemTrackingResource):
"""WorkItemComments.
:param url:
:type url: str
:param _links: Link references to related REST resources.
:type _links: :class:`ReferenceLinks `
:param comments: Comments collection.
:type comments: list of :class:`WorkItemComment `
:param count: The count of comments.
:type count: int
:param from_revision_count: Count of comments from the revision.
:type from_revision_count: int
:param total_count: Total count of comments.
:type total_count: int
"""