Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'url': {'key': 'url', 'type': 'str'},
'default_value': {'key': 'defaultValue', 'type': 'str'},
'field': {'key': 'field', 'type': 'FieldReference'},
'values': {'key': 'values', 'type': '[TeamFieldValue]'}
}
def __init__(self, _links=None, url=None, default_value=None, field=None, values=None):
super(TeamFieldValues, self).__init__(_links=_links, url=url)
self.default_value = default_value
self.field = field
self.values = values
class TeamMemberCapacity(TeamSettingsDataContractBase):
"""TeamMemberCapacity.
:param _links: Collection of links relevant to resource
:type _links: :class:`ReferenceLinks `
:param url: Full http link to the resource
:type url: str
:param activities: Collection of capacities associated with the team member
:type activities: list of :class:`Activity `
:param days_off: The days off associated with the team member
:type days_off: list of :class:`DateRange `
:param team_member: Shallow Ref to the associated team member
:type team_member: :class:`Member `
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'url': {'key': 'url', 'type': 'str'},
'activities': {'key': 'activities', 'type': '[Activity]'},
'days_off': {'key': 'daysOff', 'type': '[DateRange]'},
'team_member': {'key': 'teamMember', 'type': 'Member'}
}
def __init__(self, _links=None, url=None, activities=None, days_off=None, team_member=None):
super(TeamMemberCapacity, self).__init__(_links=_links, url=url)
self.activities = activities
self.days_off = days_off
self.team_member = team_member
class TeamSetting(TeamSettingsDataContractBase):
"""TeamSetting.
:param _links: Collection of links relevant to resource
:type _links: :class:`ReferenceLinks `
:param url: Full http link to the resource
:type url: str
:param backlog_iteration: Backlog Iteration
:type backlog_iteration: :class:`TeamSettingsIteration `
:param backlog_visibilities: Information about categories that are visible on the backlog.
:type backlog_visibilities: dict
:param bugs_behavior: BugsBehavior (Off, AsTasks, AsRequirements, ...)
:type bugs_behavior: object
:param default_iteration: Default Iteration, the iteration used when creating a new work item on the queries page.
:type default_iteration: :class:`TeamSettingsIteration `
:param default_iteration_macro: Default Iteration macro (if any)
:type default_iteration_macro: str
def __init__(self, _links=None, url=None):
super(TeamSettingsDataContractBase, self).__init__()
self._links = _links
self.url = url
'criteria_status': {'key': 'criteriaStatus', 'type': 'TimelineCriteriaStatus'},
'end_date': {'key': 'endDate', 'type': 'iso-8601'},
'start_date': {'key': 'startDate', 'type': 'iso-8601'},
'teams': {'key': 'teams', 'type': '[TimelineTeamData]'}
}
def __init__(self, id=None, revision=None, child_id_to_parent_id_map=None, criteria_status=None, end_date=None, start_date=None, teams=None):
super(DeliveryViewData, self).__init__(id=id, revision=revision)
self.child_id_to_parent_id_map = child_id_to_parent_id_map
self.criteria_status = criteria_status
self.end_date = end_date
self.start_date = start_date
self.teams = teams
class IterationWorkItems(TeamSettingsDataContractBase):
"""IterationWorkItems.
:param _links: Collection of links relevant to resource
:type _links: :class:`ReferenceLinks `
:param url: Full http link to the resource
:type url: str
:param work_item_relations: Work item relations
:type work_item_relations: list of :class:`WorkItemLink `
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'url': {'key': 'url', 'type': 'str'},
'work_item_relations': {'key': 'workItemRelations', 'type': '[WorkItemLink]'}
}
"""TeamSettingsDaysOffPatch.
:param days_off:
:type days_off: list of :class:`DateRange `
"""
_attribute_map = {
'days_off': {'key': 'daysOff', 'type': '[DateRange]'}
}
def __init__(self, days_off=None):
super(TeamSettingsDaysOffPatch, self).__init__()
self.days_off = days_off
class TeamSettingsIteration(TeamSettingsDataContractBase):
"""TeamSettingsIteration.
:param _links: Collection of links relevant to resource
:type _links: :class:`ReferenceLinks `
:param url: Full http link to the resource
:type url: str
:param attributes: Attributes such as start and end date
:type attributes: :class:`TeamIterationAttributes `
:param id: Id of the resource
:type id: str
:param name: Name of the resource
:type name: str
:param path: Relative path of the iteration
:type path: str
"""
:param url: Full http link to the resource
:type url: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, _links=None, url=None):
super(TeamSettingsDataContractBase, self).__init__()
self._links = _links
self.url = url
class TeamSettingsDaysOff(TeamSettingsDataContractBase):
"""TeamSettingsDaysOff.
:param _links: Collection of links relevant to resource
:type _links: :class:`ReferenceLinks `
:param url: Full http link to the resource
:type url: str
:param days_off:
:type days_off: list of :class:`DateRange `
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'url': {'key': 'url', 'type': 'str'},
'days_off': {'key': 'daysOff', 'type': '[DateRange]'}
}
:param work_item_relations: Work item relations
:type work_item_relations: list of :class:`WorkItemLink `
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'url': {'key': 'url', 'type': 'str'},
'work_item_relations': {'key': 'workItemRelations', 'type': '[WorkItemLink]'}
}
def __init__(self, _links=None, url=None, work_item_relations=None):
super(IterationWorkItems, self).__init__(_links=_links, url=url)
self.work_item_relations = work_item_relations
class TeamFieldValues(TeamSettingsDataContractBase):
"""TeamFieldValues.
:param _links: Collection of links relevant to resource
:type _links: :class:`ReferenceLinks `
:param url: Full http link to the resource
:type url: str
:param default_value: The default team field value
:type default_value: str
:param field: Shallow ref to the field being used as a team field
:type field: :class:`FieldReference `
:param values: Collection of all valid team field values
:type values: list of :class:`TeamFieldValue `
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},