How to use the azure-devops.azext_devops.devops_sdk.v5_1.work.models.TeamSettingsDataContractBase function in azure-devops

To help you get started, we’ve selected a few azure-devops examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Azure / azure-devops-cli-extension / azure-devops / azext_devops / devops_sdk / v5_1 / work / models.py View on Github external
: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):
    """
    Essentially a collection of team field values

    :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 = {
github Azure / azure-devops-cli-extension / azure-devops / azext_devops / devops_sdk / v5_1 / work / models.py View on Github external
def __init__(self, _links=None, url=None):
        super(TeamSettingsDataContractBase, self).__init__()
        self._links = _links
        self.url = url
github Azure / azure-devops-cli-extension / azure-devops / azext_devops / devops_sdk / v5_1 / work / models.py View on Github external
class TeamSettingsDaysOffPatch(Model):
    """
    :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):
    """
    Represents a shallow ref for a single iteration.

    :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 of the iteration such as start and end date.
    :type attributes: :class:`TeamIterationAttributes `
    :param id: Id of the iteration.
    :type id: str
    :param name: Name of the iteration.
    :type name: str
    :param path: Relative path of the iteration.
    :type path: str
    """
github Azure / azure-devops-cli-extension / azure-devops / azext_devops / devops_sdk / v5_1 / work / models.py View on Github external
: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):
    """
    :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]'}
    }

    def __init__(self, _links=None, url=None, days_off=None):
github Azure / azure-devops-cli-extension / azure-devops / azext_devops / devops_sdk / v5_1 / work / models.py View on Github external
'max_expanded_teams': {'key': 'maxExpandedTeams', 'type': 'int'},
        '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, max_expanded_teams=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.max_expanded_teams = max_expanded_teams
        self.start_date = start_date
        self.teams = teams


class IterationWorkItems(TeamSettingsDataContractBase):
    """
    Represents work items in an iteration backlog

    :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]'}
    }
github Azure / azure-devops-cli-extension / azure-devops / azext_devops / devops_sdk / v5_1 / work / models.py View on Github external
"""

    _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': 'IdentityRef'}
    }

    def __init__(self, _links=None, url=None, activities=None, days_off=None, team_member=None):
        super(TeamMemberCapacityIdentityRef, self).__init__(_links=_links, url=url, activities=activities, days_off=days_off)
        self.team_member = team_member


class TeamSetting(TeamSettingsDataContractBase):
    """
    Data contract for TeamSettings

    :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)
github Azure / azure-devops-cli-extension / azure-devops / azext_devops / devops_sdk / v5_1 / work / models.py View on Github external
"""

    _attribute_map = {
        'name': {'key': 'name', 'type': 'str'},
        'url': {'key': 'url', 'type': 'str'},
        '_links': {'key': '_links', 'type': 'ReferenceLinks'},
        'settings': {'key': 'settings', 'type': '{object}'}
    }

    def __init__(self, name=None, url=None, _links=None, settings=None):
        super(BoardChart, self).__init__(name=name, url=url)
        self._links = _links
        self.settings = settings


class CapacityContractBase(TeamSettingsDataContractBase):
    """
    :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 `
    """

    _attribute_map = {
        '_links': {'key': '_links', 'type': 'ReferenceLinks'},
        'url': {'key': 'url', 'type': 'str'},
        'activities': {'key': 'activities', 'type': '[Activity]'},
        'days_off': {'key': 'daysOff', 'type': '[DateRange]'}

azure-devops

Python wrapper around the Azure DevOps 7.x APIs

MIT
Latest version published 1 year ago

Package Health Score

80 / 100
Full package analysis