azure-devops-extension-api 1.158.0 → 2.220.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/Accounts/AccountsClient.d.ts +1 -1
  2. package/Accounts/AccountsClient.js +4 -4
  3. package/Accounts/AccountsClient.min.js +1 -1
  4. package/Build/Build.d.ts +205 -3
  5. package/Build/Build.js +6 -2
  6. package/Build/Build.min.js +1 -1
  7. package/Build/BuildClient.d.ts +121 -13
  8. package/Build/BuildClient.js +468 -101
  9. package/Build/BuildClient.min.js +1 -1
  10. package/Contributions/Contributions.d.ts +1 -1
  11. package/Contributions/ContributionsClient.js +4 -4
  12. package/Contributions/ContributionsClient.min.js +1 -1
  13. package/Core/CoreClient.d.ts +2 -2
  14. package/Core/CoreClient.js +49 -36
  15. package/Core/CoreClient.min.js +1 -1
  16. package/Dashboard/Dashboard.d.ts +79 -2
  17. package/Dashboard/Dashboard.js +10 -0
  18. package/Dashboard/Dashboard.min.js +1 -1
  19. package/Dashboard/DashboardClient.d.ts +2 -2
  20. package/Dashboard/DashboardClient.js +15 -15
  21. package/Dashboard/DashboardClient.min.js +1 -1
  22. package/ExtensionManagement/ExtensionManagement.d.ts +2 -2
  23. package/ExtensionManagement/ExtensionManagementClient.d.ts +2 -2
  24. package/ExtensionManagement/ExtensionManagementClient.js +27 -27
  25. package/ExtensionManagement/ExtensionManagementClient.min.js +1 -1
  26. package/Favorite/Favorite.d.ts +124 -0
  27. package/Favorite/Favorite.js +9 -0
  28. package/Favorite/Favorite.min.js +1 -0
  29. package/Favorite/FavoriteClient.d.ts +78 -0
  30. package/Favorite/FavoriteClient.js +314 -0
  31. package/Favorite/FavoriteClient.min.js +1 -0
  32. package/FeatureAvailability/FeatureAvailabilityClient.js +5 -5
  33. package/FeatureAvailability/FeatureAvailabilityClient.min.js +1 -1
  34. package/FeatureManagement/FeatureManagementClient.js +9 -9
  35. package/FeatureManagement/FeatureManagementClient.min.js +1 -1
  36. package/FileContainer/FileContainer.d.ts +22 -0
  37. package/FileContainer/FileContainer.js +8 -0
  38. package/FileContainer/FileContainer.min.js +1 -1
  39. package/FileContainer/FileContainerClient.d.ts +5 -2
  40. package/FileContainer/FileContainerClient.js +13 -7
  41. package/FileContainer/FileContainerClient.min.js +1 -1
  42. package/FormInput/FormInput.d.ts +1 -1
  43. package/Gallery/Gallery.d.ts +92 -7
  44. package/Gallery/Gallery.js +25 -3
  45. package/Gallery/Gallery.min.js +1 -1
  46. package/Gallery/GalleryClient.d.ts +41 -9
  47. package/Gallery/GalleryClient.js +211 -90
  48. package/Gallery/GalleryClient.min.js +1 -1
  49. package/Git/Git.d.ts +121 -7
  50. package/Git/Git.js +2 -1
  51. package/Git/Git.min.js +1 -1
  52. package/Git/GitClient.d.ts +182 -28
  53. package/Git/GitClient.js +657 -162
  54. package/Git/GitClient.min.js +1 -1
  55. package/Graph/Graph.d.ts +107 -17
  56. package/Graph/GraphClient.d.ts +42 -3
  57. package/Graph/GraphClient.js +159 -38
  58. package/Graph/GraphClient.min.js +1 -1
  59. package/Identities/Identities.d.ts +15 -0
  60. package/Locations/LocationsClient.js +9 -9
  61. package/Locations/LocationsClient.min.js +1 -1
  62. package/Notification/Notification.d.ts +3 -3
  63. package/Notification/NotificationClient.d.ts +6 -0
  64. package/Notification/NotificationClient.js +40 -23
  65. package/Notification/NotificationClient.min.js +1 -1
  66. package/Operations/OperationsClient.d.ts +1 -1
  67. package/Operations/OperationsClient.js +2 -2
  68. package/Operations/OperationsClient.min.js +1 -1
  69. package/Pipelines/Pipelines.d.ts +318 -0
  70. package/Pipelines/Pipelines.js +82 -0
  71. package/Pipelines/Pipelines.min.js +1 -0
  72. package/Pipelines/PipelinesClient.d.ts +92 -0
  73. package/Pipelines/PipelinesClient.js +325 -0
  74. package/Pipelines/PipelinesClient.min.js +1 -0
  75. package/Policy/Policy.d.ts +4 -0
  76. package/Policy/PolicyClient.d.ts +3 -3
  77. package/Policy/PolicyClient.js +30 -19
  78. package/Policy/PolicyClient.min.js +1 -1
  79. package/Profile/ProfileClient.js +12 -12
  80. package/Profile/ProfileClient.min.js +1 -1
  81. package/ProjectAnalysis/ProjectAnalysisClient.js +4 -4
  82. package/ProjectAnalysis/ProjectAnalysisClient.min.js +1 -1
  83. package/Release/Release.d.ts +81 -7
  84. package/Release/Release.js +11 -0
  85. package/Release/Release.min.js +1 -1
  86. package/Release/ReleaseClient.d.ts +31 -5
  87. package/Release/ReleaseClient.js +223 -95
  88. package/Release/ReleaseClient.min.js +1 -1
  89. package/ServiceEndpoint/ServiceEndpoint.d.ts +11 -2
  90. package/ServiceEndpoint/ServiceEndpoint.js +1 -0
  91. package/ServiceEndpoint/ServiceEndpoint.min.js +1 -1
  92. package/ServiceEndpoint/ServiceEndpointClient.d.ts +33 -31
  93. package/ServiceEndpoint/ServiceEndpointClient.js +122 -107
  94. package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -1
  95. package/ServiceHooks/ServiceHooks.d.ts +2 -1
  96. package/ServiceHooks/ServiceHooksClient.js +23 -23
  97. package/ServiceHooks/ServiceHooksClient.min.js +1 -1
  98. package/TaskAgent/TaskAgent.d.ts +740 -17
  99. package/TaskAgent/TaskAgent.js +133 -0
  100. package/TaskAgent/TaskAgent.min.js +1 -1
  101. package/TaskAgent/TaskAgentClient.d.ts +28 -16
  102. package/TaskAgent/TaskAgentClient.js +336 -195
  103. package/TaskAgent/TaskAgentClient.min.js +1 -1
  104. package/Test/Test.d.ts +96 -25
  105. package/Test/Test.js +8 -0
  106. package/Test/Test.min.js +1 -1
  107. package/Test/TestClient.d.ts +17 -34
  108. package/Test/TestClient.js +163 -152
  109. package/Test/TestClient.min.js +1 -1
  110. package/TestPlan/TestPlan.d.ts +215 -18
  111. package/TestPlan/TestPlan.js +47 -1
  112. package/TestPlan/TestPlan.min.js +1 -1
  113. package/TestPlan/TestPlanClient.d.ts +48 -14
  114. package/TestPlan/TestPlanClient.js +255 -74
  115. package/TestPlan/TestPlanClient.min.js +1 -1
  116. package/TestResults/TestResultsClient.d.ts +112 -27
  117. package/TestResults/TestResultsClient.js +518 -134
  118. package/TestResults/TestResultsClient.min.js +1 -1
  119. package/Tfvc/Tfvc.d.ts +9 -1
  120. package/Tfvc/TfvcClient.d.ts +3 -2
  121. package/Tfvc/TfvcClient.js +41 -28
  122. package/Tfvc/TfvcClient.min.js +1 -1
  123. package/WebApi/WebApi.d.ts +22 -3
  124. package/Wiki/Wiki.d.ts +51 -0
  125. package/Wiki/WikiClient.d.ts +18 -0
  126. package/Wiki/WikiClient.js +71 -1
  127. package/Wiki/WikiClient.min.js +1 -1
  128. package/Work/Work.d.ts +68 -1
  129. package/Work/WorkClient.d.ts +10 -3
  130. package/Work/WorkClient.js +78 -58
  131. package/Work/WorkClient.min.js +1 -1
  132. package/WorkItemTracking/WorkItemTracking.d.ts +221 -1
  133. package/WorkItemTracking/WorkItemTrackingClient.d.ts +18 -2
  134. package/WorkItemTracking/WorkItemTrackingClient.js +107 -60
  135. package/WorkItemTracking/WorkItemTrackingClient.min.js +1 -1
  136. package/WorkItemTrackingProcess/WorkItemTrackingProcess.d.ts +15 -2
  137. package/WorkItemTrackingProcess/WorkItemTrackingProcess.js +4 -0
  138. package/WorkItemTrackingProcess/WorkItemTrackingProcess.min.js +1 -1
  139. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.d.ts +1 -1
  140. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.js +58 -58
  141. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.min.js +1 -1
  142. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.d.ts +3 -1
  143. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.d.ts +9 -1
  144. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.js +69 -46
  145. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.min.js +1 -1
  146. package/package.json +3 -3
@@ -48,7 +48,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
48
48
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
49
49
  }
50
50
  };
51
- define(["require", "exports", "../Common/RestClientBase"], function (require, exports, RestClientBase_1) {
51
+ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serialization"], function (require, exports, RestClientBase_1, Serialization_1) {
52
52
  "use strict";
53
53
  Object.defineProperty(exports, "__esModule", { value: true });
54
54
  var TaskAgentRestClient = /** @class */ (function (_super) {
@@ -63,7 +63,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
63
63
  return __awaiter(this, void 0, void 0, function () {
64
64
  return __generator(this, function (_a) {
65
65
  return [2 /*return*/, this.beginRequest({
66
- apiVersion: "5.2-preview.1",
66
+ apiVersion: "7.1-preview.1",
67
67
  method: "POST",
68
68
  routeTemplate: "_apis/distributedtask/agentclouds/{agentCloudId}",
69
69
  body: agentCloud
@@ -78,7 +78,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
78
78
  return __awaiter(this, void 0, void 0, function () {
79
79
  return __generator(this, function (_a) {
80
80
  return [2 /*return*/, this.beginRequest({
81
- apiVersion: "5.2-preview.1",
81
+ apiVersion: "7.1-preview.1",
82
82
  method: "DELETE",
83
83
  routeTemplate: "_apis/distributedtask/agentclouds/{agentCloudId}",
84
84
  routeValues: {
@@ -95,7 +95,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
95
95
  return __awaiter(this, void 0, void 0, function () {
96
96
  return __generator(this, function (_a) {
97
97
  return [2 /*return*/, this.beginRequest({
98
- apiVersion: "5.2-preview.1",
98
+ apiVersion: "7.1-preview.1",
99
99
  routeTemplate: "_apis/distributedtask/agentclouds/{agentCloudId}",
100
100
  routeValues: {
101
101
  agentCloudId: agentCloudId
@@ -110,12 +110,31 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
110
110
  return __awaiter(this, void 0, void 0, function () {
111
111
  return __generator(this, function (_a) {
112
112
  return [2 /*return*/, this.beginRequest({
113
- apiVersion: "5.2-preview.1",
113
+ apiVersion: "7.1-preview.1",
114
114
  routeTemplate: "_apis/distributedtask/agentclouds/{agentCloudId}"
115
115
  })];
116
116
  });
117
117
  });
118
118
  };
119
+ /**
120
+ * @param updatedCloud -
121
+ * @param agentCloudId -
122
+ */
123
+ TaskAgentRestClient.prototype.updateAgentCloud = function (updatedCloud, agentCloudId) {
124
+ return __awaiter(this, void 0, void 0, function () {
125
+ return __generator(this, function (_a) {
126
+ return [2 /*return*/, this.beginRequest({
127
+ apiVersion: "7.1-preview.1",
128
+ method: "PATCH",
129
+ routeTemplate: "_apis/distributedtask/agentclouds/{agentCloudId}",
130
+ routeValues: {
131
+ agentCloudId: agentCloudId
132
+ },
133
+ body: updatedCloud
134
+ })];
135
+ });
136
+ });
137
+ };
119
138
  /**
120
139
  * Get agent cloud types.
121
140
  *
@@ -124,48 +143,65 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
124
143
  return __awaiter(this, void 0, void 0, function () {
125
144
  return __generator(this, function (_a) {
126
145
  return [2 /*return*/, this.beginRequest({
127
- apiVersion: "5.2-preview.1",
146
+ apiVersion: "7.1-preview.1",
128
147
  routeTemplate: "_apis/distributedtask/agentcloudtypes"
129
148
  })];
130
149
  });
131
150
  });
132
151
  };
133
152
  /**
153
+ * @param project - Project ID or project name
134
154
  * @param queueId -
135
155
  * @param top -
136
156
  * @param continuationToken -
137
157
  */
138
- TaskAgentRestClient.prototype.getAgentRequestsForQueue = function (queueId, top, continuationToken) {
158
+ TaskAgentRestClient.prototype.getAgentRequestsForQueue = function (project, queueId, top, continuationToken) {
139
159
  return __awaiter(this, void 0, void 0, function () {
140
160
  var queryValues;
161
+ var _this = this;
141
162
  return __generator(this, function (_a) {
142
163
  queryValues = {
143
164
  '$top': top,
144
165
  continuationToken: continuationToken
145
166
  };
146
167
  return [2 /*return*/, this.beginRequest({
147
- apiVersion: "5.2-preview.1",
148
- routeTemplate: "_apis/distributedtask/queues/{queueId}/agentrequests/{requestId}",
168
+ apiVersion: "7.1-preview.1",
169
+ routeTemplate: "{project}/_apis/distributedtask/queues/{queueId}/agentrequests/{requestId}",
149
170
  routeValues: {
171
+ project: project,
150
172
  queueId: queueId
151
173
  },
152
- queryParams: queryValues
153
- })];
174
+ queryParams: queryValues,
175
+ returnRawResponse: true
176
+ }).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
177
+ var body;
178
+ return __generator(this, function (_a) {
179
+ switch (_a.label) {
180
+ case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
181
+ case 1:
182
+ body = _a.sent();
183
+ body.continuationToken = response.headers.get("x-ms-continuationtoken");
184
+ return [2 /*return*/, body];
185
+ }
186
+ });
187
+ }); })];
154
188
  });
155
189
  });
156
190
  };
157
191
  /**
158
192
  * @param request -
193
+ * @param project - Project ID or project name
159
194
  * @param queueId -
160
195
  */
161
- TaskAgentRestClient.prototype.queueAgentRequest = function (request, queueId) {
196
+ TaskAgentRestClient.prototype.queueAgentRequest = function (request, project, queueId) {
162
197
  return __awaiter(this, void 0, void 0, function () {
163
198
  return __generator(this, function (_a) {
164
199
  return [2 /*return*/, this.beginRequest({
165
- apiVersion: "5.2-preview.1",
200
+ apiVersion: "7.1-preview.1",
166
201
  method: "POST",
167
- routeTemplate: "_apis/distributedtask/queues/{queueId}/agentrequests/{requestId}",
202
+ routeTemplate: "{project}/_apis/distributedtask/queues/{queueId}/agentrequests/{requestId}",
168
203
  routeValues: {
204
+ project: project,
169
205
  queueId: queueId
170
206
  },
171
207
  body: request
@@ -183,7 +219,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
183
219
  return __awaiter(this, void 0, void 0, function () {
184
220
  return __generator(this, function (_a) {
185
221
  return [2 /*return*/, this.beginRequest({
186
- apiVersion: "5.2-preview.1",
222
+ apiVersion: "7.1-preview.1",
187
223
  method: "POST",
188
224
  routeTemplate: "_apis/distributedtask/pools/{poolId}/agents/{agentId}",
189
225
  routeValues: {
@@ -204,7 +240,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
204
240
  return __awaiter(this, void 0, void 0, function () {
205
241
  return __generator(this, function (_a) {
206
242
  return [2 /*return*/, this.beginRequest({
207
- apiVersion: "5.2-preview.1",
243
+ apiVersion: "7.1-preview.1",
208
244
  method: "DELETE",
209
245
  routeTemplate: "_apis/distributedtask/pools/{poolId}/agents/{agentId}",
210
246
  routeValues: {
@@ -236,7 +272,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
236
272
  propertyFilters: propertyFilters && propertyFilters.join(",")
237
273
  };
238
274
  return [2 /*return*/, this.beginRequest({
239
- apiVersion: "5.2-preview.1",
275
+ apiVersion: "7.1-preview.1",
240
276
  routeTemplate: "_apis/distributedtask/pools/{poolId}/agents/{agentId}",
241
277
  routeValues: {
242
278
  poolId: poolId,
@@ -271,7 +307,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
271
307
  demands: demands && demands.join(",")
272
308
  };
273
309
  return [2 /*return*/, this.beginRequest({
274
- apiVersion: "5.2-preview.1",
310
+ apiVersion: "7.1-preview.1",
275
311
  routeTemplate: "_apis/distributedtask/pools/{poolId}/agents/{agentId}",
276
312
  routeValues: {
277
313
  poolId: poolId
@@ -292,7 +328,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
292
328
  return __awaiter(this, void 0, void 0, function () {
293
329
  return __generator(this, function (_a) {
294
330
  return [2 /*return*/, this.beginRequest({
295
- apiVersion: "5.2-preview.1",
331
+ apiVersion: "7.1-preview.1",
296
332
  method: "PUT",
297
333
  routeTemplate: "_apis/distributedtask/pools/{poolId}/agents/{agentId}",
298
334
  routeValues: {
@@ -315,7 +351,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
315
351
  return __awaiter(this, void 0, void 0, function () {
316
352
  return __generator(this, function (_a) {
317
353
  return [2 /*return*/, this.beginRequest({
318
- apiVersion: "5.2-preview.1",
354
+ apiVersion: "7.1-preview.1",
319
355
  method: "PATCH",
320
356
  routeTemplate: "_apis/distributedtask/pools/{poolId}/agents/{agentId}",
321
357
  routeValues: {
@@ -335,7 +371,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
335
371
  return __awaiter(this, void 0, void 0, function () {
336
372
  return __generator(this, function (_a) {
337
373
  return [2 /*return*/, this.beginRequest({
338
- apiVersion: "5.2-preview.1",
374
+ apiVersion: "7.1-preview.1",
339
375
  routeTemplate: "_apis/distributedtask/serviceendpointproxy/azurermmanagementgroups"
340
376
  })];
341
377
  });
@@ -349,7 +385,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
349
385
  return __awaiter(this, void 0, void 0, function () {
350
386
  return __generator(this, function (_a) {
351
387
  return [2 /*return*/, this.beginRequest({
352
- apiVersion: "5.2-preview.1",
388
+ apiVersion: "7.1-preview.1",
353
389
  routeTemplate: "_apis/distributedtask/serviceendpointproxy/azurermsubscriptions"
354
390
  })];
355
391
  });
@@ -365,7 +401,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
365
401
  return __awaiter(this, void 0, void 0, function () {
366
402
  return __generator(this, function (_a) {
367
403
  return [2 /*return*/, this.beginRequest({
368
- apiVersion: "5.2-preview.1",
404
+ apiVersion: "7.1-preview.1",
369
405
  method: "POST",
370
406
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroupaccesstoken/{deploymentGroupId}",
371
407
  routeValues: {
@@ -386,7 +422,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
386
422
  return __awaiter(this, void 0, void 0, function () {
387
423
  return __generator(this, function (_a) {
388
424
  return [2 /*return*/, this.beginRequest({
389
- apiVersion: "5.2-preview.1",
425
+ apiVersion: "7.1-preview.1",
390
426
  method: "POST",
391
427
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}",
392
428
  routeValues: {
@@ -407,7 +443,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
407
443
  return __awaiter(this, void 0, void 0, function () {
408
444
  return __generator(this, function (_a) {
409
445
  return [2 /*return*/, this.beginRequest({
410
- apiVersion: "5.2-preview.1",
446
+ apiVersion: "7.1-preview.1",
411
447
  method: "DELETE",
412
448
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}",
413
449
  routeValues: {
@@ -435,7 +471,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
435
471
  '$expand': expand
436
472
  };
437
473
  return [2 /*return*/, this.beginRequest({
438
- apiVersion: "5.2-preview.1",
474
+ apiVersion: "7.1-preview.1",
439
475
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}",
440
476
  routeValues: {
441
477
  project: project,
@@ -460,6 +496,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
460
496
  TaskAgentRestClient.prototype.getDeploymentGroups = function (project, name, actionFilter, expand, continuationToken, top, ids) {
461
497
  return __awaiter(this, void 0, void 0, function () {
462
498
  var queryValues;
499
+ var _this = this;
463
500
  return __generator(this, function (_a) {
464
501
  queryValues = {
465
502
  name: name,
@@ -470,13 +507,25 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
470
507
  ids: ids && ids.join(",")
471
508
  };
472
509
  return [2 /*return*/, this.beginRequest({
473
- apiVersion: "5.2-preview.1",
510
+ apiVersion: "7.1-preview.1",
474
511
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}",
475
512
  routeValues: {
476
513
  project: project
477
514
  },
478
- queryParams: queryValues
479
- })];
515
+ queryParams: queryValues,
516
+ returnRawResponse: true
517
+ }).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
518
+ var body;
519
+ return __generator(this, function (_a) {
520
+ switch (_a.label) {
521
+ case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
522
+ case 1:
523
+ body = _a.sent();
524
+ body.continuationToken = response.headers.get("x-ms-continuationtoken");
525
+ return [2 /*return*/, body];
526
+ }
527
+ });
528
+ }); })];
480
529
  });
481
530
  });
482
531
  };
@@ -491,7 +540,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
491
540
  return __awaiter(this, void 0, void 0, function () {
492
541
  return __generator(this, function (_a) {
493
542
  return [2 /*return*/, this.beginRequest({
494
- apiVersion: "5.2-preview.1",
543
+ apiVersion: "7.1-preview.1",
495
544
  method: "PATCH",
496
545
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}",
497
546
  routeValues: {
@@ -514,6 +563,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
514
563
  TaskAgentRestClient.prototype.getDeploymentGroupsMetrics = function (project, deploymentGroupName, continuationToken, top) {
515
564
  return __awaiter(this, void 0, void 0, function () {
516
565
  var queryValues;
566
+ var _this = this;
517
567
  return __generator(this, function (_a) {
518
568
  queryValues = {
519
569
  deploymentGroupName: deploymentGroupName,
@@ -521,13 +571,25 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
521
571
  '$top': top
522
572
  };
523
573
  return [2 /*return*/, this.beginRequest({
524
- apiVersion: "5.2-preview.1",
574
+ apiVersion: "7.1-preview.1",
525
575
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/deploymentgroupsmetrics",
526
576
  routeValues: {
527
577
  project: project
528
578
  },
529
- queryParams: queryValues
530
- })];
579
+ queryParams: queryValues,
580
+ returnRawResponse: true
581
+ }).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
582
+ var body;
583
+ return __generator(this, function (_a) {
584
+ switch (_a.label) {
585
+ case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
586
+ case 1:
587
+ body = _a.sent();
588
+ body.continuationToken = response.headers.get("x-ms-continuationtoken");
589
+ return [2 /*return*/, body];
590
+ }
591
+ });
592
+ }); })];
531
593
  });
532
594
  });
533
595
  };
@@ -546,7 +608,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
546
608
  completedRequestCount: completedRequestCount
547
609
  };
548
610
  return [2 /*return*/, this.beginRequest({
549
- apiVersion: "5.2-preview.1",
611
+ apiVersion: "7.1-preview.1",
550
612
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/deploymentmachinejobrequests/{requestId}",
551
613
  routeValues: {
552
614
  project: project,
@@ -572,7 +634,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
572
634
  completedRequestCount: completedRequestCount
573
635
  };
574
636
  return [2 /*return*/, this.beginRequest({
575
- apiVersion: "5.2-preview.1",
637
+ apiVersion: "7.1-preview.1",
576
638
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/deploymentmachinejobrequests/{requestId}",
577
639
  routeValues: {
578
640
  project: project,
@@ -591,7 +653,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
591
653
  return __awaiter(this, void 0, void 0, function () {
592
654
  return __generator(this, function (_a) {
593
655
  return [2 /*return*/, this.beginRequest({
594
- apiVersion: "5.2-preview.1",
656
+ apiVersion: "7.1-preview.1",
595
657
  method: "POST",
596
658
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/deploymentmachinemessages",
597
659
  routeValues: {
@@ -611,7 +673,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
611
673
  return __awaiter(this, void 0, void 0, function () {
612
674
  return __generator(this, function (_a) {
613
675
  return [2 /*return*/, this.beginRequest({
614
- apiVersion: "5.2-preview.1",
676
+ apiVersion: "7.1-preview.1",
615
677
  method: "POST",
616
678
  routeTemplate: "_apis/distributedtask/deploymentpoolaccesstoken/{poolId}",
617
679
  routeValues: {
@@ -638,7 +700,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
638
700
  poolIds: poolIds && poolIds.join(",")
639
701
  };
640
702
  return [2 /*return*/, this.beginRequest({
641
- apiVersion: "5.2-preview.1",
703
+ apiVersion: "7.1-preview.1",
642
704
  routeTemplate: "_apis/distributedtask/deploymentPools/deploymentPoolsSummary",
643
705
  queryParams: queryValues
644
706
  })];
@@ -662,7 +724,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
662
724
  completedRequestCount: completedRequestCount
663
725
  };
664
726
  return [2 /*return*/, this.beginRequest({
665
- apiVersion: "5.2-preview.1",
727
+ apiVersion: "7.1-preview.1",
666
728
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/deploymentTargetJobRequests",
667
729
  routeValues: {
668
730
  project: project,
@@ -694,7 +756,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
694
756
  completedRequestCount: completedRequestCount
695
757
  };
696
758
  return [2 /*return*/, this.beginRequest({
697
- apiVersion: "5.2-preview.1",
759
+ apiVersion: "7.1-preview.1",
698
760
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/deploymentTargetJobRequests",
699
761
  routeValues: {
700
762
  project: project,
@@ -715,7 +777,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
715
777
  return __awaiter(this, void 0, void 0, function () {
716
778
  return __generator(this, function (_a) {
717
779
  return [2 /*return*/, this.beginRequest({
718
- apiVersion: "5.2-preview.1",
780
+ apiVersion: "7.1-preview.1",
719
781
  method: "POST",
720
782
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/deploymentTargetMessages",
721
783
  routeValues: {
@@ -735,7 +797,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
735
797
  return __awaiter(this, void 0, void 0, function () {
736
798
  return __generator(this, function (_a) {
737
799
  return [2 /*return*/, this.beginRequest({
738
- apiVersion: "5.2-preview.1",
800
+ apiVersion: "7.1-preview.1",
739
801
  method: "POST",
740
802
  routeTemplate: "_apis/distributedtask/endpoint",
741
803
  body: endpoint
@@ -754,20 +816,33 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
754
816
  TaskAgentRestClient.prototype.getEnvironmentDeploymentExecutionRecords = function (project, environmentId, continuationToken, top) {
755
817
  return __awaiter(this, void 0, void 0, function () {
756
818
  var queryValues;
819
+ var _this = this;
757
820
  return __generator(this, function (_a) {
758
821
  queryValues = {
759
822
  continuationToken: continuationToken,
760
823
  top: top
761
824
  };
762
825
  return [2 /*return*/, this.beginRequest({
763
- apiVersion: "5.2-preview.1",
826
+ apiVersion: "7.1-preview.1",
764
827
  routeTemplate: "{project}/_apis/distributedtask/environments/{environmentId}/environmentdeploymentRecords",
765
828
  routeValues: {
766
829
  project: project,
767
830
  environmentId: environmentId
768
831
  },
769
- queryParams: queryValues
770
- })];
832
+ queryParams: queryValues,
833
+ returnRawResponse: true
834
+ }).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
835
+ var body;
836
+ return __generator(this, function (_a) {
837
+ switch (_a.label) {
838
+ case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
839
+ case 1:
840
+ body = _a.sent();
841
+ body.continuationToken = response.headers.get("x-ms-continuationtoken");
842
+ return [2 /*return*/, body];
843
+ }
844
+ });
845
+ }); })];
771
846
  });
772
847
  });
773
848
  };
@@ -781,7 +856,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
781
856
  return __awaiter(this, void 0, void 0, function () {
782
857
  return __generator(this, function (_a) {
783
858
  return [2 /*return*/, this.beginRequest({
784
- apiVersion: "5.2-preview.1",
859
+ apiVersion: "7.1-preview.1",
785
860
  method: "POST",
786
861
  routeTemplate: "{project}/_apis/distributedtask/environments/{environmentId}",
787
862
  routeValues: {
@@ -802,7 +877,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
802
877
  return __awaiter(this, void 0, void 0, function () {
803
878
  return __generator(this, function (_a) {
804
879
  return [2 /*return*/, this.beginRequest({
805
- apiVersion: "5.2-preview.1",
880
+ apiVersion: "7.1-preview.1",
806
881
  method: "DELETE",
807
882
  routeTemplate: "{project}/_apis/distributedtask/environments/{environmentId}",
808
883
  routeValues: {
@@ -828,7 +903,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
828
903
  expands: expands
829
904
  };
830
905
  return [2 /*return*/, this.beginRequest({
831
- apiVersion: "5.2-preview.1",
906
+ apiVersion: "7.1-preview.1",
832
907
  routeTemplate: "{project}/_apis/distributedtask/environments/{environmentId}",
833
908
  routeValues: {
834
909
  project: project,
@@ -850,6 +925,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
850
925
  TaskAgentRestClient.prototype.getEnvironments = function (project, name, continuationToken, top) {
851
926
  return __awaiter(this, void 0, void 0, function () {
852
927
  var queryValues;
928
+ var _this = this;
853
929
  return __generator(this, function (_a) {
854
930
  queryValues = {
855
931
  name: name,
@@ -857,13 +933,25 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
857
933
  '$top': top
858
934
  };
859
935
  return [2 /*return*/, this.beginRequest({
860
- apiVersion: "5.2-preview.1",
936
+ apiVersion: "7.1-preview.1",
861
937
  routeTemplate: "{project}/_apis/distributedtask/environments/{environmentId}",
862
938
  routeValues: {
863
939
  project: project
864
940
  },
865
- queryParams: queryValues
866
- })];
941
+ queryParams: queryValues,
942
+ returnRawResponse: true
943
+ }).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
944
+ var body;
945
+ return __generator(this, function (_a) {
946
+ switch (_a.label) {
947
+ case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
948
+ case 1:
949
+ body = _a.sent();
950
+ body.continuationToken = response.headers.get("x-ms-continuationtoken");
951
+ return [2 /*return*/, body];
952
+ }
953
+ });
954
+ }); })];
867
955
  });
868
956
  });
869
957
  };
@@ -878,7 +966,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
878
966
  return __awaiter(this, void 0, void 0, function () {
879
967
  return __generator(this, function (_a) {
880
968
  return [2 /*return*/, this.beginRequest({
881
- apiVersion: "5.2-preview.1",
969
+ apiVersion: "7.1-preview.1",
882
970
  method: "PATCH",
883
971
  routeTemplate: "{project}/_apis/distributedtask/environments/{environmentId}",
884
972
  routeValues: {
@@ -904,7 +992,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
904
992
  includeHostedAgentMinutesCount: includeHostedAgentMinutesCount
905
993
  };
906
994
  return [2 /*return*/, this.beginRequest({
907
- apiVersion: "5.2-preview.3",
995
+ apiVersion: "7.1-preview.3",
908
996
  routeTemplate: "_apis/distributedtask/hublicense/{hubName}",
909
997
  routeValues: {
910
998
  hubName: hubName
@@ -922,7 +1010,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
922
1010
  return __awaiter(this, void 0, void 0, function () {
923
1011
  return __generator(this, function (_a) {
924
1012
  return [2 /*return*/, this.beginRequest({
925
- apiVersion: "5.2-preview.3",
1013
+ apiVersion: "7.1-preview.3",
926
1014
  method: "PUT",
927
1015
  routeTemplate: "_apis/distributedtask/hublicense/{hubName}",
928
1016
  routeValues: {
@@ -940,7 +1028,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
940
1028
  return __awaiter(this, void 0, void 0, function () {
941
1029
  return __generator(this, function (_a) {
942
1030
  return [2 /*return*/, this.beginRequest({
943
- apiVersion: "5.2-preview.1",
1031
+ apiVersion: "7.1-preview.1",
944
1032
  method: "POST",
945
1033
  routeTemplate: "_apis/distributedtask/inputvalidation",
946
1034
  body: inputValidationRequest
@@ -953,17 +1041,19 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
953
1041
  * @param requestId -
954
1042
  * @param lockToken -
955
1043
  * @param result -
1044
+ * @param agentShuttingDown -
956
1045
  */
957
- TaskAgentRestClient.prototype.deleteAgentRequest = function (poolId, requestId, lockToken, result) {
1046
+ TaskAgentRestClient.prototype.deleteAgentRequest = function (poolId, requestId, lockToken, result, agentShuttingDown) {
958
1047
  return __awaiter(this, void 0, void 0, function () {
959
1048
  var queryValues;
960
1049
  return __generator(this, function (_a) {
961
1050
  queryValues = {
962
1051
  lockToken: lockToken,
963
- result: result
1052
+ result: result,
1053
+ agentShuttingDown: agentShuttingDown
964
1054
  };
965
1055
  return [2 /*return*/, this.beginRequest({
966
- apiVersion: "5.2-preview.1",
1056
+ apiVersion: "7.1-preview.1",
967
1057
  method: "DELETE",
968
1058
  routeTemplate: "_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",
969
1059
  routeValues: {
@@ -988,7 +1078,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
988
1078
  includeStatus: includeStatus
989
1079
  };
990
1080
  return [2 /*return*/, this.beginRequest({
991
- apiVersion: "5.2-preview.1",
1081
+ apiVersion: "7.1-preview.1",
992
1082
  routeTemplate: "_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",
993
1083
  routeValues: {
994
1084
  poolId: poolId,
@@ -1007,19 +1097,32 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1007
1097
  TaskAgentRestClient.prototype.getAgentRequests = function (poolId, top, continuationToken) {
1008
1098
  return __awaiter(this, void 0, void 0, function () {
1009
1099
  var queryValues;
1100
+ var _this = this;
1010
1101
  return __generator(this, function (_a) {
1011
1102
  queryValues = {
1012
1103
  '$top': top,
1013
1104
  continuationToken: continuationToken
1014
1105
  };
1015
1106
  return [2 /*return*/, this.beginRequest({
1016
- apiVersion: "5.2-preview.1",
1107
+ apiVersion: "7.1-preview.1",
1017
1108
  routeTemplate: "_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",
1018
1109
  routeValues: {
1019
1110
  poolId: poolId
1020
1111
  },
1021
- queryParams: queryValues
1022
- })];
1112
+ queryParams: queryValues,
1113
+ returnRawResponse: true
1114
+ }).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
1115
+ var body;
1116
+ return __generator(this, function (_a) {
1117
+ switch (_a.label) {
1118
+ case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
1119
+ case 1:
1120
+ body = _a.sent();
1121
+ body.continuationToken = response.headers.get("x-ms-continuationtoken");
1122
+ return [2 /*return*/, body];
1123
+ }
1124
+ });
1125
+ }); })];
1023
1126
  });
1024
1127
  });
1025
1128
  };
@@ -1037,7 +1140,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1037
1140
  completedRequestCount: completedRequestCount
1038
1141
  };
1039
1142
  return [2 /*return*/, this.beginRequest({
1040
- apiVersion: "5.2-preview.1",
1143
+ apiVersion: "7.1-preview.1",
1041
1144
  routeTemplate: "_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",
1042
1145
  routeValues: {
1043
1146
  poolId: poolId
@@ -1061,7 +1164,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1061
1164
  completedRequestCount: completedRequestCount
1062
1165
  };
1063
1166
  return [2 /*return*/, this.beginRequest({
1064
- apiVersion: "5.2-preview.1",
1167
+ apiVersion: "7.1-preview.1",
1065
1168
  routeTemplate: "_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",
1066
1169
  routeValues: {
1067
1170
  poolId: poolId
@@ -1085,7 +1188,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1085
1188
  jobId: jobId
1086
1189
  };
1087
1190
  return [2 /*return*/, this.beginRequest({
1088
- apiVersion: "5.2-preview.1",
1191
+ apiVersion: "7.1-preview.1",
1089
1192
  routeTemplate: "_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",
1090
1193
  routeValues: {
1091
1194
  poolId: poolId
@@ -1103,7 +1206,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1103
1206
  return __awaiter(this, void 0, void 0, function () {
1104
1207
  return __generator(this, function (_a) {
1105
1208
  return [2 /*return*/, this.beginRequest({
1106
- apiVersion: "5.2-preview.1",
1209
+ apiVersion: "7.1-preview.1",
1107
1210
  method: "POST",
1108
1211
  routeTemplate: "_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",
1109
1212
  routeValues: {
@@ -1119,16 +1222,18 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1119
1222
  * @param poolId -
1120
1223
  * @param requestId -
1121
1224
  * @param lockToken -
1225
+ * @param updateOptions -
1122
1226
  */
1123
- TaskAgentRestClient.prototype.updateAgentRequest = function (request, poolId, requestId, lockToken) {
1227
+ TaskAgentRestClient.prototype.updateAgentRequest = function (request, poolId, requestId, lockToken, updateOptions) {
1124
1228
  return __awaiter(this, void 0, void 0, function () {
1125
1229
  var queryValues;
1126
1230
  return __generator(this, function (_a) {
1127
1231
  queryValues = {
1128
- lockToken: lockToken
1232
+ lockToken: lockToken,
1233
+ updateOptions: updateOptions
1129
1234
  };
1130
1235
  return [2 /*return*/, this.beginRequest({
1131
- apiVersion: "5.2-preview.1",
1236
+ apiVersion: "7.1-preview.1",
1132
1237
  method: "PATCH",
1133
1238
  routeTemplate: "_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",
1134
1239
  routeValues: {
@@ -1150,7 +1255,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1150
1255
  return __awaiter(this, void 0, void 0, function () {
1151
1256
  return __generator(this, function (_a) {
1152
1257
  return [2 /*return*/, this.beginRequest({
1153
- apiVersion: "5.2-preview.1",
1258
+ apiVersion: "7.1-preview.1",
1154
1259
  method: "POST",
1155
1260
  routeTemplate: "{project}/_apis/distributedtask/environments/{environmentId}/providers/kubernetes/{resourceId}",
1156
1261
  routeValues: {
@@ -1171,7 +1276,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1171
1276
  return __awaiter(this, void 0, void 0, function () {
1172
1277
  return __generator(this, function (_a) {
1173
1278
  return [2 /*return*/, this.beginRequest({
1174
- apiVersion: "5.2-preview.1",
1279
+ apiVersion: "7.1-preview.1",
1175
1280
  method: "DELETE",
1176
1281
  routeTemplate: "{project}/_apis/distributedtask/environments/{environmentId}/providers/kubernetes/{resourceId}",
1177
1282
  routeValues: {
@@ -1192,7 +1297,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1192
1297
  return __awaiter(this, void 0, void 0, function () {
1193
1298
  return __generator(this, function (_a) {
1194
1299
  return [2 /*return*/, this.beginRequest({
1195
- apiVersion: "5.2-preview.1",
1300
+ apiVersion: "7.1-preview.1",
1196
1301
  routeTemplate: "{project}/_apis/distributedtask/environments/{environmentId}/providers/kubernetes/{resourceId}",
1197
1302
  routeValues: {
1198
1303
  project: project,
@@ -1211,7 +1316,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1211
1316
  return __awaiter(this, void 0, void 0, function () {
1212
1317
  return __generator(this, function (_a) {
1213
1318
  return [2 /*return*/, this.beginRequest({
1214
- apiVersion: "5.2-preview.1",
1319
+ apiVersion: "7.1-preview.1",
1215
1320
  method: "POST",
1216
1321
  routeTemplate: "{project}/_apis/distributedtask/machinegroupaccesstoken/{machineGroupId}",
1217
1322
  routeValues: {
@@ -1230,7 +1335,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1230
1335
  return __awaiter(this, void 0, void 0, function () {
1231
1336
  return __generator(this, function (_a) {
1232
1337
  return [2 /*return*/, this.beginRequest({
1233
- apiVersion: "5.2-preview.1",
1338
+ apiVersion: "7.1-preview.1",
1234
1339
  method: "POST",
1235
1340
  routeTemplate: "{project}/_apis/distributedtask/machinegroups/{machineGroupId}",
1236
1341
  routeValues: {
@@ -1249,7 +1354,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1249
1354
  return __awaiter(this, void 0, void 0, function () {
1250
1355
  return __generator(this, function (_a) {
1251
1356
  return [2 /*return*/, this.beginRequest({
1252
- apiVersion: "5.2-preview.1",
1357
+ apiVersion: "7.1-preview.1",
1253
1358
  method: "DELETE",
1254
1359
  routeTemplate: "{project}/_apis/distributedtask/machinegroups/{machineGroupId}",
1255
1360
  routeValues: {
@@ -1273,7 +1378,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1273
1378
  actionFilter: actionFilter
1274
1379
  };
1275
1380
  return [2 /*return*/, this.beginRequest({
1276
- apiVersion: "5.2-preview.1",
1381
+ apiVersion: "7.1-preview.1",
1277
1382
  routeTemplate: "{project}/_apis/distributedtask/machinegroups/{machineGroupId}",
1278
1383
  routeValues: {
1279
1384
  project: project,
@@ -1298,7 +1403,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1298
1403
  actionFilter: actionFilter
1299
1404
  };
1300
1405
  return [2 /*return*/, this.beginRequest({
1301
- apiVersion: "5.2-preview.1",
1406
+ apiVersion: "7.1-preview.1",
1302
1407
  routeTemplate: "{project}/_apis/distributedtask/machinegroups/{machineGroupId}",
1303
1408
  routeValues: {
1304
1409
  project: project
@@ -1317,7 +1422,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1317
1422
  return __awaiter(this, void 0, void 0, function () {
1318
1423
  return __generator(this, function (_a) {
1319
1424
  return [2 /*return*/, this.beginRequest({
1320
- apiVersion: "5.2-preview.1",
1425
+ apiVersion: "7.1-preview.1",
1321
1426
  method: "PATCH",
1322
1427
  routeTemplate: "{project}/_apis/distributedtask/machinegroups/{machineGroupId}",
1323
1428
  routeValues: {
@@ -1342,7 +1447,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1342
1447
  tagFilters: tagFilters && tagFilters.join(",")
1343
1448
  };
1344
1449
  return [2 /*return*/, this.beginRequest({
1345
- apiVersion: "5.2-preview.1",
1450
+ apiVersion: "7.1-preview.1",
1346
1451
  routeTemplate: "{project}/_apis/distributedtask/machinegroups/{machineGroupId}/machines",
1347
1452
  routeValues: {
1348
1453
  project: project,
@@ -1362,7 +1467,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1362
1467
  return __awaiter(this, void 0, void 0, function () {
1363
1468
  return __generator(this, function (_a) {
1364
1469
  return [2 /*return*/, this.beginRequest({
1365
- apiVersion: "5.2-preview.1",
1470
+ apiVersion: "7.1-preview.1",
1366
1471
  method: "PATCH",
1367
1472
  routeTemplate: "{project}/_apis/distributedtask/machinegroups/{machineGroupId}/machines",
1368
1473
  routeValues: {
@@ -1383,7 +1488,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1383
1488
  return __awaiter(this, void 0, void 0, function () {
1384
1489
  return __generator(this, function (_a) {
1385
1490
  return [2 /*return*/, this.beginRequest({
1386
- apiVersion: "5.2-preview.1",
1491
+ apiVersion: "7.1-preview.1",
1387
1492
  method: "POST",
1388
1493
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",
1389
1494
  routeValues: {
@@ -1404,7 +1509,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1404
1509
  return __awaiter(this, void 0, void 0, function () {
1405
1510
  return __generator(this, function (_a) {
1406
1511
  return [2 /*return*/, this.beginRequest({
1407
- apiVersion: "5.2-preview.1",
1512
+ apiVersion: "7.1-preview.1",
1408
1513
  method: "DELETE",
1409
1514
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",
1410
1515
  routeValues: {
@@ -1430,7 +1535,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1430
1535
  '$expand': expand
1431
1536
  };
1432
1537
  return [2 /*return*/, this.beginRequest({
1433
- apiVersion: "5.2-preview.1",
1538
+ apiVersion: "7.1-preview.1",
1434
1539
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",
1435
1540
  routeValues: {
1436
1541
  project: project,
@@ -1459,7 +1564,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1459
1564
  '$expand': expand
1460
1565
  };
1461
1566
  return [2 /*return*/, this.beginRequest({
1462
- apiVersion: "5.2-preview.1",
1567
+ apiVersion: "7.1-preview.1",
1463
1568
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",
1464
1569
  routeValues: {
1465
1570
  project: project,
@@ -1480,7 +1585,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1480
1585
  return __awaiter(this, void 0, void 0, function () {
1481
1586
  return __generator(this, function (_a) {
1482
1587
  return [2 /*return*/, this.beginRequest({
1483
- apiVersion: "5.2-preview.1",
1588
+ apiVersion: "7.1-preview.1",
1484
1589
  method: "PUT",
1485
1590
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",
1486
1591
  routeValues: {
@@ -1503,7 +1608,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1503
1608
  return __awaiter(this, void 0, void 0, function () {
1504
1609
  return __generator(this, function (_a) {
1505
1610
  return [2 /*return*/, this.beginRequest({
1506
- apiVersion: "5.2-preview.1",
1611
+ apiVersion: "7.1-preview.1",
1507
1612
  method: "PATCH",
1508
1613
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",
1509
1614
  routeValues: {
@@ -1525,7 +1630,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1525
1630
  return __awaiter(this, void 0, void 0, function () {
1526
1631
  return __generator(this, function (_a) {
1527
1632
  return [2 /*return*/, this.beginRequest({
1528
- apiVersion: "5.2-preview.1",
1633
+ apiVersion: "7.1-preview.1",
1529
1634
  method: "PATCH",
1530
1635
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",
1531
1636
  routeValues: {
@@ -1545,7 +1650,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1545
1650
  return __awaiter(this, void 0, void 0, function () {
1546
1651
  return __generator(this, function (_a) {
1547
1652
  return [2 /*return*/, this.beginRequest({
1548
- apiVersion: "5.2-preview.1",
1653
+ apiVersion: "7.1-preview.1",
1549
1654
  method: "POST",
1550
1655
  routeTemplate: "_apis/distributedtask/pools/{poolId}/maintenancedefinitions/{definitionId}",
1551
1656
  routeValues: {
@@ -1564,7 +1669,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1564
1669
  return __awaiter(this, void 0, void 0, function () {
1565
1670
  return __generator(this, function (_a) {
1566
1671
  return [2 /*return*/, this.beginRequest({
1567
- apiVersion: "5.2-preview.1",
1672
+ apiVersion: "7.1-preview.1",
1568
1673
  method: "DELETE",
1569
1674
  routeTemplate: "_apis/distributedtask/pools/{poolId}/maintenancedefinitions/{definitionId}",
1570
1675
  routeValues: {
@@ -1583,7 +1688,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1583
1688
  return __awaiter(this, void 0, void 0, function () {
1584
1689
  return __generator(this, function (_a) {
1585
1690
  return [2 /*return*/, this.beginRequest({
1586
- apiVersion: "5.2-preview.1",
1691
+ apiVersion: "7.1-preview.1",
1587
1692
  routeTemplate: "_apis/distributedtask/pools/{poolId}/maintenancedefinitions/{definitionId}",
1588
1693
  routeValues: {
1589
1694
  poolId: poolId,
@@ -1600,7 +1705,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1600
1705
  return __awaiter(this, void 0, void 0, function () {
1601
1706
  return __generator(this, function (_a) {
1602
1707
  return [2 /*return*/, this.beginRequest({
1603
- apiVersion: "5.2-preview.1",
1708
+ apiVersion: "7.1-preview.1",
1604
1709
  routeTemplate: "_apis/distributedtask/pools/{poolId}/maintenancedefinitions/{definitionId}",
1605
1710
  routeValues: {
1606
1711
  poolId: poolId
@@ -1618,7 +1723,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1618
1723
  return __awaiter(this, void 0, void 0, function () {
1619
1724
  return __generator(this, function (_a) {
1620
1725
  return [2 /*return*/, this.beginRequest({
1621
- apiVersion: "5.2-preview.1",
1726
+ apiVersion: "7.1-preview.1",
1622
1727
  method: "PUT",
1623
1728
  routeTemplate: "_apis/distributedtask/pools/{poolId}/maintenancedefinitions/{definitionId}",
1624
1729
  routeValues: {
@@ -1638,7 +1743,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1638
1743
  return __awaiter(this, void 0, void 0, function () {
1639
1744
  return __generator(this, function (_a) {
1640
1745
  return [2 /*return*/, this.beginRequest({
1641
- apiVersion: "5.2-preview.1",
1746
+ apiVersion: "7.1-preview.1",
1642
1747
  method: "DELETE",
1643
1748
  routeTemplate: "_apis/distributedtask/pools/{poolId}/maintenancejobs/{jobId}",
1644
1749
  routeValues: {
@@ -1657,7 +1762,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1657
1762
  return __awaiter(this, void 0, void 0, function () {
1658
1763
  return __generator(this, function (_a) {
1659
1764
  return [2 /*return*/, this.beginRequest({
1660
- apiVersion: "5.2-preview.1",
1765
+ apiVersion: "7.1-preview.1",
1661
1766
  routeTemplate: "_apis/distributedtask/pools/{poolId}/maintenancejobs/{jobId}",
1662
1767
  routeValues: {
1663
1768
  poolId: poolId,
@@ -1675,7 +1780,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1675
1780
  return __awaiter(this, void 0, void 0, function () {
1676
1781
  return __generator(this, function (_a) {
1677
1782
  return [2 /*return*/, this.beginRequest({
1678
- apiVersion: "5.2-preview.1",
1783
+ apiVersion: "7.1-preview.1",
1679
1784
  httpResponseType: "application/zip",
1680
1785
  routeTemplate: "_apis/distributedtask/pools/{poolId}/maintenancejobs/{jobId}",
1681
1786
  routeValues: {
@@ -1698,7 +1803,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1698
1803
  definitionId: definitionId
1699
1804
  };
1700
1805
  return [2 /*return*/, this.beginRequest({
1701
- apiVersion: "5.2-preview.1",
1806
+ apiVersion: "7.1-preview.1",
1702
1807
  routeTemplate: "_apis/distributedtask/pools/{poolId}/maintenancejobs/{jobId}",
1703
1808
  routeValues: {
1704
1809
  poolId: poolId
@@ -1716,7 +1821,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1716
1821
  return __awaiter(this, void 0, void 0, function () {
1717
1822
  return __generator(this, function (_a) {
1718
1823
  return [2 /*return*/, this.beginRequest({
1719
- apiVersion: "5.2-preview.1",
1824
+ apiVersion: "7.1-preview.1",
1720
1825
  method: "POST",
1721
1826
  routeTemplate: "_apis/distributedtask/pools/{poolId}/maintenancejobs/{jobId}",
1722
1827
  routeValues: {
@@ -1736,7 +1841,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1736
1841
  return __awaiter(this, void 0, void 0, function () {
1737
1842
  return __generator(this, function (_a) {
1738
1843
  return [2 /*return*/, this.beginRequest({
1739
- apiVersion: "5.2-preview.1",
1844
+ apiVersion: "7.1-preview.1",
1740
1845
  method: "PATCH",
1741
1846
  routeTemplate: "_apis/distributedtask/pools/{poolId}/maintenancejobs/{jobId}",
1742
1847
  routeValues: {
@@ -1761,7 +1866,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1761
1866
  sessionId: sessionId
1762
1867
  };
1763
1868
  return [2 /*return*/, this.beginRequest({
1764
- apiVersion: "5.2-preview.1",
1869
+ apiVersion: "7.1-preview.1",
1765
1870
  method: "DELETE",
1766
1871
  routeTemplate: "_apis/distributedtask/pools/{poolId}/messages/{messageId}",
1767
1872
  routeValues: {
@@ -1787,7 +1892,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1787
1892
  lastMessageId: lastMessageId
1788
1893
  };
1789
1894
  return [2 /*return*/, this.beginRequest({
1790
- apiVersion: "5.2-preview.1",
1895
+ apiVersion: "7.1-preview.1",
1791
1896
  routeTemplate: "_apis/distributedtask/pools/{poolId}/messages/{messageId}",
1792
1897
  routeValues: {
1793
1898
  poolId: poolId
@@ -1809,7 +1914,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1809
1914
  agentId: agentId
1810
1915
  };
1811
1916
  return [2 /*return*/, this.beginRequest({
1812
- apiVersion: "5.2-preview.1",
1917
+ apiVersion: "7.1-preview.1",
1813
1918
  method: "POST",
1814
1919
  routeTemplate: "_apis/distributedtask/pools/{poolId}/messages/{messageId}",
1815
1920
  routeValues: {
@@ -1827,7 +1932,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1827
1932
  return __awaiter(this, void 0, void 0, function () {
1828
1933
  return __generator(this, function (_a) {
1829
1934
  return [2 /*return*/, this.beginRequest({
1830
- apiVersion: "5.2-preview.1",
1935
+ apiVersion: "7.1-preview.1",
1831
1936
  method: "POST",
1832
1937
  routeTemplate: "_apis/distributedtask/pools/{poolId}/messages/{messageId}",
1833
1938
  routeValues: {
@@ -1850,7 +1955,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1850
1955
  requestId: requestId
1851
1956
  };
1852
1957
  return [2 /*return*/, this.beginRequest({
1853
- apiVersion: "5.2-preview.1",
1958
+ apiVersion: "7.1-preview.1",
1854
1959
  method: "POST",
1855
1960
  routeTemplate: "_apis/distributedtask/pools/{poolId}/messages/{messageId}",
1856
1961
  routeValues: {
@@ -1871,7 +1976,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1871
1976
  return __awaiter(this, void 0, void 0, function () {
1872
1977
  return __generator(this, function (_a) {
1873
1978
  return [2 /*return*/, this.beginRequest({
1874
- apiVersion: "5.2-preview.2",
1979
+ apiVersion: "7.1-preview.2",
1875
1980
  routeTemplate: "_apis/distributedtask/packages/{packageType}/{platform}/{version}",
1876
1981
  routeValues: {
1877
1982
  packageType: packageType,
@@ -1895,7 +2000,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1895
2000
  '$top': top
1896
2001
  };
1897
2002
  return [2 /*return*/, this.beginRequest({
1898
- apiVersion: "5.2-preview.2",
2003
+ apiVersion: "7.1-preview.2",
1899
2004
  routeTemplate: "_apis/distributedtask/packages/{packageType}/{platform}/{version}",
1900
2005
  routeValues: {
1901
2006
  packageType: packageType,
@@ -1913,7 +2018,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1913
2018
  return __awaiter(this, void 0, void 0, function () {
1914
2019
  return __generator(this, function (_a) {
1915
2020
  return [2 /*return*/, this.beginRequest({
1916
- apiVersion: "5.2-preview.1",
2021
+ apiVersion: "7.1-preview.1",
1917
2022
  httpResponseType: "text/plain",
1918
2023
  routeTemplate: "_apis/distributedtask/pools/{poolId}/poolmetadata",
1919
2024
  routeValues: {
@@ -1923,6 +2028,29 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1923
2028
  });
1924
2029
  });
1925
2030
  };
2031
+ /**
2032
+ * @param agentPoolMetadata -
2033
+ * @param poolId -
2034
+ */
2035
+ TaskAgentRestClient.prototype.setAgentPoolMetadata = function (agentPoolMetadata, poolId) {
2036
+ return __awaiter(this, void 0, void 0, function () {
2037
+ return __generator(this, function (_a) {
2038
+ return [2 /*return*/, this.beginRequest({
2039
+ apiVersion: "7.1-preview.1",
2040
+ method: "PUT",
2041
+ routeTemplate: "_apis/distributedtask/pools/{poolId}/poolmetadata",
2042
+ routeValues: {
2043
+ poolId: poolId
2044
+ },
2045
+ customHeaders: {
2046
+ "Content-Type": "application/octet-stream",
2047
+ },
2048
+ body: agentPoolMetadata,
2049
+ isRawData: true
2050
+ })];
2051
+ });
2052
+ });
2053
+ };
1926
2054
  /**
1927
2055
  * Create an agent pool.
1928
2056
  *
@@ -1932,7 +2060,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1932
2060
  return __awaiter(this, void 0, void 0, function () {
1933
2061
  return __generator(this, function (_a) {
1934
2062
  return [2 /*return*/, this.beginRequest({
1935
- apiVersion: "5.2-preview.1",
2063
+ apiVersion: "7.1-preview.1",
1936
2064
  method: "POST",
1937
2065
  routeTemplate: "_apis/distributedtask/pools/{poolId}",
1938
2066
  body: pool
@@ -1949,7 +2077,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1949
2077
  return __awaiter(this, void 0, void 0, function () {
1950
2078
  return __generator(this, function (_a) {
1951
2079
  return [2 /*return*/, this.beginRequest({
1952
- apiVersion: "5.2-preview.1",
2080
+ apiVersion: "7.1-preview.1",
1953
2081
  method: "DELETE",
1954
2082
  routeTemplate: "_apis/distributedtask/pools/{poolId}",
1955
2083
  routeValues: {
@@ -1975,7 +2103,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
1975
2103
  actionFilter: actionFilter
1976
2104
  };
1977
2105
  return [2 /*return*/, this.beginRequest({
1978
- apiVersion: "5.2-preview.1",
2106
+ apiVersion: "7.1-preview.1",
1979
2107
  routeTemplate: "_apis/distributedtask/pools/{poolId}",
1980
2108
  routeValues: {
1981
2109
  poolId: poolId
@@ -2004,7 +2132,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2004
2132
  actionFilter: actionFilter
2005
2133
  };
2006
2134
  return [2 /*return*/, this.beginRequest({
2007
- apiVersion: "5.2-preview.1",
2135
+ apiVersion: "7.1-preview.1",
2008
2136
  routeTemplate: "_apis/distributedtask/pools/{poolId}",
2009
2137
  queryParams: queryValues
2010
2138
  })];
@@ -2026,7 +2154,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2026
2154
  actionFilter: actionFilter
2027
2155
  };
2028
2156
  return [2 /*return*/, this.beginRequest({
2029
- apiVersion: "5.2-preview.1",
2157
+ apiVersion: "7.1-preview.1",
2030
2158
  routeTemplate: "_apis/distributedtask/pools/{poolId}",
2031
2159
  queryParams: queryValues
2032
2160
  })];
@@ -2043,7 +2171,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2043
2171
  return __awaiter(this, void 0, void 0, function () {
2044
2172
  return __generator(this, function (_a) {
2045
2173
  return [2 /*return*/, this.beginRequest({
2046
- apiVersion: "5.2-preview.1",
2174
+ apiVersion: "7.1-preview.1",
2047
2175
  method: "PATCH",
2048
2176
  routeTemplate: "_apis/distributedtask/pools/{poolId}",
2049
2177
  routeValues: {
@@ -2069,7 +2197,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2069
2197
  authorizePipelines: authorizePipelines
2070
2198
  };
2071
2199
  return [2 /*return*/, this.beginRequest({
2072
- apiVersion: "5.2-preview.1",
2200
+ apiVersion: "7.1-preview.1",
2073
2201
  method: "POST",
2074
2202
  routeTemplate: "{project}/_apis/distributedtask/queues/{queueId}",
2075
2203
  routeValues: {
@@ -2090,7 +2218,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2090
2218
  return __awaiter(this, void 0, void 0, function () {
2091
2219
  return __generator(this, function (_a) {
2092
2220
  return [2 /*return*/, this.beginRequest({
2093
- apiVersion: "5.2-preview.1",
2221
+ apiVersion: "7.1-preview.1",
2094
2222
  method: "PUT",
2095
2223
  routeTemplate: "{project}/_apis/distributedtask/queues/{queueId}",
2096
2224
  routeValues: {
@@ -2110,7 +2238,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2110
2238
  return __awaiter(this, void 0, void 0, function () {
2111
2239
  return __generator(this, function (_a) {
2112
2240
  return [2 /*return*/, this.beginRequest({
2113
- apiVersion: "5.2-preview.1",
2241
+ apiVersion: "7.1-preview.1",
2114
2242
  method: "DELETE",
2115
2243
  routeTemplate: "{project}/_apis/distributedtask/queues/{queueId}",
2116
2244
  routeValues: {
@@ -2136,7 +2264,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2136
2264
  actionFilter: actionFilter
2137
2265
  };
2138
2266
  return [2 /*return*/, this.beginRequest({
2139
- apiVersion: "5.2-preview.1",
2267
+ apiVersion: "7.1-preview.1",
2140
2268
  routeTemplate: "{project}/_apis/distributedtask/queues/{queueId}",
2141
2269
  routeValues: {
2142
2270
  project: project,
@@ -2163,7 +2291,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2163
2291
  actionFilter: actionFilter
2164
2292
  };
2165
2293
  return [2 /*return*/, this.beginRequest({
2166
- apiVersion: "5.2-preview.1",
2294
+ apiVersion: "7.1-preview.1",
2167
2295
  routeTemplate: "{project}/_apis/distributedtask/queues/{queueId}",
2168
2296
  routeValues: {
2169
2297
  project: project
@@ -2189,7 +2317,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2189
2317
  actionFilter: actionFilter
2190
2318
  };
2191
2319
  return [2 /*return*/, this.beginRequest({
2192
- apiVersion: "5.2-preview.1",
2320
+ apiVersion: "7.1-preview.1",
2193
2321
  routeTemplate: "{project}/_apis/distributedtask/queues/{queueId}",
2194
2322
  routeValues: {
2195
2323
  project: project
@@ -2215,7 +2343,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2215
2343
  actionFilter: actionFilter
2216
2344
  };
2217
2345
  return [2 /*return*/, this.beginRequest({
2218
- apiVersion: "5.2-preview.1",
2346
+ apiVersion: "7.1-preview.1",
2219
2347
  routeTemplate: "{project}/_apis/distributedtask/queues/{queueId}",
2220
2348
  routeValues: {
2221
2349
  project: project
@@ -2241,7 +2369,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2241
2369
  actionFilter: actionFilter
2242
2370
  };
2243
2371
  return [2 /*return*/, this.beginRequest({
2244
- apiVersion: "5.2-preview.1",
2372
+ apiVersion: "7.1-preview.1",
2245
2373
  routeTemplate: "{project}/_apis/distributedtask/queues/{queueId}",
2246
2374
  routeValues: {
2247
2375
  project: project
@@ -2258,7 +2386,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2258
2386
  return __awaiter(this, void 0, void 0, function () {
2259
2387
  return __generator(this, function (_a) {
2260
2388
  return [2 /*return*/, this.beginRequest({
2261
- apiVersion: "5.2-preview.1",
2389
+ apiVersion: "7.1-preview.1",
2262
2390
  routeTemplate: "_apis/distributedtask/agentclouds/{agentCloudId}/requests/{agentCloudRequestId}",
2263
2391
  routeValues: {
2264
2392
  agentCloudId: agentCloudId
@@ -2273,7 +2401,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2273
2401
  return __awaiter(this, void 0, void 0, function () {
2274
2402
  return __generator(this, function (_a) {
2275
2403
  return [2 /*return*/, this.beginRequest({
2276
- apiVersion: "5.2-preview.1",
2404
+ apiVersion: "7.1-preview.1",
2277
2405
  routeTemplate: "_apis/distributedtask/resourcelimits"
2278
2406
  })];
2279
2407
  });
@@ -2294,7 +2422,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2294
2422
  includeRunningRequests: includeRunningRequests
2295
2423
  };
2296
2424
  return [2 /*return*/, this.beginRequest({
2297
- apiVersion: "5.2-preview.2",
2425
+ apiVersion: "7.1-preview.2",
2298
2426
  routeTemplate: "_apis/distributedtask/resourceusage",
2299
2427
  queryParams: queryValues
2300
2428
  })];
@@ -2309,7 +2437,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2309
2437
  return __awaiter(this, void 0, void 0, function () {
2310
2438
  return __generator(this, function (_a) {
2311
2439
  return [2 /*return*/, this.beginRequest({
2312
- apiVersion: "5.2-preview.1",
2440
+ apiVersion: "7.1-preview.1",
2313
2441
  routeTemplate: "{project}/_apis/distributedtask/taskgroups/{taskGroupId}/revisions",
2314
2442
  routeValues: {
2315
2443
  project: project,
@@ -2329,7 +2457,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2329
2457
  return __awaiter(this, void 0, void 0, function () {
2330
2458
  return __generator(this, function (_a) {
2331
2459
  return [2 /*return*/, this.beginRequest({
2332
- apiVersion: "5.2-preview.1",
2460
+ apiVersion: "7.1-preview.1",
2333
2461
  method: "DELETE",
2334
2462
  routeTemplate: "{project}/_apis/distributedtask/securefiles/{secureFileId}",
2335
2463
  routeValues: {
@@ -2357,7 +2485,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2357
2485
  download: download
2358
2486
  };
2359
2487
  return [2 /*return*/, this.beginRequest({
2360
- apiVersion: "5.2-preview.1",
2488
+ apiVersion: "7.1-preview.1",
2361
2489
  httpResponseType: "application/octet-stream",
2362
2490
  routeTemplate: "{project}/_apis/distributedtask/securefiles/{secureFileId}",
2363
2491
  routeValues: {
@@ -2386,7 +2514,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2386
2514
  actionFilter: actionFilter
2387
2515
  };
2388
2516
  return [2 /*return*/, this.beginRequest({
2389
- apiVersion: "5.2-preview.1",
2517
+ apiVersion: "7.1-preview.1",
2390
2518
  routeTemplate: "{project}/_apis/distributedtask/securefiles/{secureFileId}",
2391
2519
  routeValues: {
2392
2520
  project: project,
@@ -2415,7 +2543,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2415
2543
  actionFilter: actionFilter
2416
2544
  };
2417
2545
  return [2 /*return*/, this.beginRequest({
2418
- apiVersion: "5.2-preview.1",
2546
+ apiVersion: "7.1-preview.1",
2419
2547
  routeTemplate: "{project}/_apis/distributedtask/securefiles/{secureFileId}",
2420
2548
  routeValues: {
2421
2549
  project: project
@@ -2443,7 +2571,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2443
2571
  actionFilter: actionFilter
2444
2572
  };
2445
2573
  return [2 /*return*/, this.beginRequest({
2446
- apiVersion: "5.2-preview.1",
2574
+ apiVersion: "7.1-preview.1",
2447
2575
  routeTemplate: "{project}/_apis/distributedtask/securefiles/{secureFileId}",
2448
2576
  routeValues: {
2449
2577
  project: project
@@ -2471,7 +2599,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2471
2599
  actionFilter: actionFilter
2472
2600
  };
2473
2601
  return [2 /*return*/, this.beginRequest({
2474
- apiVersion: "5.2-preview.1",
2602
+ apiVersion: "7.1-preview.1",
2475
2603
  routeTemplate: "{project}/_apis/distributedtask/securefiles/{secureFileId}",
2476
2604
  routeValues: {
2477
2605
  project: project
@@ -2496,7 +2624,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2496
2624
  namePattern: namePattern
2497
2625
  };
2498
2626
  return [2 /*return*/, this.beginRequest({
2499
- apiVersion: "5.2-preview.1",
2627
+ apiVersion: "7.1-preview.1",
2500
2628
  method: "POST",
2501
2629
  routeTemplate: "{project}/_apis/distributedtask/securefiles/{secureFileId}",
2502
2630
  routeValues: {
@@ -2519,7 +2647,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2519
2647
  return __awaiter(this, void 0, void 0, function () {
2520
2648
  return __generator(this, function (_a) {
2521
2649
  return [2 /*return*/, this.beginRequest({
2522
- apiVersion: "5.2-preview.1",
2650
+ apiVersion: "7.1-preview.1",
2523
2651
  method: "PATCH",
2524
2652
  routeTemplate: "{project}/_apis/distributedtask/securefiles/{secureFileId}",
2525
2653
  routeValues: {
@@ -2541,7 +2669,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2541
2669
  return __awaiter(this, void 0, void 0, function () {
2542
2670
  return __generator(this, function (_a) {
2543
2671
  return [2 /*return*/, this.beginRequest({
2544
- apiVersion: "5.2-preview.1",
2672
+ apiVersion: "7.1-preview.1",
2545
2673
  method: "PATCH",
2546
2674
  routeTemplate: "{project}/_apis/distributedtask/securefiles/{secureFileId}",
2547
2675
  routeValues: {
@@ -2569,7 +2697,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2569
2697
  authorizePipelines: authorizePipelines
2570
2698
  };
2571
2699
  return [2 /*return*/, this.beginRequest({
2572
- apiVersion: "5.2-preview.1",
2700
+ apiVersion: "7.1-preview.1",
2573
2701
  method: "POST",
2574
2702
  routeTemplate: "{project}/_apis/distributedtask/securefiles/{secureFileId}",
2575
2703
  routeValues: {
@@ -2593,7 +2721,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2593
2721
  return __awaiter(this, void 0, void 0, function () {
2594
2722
  return __generator(this, function (_a) {
2595
2723
  return [2 /*return*/, this.beginRequest({
2596
- apiVersion: "5.2-preview.1",
2724
+ apiVersion: "7.1-preview.1",
2597
2725
  method: "POST",
2598
2726
  routeTemplate: "_apis/distributedtask/pools/{poolId}/sessions/{sessionId}",
2599
2727
  routeValues: {
@@ -2612,7 +2740,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2612
2740
  return __awaiter(this, void 0, void 0, function () {
2613
2741
  return __generator(this, function (_a) {
2614
2742
  return [2 /*return*/, this.beginRequest({
2615
- apiVersion: "5.2-preview.1",
2743
+ apiVersion: "7.1-preview.1",
2616
2744
  method: "DELETE",
2617
2745
  routeTemplate: "_apis/distributedtask/pools/{poolId}/sessions/{sessionId}",
2618
2746
  routeValues: {
@@ -2634,7 +2762,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2634
2762
  return __awaiter(this, void 0, void 0, function () {
2635
2763
  return __generator(this, function (_a) {
2636
2764
  return [2 /*return*/, this.beginRequest({
2637
- apiVersion: "5.2-preview.1",
2765
+ apiVersion: "7.1-preview.1",
2638
2766
  method: "POST",
2639
2767
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",
2640
2768
  routeValues: {
@@ -2657,7 +2785,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2657
2785
  return __awaiter(this, void 0, void 0, function () {
2658
2786
  return __generator(this, function (_a) {
2659
2787
  return [2 /*return*/, this.beginRequest({
2660
- apiVersion: "5.2-preview.1",
2788
+ apiVersion: "7.1-preview.1",
2661
2789
  method: "DELETE",
2662
2790
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",
2663
2791
  routeValues: {
@@ -2685,7 +2813,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2685
2813
  '$expand': expand
2686
2814
  };
2687
2815
  return [2 /*return*/, this.beginRequest({
2688
- apiVersion: "5.2-preview.1",
2816
+ apiVersion: "7.1-preview.1",
2689
2817
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",
2690
2818
  routeValues: {
2691
2819
  project: project,
@@ -2716,6 +2844,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2716
2844
  TaskAgentRestClient.prototype.getDeploymentTargets = function (project, deploymentGroupId, tags, name, partialNameMatch, expand, agentStatus, agentJobResult, continuationToken, top, enabled, propertyFilters) {
2717
2845
  return __awaiter(this, void 0, void 0, function () {
2718
2846
  var queryValues;
2847
+ var _this = this;
2719
2848
  return __generator(this, function (_a) {
2720
2849
  queryValues = {
2721
2850
  tags: tags && tags.join(","),
@@ -2730,14 +2859,26 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2730
2859
  propertyFilters: propertyFilters && propertyFilters.join(",")
2731
2860
  };
2732
2861
  return [2 /*return*/, this.beginRequest({
2733
- apiVersion: "5.2-preview.1",
2862
+ apiVersion: "7.1-preview.1",
2734
2863
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",
2735
2864
  routeValues: {
2736
2865
  project: project,
2737
2866
  deploymentGroupId: deploymentGroupId
2738
2867
  },
2739
- queryParams: queryValues
2740
- })];
2868
+ queryParams: queryValues,
2869
+ returnRawResponse: true
2870
+ }).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
2871
+ var body;
2872
+ return __generator(this, function (_a) {
2873
+ switch (_a.label) {
2874
+ case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
2875
+ case 1:
2876
+ body = _a.sent();
2877
+ body.continuationToken = response.headers.get("x-ms-continuationtoken");
2878
+ return [2 /*return*/, body];
2879
+ }
2880
+ });
2881
+ }); })];
2741
2882
  });
2742
2883
  });
2743
2884
  };
@@ -2753,7 +2894,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2753
2894
  return __awaiter(this, void 0, void 0, function () {
2754
2895
  return __generator(this, function (_a) {
2755
2896
  return [2 /*return*/, this.beginRequest({
2756
- apiVersion: "5.2-preview.1",
2897
+ apiVersion: "7.1-preview.1",
2757
2898
  method: "PUT",
2758
2899
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",
2759
2900
  routeValues: {
@@ -2778,7 +2919,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2778
2919
  return __awaiter(this, void 0, void 0, function () {
2779
2920
  return __generator(this, function (_a) {
2780
2921
  return [2 /*return*/, this.beginRequest({
2781
- apiVersion: "5.2-preview.1",
2922
+ apiVersion: "7.1-preview.1",
2782
2923
  method: "PATCH",
2783
2924
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",
2784
2925
  routeValues: {
@@ -2802,7 +2943,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2802
2943
  return __awaiter(this, void 0, void 0, function () {
2803
2944
  return __generator(this, function (_a) {
2804
2945
  return [2 /*return*/, this.beginRequest({
2805
- apiVersion: "5.2-preview.1",
2946
+ apiVersion: "7.1-preview.1",
2806
2947
  method: "PATCH",
2807
2948
  routeTemplate: "{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",
2808
2949
  routeValues: {
@@ -2824,7 +2965,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2824
2965
  return __awaiter(this, void 0, void 0, function () {
2825
2966
  return __generator(this, function (_a) {
2826
2967
  return [2 /*return*/, this.beginRequest({
2827
- apiVersion: "5.2-preview.1",
2968
+ apiVersion: "7.1-preview.1",
2828
2969
  method: "POST",
2829
2970
  routeTemplate: "{project}/_apis/distributedtask/taskgroups/{taskGroupId}",
2830
2971
  routeValues: {
@@ -2850,7 +2991,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2850
2991
  comment: comment
2851
2992
  };
2852
2993
  return [2 /*return*/, this.beginRequest({
2853
- apiVersion: "5.2-preview.1",
2994
+ apiVersion: "7.1-preview.1",
2854
2995
  method: "DELETE",
2855
2996
  routeTemplate: "{project}/_apis/distributedtask/taskgroups/{taskGroupId}",
2856
2997
  routeValues: {
@@ -2879,7 +3020,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2879
3020
  '$expand': expand
2880
3021
  };
2881
3022
  return [2 /*return*/, this.beginRequest({
2882
- apiVersion: "5.2-preview.1",
3023
+ apiVersion: "7.1-preview.1",
2883
3024
  routeTemplate: "{project}/_apis/distributedtask/taskgroups/{taskGroupId}",
2884
3025
  routeValues: {
2885
3026
  project: project,
@@ -2903,7 +3044,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2903
3044
  revision: revision
2904
3045
  };
2905
3046
  return [2 /*return*/, this.beginRequest({
2906
- apiVersion: "5.2-preview.1",
3047
+ apiVersion: "7.1-preview.1",
2907
3048
  httpResponseType: "text/plain",
2908
3049
  routeTemplate: "{project}/_apis/distributedtask/taskgroups/{taskGroupId}",
2909
3050
  routeValues: {
@@ -2940,7 +3081,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2940
3081
  queryOrder: queryOrder
2941
3082
  };
2942
3083
  return [2 /*return*/, this.beginRequest({
2943
- apiVersion: "5.2-preview.1",
3084
+ apiVersion: "7.1-preview.1",
2944
3085
  routeTemplate: "{project}/_apis/distributedtask/taskgroups/{taskGroupId}",
2945
3086
  routeValues: {
2946
3087
  project: project,
@@ -2964,7 +3105,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2964
3105
  parentTaskGroupId: parentTaskGroupId
2965
3106
  };
2966
3107
  return [2 /*return*/, this.beginRequest({
2967
- apiVersion: "5.2-preview.1",
3108
+ apiVersion: "7.1-preview.1",
2968
3109
  method: "PUT",
2969
3110
  routeTemplate: "{project}/_apis/distributedtask/taskgroups/{taskGroupId}",
2970
3111
  routeValues: {
@@ -2984,7 +3125,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
2984
3125
  return __awaiter(this, void 0, void 0, function () {
2985
3126
  return __generator(this, function (_a) {
2986
3127
  return [2 /*return*/, this.beginRequest({
2987
- apiVersion: "5.2-preview.1",
3128
+ apiVersion: "7.1-preview.1",
2988
3129
  method: "PATCH",
2989
3130
  routeTemplate: "{project}/_apis/distributedtask/taskgroups/{taskGroupId}",
2990
3131
  routeValues: {
@@ -3006,7 +3147,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3006
3147
  return __awaiter(this, void 0, void 0, function () {
3007
3148
  return __generator(this, function (_a) {
3008
3149
  return [2 /*return*/, this.beginRequest({
3009
- apiVersion: "5.2-preview.1",
3150
+ apiVersion: "7.1-preview.1",
3010
3151
  method: "PUT",
3011
3152
  routeTemplate: "{project}/_apis/distributedtask/taskgroups/{taskGroupId}",
3012
3153
  routeValues: {
@@ -3032,7 +3173,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3032
3173
  disablePriorVersions: disablePriorVersions
3033
3174
  };
3034
3175
  return [2 /*return*/, this.beginRequest({
3035
- apiVersion: "5.2-preview.1",
3176
+ apiVersion: "7.1-preview.1",
3036
3177
  method: "PATCH",
3037
3178
  routeTemplate: "{project}/_apis/distributedtask/taskgroups/{taskGroupId}",
3038
3179
  routeValues: {
@@ -3052,7 +3193,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3052
3193
  return __awaiter(this, void 0, void 0, function () {
3053
3194
  return __generator(this, function (_a) {
3054
3195
  return [2 /*return*/, this.beginRequest({
3055
- apiVersion: "5.2-preview.1",
3196
+ apiVersion: "7.1-preview.1",
3056
3197
  method: "DELETE",
3057
3198
  routeTemplate: "_apis/distributedtask/tasks/{taskId}/{versionString}",
3058
3199
  routeValues: {
@@ -3077,7 +3218,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3077
3218
  scopeLocal: scopeLocal
3078
3219
  };
3079
3220
  return [2 /*return*/, this.beginRequest({
3080
- apiVersion: "5.2-preview.1",
3221
+ apiVersion: "7.1-preview.1",
3081
3222
  httpResponseType: "application/zip",
3082
3223
  routeTemplate: "_apis/distributedtask/tasks/{taskId}/{versionString}",
3083
3224
  routeValues: {
@@ -3104,7 +3245,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3104
3245
  scopeLocal: scopeLocal
3105
3246
  };
3106
3247
  return [2 /*return*/, this.beginRequest({
3107
- apiVersion: "5.2-preview.1",
3248
+ apiVersion: "7.1-preview.1",
3108
3249
  routeTemplate: "_apis/distributedtask/tasks/{taskId}/{versionString}",
3109
3250
  routeValues: {
3110
3251
  taskId: taskId,
@@ -3119,17 +3260,19 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3119
3260
  * @param taskId -
3120
3261
  * @param visibility -
3121
3262
  * @param scopeLocal -
3263
+ * @param allVersions -
3122
3264
  */
3123
- TaskAgentRestClient.prototype.getTaskDefinitions = function (taskId, visibility, scopeLocal) {
3265
+ TaskAgentRestClient.prototype.getTaskDefinitions = function (taskId, visibility, scopeLocal, allVersions) {
3124
3266
  return __awaiter(this, void 0, void 0, function () {
3125
3267
  var queryValues;
3126
3268
  return __generator(this, function (_a) {
3127
3269
  queryValues = {
3128
3270
  visibility: visibility,
3129
- scopeLocal: scopeLocal
3271
+ scopeLocal: scopeLocal,
3272
+ allVersions: allVersions
3130
3273
  };
3131
3274
  return [2 /*return*/, this.beginRequest({
3132
- apiVersion: "5.2-preview.1",
3275
+ apiVersion: "7.1-preview.1",
3133
3276
  routeTemplate: "_apis/distributedtask/tasks/{taskId}/{versionString}",
3134
3277
  routeValues: {
3135
3278
  taskId: taskId
@@ -3152,7 +3295,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3152
3295
  currentState: currentState
3153
3296
  };
3154
3297
  return [2 /*return*/, this.beginRequest({
3155
- apiVersion: "5.2-preview.1",
3298
+ apiVersion: "7.1-preview.1",
3156
3299
  method: "PUT",
3157
3300
  routeTemplate: "_apis/distributedtask/pools/{poolId}/agents/{agentId}/updates",
3158
3301
  routeValues: {
@@ -3173,7 +3316,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3173
3316
  return __awaiter(this, void 0, void 0, function () {
3174
3317
  return __generator(this, function (_a) {
3175
3318
  return [2 /*return*/, this.beginRequest({
3176
- apiVersion: "5.2-preview.1",
3319
+ apiVersion: "7.1-preview.1",
3177
3320
  method: "PUT",
3178
3321
  routeTemplate: "_apis/distributedtask/pools/{poolId}/agents/{agentId}/usercapabilities",
3179
3322
  routeValues: {
@@ -3194,7 +3337,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3194
3337
  return __awaiter(this, void 0, void 0, function () {
3195
3338
  return __generator(this, function (_a) {
3196
3339
  return [2 /*return*/, this.beginRequest({
3197
- apiVersion: "5.2-preview.2",
3340
+ apiVersion: "7.1-preview.2",
3198
3341
  method: "POST",
3199
3342
  routeTemplate: "_apis/distributedtask/variablegroups/{groupId}",
3200
3343
  body: variableGroupParameters
@@ -3216,7 +3359,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3216
3359
  projectIds: projectIds && projectIds.join(",")
3217
3360
  };
3218
3361
  return [2 /*return*/, this.beginRequest({
3219
- apiVersion: "5.2-preview.2",
3362
+ apiVersion: "7.1-preview.2",
3220
3363
  method: "DELETE",
3221
3364
  routeTemplate: "_apis/distributedtask/variablegroups/{groupId}",
3222
3365
  routeValues: {
@@ -3241,7 +3384,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3241
3384
  variableGroupId: variableGroupId
3242
3385
  };
3243
3386
  return [2 /*return*/, this.beginRequest({
3244
- apiVersion: "5.2-preview.2",
3387
+ apiVersion: "7.1-preview.2",
3245
3388
  method: "PATCH",
3246
3389
  routeTemplate: "_apis/distributedtask/variablegroups/{groupId}",
3247
3390
  queryParams: queryValues,
@@ -3260,7 +3403,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3260
3403
  return __awaiter(this, void 0, void 0, function () {
3261
3404
  return __generator(this, function (_a) {
3262
3405
  return [2 /*return*/, this.beginRequest({
3263
- apiVersion: "5.2-preview.2",
3406
+ apiVersion: "7.1-preview.2",
3264
3407
  method: "PUT",
3265
3408
  routeTemplate: "_apis/distributedtask/variablegroups/{groupId}",
3266
3409
  routeValues: {
@@ -3281,7 +3424,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3281
3424
  return __awaiter(this, void 0, void 0, function () {
3282
3425
  return __generator(this, function (_a) {
3283
3426
  return [2 /*return*/, this.beginRequest({
3284
- apiVersion: "5.2-preview.2",
3427
+ apiVersion: "7.1-preview.2",
3285
3428
  routeTemplate: "{project}/_apis/distributedtask/variablegroups/{groupId}",
3286
3429
  routeValues: {
3287
3430
  project: project,
@@ -3313,7 +3456,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3313
3456
  queryOrder: queryOrder
3314
3457
  };
3315
3458
  return [2 /*return*/, this.beginRequest({
3316
- apiVersion: "5.2-preview.2",
3459
+ apiVersion: "7.1-preview.2",
3317
3460
  routeTemplate: "{project}/_apis/distributedtask/variablegroups/{groupId}",
3318
3461
  routeValues: {
3319
3462
  project: project
@@ -3337,7 +3480,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3337
3480
  groupIds: groupIds && groupIds.join(",")
3338
3481
  };
3339
3482
  return [2 /*return*/, this.beginRequest({
3340
- apiVersion: "5.2-preview.2",
3483
+ apiVersion: "7.1-preview.2",
3341
3484
  routeTemplate: "{project}/_apis/distributedtask/variablegroups/{groupId}",
3342
3485
  routeValues: {
3343
3486
  project: project
@@ -3356,7 +3499,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3356
3499
  return __awaiter(this, void 0, void 0, function () {
3357
3500
  return __generator(this, function (_a) {
3358
3501
  return [2 /*return*/, this.beginRequest({
3359
- apiVersion: "5.2-preview.1",
3502
+ apiVersion: "7.1-preview.1",
3360
3503
  method: "POST",
3361
3504
  routeTemplate: "{project}/_apis/distributedtask/environments/{environmentId}/providers/virtualmachinegroups/{resourceId}",
3362
3505
  routeValues: {
@@ -3377,7 +3520,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3377
3520
  return __awaiter(this, void 0, void 0, function () {
3378
3521
  return __generator(this, function (_a) {
3379
3522
  return [2 /*return*/, this.beginRequest({
3380
- apiVersion: "5.2-preview.1",
3523
+ apiVersion: "7.1-preview.1",
3381
3524
  method: "DELETE",
3382
3525
  routeTemplate: "{project}/_apis/distributedtask/environments/{environmentId}/providers/virtualmachinegroups/{resourceId}",
3383
3526
  routeValues: {
@@ -3398,7 +3541,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3398
3541
  return __awaiter(this, void 0, void 0, function () {
3399
3542
  return __generator(this, function (_a) {
3400
3543
  return [2 /*return*/, this.beginRequest({
3401
- apiVersion: "5.2-preview.1",
3544
+ apiVersion: "7.1-preview.1",
3402
3545
  routeTemplate: "{project}/_apis/distributedtask/environments/{environmentId}/providers/virtualmachinegroups/{resourceId}",
3403
3546
  routeValues: {
3404
3547
  project: project,
@@ -3418,7 +3561,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3418
3561
  return __awaiter(this, void 0, void 0, function () {
3419
3562
  return __generator(this, function (_a) {
3420
3563
  return [2 /*return*/, this.beginRequest({
3421
- apiVersion: "5.2-preview.1",
3564
+ apiVersion: "7.1-preview.1",
3422
3565
  method: "PATCH",
3423
3566
  routeTemplate: "{project}/_apis/distributedtask/environments/{environmentId}/providers/virtualmachinegroups/{resourceId}",
3424
3567
  routeValues: {
@@ -3443,6 +3586,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3443
3586
  TaskAgentRestClient.prototype.getVirtualMachines = function (project, environmentId, resourceId, continuationToken, name, partialNameMatch, tags, top) {
3444
3587
  return __awaiter(this, void 0, void 0, function () {
3445
3588
  var queryValues;
3589
+ var _this = this;
3446
3590
  return __generator(this, function (_a) {
3447
3591
  queryValues = {
3448
3592
  continuationToken: continuationToken,
@@ -3452,15 +3596,27 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3452
3596
  '$top': top
3453
3597
  };
3454
3598
  return [2 /*return*/, this.beginRequest({
3455
- apiVersion: "5.2-preview.1",
3599
+ apiVersion: "7.1-preview.1",
3456
3600
  routeTemplate: "{project}/_apis/distributedtask/environments/{environmentId}/providers/virtualmachinegroups/{resourceId}/virtualmachines",
3457
3601
  routeValues: {
3458
3602
  project: project,
3459
3603
  environmentId: environmentId,
3460
3604
  resourceId: resourceId
3461
3605
  },
3462
- queryParams: queryValues
3463
- })];
3606
+ queryParams: queryValues,
3607
+ returnRawResponse: true
3608
+ }).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
3609
+ var body;
3610
+ return __generator(this, function (_a) {
3611
+ switch (_a.label) {
3612
+ case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
3613
+ case 1:
3614
+ body = _a.sent();
3615
+ body.continuationToken = response.headers.get("x-ms-continuationtoken");
3616
+ return [2 /*return*/, body];
3617
+ }
3618
+ });
3619
+ }); })];
3464
3620
  });
3465
3621
  });
3466
3622
  };
@@ -3474,7 +3630,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3474
3630
  return __awaiter(this, void 0, void 0, function () {
3475
3631
  return __generator(this, function (_a) {
3476
3632
  return [2 /*return*/, this.beginRequest({
3477
- apiVersion: "5.2-preview.1",
3633
+ apiVersion: "7.1-preview.1",
3478
3634
  method: "PATCH",
3479
3635
  routeTemplate: "{project}/_apis/distributedtask/environments/{environmentId}/providers/virtualmachinegroups/{resourceId}/virtualmachines",
3480
3636
  routeValues: {
@@ -3487,21 +3643,6 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3487
3643
  });
3488
3644
  });
3489
3645
  };
3490
- /**
3491
- * @param authenticationRequest -
3492
- */
3493
- TaskAgentRestClient.prototype.acquireAccessToken = function (authenticationRequest) {
3494
- return __awaiter(this, void 0, void 0, function () {
3495
- return __generator(this, function (_a) {
3496
- return [2 /*return*/, this.beginRequest({
3497
- apiVersion: "5.2-preview.1",
3498
- method: "POST",
3499
- routeTemplate: "_apis/distributedtask/serviceendpointproxy/vstsaadoauth",
3500
- body: authenticationRequest
3501
- })];
3502
- });
3503
- });
3504
- };
3505
3646
  /**
3506
3647
  * @param tenantId -
3507
3648
  * @param redirectUri -
@@ -3521,7 +3662,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3521
3662
  completeCallbackByAuthCode: completeCallbackByAuthCode
3522
3663
  };
3523
3664
  return [2 /*return*/, this.beginRequest({
3524
- apiVersion: "5.2-preview.1",
3665
+ apiVersion: "7.1-preview.1",
3525
3666
  method: "POST",
3526
3667
  routeTemplate: "_apis/distributedtask/serviceendpointproxy/vstsaadoauth",
3527
3668
  queryParams: queryValues
@@ -3535,7 +3676,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3535
3676
  return __awaiter(this, void 0, void 0, function () {
3536
3677
  return __generator(this, function (_a) {
3537
3678
  return [2 /*return*/, this.beginRequest({
3538
- apiVersion: "5.2-preview.1",
3679
+ apiVersion: "7.1-preview.1",
3539
3680
  routeTemplate: "_apis/distributedtask/serviceendpointproxy/vstsaadoauth"
3540
3681
  })];
3541
3682
  });
@@ -3554,7 +3695,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
3554
3695
  validateTaskNames: validateTaskNames
3555
3696
  };
3556
3697
  return [2 /*return*/, this.beginRequest({
3557
- apiVersion: "5.2-preview.1",
3698
+ apiVersion: "7.1-preview.1",
3558
3699
  routeTemplate: "_apis/distributedtask/yamlschema",
3559
3700
  queryParams: queryValues
3560
3701
  })];