azure-devops-extension-api 1.158.0 → 2.220.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.
- package/Accounts/AccountsClient.d.ts +1 -1
- package/Accounts/AccountsClient.js +4 -4
- package/Accounts/AccountsClient.min.js +1 -1
- package/Build/Build.d.ts +205 -3
- package/Build/Build.js +6 -2
- package/Build/Build.min.js +1 -1
- package/Build/BuildClient.d.ts +121 -13
- package/Build/BuildClient.js +468 -101
- package/Build/BuildClient.min.js +1 -1
- package/Contributions/Contributions.d.ts +1 -1
- package/Contributions/ContributionsClient.js +4 -4
- package/Contributions/ContributionsClient.min.js +1 -1
- package/Core/CoreClient.d.ts +2 -2
- package/Core/CoreClient.js +49 -36
- package/Core/CoreClient.min.js +1 -1
- package/Dashboard/Dashboard.d.ts +79 -2
- package/Dashboard/Dashboard.js +10 -0
- package/Dashboard/Dashboard.min.js +1 -1
- package/Dashboard/DashboardClient.d.ts +2 -2
- package/Dashboard/DashboardClient.js +15 -15
- package/Dashboard/DashboardClient.min.js +1 -1
- package/ExtensionManagement/ExtensionManagement.d.ts +2 -2
- package/ExtensionManagement/ExtensionManagementClient.d.ts +2 -2
- package/ExtensionManagement/ExtensionManagementClient.js +27 -27
- package/ExtensionManagement/ExtensionManagementClient.min.js +1 -1
- package/Favorite/Favorite.d.ts +124 -0
- package/Favorite/Favorite.js +9 -0
- package/Favorite/Favorite.min.js +1 -0
- package/Favorite/FavoriteClient.d.ts +78 -0
- package/Favorite/FavoriteClient.js +314 -0
- package/Favorite/FavoriteClient.min.js +1 -0
- package/FeatureAvailability/FeatureAvailabilityClient.js +5 -5
- package/FeatureAvailability/FeatureAvailabilityClient.min.js +1 -1
- package/FeatureManagement/FeatureManagementClient.js +9 -9
- package/FeatureManagement/FeatureManagementClient.min.js +1 -1
- package/FileContainer/FileContainer.d.ts +22 -0
- package/FileContainer/FileContainer.js +8 -0
- package/FileContainer/FileContainer.min.js +1 -1
- package/FileContainer/FileContainerClient.d.ts +5 -2
- package/FileContainer/FileContainerClient.js +13 -7
- package/FileContainer/FileContainerClient.min.js +1 -1
- package/FormInput/FormInput.d.ts +1 -1
- package/Gallery/Gallery.d.ts +92 -7
- package/Gallery/Gallery.js +25 -3
- package/Gallery/Gallery.min.js +1 -1
- package/Gallery/GalleryClient.d.ts +41 -9
- package/Gallery/GalleryClient.js +211 -90
- package/Gallery/GalleryClient.min.js +1 -1
- package/Git/Git.d.ts +121 -7
- package/Git/Git.js +2 -1
- package/Git/Git.min.js +1 -1
- package/Git/GitClient.d.ts +182 -28
- package/Git/GitClient.js +657 -162
- package/Git/GitClient.min.js +1 -1
- package/Graph/Graph.d.ts +107 -17
- package/Graph/GraphClient.d.ts +42 -3
- package/Graph/GraphClient.js +159 -38
- package/Graph/GraphClient.min.js +1 -1
- package/Identities/Identities.d.ts +15 -0
- package/Locations/LocationsClient.js +9 -9
- package/Locations/LocationsClient.min.js +1 -1
- package/Notification/Notification.d.ts +3 -3
- package/Notification/NotificationClient.d.ts +6 -0
- package/Notification/NotificationClient.js +40 -23
- package/Notification/NotificationClient.min.js +1 -1
- package/Operations/OperationsClient.d.ts +1 -1
- package/Operations/OperationsClient.js +2 -2
- package/Operations/OperationsClient.min.js +1 -1
- package/Pipelines/Pipelines.d.ts +318 -0
- package/Pipelines/Pipelines.js +82 -0
- package/Pipelines/Pipelines.min.js +1 -0
- package/Pipelines/PipelinesClient.d.ts +92 -0
- package/Pipelines/PipelinesClient.js +325 -0
- package/Pipelines/PipelinesClient.min.js +1 -0
- package/Policy/Policy.d.ts +4 -0
- package/Policy/PolicyClient.d.ts +3 -3
- package/Policy/PolicyClient.js +30 -19
- package/Policy/PolicyClient.min.js +1 -1
- package/Profile/ProfileClient.js +12 -12
- package/Profile/ProfileClient.min.js +1 -1
- package/ProjectAnalysis/ProjectAnalysisClient.js +4 -4
- package/ProjectAnalysis/ProjectAnalysisClient.min.js +1 -1
- package/Release/Release.d.ts +81 -7
- package/Release/Release.js +11 -0
- package/Release/Release.min.js +1 -1
- package/Release/ReleaseClient.d.ts +31 -5
- package/Release/ReleaseClient.js +223 -95
- package/Release/ReleaseClient.min.js +1 -1
- package/ServiceEndpoint/ServiceEndpoint.d.ts +11 -2
- package/ServiceEndpoint/ServiceEndpoint.js +1 -0
- package/ServiceEndpoint/ServiceEndpoint.min.js +1 -1
- package/ServiceEndpoint/ServiceEndpointClient.d.ts +33 -31
- package/ServiceEndpoint/ServiceEndpointClient.js +122 -107
- package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -1
- package/ServiceHooks/ServiceHooks.d.ts +2 -1
- package/ServiceHooks/ServiceHooksClient.js +23 -23
- package/ServiceHooks/ServiceHooksClient.min.js +1 -1
- package/TaskAgent/TaskAgent.d.ts +740 -17
- package/TaskAgent/TaskAgent.js +133 -0
- package/TaskAgent/TaskAgent.min.js +1 -1
- package/TaskAgent/TaskAgentClient.d.ts +28 -16
- package/TaskAgent/TaskAgentClient.js +336 -195
- package/TaskAgent/TaskAgentClient.min.js +1 -1
- package/Test/Test.d.ts +96 -25
- package/Test/Test.js +8 -0
- package/Test/Test.min.js +1 -1
- package/Test/TestClient.d.ts +17 -34
- package/Test/TestClient.js +163 -152
- package/Test/TestClient.min.js +1 -1
- package/TestPlan/TestPlan.d.ts +215 -18
- package/TestPlan/TestPlan.js +47 -1
- package/TestPlan/TestPlan.min.js +1 -1
- package/TestPlan/TestPlanClient.d.ts +48 -14
- package/TestPlan/TestPlanClient.js +255 -74
- package/TestPlan/TestPlanClient.min.js +1 -1
- package/TestResults/TestResultsClient.d.ts +112 -27
- package/TestResults/TestResultsClient.js +518 -134
- package/TestResults/TestResultsClient.min.js +1 -1
- package/Tfvc/Tfvc.d.ts +9 -1
- package/Tfvc/TfvcClient.d.ts +3 -2
- package/Tfvc/TfvcClient.js +41 -28
- package/Tfvc/TfvcClient.min.js +1 -1
- package/WebApi/WebApi.d.ts +22 -3
- package/Wiki/Wiki.d.ts +51 -0
- package/Wiki/WikiClient.d.ts +18 -0
- package/Wiki/WikiClient.js +71 -1
- package/Wiki/WikiClient.min.js +1 -1
- package/Work/Work.d.ts +68 -1
- package/Work/WorkClient.d.ts +10 -3
- package/Work/WorkClient.js +78 -58
- package/Work/WorkClient.min.js +1 -1
- package/WorkItemTracking/WorkItemTracking.d.ts +221 -1
- package/WorkItemTracking/WorkItemTrackingClient.d.ts +18 -2
- package/WorkItemTracking/WorkItemTrackingClient.js +107 -60
- package/WorkItemTracking/WorkItemTrackingClient.min.js +1 -1
- package/WorkItemTrackingProcess/WorkItemTrackingProcess.d.ts +15 -2
- package/WorkItemTrackingProcess/WorkItemTrackingProcess.js +4 -0
- package/WorkItemTrackingProcess/WorkItemTrackingProcess.min.js +1 -1
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.d.ts +1 -1
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.js +58 -58
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.min.js +1 -1
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.d.ts +3 -1
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.d.ts +9 -1
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.js +69 -46
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.min.js +1 -1
- package/package.json +3 -3
package/TaskAgent/TaskAgent.d.ts
CHANGED
|
@@ -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
|
|
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,10 +2614,23 @@ 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 {
|
|
2631
|
+
_buildConfigMapping: {
|
|
2632
|
+
[key: string]: string;
|
|
2633
|
+
};
|
|
2096
2634
|
agentExecution: TaskExecution;
|
|
2097
2635
|
author: string;
|
|
2098
2636
|
category: string;
|
|
@@ -2131,6 +2669,7 @@ export interface TaskDefinition {
|
|
|
2131
2669
|
};
|
|
2132
2670
|
preview: boolean;
|
|
2133
2671
|
releaseNotes: string;
|
|
2672
|
+
restrictions: TaskRestrictions;
|
|
2134
2673
|
runsOn: string[];
|
|
2135
2674
|
satisfies: string[];
|
|
2136
2675
|
serverOwned: boolean;
|
|
@@ -2192,6 +2731,9 @@ export declare enum TaskDefinitionStatus {
|
|
|
2192
2731
|
InlineUpdateReceived = 9
|
|
2193
2732
|
}
|
|
2194
2733
|
export interface TaskEvent extends JobEvent {
|
|
2734
|
+
/**
|
|
2735
|
+
* The ID of the task definition.
|
|
2736
|
+
*/
|
|
2195
2737
|
taskId: string;
|
|
2196
2738
|
}
|
|
2197
2739
|
export interface TaskExecution {
|
|
@@ -2394,6 +2936,10 @@ export interface TaskGroupStep {
|
|
|
2394
2936
|
inputs: {
|
|
2395
2937
|
[key: string]: string;
|
|
2396
2938
|
};
|
|
2939
|
+
/**
|
|
2940
|
+
* Gets or sets the maximum number of retries
|
|
2941
|
+
*/
|
|
2942
|
+
retryCountOnTaskFailure: number;
|
|
2397
2943
|
/**
|
|
2398
2944
|
* Gets or sets the reference of the task.
|
|
2399
2945
|
*/
|
|
@@ -2480,7 +3026,6 @@ export interface TaskHubLicenseDetails {
|
|
|
2480
3026
|
hostedAgentMinutesFreeCount: number;
|
|
2481
3027
|
hostedAgentMinutesUsedCount: number;
|
|
2482
3028
|
hostedLicensesArePremium: boolean;
|
|
2483
|
-
marketplacePurchasedHostedLicenses: MarketplacePurchasedLicense[];
|
|
2484
3029
|
msdnUsersCount: number;
|
|
2485
3030
|
/**
|
|
2486
3031
|
* Microsoft-hosted licenses purchased from VSTS directly.
|
|
@@ -2494,6 +3039,9 @@ export interface TaskHubLicenseDetails {
|
|
|
2494
3039
|
totalLicenseCount: number;
|
|
2495
3040
|
totalPrivateLicenseCount: number;
|
|
2496
3041
|
}
|
|
3042
|
+
export interface TaskHubOidcToken {
|
|
3043
|
+
oidcToken: string;
|
|
3044
|
+
}
|
|
2497
3045
|
export interface TaskInputDefinition extends DistributedTaskCommon.TaskInputDefinitionBase {
|
|
2498
3046
|
}
|
|
2499
3047
|
export interface TaskInstance extends TaskReference {
|
|
@@ -2507,17 +3055,45 @@ export interface TaskInstance extends TaskReference {
|
|
|
2507
3055
|
};
|
|
2508
3056
|
instanceId: string;
|
|
2509
3057
|
refName: string;
|
|
3058
|
+
retryCountOnTaskFailure: number;
|
|
2510
3059
|
timeoutInMinutes: number;
|
|
2511
3060
|
}
|
|
3061
|
+
/**
|
|
3062
|
+
* A task log connected to a timeline record.
|
|
3063
|
+
*/
|
|
2512
3064
|
export interface TaskLog extends TaskLogReference {
|
|
3065
|
+
/**
|
|
3066
|
+
* The time of the task log creation.
|
|
3067
|
+
*/
|
|
2513
3068
|
createdOn: Date;
|
|
3069
|
+
/**
|
|
3070
|
+
* The REST URL of the task log when indexed.
|
|
3071
|
+
*/
|
|
2514
3072
|
indexLocation: string;
|
|
3073
|
+
/**
|
|
3074
|
+
* The time of the last modification of the task log.
|
|
3075
|
+
*/
|
|
2515
3076
|
lastChangedOn: Date;
|
|
3077
|
+
/**
|
|
3078
|
+
* The number of the task log lines.
|
|
3079
|
+
*/
|
|
2516
3080
|
lineCount: number;
|
|
3081
|
+
/**
|
|
3082
|
+
* The path of the task log.
|
|
3083
|
+
*/
|
|
2517
3084
|
path: string;
|
|
2518
3085
|
}
|
|
3086
|
+
/**
|
|
3087
|
+
* A reference to a task log. This class contains information about the output printed to the timeline record's logs console during pipeline run.
|
|
3088
|
+
*/
|
|
2519
3089
|
export interface TaskLogReference {
|
|
3090
|
+
/**
|
|
3091
|
+
* The ID of the task log.
|
|
3092
|
+
*/
|
|
2520
3093
|
id: number;
|
|
3094
|
+
/**
|
|
3095
|
+
* The REST URL of the task log.
|
|
3096
|
+
*/
|
|
2521
3097
|
location: string;
|
|
2522
3098
|
}
|
|
2523
3099
|
export interface TaskOrchestrationContainer extends TaskOrchestrationItem {
|
|
@@ -2557,6 +3133,7 @@ export interface TaskOrchestrationOwner {
|
|
|
2557
3133
|
}
|
|
2558
3134
|
export interface TaskOrchestrationPlan extends TaskOrchestrationPlanReference {
|
|
2559
3135
|
environment: PlanEnvironment;
|
|
3136
|
+
expandedYaml: TaskLogReference;
|
|
2560
3137
|
finishTime: Date;
|
|
2561
3138
|
implementation: TaskOrchestrationContainer;
|
|
2562
3139
|
initializationLog: TaskLogReference;
|
|
@@ -2631,14 +3208,36 @@ export interface TaskPackageMetadata {
|
|
|
2631
3208
|
*/
|
|
2632
3209
|
version: string;
|
|
2633
3210
|
}
|
|
3211
|
+
/**
|
|
3212
|
+
* A reference to a task.
|
|
3213
|
+
*/
|
|
2634
3214
|
export interface TaskReference {
|
|
3215
|
+
/**
|
|
3216
|
+
* The ID of the task definition. Corresponds to the id value of task.json file. \<br /\>Example: CmdLineV2 \{ "id": "D9BAFED4-0B18-4F58-968D-86655B4D2CE9" \}
|
|
3217
|
+
*/
|
|
2635
3218
|
id: string;
|
|
3219
|
+
/**
|
|
3220
|
+
* A dictionary of inputs specific to a task definition. Corresponds to inputs value of task.json file.
|
|
3221
|
+
*/
|
|
2636
3222
|
inputs: {
|
|
2637
3223
|
[key: string]: string;
|
|
2638
3224
|
};
|
|
3225
|
+
/**
|
|
3226
|
+
* The name of the task definition. Corresponds to the name value of task.json file. \<br /\>Example: CmdLineV2 \{ "name": "CmdLine" \}
|
|
3227
|
+
*/
|
|
2639
3228
|
name: string;
|
|
3229
|
+
/**
|
|
3230
|
+
* 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 \} \}
|
|
3231
|
+
*/
|
|
2640
3232
|
version: string;
|
|
2641
3233
|
}
|
|
3234
|
+
export interface TaskRestrictions {
|
|
3235
|
+
commands: TaskCommandRestrictions;
|
|
3236
|
+
settableVariables: TaskVariableRestrictions;
|
|
3237
|
+
}
|
|
3238
|
+
/**
|
|
3239
|
+
* The result of an operation tracked by a timeline record.
|
|
3240
|
+
*/
|
|
2642
3241
|
export declare enum TaskResult {
|
|
2643
3242
|
Succeeded = 0,
|
|
2644
3243
|
SucceededWithIssues = 1,
|
|
@@ -2651,6 +3250,9 @@ export interface TaskSourceDefinition extends DistributedTaskCommon.TaskSourceDe
|
|
|
2651
3250
|
}
|
|
2652
3251
|
export interface TaskStartedEvent extends TaskEvent {
|
|
2653
3252
|
}
|
|
3253
|
+
export interface TaskVariableRestrictions {
|
|
3254
|
+
allowed: string[];
|
|
3255
|
+
}
|
|
2654
3256
|
export interface TaskVersion {
|
|
2655
3257
|
isTest: boolean;
|
|
2656
3258
|
major: number;
|
|
@@ -2662,55 +3264,148 @@ export interface Timeline extends TimelineReference {
|
|
|
2662
3264
|
lastChangedOn: Date;
|
|
2663
3265
|
records: TimelineRecord[];
|
|
2664
3266
|
}
|
|
3267
|
+
/**
|
|
3268
|
+
* An attempt to update a TimelineRecord.
|
|
3269
|
+
*/
|
|
2665
3270
|
export interface TimelineAttempt {
|
|
2666
3271
|
/**
|
|
2667
|
-
*
|
|
3272
|
+
* The attempt of the record.
|
|
2668
3273
|
*/
|
|
2669
3274
|
attempt: number;
|
|
2670
3275
|
/**
|
|
2671
|
-
*
|
|
3276
|
+
* The unique identifier for the record.
|
|
2672
3277
|
*/
|
|
2673
3278
|
identifier: string;
|
|
2674
3279
|
/**
|
|
2675
|
-
*
|
|
3280
|
+
* The record identifier located within the specified timeline.
|
|
2676
3281
|
*/
|
|
2677
3282
|
recordId: string;
|
|
2678
3283
|
/**
|
|
2679
|
-
*
|
|
3284
|
+
* The timeline identifier which owns the record representing this attempt.
|
|
2680
3285
|
*/
|
|
2681
3286
|
timelineId: string;
|
|
2682
3287
|
}
|
|
3288
|
+
/**
|
|
3289
|
+
* Detailed information about the execution of different operations during pipeline run.
|
|
3290
|
+
*/
|
|
2683
3291
|
export interface TimelineRecord {
|
|
3292
|
+
/**
|
|
3293
|
+
* The specification of an agent running a pipeline job, in binary format. Applicable when record is of type Job. \<br /\>Example: \{ "VMImage" : "windows-2019" \}
|
|
3294
|
+
*/
|
|
2684
3295
|
agentSpecification: any;
|
|
3296
|
+
/**
|
|
3297
|
+
* The number of record attempts.
|
|
3298
|
+
*/
|
|
2685
3299
|
attempt: number;
|
|
3300
|
+
/**
|
|
3301
|
+
* The ID connecting all records updated at the same time. This value is taken from timeline's ChangeId.
|
|
3302
|
+
*/
|
|
2686
3303
|
changeId: number;
|
|
3304
|
+
/**
|
|
3305
|
+
* A string that indicates the current operation.
|
|
3306
|
+
*/
|
|
2687
3307
|
currentOperation: string;
|
|
3308
|
+
/**
|
|
3309
|
+
* A reference to a sub-timeline.
|
|
3310
|
+
*/
|
|
2688
3311
|
details: TimelineReference;
|
|
3312
|
+
/**
|
|
3313
|
+
* The number of errors produced by this operation.
|
|
3314
|
+
*/
|
|
2689
3315
|
errorCount: number;
|
|
3316
|
+
/**
|
|
3317
|
+
* The finish time of the record.
|
|
3318
|
+
*/
|
|
2690
3319
|
finishTime: Date;
|
|
3320
|
+
/**
|
|
3321
|
+
* The ID of the record.
|
|
3322
|
+
*/
|
|
2691
3323
|
id: string;
|
|
3324
|
+
/**
|
|
3325
|
+
* String identifier that is consistent across attempts.
|
|
3326
|
+
*/
|
|
2692
3327
|
identifier: string;
|
|
3328
|
+
/**
|
|
3329
|
+
* The list of issues produced by this operation.
|
|
3330
|
+
*/
|
|
2693
3331
|
issues: Issue[];
|
|
3332
|
+
/**
|
|
3333
|
+
* The time the record was last modified.
|
|
3334
|
+
*/
|
|
2694
3335
|
lastModified: Date;
|
|
3336
|
+
/**
|
|
3337
|
+
* The REST URL of the record.
|
|
3338
|
+
*/
|
|
2695
3339
|
location: string;
|
|
3340
|
+
/**
|
|
3341
|
+
* A reference to the log produced by this operation.
|
|
3342
|
+
*/
|
|
2696
3343
|
log: TaskLogReference;
|
|
3344
|
+
/**
|
|
3345
|
+
* The name of the record.
|
|
3346
|
+
*/
|
|
2697
3347
|
name: string;
|
|
3348
|
+
/**
|
|
3349
|
+
* An ordinal value relative to other records within the timeline.
|
|
3350
|
+
*/
|
|
2698
3351
|
order: number;
|
|
3352
|
+
/**
|
|
3353
|
+
* 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.
|
|
3354
|
+
*/
|
|
2699
3355
|
parentId: string;
|
|
3356
|
+
/**
|
|
3357
|
+
* The percentage of record completion.
|
|
3358
|
+
*/
|
|
2700
3359
|
percentComplete: number;
|
|
3360
|
+
/**
|
|
3361
|
+
* The previous record attempts.
|
|
3362
|
+
*/
|
|
2701
3363
|
previousAttempts: TimelineAttempt[];
|
|
3364
|
+
/**
|
|
3365
|
+
* The ID of the queue which connects projects to agent pools on which the operation ran on. Applicable when record is of type Job.
|
|
3366
|
+
*/
|
|
2702
3367
|
queueId: number;
|
|
3368
|
+
/**
|
|
3369
|
+
* Name of the referenced record.
|
|
3370
|
+
*/
|
|
2703
3371
|
refName: string;
|
|
3372
|
+
/**
|
|
3373
|
+
* The result of the record.
|
|
3374
|
+
*/
|
|
2704
3375
|
result: TaskResult;
|
|
3376
|
+
/**
|
|
3377
|
+
* 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
|
|
3378
|
+
*/
|
|
2705
3379
|
resultCode: string;
|
|
3380
|
+
/**
|
|
3381
|
+
* The start time of the record.
|
|
3382
|
+
*/
|
|
2706
3383
|
startTime: Date;
|
|
3384
|
+
/**
|
|
3385
|
+
* The state of the record.
|
|
3386
|
+
*/
|
|
2707
3387
|
state: TimelineRecordState;
|
|
3388
|
+
/**
|
|
3389
|
+
* A reference to the task. Applicable when record is of type Task.
|
|
3390
|
+
*/
|
|
2708
3391
|
task: TaskReference;
|
|
3392
|
+
/**
|
|
3393
|
+
* The type of operation being tracked by the record. \<br /\>Example: Stage, Phase, Job, Task...
|
|
3394
|
+
*/
|
|
2709
3395
|
type: string;
|
|
3396
|
+
/**
|
|
3397
|
+
* The variables of the record.
|
|
3398
|
+
*/
|
|
2710
3399
|
variables: {
|
|
2711
3400
|
[key: string]: VariableValue;
|
|
2712
3401
|
};
|
|
3402
|
+
/**
|
|
3403
|
+
* The number of warnings produced by this operation.
|
|
3404
|
+
*/
|
|
2713
3405
|
warningCount: number;
|
|
3406
|
+
/**
|
|
3407
|
+
* The name of the agent running the operation. Applicable when record is of type Job.
|
|
3408
|
+
*/
|
|
2714
3409
|
workerName: string;
|
|
2715
3410
|
}
|
|
2716
3411
|
export interface TimelineRecordFeedLinesWrapper {
|
|
@@ -2720,14 +3415,29 @@ export interface TimelineRecordFeedLinesWrapper {
|
|
|
2720
3415
|
stepId: string;
|
|
2721
3416
|
value: string[];
|
|
2722
3417
|
}
|
|
3418
|
+
/**
|
|
3419
|
+
* The state of the timeline record.
|
|
3420
|
+
*/
|
|
2723
3421
|
export declare enum TimelineRecordState {
|
|
2724
3422
|
Pending = 0,
|
|
2725
3423
|
InProgress = 1,
|
|
2726
3424
|
Completed = 2
|
|
2727
3425
|
}
|
|
3426
|
+
/**
|
|
3427
|
+
* A reference to a timeline.
|
|
3428
|
+
*/
|
|
2728
3429
|
export interface TimelineReference {
|
|
3430
|
+
/**
|
|
3431
|
+
* The change ID.
|
|
3432
|
+
*/
|
|
2729
3433
|
changeId: number;
|
|
3434
|
+
/**
|
|
3435
|
+
* The ID of the timeline.
|
|
3436
|
+
*/
|
|
2730
3437
|
id: string;
|
|
3438
|
+
/**
|
|
3439
|
+
* The REST URL of the timeline.
|
|
3440
|
+
*/
|
|
2731
3441
|
location: string;
|
|
2732
3442
|
}
|
|
2733
3443
|
export interface ValidationItem {
|
|
@@ -2868,8 +3578,21 @@ export declare enum VariableGroupQueryOrder {
|
|
|
2868
3578
|
*/
|
|
2869
3579
|
IdDescending = 1
|
|
2870
3580
|
}
|
|
3581
|
+
/**
|
|
3582
|
+
* A wrapper class for a generic variable.
|
|
3583
|
+
*/
|
|
2871
3584
|
export interface VariableValue {
|
|
3585
|
+
/**
|
|
3586
|
+
* Indicates whether the variable can be changed during script's execution runtime.
|
|
3587
|
+
*/
|
|
3588
|
+
isReadOnly: boolean;
|
|
3589
|
+
/**
|
|
3590
|
+
* Indicates whether the variable should be encrypted at rest.
|
|
3591
|
+
*/
|
|
2872
3592
|
isSecret: boolean;
|
|
3593
|
+
/**
|
|
3594
|
+
* The value of the variable.
|
|
3595
|
+
*/
|
|
2873
3596
|
value: string;
|
|
2874
3597
|
}
|
|
2875
3598
|
export interface VirtualMachine {
|
|
@@ -2887,5 +3610,5 @@ export interface VirtualMachineResource extends EnvironmentResource {
|
|
|
2887
3610
|
agent: TaskAgent;
|
|
2888
3611
|
}
|
|
2889
3612
|
export interface VirtualMachineResourceCreateParameters {
|
|
2890
|
-
|
|
3613
|
+
virtualMachineResource: VirtualMachineResource;
|
|
2891
3614
|
}
|