azure-devops-extension-api 4.235.0 → 4.236.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.
@@ -0,0 +1,119 @@
1
+ /**
2
+ * Alert Summary by severity.
3
+ */
4
+ export interface AlertSummaryBySeverity {
5
+ /**
6
+ * Total Critical severity alerts.
7
+ */
8
+ critical: number;
9
+ /**
10
+ * Total High severity alerts.
11
+ */
12
+ high: number;
13
+ /**
14
+ * Total low severity alerts.
15
+ */
16
+ low: number;
17
+ /**
18
+ * Total Medium severity alerts.
19
+ */
20
+ medium: number;
21
+ }
22
+ /**
23
+ * Org Alert Summary.
24
+ */
25
+ export interface OrgAlertSummary {
26
+ /**
27
+ * Org Id.
28
+ */
29
+ orgId: string;
30
+ /**
31
+ * A list of Project summary data.
32
+ */
33
+ projects: ProjectAlertSummary[];
34
+ }
35
+ /**
36
+ * Org Enablement Summary.
37
+ */
38
+ export interface OrgEnablementSummary {
39
+ /**
40
+ * Org Id.
41
+ */
42
+ orgId: string;
43
+ /**
44
+ * A list of Project Enablement data.
45
+ */
46
+ projects: ProjectEnablementSummary[];
47
+ }
48
+ /**
49
+ * Project Alert Summary.
50
+ */
51
+ export interface ProjectAlertSummary {
52
+ /**
53
+ * Project Id.
54
+ */
55
+ projectId: string;
56
+ /**
57
+ * Project Name.
58
+ */
59
+ projectName: string;
60
+ /**
61
+ * A list of RepoAlertSummary data.
62
+ */
63
+ repos: RepoAlertSummary[];
64
+ }
65
+ /**
66
+ * Project Enablement Summary.
67
+ */
68
+ export interface ProjectEnablementSummary {
69
+ /**
70
+ * Project Id.
71
+ */
72
+ projectId: string;
73
+ /**
74
+ * Project Name.
75
+ */
76
+ projectName: string;
77
+ /**
78
+ * A list of RepoEnablementSummary data.
79
+ */
80
+ repos: RepoEnablementSummary[];
81
+ }
82
+ /**
83
+ * Repo Alert Summary.
84
+ */
85
+ export interface RepoAlertSummary {
86
+ /**
87
+ * Total alerts by severity.
88
+ */
89
+ alertsBySeverity: AlertSummaryBySeverity;
90
+ /**
91
+ * RepoId.
92
+ */
93
+ repoId: string;
94
+ /**
95
+ * Repo Name.
96
+ */
97
+ repoName: string;
98
+ /**
99
+ * Total active alerts in the repo.
100
+ */
101
+ totalAlerts: number;
102
+ }
103
+ /**
104
+ * Repo Enablement Summary.
105
+ */
106
+ export interface RepoEnablementSummary {
107
+ /**
108
+ * AdvSec is enabled for the repo.
109
+ */
110
+ advSecIsEnabled: boolean;
111
+ /**
112
+ * RepoId.
113
+ */
114
+ repoId: string;
115
+ /**
116
+ * Repo Name.
117
+ */
118
+ repoName: string;
119
+ }
@@ -0,0 +1,9 @@
1
+ /*
2
+ * ---------------------------------------------------------
3
+ * Copyright(C) Microsoft Corporation. All rights reserved.
4
+ * ---------------------------------------------------------
5
+ */
6
+ define(["require", "exports"], function (require, exports) {
7
+ "use strict";
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ });
@@ -0,0 +1 @@
1
+ define(["require","exports"],function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0})});
@@ -0,0 +1,14 @@
1
+ import { IVssRestClientOptions } from "../Common/Context";
2
+ import { RestClientBase } from "../Common/RestClientBase";
3
+ import * as Reporting from "../AdvancedSecurity.Reporting/Reporting";
4
+ export declare class ReportingRestClient extends RestClientBase {
5
+ constructor(options: IVssRestClientOptions);
6
+ /**
7
+ * Get Alert summary by severity for the org
8
+ *
9
+ */
10
+ getAlertSummaryForOrg(): Promise<Reporting.OrgAlertSummary>;
11
+ /**
12
+ */
13
+ getEnablementSummaryForOrg(): Promise<Reporting.OrgEnablementSummary>;
14
+ }
@@ -0,0 +1,94 @@
1
+ /*
2
+ * ---------------------------------------------------------
3
+ * Copyright(C) Microsoft Corporation. All rights reserved.
4
+ * ---------------------------------------------------------
5
+ */
6
+ var __extends = (this && this.__extends) || (function () {
7
+ var extendStatics = Object.setPrototypeOf ||
8
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
10
+ return function (d, b) {
11
+ extendStatics(d, b);
12
+ function __() { this.constructor = d; }
13
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
+ };
15
+ })();
16
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ var __generator = (this && this.__generator) || function (thisArg, body) {
25
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
26
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
27
+ function verb(n) { return function (v) { return step([n, v]); }; }
28
+ function step(op) {
29
+ if (f) throw new TypeError("Generator is already executing.");
30
+ while (_) try {
31
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
32
+ if (y = 0, t) op = [op[0] & 2, t.value];
33
+ switch (op[0]) {
34
+ case 0: case 1: t = op; break;
35
+ case 4: _.label++; return { value: op[1], done: false };
36
+ case 5: _.label++; y = op[1]; op = [0]; continue;
37
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
38
+ default:
39
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
40
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
41
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
42
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
43
+ if (t[2]) _.ops.pop();
44
+ _.trys.pop(); continue;
45
+ }
46
+ op = body.call(thisArg, _);
47
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
48
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
49
+ }
50
+ };
51
+ define(["require", "exports", "../Common/RestClientBase"], function (require, exports, RestClientBase_1) {
52
+ "use strict";
53
+ Object.defineProperty(exports, "__esModule", { value: true });
54
+ var ReportingRestClient = /** @class */ (function (_super) {
55
+ __extends(ReportingRestClient, _super);
56
+ function ReportingRestClient(options) {
57
+ return _super.call(this, options) || this;
58
+ }
59
+ /**
60
+ * Get Alert summary by severity for the org
61
+ *
62
+ */
63
+ ReportingRestClient.prototype.getAlertSummaryForOrg = function () {
64
+ return __awaiter(this, void 0, void 0, function () {
65
+ return __generator(this, function (_a) {
66
+ return [2 /*return*/, this.beginRequest({
67
+ apiVersion: "7.2-preview.1",
68
+ routeTemplate: "_apis/Reporting/summary/{action}",
69
+ routeValues: {
70
+ action: "Alerts"
71
+ }
72
+ })];
73
+ });
74
+ });
75
+ };
76
+ /**
77
+ */
78
+ ReportingRestClient.prototype.getEnablementSummaryForOrg = function () {
79
+ return __awaiter(this, void 0, void 0, function () {
80
+ return __generator(this, function (_a) {
81
+ return [2 /*return*/, this.beginRequest({
82
+ apiVersion: "7.2-preview.1",
83
+ routeTemplate: "_apis/Reporting/summary/{action}",
84
+ routeValues: {
85
+ action: "Enablement"
86
+ }
87
+ })];
88
+ });
89
+ });
90
+ };
91
+ return ReportingRestClient;
92
+ }(RestClientBase_1.RestClientBase));
93
+ exports.ReportingRestClient = ReportingRestClient;
94
+ });
@@ -0,0 +1 @@
1
+ var __extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function u(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(a,u)}s((r=r.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){function n(n){return function(a){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,o&&(i=2&n[0]?o.return:n[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,n[1])).done)return i;switch(o=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){u.label=n[1];break}if(6===n[0]&&u.label<i[1]){u.label=i[1],i=n;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(n);break}i[2]&&u.ops.pop(),u.trys.pop();continue}n=e.call(t,u)}catch(t){n=[6,t],o=0}finally{r=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}var r,o,i,a,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase"],function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){function e(e){return t.call(this,e)||this}return __extends(e,t),e.prototype.getAlertSummaryForOrg=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Reporting/summary/{action}",routeValues:{action:"Alerts"}})]})})},e.prototype.getEnablementSummaryForOrg=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Reporting/summary/{action}",routeValues:{action:"Enablement"}})]})})},e}(n.RestClientBase);e.ReportingRestClient=r});
@@ -62,6 +62,10 @@ export interface Dashboard {
62
62
  * Server defined version tracking value, used for edit collision detection.
63
63
  */
64
64
  eTag: string;
65
+ /**
66
+ * Dashboard Global Parameters Config
67
+ */
68
+ globalParametersConfig: string;
65
69
  /**
66
70
  * ID of the group for a dashboard. For team-scoped dashboards, this is the unique identifier for the team associated with the dashboard. For project-scoped dashboards this property is empty.
67
71
  */
package/Git/Git.d.ts CHANGED
@@ -18,10 +18,6 @@ export interface AdvSecEnablementStatus {
18
18
  * Enabled status 0 disabled, 1 enabled, Null never explicitly set, always whatever project is, ya this should probably be an enum somewhere
19
19
  */
20
20
  enabled: boolean;
21
- /**
22
- * Enabled changed on datetime To Be Removed M223 +
23
- */
24
- enabledChangedOnDate: Date;
25
21
  /**
26
22
  * ProjectId
27
23
  */
@@ -28,6 +28,12 @@ export declare class ManagementRestClient extends RestClientBase {
28
28
  * @param organizationId -
29
29
  */
30
30
  saveBillingInfo(billingInfo: Management.BillingInfo, organizationId: string): Promise<void>;
31
+ /**
32
+ * During multi-org billing computation in primary scale unit(EUS21), this API is used to create billing snapshot for a specific org. Primary scale unit will call this API for each org in different scsle units to create billing snapshot. Data will be stored in the org specific partition DB -\> billing snapshot table. This is needed as customers will fetch billing data from their org specific partition DB.
33
+ *
34
+ * @param meterUsage -
35
+ */
36
+ createBillingSnapshot(meterUsage: Management.MeterUsage): Promise<void>;
31
37
  /**
32
38
  * Get all billable committers details, including those not matched with a VSID.
33
39
  *
@@ -43,10 +49,6 @@ export declare class ManagementRestClient extends RestClientBase {
43
49
  * @param billingDate - The date to query, or if not provided, today
44
50
  */
45
51
  getMeterUsage(billingDate?: Date): Promise<Management.MeterUsage>;
46
- /**
47
- * @param meterUsage -
48
- */
49
- setBillingSnapshot(meterUsage: Management.MeterUsage): Promise<void>;
50
52
  /**
51
53
  * Get the current status of Advanced Security for the organization
52
54
  *
@@ -137,6 +137,26 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
137
137
  });
138
138
  });
139
139
  };
140
+ /**
141
+ * During multi-org billing computation in primary scale unit(EUS21), this API is used to create billing snapshot for a specific org. Primary scale unit will call this API for each org in different scsle units to create billing snapshot. Data will be stored in the org specific partition DB -\> billing snapshot table. This is needed as customers will fetch billing data from their org specific partition DB.
142
+ *
143
+ * @param meterUsage -
144
+ */
145
+ ManagementRestClient.prototype.createBillingSnapshot = function (meterUsage) {
146
+ return __awaiter(this, void 0, void 0, function () {
147
+ return __generator(this, function (_a) {
148
+ return [2 /*return*/, this.beginRequest({
149
+ apiVersion: "7.2-preview.1",
150
+ method: "POST",
151
+ routeTemplate: "_apis/Management/MeterUsage/{action}",
152
+ routeValues: {
153
+ action: "Default"
154
+ },
155
+ body: meterUsage
156
+ })];
157
+ });
158
+ });
159
+ };
140
160
  /**
141
161
  * Get all billable committers details, including those not matched with a VSID.
142
162
  *
@@ -198,24 +218,6 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
198
218
  });
199
219
  });
200
220
  };
201
- /**
202
- * @param meterUsage -
203
- */
204
- ManagementRestClient.prototype.setBillingSnapshot = function (meterUsage) {
205
- return __awaiter(this, void 0, void 0, function () {
206
- return __generator(this, function (_a) {
207
- return [2 /*return*/, this.beginRequest({
208
- apiVersion: "7.2-preview.1",
209
- method: "POST",
210
- routeTemplate: "_apis/Management/MeterUsage/{action}",
211
- routeValues: {
212
- action: "Default"
213
- },
214
- body: meterUsage
215
- })];
216
- });
217
- });
218
- };
219
221
  /**
220
222
  * Get the current status of Advanced Security for the organization
221
223
  *
@@ -1 +1 @@
1
- var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{s(r.next(e))}catch(e){o(e)}}function u(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,u)}s((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function n(n){return function(a){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,i&&(o=2&n[0]?i.return:n[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,n[1])).done)return o;switch(i=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,i=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(o=u.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){u.label=n[1];break}if(6===n[0]&&u.label<o[1]){u.label=o[1],o=n;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(n);break}o[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],i=0}finally{r=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}var r,i,o,a,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase"],function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.deleteBillingInfo=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{organizationId}/_apis/Management/Billing/{action}",routeValues:{organizationId:e,action:"Default"}})]})})},t.prototype.deleteMeterUsageHistory=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{organizationId}/_apis/Management/Billing/{action}",routeValues:{organizationId:e,action:"MeterUsageHistory"}})]})})},t.prototype.getBillingInfo=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{organizationId}/_apis/Management/Billing/{action}",routeValues:{organizationId:e,action:"Default"}})]})})},t.prototype.saveBillingInfo=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{organizationId}/_apis/Management/Billing/{action}",routeValues:{organizationId:t,action:"Default"},body:e})]})})},t.prototype.getBillableCommitterDetails=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(n){return t={billingDate:e},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Details"},queryParams:t})]})})},t.prototype.getLastMeterUsage=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Last"}})]})})},t.prototype.getMeterUsage=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(n){return t={billingDate:e},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Default"},queryParams:t})]})})},t.prototype.setBillingSnapshot=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Default"},body:e})]})})},t.prototype.getOrgEnablementStatus=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(n){return t={includeAllProperties:e},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/enablement",queryParams:t})]})})},t.prototype.updateOrgEnablementStatus=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/Management/enablement",body:e})]})})},t.prototype.getEstimatedOrgBillablePushers=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/meterUsageEstimate"})]})})},t.prototype.getProjectEnablementStatus=function(e,t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(r){return n={includeAllProperties:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/enablement",routeValues:{project:e},queryParams:n})]})})},t.prototype.updateProjectEnablementStatus=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Management/enablement",routeValues:{project:t},body:e})]})})},t.prototype.getEstimatedProjectBillablePushers=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/meterUsageEstimate",routeValues:{project:e}})]})})},t.prototype.getRepoEnablementStatus=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={includeAllProperties:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/repositories/{repository}/enablement",routeValues:{project:e,repository:t},queryParams:r})]})})},t.prototype.updateRepoAdvSecEnablementStatus=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Management/repositories/{repository}/enablement",routeValues:{project:t,repository:n},body:e})]})})},t.prototype.getEstimatedRepoBillableCommitters=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/repositories/{repository}/meterUsageEstimate",routeValues:{project:e,repository:t}})]})})},t}(n.RestClientBase);t.ManagementRestClient=r});
1
+ var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{s(r.next(e))}catch(e){o(e)}}function u(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,u)}s((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function n(n){return function(a){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,i&&(o=2&n[0]?i.return:n[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,n[1])).done)return o;switch(i=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,i=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(o=u.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){u.label=n[1];break}if(6===n[0]&&u.label<o[1]){u.label=o[1],o=n;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(n);break}o[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],i=0}finally{r=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}var r,i,o,a,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase"],function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.deleteBillingInfo=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{organizationId}/_apis/Management/Billing/{action}",routeValues:{organizationId:e,action:"Default"}})]})})},t.prototype.deleteMeterUsageHistory=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{organizationId}/_apis/Management/Billing/{action}",routeValues:{organizationId:e,action:"MeterUsageHistory"}})]})})},t.prototype.getBillingInfo=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{organizationId}/_apis/Management/Billing/{action}",routeValues:{organizationId:e,action:"Default"}})]})})},t.prototype.saveBillingInfo=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{organizationId}/_apis/Management/Billing/{action}",routeValues:{organizationId:t,action:"Default"},body:e})]})})},t.prototype.createBillingSnapshot=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Default"},body:e})]})})},t.prototype.getBillableCommitterDetails=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(n){return t={billingDate:e},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Details"},queryParams:t})]})})},t.prototype.getLastMeterUsage=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Last"}})]})})},t.prototype.getMeterUsage=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(n){return t={billingDate:e},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Default"},queryParams:t})]})})},t.prototype.getOrgEnablementStatus=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(n){return t={includeAllProperties:e},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/enablement",queryParams:t})]})})},t.prototype.updateOrgEnablementStatus=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"_apis/Management/enablement",body:e})]})})},t.prototype.getEstimatedOrgBillablePushers=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/meterUsageEstimate"})]})})},t.prototype.getProjectEnablementStatus=function(e,t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(r){return n={includeAllProperties:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/enablement",routeValues:{project:e},queryParams:n})]})})},t.prototype.updateProjectEnablementStatus=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Management/enablement",routeValues:{project:t},body:e})]})})},t.prototype.getEstimatedProjectBillablePushers=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/meterUsageEstimate",routeValues:{project:e}})]})})},t.prototype.getRepoEnablementStatus=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={includeAllProperties:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/repositories/{repository}/enablement",routeValues:{project:e,repository:t},queryParams:r})]})})},t.prototype.updateRepoAdvSecEnablementStatus=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Management/repositories/{repository}/enablement",routeValues:{project:t,repository:n},body:e})]})})},t.prototype.getEstimatedRepoBillableCommitters=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/repositories/{repository}/meterUsageEstimate",routeValues:{project:e,repository:t}})]})})},t}(n.RestClientBase);t.ManagementRestClient=r});
@@ -1082,7 +1082,9 @@ export interface EventsConfig {
1082
1082
  }
1083
1083
  export declare enum ExclusiveLockType {
1084
1084
  RunLatest = 0,
1085
- Sequential = 1
1085
+ Sequential = 1,
1086
+ BranchRunLatest = 2,
1087
+ Parallel = 3
1086
1088
  }
1087
1089
  export interface ExpressionValidationItem extends ValidationItem {
1088
1090
  }
@@ -1515,6 +1517,10 @@ export interface ResourceLockRequest {
1515
1517
  * The date/time this request was assigned.
1516
1518
  */
1517
1519
  assignTime: Date;
1520
+ /**
1521
+ * The branch the lock belongs to. It's used only by RunLatest exclusive locks of persisted stages.
1522
+ */
1523
+ branch: string;
1518
1524
  /**
1519
1525
  * The ID of the check run waiting on this request
1520
1526
  */
@@ -232,6 +232,8 @@ define(["require", "exports"], function (require, exports) {
232
232
  (function (ExclusiveLockType) {
233
233
  ExclusiveLockType[ExclusiveLockType["RunLatest"] = 0] = "RunLatest";
234
234
  ExclusiveLockType[ExclusiveLockType["Sequential"] = 1] = "Sequential";
235
+ ExclusiveLockType[ExclusiveLockType["BranchRunLatest"] = 2] = "BranchRunLatest";
236
+ ExclusiveLockType[ExclusiveLockType["Parallel"] = 3] = "Parallel";
235
237
  })(ExclusiveLockType = exports.ExclusiveLockType || (exports.ExclusiveLockType = {}));
236
238
  /**
237
239
  * The type of issue based on severity.
@@ -1 +1 @@
1
- define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.NoOption=0]="NoOption",e[e.Login=1]="Login",e[e.SelectAccount=2]="SelectAccount",e[e.FreshLogin=3]="FreshLogin",e[e.FreshLoginWithMfa=4]="FreshLoginWithMfa"}(n.AadLoginPromptOption||(n.AadLoginPromptOption={}));!function(e){e[e.Add=1]="Add",e[e.Update=2]="Update",e[e.Delete=3]="Delete",e[e.Undelete=4]="Undelete"}(n.AuditAction||(n.AuditAction={}));!function(e){e[e.Task=0]="Task",e[e.Feature=1]="Feature"}(n.DemandSourceType||(n.DemandSourceType={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.DeploymentGroupActionFilter||(n.DeploymentGroupActionFilter={}));!function(e){e[e.None=0]="None",e[e.Machines=2]="Machines",e[e.Tags=4]="Tags"}(n.DeploymentGroupExpands||(n.DeploymentGroupExpands={}));!function(e){e[e.None=0]="None",e[e.Capabilities=2]="Capabilities",e[e.AssignedRequest=4]="AssignedRequest"}(n.DeploymentMachineExpands||(n.DeploymentMachineExpands={}));!function(e){e[e.None=0]="None",e[e.DeploymentGroups=2]="DeploymentGroups",e[e.Resource=4]="Resource"}(n.DeploymentPoolSummaryExpands||(n.DeploymentPoolSummaryExpands={}));!function(e){e[e.None=0]="None",e[e.Capabilities=2]="Capabilities",e[e.AssignedRequest=4]="AssignedRequest",e[e.LastCompletedRequest=8]="LastCompletedRequest"}(n.DeploymentTargetExpands||(n.DeploymentTargetExpands={}));!function(e){e[e.None=0]="None",e[e.Enabled=1]="Enabled",e[e.Online=2]="Online",e[e.Assigned=4]="Assigned"}(n.ElasticAgentState||(n.ElasticAgentState={}));!function(e){e[e.None=0]="None",e[e.Healthy=1]="Healthy",e[e.Creating=2]="Creating",e[e.Deleting=3]="Deleting",e[e.Failed=4]="Failed",e[e.Stopped=5]="Stopped",e[e.Reimaging=6]="Reimaging",e[e.UnhealthyVm=7]="UnhealthyVm",e[e.UnhealthyVmssVm=8]="UnhealthyVmssVm"}(n.ElasticComputeState||(n.ElasticComputeState={}));!function(e){e[e.None=0]="None",e[e.New=1]="New",e[e.CreatingCompute=2]="CreatingCompute",e[e.StartingAgent=3]="StartingAgent",e[e.Idle=4]="Idle",e[e.Assigned=5]="Assigned",e[e.Offline=6]="Offline",e[e.PendingReimage=7]="PendingReimage",e[e.PendingDelete=8]="PendingDelete",e[e.Saved=9]="Saved",e[e.DeletingCompute=10]="DeletingCompute",e[e.Deleted=11]="Deleted",e[e.Lost=12]="Lost",e[e.ReimagingCompute=13]="ReimagingCompute",e[e.RestartingAgent=14]="RestartingAgent",e[e.FailedToStartPendingDelete=15]="FailedToStartPendingDelete",e[e.FailedToRestartPendingDelete=16]="FailedToRestartPendingDelete",e[e.FailedVMPendingDelete=17]="FailedVMPendingDelete",e[e.AssignedPendingDelete=18]="AssignedPendingDelete",e[e.RetryDelete=19]="RetryDelete",e[e.UnhealthyVm=20]="UnhealthyVm",e[e.UnhealthyVmPendingDelete=21]="UnhealthyVmPendingDelete"}(n.ElasticNodeState||(n.ElasticNodeState={}));!function(e){e[e.Online=0]="Online",e[e.Offline=1]="Offline",e[e.Unhealthy=2]="Unhealthy",e[e.New=3]="New"}(n.ElasticPoolState||(n.ElasticPoolState={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.EnvironmentActionFilter||(n.EnvironmentActionFilter={}));!function(e){e[e.None=0]="None",e[e.ResourceReferences=1]="ResourceReferences"}(n.EnvironmentExpands||(n.EnvironmentExpands={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Generic=1]="Generic",e[e.VirtualMachine=2]="VirtualMachine",e[e.Kubernetes=4]="Kubernetes"}(n.EnvironmentResourceType||(n.EnvironmentResourceType={}));!function(e){e[e.RunLatest=0]="RunLatest",e[e.Sequential=1]="Sequential"}(n.ExclusiveLockType||(n.ExclusiveLockType={}));!function(e){e[e.Error=1]="Error",e[e.Warning=2]="Warning"}(n.IssueType||(n.IssueType={}));!function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info"}(n.LogLevel||(n.LogLevel={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.MachineGroupActionFilter||(n.MachineGroupActionFilter={}));!function(e){e[e.Variable=1]="Variable",e[e.Regex=2]="Regex"}(n.MaskType||(n.MaskType={}));!function(e){e[e.Windows=0]="Windows",e[e.Linux=1]="Linux"}(n.OperatingSystemType||(n.OperatingSystemType={}));!function(e){e[e.ConfigurationJob=0]="ConfigurationJob",e[e.SizingJob=1]="SizingJob",e[e.IncreaseCapacity=2]="IncreaseCapacity",e[e.Reimage=3]="Reimage",e[e.DeleteVMs=4]="DeleteVMs"}(n.OperationType||(n.OperationType={}));!function(e){e[e.Uniform=0]="Uniform",e[e.Flexible=1]="Flexible"}(n.OrchestrationType||(n.OrchestrationType={}));!function(e){e[e.Running=1]="Running",e[e.Queued=2]="Queued",e[e.All=3]="All"}(n.PlanGroupStatus||(n.PlanGroupStatus={}));!function(e){e[e.Running=1]="Running",e[e.Queued=2]="Queued",e[e.All=3]="All"}(n.PlanGroupStatusFilter||(n.PlanGroupStatusFilter={}));!function(e){e[e.Queued=0]="Queued",e[e.InUse=1]="InUse",e[e.Finished=2]="Finished",e[e.TimedOut=3]="TimedOut",e[e.Canceled=4]="Canceled",e[e.Abandoned=5]="Abandoned",e[e.WaitingOnChecks=6]="WaitingOnChecks"}(n.ResourceLockStatus||(n.ResourceLockStatus={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.SecureFileActionFilter||(n.SecureFileActionFilter={}));!function(e){e[e.Failed=1]="Failed",e[e.Passed=2]="Passed",e[e.NeverDeployed=4]="NeverDeployed",e[e.All=7]="All"}(n.TaskAgentJobResultFilter||(n.TaskAgentJobResultFilter={}));!function(e){e[e.Task=1]="Task",e[e.Action=2]="Action"}(n.TaskAgentJobStepType||(n.TaskAgentJobStepType={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.TaskAgentPoolActionFilter||(n.TaskAgentPoolActionFilter={}));!function(e){e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Canceled=4]="Canceled"}(n.TaskAgentPoolMaintenanceJobResult||(n.TaskAgentPoolMaintenanceJobResult={}));!function(e){e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Cancelling=4]="Cancelling",e[e.Queued=8]="Queued"}(n.TaskAgentPoolMaintenanceJobStatus||(n.TaskAgentPoolMaintenanceJobStatus={}));!function(e){e[e.None=0]="None",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=4]="Wednesday",e[e.Thursday=8]="Thursday",e[e.Friday=16]="Friday",e[e.Saturday=32]="Saturday",e[e.Sunday=64]="Sunday",e[e.All=127]="All"}(n.TaskAgentPoolMaintenanceScheduleDays||(n.TaskAgentPoolMaintenanceScheduleDays={}));!function(e){e[e.None=0]="None",e[e.ElasticPool=1]="ElasticPool",e[e.SingleUseAgents=2]="SingleUseAgents",e[e.PreserveAgentOnJobFailure=4]="PreserveAgentOnJobFailure"}(n.TaskAgentPoolOptions||(n.TaskAgentPoolOptions={}));!function(e){e[e.Automation=1]="Automation",e[e.Deployment=2]="Deployment"}(n.TaskAgentPoolType||(n.TaskAgentPoolType={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.TaskAgentQueueActionFilter||(n.TaskAgentQueueActionFilter={}));!function(e){e[e.None=0]="None",e[e.BumpRequestToTop=1]="BumpRequestToTop"}(n.TaskAgentRequestUpdateOptions||(n.TaskAgentRequestUpdateOptions={}));!function(e){e[e.Offline=1]="Offline",e[e.Online=2]="Online"}(n.TaskAgentStatus||(n.TaskAgentStatus={}));!function(e){e[e.Offline=1]="Offline",e[e.Online=2]="Online",e[e.All=3]="All"}(n.TaskAgentStatusFilter||(n.TaskAgentStatusFilter={}));!function(e){e[e.Manual=1]="Manual",e[e.MinAgentVersionRequired=2]="MinAgentVersionRequired",e[e.Downgrade=3]="Downgrade"}(n.TaskAgentUpdateReasonType||(n.TaskAgentUpdateReasonType={}));!function(e){e[e.Any=0]="Any",e[e.Restricted=1]="Restricted"}(n.TaskCommandMode||(n.TaskCommandMode={}));!function(e){e[e.Preinstalled=1]="Preinstalled",e[e.ReceivedInstallOrUpdate=2]="ReceivedInstallOrUpdate",e[e.Installed=3]="Installed",e[e.ReceivedUninstall=4]="ReceivedUninstall",e[e.Uninstalled=5]="Uninstalled",e[e.RequestedUpdate=6]="RequestedUpdate",e[e.Updated=7]="Updated",e[e.AlreadyUpToDate=8]="AlreadyUpToDate",e[e.InlineUpdateReceived=9]="InlineUpdateReceived"}(n.TaskDefinitionStatus||(n.TaskDefinitionStatus={}));!function(e){e[e.None=0]="None",e[e.Tasks=2]="Tasks"}(n.TaskGroupExpands||(n.TaskGroupExpands={}));!function(e){e[e.CreatedOnAscending=0]="CreatedOnAscending",e[e.CreatedOnDescending=1]="CreatedOnDescending"}(n.TaskGroupQueryOrder||(n.TaskGroupQueryOrder={}));!function(e){e[e.Container=0]="Container",e[e.Job=1]="Job"}(n.TaskOrchestrationItemType||(n.TaskOrchestrationItemType={}));!function(e){e[e.InProgress=1]="InProgress",e[e.Queued=2]="Queued",e[e.Completed=4]="Completed",e[e.Throttled=8]="Throttled"}(n.TaskOrchestrationPlanState||(n.TaskOrchestrationPlanState={}));!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Canceled=3]="Canceled",e[e.Skipped=4]="Skipped",e[e.Abandoned=5]="Abandoned"}(n.TaskResult||(n.TaskResult={}));!function(e){e[e.Pending=0]="Pending",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed"}(n.TimelineRecordState||(n.TimelineRecordState={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.VariableGroupActionFilter||(n.VariableGroupActionFilter={}));!function(e){e[e.IdAscending=0]="IdAscending",e[e.IdDescending=1]="IdDescending"}(n.VariableGroupQueryOrder||(n.VariableGroupQueryOrder={}))});
1
+ define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.NoOption=0]="NoOption",e[e.Login=1]="Login",e[e.SelectAccount=2]="SelectAccount",e[e.FreshLogin=3]="FreshLogin",e[e.FreshLoginWithMfa=4]="FreshLoginWithMfa"}(n.AadLoginPromptOption||(n.AadLoginPromptOption={}));!function(e){e[e.Add=1]="Add",e[e.Update=2]="Update",e[e.Delete=3]="Delete",e[e.Undelete=4]="Undelete"}(n.AuditAction||(n.AuditAction={}));!function(e){e[e.Task=0]="Task",e[e.Feature=1]="Feature"}(n.DemandSourceType||(n.DemandSourceType={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.DeploymentGroupActionFilter||(n.DeploymentGroupActionFilter={}));!function(e){e[e.None=0]="None",e[e.Machines=2]="Machines",e[e.Tags=4]="Tags"}(n.DeploymentGroupExpands||(n.DeploymentGroupExpands={}));!function(e){e[e.None=0]="None",e[e.Capabilities=2]="Capabilities",e[e.AssignedRequest=4]="AssignedRequest"}(n.DeploymentMachineExpands||(n.DeploymentMachineExpands={}));!function(e){e[e.None=0]="None",e[e.DeploymentGroups=2]="DeploymentGroups",e[e.Resource=4]="Resource"}(n.DeploymentPoolSummaryExpands||(n.DeploymentPoolSummaryExpands={}));!function(e){e[e.None=0]="None",e[e.Capabilities=2]="Capabilities",e[e.AssignedRequest=4]="AssignedRequest",e[e.LastCompletedRequest=8]="LastCompletedRequest"}(n.DeploymentTargetExpands||(n.DeploymentTargetExpands={}));!function(e){e[e.None=0]="None",e[e.Enabled=1]="Enabled",e[e.Online=2]="Online",e[e.Assigned=4]="Assigned"}(n.ElasticAgentState||(n.ElasticAgentState={}));!function(e){e[e.None=0]="None",e[e.Healthy=1]="Healthy",e[e.Creating=2]="Creating",e[e.Deleting=3]="Deleting",e[e.Failed=4]="Failed",e[e.Stopped=5]="Stopped",e[e.Reimaging=6]="Reimaging",e[e.UnhealthyVm=7]="UnhealthyVm",e[e.UnhealthyVmssVm=8]="UnhealthyVmssVm"}(n.ElasticComputeState||(n.ElasticComputeState={}));!function(e){e[e.None=0]="None",e[e.New=1]="New",e[e.CreatingCompute=2]="CreatingCompute",e[e.StartingAgent=3]="StartingAgent",e[e.Idle=4]="Idle",e[e.Assigned=5]="Assigned",e[e.Offline=6]="Offline",e[e.PendingReimage=7]="PendingReimage",e[e.PendingDelete=8]="PendingDelete",e[e.Saved=9]="Saved",e[e.DeletingCompute=10]="DeletingCompute",e[e.Deleted=11]="Deleted",e[e.Lost=12]="Lost",e[e.ReimagingCompute=13]="ReimagingCompute",e[e.RestartingAgent=14]="RestartingAgent",e[e.FailedToStartPendingDelete=15]="FailedToStartPendingDelete",e[e.FailedToRestartPendingDelete=16]="FailedToRestartPendingDelete",e[e.FailedVMPendingDelete=17]="FailedVMPendingDelete",e[e.AssignedPendingDelete=18]="AssignedPendingDelete",e[e.RetryDelete=19]="RetryDelete",e[e.UnhealthyVm=20]="UnhealthyVm",e[e.UnhealthyVmPendingDelete=21]="UnhealthyVmPendingDelete"}(n.ElasticNodeState||(n.ElasticNodeState={}));!function(e){e[e.Online=0]="Online",e[e.Offline=1]="Offline",e[e.Unhealthy=2]="Unhealthy",e[e.New=3]="New"}(n.ElasticPoolState||(n.ElasticPoolState={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.EnvironmentActionFilter||(n.EnvironmentActionFilter={}));!function(e){e[e.None=0]="None",e[e.ResourceReferences=1]="ResourceReferences"}(n.EnvironmentExpands||(n.EnvironmentExpands={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Generic=1]="Generic",e[e.VirtualMachine=2]="VirtualMachine",e[e.Kubernetes=4]="Kubernetes"}(n.EnvironmentResourceType||(n.EnvironmentResourceType={}));!function(e){e[e.RunLatest=0]="RunLatest",e[e.Sequential=1]="Sequential",e[e.BranchRunLatest=2]="BranchRunLatest",e[e.Parallel=3]="Parallel"}(n.ExclusiveLockType||(n.ExclusiveLockType={}));!function(e){e[e.Error=1]="Error",e[e.Warning=2]="Warning"}(n.IssueType||(n.IssueType={}));!function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info"}(n.LogLevel||(n.LogLevel={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.MachineGroupActionFilter||(n.MachineGroupActionFilter={}));!function(e){e[e.Variable=1]="Variable",e[e.Regex=2]="Regex"}(n.MaskType||(n.MaskType={}));!function(e){e[e.Windows=0]="Windows",e[e.Linux=1]="Linux"}(n.OperatingSystemType||(n.OperatingSystemType={}));!function(e){e[e.ConfigurationJob=0]="ConfigurationJob",e[e.SizingJob=1]="SizingJob",e[e.IncreaseCapacity=2]="IncreaseCapacity",e[e.Reimage=3]="Reimage",e[e.DeleteVMs=4]="DeleteVMs"}(n.OperationType||(n.OperationType={}));!function(e){e[e.Uniform=0]="Uniform",e[e.Flexible=1]="Flexible"}(n.OrchestrationType||(n.OrchestrationType={}));!function(e){e[e.Running=1]="Running",e[e.Queued=2]="Queued",e[e.All=3]="All"}(n.PlanGroupStatus||(n.PlanGroupStatus={}));!function(e){e[e.Running=1]="Running",e[e.Queued=2]="Queued",e[e.All=3]="All"}(n.PlanGroupStatusFilter||(n.PlanGroupStatusFilter={}));!function(e){e[e.Queued=0]="Queued",e[e.InUse=1]="InUse",e[e.Finished=2]="Finished",e[e.TimedOut=3]="TimedOut",e[e.Canceled=4]="Canceled",e[e.Abandoned=5]="Abandoned",e[e.WaitingOnChecks=6]="WaitingOnChecks"}(n.ResourceLockStatus||(n.ResourceLockStatus={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.SecureFileActionFilter||(n.SecureFileActionFilter={}));!function(e){e[e.Failed=1]="Failed",e[e.Passed=2]="Passed",e[e.NeverDeployed=4]="NeverDeployed",e[e.All=7]="All"}(n.TaskAgentJobResultFilter||(n.TaskAgentJobResultFilter={}));!function(e){e[e.Task=1]="Task",e[e.Action=2]="Action"}(n.TaskAgentJobStepType||(n.TaskAgentJobStepType={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.TaskAgentPoolActionFilter||(n.TaskAgentPoolActionFilter={}));!function(e){e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Canceled=4]="Canceled"}(n.TaskAgentPoolMaintenanceJobResult||(n.TaskAgentPoolMaintenanceJobResult={}));!function(e){e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Cancelling=4]="Cancelling",e[e.Queued=8]="Queued"}(n.TaskAgentPoolMaintenanceJobStatus||(n.TaskAgentPoolMaintenanceJobStatus={}));!function(e){e[e.None=0]="None",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=4]="Wednesday",e[e.Thursday=8]="Thursday",e[e.Friday=16]="Friday",e[e.Saturday=32]="Saturday",e[e.Sunday=64]="Sunday",e[e.All=127]="All"}(n.TaskAgentPoolMaintenanceScheduleDays||(n.TaskAgentPoolMaintenanceScheduleDays={}));!function(e){e[e.None=0]="None",e[e.ElasticPool=1]="ElasticPool",e[e.SingleUseAgents=2]="SingleUseAgents",e[e.PreserveAgentOnJobFailure=4]="PreserveAgentOnJobFailure"}(n.TaskAgentPoolOptions||(n.TaskAgentPoolOptions={}));!function(e){e[e.Automation=1]="Automation",e[e.Deployment=2]="Deployment"}(n.TaskAgentPoolType||(n.TaskAgentPoolType={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.TaskAgentQueueActionFilter||(n.TaskAgentQueueActionFilter={}));!function(e){e[e.None=0]="None",e[e.BumpRequestToTop=1]="BumpRequestToTop"}(n.TaskAgentRequestUpdateOptions||(n.TaskAgentRequestUpdateOptions={}));!function(e){e[e.Offline=1]="Offline",e[e.Online=2]="Online"}(n.TaskAgentStatus||(n.TaskAgentStatus={}));!function(e){e[e.Offline=1]="Offline",e[e.Online=2]="Online",e[e.All=3]="All"}(n.TaskAgentStatusFilter||(n.TaskAgentStatusFilter={}));!function(e){e[e.Manual=1]="Manual",e[e.MinAgentVersionRequired=2]="MinAgentVersionRequired",e[e.Downgrade=3]="Downgrade"}(n.TaskAgentUpdateReasonType||(n.TaskAgentUpdateReasonType={}));!function(e){e[e.Any=0]="Any",e[e.Restricted=1]="Restricted"}(n.TaskCommandMode||(n.TaskCommandMode={}));!function(e){e[e.Preinstalled=1]="Preinstalled",e[e.ReceivedInstallOrUpdate=2]="ReceivedInstallOrUpdate",e[e.Installed=3]="Installed",e[e.ReceivedUninstall=4]="ReceivedUninstall",e[e.Uninstalled=5]="Uninstalled",e[e.RequestedUpdate=6]="RequestedUpdate",e[e.Updated=7]="Updated",e[e.AlreadyUpToDate=8]="AlreadyUpToDate",e[e.InlineUpdateReceived=9]="InlineUpdateReceived"}(n.TaskDefinitionStatus||(n.TaskDefinitionStatus={}));!function(e){e[e.None=0]="None",e[e.Tasks=2]="Tasks"}(n.TaskGroupExpands||(n.TaskGroupExpands={}));!function(e){e[e.CreatedOnAscending=0]="CreatedOnAscending",e[e.CreatedOnDescending=1]="CreatedOnDescending"}(n.TaskGroupQueryOrder||(n.TaskGroupQueryOrder={}));!function(e){e[e.Container=0]="Container",e[e.Job=1]="Job"}(n.TaskOrchestrationItemType||(n.TaskOrchestrationItemType={}));!function(e){e[e.InProgress=1]="InProgress",e[e.Queued=2]="Queued",e[e.Completed=4]="Completed",e[e.Throttled=8]="Throttled"}(n.TaskOrchestrationPlanState||(n.TaskOrchestrationPlanState={}));!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Canceled=3]="Canceled",e[e.Skipped=4]="Skipped",e[e.Abandoned=5]="Abandoned"}(n.TaskResult||(n.TaskResult={}));!function(e){e[e.Pending=0]="Pending",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed"}(n.TimelineRecordState||(n.TimelineRecordState={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.VariableGroupActionFilter||(n.VariableGroupActionFilter={}));!function(e){e[e.IdAscending=0]="IdAscending",e[e.IdDescending=1]="IdDescending"}(n.VariableGroupQueryOrder||(n.VariableGroupQueryOrder={}))});
@@ -1008,8 +1008,9 @@ export declare class TaskAgentRestClient extends RestClientBase {
1008
1008
  *
1009
1009
  * @param project - Project ID or project name
1010
1010
  * @param groupIds - Comma separated list of Ids of variable groups.
1011
+ * @param loadSecrets -
1011
1012
  */
1012
- getVariableGroupsById(project: string, groupIds: number[]): Promise<TaskAgent.VariableGroup[]>;
1013
+ getVariableGroupsById(project: string, groupIds: number[], loadSecrets?: boolean): Promise<TaskAgent.VariableGroup[]>;
1013
1014
  /**
1014
1015
  * @param createParameters -
1015
1016
  * @param project - Project ID or project name
@@ -3491,13 +3491,15 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
3491
3491
  *
3492
3492
  * @param project - Project ID or project name
3493
3493
  * @param groupIds - Comma separated list of Ids of variable groups.
3494
+ * @param loadSecrets -
3494
3495
  */
3495
- TaskAgentRestClient.prototype.getVariableGroupsById = function (project, groupIds) {
3496
+ TaskAgentRestClient.prototype.getVariableGroupsById = function (project, groupIds, loadSecrets) {
3496
3497
  return __awaiter(this, void 0, void 0, function () {
3497
3498
  var queryValues;
3498
3499
  return __generator(this, function (_a) {
3499
3500
  queryValues = {
3500
- groupIds: groupIds && groupIds.join(",")
3501
+ groupIds: groupIds && groupIds.join(","),
3502
+ loadSecrets: loadSecrets
3501
3503
  };
3502
3504
  return [2 /*return*/, this.beginRequest({
3503
3505
  apiVersion: "7.2-preview.2",