azure-devops-extension-api 4.255.1 → 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.
@@ -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
- * Determines if Code Security, Secret Protection, and their features are enabled for the 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 status of Code Security and Secret Protection, along with their respective features, for a given 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,107 +166,36 @@ 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
  })];
303
173
  });
304
174
  });
305
175
  };
306
- /**
307
- * Update the status of Advanced Security for the organization
308
- *
309
- * @param savedAdvSecEnablementStatus - The new status
310
- */
311
- ManagementRestClient.prototype.updateOrgEnablementStatus = function (savedAdvSecEnablementStatus) {
312
- return __awaiter(this, void 0, void 0, function () {
313
- return __generator(this, function (_a) {
314
- return [2 /*return*/, this.beginRequest({
315
- apiVersion: "7.2-preview.1",
316
- method: "PATCH",
317
- routeTemplate: "_apis/Management/enablement",
318
- body: savedAdvSecEnablementStatus
319
- })];
320
- });
321
- });
322
- };
323
- /**
324
- * Get the current status of Advanced Security for the organization
325
- *
326
- * @param includeAllProperties - When true, also determine if pushes are blocked if they contain secrets
327
- */
328
- ManagementRestClient.prototype.getOrgEnablementStatus2 = function (includeAllProperties) {
329
- return __awaiter(this, void 0, void 0, function () {
330
- var queryValues;
331
- return __generator(this, function (_a) {
332
- queryValues = {
333
- includeAllProperties: includeAllProperties
334
- };
335
- return [2 /*return*/, this.beginRequest({
336
- apiVersion: "7.2-preview.1",
337
- routeTemplate: "_apis/Management/enablement2",
338
- queryParams: queryValues
339
- })];
340
- });
341
- });
342
- };
343
176
  /**
344
177
  * Update the status of Advanced Security for the organization
345
178
  *
346
179
  * @param orgEnablementSettings - The new status
347
180
  */
348
- ManagementRestClient.prototype.updateOrgEnablementStatus2 = function (orgEnablementSettings) {
181
+ ManagementRestClient.prototype.updateOrgEnablementStatus3 = function (orgEnablementSettings) {
349
182
  return __awaiter(this, void 0, void 0, function () {
350
183
  return __generator(this, function (_a) {
351
184
  return [2 /*return*/, this.beginRequest({
352
- apiVersion: "7.2-preview.1",
185
+ apiVersion: "7.2-preview.3",
353
186
  method: "PATCH",
354
- routeTemplate: "_apis/Management/enablement2",
187
+ routeTemplate: "_apis/Management/enablement",
355
188
  body: orgEnablementSettings
356
189
  })];
357
190
  });
358
191
  });
359
192
  };
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",
386
- routeTemplate: "_apis/Management/meterUsageEstimate/{action}",
387
- routeValues: {
388
- action: "Default"
389
- }
390
- })];
391
- });
392
- });
393
- };
394
193
  /**
395
194
  * Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this organization.
396
195
  *
397
196
  * @param plan - The plan to query.
398
197
  */
399
- ManagementRestClient.prototype.getEstimatedBillablePushersDetailsForOrg2 = function (plan) {
198
+ ManagementRestClient.prototype.getEstimatedBillablePushersDetailsForOrg3 = function (plan) {
400
199
  return __awaiter(this, void 0, void 0, function () {
401
200
  var queryValues;
402
201
  return __generator(this, function (_a) {
@@ -404,8 +203,8 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
404
203
  plan: plan
405
204
  };
406
205
  return [2 /*return*/, this.beginRequest({
407
- apiVersion: "7.2-preview.1",
408
- routeTemplate: "_apis/Management/meterUsageEstimate2/{action}",
206
+ apiVersion: "7.2-preview.3",
207
+ routeTemplate: "_apis/Management/meterUsageEstimate/{action}",
409
208
  routeValues: {
410
209
  action: "Default"
411
210
  },
@@ -420,7 +219,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
420
219
  * @param project - Project ID or project name
421
220
  * @param includeAllProperties - When true, also determine if pushes are blocked if they contain secrets
422
221
  */
423
- ManagementRestClient.prototype.getProjectEnablementStatus = function (project, includeAllProperties) {
222
+ ManagementRestClient.prototype.getProjectEnablementStatus3 = function (project, includeAllProperties) {
424
223
  return __awaiter(this, void 0, void 0, function () {
425
224
  var queryValues;
426
225
  return __generator(this, function (_a) {
@@ -428,7 +227,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
428
227
  includeAllProperties: includeAllProperties
429
228
  };
430
229
  return [2 /*return*/, this.beginRequest({
431
- apiVersion: "7.2-preview.1",
230
+ apiVersion: "7.2-preview.3",
432
231
  routeTemplate: "{project}/_apis/Management/enablement",
433
232
  routeValues: {
434
233
  project: project
@@ -438,64 +237,19 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
438
237
  });
439
238
  });
440
239
  };
441
- /**
442
- * Update the status of Advanced Security for the project
443
- *
444
- * @param savedAdvSecEnablementStatus - The new status
445
- * @param project - Project ID or project name
446
- */
447
- ManagementRestClient.prototype.updateProjectEnablementStatus = function (savedAdvSecEnablementStatus, project) {
448
- return __awaiter(this, void 0, void 0, function () {
449
- return __generator(this, function (_a) {
450
- return [2 /*return*/, this.beginRequest({
451
- apiVersion: "7.2-preview.1",
452
- method: "PATCH",
453
- routeTemplate: "{project}/_apis/Management/enablement",
454
- routeValues: {
455
- project: project
456
- },
457
- body: savedAdvSecEnablementStatus
458
- })];
459
- });
460
- });
461
- };
462
- /**
463
- * Get the current status of Advanced Security for a project
464
- *
465
- * @param project - Project ID or project name
466
- * @param includeAllProperties - When true, also determine if pushes are blocked if they contain secrets
467
- */
468
- ManagementRestClient.prototype.getProjectEnablementStatus2 = function (project, includeAllProperties) {
469
- return __awaiter(this, void 0, void 0, function () {
470
- var queryValues;
471
- return __generator(this, function (_a) {
472
- queryValues = {
473
- includeAllProperties: includeAllProperties
474
- };
475
- return [2 /*return*/, this.beginRequest({
476
- apiVersion: "7.2-preview.1",
477
- routeTemplate: "{project}/_apis/Management/enablement2",
478
- routeValues: {
479
- project: project
480
- },
481
- queryParams: queryValues
482
- })];
483
- });
484
- });
485
- };
486
240
  /**
487
241
  * Update the status of Advanced Security for the project
488
242
  *
489
243
  * @param projectEnablementSettings - The new status
490
244
  * @param project - Project ID or project name
491
245
  */
492
- ManagementRestClient.prototype.updateProjectEnablementStatus2 = function (projectEnablementSettings, project) {
246
+ ManagementRestClient.prototype.updateProjectEnablementStatus3 = function (projectEnablementSettings, project) {
493
247
  return __awaiter(this, void 0, void 0, function () {
494
248
  return __generator(this, function (_a) {
495
249
  return [2 /*return*/, this.beginRequest({
496
- apiVersion: "7.2-preview.1",
250
+ apiVersion: "7.2-preview.3",
497
251
  method: "PATCH",
498
- routeTemplate: "{project}/_apis/Management/enablement2",
252
+ routeTemplate: "{project}/_apis/Management/enablement",
499
253
  routeValues: {
500
254
  project: project
501
255
  },
@@ -504,51 +258,13 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
504
258
  });
505
259
  });
506
260
  };
507
- /**
508
- * Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this project.
509
- *
510
- * @param project - Project ID or project name
511
- */
512
- ManagementRestClient.prototype.getEstimatedBillablePushersDetailsForProject = function (project) {
513
- return __awaiter(this, void 0, void 0, function () {
514
- return __generator(this, function (_a) {
515
- return [2 /*return*/, this.beginRequest({
516
- apiVersion: "7.2-preview.1",
517
- routeTemplate: "{project}/_apis/Management/meterUsageEstimate/{action}",
518
- routeValues: {
519
- project: project,
520
- action: "Details"
521
- }
522
- })];
523
- });
524
- });
525
- };
526
- /**
527
- * Estimate the number of committers that would be added to the customer's usage if Advanced Security was enabled for this project.
528
- *
529
- * @param project - Project ID or project name
530
- */
531
- ManagementRestClient.prototype.getEstimatedBillablePushersForProject = function (project) {
532
- return __awaiter(this, void 0, void 0, function () {
533
- return __generator(this, function (_a) {
534
- return [2 /*return*/, this.beginRequest({
535
- apiVersion: "7.2-preview.1",
536
- routeTemplate: "{project}/_apis/Management/meterUsageEstimate/{action}",
537
- routeValues: {
538
- project: project,
539
- action: "Default"
540
- }
541
- })];
542
- });
543
- });
544
- };
545
261
  /**
546
262
  * Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this project.
547
263
  *
548
264
  * @param project - Project ID or project name
549
265
  * @param plan -
550
266
  */
551
- ManagementRestClient.prototype.getEstimatedBillablePushersDetailsForProject2 = function (project, plan) {
267
+ ManagementRestClient.prototype.getEstimatedBillablePushersDetailsForProject3 = function (project, plan) {
552
268
  return __awaiter(this, void 0, void 0, function () {
553
269
  var queryValues;
554
270
  return __generator(this, function (_a) {
@@ -556,8 +272,8 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
556
272
  plan: plan
557
273
  };
558
274
  return [2 /*return*/, this.beginRequest({
559
- apiVersion: "7.2-preview.1",
560
- routeTemplate: "{project}/_apis/Management/meterUsageEstimate2/{action}",
275
+ apiVersion: "7.2-preview.3",
276
+ routeTemplate: "{project}/_apis/Management/meterUsageEstimate/{action}",
561
277
  routeValues: {
562
278
  project: project,
563
279
  action: "Default"
@@ -568,13 +284,13 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
568
284
  });
569
285
  };
570
286
  /**
571
- * Determine if Advanced Security is enabled for a repository
287
+ * Determines if Code Security, Secret Protection, and their features are enabled for the repository.
572
288
  *
573
289
  * @param project - Project ID or project name
574
290
  * @param repository - The name or ID of the repository
575
291
  * @param includeAllProperties - When true, will also determine if pushes are blocked when secrets are detected
576
292
  */
577
- ManagementRestClient.prototype.getRepoEnablementStatus = function (project, repository, includeAllProperties) {
293
+ ManagementRestClient.prototype.getRepoEnablementStatus3 = function (project, repository, includeAllProperties) {
578
294
  return __awaiter(this, void 0, void 0, function () {
579
295
  var queryValues;
580
296
  return __generator(this, function (_a) {
@@ -582,7 +298,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
582
298
  includeAllProperties: includeAllProperties
583
299
  };
584
300
  return [2 /*return*/, this.beginRequest({
585
- apiVersion: "7.2-preview.1",
301
+ apiVersion: "7.2-preview.3",
586
302
  routeTemplate: "{project}/_apis/Management/repositories/{repository}/enablement",
587
303
  routeValues: {
588
304
  project: project,
@@ -594,17 +310,17 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
594
310
  });
595
311
  };
596
312
  /**
597
- * 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.
598
314
  *
599
315
  * @param savedAdvSecEnablementStatus - new status
600
316
  * @param project - Project ID or project name
601
317
  * @param repository - Name or ID of the repository
602
318
  */
603
- ManagementRestClient.prototype.updateRepoAdvSecEnablementStatus = function (savedAdvSecEnablementStatus, project, repository) {
319
+ ManagementRestClient.prototype.updateRepoAdvSecEnablementStatus3 = function (savedAdvSecEnablementStatus, project, repository) {
604
320
  return __awaiter(this, void 0, void 0, function () {
605
321
  return __generator(this, function (_a) {
606
322
  return [2 /*return*/, this.beginRequest({
607
- apiVersion: "7.2-preview.1",
323
+ apiVersion: "7.2-preview.3",
608
324
  method: "PATCH",
609
325
  routeTemplate: "{project}/_apis/Management/repositories/{repository}/enablement",
610
326
  routeValues: {
@@ -616,48 +332,6 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
616
332
  });
617
333
  });
618
334
  };
619
- /**
620
- * Estimate the committers that would be added to the customer's usage if Advanced Security was enabled for this repository.
621
- *
622
- * @param project - Project ID or project name
623
- * @param repository -
624
- */
625
- ManagementRestClient.prototype.getEstimatedBillableCommitersDetailsForRepo = function (project, repository) {
626
- return __awaiter(this, void 0, void 0, function () {
627
- return __generator(this, function (_a) {
628
- return [2 /*return*/, this.beginRequest({
629
- apiVersion: "7.2-preview.1",
630
- routeTemplate: "{project}/_apis/Management/repositories/{repository}/meterUsageEstimate/{action}",
631
- routeValues: {
632
- project: project,
633
- repository: repository,
634
- action: "Details"
635
- }
636
- })];
637
- });
638
- });
639
- };
640
- /**
641
- * Estimate the committers that would be added to the customer's usage if Advanced Security was enabled for this repository.
642
- *
643
- * @param project - Project ID or project name
644
- * @param repository - The name or ID of the repository
645
- */
646
- ManagementRestClient.prototype.getEstimatedBillableCommittersForRepo = function (project, repository) {
647
- return __awaiter(this, void 0, void 0, function () {
648
- return __generator(this, function (_a) {
649
- return [2 /*return*/, this.beginRequest({
650
- apiVersion: "7.2-preview.1",
651
- routeTemplate: "{project}/_apis/Management/repositories/{repository}/meterUsageEstimate/{action}",
652
- routeValues: {
653
- project: project,
654
- repository: repository,
655
- action: "Default"
656
- }
657
- })];
658
- });
659
- });
660
- };
661
335
  /**
662
336
  * Estimate the pushers that would be added to the customer's usage if Advanced Security was enabled for this repository.
663
337
  *
@@ -665,7 +339,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
665
339
  * @param repository - The name or ID of the repository
666
340
  * @param plan - The plan to query.
667
341
  */
668
- ManagementRestClient.prototype.getEstimatedRepoBillableCommittersDetails2 = function (project, repository, plan) {
342
+ ManagementRestClient.prototype.getEstimatedBillableCommittersDetailsForRepo3 = function (project, repository, plan) {
669
343
  return __awaiter(this, void 0, void 0, function () {
670
344
  var queryValues;
671
345
  return __generator(this, function (_a) {
@@ -673,8 +347,8 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
673
347
  plan: plan
674
348
  };
675
349
  return [2 /*return*/, this.beginRequest({
676
- apiVersion: "7.2-preview.1",
677
- routeTemplate: "{project}/_apis/Management/repositories/{repository}/meterUsageEstimate2/{action}",
350
+ apiVersion: "7.2-preview.3",
351
+ routeTemplate: "{project}/_apis/Management/repositories/{repository}/meterUsageEstimate/{action}",
678
352
  routeValues: {
679
353
  project: project,
680
354
  repository: repository,
@@ -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 r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{s(n.next(e))}catch(e){o(e)}}function u(e){try{s(n.throw(e))}catch(e){o(e)}}function s(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,u)}s((n=n.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return u.label++,{value:r[1],done:!1};case 5:u.label++,i=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(o=u.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){u.label=r[1];break}if(6===r[0]&&u.label<o[1]){u.label=o[1],o=r;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(r);break}o[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var n,i,o,a,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getRepoEnablementStatus2=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={includeAllProperties:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/repositories/{repository}/enablement2",routeValues:{project:e,repository:t},queryParams:n})]})})},t.prototype.updateRepoAdvSecEnablementStatus2=function(e,t,r){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/repositories/{repository}/enablement2",routeValues:{project:t,repository:r},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(r){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(r){return t={billingDate:e},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Default"},queryParams:t})]})})},t.prototype.createBillingSnapshot2=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={plan:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/Management/MeterUsage2/{action}",routeValues:{action:"Default"},queryParams:r,body:e})]})})},t.prototype.getBillableCommitterDetails2=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={plan:e,billingDate:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/MeterUsage2/{action}",routeValues:{action:"Details"},queryParams:r})]})})},t.prototype.getLastMeterUsage2=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={plan:e},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/MeterUsage2/{action}",routeValues:{action:"Last"},queryParams:t})]})})},t.prototype.getMeterUsage2=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={plan:e,billingDate:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/MeterUsage2/{action}",routeValues:{action:"Default"},queryParams:r})]})})},t.prototype.getOrgEnablementStatus=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){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.getOrgEnablementStatus2=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={includeAllProperties:e},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/enablement2",queryParams:t})]})})},t.prototype.updateOrgEnablementStatus2=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/enablement2",body:e})]})})},t.prototype.getEstimatedBillablePushersDetailsForOrg=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/{action}",routeValues:{action:"Details"}})]})})},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/{action}",routeValues:{action:"Default"}})]})})},t.prototype.getEstimatedBillablePushersDetailsForOrg2=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={plan:e},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Management/meterUsageEstimate2/{action}",routeValues:{action:"Default"},queryParams:t})]})})},t.prototype.getProjectEnablementStatus=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={includeAllProperties:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/enablement",routeValues:{project:e},queryParams:r})]})})},t.prototype.updateProjectEnablementStatus=function(e,t){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/enablement",routeValues:{project:t},body:e})]})})},t.prototype.getProjectEnablementStatus2=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={includeAllProperties:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/enablement2",routeValues:{project:e},queryParams:r})]})})},t.prototype.updateProjectEnablementStatus2=function(e,t){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/enablement2",routeValues:{project:t},body:e})]})})},t.prototype.getEstimatedBillablePushersDetailsForProject=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/{action}",routeValues:{project:e,action:"Details"}})]})})},t.prototype.getEstimatedBillablePushersForProject=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/{action}",routeValues:{project:e,action:"Default"}})]})})},t.prototype.getEstimatedBillablePushersDetailsForProject2=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={plan:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/meterUsageEstimate2/{action}",routeValues:{project:e,action:"Default"},queryParams:r})]})})},t.prototype.getRepoEnablementStatus=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={includeAllProperties:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/repositories/{repository}/enablement",routeValues:{project:e,repository:t},queryParams:n})]})})},t.prototype.updateRepoAdvSecEnablementStatus=function(e,t,r){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/repositories/{repository}/enablement",routeValues:{project:t,repository:r},body:e})]})})},t.prototype.getEstimatedBillableCommitersDetailsForRepo=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/repositories/{repository}/meterUsageEstimate/{action}",routeValues:{project:e,repository:t,action:"Details"}})]})})},t.prototype.getEstimatedBillableCommittersForRepo=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/repositories/{repository}/meterUsageEstimate/{action}",routeValues:{project:e,repository:t,action:"Default"}})]})})},t.prototype.getEstimatedRepoBillableCommittersDetails2=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={plan:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Management/repositories/{repository}/meterUsageEstimate2/{action}",routeValues:{project:e,repository:t,action:"Default"},queryParams:n})]})})},t}(r.RestClientBase);t.ManagementRestClient=n});
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 r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{s(n.next(e))}catch(e){o(e)}}function u(e){try{s(n.throw(e))}catch(e){o(e)}}function s(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,u)}s((n=n.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return u.label++,{value:r[1],done:!1};case 5:u.label++,i=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(o=u.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){u.label=r[1];break}if(6===r[0]&&u.label<o[1]){u.label=o[1],o=r;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(r);break}o[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var n,i,o,a,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createBillingSnapshot3=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={plan:t},[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"POST",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Default"},queryParams:r,body:e})]})})},t.prototype.getBillableCommitterDetails3=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={plan:e,billingDate:t},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Details"},queryParams:r})]})})},t.prototype.getLastMeterUsage3=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={plan:e},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Last"},queryParams:t})]})})},t.prototype.getMeterUsage3=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={plan:e,billingDate:t},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"_apis/Management/MeterUsage/{action}",routeValues:{action:"Default"},queryParams:r})]})})},t.prototype.getOrgEnablementStatus3=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={includeAllProperties:e},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"_apis/Management/enablement",queryParams:t})]})})},t.prototype.updateOrgEnablementStatus3=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"PATCH",routeTemplate:"_apis/Management/enablement",body:e})]})})},t.prototype.getEstimatedBillablePushersDetailsForOrg3=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={plan:e},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"_apis/Management/meterUsageEstimate/{action}",routeValues:{action:"Default"},queryParams:t})]})})},t.prototype.getProjectEnablementStatus3=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={includeAllProperties:t},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/Management/enablement",routeValues:{project:e},queryParams:r})]})})},t.prototype.updateProjectEnablementStatus3=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/Management/enablement",routeValues:{project:t},body:e})]})})},t.prototype.getEstimatedBillablePushersDetailsForProject3=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={plan:t},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/Management/meterUsageEstimate/{action}",routeValues:{project:e,action:"Default"},queryParams:r})]})})},t.prototype.getRepoEnablementStatus3=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={includeAllProperties:r},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/Management/repositories/{repository}/enablement",routeValues:{project:e,repository:t},queryParams:n})]})})},t.prototype.updateRepoAdvSecEnablementStatus3=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/Management/repositories/{repository}/enablement",routeValues:{project:t,repository:r},body:e})]})})},t.prototype.getEstimatedBillableCommittersDetailsForRepo3=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={plan:r},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/Management/repositories/{repository}/meterUsageEstimate/{action}",routeValues:{project:e,repository:t,action:"Default"},queryParams:n})]})})},t}(r.RestClientBase);t.ManagementRestClient=n});