azure-devops-extension-api 4.226.0 → 4.228.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,376 @@
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 ManagementRestClient = /** @class */ (function (_super) {
55
+ __extends(ManagementRestClient, _super);
56
+ function ManagementRestClient(options) {
57
+ return _super.call(this, options) || this;
58
+ }
59
+ /**
60
+ * @param organizationId -
61
+ */
62
+ ManagementRestClient.prototype.deleteBillingInfo = function (organizationId) {
63
+ return __awaiter(this, void 0, void 0, function () {
64
+ return __generator(this, function (_a) {
65
+ return [2 /*return*/, this.beginRequest({
66
+ apiVersion: "7.2-preview.1",
67
+ method: "DELETE",
68
+ routeTemplate: "{organizationId}/_apis/Management/Billing/{action}",
69
+ routeValues: {
70
+ organizationId: organizationId,
71
+ action: "Default"
72
+ }
73
+ })];
74
+ });
75
+ });
76
+ };
77
+ /**
78
+ * @param organizationId -
79
+ */
80
+ ManagementRestClient.prototype.deleteMeterUsageHistory = function (organizationId) {
81
+ return __awaiter(this, void 0, void 0, function () {
82
+ return __generator(this, function (_a) {
83
+ return [2 /*return*/, this.beginRequest({
84
+ apiVersion: "7.2-preview.1",
85
+ method: "DELETE",
86
+ routeTemplate: "{organizationId}/_apis/Management/Billing/{action}",
87
+ routeValues: {
88
+ organizationId: organizationId,
89
+ action: "MeterUsageHistory"
90
+ }
91
+ })];
92
+ });
93
+ });
94
+ };
95
+ /**
96
+ * Get the billing info for an organization.
97
+ *
98
+ * @param organizationId - Organization ID to get billing info for.
99
+ */
100
+ ManagementRestClient.prototype.getBillingInfo = function (organizationId) {
101
+ return __awaiter(this, void 0, void 0, function () {
102
+ return __generator(this, function (_a) {
103
+ return [2 /*return*/, this.beginRequest({
104
+ apiVersion: "7.2-preview.1",
105
+ routeTemplate: "{organizationId}/_apis/Management/Billing/{action}",
106
+ routeValues: {
107
+ organizationId: organizationId,
108
+ action: "Default"
109
+ }
110
+ })];
111
+ });
112
+ });
113
+ };
114
+ /**
115
+ * @param billingInfo -
116
+ * @param organizationId -
117
+ */
118
+ ManagementRestClient.prototype.saveBillingInfo = function (billingInfo, organizationId) {
119
+ return __awaiter(this, void 0, void 0, function () {
120
+ return __generator(this, function (_a) {
121
+ return [2 /*return*/, this.beginRequest({
122
+ apiVersion: "7.2-preview.1",
123
+ method: "POST",
124
+ routeTemplate: "{organizationId}/_apis/Management/Billing/{action}",
125
+ routeValues: {
126
+ organizationId: organizationId,
127
+ action: "Default"
128
+ },
129
+ body: billingInfo
130
+ })];
131
+ });
132
+ });
133
+ };
134
+ /**
135
+ */
136
+ ManagementRestClient.prototype.getLastMeterUsage = function () {
137
+ return __awaiter(this, void 0, void 0, function () {
138
+ return __generator(this, function (_a) {
139
+ return [2 /*return*/, this.beginRequest({
140
+ apiVersion: "7.2-preview.1",
141
+ routeTemplate: "_apis/Management/MeterUsage/{action}",
142
+ routeValues: {
143
+ action: "Last"
144
+ }
145
+ })];
146
+ });
147
+ });
148
+ };
149
+ /**
150
+ * Get commiters used when calculating billing information.
151
+ *
152
+ * @param billingDate - The date to query, or if not provided, today
153
+ */
154
+ ManagementRestClient.prototype.getMeterUsage = function (billingDate) {
155
+ return __awaiter(this, void 0, void 0, function () {
156
+ var queryValues;
157
+ return __generator(this, function (_a) {
158
+ queryValues = {
159
+ billingDate: billingDate
160
+ };
161
+ return [2 /*return*/, this.beginRequest({
162
+ apiVersion: "7.2-preview.1",
163
+ routeTemplate: "_apis/Management/MeterUsage/{action}",
164
+ routeValues: {
165
+ action: "Default"
166
+ },
167
+ queryParams: queryValues
168
+ })];
169
+ });
170
+ });
171
+ };
172
+ /**
173
+ * @param meterUsage -
174
+ */
175
+ ManagementRestClient.prototype.setBillingSnapshot = function (meterUsage) {
176
+ return __awaiter(this, void 0, void 0, function () {
177
+ return __generator(this, function (_a) {
178
+ return [2 /*return*/, this.beginRequest({
179
+ apiVersion: "7.2-preview.1",
180
+ method: "POST",
181
+ routeTemplate: "_apis/Management/MeterUsage/{action}",
182
+ routeValues: {
183
+ action: "Default"
184
+ },
185
+ body: meterUsage
186
+ })];
187
+ });
188
+ });
189
+ };
190
+ /**
191
+ * Get the current status of Advanced Security for the organization
192
+ *
193
+ * @param includeAllProperties - When true, also determine if pushes are blocked if they contain secrets
194
+ */
195
+ ManagementRestClient.prototype.getOrgEnablementStatus = function (includeAllProperties) {
196
+ return __awaiter(this, void 0, void 0, function () {
197
+ var queryValues;
198
+ return __generator(this, function (_a) {
199
+ queryValues = {
200
+ includeAllProperties: includeAllProperties
201
+ };
202
+ return [2 /*return*/, this.beginRequest({
203
+ apiVersion: "7.2-preview.1",
204
+ routeTemplate: "_apis/Management/enablement",
205
+ queryParams: queryValues
206
+ })];
207
+ });
208
+ });
209
+ };
210
+ /**
211
+ * Update the status of Advanced Security for the organization
212
+ *
213
+ * @param savedAdvSecEnablementStatus - The new status
214
+ */
215
+ ManagementRestClient.prototype.updateOrgEnablementStatus = function (savedAdvSecEnablementStatus) {
216
+ return __awaiter(this, void 0, void 0, function () {
217
+ return __generator(this, function (_a) {
218
+ return [2 /*return*/, this.beginRequest({
219
+ apiVersion: "7.2-preview.1",
220
+ method: "PATCH",
221
+ routeTemplate: "_apis/Management/enablement",
222
+ body: savedAdvSecEnablementStatus
223
+ })];
224
+ });
225
+ });
226
+ };
227
+ /**
228
+ * Estimate the committers that would be added to the customer's usage if Advanced Security was enabled for this organization.
229
+ *
230
+ */
231
+ ManagementRestClient.prototype.getEstimatedOrgBillablePushers = function () {
232
+ return __awaiter(this, void 0, void 0, function () {
233
+ return __generator(this, function (_a) {
234
+ return [2 /*return*/, this.beginRequest({
235
+ apiVersion: "7.2-preview.1",
236
+ routeTemplate: "_apis/Management/meterUsageEstimate"
237
+ })];
238
+ });
239
+ });
240
+ };
241
+ /**
242
+ * Get the current status of Advanced Security for a project
243
+ *
244
+ * @param project - Project ID or project name
245
+ * @param includeAllProperties - When true, also determine if pushes are blocked if they contain secrets
246
+ */
247
+ ManagementRestClient.prototype.getProjectEnablementStatus = function (project, includeAllProperties) {
248
+ return __awaiter(this, void 0, void 0, function () {
249
+ var queryValues;
250
+ return __generator(this, function (_a) {
251
+ queryValues = {
252
+ includeAllProperties: includeAllProperties
253
+ };
254
+ return [2 /*return*/, this.beginRequest({
255
+ apiVersion: "7.2-preview.1",
256
+ routeTemplate: "{project}/_apis/Management/enablement",
257
+ routeValues: {
258
+ project: project
259
+ },
260
+ queryParams: queryValues
261
+ })];
262
+ });
263
+ });
264
+ };
265
+ /**
266
+ * Update the status of Advanced Security for the project
267
+ *
268
+ * @param savedAdvSecEnablementStatus - The new status
269
+ * @param project - Project ID or project name
270
+ */
271
+ ManagementRestClient.prototype.updateProjectEnablementStatus = function (savedAdvSecEnablementStatus, project) {
272
+ return __awaiter(this, void 0, void 0, function () {
273
+ return __generator(this, function (_a) {
274
+ return [2 /*return*/, this.beginRequest({
275
+ apiVersion: "7.2-preview.1",
276
+ method: "PATCH",
277
+ routeTemplate: "{project}/_apis/Management/enablement",
278
+ routeValues: {
279
+ project: project
280
+ },
281
+ body: savedAdvSecEnablementStatus
282
+ })];
283
+ });
284
+ });
285
+ };
286
+ /**
287
+ * Estimate the number of committers that would be added to the customer's usage if Advanced Security was enabled for this project.
288
+ *
289
+ * @param project - Project ID or project name
290
+ */
291
+ ManagementRestClient.prototype.getEstimatedProjectBillablePushers = function (project) {
292
+ return __awaiter(this, void 0, void 0, function () {
293
+ return __generator(this, function (_a) {
294
+ return [2 /*return*/, this.beginRequest({
295
+ apiVersion: "7.2-preview.1",
296
+ routeTemplate: "{project}/_apis/Management/meterUsageEstimate",
297
+ routeValues: {
298
+ project: project
299
+ }
300
+ })];
301
+ });
302
+ });
303
+ };
304
+ /**
305
+ * Determine if Advanced Security is enabled for a repository
306
+ *
307
+ * @param project - Project ID or project name
308
+ * @param repository - The name or ID of the repository
309
+ * @param includeAllProperties - When true, will also determine if pushes are blocked when secrets are detected
310
+ */
311
+ ManagementRestClient.prototype.getRepoEnablementStatus = function (project, repository, includeAllProperties) {
312
+ return __awaiter(this, void 0, void 0, function () {
313
+ var queryValues;
314
+ return __generator(this, function (_a) {
315
+ queryValues = {
316
+ includeAllProperties: includeAllProperties
317
+ };
318
+ return [2 /*return*/, this.beginRequest({
319
+ apiVersion: "7.2-preview.1",
320
+ routeTemplate: "{project}/_apis/Management/repositories/{repository}/enablement",
321
+ routeValues: {
322
+ project: project,
323
+ repository: repository
324
+ },
325
+ queryParams: queryValues
326
+ })];
327
+ });
328
+ });
329
+ };
330
+ /**
331
+ * Update the enablement of Advanced Security for a repository
332
+ *
333
+ * @param savedAdvSecEnablementStatus - new status
334
+ * @param project - Project ID or project name
335
+ * @param repository - Name or ID of the repository
336
+ */
337
+ ManagementRestClient.prototype.updateRepoAdvSecEnablementStatus = function (savedAdvSecEnablementStatus, project, repository) {
338
+ return __awaiter(this, void 0, void 0, function () {
339
+ return __generator(this, function (_a) {
340
+ return [2 /*return*/, this.beginRequest({
341
+ apiVersion: "7.2-preview.1",
342
+ method: "PATCH",
343
+ routeTemplate: "{project}/_apis/Management/repositories/{repository}/enablement",
344
+ routeValues: {
345
+ project: project,
346
+ repository: repository
347
+ },
348
+ body: savedAdvSecEnablementStatus
349
+ })];
350
+ });
351
+ });
352
+ };
353
+ /**
354
+ * Estimate the committers that would be added to the customer's usage if Advanced Security was enabled for this repository.
355
+ *
356
+ * @param project - Project ID or project name
357
+ * @param repository - The name or ID of the repository
358
+ */
359
+ ManagementRestClient.prototype.getEstimatedRepoBillableCommitters = function (project, repository) {
360
+ return __awaiter(this, void 0, void 0, function () {
361
+ return __generator(this, function (_a) {
362
+ return [2 /*return*/, this.beginRequest({
363
+ apiVersion: "7.2-preview.1",
364
+ routeTemplate: "{project}/_apis/Management/repositories/{repository}/meterUsageEstimate",
365
+ routeValues: {
366
+ project: project,
367
+ repository: repository
368
+ }
369
+ })];
370
+ });
371
+ });
372
+ };
373
+ return ManagementRestClient;
374
+ }(RestClientBase_1.RestClientBase));
375
+ exports.ManagementRestClient = ManagementRestClient;
376
+ });
@@ -0,0 +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.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});
@@ -512,6 +512,10 @@ export interface ServiceEndpoint {
512
512
  * Gets or sets the identifier of this endpoint.
513
513
  */
514
514
  id: string;
515
+ /**
516
+ * Indicates whether service endpoint is outdated or not.
517
+ */
518
+ isOutdated: boolean;
515
519
  /**
516
520
  * EndPoint state indicator
517
521
  */
@@ -1472,6 +1472,10 @@ export interface ResourceItem {
1472
1472
  * Gets or sets Id of the resource.
1473
1473
  */
1474
1474
  id: string;
1475
+ /**
1476
+ * Indicates whether resource is outdated or not.
1477
+ */
1478
+ isOutdated: boolean;
1475
1479
  /**
1476
1480
  * Indicates whether resource is shared with other projects or not.
1477
1481
  */
@@ -3423,6 +3427,23 @@ export interface TimelineRecordFeedLinesWrapper {
3423
3427
  stepId: string;
3424
3428
  value: string[];
3425
3429
  }
3430
+ /**
3431
+ * A reference to a timeline record.
3432
+ */
3433
+ export interface TimelineRecordReference {
3434
+ /**
3435
+ * The ID of the record.
3436
+ */
3437
+ id: string;
3438
+ /**
3439
+ * String identifier that is consistent across attempts.
3440
+ */
3441
+ identifier: string;
3442
+ /**
3443
+ * The state of the record.
3444
+ */
3445
+ state: TimelineRecordState;
3446
+ }
3426
3447
  /**
3427
3448
  * The state of the timeline record.
3428
3449
  */
@@ -80,6 +80,14 @@ export declare class TaskAgentRestClient extends RestClientBase {
80
80
  * @param demands - Filter by demands the agents can satisfy
81
81
  */
82
82
  getAgents(poolId: number, agentName?: string, includeCapabilities?: boolean, includeAssignedRequest?: boolean, includeLastCompletedRequest?: boolean, propertyFilters?: string[], demands?: string[]): Promise<TaskAgent.TaskAgent[]>;
83
+ /**
84
+ * Get Permissions on Pool.
85
+ *
86
+ * @param poolId - The agent pool to use
87
+ * @param agentId - The agent id to use
88
+ * @param isCheckPermissions - To check the permissions
89
+ */
90
+ getPoolPermission(poolId: number, agentId: number, isCheckPermissions: boolean): Promise<boolean>;
83
91
  /**
84
92
  * Replace an agent. You probably don't want to call this endpoint directly. Instead, [use the agent configuration script](https://docs.microsoft.com/azure/devops/pipelines/agents/agents) to remove and reconfigure an agent from your organization.
85
93
  *
@@ -317,6 +317,32 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
317
317
  });
318
318
  });
319
319
  };
320
+ /**
321
+ * Get Permissions on Pool.
322
+ *
323
+ * @param poolId - The agent pool to use
324
+ * @param agentId - The agent id to use
325
+ * @param isCheckPermissions - To check the permissions
326
+ */
327
+ TaskAgentRestClient.prototype.getPoolPermission = function (poolId, agentId, isCheckPermissions) {
328
+ return __awaiter(this, void 0, void 0, function () {
329
+ var queryValues;
330
+ return __generator(this, function (_a) {
331
+ queryValues = {
332
+ isCheckPermissions: isCheckPermissions
333
+ };
334
+ return [2 /*return*/, this.beginRequest({
335
+ apiVersion: "7.2-preview.1",
336
+ routeTemplate: "_apis/distributedtask/pools/{poolId}/agents/{agentId}",
337
+ routeValues: {
338
+ poolId: poolId,
339
+ agentId: agentId
340
+ },
341
+ queryParams: queryValues
342
+ })];
343
+ });
344
+ });
345
+ };
320
346
  /**
321
347
  * Replace an agent. You probably don't want to call this endpoint directly. Instead, [use the agent configuration script](https://docs.microsoft.com/azure/devops/pipelines/agents/agents) to remove and reconfigure an agent from your organization.
322
348
  *