1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872
|
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# Generated file, DO NOT EDIT
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------------------------
from msrest.serialization import Model
class Activity(Model):
"""Activity.
:param capacity_per_day:
:type capacity_per_day: int
:param name:
:type name: str
"""
_attribute_map = {
'capacity_per_day': {'key': 'capacityPerDay', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'}
}
def __init__(self, capacity_per_day=None, name=None):
super(Activity, self).__init__()
self.capacity_per_day = capacity_per_day
self.name = name
class BacklogColumn(Model):
"""BacklogColumn.
:param column_field_reference:
:type column_field_reference: :class:`WorkItemFieldReference <azure.devops.v5_0.work.models.WorkItemFieldReference>`
:param width:
:type width: int
"""
_attribute_map = {
'column_field_reference': {'key': 'columnFieldReference', 'type': 'WorkItemFieldReference'},
'width': {'key': 'width', 'type': 'int'}
}
def __init__(self, column_field_reference=None, width=None):
super(BacklogColumn, self).__init__()
self.column_field_reference = column_field_reference
self.width = width
class BacklogConfiguration(Model):
"""BacklogConfiguration.
:param backlog_fields: Behavior/type field mapping
:type backlog_fields: :class:`BacklogFields <azure.devops.v5_0.work.models.BacklogFields>`
:param bugs_behavior: Bugs behavior
:type bugs_behavior: object
:param hidden_backlogs: Hidden Backlog
:type hidden_backlogs: list of str
:param portfolio_backlogs: Portfolio backlog descriptors
:type portfolio_backlogs: list of :class:`BacklogLevelConfiguration <azure.devops.v5_0.work.models.BacklogLevelConfiguration>`
:param requirement_backlog: Requirement backlog
:type requirement_backlog: :class:`BacklogLevelConfiguration <azure.devops.v5_0.work.models.BacklogLevelConfiguration>`
:param task_backlog: Task backlog
:type task_backlog: :class:`BacklogLevelConfiguration <azure.devops.v5_0.work.models.BacklogLevelConfiguration>`
:param url:
:type url: str
:param work_item_type_mapped_states: Mapped states for work item types
:type work_item_type_mapped_states: list of :class:`WorkItemTypeStateInfo <azure.devops.v5_0.work.models.WorkItemTypeStateInfo>`
"""
_attribute_map = {
'backlog_fields': {'key': 'backlogFields', 'type': 'BacklogFields'},
'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'},
'hidden_backlogs': {'key': 'hiddenBacklogs', 'type': '[str]'},
'portfolio_backlogs': {'key': 'portfolioBacklogs', 'type': '[BacklogLevelConfiguration]'},
'requirement_backlog': {'key': 'requirementBacklog', 'type': 'BacklogLevelConfiguration'},
'task_backlog': {'key': 'taskBacklog', 'type': 'BacklogLevelConfiguration'},
'url': {'key': 'url', 'type': 'str'},
'work_item_type_mapped_states': {'key': 'workItemTypeMappedStates', 'type': '[WorkItemTypeStateInfo]'}
}
def __init__(self, backlog_fields=None, bugs_behavior=None, hidden_backlogs=None, portfolio_backlogs=None, requirement_backlog=None, task_backlog=None, url=None, work_item_type_mapped_states=None):
super(BacklogConfiguration, self).__init__()
self.backlog_fields = backlog_fields
self.bugs_behavior = bugs_behavior
self.hidden_backlogs = hidden_backlogs
self.portfolio_backlogs = portfolio_backlogs
self.requirement_backlog = requirement_backlog
self.task_backlog = task_backlog
self.url = url
self.work_item_type_mapped_states = work_item_type_mapped_states
class BacklogFields(Model):
"""BacklogFields.
:param type_fields: Field Type (e.g. Order, Activity) to Field Reference Name map
:type type_fields: dict
"""
_attribute_map = {
'type_fields': {'key': 'typeFields', 'type': '{str}'}
}
def __init__(self, type_fields=None):
super(BacklogFields, self).__init__()
self.type_fields = type_fields
class BacklogLevel(Model):
"""BacklogLevel.
:param category_reference_name: Reference name of the corresponding WIT category
:type category_reference_name: str
:param plural_name: Plural name for the backlog level
:type plural_name: str
:param work_item_states: Collection of work item states that are included in the plan. The server will filter to only these work item types.
:type work_item_states: list of str
:param work_item_types: Collection of valid workitem type names for the given backlog level
:type work_item_types: list of str
"""
_attribute_map = {
'category_reference_name': {'key': 'categoryReferenceName', 'type': 'str'},
'plural_name': {'key': 'pluralName', 'type': 'str'},
'work_item_states': {'key': 'workItemStates', 'type': '[str]'},
'work_item_types': {'key': 'workItemTypes', 'type': '[str]'}
}
def __init__(self, category_reference_name=None, plural_name=None, work_item_states=None, work_item_types=None):
super(BacklogLevel, self).__init__()
self.category_reference_name = category_reference_name
self.plural_name = plural_name
self.work_item_states = work_item_states
self.work_item_types = work_item_types
class BacklogLevelConfiguration(Model):
"""BacklogLevelConfiguration.
:param add_panel_fields: List of fields to include in Add Panel
:type add_panel_fields: list of :class:`WorkItemFieldReference <azure.devops.v5_0.work.models.WorkItemFieldReference>`
:param color: Color for the backlog level
:type color: str
:param column_fields: Default list of columns for the backlog
:type column_fields: list of :class:`BacklogColumn <azure.devops.v5_0.work.models.BacklogColumn>`
:param default_work_item_type: Defaulst Work Item Type for the backlog
:type default_work_item_type: :class:`WorkItemTypeReference <azure.devops.v5_0.work.models.WorkItemTypeReference>`
:param id: Backlog Id (for Legacy Backlog Level from process config it can be categoryref name)
:type id: str
:param is_hidden: Indicates whether the backlog level is hidden
:type is_hidden: bool
:param name: Backlog Name
:type name: str
:param rank: Backlog Rank (Taskbacklog is 0)
:type rank: int
:param type: The type of this backlog level
:type type: object
:param work_item_count_limit: Max number of work items to show in the given backlog
:type work_item_count_limit: int
:param work_item_types: Work Item types participating in this backlog as known by the project/Process, can be overridden by team settings for bugs
:type work_item_types: list of :class:`WorkItemTypeReference <azure.devops.v5_0.work.models.WorkItemTypeReference>`
"""
_attribute_map = {
'add_panel_fields': {'key': 'addPanelFields', 'type': '[WorkItemFieldReference]'},
'color': {'key': 'color', 'type': 'str'},
'column_fields': {'key': 'columnFields', 'type': '[BacklogColumn]'},
'default_work_item_type': {'key': 'defaultWorkItemType', 'type': 'WorkItemTypeReference'},
'id': {'key': 'id', 'type': 'str'},
'is_hidden': {'key': 'isHidden', 'type': 'bool'},
'name': {'key': 'name', 'type': 'str'},
'rank': {'key': 'rank', 'type': 'int'},
'type': {'key': 'type', 'type': 'object'},
'work_item_count_limit': {'key': 'workItemCountLimit', 'type': 'int'},
'work_item_types': {'key': 'workItemTypes', 'type': '[WorkItemTypeReference]'}
}
def __init__(self, add_panel_fields=None, color=None, column_fields=None, default_work_item_type=None, id=None, is_hidden=None, name=None, rank=None, type=None, work_item_count_limit=None, work_item_types=None):
super(BacklogLevelConfiguration, self).__init__()
self.add_panel_fields = add_panel_fields
self.color = color
self.column_fields = column_fields
self.default_work_item_type = default_work_item_type
self.id = id
self.is_hidden = is_hidden
self.name = name
self.rank = rank
self.type = type
self.work_item_count_limit = work_item_count_limit
self.work_item_types = work_item_types
class BacklogLevelWorkItems(Model):
"""BacklogLevelWorkItems.
:param work_items: A list of work items within a backlog level
:type work_items: list of :class:`WorkItemLink <azure.devops.v5_0.work.models.WorkItemLink>`
"""
_attribute_map = {
'work_items': {'key': 'workItems', 'type': '[WorkItemLink]'}
}
def __init__(self, work_items=None):
super(BacklogLevelWorkItems, self).__init__()
self.work_items = work_items
class BoardCardRuleSettings(Model):
"""BoardCardRuleSettings.
:param _links:
:type _links: :class:`ReferenceLinks <azure.devops.v5_0.work.models.ReferenceLinks>`
:param rules:
:type rules: dict
:param url:
:type url: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'rules': {'key': 'rules', 'type': '{[Rule]}'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, _links=None, rules=None, url=None):
super(BoardCardRuleSettings, self).__init__()
self._links = _links
self.rules = rules
self.url = url
class BoardCardSettings(Model):
"""BoardCardSettings.
:param cards:
:type cards: dict
"""
_attribute_map = {
'cards': {'key': 'cards', 'type': '{[FieldSetting]}'}
}
def __init__(self, cards=None):
super(BoardCardSettings, self).__init__()
self.cards = cards
class BoardChartReference(Model):
"""BoardChartReference.
:param name: Name of the resource
:type name: str
:param url: Full http link to the resource
:type url: str
"""
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, name=None, url=None):
super(BoardChartReference, self).__init__()
self.name = name
self.url = url
class BoardColumn(Model):
"""BoardColumn.
:param column_type:
:type column_type: object
:param description:
:type description: str
:param id:
:type id: str
:param is_split:
:type is_split: bool
:param item_limit:
:type item_limit: int
:param name:
:type name: str
:param state_mappings:
:type state_mappings: dict
"""
_attribute_map = {
'column_type': {'key': 'columnType', 'type': 'object'},
'description': {'key': 'description', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'is_split': {'key': 'isSplit', 'type': 'bool'},
'item_limit': {'key': 'itemLimit', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'},
'state_mappings': {'key': 'stateMappings', 'type': '{str}'}
}
def __init__(self, column_type=None, description=None, id=None, is_split=None, item_limit=None, name=None, state_mappings=None):
super(BoardColumn, self).__init__()
self.column_type = column_type
self.description = description
self.id = id
self.is_split = is_split
self.item_limit = item_limit
self.name = name
self.state_mappings = state_mappings
class BoardFields(Model):
"""BoardFields.
:param column_field:
:type column_field: :class:`FieldReference <azure.devops.v5_0.work.models.FieldReference>`
:param done_field:
:type done_field: :class:`FieldReference <azure.devops.v5_0.work.models.FieldReference>`
:param row_field:
:type row_field: :class:`FieldReference <azure.devops.v5_0.work.models.FieldReference>`
"""
_attribute_map = {
'column_field': {'key': 'columnField', 'type': 'FieldReference'},
'done_field': {'key': 'doneField', 'type': 'FieldReference'},
'row_field': {'key': 'rowField', 'type': 'FieldReference'}
}
def __init__(self, column_field=None, done_field=None, row_field=None):
super(BoardFields, self).__init__()
self.column_field = column_field
self.done_field = done_field
self.row_field = row_field
class BoardReference(Model):
"""BoardReference.
:param id: Id of the resource
:type id: str
:param name: Name of the resource
:type name: str
:param url: Full http link to the resource
:type url: str
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, id=None, name=None, url=None):
super(BoardReference, self).__init__()
self.id = id
self.name = name
self.url = url
class BoardRow(Model):
"""BoardRow.
:param id:
:type id: str
:param name:
:type name: str
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'}
}
def __init__(self, id=None, name=None):
super(BoardRow, self).__init__()
self.id = id
self.name = name
class BoardSuggestedValue(Model):
"""BoardSuggestedValue.
:param name:
:type name: str
"""
_attribute_map = {
'name': {'key': 'name', 'type': 'str'}
}
def __init__(self, name=None):
super(BoardSuggestedValue, self).__init__()
self.name = name
class BoardUserSettings(Model):
"""BoardUserSettings.
:param auto_refresh_state:
:type auto_refresh_state: bool
"""
_attribute_map = {
'auto_refresh_state': {'key': 'autoRefreshState', 'type': 'bool'}
}
def __init__(self, auto_refresh_state=None):
super(BoardUserSettings, self).__init__()
self.auto_refresh_state = auto_refresh_state
class CapacityPatch(Model):
"""CapacityPatch.
:param activities:
:type activities: list of :class:`Activity <azure.devops.v5_0.work.models.Activity>`
:param days_off:
:type days_off: list of :class:`DateRange <azure.devops.v5_0.work.models.DateRange>`
"""
_attribute_map = {
'activities': {'key': 'activities', 'type': '[Activity]'},
'days_off': {'key': 'daysOff', 'type': '[DateRange]'}
}
def __init__(self, activities=None, days_off=None):
super(CapacityPatch, self).__init__()
self.activities = activities
self.days_off = days_off
class CategoryConfiguration(Model):
"""CategoryConfiguration.
:param name: Name
:type name: str
:param reference_name: Category Reference Name
:type reference_name: str
:param work_item_types: Work item types for the backlog category
:type work_item_types: list of :class:`WorkItemTypeReference <azure.devops.v5_0.work.models.WorkItemTypeReference>`
"""
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'reference_name': {'key': 'referenceName', 'type': 'str'},
'work_item_types': {'key': 'workItemTypes', 'type': '[WorkItemTypeReference]'}
}
def __init__(self, name=None, reference_name=None, work_item_types=None):
super(CategoryConfiguration, self).__init__()
self.name = name
self.reference_name = reference_name
self.work_item_types = work_item_types
class CreatePlan(Model):
"""CreatePlan.
:param description: Description of the plan
:type description: str
:param name: Name of the plan to create.
:type name: str
:param properties: Plan properties.
:type properties: object
:param type: Type of plan to create.
:type type: object
"""
_attribute_map = {
'description': {'key': 'description', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'object'},
'type': {'key': 'type', 'type': 'object'}
}
def __init__(self, description=None, name=None, properties=None, type=None):
super(CreatePlan, self).__init__()
self.description = description
self.name = name
self.properties = properties
self.type = type
class DateRange(Model):
"""DateRange.
:param end: End of the date range.
:type end: datetime
:param start: Start of the date range.
:type start: datetime
"""
_attribute_map = {
'end': {'key': 'end', 'type': 'iso-8601'},
'start': {'key': 'start', 'type': 'iso-8601'}
}
def __init__(self, end=None, start=None):
super(DateRange, self).__init__()
self.end = end
self.start = start
class FieldReference(Model):
"""FieldReference.
:param reference_name: fieldRefName for the field
:type reference_name: str
:param url: Full http link to more information about the field
:type url: str
"""
_attribute_map = {
'reference_name': {'key': 'referenceName', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, reference_name=None, url=None):
super(FieldReference, self).__init__()
self.reference_name = reference_name
self.url = url
class FilterClause(Model):
"""FilterClause.
:param field_name:
:type field_name: str
:param index:
:type index: int
:param logical_operator:
:type logical_operator: str
:param operator:
:type operator: str
:param value:
:type value: str
"""
_attribute_map = {
'field_name': {'key': 'fieldName', 'type': 'str'},
'index': {'key': 'index', 'type': 'int'},
'logical_operator': {'key': 'logicalOperator', 'type': 'str'},
'operator': {'key': 'operator', 'type': 'str'},
'value': {'key': 'value', 'type': 'str'}
}
def __init__(self, field_name=None, index=None, logical_operator=None, operator=None, value=None):
super(FilterClause, self).__init__()
self.field_name = field_name
self.index = index
self.logical_operator = logical_operator
self.operator = operator
self.value = value
class GraphSubjectBase(Model):
"""GraphSubjectBase.
:param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject.
:type _links: :class:`ReferenceLinks <azure.devops.v5_0.microsoft._visual_studio._services._web_api.models.ReferenceLinks>`
:param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations.
:type descriptor: str
:param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider.
:type display_name: str
:param url: This url is the full route to the source resource of this graph subject.
:type url: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'descriptor': {'key': 'descriptor', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, _links=None, descriptor=None, display_name=None, url=None):
super(GraphSubjectBase, self).__init__()
self._links = _links
self.descriptor = descriptor
self.display_name = display_name
self.url = url
class IdentityRef(GraphSubjectBase):
"""IdentityRef.
:param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject.
:type _links: :class:`ReferenceLinks <azure.devops.v5_0.microsoft._visual_studio._services._web_api.models.ReferenceLinks>`
:param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations.
:type descriptor: str
:param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider.
:type display_name: str
:param url: This url is the full route to the source resource of this graph subject.
:type url: str
:param directory_alias:
:type directory_alias: str
:param id:
:type id: str
:param image_url:
:type image_url: str
:param inactive:
:type inactive: bool
:param is_aad_identity:
:type is_aad_identity: bool
:param is_container:
:type is_container: bool
:param is_deleted_in_origin:
:type is_deleted_in_origin: bool
:param profile_url:
:type profile_url: str
:param unique_name:
:type unique_name: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'descriptor': {'key': 'descriptor', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'},
'directory_alias': {'key': 'directoryAlias', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'image_url': {'key': 'imageUrl', 'type': 'str'},
'inactive': {'key': 'inactive', 'type': 'bool'},
'is_aad_identity': {'key': 'isAadIdentity', 'type': 'bool'},
'is_container': {'key': 'isContainer', 'type': 'bool'},
'is_deleted_in_origin': {'key': 'isDeletedInOrigin', 'type': 'bool'},
'profile_url': {'key': 'profileUrl', 'type': 'str'},
'unique_name': {'key': 'uniqueName', 'type': 'str'}
}
def __init__(self, _links=None, descriptor=None, display_name=None, url=None, directory_alias=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, is_deleted_in_origin=None, profile_url=None, unique_name=None):
super(IdentityRef, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url)
self.directory_alias = directory_alias
self.id = id
self.image_url = image_url
self.inactive = inactive
self.is_aad_identity = is_aad_identity
self.is_container = is_container
self.is_deleted_in_origin = is_deleted_in_origin
self.profile_url = profile_url
self.unique_name = unique_name
class Link(Model):
"""Link.
:param attributes: Collection of link attributes.
:type attributes: dict
:param rel: Relation type.
:type rel: str
:param url: Link url.
:type url: str
"""
_attribute_map = {
'attributes': {'key': 'attributes', 'type': '{object}'},
'rel': {'key': 'rel', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, attributes=None, rel=None, url=None):
super(Link, self).__init__()
self.attributes = attributes
self.rel = rel
self.url = url
class Member(Model):
"""Member.
:param display_name:
:type display_name: str
:param id:
:type id: str
:param image_url:
:type image_url: str
:param unique_name:
:type unique_name: str
:param url:
:type url: str
"""
_attribute_map = {
'display_name': {'key': 'displayName', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'image_url': {'key': 'imageUrl', 'type': 'str'},
'unique_name': {'key': 'uniqueName', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, display_name=None, id=None, image_url=None, unique_name=None, url=None):
super(Member, self).__init__()
self.display_name = display_name
self.id = id
self.image_url = image_url
self.unique_name = unique_name
self.url = url
class ParentChildWIMap(Model):
"""ParentChildWIMap.
:param child_work_item_ids:
:type child_work_item_ids: list of int
:param id:
:type id: int
:param title:
:type title: str
"""
_attribute_map = {
'child_work_item_ids': {'key': 'childWorkItemIds', 'type': '[int]'},
'id': {'key': 'id', 'type': 'int'},
'title': {'key': 'title', 'type': 'str'}
}
def __init__(self, child_work_item_ids=None, id=None, title=None):
super(ParentChildWIMap, self).__init__()
self.child_work_item_ids = child_work_item_ids
self.id = id
self.title = title
class Plan(Model):
"""Plan.
:param created_by_identity: Identity that created this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4.
:type created_by_identity: :class:`IdentityRef <azure.devops.v5_0.work.models.IdentityRef>`
:param created_date: Date when the plan was created
:type created_date: datetime
:param description: Description of the plan
:type description: str
:param id: Id of the plan
:type id: str
:param modified_by_identity: Identity that last modified this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4.
:type modified_by_identity: :class:`IdentityRef <azure.devops.v5_0.work.models.IdentityRef>`
:param modified_date: Date when the plan was last modified. Default to CreatedDate when the plan is first created.
:type modified_date: datetime
:param name: Name of the plan
:type name: str
:param properties: The PlanPropertyCollection instance associated with the plan. These are dependent on the type of the plan. For example, DeliveryTimelineView, it would be of type DeliveryViewPropertyCollection.
:type properties: object
:param revision: Revision of the plan. Used to safeguard users from overwriting each other's changes.
:type revision: int
:param type: Type of the plan
:type type: object
:param url: The resource url to locate the plan via rest api
:type url: str
:param user_permissions: Bit flag indicating set of permissions a user has to the plan.
:type user_permissions: object
"""
_attribute_map = {
'created_by_identity': {'key': 'createdByIdentity', 'type': 'IdentityRef'},
'created_date': {'key': 'createdDate', 'type': 'iso-8601'},
'description': {'key': 'description', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'modified_by_identity': {'key': 'modifiedByIdentity', 'type': 'IdentityRef'},
'modified_date': {'key': 'modifiedDate', 'type': 'iso-8601'},
'name': {'key': 'name', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'object'},
'revision': {'key': 'revision', 'type': 'int'},
'type': {'key': 'type', 'type': 'object'},
'url': {'key': 'url', 'type': 'str'},
'user_permissions': {'key': 'userPermissions', 'type': 'object'}
}
def __init__(self, created_by_identity=None, created_date=None, description=None, id=None, modified_by_identity=None, modified_date=None, name=None, properties=None, revision=None, type=None, url=None, user_permissions=None):
super(Plan, self).__init__()
self.created_by_identity = created_by_identity
self.created_date = created_date
self.description = description
self.id = id
self.modified_by_identity = modified_by_identity
self.modified_date = modified_date
self.name = name
self.properties = properties
self.revision = revision
self.type = type
self.url = url
self.user_permissions = user_permissions
class PlanViewData(Model):
"""PlanViewData.
:param id:
:type id: str
:param revision:
:type revision: int
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'revision': {'key': 'revision', 'type': 'int'}
}
def __init__(self, id=None, revision=None):
super(PlanViewData, self).__init__()
self.id = id
self.revision = revision
class PredefinedQuery(Model):
"""PredefinedQuery.
:param has_more: Whether or not the query returned the complete set of data or if the data was truncated.
:type has_more: bool
:param id: Id of the query
:type id: str
:param name: Localized name of the query
:type name: str
:param results: The results of the query. This will be a set of WorkItem objects with only the 'id' set. The client is responsible for paging in the data as needed.
:type results: list of :class:`WorkItem <azure.devops.v5_0.work.models.WorkItem>`
:param url: REST API Url to use to retrieve results for this query
:type url: str
:param web_url: Url to use to display a page in the browser with the results of this query
:type web_url: str
"""
_attribute_map = {
'has_more': {'key': 'hasMore', 'type': 'bool'},
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'results': {'key': 'results', 'type': '[WorkItem]'},
'url': {'key': 'url', 'type': 'str'},
'web_url': {'key': 'webUrl', 'type': 'str'}
}
def __init__(self, has_more=None, id=None, name=None, results=None, url=None, web_url=None):
super(PredefinedQuery, self).__init__()
self.has_more = has_more
self.id = id
self.name = name
self.results = results
self.url = url
self.web_url = web_url
class ProcessConfiguration(Model):
"""ProcessConfiguration.
:param bug_work_items: Details about bug work items
:type bug_work_items: :class:`CategoryConfiguration <azure.devops.v5_0.work.models.CategoryConfiguration>`
:param portfolio_backlogs: Details about portfolio backlogs
:type portfolio_backlogs: list of :class:`CategoryConfiguration <azure.devops.v5_0.work.models.CategoryConfiguration>`
:param requirement_backlog: Details of requirement backlog
:type requirement_backlog: :class:`CategoryConfiguration <azure.devops.v5_0.work.models.CategoryConfiguration>`
:param task_backlog: Details of task backlog
:type task_backlog: :class:`CategoryConfiguration <azure.devops.v5_0.work.models.CategoryConfiguration>`
:param type_fields: Type fields for the process configuration
:type type_fields: dict
:param url:
:type url: str
"""
_attribute_map = {
'bug_work_items': {'key': 'bugWorkItems', 'type': 'CategoryConfiguration'},
'portfolio_backlogs': {'key': 'portfolioBacklogs', 'type': '[CategoryConfiguration]'},
'requirement_backlog': {'key': 'requirementBacklog', 'type': 'CategoryConfiguration'},
'task_backlog': {'key': 'taskBacklog', 'type': 'CategoryConfiguration'},
'type_fields': {'key': 'typeFields', 'type': '{WorkItemFieldReference}'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, bug_work_items=None, portfolio_backlogs=None, requirement_backlog=None, task_backlog=None, type_fields=None, url=None):
super(ProcessConfiguration, self).__init__()
self.bug_work_items = bug_work_items
self.portfolio_backlogs = portfolio_backlogs
self.requirement_backlog = requirement_backlog
self.task_backlog = task_backlog
self.type_fields = type_fields
self.url = url
class ReferenceLinks(Model):
"""ReferenceLinks.
:param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only.
:type links: dict
"""
_attribute_map = {
'links': {'key': 'links', 'type': '{object}'}
}
def __init__(self, links=None):
super(ReferenceLinks, self).__init__()
self.links = links
class Rule(Model):
"""Rule.
:param clauses:
:type clauses: list of :class:`FilterClause <azure.devops.v5_0.work.models.FilterClause>`
:param filter:
:type filter: str
:param is_enabled:
:type is_enabled: str
:param name:
:type name: str
:param settings:
:type settings: dict
"""
_attribute_map = {
'clauses': {'key': 'clauses', 'type': '[FilterClause]'},
'filter': {'key': 'filter', 'type': 'str'},
'is_enabled': {'key': 'isEnabled', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'settings': {'key': 'settings', 'type': '{str}'}
}
def __init__(self, clauses=None, filter=None, is_enabled=None, name=None, settings=None):
super(Rule, self).__init__()
self.clauses = clauses
self.filter = filter
self.is_enabled = is_enabled
self.name = name
self.settings = settings
class TeamContext(Model):
"""TeamContext.
:param project: The team project Id or name. Ignored if ProjectId is set.
:type project: str
:param project_id: The Team Project ID. Required if Project is not set.
:type project_id: str
:param team: The Team Id or name. Ignored if TeamId is set.
:type team: str
:param team_id: The Team Id
:type team_id: str
"""
_attribute_map = {
'project': {'key': 'project', 'type': 'str'},
'project_id': {'key': 'projectId', 'type': 'str'},
'team': {'key': 'team', 'type': 'str'},
'team_id': {'key': 'teamId', 'type': 'str'}
}
def __init__(self, project=None, project_id=None, team=None, team_id=None):
super(TeamContext, self).__init__()
self.project = project
self.project_id = project_id
self.team = team
self.team_id = team_id
class TeamFieldValue(Model):
"""TeamFieldValue.
:param include_children:
:type include_children: bool
:param value:
:type value: str
"""
_attribute_map = {
'include_children': {'key': 'includeChildren', 'type': 'bool'},
'value': {'key': 'value', 'type': 'str'}
}
def __init__(self, include_children=None, value=None):
super(TeamFieldValue, self).__init__()
self.include_children = include_children
self.value = value
class TeamFieldValuesPatch(Model):
"""TeamFieldValuesPatch.
:param default_value:
:type default_value: str
:param values:
:type values: list of :class:`TeamFieldValue <azure.devops.v5_0.work.models.TeamFieldValue>`
"""
_attribute_map = {
'default_value': {'key': 'defaultValue', 'type': 'str'},
'values': {'key': 'values', 'type': '[TeamFieldValue]'}
}
def __init__(self, default_value=None, values=None):
super(TeamFieldValuesPatch, self).__init__()
self.default_value = default_value
self.values = values
class TeamIterationAttributes(Model):
"""TeamIterationAttributes.
:param finish_date:
:type finish_date: datetime
:param start_date:
:type start_date: datetime
:param time_frame:
:type time_frame: object
"""
_attribute_map = {
'finish_date': {'key': 'finishDate', 'type': 'iso-8601'},
'start_date': {'key': 'startDate', 'type': 'iso-8601'},
'time_frame': {'key': 'timeFrame', 'type': 'object'}
}
def __init__(self, finish_date=None, start_date=None, time_frame=None):
super(TeamIterationAttributes, self).__init__()
self.finish_date = finish_date
self.start_date = start_date
self.time_frame = time_frame
class TeamSettingsDataContractBase(Model):
"""TeamSettingsDataContractBase.
:param _links: Collection of links relevant to resource
:type _links: :class:`ReferenceLinks <azure.devops.v5_0.work.models.ReferenceLinks>`
: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 <azure.devops.v5_0.work.models.ReferenceLinks>`
:param url: Full http link to the resource
:type url: str
:param days_off:
:type days_off: list of :class:`DateRange <azure.devops.v5_0.work.models.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):
super(TeamSettingsDaysOff, self).__init__(_links=_links, url=url)
self.days_off = days_off
class TeamSettingsDaysOffPatch(Model):
"""TeamSettingsDaysOffPatch.
:param days_off:
:type days_off: list of :class:`DateRange <azure.devops.v5_0.work.models.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 <azure.devops.v5_0.work.models.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 <azure.devops.v5_0.work.models.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
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'url': {'key': 'url', 'type': 'str'},
'attributes': {'key': 'attributes', 'type': 'TeamIterationAttributes'},
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'path': {'key': 'path', 'type': 'str'}
}
def __init__(self, _links=None, url=None, attributes=None, id=None, name=None, path=None):
super(TeamSettingsIteration, self).__init__(_links=_links, url=url)
self.attributes = attributes
self.id = id
self.name = name
self.path = path
class TeamSettingsPatch(Model):
"""TeamSettingsPatch.
:param backlog_iteration:
:type backlog_iteration: str
:param backlog_visibilities:
:type backlog_visibilities: dict
:param bugs_behavior:
:type bugs_behavior: object
:param default_iteration:
:type default_iteration: str
:param default_iteration_macro:
:type default_iteration_macro: str
:param working_days:
:type working_days: list of str
"""
_attribute_map = {
'backlog_iteration': {'key': 'backlogIteration', 'type': 'str'},
'backlog_visibilities': {'key': 'backlogVisibilities', 'type': '{bool}'},
'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'},
'default_iteration': {'key': 'defaultIteration', 'type': 'str'},
'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'},
'working_days': {'key': 'workingDays', 'type': '[object]'}
}
def __init__(self, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None):
super(TeamSettingsPatch, self).__init__()
self.backlog_iteration = backlog_iteration
self.backlog_visibilities = backlog_visibilities
self.bugs_behavior = bugs_behavior
self.default_iteration = default_iteration
self.default_iteration_macro = default_iteration_macro
self.working_days = working_days
class TimelineCriteriaStatus(Model):
"""TimelineCriteriaStatus.
:param message:
:type message: str
:param type:
:type type: object
"""
_attribute_map = {
'message': {'key': 'message', 'type': 'str'},
'type': {'key': 'type', 'type': 'object'}
}
def __init__(self, message=None, type=None):
super(TimelineCriteriaStatus, self).__init__()
self.message = message
self.type = type
class TimelineIterationStatus(Model):
"""TimelineIterationStatus.
:param message:
:type message: str
:param type:
:type type: object
"""
_attribute_map = {
'message': {'key': 'message', 'type': 'str'},
'type': {'key': 'type', 'type': 'object'}
}
def __init__(self, message=None, type=None):
super(TimelineIterationStatus, self).__init__()
self.message = message
self.type = type
class TimelineTeamData(Model):
"""TimelineTeamData.
:param backlog: Backlog matching the mapped backlog associated with this team.
:type backlog: :class:`BacklogLevel <azure.devops.v5_0.work.models.BacklogLevel>`
:param field_reference_names: The field reference names of the work item data
:type field_reference_names: list of str
:param id: The id of the team
:type id: str
:param is_expanded: Was iteration and work item data retrieved for this team. <remarks> Teams with IsExpanded false have not had their iteration, work item, and field related data queried and will never contain this data. If true then these items are queried and, if there are items in the queried range, there will be data. </remarks>
:type is_expanded: bool
:param iterations: The iteration data, including the work items, in the queried date range.
:type iterations: list of :class:`TimelineTeamIteration <azure.devops.v5_0.work.models.TimelineTeamIteration>`
:param name: The name of the team
:type name: str
:param order_by_field: The order by field name of this team
:type order_by_field: str
:param partially_paged_field_reference_names: The field reference names of the partially paged work items, such as ID, WorkItemType
:type partially_paged_field_reference_names: list of str
:param project_id: The project id the team belongs team
:type project_id: str
:param status: Status for this team.
:type status: :class:`TimelineTeamStatus <azure.devops.v5_0.work.models.TimelineTeamStatus>`
:param team_field_default_value: The team field default value
:type team_field_default_value: str
:param team_field_name: The team field name of this team
:type team_field_name: str
:param team_field_values: The team field values
:type team_field_values: list of :class:`TeamFieldValue <azure.devops.v5_0.work.models.TeamFieldValue>`
:param work_item_type_colors: Colors for the work item types.
:type work_item_type_colors: list of :class:`WorkItemColor <azure.devops.v5_0.work.models.WorkItemColor>`
"""
_attribute_map = {
'backlog': {'key': 'backlog', 'type': 'BacklogLevel'},
'field_reference_names': {'key': 'fieldReferenceNames', 'type': '[str]'},
'id': {'key': 'id', 'type': 'str'},
'is_expanded': {'key': 'isExpanded', 'type': 'bool'},
'iterations': {'key': 'iterations', 'type': '[TimelineTeamIteration]'},
'name': {'key': 'name', 'type': 'str'},
'order_by_field': {'key': 'orderByField', 'type': 'str'},
'partially_paged_field_reference_names': {'key': 'partiallyPagedFieldReferenceNames', 'type': '[str]'},
'project_id': {'key': 'projectId', 'type': 'str'},
'status': {'key': 'status', 'type': 'TimelineTeamStatus'},
'team_field_default_value': {'key': 'teamFieldDefaultValue', 'type': 'str'},
'team_field_name': {'key': 'teamFieldName', 'type': 'str'},
'team_field_values': {'key': 'teamFieldValues', 'type': '[TeamFieldValue]'},
'work_item_type_colors': {'key': 'workItemTypeColors', 'type': '[WorkItemColor]'}
}
def __init__(self, backlog=None, field_reference_names=None, id=None, is_expanded=None, iterations=None, name=None, order_by_field=None, partially_paged_field_reference_names=None, project_id=None, status=None, team_field_default_value=None, team_field_name=None, team_field_values=None, work_item_type_colors=None):
super(TimelineTeamData, self).__init__()
self.backlog = backlog
self.field_reference_names = field_reference_names
self.id = id
self.is_expanded = is_expanded
self.iterations = iterations
self.name = name
self.order_by_field = order_by_field
self.partially_paged_field_reference_names = partially_paged_field_reference_names
self.project_id = project_id
self.status = status
self.team_field_default_value = team_field_default_value
self.team_field_name = team_field_name
self.team_field_values = team_field_values
self.work_item_type_colors = work_item_type_colors
class TimelineTeamIteration(Model):
"""TimelineTeamIteration.
:param finish_date: The end date of the iteration
:type finish_date: datetime
:param name: The iteration name
:type name: str
:param partially_paged_work_items: All the partially paged workitems in this iteration.
:type partially_paged_work_items: list of [object]
:param path: The iteration path
:type path: str
:param start_date: The start date of the iteration
:type start_date: datetime
:param status: The status of this iteration
:type status: :class:`TimelineIterationStatus <azure.devops.v5_0.work.models.TimelineIterationStatus>`
:param work_items: The work items that have been paged in this iteration
:type work_items: list of [object]
"""
_attribute_map = {
'finish_date': {'key': 'finishDate', 'type': 'iso-8601'},
'name': {'key': 'name', 'type': 'str'},
'partially_paged_work_items': {'key': 'partiallyPagedWorkItems', 'type': '[[object]]'},
'path': {'key': 'path', 'type': 'str'},
'start_date': {'key': 'startDate', 'type': 'iso-8601'},
'status': {'key': 'status', 'type': 'TimelineIterationStatus'},
'work_items': {'key': 'workItems', 'type': '[[object]]'}
}
def __init__(self, finish_date=None, name=None, partially_paged_work_items=None, path=None, start_date=None, status=None, work_items=None):
super(TimelineTeamIteration, self).__init__()
self.finish_date = finish_date
self.name = name
self.partially_paged_work_items = partially_paged_work_items
self.path = path
self.start_date = start_date
self.status = status
self.work_items = work_items
class TimelineTeamStatus(Model):
"""TimelineTeamStatus.
:param message:
:type message: str
:param type:
:type type: object
"""
_attribute_map = {
'message': {'key': 'message', 'type': 'str'},
'type': {'key': 'type', 'type': 'object'}
}
def __init__(self, message=None, type=None):
super(TimelineTeamStatus, self).__init__()
self.message = message
self.type = type
class UpdatePlan(Model):
"""UpdatePlan.
:param description: Description of the plan
:type description: str
:param name: Name of the plan to create.
:type name: str
:param properties: Plan properties.
:type properties: object
:param revision: Revision of the plan that was updated - the value used here should match the one the server gave the client in the Plan.
:type revision: int
:param type: Type of the plan
:type type: object
"""
_attribute_map = {
'description': {'key': 'description', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'object'},
'revision': {'key': 'revision', 'type': 'int'},
'type': {'key': 'type', 'type': 'object'}
}
def __init__(self, description=None, name=None, properties=None, revision=None, type=None):
super(UpdatePlan, self).__init__()
self.description = description
self.name = name
self.properties = properties
self.revision = revision
self.type = type
class WorkItemColor(Model):
"""WorkItemColor.
:param icon:
:type icon: str
:param primary_color:
:type primary_color: str
:param work_item_type_name:
:type work_item_type_name: str
"""
_attribute_map = {
'icon': {'key': 'icon', 'type': 'str'},
'primary_color': {'key': 'primaryColor', 'type': 'str'},
'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'}
}
def __init__(self, icon=None, primary_color=None, work_item_type_name=None):
super(WorkItemColor, self).__init__()
self.icon = icon
self.primary_color = primary_color
self.work_item_type_name = work_item_type_name
class WorkItemFieldReference(Model):
"""WorkItemFieldReference.
:param name: The name of the field.
:type name: str
:param reference_name: The reference name of the field.
:type reference_name: str
:param url: The REST URL of the resource.
:type url: str
"""
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'reference_name': {'key': 'referenceName', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, name=None, reference_name=None, url=None):
super(WorkItemFieldReference, self).__init__()
self.name = name
self.reference_name = reference_name
self.url = url
class WorkItemLink(Model):
"""WorkItemLink.
:param rel: The type of link.
:type rel: str
:param source: The source work item.
:type source: :class:`WorkItemReference <azure.devops.v5_0.microsoft._team_foundation._work_item_tracking._web_api.models.WorkItemReference>`
:param target: The target work item.
:type target: :class:`WorkItemReference <azure.devops.v5_0.microsoft._team_foundation._work_item_tracking._web_api.models.WorkItemReference>`
"""
_attribute_map = {
'rel': {'key': 'rel', 'type': 'str'},
'source': {'key': 'source', 'type': 'WorkItemReference'},
'target': {'key': 'target', 'type': 'WorkItemReference'}
}
def __init__(self, rel=None, source=None, target=None):
super(WorkItemLink, self).__init__()
self.rel = rel
self.source = source
self.target = target
class WorkItemReference(Model):
"""WorkItemReference.
:param id: Work item ID.
:type id: int
:param url: REST API URL of the resource
:type url: str
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, id=None, url=None):
super(WorkItemReference, self).__init__()
self.id = id
self.url = url
class WorkItemRelation(Link):
"""WorkItemRelation.
:param attributes: Collection of link attributes.
:type attributes: dict
:param rel: Relation type.
:type rel: str
:param url: Link url.
:type url: str
"""
_attribute_map = {
'attributes': {'key': 'attributes', 'type': '{object}'},
'rel': {'key': 'rel', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'},
}
def __init__(self, attributes=None, rel=None, url=None):
super(WorkItemRelation, self).__init__(attributes=attributes, rel=rel, url=url)
class WorkItemTrackingResourceReference(Model):
"""WorkItemTrackingResourceReference.
:param url:
:type url: str
"""
_attribute_map = {
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, url=None):
super(WorkItemTrackingResourceReference, self).__init__()
self.url = url
class WorkItemTypeReference(WorkItemTrackingResourceReference):
"""WorkItemTypeReference.
:param url:
:type url: str
:param name: Name of the work item type.
:type name: str
"""
_attribute_map = {
'url': {'key': 'url', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'}
}
def __init__(self, url=None, name=None):
super(WorkItemTypeReference, self).__init__(url=url)
self.name = name
class WorkItemTypeStateInfo(Model):
"""WorkItemTypeStateInfo.
:param states: State name to state category map
:type states: dict
:param work_item_type_name: Work Item type name
:type work_item_type_name: str
"""
_attribute_map = {
'states': {'key': 'states', 'type': '{str}'},
'work_item_type_name': {'key': 'workItemTypeName', 'type': 'str'}
}
def __init__(self, states=None, work_item_type_name=None):
super(WorkItemTypeStateInfo, self).__init__()
self.states = states
self.work_item_type_name = work_item_type_name
class Board(BoardReference):
"""Board.
:param id: Id of the resource
:type id: str
:param name: Name of the resource
:type name: str
:param url: Full http link to the resource
:type url: str
:param _links:
:type _links: :class:`ReferenceLinks <azure.devops.v5_0.work.models.ReferenceLinks>`
:param allowed_mappings:
:type allowed_mappings: dict
:param can_edit:
:type can_edit: bool
:param columns:
:type columns: list of :class:`BoardColumn <azure.devops.v5_0.work.models.BoardColumn>`
:param fields:
:type fields: :class:`BoardFields <azure.devops.v5_0.work.models.BoardFields>`
:param is_valid:
:type is_valid: bool
:param revision:
:type revision: int
:param rows:
:type rows: list of :class:`BoardRow <azure.devops.v5_0.work.models.BoardRow>`
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'},
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'allowed_mappings': {'key': 'allowedMappings', 'type': '{{[str]}}'},
'can_edit': {'key': 'canEdit', 'type': 'bool'},
'columns': {'key': 'columns', 'type': '[BoardColumn]'},
'fields': {'key': 'fields', 'type': 'BoardFields'},
'is_valid': {'key': 'isValid', 'type': 'bool'},
'revision': {'key': 'revision', 'type': 'int'},
'rows': {'key': 'rows', 'type': '[BoardRow]'}
}
def __init__(self, id=None, name=None, url=None, _links=None, allowed_mappings=None, can_edit=None, columns=None, fields=None, is_valid=None, revision=None, rows=None):
super(Board, self).__init__(id=id, name=name, url=url)
self._links = _links
self.allowed_mappings = allowed_mappings
self.can_edit = can_edit
self.columns = columns
self.fields = fields
self.is_valid = is_valid
self.revision = revision
self.rows = rows
class BoardChart(BoardChartReference):
"""BoardChart.
:param name: Name of the resource
:type name: str
:param url: Full http link to the resource
:type url: str
:param _links: The links for the resource
:type _links: :class:`ReferenceLinks <azure.devops.v5_0.work.models.ReferenceLinks>`
:param settings: The settings for the resource
:type settings: dict
"""
_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 DeliveryViewData(PlanViewData):
"""DeliveryViewData.
:param id:
:type id: str
:param revision:
:type revision: int
:param child_id_to_parent_id_map: Work item child id to parenet id map
:type child_id_to_parent_id_map: dict
:param criteria_status: Filter criteria status of the timeline
:type criteria_status: :class:`TimelineCriteriaStatus <azure.devops.v5_0.work.models.TimelineCriteriaStatus>`
:param end_date: The end date of the delivery view data
:type end_date: datetime
:param start_date: The start date for the delivery view data
:type start_date: datetime
:param teams: All the team data
:type teams: list of :class:`TimelineTeamData <azure.devops.v5_0.work.models.TimelineTeamData>`
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'revision': {'key': 'revision', 'type': 'int'},
'child_id_to_parent_id_map': {'key': 'childIdToParentIdMap', 'type': '{int}'},
'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 <azure.devops.v5_0.work.models.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 <azure.devops.v5_0.work.models.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 <azure.devops.v5_0.work.models.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 <azure.devops.v5_0.work.models.FieldReference>`
:param values: Collection of all valid team field values
:type values: list of :class:`TeamFieldValue <azure.devops.v5_0.work.models.TeamFieldValue>`
"""
_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 <azure.devops.v5_0.work.models.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 <azure.devops.v5_0.work.models.Activity>`
:param days_off: The days off associated with the team member
:type days_off: list of :class:`DateRange <azure.devops.v5_0.work.models.DateRange>`
:param team_member: Shallow Ref to the associated team member
:type team_member: :class:`Member <azure.devops.v5_0.work.models.Member>`
"""
_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 <azure.devops.v5_0.work.models.ReferenceLinks>`
:param url: Full http link to the resource
:type url: str
:param backlog_iteration: Backlog Iteration
:type backlog_iteration: :class:`TeamSettingsIteration <azure.devops.v5_0.work.models.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 <azure.devops.v5_0.work.models.TeamSettingsIteration>`
:param default_iteration_macro: Default Iteration macro (if any)
:type default_iteration_macro: str
:param working_days: Days that the team is working
:type working_days: list of str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'url': {'key': 'url', 'type': 'str'},
'backlog_iteration': {'key': 'backlogIteration', 'type': 'TeamSettingsIteration'},
'backlog_visibilities': {'key': 'backlogVisibilities', 'type': '{bool}'},
'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'},
'default_iteration': {'key': 'defaultIteration', 'type': 'TeamSettingsIteration'},
'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'},
'working_days': {'key': 'workingDays', 'type': '[object]'}
}
def __init__(self, _links=None, url=None, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None):
super(TeamSetting, self).__init__(_links=_links, url=url)
self.backlog_iteration = backlog_iteration
self.backlog_visibilities = backlog_visibilities
self.bugs_behavior = bugs_behavior
self.default_iteration = default_iteration
self.default_iteration_macro = default_iteration_macro
self.working_days = working_days
class WorkItemTrackingResource(WorkItemTrackingResourceReference):
"""WorkItemTrackingResource.
:param url:
:type url: str
:param _links: Link references to related REST resources.
:type _links: :class:`ReferenceLinks <azure.devops.v5_0.microsoft._team_foundation._work_item_tracking._web_api.models.ReferenceLinks>`
"""
_attribute_map = {
'url': {'key': 'url', 'type': 'str'},
'_links': {'key': '_links', 'type': 'ReferenceLinks'}
}
def __init__(self, url=None, _links=None):
super(WorkItemTrackingResource, self).__init__(url=url)
self._links = _links
class WorkItem(WorkItemTrackingResource):
"""WorkItem.
:param url:
:type url: str
:param _links: Link references to related REST resources.
:type _links: :class:`ReferenceLinks <azure.devops.v5_0.microsoft._team_foundation._work_item_tracking._web_api.models.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 <azure.devops.v5_0.microsoft._team_foundation._work_item_tracking._web_api.models.WorkItemRelation>`
:param rev: Revision number of the work item.
:type rev: int
"""
_attribute_map = {
'url': {'key': 'url', 'type': 'str'},
'_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
__all__ = [
'Activity',
'BacklogColumn',
'BacklogConfiguration',
'BacklogFields',
'BacklogLevel',
'BacklogLevelConfiguration',
'BacklogLevelWorkItems',
'BoardCardRuleSettings',
'BoardCardSettings',
'BoardChartReference',
'BoardColumn',
'BoardFields',
'BoardReference',
'BoardRow',
'BoardSuggestedValue',
'BoardUserSettings',
'CapacityPatch',
'CategoryConfiguration',
'CreatePlan',
'DateRange',
'FieldReference',
'FilterClause',
'GraphSubjectBase',
'IdentityRef',
'Link',
'Member',
'ParentChildWIMap',
'Plan',
'PlanViewData',
'PredefinedQuery',
'ProcessConfiguration',
'ReferenceLinks',
'Rule',
'TeamContext',
'TeamFieldValue',
'TeamFieldValuesPatch',
'TeamIterationAttributes',
'TeamSettingsDataContractBase',
'TeamSettingsDaysOff',
'TeamSettingsDaysOffPatch',
'TeamSettingsIteration',
'TeamSettingsPatch',
'TimelineCriteriaStatus',
'TimelineIterationStatus',
'TimelineTeamData',
'TimelineTeamIteration',
'TimelineTeamStatus',
'UpdatePlan',
'WorkItemColor',
'WorkItemFieldReference',
'WorkItemLink',
'WorkItemReference',
'WorkItemRelation',
'WorkItemTrackingResourceReference',
'WorkItemTypeReference',
'WorkItemTypeStateInfo',
'Board',
'BoardChart',
'DeliveryViewData',
'IterationWorkItems',
'TeamFieldValues',
'TeamMemberCapacity',
'TeamSetting',
'WorkItemTrackingResource',
'WorkItem',
]
|