azure-devops-extension-api 4.254.0 → 4.256.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/AdvancedSecurity.Reporting/Reporting.d.ts +8 -0
  2. package/Contributions/Contributions.d.ts +4 -0
  3. package/ExtensionManagement/ExtensionManagement.d.ts +4 -0
  4. package/Git/Git.d.ts +21 -0
  5. package/Git/Git.js +14 -0
  6. package/Git/Git.min.js +1 -1
  7. package/Git/GitClient.js +6 -6
  8. package/Git/GitClient.min.js +1 -1
  9. package/Locations/LocationsClient.d.ts +6 -0
  10. package/Locations/LocationsClient.js +24 -0
  11. package/Locations/LocationsClient.min.js +1 -1
  12. package/Management/Management.d.ts +76 -153
  13. package/Management/Management.js +10 -2
  14. package/Management/Management.min.js +1 -1
  15. package/Management/ManagementClient.d.ts +20 -134
  16. package/Management/ManagementClient.js +54 -419
  17. package/Management/ManagementClient.min.js +1 -1
  18. package/Pipelines/Pipelines.d.ts +1 -0
  19. package/Pipelines/Pipelines.js +1 -0
  20. package/Pipelines/Pipelines.min.js +1 -1
  21. package/Release/ReleaseClient.d.ts +2 -1
  22. package/Release/ReleaseClient.js +7 -1
  23. package/Release/ReleaseClient.min.js +1 -1
  24. package/ServiceEndpoint/ServiceEndpoint.d.ts +1 -1
  25. package/ServiceEndpoint/ServiceEndpointClient.d.ts +7 -0
  26. package/ServiceEndpoint/ServiceEndpointClient.js +22 -0
  27. package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -1
  28. package/TaskAgent/TaskAgent.d.ts +18 -1
  29. package/TaskAgent/TaskAgent.js +1 -0
  30. package/TaskAgent/TaskAgent.min.js +1 -1
  31. package/TaskAgent/TaskAgentClient.js +4 -4
  32. package/TaskAgent/TaskAgentClient.min.js +1 -1
  33. package/TestPlan/TestPlan.d.ts +41 -6
  34. package/Tfvc/Tfvc.d.ts +4 -0
  35. package/WebApi/WebApi.d.ts +0 -13
  36. package/WebApi/WebApi.js +0 -15
  37. package/WebApi/WebApi.min.js +1 -1
  38. package/_manifest/spdx_2.2/ESRPClientLogs0712000053233.json +1 -0
  39. package/_manifest/spdx_2.2/bsi.cose +0 -0
  40. package/_manifest/spdx_2.2/bsi.json +1 -0
  41. package/_manifest/spdx_2.2/manifest.cat +0 -0
  42. package/_manifest/spdx_2.2/manifest.spdx.cose +0 -0
  43. package/_manifest/spdx_2.2/manifest.spdx.json +9799 -0
  44. package/_manifest/spdx_2.2/manifest.spdx.json.sha256 +1 -0
  45. package/package.json +1 -1
@@ -56,143 +56,13 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
56
56
  function ManagementRestClient(options) {
57
57
  return _super.call(this, options) || this;
58
58
  }
59
- /**
60
- * Determine if Advanced Security is enabled for a repository
61
- *
62
- * @param project - Project ID or project name
63
- * @param repository - The name or ID of the repository
64
- * @param includeAllProperties - When true, will also determine if pushes are blocked when secrets are detected
65
- */
66
- ManagementRestClient.prototype.getRepoEnablementStatus2 = function (project, repository, includeAllProperties) {
67
- return __awaiter(this, void 0, void 0, function () {
68
- var queryValues;
69
- return __generator(this, function (_a) {
70
- queryValues = {
71
- includeAllProperties: includeAllProperties
72
- };
73
- return [2 /*return*/, this.beginRequest({
74
- apiVersion: "7.2-preview.1",
75
- routeTemplate: "{project}/_apis/Management/repositories/{repository}/enablement2",
76
- routeValues: {
77
- project: project,
78
- repository: repository
79
- },
80
- queryParams: queryValues
81
- })];
82
- });
83
- });
84
- };
85
- /**
86
- * Update the enablement of Advanced Security for a repository
87
- *
88
- * @param savedAdvSecEnablementStatus - new status
89
- * @param project - Project ID or project name
90
- * @param repository - Name or ID of the repository
91
- */
92
- ManagementRestClient.prototype.updateRepoAdvSecEnablementStatus2 = function (savedAdvSecEnablementStatus, project, repository) {
93
- return __awaiter(this, void 0, void 0, function () {
94
- return __generator(this, function (_a) {
95
- return [2 /*return*/, this.beginRequest({
96
- apiVersion: "7.2-preview.1",
97
- method: "PATCH",
98
- routeTemplate: "{project}/_apis/Management/repositories/{repository}/enablement2",
99
- routeValues: {
100
- project: project,
101
- repository: repository
102
- },
103
- body: savedAdvSecEnablementStatus
104
- })];
105
- });
106
- });
107
- };
108
- /**
109
- * 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.
110
- *
111
- * @param meterUsage -
112
- */
113
- ManagementRestClient.prototype.createBillingSnapshot = function (meterUsage) {
114
- return __awaiter(this, void 0, void 0, function () {
115
- return __generator(this, function (_a) {
116
- return [2 /*return*/, this.beginRequest({
117
- apiVersion: "7.2-preview.1",
118
- method: "POST",
119
- routeTemplate: "_apis/Management/MeterUsage/{action}",
120
- routeValues: {
121
- action: "Default"
122
- },
123
- body: meterUsage
124
- })];
125
- });
126
- });
127
- };
128
- /**
129
- * Get all billable committers details, including those not matched with a VSID.
130
- *
131
- * @param billingDate - The date to query, or if not provided, today
132
- */
133
- ManagementRestClient.prototype.getBillableCommitterDetails = function (billingDate) {
134
- return __awaiter(this, void 0, void 0, function () {
135
- var queryValues;
136
- return __generator(this, function (_a) {
137
- queryValues = {
138
- billingDate: billingDate
139
- };
140
- return [2 /*return*/, this.beginRequest({
141
- apiVersion: "7.2-preview.1",
142
- routeTemplate: "_apis/Management/MeterUsage/{action}",
143
- routeValues: {
144
- action: "Details"
145
- },
146
- queryParams: queryValues
147
- })];
148
- });
149
- });
150
- };
151
- /**
152
- */
153
- ManagementRestClient.prototype.getLastMeterUsage = function () {
154
- return __awaiter(this, void 0, void 0, function () {
155
- return __generator(this, function (_a) {
156
- return [2 /*return*/, this.beginRequest({
157
- apiVersion: "7.2-preview.1",
158
- routeTemplate: "_apis/Management/MeterUsage/{action}",
159
- routeValues: {
160
- action: "Last"
161
- }
162
- })];
163
- });
164
- });
165
- };
166
- /**
167
- * Get commiters used when calculating billing information.
168
- *
169
- * @param billingDate - The date to query, or if not provided, today
170
- */
171
- ManagementRestClient.prototype.getMeterUsage = function (billingDate) {
172
- return __awaiter(this, void 0, void 0, function () {
173
- var queryValues;
174
- return __generator(this, function (_a) {
175
- queryValues = {
176
- billingDate: billingDate
177
- };
178
- return [2 /*return*/, this.beginRequest({
179
- apiVersion: "7.2-preview.1",
180
- routeTemplate: "_apis/Management/MeterUsage/{action}",
181
- routeValues: {
182
- action: "Default"
183
- },
184
- queryParams: queryValues
185
- })];
186
- });
187
- });
188
- };
189
59
  /**
190
60
  * 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.
191
61
  *
192
62
  * @param meterUsage -
193
63
  * @param plan -
194
64
  */
195
- ManagementRestClient.prototype.createBillingSnapshot2 = function (meterUsage, plan) {
65
+ ManagementRestClient.prototype.createBillingSnapshot3 = function (meterUsage, plan) {
196
66
  return __awaiter(this, void 0, void 0, function () {
197
67
  var queryValues;
198
68
  return __generator(this, function (_a) {
@@ -200,9 +70,9 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
200
70
  plan: plan
201
71
  };
202
72
  return [2 /*return*/, this.beginRequest({
203
- apiVersion: "7.2-preview.1",
73
+ apiVersion: "7.2-preview.3",
204
74
  method: "POST",
205
- routeTemplate: "_apis/Management/MeterUsage2/{action}",
75
+ routeTemplate: "_apis/Management/MeterUsage/{action}",
206
76
  routeValues: {
207
77
  action: "Default"
208
78
  },
@@ -218,7 +88,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
218
88
  * @param plan - The plan to query. Plans supported: CodeSecurity and SecretProtection. This is a mandatory parameter.
219
89
  * @param billingDate - The date to query, or if not provided, today
220
90
  */
221
- ManagementRestClient.prototype.getBillableCommitterDetails2 = function (plan, billingDate) {
91
+ ManagementRestClient.prototype.getBillableCommitterDetails3 = function (plan, billingDate) {
222
92
  return __awaiter(this, void 0, void 0, function () {
223
93
  var queryValues;
224
94
  return __generator(this, function (_a) {
@@ -227,8 +97,8 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
227
97
  billingDate: billingDate
228
98
  };
229
99
  return [2 /*return*/, this.beginRequest({
230
- apiVersion: "7.2-preview.1",
231
- routeTemplate: "_apis/Management/MeterUsage2/{action}",
100
+ apiVersion: "7.2-preview.3",
101
+ routeTemplate: "_apis/Management/MeterUsage/{action}",
232
102
  routeValues: {
233
103
  action: "Details"
234
104
  },
@@ -240,7 +110,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
240
110
  /**
241
111
  * @param plan -
242
112
  */
243
- ManagementRestClient.prototype.getLastMeterUsage2 = function (plan) {
113
+ ManagementRestClient.prototype.getLastMeterUsage3 = function (plan) {
244
114
  return __awaiter(this, void 0, void 0, function () {
245
115
  var queryValues;
246
116
  return __generator(this, function (_a) {
@@ -248,8 +118,8 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
248
118
  plan: plan
249
119
  };
250
120
  return [2 /*return*/, this.beginRequest({
251
- apiVersion: "7.2-preview.1",
252
- routeTemplate: "_apis/Management/MeterUsage2/{action}",
121
+ apiVersion: "7.2-preview.3",
122
+ routeTemplate: "_apis/Management/MeterUsage/{action}",
253
123
  routeValues: {
254
124
  action: "Last"
255
125
  },
@@ -264,7 +134,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
264
134
  * @param plan - The plan to query. Plans supported: CodeSecurity and SecretProtection. This is a mandatory parameter.
265
135
  * @param billingDate - The date to query, or if not provided, today
266
136
  */
267
- ManagementRestClient.prototype.getMeterUsage2 = function (plan, billingDate) {
137
+ ManagementRestClient.prototype.getMeterUsage3 = function (plan, billingDate) {
268
138
  return __awaiter(this, void 0, void 0, function () {
269
139
  var queryValues;
270
140
  return __generator(this, function (_a) {
@@ -273,8 +143,8 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
273
143
  billingDate: billingDate
274
144
  };
275
145
  return [2 /*return*/, this.beginRequest({
276
- apiVersion: "7.2-preview.1",
277
- routeTemplate: "_apis/Management/MeterUsage2/{action}",
146
+ apiVersion: "7.2-preview.3",
147
+ routeTemplate: "_apis/Management/MeterUsage/{action}",
278
148
  routeValues: {
279
149
  action: "Default"
280
150
  },
@@ -288,7 +158,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
288
158
  *
289
159
  * @param includeAllProperties - When true, also determine if pushes are blocked if they contain secrets
290
160
  */
291
- ManagementRestClient.prototype.getOrgEnablementStatus = function (includeAllProperties) {
161
+ ManagementRestClient.prototype.getOrgEnablementStatus3 = function (includeAllProperties) {
292
162
  return __awaiter(this, void 0, void 0, function () {
293
163
  var queryValues;
294
164
  return __generator(this, function (_a) {
@@ -296,7 +166,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
296
166
  includeAllProperties: includeAllProperties
297
167
  };
298
168
  return [2 /*return*/, this.beginRequest({
299
- apiVersion: "7.2-preview.1",
169
+ apiVersion: "7.2-preview.3",
300
170
  routeTemplate: "_apis/Management/enablement",
301
171
  queryParams: queryValues
302
172
  })];
@@ -306,121 +176,39 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
306
176
  /**
307
177
  * Update the status of Advanced Security for the organization
308
178
  *
309
- * @param savedAdvSecEnablementStatus - The new status
179
+ * @param orgEnablementSettings - The new status
310
180
  */
311
- ManagementRestClient.prototype.updateOrgEnablementStatus = function (savedAdvSecEnablementStatus) {
181
+ ManagementRestClient.prototype.updateOrgEnablementStatus3 = function (orgEnablementSettings) {
312
182
  return __awaiter(this, void 0, void 0, function () {
313
183
  return __generator(this, function (_a) {
314
184
  return [2 /*return*/, this.beginRequest({
315
- apiVersion: "7.2-preview.1",
185
+ apiVersion: "7.2-preview.3",
316
186
  method: "PATCH",
317
187
  routeTemplate: "_apis/Management/enablement",
318
- body: savedAdvSecEnablementStatus
188
+ body: orgEnablementSettings
319
189
  })];
320
190
  });
321
191
  });
322
192
  };
323
193
  /**
324
- * Get the current status of Advanced Security for the organization
194
+ * Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this organization.
325
195
  *
326
- * @param includeAllProperties - When true, also determine if pushes are blocked if they contain secrets
196
+ * @param plan - The plan to query.
327
197
  */
328
- ManagementRestClient.prototype.getOrgEnablementStatus2 = function (includeAllProperties) {
198
+ ManagementRestClient.prototype.getEstimatedBillablePushersDetailsForOrg3 = function (plan) {
329
199
  return __awaiter(this, void 0, void 0, function () {
330
200
  var queryValues;
331
201
  return __generator(this, function (_a) {
332
202
  queryValues = {
333
- includeAllProperties: includeAllProperties
203
+ plan: plan
334
204
  };
335
205
  return [2 /*return*/, this.beginRequest({
336
- apiVersion: "7.2-preview.1",
337
- routeTemplate: "_apis/Management/enablement2",
338
- queryParams: queryValues
339
- })];
340
- });
341
- });
342
- };
343
- /**
344
- * Update the status of Advanced Security for the organization
345
- *
346
- * @param savedAdvSecEnablementStatus - The new status
347
- */
348
- ManagementRestClient.prototype.updateOrgEnablementStatus2 = function (savedAdvSecEnablementStatus) {
349
- return __awaiter(this, void 0, void 0, function () {
350
- return __generator(this, function (_a) {
351
- return [2 /*return*/, this.beginRequest({
352
- apiVersion: "7.2-preview.1",
353
- method: "PATCH",
354
- routeTemplate: "_apis/Management/enablement2",
355
- body: savedAdvSecEnablementStatus
356
- })];
357
- });
358
- });
359
- };
360
- /**
361
- * Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this organization.
362
- *
363
- */
364
- ManagementRestClient.prototype.getEstimatedBillablePushersDetailsForOrg = function () {
365
- return __awaiter(this, void 0, void 0, function () {
366
- return __generator(this, function (_a) {
367
- return [2 /*return*/, this.beginRequest({
368
- apiVersion: "7.2-preview.1",
369
- routeTemplate: "_apis/Management/meterUsageEstimate/{action}",
370
- routeValues: {
371
- action: "Details"
372
- }
373
- })];
374
- });
375
- });
376
- };
377
- /**
378
- * Estimate the committers that would be added to the customer's usage if Advanced Security was enabled for this organization.
379
- *
380
- */
381
- ManagementRestClient.prototype.getEstimatedOrgBillablePushers = function () {
382
- return __awaiter(this, void 0, void 0, function () {
383
- return __generator(this, function (_a) {
384
- return [2 /*return*/, this.beginRequest({
385
- apiVersion: "7.2-preview.1",
206
+ apiVersion: "7.2-preview.3",
386
207
  routeTemplate: "_apis/Management/meterUsageEstimate/{action}",
387
208
  routeValues: {
388
209
  action: "Default"
389
- }
390
- })];
391
- });
392
- });
393
- };
394
- /**
395
- * Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this organization.
396
- *
397
- */
398
- ManagementRestClient.prototype.getEstimatedBillablePushersDetailsForOrg2 = function () {
399
- return __awaiter(this, void 0, void 0, function () {
400
- return __generator(this, function (_a) {
401
- return [2 /*return*/, this.beginRequest({
402
- apiVersion: "7.2-preview.1",
403
- routeTemplate: "_apis/Management/meterUsageEstimate2/{action}",
404
- routeValues: {
405
- action: "Details"
406
- }
407
- })];
408
- });
409
- });
410
- };
411
- /**
412
- * Estimate the committers that would be added to the customer's usage if Advanced Security was enabled for this organization.
413
- *
414
- */
415
- ManagementRestClient.prototype.getEstimatedOrgBillablePushers2 = function () {
416
- return __awaiter(this, void 0, void 0, function () {
417
- return __generator(this, function (_a) {
418
- return [2 /*return*/, this.beginRequest({
419
- apiVersion: "7.2-preview.1",
420
- routeTemplate: "_apis/Management/meterUsageEstimate2/{action}",
421
- routeValues: {
422
- action: "Default"
423
- }
210
+ },
211
+ queryParams: queryValues
424
212
  })];
425
213
  });
426
214
  });
@@ -431,7 +219,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
431
219
  * @param project - Project ID or project name
432
220
  * @param includeAllProperties - When true, also determine if pushes are blocked if they contain secrets
433
221
  */
434
- ManagementRestClient.prototype.getProjectEnablementStatus = function (project, includeAllProperties) {
222
+ ManagementRestClient.prototype.getProjectEnablementStatus3 = function (project, includeAllProperties) {
435
223
  return __awaiter(this, void 0, void 0, function () {
436
224
  var queryValues;
437
225
  return __generator(this, function (_a) {
@@ -439,7 +227,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
439
227
  includeAllProperties: includeAllProperties
440
228
  };
441
229
  return [2 /*return*/, this.beginRequest({
442
- apiVersion: "7.2-preview.1",
230
+ apiVersion: "7.2-preview.3",
443
231
  routeTemplate: "{project}/_apis/Management/enablement",
444
232
  routeValues: {
445
233
  project: project
@@ -452,153 +240,57 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
452
240
  /**
453
241
  * Update the status of Advanced Security for the project
454
242
  *
455
- * @param savedAdvSecEnablementStatus - The new status
243
+ * @param projectEnablementSettings - The new status
456
244
  * @param project - Project ID or project name
457
245
  */
458
- ManagementRestClient.prototype.updateProjectEnablementStatus = function (savedAdvSecEnablementStatus, project) {
246
+ ManagementRestClient.prototype.updateProjectEnablementStatus3 = function (projectEnablementSettings, project) {
459
247
  return __awaiter(this, void 0, void 0, function () {
460
248
  return __generator(this, function (_a) {
461
249
  return [2 /*return*/, this.beginRequest({
462
- apiVersion: "7.2-preview.1",
250
+ apiVersion: "7.2-preview.3",
463
251
  method: "PATCH",
464
252
  routeTemplate: "{project}/_apis/Management/enablement",
465
253
  routeValues: {
466
254
  project: project
467
255
  },
468
- body: savedAdvSecEnablementStatus
256
+ body: projectEnablementSettings
469
257
  })];
470
258
  });
471
259
  });
472
260
  };
473
261
  /**
474
- * Get the current status of Advanced Security for a project
262
+ * Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this project.
475
263
  *
476
264
  * @param project - Project ID or project name
477
- * @param includeAllProperties - When true, also determine if pushes are blocked if they contain secrets
265
+ * @param plan -
478
266
  */
479
- ManagementRestClient.prototype.getProjectEnablementStatus2 = function (project, includeAllProperties) {
267
+ ManagementRestClient.prototype.getEstimatedBillablePushersDetailsForProject3 = function (project, plan) {
480
268
  return __awaiter(this, void 0, void 0, function () {
481
269
  var queryValues;
482
270
  return __generator(this, function (_a) {
483
271
  queryValues = {
484
- includeAllProperties: includeAllProperties
272
+ plan: plan
485
273
  };
486
274
  return [2 /*return*/, this.beginRequest({
487
- apiVersion: "7.2-preview.1",
488
- routeTemplate: "{project}/_apis/Management/enablement2",
489
- routeValues: {
490
- project: project
491
- },
492
- queryParams: queryValues
493
- })];
494
- });
495
- });
496
- };
497
- /**
498
- * Update the status of Advanced Security for the project
499
- *
500
- * @param savedAdvSecEnablementStatus - The new status
501
- * @param project - Project ID or project name
502
- */
503
- ManagementRestClient.prototype.updateProjectEnablementStatus2 = function (savedAdvSecEnablementStatus, project) {
504
- return __awaiter(this, void 0, void 0, function () {
505
- return __generator(this, function (_a) {
506
- return [2 /*return*/, this.beginRequest({
507
- apiVersion: "7.2-preview.1",
508
- method: "PATCH",
509
- routeTemplate: "{project}/_apis/Management/enablement2",
510
- routeValues: {
511
- project: project
512
- },
513
- body: savedAdvSecEnablementStatus
514
- })];
515
- });
516
- });
517
- };
518
- /**
519
- * Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this project.
520
- *
521
- * @param project - Project ID or project name
522
- */
523
- ManagementRestClient.prototype.getEstimatedBillablePushersDetailsForProject = function (project) {
524
- return __awaiter(this, void 0, void 0, function () {
525
- return __generator(this, function (_a) {
526
- return [2 /*return*/, this.beginRequest({
527
- apiVersion: "7.2-preview.1",
528
- routeTemplate: "{project}/_apis/Management/meterUsageEstimate/{action}",
529
- routeValues: {
530
- project: project,
531
- action: "Details"
532
- }
533
- })];
534
- });
535
- });
536
- };
537
- /**
538
- * Estimate the number of committers that would be added to the customer's usage if Advanced Security was enabled for this project.
539
- *
540
- * @param project - Project ID or project name
541
- */
542
- ManagementRestClient.prototype.getEstimatedProjectBillablePushers = function (project) {
543
- return __awaiter(this, void 0, void 0, function () {
544
- return __generator(this, function (_a) {
545
- return [2 /*return*/, this.beginRequest({
546
- apiVersion: "7.2-preview.1",
275
+ apiVersion: "7.2-preview.3",
547
276
  routeTemplate: "{project}/_apis/Management/meterUsageEstimate/{action}",
548
277
  routeValues: {
549
278
  project: project,
550
279
  action: "Default"
551
- }
552
- })];
553
- });
554
- });
555
- };
556
- /**
557
- * Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this project.
558
- *
559
- * @param project - Project ID or project name
560
- */
561
- ManagementRestClient.prototype.getEstimatedBillablePushersDetailsForProject2 = function (project) {
562
- return __awaiter(this, void 0, void 0, function () {
563
- return __generator(this, function (_a) {
564
- return [2 /*return*/, this.beginRequest({
565
- apiVersion: "7.2-preview.1",
566
- routeTemplate: "{project}/_apis/Management/meterUsageEstimate2/{action}",
567
- routeValues: {
568
- project: project,
569
- action: "Details"
570
- }
571
- })];
572
- });
573
- });
574
- };
575
- /**
576
- * Estimate the number of committers that would be added to the customer's usage if Advanced Security was enabled for this project.
577
- *
578
- * @param project - Project ID or project name
579
- */
580
- ManagementRestClient.prototype.getEstimatedProjectBillablePushers2 = function (project) {
581
- return __awaiter(this, void 0, void 0, function () {
582
- return __generator(this, function (_a) {
583
- return [2 /*return*/, this.beginRequest({
584
- apiVersion: "7.2-preview.1",
585
- routeTemplate: "{project}/_apis/Management/meterUsageEstimate2/{action}",
586
- routeValues: {
587
- project: project,
588
- action: "Default"
589
- }
280
+ },
281
+ queryParams: queryValues
590
282
  })];
591
283
  });
592
284
  });
593
285
  };
594
286
  /**
595
- * Determine if Advanced Security is enabled for a repository
287
+ * Determines if Code Security, Secret Protection, and their features are enabled for the repository.
596
288
  *
597
289
  * @param project - Project ID or project name
598
290
  * @param repository - The name or ID of the repository
599
291
  * @param includeAllProperties - When true, will also determine if pushes are blocked when secrets are detected
600
292
  */
601
- ManagementRestClient.prototype.getRepoEnablementStatus = function (project, repository, includeAllProperties) {
293
+ ManagementRestClient.prototype.getRepoEnablementStatus3 = function (project, repository, includeAllProperties) {
602
294
  return __awaiter(this, void 0, void 0, function () {
603
295
  var queryValues;
604
296
  return __generator(this, function (_a) {
@@ -606,7 +298,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
606
298
  includeAllProperties: includeAllProperties
607
299
  };
608
300
  return [2 /*return*/, this.beginRequest({
609
- apiVersion: "7.2-preview.1",
301
+ apiVersion: "7.2-preview.3",
610
302
  routeTemplate: "{project}/_apis/Management/repositories/{repository}/enablement",
611
303
  routeValues: {
612
304
  project: project,
@@ -618,17 +310,17 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
618
310
  });
619
311
  };
620
312
  /**
621
- * Update the enablement of Advanced Security for a repository
313
+ * Update the enablement status of Code Security and Secret Protection, along with their respective features, for a given repository.
622
314
  *
623
315
  * @param savedAdvSecEnablementStatus - new status
624
316
  * @param project - Project ID or project name
625
317
  * @param repository - Name or ID of the repository
626
318
  */
627
- ManagementRestClient.prototype.updateRepoAdvSecEnablementStatus = function (savedAdvSecEnablementStatus, project, repository) {
319
+ ManagementRestClient.prototype.updateRepoAdvSecEnablementStatus3 = function (savedAdvSecEnablementStatus, project, repository) {
628
320
  return __awaiter(this, void 0, void 0, function () {
629
321
  return __generator(this, function (_a) {
630
322
  return [2 /*return*/, this.beginRequest({
631
- apiVersion: "7.2-preview.1",
323
+ apiVersion: "7.2-preview.3",
632
324
  method: "PATCH",
633
325
  routeTemplate: "{project}/_apis/Management/repositories/{repository}/enablement",
634
326
  routeValues: {
@@ -640,86 +332,29 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
640
332
  });
641
333
  });
642
334
  };
643
- /**
644
- * Estimate the committers that would be added to the customer's usage if Advanced Security was enabled for this repository.
645
- *
646
- * @param project - Project ID or project name
647
- * @param repository - The name or ID of the repository
648
- */
649
- ManagementRestClient.prototype.getEstimatedRepoBillableCommitters = function (project, repository) {
650
- return __awaiter(this, void 0, void 0, function () {
651
- return __generator(this, function (_a) {
652
- return [2 /*return*/, this.beginRequest({
653
- apiVersion: "7.2-preview.1",
654
- routeTemplate: "{project}/_apis/Management/repositories/{repository}/meterUsageEstimate/{action}",
655
- routeValues: {
656
- project: project,
657
- repository: repository,
658
- action: "Default"
659
- }
660
- })];
661
- });
662
- });
663
- };
664
335
  /**
665
336
  * Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this repository.
666
337
  *
667
338
  * @param project - Project ID or project name
668
- * @param repository -
669
- */
670
- ManagementRestClient.prototype.getEstimatedRepoBillablePushersDetails = function (project, repository) {
671
- return __awaiter(this, void 0, void 0, function () {
672
- return __generator(this, function (_a) {
673
- return [2 /*return*/, this.beginRequest({
674
- apiVersion: "7.2-preview.1",
675
- routeTemplate: "{project}/_apis/Management/repositories/{repository}/meterUsageEstimate/{action}",
676
- routeValues: {
677
- project: project,
678
- repository: repository,
679
- action: "Details"
680
- }
681
- })];
682
- });
683
- });
684
- };
685
- /**
686
- * Estimate the committers that would be added to the customer's usage if Advanced Security was enabled for this repository.
687
- *
688
- * @param project - Project ID or project name
689
339
  * @param repository - The name or ID of the repository
340
+ * @param plan - The plan to query.
690
341
  */
691
- ManagementRestClient.prototype.getEstimatedRepoBillableCommitters2 = function (project, repository) {
342
+ ManagementRestClient.prototype.getEstimatedBillableCommittersDetailsForRepo3 = function (project, repository, plan) {
692
343
  return __awaiter(this, void 0, void 0, function () {
344
+ var queryValues;
693
345
  return __generator(this, function (_a) {
346
+ queryValues = {
347
+ plan: plan
348
+ };
694
349
  return [2 /*return*/, this.beginRequest({
695
- apiVersion: "7.2-preview.1",
696
- routeTemplate: "{project}/_apis/Management/repositories/{repository}/meterUsageEstimate2/{action}",
350
+ apiVersion: "7.2-preview.3",
351
+ routeTemplate: "{project}/_apis/Management/repositories/{repository}/meterUsageEstimate/{action}",
697
352
  routeValues: {
698
353
  project: project,
699
354
  repository: repository,
700
355
  action: "Default"
701
- }
702
- })];
703
- });
704
- });
705
- };
706
- /**
707
- * Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this repository.
708
- *
709
- * @param project - Project ID or project name
710
- * @param repository -
711
- */
712
- ManagementRestClient.prototype.getEstimatedRepoBillableCommittersDetails2 = function (project, repository) {
713
- return __awaiter(this, void 0, void 0, function () {
714
- return __generator(this, function (_a) {
715
- return [2 /*return*/, this.beginRequest({
716
- apiVersion: "7.2-preview.1",
717
- routeTemplate: "{project}/_apis/Management/repositories/{repository}/meterUsageEstimate2/{action}",
718
- routeValues: {
719
- project: project,
720
- repository: repository,
721
- action: "Details"
722
- }
356
+ },
357
+ queryParams: queryValues
723
358
  })];
724
359
  });
725
360
  });