azure-devops-extension-api 1.158.0 → 2.218.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/Accounts/AccountsClient.d.ts +1 -1
  2. package/Accounts/AccountsClient.js +4 -4
  3. package/Accounts/AccountsClient.min.js +1 -1
  4. package/Build/Build.d.ts +201 -3
  5. package/Build/Build.js +6 -2
  6. package/Build/Build.min.js +1 -1
  7. package/Build/BuildClient.d.ts +121 -13
  8. package/Build/BuildClient.js +468 -101
  9. package/Build/BuildClient.min.js +1 -1
  10. package/Contributions/Contributions.d.ts +1 -1
  11. package/Contributions/ContributionsClient.js +4 -4
  12. package/Contributions/ContributionsClient.min.js +1 -1
  13. package/Core/CoreClient.d.ts +2 -2
  14. package/Core/CoreClient.js +49 -36
  15. package/Core/CoreClient.min.js +1 -1
  16. package/Dashboard/Dashboard.d.ts +79 -2
  17. package/Dashboard/Dashboard.js +10 -0
  18. package/Dashboard/Dashboard.min.js +1 -1
  19. package/Dashboard/DashboardClient.d.ts +2 -2
  20. package/Dashboard/DashboardClient.js +15 -15
  21. package/Dashboard/DashboardClient.min.js +1 -1
  22. package/ExtensionManagement/ExtensionManagement.d.ts +2 -2
  23. package/ExtensionManagement/ExtensionManagementClient.d.ts +2 -2
  24. package/ExtensionManagement/ExtensionManagementClient.js +27 -27
  25. package/ExtensionManagement/ExtensionManagementClient.min.js +1 -1
  26. package/FeatureAvailability/FeatureAvailabilityClient.js +5 -5
  27. package/FeatureAvailability/FeatureAvailabilityClient.min.js +1 -1
  28. package/FeatureManagement/FeatureManagementClient.js +9 -9
  29. package/FeatureManagement/FeatureManagementClient.min.js +1 -1
  30. package/FileContainer/FileContainer.d.ts +22 -0
  31. package/FileContainer/FileContainer.js +8 -0
  32. package/FileContainer/FileContainer.min.js +1 -1
  33. package/FileContainer/FileContainerClient.d.ts +5 -2
  34. package/FileContainer/FileContainerClient.js +13 -7
  35. package/FileContainer/FileContainerClient.min.js +1 -1
  36. package/FormInput/FormInput.d.ts +1 -1
  37. package/Gallery/Gallery.d.ts +92 -7
  38. package/Gallery/Gallery.js +25 -3
  39. package/Gallery/Gallery.min.js +1 -1
  40. package/Gallery/GalleryClient.d.ts +41 -9
  41. package/Gallery/GalleryClient.js +211 -90
  42. package/Gallery/GalleryClient.min.js +1 -1
  43. package/Git/Git.d.ts +121 -7
  44. package/Git/Git.js +2 -1
  45. package/Git/Git.min.js +1 -1
  46. package/Git/GitClient.d.ts +173 -28
  47. package/Git/GitClient.js +630 -162
  48. package/Git/GitClient.min.js +1 -1
  49. package/Graph/Graph.d.ts +107 -17
  50. package/Graph/GraphClient.d.ts +41 -2
  51. package/Graph/GraphClient.js +158 -37
  52. package/Graph/GraphClient.min.js +1 -1
  53. package/Identities/Identities.d.ts +15 -0
  54. package/Locations/LocationsClient.js +9 -9
  55. package/Locations/LocationsClient.min.js +1 -1
  56. package/Notification/Notification.d.ts +3 -3
  57. package/Notification/NotificationClient.d.ts +6 -0
  58. package/Notification/NotificationClient.js +40 -23
  59. package/Notification/NotificationClient.min.js +1 -1
  60. package/Operations/OperationsClient.d.ts +1 -1
  61. package/Operations/OperationsClient.js +2 -2
  62. package/Operations/OperationsClient.min.js +1 -1
  63. package/Pipelines/Pipelines.d.ts +318 -0
  64. package/Pipelines/Pipelines.js +82 -0
  65. package/Pipelines/Pipelines.min.js +1 -0
  66. package/Pipelines/PipelinesClient.d.ts +92 -0
  67. package/Pipelines/PipelinesClient.js +325 -0
  68. package/Pipelines/PipelinesClient.min.js +1 -0
  69. package/Policy/Policy.d.ts +4 -0
  70. package/Policy/PolicyClient.d.ts +3 -3
  71. package/Policy/PolicyClient.js +30 -19
  72. package/Policy/PolicyClient.min.js +1 -1
  73. package/Profile/ProfileClient.js +12 -12
  74. package/Profile/ProfileClient.min.js +1 -1
  75. package/ProjectAnalysis/ProjectAnalysisClient.js +4 -4
  76. package/ProjectAnalysis/ProjectAnalysisClient.min.js +1 -1
  77. package/Release/Release.d.ts +81 -7
  78. package/Release/Release.js +11 -0
  79. package/Release/Release.min.js +1 -1
  80. package/Release/ReleaseClient.d.ts +31 -5
  81. package/Release/ReleaseClient.js +223 -95
  82. package/Release/ReleaseClient.min.js +1 -1
  83. package/ServiceEndpoint/ServiceEndpoint.d.ts +11 -2
  84. package/ServiceEndpoint/ServiceEndpoint.js +1 -0
  85. package/ServiceEndpoint/ServiceEndpoint.min.js +1 -1
  86. package/ServiceEndpoint/ServiceEndpointClient.d.ts +33 -31
  87. package/ServiceEndpoint/ServiceEndpointClient.js +122 -107
  88. package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -1
  89. package/ServiceHooks/ServiceHooks.d.ts +2 -1
  90. package/ServiceHooks/ServiceHooksClient.js +23 -23
  91. package/ServiceHooks/ServiceHooksClient.min.js +1 -1
  92. package/TaskAgent/TaskAgent.d.ts +737 -17
  93. package/TaskAgent/TaskAgent.js +133 -0
  94. package/TaskAgent/TaskAgent.min.js +1 -1
  95. package/TaskAgent/TaskAgentClient.d.ts +28 -16
  96. package/TaskAgent/TaskAgentClient.js +336 -195
  97. package/TaskAgent/TaskAgentClient.min.js +1 -1
  98. package/Test/Test.d.ts +96 -25
  99. package/Test/Test.js +8 -0
  100. package/Test/Test.min.js +1 -1
  101. package/Test/TestClient.d.ts +17 -34
  102. package/Test/TestClient.js +163 -152
  103. package/Test/TestClient.min.js +1 -1
  104. package/TestPlan/TestPlan.d.ts +215 -18
  105. package/TestPlan/TestPlan.js +47 -1
  106. package/TestPlan/TestPlan.min.js +1 -1
  107. package/TestPlan/TestPlanClient.d.ts +48 -14
  108. package/TestPlan/TestPlanClient.js +255 -74
  109. package/TestPlan/TestPlanClient.min.js +1 -1
  110. package/TestResults/TestResultsClient.d.ts +112 -27
  111. package/TestResults/TestResultsClient.js +518 -134
  112. package/TestResults/TestResultsClient.min.js +1 -1
  113. package/Tfvc/Tfvc.d.ts +9 -1
  114. package/Tfvc/TfvcClient.d.ts +3 -2
  115. package/Tfvc/TfvcClient.js +41 -28
  116. package/Tfvc/TfvcClient.min.js +1 -1
  117. package/WebApi/WebApi.d.ts +22 -3
  118. package/Wiki/Wiki.d.ts +51 -0
  119. package/Wiki/WikiClient.d.ts +18 -0
  120. package/Wiki/WikiClient.js +71 -1
  121. package/Wiki/WikiClient.min.js +1 -1
  122. package/Work/Work.d.ts +68 -1
  123. package/Work/WorkClient.d.ts +10 -3
  124. package/Work/WorkClient.js +78 -58
  125. package/Work/WorkClient.min.js +1 -1
  126. package/WorkItemTracking/WorkItemTracking.d.ts +170 -1
  127. package/WorkItemTracking/WorkItemTrackingClient.d.ts +18 -2
  128. package/WorkItemTracking/WorkItemTrackingClient.js +107 -60
  129. package/WorkItemTracking/WorkItemTrackingClient.min.js +1 -1
  130. package/WorkItemTrackingProcess/WorkItemTrackingProcess.d.ts +15 -2
  131. package/WorkItemTrackingProcess/WorkItemTrackingProcess.js +4 -0
  132. package/WorkItemTrackingProcess/WorkItemTrackingProcess.min.js +1 -1
  133. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.d.ts +1 -1
  134. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.js +58 -58
  135. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.min.js +1 -1
  136. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.d.ts +3 -1
  137. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.d.ts +9 -1
  138. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.js +69 -46
  139. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.min.js +1 -1
  140. package/package.json +3 -3
@@ -46,9 +46,6 @@ export interface AgentJobRequestMessage extends JobRequestMessage {
46
46
  requestId: number;
47
47
  tasks: TaskInstance[];
48
48
  }
49
- export interface AgentMigrationMessage {
50
- accessToken: string;
51
- }
52
49
  export interface AgentPoolEvent {
53
50
  eventType: string;
54
51
  pool: TaskAgentPool;
@@ -199,6 +196,16 @@ export interface DemandEquals extends Demand {
199
196
  export interface DemandExists extends Demand {
200
197
  }
201
198
  export interface DemandMinimumVersion extends Demand {
199
+ source: DemandSource;
200
+ }
201
+ export interface DemandSource {
202
+ sourceName: string;
203
+ sourceType: DemandSourceType;
204
+ sourceVersion: string;
205
+ }
206
+ export declare enum DemandSourceType {
207
+ Task = 0,
208
+ Feature = 1
202
209
  }
203
210
  export interface DependencyBinding {
204
211
  key: string;
@@ -482,6 +489,281 @@ export interface DiagnosticLogMetadata {
482
489
  phaseResult: string;
483
490
  poolId: number;
484
491
  }
492
+ export interface ElasticAgentPoolResizedEvent {
493
+ newSize: number;
494
+ poolId: number;
495
+ poolName: string;
496
+ previousSize: number;
497
+ resourceId: string;
498
+ }
499
+ export declare enum ElasticAgentState {
500
+ None = 0,
501
+ Enabled = 1,
502
+ Online = 2,
503
+ Assigned = 4
504
+ }
505
+ export declare enum ElasticComputeState {
506
+ None = 0,
507
+ Healthy = 1,
508
+ Creating = 2,
509
+ Deleting = 3,
510
+ Failed = 4,
511
+ Stopped = 5,
512
+ Reimaging = 6
513
+ }
514
+ /**
515
+ * Data and settings for an elastic node
516
+ */
517
+ export interface ElasticNode {
518
+ /**
519
+ * Distributed Task's Agent Id
520
+ */
521
+ agentId: number;
522
+ /**
523
+ * Summary of the state of the agent
524
+ */
525
+ agentState: ElasticAgentState;
526
+ /**
527
+ * Compute Id. VMSS's InstanceId
528
+ */
529
+ computeId: string;
530
+ /**
531
+ * State of the compute host
532
+ */
533
+ computeState: ElasticComputeState;
534
+ /**
535
+ * Users can force state changes to specific states (ToReimage, ToDelete, Save)
536
+ */
537
+ desiredState: ElasticNodeState;
538
+ /**
539
+ * Unique identifier since the agent and/or VM may be null
540
+ */
541
+ id: number;
542
+ /**
543
+ * Computer name. Used to match a scaleset VM with an agent
544
+ */
545
+ name: string;
546
+ /**
547
+ * Pool Id that this node belongs to
548
+ */
549
+ poolId: number;
550
+ /**
551
+ * Last job RequestId assigned to this agent
552
+ */
553
+ requestId: number;
554
+ /**
555
+ * State of the ElasticNode
556
+ */
557
+ state: ElasticNodeState;
558
+ /**
559
+ * Last state change. Only updated by SQL.
560
+ */
561
+ stateChangedOn: Date;
562
+ }
563
+ /**
564
+ * Class used for updating an elastic node where only certain members are populated
565
+ */
566
+ export interface ElasticNodeSettings {
567
+ /**
568
+ * State of the ElasticNode
569
+ */
570
+ state: ElasticNodeState;
571
+ }
572
+ export declare enum ElasticNodeState {
573
+ None = 0,
574
+ New = 1,
575
+ CreatingCompute = 2,
576
+ StartingAgent = 3,
577
+ Idle = 4,
578
+ Assigned = 5,
579
+ Offline = 6,
580
+ PendingReimage = 7,
581
+ PendingDelete = 8,
582
+ Saved = 9,
583
+ DeletingCompute = 10,
584
+ Deleted = 11,
585
+ Lost = 12,
586
+ ReimagingCompute = 13,
587
+ RestartingAgent = 14,
588
+ FailedToStartPendingDelete = 15,
589
+ FailedToRestartPendingDelete = 16,
590
+ FailedVMPendingDelete = 17,
591
+ AssignedPendingDelete = 18,
592
+ RetryDelete = 19
593
+ }
594
+ /**
595
+ * Data and settings for an elastic pool
596
+ */
597
+ export interface ElasticPool {
598
+ /**
599
+ * Set whether agents should be configured to run with interactive UI
600
+ */
601
+ agentInteractiveUI: boolean;
602
+ /**
603
+ * Azure string representing to location of the resource
604
+ */
605
+ azureId: string;
606
+ /**
607
+ * Number of agents to have ready waiting for jobs
608
+ */
609
+ desiredIdle: number;
610
+ /**
611
+ * The desired size of the pool
612
+ */
613
+ desiredSize: number;
614
+ /**
615
+ * Maximum number of nodes that will exist in the elastic pool
616
+ */
617
+ maxCapacity: number;
618
+ /**
619
+ * Keep nodes in the pool on failure for investigation
620
+ */
621
+ maxSavedNodeCount: number;
622
+ /**
623
+ * Timestamp the pool was first detected to be offline
624
+ */
625
+ offlineSince: Date;
626
+ /**
627
+ * Operating system type of the nodes in the pool
628
+ */
629
+ orchestrationType: OrchestrationType;
630
+ /**
631
+ * Operating system type of the nodes in the pool
632
+ */
633
+ osType: OperatingSystemType;
634
+ /**
635
+ * Id of the associated TaskAgentPool
636
+ */
637
+ poolId: number;
638
+ /**
639
+ * Discard node after each job completes
640
+ */
641
+ recycleAfterEachUse: boolean;
642
+ /**
643
+ * Id of the Service Endpoint used to connect to Azure
644
+ */
645
+ serviceEndpointId: string;
646
+ /**
647
+ * Scope the Service Endpoint belongs to
648
+ */
649
+ serviceEndpointScope: string;
650
+ /**
651
+ * The number of sizing attempts executed while trying to achieve a desired size
652
+ */
653
+ sizingAttempts: number;
654
+ /**
655
+ * State of the pool
656
+ */
657
+ state: ElasticPoolState;
658
+ /**
659
+ * The minimum time in minutes to keep idle agents alive
660
+ */
661
+ timeToLiveMinutes: number;
662
+ }
663
+ /**
664
+ * Returned result from creating a new elastic pool
665
+ */
666
+ export interface ElasticPoolCreationResult {
667
+ /**
668
+ * Created agent pool
669
+ */
670
+ agentPool: TaskAgentPool;
671
+ /**
672
+ * Created agent queue
673
+ */
674
+ agentQueue: TaskAgentQueue;
675
+ /**
676
+ * Created elastic pool
677
+ */
678
+ elasticPool: ElasticPool;
679
+ }
680
+ /**
681
+ * Log data for an Elastic Pool
682
+ */
683
+ export interface ElasticPoolLog {
684
+ /**
685
+ * Log Id
686
+ */
687
+ id: number;
688
+ /**
689
+ * E.g. error, warning, info
690
+ */
691
+ level: LogLevel;
692
+ /**
693
+ * Log contents
694
+ */
695
+ message: string;
696
+ /**
697
+ * Operation that triggered the message being logged
698
+ */
699
+ operation: OperationType;
700
+ /**
701
+ * Id of the associated TaskAgentPool
702
+ */
703
+ poolId: number;
704
+ /**
705
+ * Datetime that the log occurred
706
+ */
707
+ timestamp: Date;
708
+ }
709
+ /**
710
+ * Class used for updating an elastic pool where only certain members are populated
711
+ */
712
+ export interface ElasticPoolSettings {
713
+ /**
714
+ * Set whether agents should be configured to run with interactive UI
715
+ */
716
+ agentInteractiveUI: boolean;
717
+ /**
718
+ * Azure string representing to location of the resource
719
+ */
720
+ azureId: string;
721
+ /**
722
+ * Number of machines to have ready waiting for jobs
723
+ */
724
+ desiredIdle: number;
725
+ /**
726
+ * Maximum number of machines that will exist in the elastic pool
727
+ */
728
+ maxCapacity: number;
729
+ /**
730
+ * Keep machines in the pool on failure for investigation
731
+ */
732
+ maxSavedNodeCount: number;
733
+ /**
734
+ * Operating system type of the machines in the pool
735
+ */
736
+ orchestrationType: OrchestrationType;
737
+ /**
738
+ * Operating system type of the machines in the pool
739
+ */
740
+ osType: OperatingSystemType;
741
+ /**
742
+ * Discard machines after each job completes
743
+ */
744
+ recycleAfterEachUse: boolean;
745
+ /**
746
+ * Id of the Service Endpoint used to connect to Azure
747
+ */
748
+ serviceEndpointId: string;
749
+ /**
750
+ * Scope the Service Endpoint belongs to
751
+ */
752
+ serviceEndpointScope: string;
753
+ /**
754
+ * The minimum time in minutes to keep idle agents alive
755
+ */
756
+ timeToLiveMinutes: number;
757
+ }
758
+ export declare enum ElasticPoolState {
759
+ /**
760
+ * Online and healthy
761
+ */
762
+ Online = 0,
763
+ Offline = 1,
764
+ Unhealthy = 2,
765
+ New = 3
766
+ }
485
767
  export interface EndpointAuthorization {
486
768
  /**
487
769
  * Gets or sets the parameters for the selected authorization scheme.
@@ -711,6 +993,35 @@ export interface EnvironmentResource {
711
993
  */
712
994
  type: EnvironmentResourceType;
713
995
  }
996
+ /**
997
+ * EnvironmentResourceDeploymentExecutionRecord.
998
+ */
999
+ export interface EnvironmentResourceDeploymentExecutionRecord {
1000
+ /**
1001
+ * Id of the Environment
1002
+ */
1003
+ environmentId: number;
1004
+ /**
1005
+ * Finish time of the environment resource deployment execution
1006
+ */
1007
+ finishTime: Date;
1008
+ /**
1009
+ * Id of the Environment deployment execution history record
1010
+ */
1011
+ requestId: number;
1012
+ /**
1013
+ * Resource Id
1014
+ */
1015
+ resourceId: number;
1016
+ /**
1017
+ * Result of the environment deployment execution
1018
+ */
1019
+ result: TaskResult;
1020
+ /**
1021
+ * Start time of the environment resource deployment execution
1022
+ */
1023
+ startTime: Date;
1024
+ }
714
1025
  /**
715
1026
  * EnvironmentResourceReference.
716
1027
  */
@@ -765,6 +1076,10 @@ export interface EnvironmentUpdateParameter {
765
1076
  }
766
1077
  export interface EventsConfig {
767
1078
  }
1079
+ export declare enum ExclusiveLockType {
1080
+ RunLatest = 0,
1081
+ Sequential = 1
1082
+ }
768
1083
  export interface ExpressionValidationItem extends ValidationItem {
769
1084
  }
770
1085
  export interface HelpLink {
@@ -788,27 +1103,68 @@ export interface InputValidationRequest {
788
1103
  [key: string]: ValidationItem;
789
1104
  };
790
1105
  }
1106
+ /**
1107
+ * An issue (error, warning) associated with a pipeline run.
1108
+ */
791
1109
  export interface Issue {
1110
+ /**
1111
+ * The category of the issue. \<br /\>Example: Code - refers to compilation errors \<br /\>Example: General - refers to generic errors
1112
+ */
792
1113
  category: string;
1114
+ /**
1115
+ * A dictionary containing details about the issue.
1116
+ */
793
1117
  data: {
794
1118
  [key: string]: string;
795
1119
  };
1120
+ /**
1121
+ * A description of issue.
1122
+ */
796
1123
  message: string;
1124
+ /**
1125
+ * The type (error, warning) of the issue.
1126
+ */
797
1127
  type: IssueType;
798
1128
  }
1129
+ /**
1130
+ * The type of issue based on severity.
1131
+ */
799
1132
  export declare enum IssueType {
800
1133
  Error = 1,
801
1134
  Warning = 2
802
1135
  }
803
1136
  export interface JobAssignedEvent extends JobEvent {
1137
+ /**
1138
+ * A pipeline job request for an agent.
1139
+ */
804
1140
  request: TaskAgentJobRequest;
805
1141
  }
1142
+ export interface JobCanceledEvent extends JobEvent {
1143
+ /**
1144
+ * The reason for job cancellation.
1145
+ */
1146
+ reason: string;
1147
+ /**
1148
+ * The job's timeout interval.
1149
+ */
1150
+ timeout: any;
1151
+ }
806
1152
  export interface JobCancelMessage {
807
1153
  jobId: string;
808
1154
  timeout: any;
809
1155
  }
810
1156
  export interface JobCompletedEvent extends JobEvent {
1157
+ /**
1158
+ * Indicates whether the agent is in the process of shutting down.
1159
+ */
1160
+ agentShuttingDown: boolean;
1161
+ /**
1162
+ * The ID of the request.
1163
+ */
811
1164
  requestId: number;
1165
+ /**
1166
+ * The result of the request.
1167
+ */
812
1168
  result: TaskResult;
813
1169
  }
814
1170
  /**
@@ -829,8 +1185,17 @@ export interface JobEnvironment {
829
1185
  [key: string]: string;
830
1186
  };
831
1187
  }
1188
+ /**
1189
+ * A pipeline job event to be processed by the execution plan.
1190
+ */
832
1191
  export interface JobEvent {
1192
+ /**
1193
+ * The ID of the pipeline job affected by the event.
1194
+ */
833
1195
  jobId: string;
1196
+ /**
1197
+ * The name of the pipeline job event.
1198
+ */
834
1199
  name: string;
835
1200
  }
836
1201
  export interface JobEventConfig {
@@ -841,6 +1206,25 @@ export interface JobEventsConfig extends EventsConfig {
841
1206
  jobCompleted: JobEventConfig;
842
1207
  jobStarted: JobEventConfig;
843
1208
  }
1209
+ export interface JobMetadataEvent extends JobEvent {
1210
+ /**
1211
+ * A message to be sent to an agent currently running the job.
1212
+ */
1213
+ message: JobMetadataMessage;
1214
+ }
1215
+ /**
1216
+ * A message to be sent to an agent currently running the job.
1217
+ */
1218
+ export interface JobMetadataMessage {
1219
+ /**
1220
+ * The id of the job.
1221
+ */
1222
+ jobId: string;
1223
+ /**
1224
+ * The agent's frequency of posting lines to the logs console expressed in milliseconds. There are 2 modes: Slow (10 seconds) and Fast (half a second).
1225
+ */
1226
+ postLinesFrequencyMillis: number;
1227
+ }
844
1228
  /**
845
1229
  * Represents an option that may affect the way an agent runs the job.
846
1230
  */
@@ -873,12 +1257,32 @@ export interface KubernetesResourceCreateParameters {
873
1257
  clusterName: string;
874
1258
  name: string;
875
1259
  namespace: string;
876
- serviceEndpointId: string;
877
1260
  /**
878
1261
  * Tags of the kubernetes resource.
879
1262
  */
880
1263
  tags: string[];
881
1264
  }
1265
+ export interface KubernetesResourceCreateParametersExistingEndpoint extends KubernetesResourceCreateParameters {
1266
+ serviceEndpointId: string;
1267
+ }
1268
+ export interface KubernetesResourceCreateParametersNewEndpoint extends KubernetesResourceCreateParameters {
1269
+ endpoint: ServiceEndpoint;
1270
+ }
1271
+ export interface KubernetesResourcePatchParameters {
1272
+ authorizationParameters: {
1273
+ [key: string]: string;
1274
+ };
1275
+ /**
1276
+ * Provider type (CustomProvider or AzureKubernetesServiceProvider) of the resource to be updated
1277
+ */
1278
+ providerType: string;
1279
+ resourceId: number;
1280
+ }
1281
+ export declare enum LogLevel {
1282
+ Error = 0,
1283
+ Warning = 1,
1284
+ Info = 2
1285
+ }
882
1286
  export declare enum MachineGroupActionFilter {
883
1287
  None = 0,
884
1288
  Manage = 2,
@@ -948,6 +1352,21 @@ export interface MetricsRow {
948
1352
  */
949
1353
  metrics: string[];
950
1354
  }
1355
+ export declare enum OperatingSystemType {
1356
+ Windows = 0,
1357
+ Linux = 1
1358
+ }
1359
+ export declare enum OperationType {
1360
+ ConfigurationJob = 0,
1361
+ SizingJob = 1,
1362
+ IncreaseCapacity = 2,
1363
+ Reimage = 3,
1364
+ DeleteVMs = 4
1365
+ }
1366
+ export declare enum OrchestrationType {
1367
+ Uniform = 0,
1368
+ Flexible = 1
1369
+ }
951
1370
  /**
952
1371
  * Represents a downloadable package.
953
1372
  */
@@ -1080,8 +1499,79 @@ export interface ResourceLimit {
1080
1499
  totalCount: number;
1081
1500
  totalMinutes: number;
1082
1501
  }
1502
+ /**
1503
+ * A request for a resource's exclusive lock
1504
+ */
1505
+ export interface ResourceLockRequest {
1506
+ /**
1507
+ * The date/time this request was assigned.
1508
+ */
1509
+ assignTime: Date;
1510
+ /**
1511
+ * The ID of the check run waiting on this request
1512
+ */
1513
+ checkRunId: string;
1514
+ /**
1515
+ * The ID of the pipeline that requested this resource
1516
+ */
1517
+ definitionId: number;
1518
+ /**
1519
+ * The date/time this request was finished.
1520
+ */
1521
+ finishTime: Date;
1522
+ /**
1523
+ * The behavior this request should exhibit in relation to other lock requests
1524
+ */
1525
+ lockType: ExclusiveLockType;
1526
+ /**
1527
+ * Attempt of the graph node
1528
+ */
1529
+ nodeAttempt: number;
1530
+ /**
1531
+ * Name of the graph node (currently stage) requesting this resource
1532
+ */
1533
+ nodeName: string;
1534
+ /**
1535
+ * Internal ID for the orchestration plan connected with this request.
1536
+ */
1537
+ planId: string;
1538
+ /**
1539
+ * The ID of the project of the check run and definition exist in
1540
+ */
1541
+ projectId: string;
1542
+ /**
1543
+ * The date/time this request was queued.
1544
+ */
1545
+ queueTime: Date;
1546
+ /**
1547
+ * ID of the request.
1548
+ */
1549
+ requestId: number;
1550
+ /**
1551
+ * The id of the resource
1552
+ */
1553
+ resourceId: string;
1554
+ /**
1555
+ * The type of the resource
1556
+ */
1557
+ resourceType: string;
1558
+ /**
1559
+ * The result of this request.
1560
+ */
1561
+ status: ResourceLockStatus;
1562
+ }
1563
+ export declare enum ResourceLockStatus {
1564
+ Queued = 0,
1565
+ InUse = 1,
1566
+ Finished = 2,
1567
+ TimedOut = 3,
1568
+ Canceled = 4,
1569
+ Abandoned = 5,
1570
+ WaitingOnChecks = 6
1571
+ }
1083
1572
  export interface ResourcesHubData {
1084
1573
  continuationToken: string;
1574
+ hasProjectLevelManagePermission: boolean;
1085
1575
  resourceFilterOptions: ResourceFilterOptions;
1086
1576
  resourceFilters: ResourceFilters;
1087
1577
  resourceItems: ResourceItem[];
@@ -1370,9 +1860,15 @@ export interface TaskAgent extends TaskAgentReference {
1370
1860
  * Date on which the last connectivity status change occurred.
1371
1861
  */
1372
1862
  statusChangedOn: Date;
1863
+ /**
1864
+ * System-defined capabilities supported by this agent's host. Warning: To set capabilities use the PUT method, PUT will completely overwrite existing capabilities.
1865
+ */
1373
1866
  systemCapabilities: {
1374
1867
  [key: string]: string;
1375
1868
  };
1869
+ /**
1870
+ * User-defined capabilities supported by this agent's host. Warning: To set capabilities use the PUT method, PUT will completely overwrite existing capabilities.
1871
+ */
1376
1872
  userCapabilities: {
1377
1873
  [key: string]: string;
1378
1874
  };
@@ -1444,9 +1940,7 @@ export interface TaskAgentCloudType {
1444
1940
  */
1445
1941
  name: string;
1446
1942
  }
1447
- export interface TaskAgentDelaySource {
1448
- delays: any[];
1449
- taskAgent: TaskAgentReference;
1943
+ export interface TaskAgentDowngrade extends TaskAgentUpdateReason {
1450
1944
  }
1451
1945
  export interface TaskAgentJob {
1452
1946
  container: string;
@@ -1462,7 +1956,6 @@ export interface TaskAgentJob {
1462
1956
  * A job request for an agent.
1463
1957
  */
1464
1958
  export interface TaskAgentJobRequest {
1465
- agentDelays: TaskAgentDelaySource[];
1466
1959
  agentSpecification: any;
1467
1960
  /**
1468
1961
  * The date/time this request was assigned.
@@ -1482,7 +1975,6 @@ export interface TaskAgentJobRequest {
1482
1975
  * A list of demands required to fulfill this request.
1483
1976
  */
1484
1977
  demands: Demand[];
1485
- expectedDuration: any;
1486
1978
  /**
1487
1979
  * The date/time this request was finished.
1488
1980
  */
@@ -1523,6 +2015,7 @@ export interface TaskAgentJobRequest {
1523
2015
  * The ID of the pool this request targets
1524
2016
  */
1525
2017
  poolId: number;
2018
+ priority: number;
1526
2019
  /**
1527
2020
  * The ID of the queue this request targets
1528
2021
  */
@@ -1591,6 +2084,7 @@ export interface TaskAgentJobStep {
1591
2084
  [key: string]: string;
1592
2085
  };
1593
2086
  name: string;
2087
+ retryCountOnTaskFailure: number;
1594
2088
  task: TaskAgentJobTask;
1595
2089
  timeoutInMinutes: number;
1596
2090
  type: TaskAgentJobStepType;
@@ -1653,6 +2147,10 @@ export interface TaskAgentPool extends TaskAgentPoolReference {
1653
2147
  * Whether or not the pool should autosize itself based on the Agent Cloud Provider settings.
1654
2148
  */
1655
2149
  autoSize: boolean;
2150
+ /**
2151
+ * Whether or not agents in this pool are allowed to automatically update
2152
+ */
2153
+ autoUpdate: boolean;
1656
2154
  /**
1657
2155
  * Creator of the pool. The creator of the pool is automatically added into the administrators group for the pool on creation.
1658
2156
  */
@@ -1667,7 +2165,7 @@ export interface TaskAgentPool extends TaskAgentPoolReference {
1667
2165
  owner: WebApi.IdentityRef;
1668
2166
  properties: any;
1669
2167
  /**
1670
- * Target parallelism.
2168
+ * Target parallelism - Only applies to agent pools that are backed by pool providers. It will be null for regular pools.
1671
2169
  */
1672
2170
  targetSize: number;
1673
2171
  }
@@ -1848,6 +2346,24 @@ export declare enum TaskAgentPoolMaintenanceScheduleDays {
1848
2346
  */
1849
2347
  All = 127
1850
2348
  }
2349
+ /**
2350
+ * Additional settings and descriptors for a TaskAgentPool
2351
+ */
2352
+ export declare enum TaskAgentPoolOptions {
2353
+ None = 0,
2354
+ /**
2355
+ * TaskAgentPool backed by the Elastic pool service
2356
+ */
2357
+ ElasticPool = 1,
2358
+ /**
2359
+ * Set to true if agents are re-imaged after each TaskAgentJobRequest
2360
+ */
2361
+ SingleUseAgents = 2,
2362
+ /**
2363
+ * Set to true if agents are held for investigation after a TaskAgentJobRequest failure
2364
+ */
2365
+ PreserveAgentOnJobFailure = 4
2366
+ }
1851
2367
  export interface TaskAgentPoolReference {
1852
2368
  id: number;
1853
2369
  /**
@@ -1859,6 +2375,10 @@ export interface TaskAgentPoolReference {
1859
2375
  */
1860
2376
  isLegacy: boolean;
1861
2377
  name: string;
2378
+ /**
2379
+ * Additional pool settings and details
2380
+ */
2381
+ options: TaskAgentPoolOptions;
1862
2382
  /**
1863
2383
  * Gets or sets the type of the pool
1864
2384
  */
@@ -1983,6 +2503,10 @@ export interface TaskAgentReference {
1983
2503
  */
1984
2504
  version: string;
1985
2505
  }
2506
+ export declare enum TaskAgentRequestUpdateOptions {
2507
+ None = 0,
2508
+ BumpRequestToTop = 1
2509
+ }
1986
2510
  /**
1987
2511
  * Represents a session for performing message exchanges from an agent.
1988
2512
  */
@@ -2075,7 +2599,8 @@ export interface TaskAgentUpdateReason {
2075
2599
  }
2076
2600
  export declare enum TaskAgentUpdateReasonType {
2077
2601
  Manual = 1,
2078
- MinAgentVersionRequired = 2
2602
+ MinAgentVersionRequired = 2,
2603
+ Downgrade = 3
2079
2604
  }
2080
2605
  export interface TaskAssignedEvent extends TaskEvent {
2081
2606
  }
@@ -2089,7 +2614,17 @@ export interface TaskAttachment {
2089
2614
  timelineId: string;
2090
2615
  type: string;
2091
2616
  }
2617
+ export declare enum TaskCommandMode {
2618
+ Any = 0,
2619
+ Restricted = 1
2620
+ }
2621
+ export interface TaskCommandRestrictions {
2622
+ mode: TaskCommandMode;
2623
+ }
2092
2624
  export interface TaskCompletedEvent extends TaskEvent {
2625
+ /**
2626
+ * The result of the task.
2627
+ */
2093
2628
  result: TaskResult;
2094
2629
  }
2095
2630
  export interface TaskDefinition {
@@ -2131,6 +2666,7 @@ export interface TaskDefinition {
2131
2666
  };
2132
2667
  preview: boolean;
2133
2668
  releaseNotes: string;
2669
+ restrictions: TaskRestrictions;
2134
2670
  runsOn: string[];
2135
2671
  satisfies: string[];
2136
2672
  serverOwned: boolean;
@@ -2192,6 +2728,9 @@ export declare enum TaskDefinitionStatus {
2192
2728
  InlineUpdateReceived = 9
2193
2729
  }
2194
2730
  export interface TaskEvent extends JobEvent {
2731
+ /**
2732
+ * The ID of the task definition.
2733
+ */
2195
2734
  taskId: string;
2196
2735
  }
2197
2736
  export interface TaskExecution {
@@ -2394,6 +2933,10 @@ export interface TaskGroupStep {
2394
2933
  inputs: {
2395
2934
  [key: string]: string;
2396
2935
  };
2936
+ /**
2937
+ * Gets or sets the maximum number of retries
2938
+ */
2939
+ retryCountOnTaskFailure: number;
2397
2940
  /**
2398
2941
  * Gets or sets the reference of the task.
2399
2942
  */
@@ -2480,7 +3023,6 @@ export interface TaskHubLicenseDetails {
2480
3023
  hostedAgentMinutesFreeCount: number;
2481
3024
  hostedAgentMinutesUsedCount: number;
2482
3025
  hostedLicensesArePremium: boolean;
2483
- marketplacePurchasedHostedLicenses: MarketplacePurchasedLicense[];
2484
3026
  msdnUsersCount: number;
2485
3027
  /**
2486
3028
  * Microsoft-hosted licenses purchased from VSTS directly.
@@ -2494,6 +3036,9 @@ export interface TaskHubLicenseDetails {
2494
3036
  totalLicenseCount: number;
2495
3037
  totalPrivateLicenseCount: number;
2496
3038
  }
3039
+ export interface TaskHubOidcToken {
3040
+ oidcToken: string;
3041
+ }
2497
3042
  export interface TaskInputDefinition extends DistributedTaskCommon.TaskInputDefinitionBase {
2498
3043
  }
2499
3044
  export interface TaskInstance extends TaskReference {
@@ -2507,17 +3052,45 @@ export interface TaskInstance extends TaskReference {
2507
3052
  };
2508
3053
  instanceId: string;
2509
3054
  refName: string;
3055
+ retryCountOnTaskFailure: number;
2510
3056
  timeoutInMinutes: number;
2511
3057
  }
3058
+ /**
3059
+ * A task log connected to a timeline record.
3060
+ */
2512
3061
  export interface TaskLog extends TaskLogReference {
3062
+ /**
3063
+ * The time of the task log creation.
3064
+ */
2513
3065
  createdOn: Date;
3066
+ /**
3067
+ * The REST URL of the task log when indexed.
3068
+ */
2514
3069
  indexLocation: string;
3070
+ /**
3071
+ * The time of the last modification of the task log.
3072
+ */
2515
3073
  lastChangedOn: Date;
3074
+ /**
3075
+ * The number of the task log lines.
3076
+ */
2516
3077
  lineCount: number;
3078
+ /**
3079
+ * The path of the task log.
3080
+ */
2517
3081
  path: string;
2518
3082
  }
3083
+ /**
3084
+ * A reference to a task log. This class contains information about the output printed to the timeline record's logs console during pipeline run.
3085
+ */
2519
3086
  export interface TaskLogReference {
3087
+ /**
3088
+ * The ID of the task log.
3089
+ */
2520
3090
  id: number;
3091
+ /**
3092
+ * The REST URL of the task log.
3093
+ */
2521
3094
  location: string;
2522
3095
  }
2523
3096
  export interface TaskOrchestrationContainer extends TaskOrchestrationItem {
@@ -2557,6 +3130,7 @@ export interface TaskOrchestrationOwner {
2557
3130
  }
2558
3131
  export interface TaskOrchestrationPlan extends TaskOrchestrationPlanReference {
2559
3132
  environment: PlanEnvironment;
3133
+ expandedYaml: TaskLogReference;
2560
3134
  finishTime: Date;
2561
3135
  implementation: TaskOrchestrationContainer;
2562
3136
  initializationLog: TaskLogReference;
@@ -2631,14 +3205,36 @@ export interface TaskPackageMetadata {
2631
3205
  */
2632
3206
  version: string;
2633
3207
  }
3208
+ /**
3209
+ * A reference to a task.
3210
+ */
2634
3211
  export interface TaskReference {
3212
+ /**
3213
+ * The ID of the task definition. Corresponds to the id value of task.json file. \<br /\>Example: CmdLineV2 \{ "id": "D9BAFED4-0B18-4F58-968D-86655B4D2CE9" \}
3214
+ */
2635
3215
  id: string;
3216
+ /**
3217
+ * A dictionary of inputs specific to a task definition. Corresponds to inputs value of task.json file.
3218
+ */
2636
3219
  inputs: {
2637
3220
  [key: string]: string;
2638
3221
  };
3222
+ /**
3223
+ * The name of the task definition. Corresponds to the name value of task.json file. \<br /\>Example: CmdLineV2 \{ "name": "CmdLine" \}
3224
+ */
2639
3225
  name: string;
3226
+ /**
3227
+ * The version of the task definition. Corresponds to the version value of task.json file. \<br /\>Example: CmdLineV2 \{ "version": \{ "Major": 2, "Minor": 212, "Patch": 0 \} \}
3228
+ */
2640
3229
  version: string;
2641
3230
  }
3231
+ export interface TaskRestrictions {
3232
+ commands: TaskCommandRestrictions;
3233
+ settableVariables: TaskVariableRestrictions;
3234
+ }
3235
+ /**
3236
+ * The result of an operation tracked by a timeline record.
3237
+ */
2642
3238
  export declare enum TaskResult {
2643
3239
  Succeeded = 0,
2644
3240
  SucceededWithIssues = 1,
@@ -2651,6 +3247,9 @@ export interface TaskSourceDefinition extends DistributedTaskCommon.TaskSourceDe
2651
3247
  }
2652
3248
  export interface TaskStartedEvent extends TaskEvent {
2653
3249
  }
3250
+ export interface TaskVariableRestrictions {
3251
+ allowed: string[];
3252
+ }
2654
3253
  export interface TaskVersion {
2655
3254
  isTest: boolean;
2656
3255
  major: number;
@@ -2662,55 +3261,148 @@ export interface Timeline extends TimelineReference {
2662
3261
  lastChangedOn: Date;
2663
3262
  records: TimelineRecord[];
2664
3263
  }
3264
+ /**
3265
+ * An attempt to update a TimelineRecord.
3266
+ */
2665
3267
  export interface TimelineAttempt {
2666
3268
  /**
2667
- * Gets or sets the attempt of the record.
3269
+ * The attempt of the record.
2668
3270
  */
2669
3271
  attempt: number;
2670
3272
  /**
2671
- * Gets or sets the unique identifier for the record.
3273
+ * The unique identifier for the record.
2672
3274
  */
2673
3275
  identifier: string;
2674
3276
  /**
2675
- * Gets or sets the record identifier located within the specified timeline.
3277
+ * The record identifier located within the specified timeline.
2676
3278
  */
2677
3279
  recordId: string;
2678
3280
  /**
2679
- * Gets or sets the timeline identifier which owns the record representing this attempt.
3281
+ * The timeline identifier which owns the record representing this attempt.
2680
3282
  */
2681
3283
  timelineId: string;
2682
3284
  }
3285
+ /**
3286
+ * Detailed information about the execution of different operations during pipeline run.
3287
+ */
2683
3288
  export interface TimelineRecord {
3289
+ /**
3290
+ * The specification of an agent running a pipeline job, in binary format. Applicable when record is of type Job. \<br /\>Example: \{ "VMImage" : "windows-2019" \}
3291
+ */
2684
3292
  agentSpecification: any;
3293
+ /**
3294
+ * The number of record attempts.
3295
+ */
2685
3296
  attempt: number;
3297
+ /**
3298
+ * The ID connecting all records updated at the same time. This value is taken from timeline's ChangeId.
3299
+ */
2686
3300
  changeId: number;
3301
+ /**
3302
+ * A string that indicates the current operation.
3303
+ */
2687
3304
  currentOperation: string;
3305
+ /**
3306
+ * A reference to a sub-timeline.
3307
+ */
2688
3308
  details: TimelineReference;
3309
+ /**
3310
+ * The number of errors produced by this operation.
3311
+ */
2689
3312
  errorCount: number;
3313
+ /**
3314
+ * The finish time of the record.
3315
+ */
2690
3316
  finishTime: Date;
3317
+ /**
3318
+ * The ID of the record.
3319
+ */
2691
3320
  id: string;
3321
+ /**
3322
+ * String identifier that is consistent across attempts.
3323
+ */
2692
3324
  identifier: string;
3325
+ /**
3326
+ * The list of issues produced by this operation.
3327
+ */
2693
3328
  issues: Issue[];
3329
+ /**
3330
+ * The time the record was last modified.
3331
+ */
2694
3332
  lastModified: Date;
3333
+ /**
3334
+ * The REST URL of the record.
3335
+ */
2695
3336
  location: string;
3337
+ /**
3338
+ * A reference to the log produced by this operation.
3339
+ */
2696
3340
  log: TaskLogReference;
3341
+ /**
3342
+ * The name of the record.
3343
+ */
2697
3344
  name: string;
3345
+ /**
3346
+ * An ordinal value relative to other records within the timeline.
3347
+ */
2698
3348
  order: number;
3349
+ /**
3350
+ * The ID of the record's parent. \<br /\>Example: Stage is a parent of a Phase, Phase is a parent of a Job, Job is a parent of a Task.
3351
+ */
2699
3352
  parentId: string;
3353
+ /**
3354
+ * The percentage of record completion.
3355
+ */
2700
3356
  percentComplete: number;
3357
+ /**
3358
+ * The previous record attempts.
3359
+ */
2701
3360
  previousAttempts: TimelineAttempt[];
3361
+ /**
3362
+ * The ID of the queue which connects projects to agent pools on which the operation ran on. Applicable when record is of type Job.
3363
+ */
2702
3364
  queueId: number;
3365
+ /**
3366
+ * Name of the referenced record.
3367
+ */
2703
3368
  refName: string;
3369
+ /**
3370
+ * The result of the record.
3371
+ */
2704
3372
  result: TaskResult;
3373
+ /**
3374
+ * Evaluation of predefined conditions upon completion of record's operation. \<br /\>Example: Evaluating \`succeeded()\`, Result = True \<br /\>Example: Evaluating \`and(succeeded(), eq(variables['system.debug'], False))\`, Result = False
3375
+ */
2705
3376
  resultCode: string;
3377
+ /**
3378
+ * The start time of the record.
3379
+ */
2706
3380
  startTime: Date;
3381
+ /**
3382
+ * The state of the record.
3383
+ */
2707
3384
  state: TimelineRecordState;
3385
+ /**
3386
+ * A reference to the task. Applicable when record is of type Task.
3387
+ */
2708
3388
  task: TaskReference;
3389
+ /**
3390
+ * The type of operation being tracked by the record. \<br /\>Example: Stage, Phase, Job, Task...
3391
+ */
2709
3392
  type: string;
3393
+ /**
3394
+ * The variables of the record.
3395
+ */
2710
3396
  variables: {
2711
3397
  [key: string]: VariableValue;
2712
3398
  };
3399
+ /**
3400
+ * The number of warnings produced by this operation.
3401
+ */
2713
3402
  warningCount: number;
3403
+ /**
3404
+ * The name of the agent running the operation. Applicable when record is of type Job.
3405
+ */
2714
3406
  workerName: string;
2715
3407
  }
2716
3408
  export interface TimelineRecordFeedLinesWrapper {
@@ -2720,14 +3412,29 @@ export interface TimelineRecordFeedLinesWrapper {
2720
3412
  stepId: string;
2721
3413
  value: string[];
2722
3414
  }
3415
+ /**
3416
+ * The state of the timeline record.
3417
+ */
2723
3418
  export declare enum TimelineRecordState {
2724
3419
  Pending = 0,
2725
3420
  InProgress = 1,
2726
3421
  Completed = 2
2727
3422
  }
3423
+ /**
3424
+ * A reference to a timeline.
3425
+ */
2728
3426
  export interface TimelineReference {
3427
+ /**
3428
+ * The change ID.
3429
+ */
2729
3430
  changeId: number;
3431
+ /**
3432
+ * The ID of the timeline.
3433
+ */
2730
3434
  id: string;
3435
+ /**
3436
+ * The REST URL of the timeline.
3437
+ */
2731
3438
  location: string;
2732
3439
  }
2733
3440
  export interface ValidationItem {
@@ -2868,8 +3575,21 @@ export declare enum VariableGroupQueryOrder {
2868
3575
  */
2869
3576
  IdDescending = 1
2870
3577
  }
3578
+ /**
3579
+ * A wrapper class for a generic variable.
3580
+ */
2871
3581
  export interface VariableValue {
3582
+ /**
3583
+ * Indicates whether the variable can be changed during script's execution runtime.
3584
+ */
3585
+ isReadOnly: boolean;
3586
+ /**
3587
+ * Indicates whether the variable should be encrypted at rest.
3588
+ */
2872
3589
  isSecret: boolean;
3590
+ /**
3591
+ * The value of the variable.
3592
+ */
2873
3593
  value: string;
2874
3594
  }
2875
3595
  export interface VirtualMachine {
@@ -2887,5 +3607,5 @@ export interface VirtualMachineResource extends EnvironmentResource {
2887
3607
  agent: TaskAgent;
2888
3608
  }
2889
3609
  export interface VirtualMachineResourceCreateParameters {
2890
- name: string;
3610
+ virtualMachineResource: VirtualMachineResource;
2891
3611
  }