@azure/arm-containerregistry 10.1.0-beta.3 → 10.1.0-beta.4

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 (92) hide show
  1. package/CHANGELOG.md +26 -8
  2. package/README.md +1 -1
  3. package/dist/index.js +512 -144
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/src/containerRegistryManagementClient.d.ts.map +1 -1
  8. package/dist-esm/src/containerRegistryManagementClient.js +20 -18
  9. package/dist-esm/src/containerRegistryManagementClient.js.map +1 -1
  10. package/dist-esm/src/index.d.ts +1 -0
  11. package/dist-esm/src/index.d.ts.map +1 -1
  12. package/dist-esm/src/index.js +1 -0
  13. package/dist-esm/src/index.js.map +1 -1
  14. package/dist-esm/src/models/index.d.ts +185 -50
  15. package/dist-esm/src/models/index.d.ts.map +1 -1
  16. package/dist-esm/src/models/index.js +135 -0
  17. package/dist-esm/src/models/index.js.map +1 -1
  18. package/dist-esm/src/operations/agentPools.d.ts.map +1 -1
  19. package/dist-esm/src/operations/agentPools.js +19 -7
  20. package/dist-esm/src/operations/agentPools.js.map +1 -1
  21. package/dist-esm/src/operations/connectedRegistries.d.ts.map +1 -1
  22. package/dist-esm/src/operations/connectedRegistries.js +19 -7
  23. package/dist-esm/src/operations/connectedRegistries.js.map +1 -1
  24. package/dist-esm/src/operations/exportPipelines.d.ts.map +1 -1
  25. package/dist-esm/src/operations/exportPipelines.js +19 -7
  26. package/dist-esm/src/operations/exportPipelines.js.map +1 -1
  27. package/dist-esm/src/operations/importPipelines.d.ts.map +1 -1
  28. package/dist-esm/src/operations/importPipelines.js +19 -7
  29. package/dist-esm/src/operations/importPipelines.js.map +1 -1
  30. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  31. package/dist-esm/src/operations/operations.js +19 -7
  32. package/dist-esm/src/operations/operations.js.map +1 -1
  33. package/dist-esm/src/operations/pipelineRuns.d.ts.map +1 -1
  34. package/dist-esm/src/operations/pipelineRuns.js +19 -7
  35. package/dist-esm/src/operations/pipelineRuns.js.map +1 -1
  36. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  37. package/dist-esm/src/operations/privateEndpointConnections.js +19 -7
  38. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  39. package/dist-esm/src/operations/registries.d.ts.map +1 -1
  40. package/dist-esm/src/operations/registries.js +55 -21
  41. package/dist-esm/src/operations/registries.js.map +1 -1
  42. package/dist-esm/src/operations/replications.d.ts.map +1 -1
  43. package/dist-esm/src/operations/replications.js +19 -7
  44. package/dist-esm/src/operations/replications.js.map +1 -1
  45. package/dist-esm/src/operations/runs.d.ts.map +1 -1
  46. package/dist-esm/src/operations/runs.js +19 -7
  47. package/dist-esm/src/operations/runs.js.map +1 -1
  48. package/dist-esm/src/operations/scopeMaps.d.ts.map +1 -1
  49. package/dist-esm/src/operations/scopeMaps.js +19 -7
  50. package/dist-esm/src/operations/scopeMaps.js.map +1 -1
  51. package/dist-esm/src/operations/taskRuns.d.ts.map +1 -1
  52. package/dist-esm/src/operations/taskRuns.js +19 -7
  53. package/dist-esm/src/operations/taskRuns.js.map +1 -1
  54. package/dist-esm/src/operations/tasks.d.ts.map +1 -1
  55. package/dist-esm/src/operations/tasks.js +19 -7
  56. package/dist-esm/src/operations/tasks.js.map +1 -1
  57. package/dist-esm/src/operations/tokens.d.ts.map +1 -1
  58. package/dist-esm/src/operations/tokens.js +19 -7
  59. package/dist-esm/src/operations/tokens.js.map +1 -1
  60. package/dist-esm/src/operations/webhooks.d.ts.map +1 -1
  61. package/dist-esm/src/operations/webhooks.js +37 -14
  62. package/dist-esm/src/operations/webhooks.js.map +1 -1
  63. package/dist-esm/src/pagingHelper.d.ts +13 -0
  64. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  65. package/dist-esm/src/pagingHelper.js +32 -0
  66. package/dist-esm/src/pagingHelper.js.map +1 -0
  67. package/dist-esm/test/containerregistry_examples.d.ts.map +1 -1
  68. package/dist-esm/test/containerregistry_examples.js +16 -18
  69. package/dist-esm/test/containerregistry_examples.js.map +1 -1
  70. package/package.json +15 -11
  71. package/review/arm-containerregistry.api.md +143 -275
  72. package/src/containerRegistryManagementClient.ts +26 -20
  73. package/src/index.ts +1 -0
  74. package/src/models/index.ts +187 -50
  75. package/src/operations/agentPools.ts +27 -9
  76. package/src/operations/connectedRegistries.ts +26 -8
  77. package/src/operations/exportPipelines.ts +26 -8
  78. package/src/operations/importPipelines.ts +26 -8
  79. package/src/operations/operations.ts +21 -8
  80. package/src/operations/pipelineRuns.ts +26 -8
  81. package/src/operations/privateEndpointConnections.ts +26 -8
  82. package/src/operations/registries.ts +71 -29
  83. package/src/operations/replications.ts +26 -8
  84. package/src/operations/runs.ts +26 -8
  85. package/src/operations/scopeMaps.ts +26 -8
  86. package/src/operations/taskRuns.ts +27 -9
  87. package/src/operations/tasks.ts +26 -8
  88. package/src/operations/tokens.ts +26 -8
  89. package/src/operations/webhooks.ts +53 -22
  90. package/src/pagingHelper.ts +39 -0
  91. package/types/arm-containerregistry.d.ts +194 -50
  92. package/types/tsdoc-metadata.json +1 -1
package/dist/index.js CHANGED
@@ -28,6 +28,38 @@ function _interopNamespace(e) {
28
28
  var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
29
  var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
30
30
 
31
+ /*
32
+ * Copyright (c) Microsoft Corporation.
33
+ * Licensed under the MIT License.
34
+ *
35
+ * Code generated by Microsoft (R) AutoRest Code Generator.
36
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
37
+ */
38
+ const pageMap = new WeakMap();
39
+ /**
40
+ * Given a result page from a pageable operation, returns a
41
+ * continuation token that can be used to begin paging from
42
+ * that point later.
43
+ * @param page A result object from calling .byPage() on a paged operation.
44
+ * @returns The continuation token that can be passed into byPage().
45
+ */
46
+ function getContinuationToken(page) {
47
+ var _a;
48
+ if (typeof page !== "object" || page === null) {
49
+ return undefined;
50
+ }
51
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
52
+ }
53
+ function setContinuationToken(page, continuationToken) {
54
+ var _a;
55
+ if (typeof page !== "object" || page === null || !continuationToken) {
56
+ return;
57
+ }
58
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
59
+ pageInfo.continuationToken = continuationToken;
60
+ pageMap.set(page, pageInfo);
61
+ }
62
+
31
63
  /*
32
64
  * Copyright (c) Microsoft Corporation.
33
65
  * Licensed under the MIT License.
@@ -38,340 +70,475 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
38
70
  /** Known values of {@link ProvisioningState} that the service accepts. */
39
71
  exports.KnownProvisioningState = void 0;
40
72
  (function (KnownProvisioningState) {
73
+ /** Creating */
41
74
  KnownProvisioningState["Creating"] = "Creating";
75
+ /** Updating */
42
76
  KnownProvisioningState["Updating"] = "Updating";
77
+ /** Deleting */
43
78
  KnownProvisioningState["Deleting"] = "Deleting";
79
+ /** Succeeded */
44
80
  KnownProvisioningState["Succeeded"] = "Succeeded";
81
+ /** Failed */
45
82
  KnownProvisioningState["Failed"] = "Failed";
83
+ /** Canceled */
46
84
  KnownProvisioningState["Canceled"] = "Canceled";
47
85
  })(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
48
86
  /** Known values of {@link ConnectedRegistryMode} that the service accepts. */
49
87
  exports.KnownConnectedRegistryMode = void 0;
50
88
  (function (KnownConnectedRegistryMode) {
89
+ /** ReadWrite */
51
90
  KnownConnectedRegistryMode["ReadWrite"] = "ReadWrite";
91
+ /** ReadOnly */
52
92
  KnownConnectedRegistryMode["ReadOnly"] = "ReadOnly";
93
+ /** Registry */
53
94
  KnownConnectedRegistryMode["Registry"] = "Registry";
95
+ /** Mirror */
54
96
  KnownConnectedRegistryMode["Mirror"] = "Mirror";
55
97
  })(exports.KnownConnectedRegistryMode || (exports.KnownConnectedRegistryMode = {}));
56
98
  /** Known values of {@link ConnectionState} that the service accepts. */
57
99
  exports.KnownConnectionState = void 0;
58
100
  (function (KnownConnectionState) {
101
+ /** Online */
59
102
  KnownConnectionState["Online"] = "Online";
103
+ /** Offline */
60
104
  KnownConnectionState["Offline"] = "Offline";
105
+ /** Syncing */
61
106
  KnownConnectionState["Syncing"] = "Syncing";
107
+ /** Unhealthy */
62
108
  KnownConnectionState["Unhealthy"] = "Unhealthy";
63
109
  })(exports.KnownConnectionState || (exports.KnownConnectionState = {}));
64
110
  /** Known values of {@link ActivationStatus} that the service accepts. */
65
111
  exports.KnownActivationStatus = void 0;
66
112
  (function (KnownActivationStatus) {
113
+ /** Active */
67
114
  KnownActivationStatus["Active"] = "Active";
115
+ /** Inactive */
68
116
  KnownActivationStatus["Inactive"] = "Inactive";
69
117
  })(exports.KnownActivationStatus || (exports.KnownActivationStatus = {}));
70
118
  /** Known values of {@link TlsStatus} that the service accepts. */
71
119
  exports.KnownTlsStatus = void 0;
72
120
  (function (KnownTlsStatus) {
121
+ /** Enabled */
73
122
  KnownTlsStatus["Enabled"] = "Enabled";
123
+ /** Disabled */
74
124
  KnownTlsStatus["Disabled"] = "Disabled";
75
125
  })(exports.KnownTlsStatus || (exports.KnownTlsStatus = {}));
76
126
  /** Known values of {@link CertificateType} that the service accepts. */
77
127
  exports.KnownCertificateType = void 0;
78
128
  (function (KnownCertificateType) {
129
+ /** LocalDirectory */
79
130
  KnownCertificateType["LocalDirectory"] = "LocalDirectory";
80
131
  })(exports.KnownCertificateType || (exports.KnownCertificateType = {}));
81
132
  /** Known values of {@link LogLevel} that the service accepts. */
82
133
  exports.KnownLogLevel = void 0;
83
134
  (function (KnownLogLevel) {
135
+ /** Debug */
84
136
  KnownLogLevel["Debug"] = "Debug";
137
+ /** Information */
85
138
  KnownLogLevel["Information"] = "Information";
139
+ /** Warning */
86
140
  KnownLogLevel["Warning"] = "Warning";
141
+ /** Error */
87
142
  KnownLogLevel["Error"] = "Error";
143
+ /** None */
88
144
  KnownLogLevel["None"] = "None";
89
145
  })(exports.KnownLogLevel || (exports.KnownLogLevel = {}));
90
146
  /** Known values of {@link AuditLogStatus} that the service accepts. */
91
147
  exports.KnownAuditLogStatus = void 0;
92
148
  (function (KnownAuditLogStatus) {
149
+ /** Enabled */
93
150
  KnownAuditLogStatus["Enabled"] = "Enabled";
151
+ /** Disabled */
94
152
  KnownAuditLogStatus["Disabled"] = "Disabled";
95
153
  })(exports.KnownAuditLogStatus || (exports.KnownAuditLogStatus = {}));
96
154
  /** Known values of {@link CreatedByType} that the service accepts. */
97
155
  exports.KnownCreatedByType = void 0;
98
156
  (function (KnownCreatedByType) {
157
+ /** User */
99
158
  KnownCreatedByType["User"] = "User";
159
+ /** Application */
100
160
  KnownCreatedByType["Application"] = "Application";
161
+ /** ManagedIdentity */
101
162
  KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
163
+ /** Key */
102
164
  KnownCreatedByType["Key"] = "Key";
103
165
  })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
104
166
  /** Known values of {@link LastModifiedByType} that the service accepts. */
105
167
  exports.KnownLastModifiedByType = void 0;
106
168
  (function (KnownLastModifiedByType) {
169
+ /** User */
107
170
  KnownLastModifiedByType["User"] = "User";
171
+ /** Application */
108
172
  KnownLastModifiedByType["Application"] = "Application";
173
+ /** ManagedIdentity */
109
174
  KnownLastModifiedByType["ManagedIdentity"] = "ManagedIdentity";
175
+ /** Key */
110
176
  KnownLastModifiedByType["Key"] = "Key";
111
177
  })(exports.KnownLastModifiedByType || (exports.KnownLastModifiedByType = {}));
112
178
  /** Known values of {@link PipelineOptions} that the service accepts. */
113
179
  exports.KnownPipelineOptions = void 0;
114
180
  (function (KnownPipelineOptions) {
181
+ /** OverwriteTags */
115
182
  KnownPipelineOptions["OverwriteTags"] = "OverwriteTags";
183
+ /** OverwriteBlobs */
116
184
  KnownPipelineOptions["OverwriteBlobs"] = "OverwriteBlobs";
185
+ /** DeleteSourceBlobOnSuccess */
117
186
  KnownPipelineOptions["DeleteSourceBlobOnSuccess"] = "DeleteSourceBlobOnSuccess";
187
+ /** ContinueOnErrors */
118
188
  KnownPipelineOptions["ContinueOnErrors"] = "ContinueOnErrors";
119
189
  })(exports.KnownPipelineOptions || (exports.KnownPipelineOptions = {}));
120
190
  /** Known values of {@link ImportMode} that the service accepts. */
121
191
  exports.KnownImportMode = void 0;
122
192
  (function (KnownImportMode) {
193
+ /** NoForce */
123
194
  KnownImportMode["NoForce"] = "NoForce";
195
+ /** Force */
124
196
  KnownImportMode["Force"] = "Force";
125
197
  })(exports.KnownImportMode || (exports.KnownImportMode = {}));
126
198
  /** Known values of {@link PipelineSourceType} that the service accepts. */
127
199
  exports.KnownPipelineSourceType = void 0;
128
200
  (function (KnownPipelineSourceType) {
201
+ /** AzureStorageBlobContainer */
129
202
  KnownPipelineSourceType["AzureStorageBlobContainer"] = "AzureStorageBlobContainer";
130
203
  })(exports.KnownPipelineSourceType || (exports.KnownPipelineSourceType = {}));
131
204
  /** Known values of {@link TriggerStatus} that the service accepts. */
132
205
  exports.KnownTriggerStatus = void 0;
133
206
  (function (KnownTriggerStatus) {
207
+ /** Disabled */
134
208
  KnownTriggerStatus["Disabled"] = "Disabled";
209
+ /** Enabled */
135
210
  KnownTriggerStatus["Enabled"] = "Enabled";
136
211
  })(exports.KnownTriggerStatus || (exports.KnownTriggerStatus = {}));
137
212
  /** Known values of {@link PipelineRunSourceType} that the service accepts. */
138
213
  exports.KnownPipelineRunSourceType = void 0;
139
214
  (function (KnownPipelineRunSourceType) {
215
+ /** AzureStorageBlob */
140
216
  KnownPipelineRunSourceType["AzureStorageBlob"] = "AzureStorageBlob";
141
217
  })(exports.KnownPipelineRunSourceType || (exports.KnownPipelineRunSourceType = {}));
142
218
  /** Known values of {@link PipelineRunTargetType} that the service accepts. */
143
219
  exports.KnownPipelineRunTargetType = void 0;
144
220
  (function (KnownPipelineRunTargetType) {
221
+ /** AzureStorageBlob */
145
222
  KnownPipelineRunTargetType["AzureStorageBlob"] = "AzureStorageBlob";
146
223
  })(exports.KnownPipelineRunTargetType || (exports.KnownPipelineRunTargetType = {}));
147
224
  /** Known values of {@link ConnectionStatus} that the service accepts. */
148
225
  exports.KnownConnectionStatus = void 0;
149
226
  (function (KnownConnectionStatus) {
227
+ /** Approved */
150
228
  KnownConnectionStatus["Approved"] = "Approved";
229
+ /** Pending */
151
230
  KnownConnectionStatus["Pending"] = "Pending";
231
+ /** Rejected */
152
232
  KnownConnectionStatus["Rejected"] = "Rejected";
233
+ /** Disconnected */
153
234
  KnownConnectionStatus["Disconnected"] = "Disconnected";
154
235
  })(exports.KnownConnectionStatus || (exports.KnownConnectionStatus = {}));
155
236
  /** Known values of {@link ActionsRequired} that the service accepts. */
156
237
  exports.KnownActionsRequired = void 0;
157
238
  (function (KnownActionsRequired) {
239
+ /** None */
158
240
  KnownActionsRequired["None"] = "None";
241
+ /** Recreate */
159
242
  KnownActionsRequired["Recreate"] = "Recreate";
160
243
  })(exports.KnownActionsRequired || (exports.KnownActionsRequired = {}));
161
244
  /** Known values of {@link SkuName} that the service accepts. */
162
245
  exports.KnownSkuName = void 0;
163
246
  (function (KnownSkuName) {
247
+ /** Classic */
164
248
  KnownSkuName["Classic"] = "Classic";
249
+ /** Basic */
165
250
  KnownSkuName["Basic"] = "Basic";
251
+ /** Standard */
166
252
  KnownSkuName["Standard"] = "Standard";
253
+ /** Premium */
167
254
  KnownSkuName["Premium"] = "Premium";
168
255
  })(exports.KnownSkuName || (exports.KnownSkuName = {}));
169
256
  /** Known values of {@link SkuTier} that the service accepts. */
170
257
  exports.KnownSkuTier = void 0;
171
258
  (function (KnownSkuTier) {
259
+ /** Classic */
172
260
  KnownSkuTier["Classic"] = "Classic";
261
+ /** Basic */
173
262
  KnownSkuTier["Basic"] = "Basic";
263
+ /** Standard */
174
264
  KnownSkuTier["Standard"] = "Standard";
265
+ /** Premium */
175
266
  KnownSkuTier["Premium"] = "Premium";
176
267
  })(exports.KnownSkuTier || (exports.KnownSkuTier = {}));
177
268
  /** Known values of {@link DefaultAction} that the service accepts. */
178
269
  exports.KnownDefaultAction = void 0;
179
270
  (function (KnownDefaultAction) {
271
+ /** Allow */
180
272
  KnownDefaultAction["Allow"] = "Allow";
273
+ /** Deny */
181
274
  KnownDefaultAction["Deny"] = "Deny";
182
275
  })(exports.KnownDefaultAction || (exports.KnownDefaultAction = {}));
183
276
  /** Known values of {@link Action} that the service accepts. */
184
277
  exports.KnownAction = void 0;
185
278
  (function (KnownAction) {
279
+ /** Allow */
186
280
  KnownAction["Allow"] = "Allow";
187
281
  })(exports.KnownAction || (exports.KnownAction = {}));
188
282
  /** Known values of {@link PolicyStatus} that the service accepts. */
189
283
  exports.KnownPolicyStatus = void 0;
190
284
  (function (KnownPolicyStatus) {
285
+ /** Enabled */
191
286
  KnownPolicyStatus["Enabled"] = "enabled";
287
+ /** Disabled */
192
288
  KnownPolicyStatus["Disabled"] = "disabled";
193
289
  })(exports.KnownPolicyStatus || (exports.KnownPolicyStatus = {}));
194
290
  /** Known values of {@link TrustPolicyType} that the service accepts. */
195
291
  exports.KnownTrustPolicyType = void 0;
196
292
  (function (KnownTrustPolicyType) {
293
+ /** Notary */
197
294
  KnownTrustPolicyType["Notary"] = "Notary";
198
295
  })(exports.KnownTrustPolicyType || (exports.KnownTrustPolicyType = {}));
199
296
  /** Known values of {@link ExportPolicyStatus} that the service accepts. */
200
297
  exports.KnownExportPolicyStatus = void 0;
201
298
  (function (KnownExportPolicyStatus) {
299
+ /** Enabled */
202
300
  KnownExportPolicyStatus["Enabled"] = "enabled";
301
+ /** Disabled */
203
302
  KnownExportPolicyStatus["Disabled"] = "disabled";
204
303
  })(exports.KnownExportPolicyStatus || (exports.KnownExportPolicyStatus = {}));
205
304
  /** Known values of {@link AzureADAuthenticationAsArmPolicyStatus} that the service accepts. */
206
305
  exports.KnownAzureADAuthenticationAsArmPolicyStatus = void 0;
207
306
  (function (KnownAzureADAuthenticationAsArmPolicyStatus) {
307
+ /** Enabled */
208
308
  KnownAzureADAuthenticationAsArmPolicyStatus["Enabled"] = "enabled";
309
+ /** Disabled */
209
310
  KnownAzureADAuthenticationAsArmPolicyStatus["Disabled"] = "disabled";
210
311
  })(exports.KnownAzureADAuthenticationAsArmPolicyStatus || (exports.KnownAzureADAuthenticationAsArmPolicyStatus = {}));
211
312
  /** Known values of {@link EncryptionStatus} that the service accepts. */
212
313
  exports.KnownEncryptionStatus = void 0;
213
314
  (function (KnownEncryptionStatus) {
315
+ /** Enabled */
214
316
  KnownEncryptionStatus["Enabled"] = "enabled";
317
+ /** Disabled */
215
318
  KnownEncryptionStatus["Disabled"] = "disabled";
216
319
  })(exports.KnownEncryptionStatus || (exports.KnownEncryptionStatus = {}));
217
320
  /** Known values of {@link PublicNetworkAccess} that the service accepts. */
218
321
  exports.KnownPublicNetworkAccess = void 0;
219
322
  (function (KnownPublicNetworkAccess) {
323
+ /** Enabled */
220
324
  KnownPublicNetworkAccess["Enabled"] = "Enabled";
325
+ /** Disabled */
221
326
  KnownPublicNetworkAccess["Disabled"] = "Disabled";
222
327
  })(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
223
328
  /** Known values of {@link NetworkRuleBypassOptions} that the service accepts. */
224
329
  exports.KnownNetworkRuleBypassOptions = void 0;
225
330
  (function (KnownNetworkRuleBypassOptions) {
331
+ /** AzureServices */
226
332
  KnownNetworkRuleBypassOptions["AzureServices"] = "AzureServices";
333
+ /** None */
227
334
  KnownNetworkRuleBypassOptions["None"] = "None";
228
335
  })(exports.KnownNetworkRuleBypassOptions || (exports.KnownNetworkRuleBypassOptions = {}));
229
336
  /** Known values of {@link ZoneRedundancy} that the service accepts. */
230
337
  exports.KnownZoneRedundancy = void 0;
231
338
  (function (KnownZoneRedundancy) {
339
+ /** Enabled */
232
340
  KnownZoneRedundancy["Enabled"] = "Enabled";
341
+ /** Disabled */
233
342
  KnownZoneRedundancy["Disabled"] = "Disabled";
234
343
  })(exports.KnownZoneRedundancy || (exports.KnownZoneRedundancy = {}));
235
344
  /** Known values of {@link RegistryUsageUnit} that the service accepts. */
236
345
  exports.KnownRegistryUsageUnit = void 0;
237
346
  (function (KnownRegistryUsageUnit) {
347
+ /** Count */
238
348
  KnownRegistryUsageUnit["Count"] = "Count";
349
+ /** Bytes */
239
350
  KnownRegistryUsageUnit["Bytes"] = "Bytes";
240
351
  })(exports.KnownRegistryUsageUnit || (exports.KnownRegistryUsageUnit = {}));
241
352
  /** Known values of {@link TokenCertificateName} that the service accepts. */
242
353
  exports.KnownTokenCertificateName = void 0;
243
354
  (function (KnownTokenCertificateName) {
355
+ /** Certificate1 */
244
356
  KnownTokenCertificateName["Certificate1"] = "certificate1";
357
+ /** Certificate2 */
245
358
  KnownTokenCertificateName["Certificate2"] = "certificate2";
246
359
  })(exports.KnownTokenCertificateName || (exports.KnownTokenCertificateName = {}));
247
360
  /** Known values of {@link TokenPasswordName} that the service accepts. */
248
361
  exports.KnownTokenPasswordName = void 0;
249
362
  (function (KnownTokenPasswordName) {
363
+ /** Password1 */
250
364
  KnownTokenPasswordName["Password1"] = "password1";
365
+ /** Password2 */
251
366
  KnownTokenPasswordName["Password2"] = "password2";
252
367
  })(exports.KnownTokenPasswordName || (exports.KnownTokenPasswordName = {}));
253
368
  /** Known values of {@link TokenStatus} that the service accepts. */
254
369
  exports.KnownTokenStatus = void 0;
255
370
  (function (KnownTokenStatus) {
371
+ /** Enabled */
256
372
  KnownTokenStatus["Enabled"] = "enabled";
373
+ /** Disabled */
257
374
  KnownTokenStatus["Disabled"] = "disabled";
258
375
  })(exports.KnownTokenStatus || (exports.KnownTokenStatus = {}));
259
376
  /** Known values of {@link WebhookStatus} that the service accepts. */
260
377
  exports.KnownWebhookStatus = void 0;
261
378
  (function (KnownWebhookStatus) {
379
+ /** Enabled */
262
380
  KnownWebhookStatus["Enabled"] = "enabled";
381
+ /** Disabled */
263
382
  KnownWebhookStatus["Disabled"] = "disabled";
264
383
  })(exports.KnownWebhookStatus || (exports.KnownWebhookStatus = {}));
265
384
  /** Known values of {@link WebhookAction} that the service accepts. */
266
385
  exports.KnownWebhookAction = void 0;
267
386
  (function (KnownWebhookAction) {
387
+ /** Push */
268
388
  KnownWebhookAction["Push"] = "push";
389
+ /** Delete */
269
390
  KnownWebhookAction["Delete"] = "delete";
391
+ /** Quarantine */
270
392
  KnownWebhookAction["Quarantine"] = "quarantine";
393
+ /** ChartPush */
271
394
  KnownWebhookAction["ChartPush"] = "chart_push";
395
+ /** ChartDelete */
272
396
  KnownWebhookAction["ChartDelete"] = "chart_delete";
273
397
  })(exports.KnownWebhookAction || (exports.KnownWebhookAction = {}));
274
398
  /** Known values of {@link OS} that the service accepts. */
275
399
  exports.KnownOS = void 0;
276
400
  (function (KnownOS) {
401
+ /** Windows */
277
402
  KnownOS["Windows"] = "Windows";
403
+ /** Linux */
278
404
  KnownOS["Linux"] = "Linux";
279
405
  })(exports.KnownOS || (exports.KnownOS = {}));
280
406
  /** Known values of {@link RunStatus} that the service accepts. */
281
407
  exports.KnownRunStatus = void 0;
282
408
  (function (KnownRunStatus) {
409
+ /** Queued */
283
410
  KnownRunStatus["Queued"] = "Queued";
411
+ /** Started */
284
412
  KnownRunStatus["Started"] = "Started";
413
+ /** Running */
285
414
  KnownRunStatus["Running"] = "Running";
415
+ /** Succeeded */
286
416
  KnownRunStatus["Succeeded"] = "Succeeded";
417
+ /** Failed */
287
418
  KnownRunStatus["Failed"] = "Failed";
419
+ /** Canceled */
288
420
  KnownRunStatus["Canceled"] = "Canceled";
421
+ /** Error */
289
422
  KnownRunStatus["Error"] = "Error";
423
+ /** Timeout */
290
424
  KnownRunStatus["Timeout"] = "Timeout";
291
425
  })(exports.KnownRunStatus || (exports.KnownRunStatus = {}));
292
426
  /** Known values of {@link RunType} that the service accepts. */
293
427
  exports.KnownRunType = void 0;
294
428
  (function (KnownRunType) {
429
+ /** QuickBuild */
295
430
  KnownRunType["QuickBuild"] = "QuickBuild";
431
+ /** QuickRun */
296
432
  KnownRunType["QuickRun"] = "QuickRun";
433
+ /** AutoBuild */
297
434
  KnownRunType["AutoBuild"] = "AutoBuild";
435
+ /** AutoRun */
298
436
  KnownRunType["AutoRun"] = "AutoRun";
299
437
  })(exports.KnownRunType || (exports.KnownRunType = {}));
300
438
  /** Known values of {@link Architecture} that the service accepts. */
301
439
  exports.KnownArchitecture = void 0;
302
440
  (function (KnownArchitecture) {
441
+ /** Amd64 */
303
442
  KnownArchitecture["Amd64"] = "amd64";
443
+ /** X86 */
304
444
  KnownArchitecture["X86"] = "x86";
445
+ /** ThreeHundredEightySix */
305
446
  KnownArchitecture["ThreeHundredEightySix"] = "386";
447
+ /** Arm */
306
448
  KnownArchitecture["Arm"] = "arm";
449
+ /** Arm64 */
307
450
  KnownArchitecture["Arm64"] = "arm64";
308
451
  })(exports.KnownArchitecture || (exports.KnownArchitecture = {}));
309
452
  /** Known values of {@link Variant} that the service accepts. */
310
453
  exports.KnownVariant = void 0;
311
454
  (function (KnownVariant) {
455
+ /** V6 */
312
456
  KnownVariant["V6"] = "v6";
457
+ /** V7 */
313
458
  KnownVariant["V7"] = "v7";
459
+ /** V8 */
314
460
  KnownVariant["V8"] = "v8";
315
461
  })(exports.KnownVariant || (exports.KnownVariant = {}));
316
462
  /** Known values of {@link TaskStatus} that the service accepts. */
317
463
  exports.KnownTaskStatus = void 0;
318
464
  (function (KnownTaskStatus) {
465
+ /** Disabled */
319
466
  KnownTaskStatus["Disabled"] = "Disabled";
467
+ /** Enabled */
320
468
  KnownTaskStatus["Enabled"] = "Enabled";
321
469
  })(exports.KnownTaskStatus || (exports.KnownTaskStatus = {}));
322
470
  /** Known values of {@link StepType} that the service accepts. */
323
471
  exports.KnownStepType = void 0;
324
472
  (function (KnownStepType) {
473
+ /** Docker */
325
474
  KnownStepType["Docker"] = "Docker";
475
+ /** FileTask */
326
476
  KnownStepType["FileTask"] = "FileTask";
477
+ /** EncodedTask */
327
478
  KnownStepType["EncodedTask"] = "EncodedTask";
328
479
  })(exports.KnownStepType || (exports.KnownStepType = {}));
329
480
  /** Known values of {@link BaseImageDependencyType} that the service accepts. */
330
481
  exports.KnownBaseImageDependencyType = void 0;
331
482
  (function (KnownBaseImageDependencyType) {
483
+ /** BuildTime */
332
484
  KnownBaseImageDependencyType["BuildTime"] = "BuildTime";
485
+ /** RunTime */
333
486
  KnownBaseImageDependencyType["RunTime"] = "RunTime";
334
487
  })(exports.KnownBaseImageDependencyType || (exports.KnownBaseImageDependencyType = {}));
335
488
  /** Known values of {@link SourceControlType} that the service accepts. */
336
489
  exports.KnownSourceControlType = void 0;
337
490
  (function (KnownSourceControlType) {
491
+ /** Github */
338
492
  KnownSourceControlType["Github"] = "Github";
493
+ /** VisualStudioTeamService */
339
494
  KnownSourceControlType["VisualStudioTeamService"] = "VisualStudioTeamService";
340
495
  })(exports.KnownSourceControlType || (exports.KnownSourceControlType = {}));
341
496
  /** Known values of {@link TokenType} that the service accepts. */
342
497
  exports.KnownTokenType = void 0;
343
498
  (function (KnownTokenType) {
499
+ /** PAT */
344
500
  KnownTokenType["PAT"] = "PAT";
501
+ /** OAuth */
345
502
  KnownTokenType["OAuth"] = "OAuth";
346
503
  })(exports.KnownTokenType || (exports.KnownTokenType = {}));
347
504
  /** Known values of {@link SourceTriggerEvent} that the service accepts. */
348
505
  exports.KnownSourceTriggerEvent = void 0;
349
506
  (function (KnownSourceTriggerEvent) {
507
+ /** Commit */
350
508
  KnownSourceTriggerEvent["Commit"] = "commit";
509
+ /** Pullrequest */
351
510
  KnownSourceTriggerEvent["Pullrequest"] = "pullrequest";
352
511
  })(exports.KnownSourceTriggerEvent || (exports.KnownSourceTriggerEvent = {}));
353
512
  /** Known values of {@link BaseImageTriggerType} that the service accepts. */
354
513
  exports.KnownBaseImageTriggerType = void 0;
355
514
  (function (KnownBaseImageTriggerType) {
515
+ /** All */
356
516
  KnownBaseImageTriggerType["All"] = "All";
517
+ /** Runtime */
357
518
  KnownBaseImageTriggerType["Runtime"] = "Runtime";
358
519
  })(exports.KnownBaseImageTriggerType || (exports.KnownBaseImageTriggerType = {}));
359
520
  /** Known values of {@link UpdateTriggerPayloadType} that the service accepts. */
360
521
  exports.KnownUpdateTriggerPayloadType = void 0;
361
522
  (function (KnownUpdateTriggerPayloadType) {
523
+ /** Default */
362
524
  KnownUpdateTriggerPayloadType["Default"] = "Default";
525
+ /** Token */
363
526
  KnownUpdateTriggerPayloadType["Token"] = "Token";
364
527
  })(exports.KnownUpdateTriggerPayloadType || (exports.KnownUpdateTriggerPayloadType = {}));
365
528
  /** Known values of {@link SourceRegistryLoginMode} that the service accepts. */
366
529
  exports.KnownSourceRegistryLoginMode = void 0;
367
530
  (function (KnownSourceRegistryLoginMode) {
531
+ /** None */
368
532
  KnownSourceRegistryLoginMode["None"] = "None";
533
+ /** Default */
369
534
  KnownSourceRegistryLoginMode["Default"] = "Default";
370
535
  })(exports.KnownSourceRegistryLoginMode || (exports.KnownSourceRegistryLoginMode = {}));
371
536
  /** Known values of {@link SecretObjectType} that the service accepts. */
372
537
  exports.KnownSecretObjectType = void 0;
373
538
  (function (KnownSecretObjectType) {
539
+ /** Opaque */
374
540
  KnownSecretObjectType["Opaque"] = "Opaque";
541
+ /** Vaultsecret */
375
542
  KnownSecretObjectType["Vaultsecret"] = "Vaultsecret";
376
543
  })(exports.KnownSecretObjectType || (exports.KnownSecretObjectType = {}));
377
544
 
@@ -6534,20 +6701,31 @@ class ConnectedRegistriesImpl {
6534
6701
  [Symbol.asyncIterator]() {
6535
6702
  return this;
6536
6703
  },
6537
- byPage: () => {
6538
- return this.listPagingPage(resourceGroupName, registryName, options);
6704
+ byPage: (settings) => {
6705
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6706
+ throw new Error("maxPageSize is not supported by this operation.");
6707
+ }
6708
+ return this.listPagingPage(resourceGroupName, registryName, options, settings);
6539
6709
  }
6540
6710
  };
6541
6711
  }
6542
- listPagingPage(resourceGroupName, registryName, options) {
6712
+ listPagingPage(resourceGroupName, registryName, options, settings) {
6543
6713
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
6544
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
6545
- yield yield tslib.__await(result.value || []);
6546
- let continuationToken = result.nextLink;
6714
+ let result;
6715
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6716
+ if (!continuationToken) {
6717
+ result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
6718
+ let page = result.value || [];
6719
+ continuationToken = result.nextLink;
6720
+ setContinuationToken(page, continuationToken);
6721
+ yield yield tslib.__await(page);
6722
+ }
6547
6723
  while (continuationToken) {
6548
6724
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
6549
6725
  continuationToken = result.nextLink;
6550
- yield yield tslib.__await(result.value || []);
6726
+ let page = result.value || [];
6727
+ setContinuationToken(page, continuationToken);
6728
+ yield yield tslib.__await(page);
6551
6729
  }
6552
6730
  });
6553
6731
  }
@@ -7039,20 +7217,31 @@ class ExportPipelinesImpl {
7039
7217
  [Symbol.asyncIterator]() {
7040
7218
  return this;
7041
7219
  },
7042
- byPage: () => {
7043
- return this.listPagingPage(resourceGroupName, registryName, options);
7220
+ byPage: (settings) => {
7221
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7222
+ throw new Error("maxPageSize is not supported by this operation.");
7223
+ }
7224
+ return this.listPagingPage(resourceGroupName, registryName, options, settings);
7044
7225
  }
7045
7226
  };
7046
7227
  }
7047
- listPagingPage(resourceGroupName, registryName, options) {
7228
+ listPagingPage(resourceGroupName, registryName, options, settings) {
7048
7229
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
7049
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
7050
- yield yield tslib.__await(result.value || []);
7051
- let continuationToken = result.nextLink;
7230
+ let result;
7231
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7232
+ if (!continuationToken) {
7233
+ result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
7234
+ let page = result.value || [];
7235
+ continuationToken = result.nextLink;
7236
+ setContinuationToken(page, continuationToken);
7237
+ yield yield tslib.__await(page);
7238
+ }
7052
7239
  while (continuationToken) {
7053
7240
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
7054
7241
  continuationToken = result.nextLink;
7055
- yield yield tslib.__await(result.value || []);
7242
+ let page = result.value || [];
7243
+ setContinuationToken(page, continuationToken);
7244
+ yield yield tslib.__await(page);
7056
7245
  }
7057
7246
  });
7058
7247
  }
@@ -7372,20 +7561,31 @@ class RegistriesImpl {
7372
7561
  [Symbol.asyncIterator]() {
7373
7562
  return this;
7374
7563
  },
7375
- byPage: () => {
7376
- return this.listPagingPage(options);
7564
+ byPage: (settings) => {
7565
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7566
+ throw new Error("maxPageSize is not supported by this operation.");
7567
+ }
7568
+ return this.listPagingPage(options, settings);
7377
7569
  }
7378
7570
  };
7379
7571
  }
7380
- listPagingPage(options) {
7572
+ listPagingPage(options, settings) {
7381
7573
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
7382
- let result = yield tslib.__await(this._list(options));
7383
- yield yield tslib.__await(result.value || []);
7384
- let continuationToken = result.nextLink;
7574
+ let result;
7575
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7576
+ if (!continuationToken) {
7577
+ result = yield tslib.__await(this._list(options));
7578
+ let page = result.value || [];
7579
+ continuationToken = result.nextLink;
7580
+ setContinuationToken(page, continuationToken);
7581
+ yield yield tslib.__await(page);
7582
+ }
7385
7583
  while (continuationToken) {
7386
7584
  result = yield tslib.__await(this._listNext(continuationToken, options));
7387
7585
  continuationToken = result.nextLink;
7388
- yield yield tslib.__await(result.value || []);
7586
+ let page = result.value || [];
7587
+ setContinuationToken(page, continuationToken);
7588
+ yield yield tslib.__await(page);
7389
7589
  }
7390
7590
  });
7391
7591
  }
@@ -7421,20 +7621,31 @@ class RegistriesImpl {
7421
7621
  [Symbol.asyncIterator]() {
7422
7622
  return this;
7423
7623
  },
7424
- byPage: () => {
7425
- return this.listByResourceGroupPagingPage(resourceGroupName, options);
7624
+ byPage: (settings) => {
7625
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7626
+ throw new Error("maxPageSize is not supported by this operation.");
7627
+ }
7628
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
7426
7629
  }
7427
7630
  };
7428
7631
  }
7429
- listByResourceGroupPagingPage(resourceGroupName, options) {
7632
+ listByResourceGroupPagingPage(resourceGroupName, options, settings) {
7430
7633
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
7431
- let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
7432
- yield yield tslib.__await(result.value || []);
7433
- let continuationToken = result.nextLink;
7634
+ let result;
7635
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7636
+ if (!continuationToken) {
7637
+ result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
7638
+ let page = result.value || [];
7639
+ continuationToken = result.nextLink;
7640
+ setContinuationToken(page, continuationToken);
7641
+ yield yield tslib.__await(page);
7642
+ }
7434
7643
  while (continuationToken) {
7435
7644
  result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
7436
7645
  continuationToken = result.nextLink;
7437
- yield yield tslib.__await(result.value || []);
7646
+ let page = result.value || [];
7647
+ setContinuationToken(page, continuationToken);
7648
+ yield yield tslib.__await(page);
7438
7649
  }
7439
7650
  });
7440
7651
  }
@@ -7471,20 +7682,31 @@ class RegistriesImpl {
7471
7682
  [Symbol.asyncIterator]() {
7472
7683
  return this;
7473
7684
  },
7474
- byPage: () => {
7475
- return this.listPrivateLinkResourcesPagingPage(resourceGroupName, registryName, options);
7685
+ byPage: (settings) => {
7686
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7687
+ throw new Error("maxPageSize is not supported by this operation.");
7688
+ }
7689
+ return this.listPrivateLinkResourcesPagingPage(resourceGroupName, registryName, options, settings);
7476
7690
  }
7477
7691
  };
7478
7692
  }
7479
- listPrivateLinkResourcesPagingPage(resourceGroupName, registryName, options) {
7693
+ listPrivateLinkResourcesPagingPage(resourceGroupName, registryName, options, settings) {
7480
7694
  return tslib.__asyncGenerator(this, arguments, function* listPrivateLinkResourcesPagingPage_1() {
7481
- let result = yield tslib.__await(this._listPrivateLinkResources(resourceGroupName, registryName, options));
7482
- yield yield tslib.__await(result.value || []);
7483
- let continuationToken = result.nextLink;
7695
+ let result;
7696
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7697
+ if (!continuationToken) {
7698
+ result = yield tslib.__await(this._listPrivateLinkResources(resourceGroupName, registryName, options));
7699
+ let page = result.value || [];
7700
+ continuationToken = result.nextLink;
7701
+ setContinuationToken(page, continuationToken);
7702
+ yield yield tslib.__await(page);
7703
+ }
7484
7704
  while (continuationToken) {
7485
7705
  result = yield tslib.__await(this._listPrivateLinkResourcesNext(resourceGroupName, registryName, continuationToken, options));
7486
7706
  continuationToken = result.nextLink;
7487
- yield yield tslib.__await(result.value || []);
7707
+ let page = result.value || [];
7708
+ setContinuationToken(page, continuationToken);
7709
+ yield yield tslib.__await(page);
7488
7710
  }
7489
7711
  });
7490
7712
  }
@@ -8371,20 +8593,31 @@ class ImportPipelinesImpl {
8371
8593
  [Symbol.asyncIterator]() {
8372
8594
  return this;
8373
8595
  },
8374
- byPage: () => {
8375
- return this.listPagingPage(resourceGroupName, registryName, options);
8596
+ byPage: (settings) => {
8597
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8598
+ throw new Error("maxPageSize is not supported by this operation.");
8599
+ }
8600
+ return this.listPagingPage(resourceGroupName, registryName, options, settings);
8376
8601
  }
8377
8602
  };
8378
8603
  }
8379
- listPagingPage(resourceGroupName, registryName, options) {
8604
+ listPagingPage(resourceGroupName, registryName, options, settings) {
8380
8605
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
8381
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
8382
- yield yield tslib.__await(result.value || []);
8383
- let continuationToken = result.nextLink;
8606
+ let result;
8607
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8608
+ if (!continuationToken) {
8609
+ result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
8610
+ let page = result.value || [];
8611
+ continuationToken = result.nextLink;
8612
+ setContinuationToken(page, continuationToken);
8613
+ yield yield tslib.__await(page);
8614
+ }
8384
8615
  while (continuationToken) {
8385
8616
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
8386
8617
  continuationToken = result.nextLink;
8387
- yield yield tslib.__await(result.value || []);
8618
+ let page = result.value || [];
8619
+ setContinuationToken(page, continuationToken);
8620
+ yield yield tslib.__await(page);
8388
8621
  }
8389
8622
  });
8390
8623
  }
@@ -8704,20 +8937,31 @@ class OperationsImpl {
8704
8937
  [Symbol.asyncIterator]() {
8705
8938
  return this;
8706
8939
  },
8707
- byPage: () => {
8708
- return this.listPagingPage(options);
8940
+ byPage: (settings) => {
8941
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8942
+ throw new Error("maxPageSize is not supported by this operation.");
8943
+ }
8944
+ return this.listPagingPage(options, settings);
8709
8945
  }
8710
8946
  };
8711
8947
  }
8712
- listPagingPage(options) {
8948
+ listPagingPage(options, settings) {
8713
8949
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
8714
- let result = yield tslib.__await(this._list(options));
8715
- yield yield tslib.__await(result.value || []);
8716
- let continuationToken = result.nextLink;
8950
+ let result;
8951
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8952
+ if (!continuationToken) {
8953
+ result = yield tslib.__await(this._list(options));
8954
+ let page = result.value || [];
8955
+ continuationToken = result.nextLink;
8956
+ setContinuationToken(page, continuationToken);
8957
+ yield yield tslib.__await(page);
8958
+ }
8717
8959
  while (continuationToken) {
8718
8960
  result = yield tslib.__await(this._listNext(continuationToken, options));
8719
8961
  continuationToken = result.nextLink;
8720
- yield yield tslib.__await(result.value || []);
8962
+ let page = result.value || [];
8963
+ setContinuationToken(page, continuationToken);
8964
+ yield yield tslib.__await(page);
8721
8965
  }
8722
8966
  });
8723
8967
  }
@@ -8816,20 +9060,31 @@ class PipelineRunsImpl {
8816
9060
  [Symbol.asyncIterator]() {
8817
9061
  return this;
8818
9062
  },
8819
- byPage: () => {
8820
- return this.listPagingPage(resourceGroupName, registryName, options);
9063
+ byPage: (settings) => {
9064
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9065
+ throw new Error("maxPageSize is not supported by this operation.");
9066
+ }
9067
+ return this.listPagingPage(resourceGroupName, registryName, options, settings);
8821
9068
  }
8822
9069
  };
8823
9070
  }
8824
- listPagingPage(resourceGroupName, registryName, options) {
9071
+ listPagingPage(resourceGroupName, registryName, options, settings) {
8825
9072
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
8826
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
8827
- yield yield tslib.__await(result.value || []);
8828
- let continuationToken = result.nextLink;
9073
+ let result;
9074
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
9075
+ if (!continuationToken) {
9076
+ result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
9077
+ let page = result.value || [];
9078
+ continuationToken = result.nextLink;
9079
+ setContinuationToken(page, continuationToken);
9080
+ yield yield tslib.__await(page);
9081
+ }
8829
9082
  while (continuationToken) {
8830
9083
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
8831
9084
  continuationToken = result.nextLink;
8832
- yield yield tslib.__await(result.value || []);
9085
+ let page = result.value || [];
9086
+ setContinuationToken(page, continuationToken);
9087
+ yield yield tslib.__await(page);
8833
9088
  }
8834
9089
  });
8835
9090
  }
@@ -9151,20 +9406,31 @@ class PrivateEndpointConnectionsImpl {
9151
9406
  [Symbol.asyncIterator]() {
9152
9407
  return this;
9153
9408
  },
9154
- byPage: () => {
9155
- return this.listPagingPage(resourceGroupName, registryName, options);
9409
+ byPage: (settings) => {
9410
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9411
+ throw new Error("maxPageSize is not supported by this operation.");
9412
+ }
9413
+ return this.listPagingPage(resourceGroupName, registryName, options, settings);
9156
9414
  }
9157
9415
  };
9158
9416
  }
9159
- listPagingPage(resourceGroupName, registryName, options) {
9417
+ listPagingPage(resourceGroupName, registryName, options, settings) {
9160
9418
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
9161
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
9162
- yield yield tslib.__await(result.value || []);
9163
- let continuationToken = result.nextLink;
9419
+ let result;
9420
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
9421
+ if (!continuationToken) {
9422
+ result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
9423
+ let page = result.value || [];
9424
+ continuationToken = result.nextLink;
9425
+ setContinuationToken(page, continuationToken);
9426
+ yield yield tslib.__await(page);
9427
+ }
9164
9428
  while (continuationToken) {
9165
9429
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
9166
9430
  continuationToken = result.nextLink;
9167
- yield yield tslib.__await(result.value || []);
9431
+ let page = result.value || [];
9432
+ setContinuationToken(page, continuationToken);
9433
+ yield yield tslib.__await(page);
9168
9434
  }
9169
9435
  });
9170
9436
  }
@@ -9475,20 +9741,31 @@ class ReplicationsImpl {
9475
9741
  [Symbol.asyncIterator]() {
9476
9742
  return this;
9477
9743
  },
9478
- byPage: () => {
9479
- return this.listPagingPage(resourceGroupName, registryName, options);
9744
+ byPage: (settings) => {
9745
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9746
+ throw new Error("maxPageSize is not supported by this operation.");
9747
+ }
9748
+ return this.listPagingPage(resourceGroupName, registryName, options, settings);
9480
9749
  }
9481
9750
  };
9482
9751
  }
9483
- listPagingPage(resourceGroupName, registryName, options) {
9752
+ listPagingPage(resourceGroupName, registryName, options, settings) {
9484
9753
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
9485
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
9486
- yield yield tslib.__await(result.value || []);
9487
- let continuationToken = result.nextLink;
9754
+ let result;
9755
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
9756
+ if (!continuationToken) {
9757
+ result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
9758
+ let page = result.value || [];
9759
+ continuationToken = result.nextLink;
9760
+ setContinuationToken(page, continuationToken);
9761
+ yield yield tslib.__await(page);
9762
+ }
9488
9763
  while (continuationToken) {
9489
9764
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
9490
9765
  continuationToken = result.nextLink;
9491
- yield yield tslib.__await(result.value || []);
9766
+ let page = result.value || [];
9767
+ setContinuationToken(page, continuationToken);
9768
+ yield yield tslib.__await(page);
9492
9769
  }
9493
9770
  });
9494
9771
  }
@@ -9880,20 +10157,31 @@ class ScopeMapsImpl {
9880
10157
  [Symbol.asyncIterator]() {
9881
10158
  return this;
9882
10159
  },
9883
- byPage: () => {
9884
- return this.listPagingPage(resourceGroupName, registryName, options);
10160
+ byPage: (settings) => {
10161
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
10162
+ throw new Error("maxPageSize is not supported by this operation.");
10163
+ }
10164
+ return this.listPagingPage(resourceGroupName, registryName, options, settings);
9885
10165
  }
9886
10166
  };
9887
10167
  }
9888
- listPagingPage(resourceGroupName, registryName, options) {
10168
+ listPagingPage(resourceGroupName, registryName, options, settings) {
9889
10169
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
9890
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
9891
- yield yield tslib.__await(result.value || []);
9892
- let continuationToken = result.nextLink;
10170
+ let result;
10171
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
10172
+ if (!continuationToken) {
10173
+ result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
10174
+ let page = result.value || [];
10175
+ continuationToken = result.nextLink;
10176
+ setContinuationToken(page, continuationToken);
10177
+ yield yield tslib.__await(page);
10178
+ }
9893
10179
  while (continuationToken) {
9894
10180
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
9895
10181
  continuationToken = result.nextLink;
9896
- yield yield tslib.__await(result.value || []);
10182
+ let page = result.value || [];
10183
+ setContinuationToken(page, continuationToken);
10184
+ yield yield tslib.__await(page);
9897
10185
  }
9898
10186
  });
9899
10187
  }
@@ -10309,20 +10597,31 @@ class TokensImpl {
10309
10597
  [Symbol.asyncIterator]() {
10310
10598
  return this;
10311
10599
  },
10312
- byPage: () => {
10313
- return this.listPagingPage(resourceGroupName, registryName, options);
10600
+ byPage: (settings) => {
10601
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
10602
+ throw new Error("maxPageSize is not supported by this operation.");
10603
+ }
10604
+ return this.listPagingPage(resourceGroupName, registryName, options, settings);
10314
10605
  }
10315
10606
  };
10316
10607
  }
10317
- listPagingPage(resourceGroupName, registryName, options) {
10608
+ listPagingPage(resourceGroupName, registryName, options, settings) {
10318
10609
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
10319
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
10320
- yield yield tslib.__await(result.value || []);
10321
- let continuationToken = result.nextLink;
10610
+ let result;
10611
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
10612
+ if (!continuationToken) {
10613
+ result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
10614
+ let page = result.value || [];
10615
+ continuationToken = result.nextLink;
10616
+ setContinuationToken(page, continuationToken);
10617
+ yield yield tslib.__await(page);
10618
+ }
10322
10619
  while (continuationToken) {
10323
10620
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
10324
10621
  continuationToken = result.nextLink;
10325
- yield yield tslib.__await(result.value || []);
10622
+ let page = result.value || [];
10623
+ setContinuationToken(page, continuationToken);
10624
+ yield yield tslib.__await(page);
10326
10625
  }
10327
10626
  });
10328
10627
  }
@@ -10738,20 +11037,31 @@ class WebhooksImpl {
10738
11037
  [Symbol.asyncIterator]() {
10739
11038
  return this;
10740
11039
  },
10741
- byPage: () => {
10742
- return this.listPagingPage(resourceGroupName, registryName, options);
11040
+ byPage: (settings) => {
11041
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
11042
+ throw new Error("maxPageSize is not supported by this operation.");
11043
+ }
11044
+ return this.listPagingPage(resourceGroupName, registryName, options, settings);
10743
11045
  }
10744
11046
  };
10745
11047
  }
10746
- listPagingPage(resourceGroupName, registryName, options) {
11048
+ listPagingPage(resourceGroupName, registryName, options, settings) {
10747
11049
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
10748
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
10749
- yield yield tslib.__await(result.value || []);
10750
- let continuationToken = result.nextLink;
11050
+ let result;
11051
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
11052
+ if (!continuationToken) {
11053
+ result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
11054
+ let page = result.value || [];
11055
+ continuationToken = result.nextLink;
11056
+ setContinuationToken(page, continuationToken);
11057
+ yield yield tslib.__await(page);
11058
+ }
10751
11059
  while (continuationToken) {
10752
11060
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
10753
11061
  continuationToken = result.nextLink;
10754
- yield yield tslib.__await(result.value || []);
11062
+ let page = result.value || [];
11063
+ setContinuationToken(page, continuationToken);
11064
+ yield yield tslib.__await(page);
10755
11065
  }
10756
11066
  });
10757
11067
  }
@@ -10789,20 +11099,31 @@ class WebhooksImpl {
10789
11099
  [Symbol.asyncIterator]() {
10790
11100
  return this;
10791
11101
  },
10792
- byPage: () => {
10793
- return this.listEventsPagingPage(resourceGroupName, registryName, webhookName, options);
11102
+ byPage: (settings) => {
11103
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
11104
+ throw new Error("maxPageSize is not supported by this operation.");
11105
+ }
11106
+ return this.listEventsPagingPage(resourceGroupName, registryName, webhookName, options, settings);
10794
11107
  }
10795
11108
  };
10796
11109
  }
10797
- listEventsPagingPage(resourceGroupName, registryName, webhookName, options) {
11110
+ listEventsPagingPage(resourceGroupName, registryName, webhookName, options, settings) {
10798
11111
  return tslib.__asyncGenerator(this, arguments, function* listEventsPagingPage_1() {
10799
- let result = yield tslib.__await(this._listEvents(resourceGroupName, registryName, webhookName, options));
10800
- yield yield tslib.__await(result.value || []);
10801
- let continuationToken = result.nextLink;
11112
+ let result;
11113
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
11114
+ if (!continuationToken) {
11115
+ result = yield tslib.__await(this._listEvents(resourceGroupName, registryName, webhookName, options));
11116
+ let page = result.value || [];
11117
+ continuationToken = result.nextLink;
11118
+ setContinuationToken(page, continuationToken);
11119
+ yield yield tslib.__await(page);
11120
+ }
10802
11121
  while (continuationToken) {
10803
11122
  result = yield tslib.__await(this._listEventsNext(resourceGroupName, registryName, webhookName, continuationToken, options));
10804
11123
  continuationToken = result.nextLink;
10805
- yield yield tslib.__await(result.value || []);
11124
+ let page = result.value || [];
11125
+ setContinuationToken(page, continuationToken);
11126
+ yield yield tslib.__await(page);
10806
11127
  }
10807
11128
  });
10808
11129
  }
@@ -11312,20 +11633,31 @@ class AgentPoolsImpl {
11312
11633
  [Symbol.asyncIterator]() {
11313
11634
  return this;
11314
11635
  },
11315
- byPage: () => {
11316
- return this.listPagingPage(resourceGroupName, registryName, options);
11636
+ byPage: (settings) => {
11637
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
11638
+ throw new Error("maxPageSize is not supported by this operation.");
11639
+ }
11640
+ return this.listPagingPage(resourceGroupName, registryName, options, settings);
11317
11641
  }
11318
11642
  };
11319
11643
  }
11320
- listPagingPage(resourceGroupName, registryName, options) {
11644
+ listPagingPage(resourceGroupName, registryName, options, settings) {
11321
11645
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
11322
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
11323
- yield yield tslib.__await(result.value || []);
11324
- let continuationToken = result.nextLink;
11646
+ let result;
11647
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
11648
+ if (!continuationToken) {
11649
+ result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
11650
+ let page = result.value || [];
11651
+ continuationToken = result.nextLink;
11652
+ setContinuationToken(page, continuationToken);
11653
+ yield yield tslib.__await(page);
11654
+ }
11325
11655
  while (continuationToken) {
11326
11656
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
11327
11657
  continuationToken = result.nextLink;
11328
- yield yield tslib.__await(result.value || []);
11658
+ let page = result.value || [];
11659
+ setContinuationToken(page, continuationToken);
11660
+ yield yield tslib.__await(page);
11329
11661
  }
11330
11662
  });
11331
11663
  }
@@ -11767,20 +12099,31 @@ class RunsImpl {
11767
12099
  [Symbol.asyncIterator]() {
11768
12100
  return this;
11769
12101
  },
11770
- byPage: () => {
11771
- return this.listPagingPage(resourceGroupName, registryName, options);
12102
+ byPage: (settings) => {
12103
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
12104
+ throw new Error("maxPageSize is not supported by this operation.");
12105
+ }
12106
+ return this.listPagingPage(resourceGroupName, registryName, options, settings);
11772
12107
  }
11773
12108
  };
11774
12109
  }
11775
- listPagingPage(resourceGroupName, registryName, options) {
12110
+ listPagingPage(resourceGroupName, registryName, options, settings) {
11776
12111
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
11777
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
11778
- yield yield tslib.__await(result.value || []);
11779
- let continuationToken = result.nextLink;
12112
+ let result;
12113
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
12114
+ if (!continuationToken) {
12115
+ result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
12116
+ let page = result.value || [];
12117
+ continuationToken = result.nextLink;
12118
+ setContinuationToken(page, continuationToken);
12119
+ yield yield tslib.__await(page);
12120
+ }
11780
12121
  while (continuationToken) {
11781
12122
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
11782
12123
  continuationToken = result.nextLink;
11783
- yield yield tslib.__await(result.value || []);
12124
+ let page = result.value || [];
12125
+ setContinuationToken(page, continuationToken);
12126
+ yield yield tslib.__await(page);
11784
12127
  }
11785
12128
  });
11786
12129
  }
@@ -12128,20 +12471,31 @@ class TaskRunsImpl {
12128
12471
  [Symbol.asyncIterator]() {
12129
12472
  return this;
12130
12473
  },
12131
- byPage: () => {
12132
- return this.listPagingPage(resourceGroupName, registryName, options);
12474
+ byPage: (settings) => {
12475
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
12476
+ throw new Error("maxPageSize is not supported by this operation.");
12477
+ }
12478
+ return this.listPagingPage(resourceGroupName, registryName, options, settings);
12133
12479
  }
12134
12480
  };
12135
12481
  }
12136
- listPagingPage(resourceGroupName, registryName, options) {
12482
+ listPagingPage(resourceGroupName, registryName, options, settings) {
12137
12483
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
12138
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
12139
- yield yield tslib.__await(result.value || []);
12140
- let continuationToken = result.nextLink;
12484
+ let result;
12485
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
12486
+ if (!continuationToken) {
12487
+ result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
12488
+ let page = result.value || [];
12489
+ continuationToken = result.nextLink;
12490
+ setContinuationToken(page, continuationToken);
12491
+ yield yield tslib.__await(page);
12492
+ }
12141
12493
  while (continuationToken) {
12142
12494
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
12143
12495
  continuationToken = result.nextLink;
12144
- yield yield tslib.__await(result.value || []);
12496
+ let page = result.value || [];
12497
+ setContinuationToken(page, continuationToken);
12498
+ yield yield tslib.__await(page);
12145
12499
  }
12146
12500
  });
12147
12501
  }
@@ -12583,20 +12937,31 @@ class TasksImpl {
12583
12937
  [Symbol.asyncIterator]() {
12584
12938
  return this;
12585
12939
  },
12586
- byPage: () => {
12587
- return this.listPagingPage(resourceGroupName, registryName, options);
12940
+ byPage: (settings) => {
12941
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
12942
+ throw new Error("maxPageSize is not supported by this operation.");
12943
+ }
12944
+ return this.listPagingPage(resourceGroupName, registryName, options, settings);
12588
12945
  }
12589
12946
  };
12590
12947
  }
12591
- listPagingPage(resourceGroupName, registryName, options) {
12948
+ listPagingPage(resourceGroupName, registryName, options, settings) {
12592
12949
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
12593
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
12594
- yield yield tslib.__await(result.value || []);
12595
- let continuationToken = result.nextLink;
12950
+ let result;
12951
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
12952
+ if (!continuationToken) {
12953
+ result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
12954
+ let page = result.value || [];
12955
+ continuationToken = result.nextLink;
12956
+ setContinuationToken(page, continuationToken);
12957
+ yield yield tslib.__await(page);
12958
+ }
12596
12959
  while (continuationToken) {
12597
12960
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
12598
12961
  continuationToken = result.nextLink;
12599
- yield yield tslib.__await(result.value || []);
12962
+ let page = result.value || [];
12963
+ setContinuationToken(page, continuationToken);
12964
+ yield yield tslib.__await(page);
12600
12965
  }
12601
12966
  });
12602
12967
  }
@@ -13027,7 +13392,7 @@ class ContainerRegistryManagementClient extends coreClient__namespace.ServiceCli
13027
13392
  * @param options The parameter options
13028
13393
  */
13029
13394
  constructor(credentials, subscriptionId, options) {
13030
- var _a, _b;
13395
+ var _a, _b, _c;
13031
13396
  if (credentials === undefined) {
13032
13397
  throw new Error("'credentials' cannot be null");
13033
13398
  }
@@ -13042,32 +13407,34 @@ class ContainerRegistryManagementClient extends coreClient__namespace.ServiceCli
13042
13407
  requestContentType: "application/json; charset=utf-8",
13043
13408
  credential: credentials
13044
13409
  };
13045
- const packageDetails = `azsdk-js-arm-containerregistry/10.1.0-beta.3`;
13410
+ const packageDetails = `azsdk-js-arm-containerregistry/10.1.0-beta.4`;
13046
13411
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
13047
13412
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
13048
13413
  : `${packageDetails}`;
13049
- if (!options.credentialScopes) {
13050
- options.credentialScopes = ["https://management.azure.com/.default"];
13051
- }
13052
13414
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
13053
13415
  userAgentPrefix
13054
- }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
13416
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
13055
13417
  super(optionsWithDefaults);
13418
+ let bearerTokenAuthenticationPolicyFound = false;
13056
13419
  if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
13057
13420
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
13058
- const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
13421
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
13059
13422
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
13060
- if (!bearerTokenAuthenticationPolicyFound) {
13061
- this.pipeline.removePolicy({
13062
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
13063
- });
13064
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
13065
- scopes: `${optionsWithDefaults.baseUri}/.default`,
13066
- challengeCallbacks: {
13067
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
13068
- }
13069
- }));
13070
- }
13423
+ }
13424
+ if (!options ||
13425
+ !options.pipeline ||
13426
+ options.pipeline.getOrderedPolicies().length == 0 ||
13427
+ !bearerTokenAuthenticationPolicyFound) {
13428
+ this.pipeline.removePolicy({
13429
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
13430
+ });
13431
+ this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
13432
+ credential: credentials,
13433
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
13434
+ challengeCallbacks: {
13435
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
13436
+ }
13437
+ }));
13071
13438
  }
13072
13439
  // Parameter assignments
13073
13440
  this.subscriptionId = subscriptionId;
@@ -13092,4 +13459,5 @@ class ContainerRegistryManagementClient extends coreClient__namespace.ServiceCli
13092
13459
  }
13093
13460
 
13094
13461
  exports.ContainerRegistryManagementClient = ContainerRegistryManagementClient;
13462
+ exports.getContinuationToken = getContinuationToken;
13095
13463
  //# sourceMappingURL=index.js.map