@azure/arm-containerregistry 10.1.0-beta.2 → 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 (159) hide show
  1. package/CHANGELOG.md +32 -11
  2. package/README.md +1 -1
  3. package/dist/index.js +623 -167
  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/samples-dev/connectedRegistriesCreateSample.js +1 -1
  8. package/dist-esm/samples-dev/connectedRegistriesDeactivateSample.js +1 -1
  9. package/dist-esm/samples-dev/connectedRegistriesDeleteSample.js +1 -1
  10. package/dist-esm/samples-dev/connectedRegistriesGetSample.js +1 -1
  11. package/dist-esm/samples-dev/connectedRegistriesListSample.js +1 -1
  12. package/dist-esm/samples-dev/connectedRegistriesUpdateSample.js +1 -1
  13. package/dist-esm/samples-dev/exportPipelinesCreateSample.js +1 -1
  14. package/dist-esm/samples-dev/exportPipelinesDeleteSample.js +1 -1
  15. package/dist-esm/samples-dev/exportPipelinesGetSample.js +1 -1
  16. package/dist-esm/samples-dev/exportPipelinesListSample.js +1 -1
  17. package/dist-esm/samples-dev/importPipelinesCreateSample.js +1 -1
  18. package/dist-esm/samples-dev/importPipelinesDeleteSample.js +1 -1
  19. package/dist-esm/samples-dev/importPipelinesGetSample.js +1 -1
  20. package/dist-esm/samples-dev/importPipelinesListSample.js +1 -1
  21. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  22. package/dist-esm/samples-dev/pipelineRunsCreateSample.js +2 -2
  23. package/dist-esm/samples-dev/pipelineRunsDeleteSample.js +1 -1
  24. package/dist-esm/samples-dev/pipelineRunsGetSample.js +1 -1
  25. package/dist-esm/samples-dev/pipelineRunsListSample.js +1 -1
  26. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +1 -1
  27. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  28. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  29. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
  30. package/dist-esm/samples-dev/registriesCheckNameAvailabilitySample.js +2 -2
  31. package/dist-esm/samples-dev/registriesCreateSample.js +2 -2
  32. package/dist-esm/samples-dev/registriesDeleteSample.js +1 -1
  33. package/dist-esm/samples-dev/registriesGenerateCredentialsSample.js +1 -1
  34. package/dist-esm/samples-dev/registriesGetPrivateLinkResourceSample.js +1 -1
  35. package/dist-esm/samples-dev/registriesGetSample.js +1 -1
  36. package/dist-esm/samples-dev/registriesImportImageSample.js +3 -3
  37. package/dist-esm/samples-dev/registriesListByResourceGroupSample.js +1 -1
  38. package/dist-esm/samples-dev/registriesListCredentialsSample.js +1 -1
  39. package/dist-esm/samples-dev/registriesListPrivateLinkResourcesSample.js +1 -1
  40. package/dist-esm/samples-dev/registriesListSample.js +1 -1
  41. package/dist-esm/samples-dev/registriesListUsagesSample.js +1 -1
  42. package/dist-esm/samples-dev/registriesRegenerateCredentialSample.js +1 -1
  43. package/dist-esm/samples-dev/registriesUpdateSample.js +1 -1
  44. package/dist-esm/samples-dev/replicationsCreateSample.js +2 -2
  45. package/dist-esm/samples-dev/replicationsDeleteSample.js +1 -1
  46. package/dist-esm/samples-dev/replicationsGetSample.js +1 -1
  47. package/dist-esm/samples-dev/replicationsListSample.js +1 -1
  48. package/dist-esm/samples-dev/replicationsUpdateSample.js +1 -1
  49. package/dist-esm/samples-dev/scopeMapsCreateSample.js +1 -1
  50. package/dist-esm/samples-dev/scopeMapsDeleteSample.js +1 -1
  51. package/dist-esm/samples-dev/scopeMapsGetSample.js +1 -1
  52. package/dist-esm/samples-dev/scopeMapsListSample.js +1 -1
  53. package/dist-esm/samples-dev/scopeMapsUpdateSample.js +1 -1
  54. package/dist-esm/samples-dev/tokensCreateSample.js +1 -1
  55. package/dist-esm/samples-dev/tokensDeleteSample.js +1 -1
  56. package/dist-esm/samples-dev/tokensGetSample.js +1 -1
  57. package/dist-esm/samples-dev/tokensListSample.js +1 -1
  58. package/dist-esm/samples-dev/tokensUpdateSample.js +1 -1
  59. package/dist-esm/samples-dev/webhooksCreateSample.js +1 -1
  60. package/dist-esm/samples-dev/webhooksDeleteSample.js +1 -1
  61. package/dist-esm/samples-dev/webhooksGetCallbackConfigSample.js +1 -1
  62. package/dist-esm/samples-dev/webhooksGetSample.js +1 -1
  63. package/dist-esm/samples-dev/webhooksListEventsSample.js +1 -1
  64. package/dist-esm/samples-dev/webhooksListSample.js +1 -1
  65. package/dist-esm/samples-dev/webhooksPingSample.js +1 -1
  66. package/dist-esm/samples-dev/webhooksUpdateSample.js +1 -1
  67. package/dist-esm/src/containerRegistryManagementClient.d.ts.map +1 -1
  68. package/dist-esm/src/containerRegistryManagementClient.js +25 -6
  69. package/dist-esm/src/containerRegistryManagementClient.js.map +1 -1
  70. package/dist-esm/src/index.d.ts +1 -0
  71. package/dist-esm/src/index.d.ts.map +1 -1
  72. package/dist-esm/src/index.js +1 -0
  73. package/dist-esm/src/index.js.map +1 -1
  74. package/dist-esm/src/models/index.d.ts +235 -59
  75. package/dist-esm/src/models/index.d.ts.map +1 -1
  76. package/dist-esm/src/models/index.js +141 -0
  77. package/dist-esm/src/models/index.js.map +1 -1
  78. package/dist-esm/src/models/mappers.d.ts +4 -1
  79. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  80. package/dist-esm/src/models/mappers.js +94 -33
  81. package/dist-esm/src/models/mappers.js.map +1 -1
  82. package/dist-esm/src/models/parameters.js +1 -1
  83. package/dist-esm/src/operations/agentPools.d.ts.map +1 -1
  84. package/dist-esm/src/operations/agentPools.js +19 -7
  85. package/dist-esm/src/operations/agentPools.js.map +1 -1
  86. package/dist-esm/src/operations/connectedRegistries.d.ts.map +1 -1
  87. package/dist-esm/src/operations/connectedRegistries.js +19 -7
  88. package/dist-esm/src/operations/connectedRegistries.js.map +1 -1
  89. package/dist-esm/src/operations/exportPipelines.d.ts.map +1 -1
  90. package/dist-esm/src/operations/exportPipelines.js +19 -7
  91. package/dist-esm/src/operations/exportPipelines.js.map +1 -1
  92. package/dist-esm/src/operations/importPipelines.d.ts.map +1 -1
  93. package/dist-esm/src/operations/importPipelines.js +19 -7
  94. package/dist-esm/src/operations/importPipelines.js.map +1 -1
  95. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  96. package/dist-esm/src/operations/operations.js +19 -7
  97. package/dist-esm/src/operations/operations.js.map +1 -1
  98. package/dist-esm/src/operations/pipelineRuns.d.ts.map +1 -1
  99. package/dist-esm/src/operations/pipelineRuns.js +19 -7
  100. package/dist-esm/src/operations/pipelineRuns.js.map +1 -1
  101. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  102. package/dist-esm/src/operations/privateEndpointConnections.js +19 -7
  103. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  104. package/dist-esm/src/operations/registries.d.ts.map +1 -1
  105. package/dist-esm/src/operations/registries.js +55 -21
  106. package/dist-esm/src/operations/registries.js.map +1 -1
  107. package/dist-esm/src/operations/replications.d.ts.map +1 -1
  108. package/dist-esm/src/operations/replications.js +19 -7
  109. package/dist-esm/src/operations/replications.js.map +1 -1
  110. package/dist-esm/src/operations/runs.d.ts.map +1 -1
  111. package/dist-esm/src/operations/runs.js +19 -7
  112. package/dist-esm/src/operations/runs.js.map +1 -1
  113. package/dist-esm/src/operations/scopeMaps.d.ts.map +1 -1
  114. package/dist-esm/src/operations/scopeMaps.js +19 -7
  115. package/dist-esm/src/operations/scopeMaps.js.map +1 -1
  116. package/dist-esm/src/operations/taskRuns.d.ts.map +1 -1
  117. package/dist-esm/src/operations/taskRuns.js +19 -7
  118. package/dist-esm/src/operations/taskRuns.js.map +1 -1
  119. package/dist-esm/src/operations/tasks.d.ts.map +1 -1
  120. package/dist-esm/src/operations/tasks.js +19 -7
  121. package/dist-esm/src/operations/tasks.js.map +1 -1
  122. package/dist-esm/src/operations/tokens.d.ts.map +1 -1
  123. package/dist-esm/src/operations/tokens.js +19 -7
  124. package/dist-esm/src/operations/tokens.js.map +1 -1
  125. package/dist-esm/src/operations/webhooks.d.ts.map +1 -1
  126. package/dist-esm/src/operations/webhooks.js +37 -14
  127. package/dist-esm/src/operations/webhooks.js.map +1 -1
  128. package/dist-esm/src/pagingHelper.d.ts +13 -0
  129. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  130. package/dist-esm/src/pagingHelper.js +32 -0
  131. package/dist-esm/src/pagingHelper.js.map +1 -0
  132. package/dist-esm/test/containerregistry_examples.d.ts.map +1 -1
  133. package/dist-esm/test/containerregistry_examples.js +16 -18
  134. package/dist-esm/test/containerregistry_examples.js.map +1 -1
  135. package/package.json +15 -11
  136. package/review/arm-containerregistry.api.md +177 -280
  137. package/src/containerRegistryManagementClient.ts +35 -5
  138. package/src/index.ts +1 -0
  139. package/src/models/index.ts +243 -60
  140. package/src/models/mappers.ts +98 -34
  141. package/src/models/parameters.ts +1 -1
  142. package/src/operations/agentPools.ts +27 -9
  143. package/src/operations/connectedRegistries.ts +26 -8
  144. package/src/operations/exportPipelines.ts +26 -8
  145. package/src/operations/importPipelines.ts +26 -8
  146. package/src/operations/operations.ts +21 -8
  147. package/src/operations/pipelineRuns.ts +26 -8
  148. package/src/operations/privateEndpointConnections.ts +26 -8
  149. package/src/operations/registries.ts +71 -29
  150. package/src/operations/replications.ts +26 -8
  151. package/src/operations/runs.ts +26 -8
  152. package/src/operations/scopeMaps.ts +26 -8
  153. package/src/operations/taskRuns.ts +27 -9
  154. package/src/operations/tasks.ts +26 -8
  155. package/src/operations/tokens.ts +26 -8
  156. package/src/operations/webhooks.ts +53 -22
  157. package/src/pagingHelper.ts +39 -0
  158. package/types/arm-containerregistry.d.ts +250 -60
  159. package/types/tsdoc-metadata.json +1 -1
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var coreClient = require('@azure/core-client');
6
+ var coreRestPipeline = require('@azure/core-rest-pipeline');
6
7
  var tslib = require('tslib');
7
8
  var coreLro = require('@azure/core-lro');
8
9
 
@@ -25,6 +26,39 @@ function _interopNamespace(e) {
25
26
  }
26
27
 
27
28
  var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
+ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
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
+ }
28
62
 
29
63
  /*
30
64
  * Copyright (c) Microsoft Corporation.
@@ -36,334 +70,475 @@ var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
36
70
  /** Known values of {@link ProvisioningState} that the service accepts. */
37
71
  exports.KnownProvisioningState = void 0;
38
72
  (function (KnownProvisioningState) {
73
+ /** Creating */
39
74
  KnownProvisioningState["Creating"] = "Creating";
75
+ /** Updating */
40
76
  KnownProvisioningState["Updating"] = "Updating";
77
+ /** Deleting */
41
78
  KnownProvisioningState["Deleting"] = "Deleting";
79
+ /** Succeeded */
42
80
  KnownProvisioningState["Succeeded"] = "Succeeded";
81
+ /** Failed */
43
82
  KnownProvisioningState["Failed"] = "Failed";
83
+ /** Canceled */
44
84
  KnownProvisioningState["Canceled"] = "Canceled";
45
85
  })(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
46
86
  /** Known values of {@link ConnectedRegistryMode} that the service accepts. */
47
87
  exports.KnownConnectedRegistryMode = void 0;
48
88
  (function (KnownConnectedRegistryMode) {
89
+ /** ReadWrite */
49
90
  KnownConnectedRegistryMode["ReadWrite"] = "ReadWrite";
91
+ /** ReadOnly */
50
92
  KnownConnectedRegistryMode["ReadOnly"] = "ReadOnly";
93
+ /** Registry */
51
94
  KnownConnectedRegistryMode["Registry"] = "Registry";
95
+ /** Mirror */
52
96
  KnownConnectedRegistryMode["Mirror"] = "Mirror";
53
97
  })(exports.KnownConnectedRegistryMode || (exports.KnownConnectedRegistryMode = {}));
54
98
  /** Known values of {@link ConnectionState} that the service accepts. */
55
99
  exports.KnownConnectionState = void 0;
56
100
  (function (KnownConnectionState) {
101
+ /** Online */
57
102
  KnownConnectionState["Online"] = "Online";
103
+ /** Offline */
58
104
  KnownConnectionState["Offline"] = "Offline";
105
+ /** Syncing */
59
106
  KnownConnectionState["Syncing"] = "Syncing";
107
+ /** Unhealthy */
60
108
  KnownConnectionState["Unhealthy"] = "Unhealthy";
61
109
  })(exports.KnownConnectionState || (exports.KnownConnectionState = {}));
62
110
  /** Known values of {@link ActivationStatus} that the service accepts. */
63
111
  exports.KnownActivationStatus = void 0;
64
112
  (function (KnownActivationStatus) {
113
+ /** Active */
65
114
  KnownActivationStatus["Active"] = "Active";
115
+ /** Inactive */
66
116
  KnownActivationStatus["Inactive"] = "Inactive";
67
117
  })(exports.KnownActivationStatus || (exports.KnownActivationStatus = {}));
68
118
  /** Known values of {@link TlsStatus} that the service accepts. */
69
119
  exports.KnownTlsStatus = void 0;
70
120
  (function (KnownTlsStatus) {
121
+ /** Enabled */
71
122
  KnownTlsStatus["Enabled"] = "Enabled";
123
+ /** Disabled */
72
124
  KnownTlsStatus["Disabled"] = "Disabled";
73
125
  })(exports.KnownTlsStatus || (exports.KnownTlsStatus = {}));
74
126
  /** Known values of {@link CertificateType} that the service accepts. */
75
127
  exports.KnownCertificateType = void 0;
76
128
  (function (KnownCertificateType) {
129
+ /** LocalDirectory */
77
130
  KnownCertificateType["LocalDirectory"] = "LocalDirectory";
78
131
  })(exports.KnownCertificateType || (exports.KnownCertificateType = {}));
79
132
  /** Known values of {@link LogLevel} that the service accepts. */
80
133
  exports.KnownLogLevel = void 0;
81
134
  (function (KnownLogLevel) {
135
+ /** Debug */
82
136
  KnownLogLevel["Debug"] = "Debug";
137
+ /** Information */
83
138
  KnownLogLevel["Information"] = "Information";
139
+ /** Warning */
84
140
  KnownLogLevel["Warning"] = "Warning";
141
+ /** Error */
85
142
  KnownLogLevel["Error"] = "Error";
143
+ /** None */
86
144
  KnownLogLevel["None"] = "None";
87
145
  })(exports.KnownLogLevel || (exports.KnownLogLevel = {}));
88
146
  /** Known values of {@link AuditLogStatus} that the service accepts. */
89
147
  exports.KnownAuditLogStatus = void 0;
90
148
  (function (KnownAuditLogStatus) {
149
+ /** Enabled */
91
150
  KnownAuditLogStatus["Enabled"] = "Enabled";
151
+ /** Disabled */
92
152
  KnownAuditLogStatus["Disabled"] = "Disabled";
93
153
  })(exports.KnownAuditLogStatus || (exports.KnownAuditLogStatus = {}));
94
154
  /** Known values of {@link CreatedByType} that the service accepts. */
95
155
  exports.KnownCreatedByType = void 0;
96
156
  (function (KnownCreatedByType) {
157
+ /** User */
97
158
  KnownCreatedByType["User"] = "User";
159
+ /** Application */
98
160
  KnownCreatedByType["Application"] = "Application";
161
+ /** ManagedIdentity */
99
162
  KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
163
+ /** Key */
100
164
  KnownCreatedByType["Key"] = "Key";
101
165
  })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
102
166
  /** Known values of {@link LastModifiedByType} that the service accepts. */
103
167
  exports.KnownLastModifiedByType = void 0;
104
168
  (function (KnownLastModifiedByType) {
169
+ /** User */
105
170
  KnownLastModifiedByType["User"] = "User";
171
+ /** Application */
106
172
  KnownLastModifiedByType["Application"] = "Application";
173
+ /** ManagedIdentity */
107
174
  KnownLastModifiedByType["ManagedIdentity"] = "ManagedIdentity";
175
+ /** Key */
108
176
  KnownLastModifiedByType["Key"] = "Key";
109
177
  })(exports.KnownLastModifiedByType || (exports.KnownLastModifiedByType = {}));
110
178
  /** Known values of {@link PipelineOptions} that the service accepts. */
111
179
  exports.KnownPipelineOptions = void 0;
112
180
  (function (KnownPipelineOptions) {
181
+ /** OverwriteTags */
113
182
  KnownPipelineOptions["OverwriteTags"] = "OverwriteTags";
183
+ /** OverwriteBlobs */
114
184
  KnownPipelineOptions["OverwriteBlobs"] = "OverwriteBlobs";
185
+ /** DeleteSourceBlobOnSuccess */
115
186
  KnownPipelineOptions["DeleteSourceBlobOnSuccess"] = "DeleteSourceBlobOnSuccess";
187
+ /** ContinueOnErrors */
116
188
  KnownPipelineOptions["ContinueOnErrors"] = "ContinueOnErrors";
117
189
  })(exports.KnownPipelineOptions || (exports.KnownPipelineOptions = {}));
118
190
  /** Known values of {@link ImportMode} that the service accepts. */
119
191
  exports.KnownImportMode = void 0;
120
192
  (function (KnownImportMode) {
193
+ /** NoForce */
121
194
  KnownImportMode["NoForce"] = "NoForce";
195
+ /** Force */
122
196
  KnownImportMode["Force"] = "Force";
123
197
  })(exports.KnownImportMode || (exports.KnownImportMode = {}));
124
198
  /** Known values of {@link PipelineSourceType} that the service accepts. */
125
199
  exports.KnownPipelineSourceType = void 0;
126
200
  (function (KnownPipelineSourceType) {
201
+ /** AzureStorageBlobContainer */
127
202
  KnownPipelineSourceType["AzureStorageBlobContainer"] = "AzureStorageBlobContainer";
128
203
  })(exports.KnownPipelineSourceType || (exports.KnownPipelineSourceType = {}));
129
204
  /** Known values of {@link TriggerStatus} that the service accepts. */
130
205
  exports.KnownTriggerStatus = void 0;
131
206
  (function (KnownTriggerStatus) {
207
+ /** Disabled */
132
208
  KnownTriggerStatus["Disabled"] = "Disabled";
209
+ /** Enabled */
133
210
  KnownTriggerStatus["Enabled"] = "Enabled";
134
211
  })(exports.KnownTriggerStatus || (exports.KnownTriggerStatus = {}));
135
212
  /** Known values of {@link PipelineRunSourceType} that the service accepts. */
136
213
  exports.KnownPipelineRunSourceType = void 0;
137
214
  (function (KnownPipelineRunSourceType) {
215
+ /** AzureStorageBlob */
138
216
  KnownPipelineRunSourceType["AzureStorageBlob"] = "AzureStorageBlob";
139
217
  })(exports.KnownPipelineRunSourceType || (exports.KnownPipelineRunSourceType = {}));
140
218
  /** Known values of {@link PipelineRunTargetType} that the service accepts. */
141
219
  exports.KnownPipelineRunTargetType = void 0;
142
220
  (function (KnownPipelineRunTargetType) {
221
+ /** AzureStorageBlob */
143
222
  KnownPipelineRunTargetType["AzureStorageBlob"] = "AzureStorageBlob";
144
223
  })(exports.KnownPipelineRunTargetType || (exports.KnownPipelineRunTargetType = {}));
145
224
  /** Known values of {@link ConnectionStatus} that the service accepts. */
146
225
  exports.KnownConnectionStatus = void 0;
147
226
  (function (KnownConnectionStatus) {
227
+ /** Approved */
148
228
  KnownConnectionStatus["Approved"] = "Approved";
229
+ /** Pending */
149
230
  KnownConnectionStatus["Pending"] = "Pending";
231
+ /** Rejected */
150
232
  KnownConnectionStatus["Rejected"] = "Rejected";
233
+ /** Disconnected */
151
234
  KnownConnectionStatus["Disconnected"] = "Disconnected";
152
235
  })(exports.KnownConnectionStatus || (exports.KnownConnectionStatus = {}));
153
236
  /** Known values of {@link ActionsRequired} that the service accepts. */
154
237
  exports.KnownActionsRequired = void 0;
155
238
  (function (KnownActionsRequired) {
239
+ /** None */
156
240
  KnownActionsRequired["None"] = "None";
241
+ /** Recreate */
157
242
  KnownActionsRequired["Recreate"] = "Recreate";
158
243
  })(exports.KnownActionsRequired || (exports.KnownActionsRequired = {}));
159
244
  /** Known values of {@link SkuName} that the service accepts. */
160
245
  exports.KnownSkuName = void 0;
161
246
  (function (KnownSkuName) {
247
+ /** Classic */
162
248
  KnownSkuName["Classic"] = "Classic";
249
+ /** Basic */
163
250
  KnownSkuName["Basic"] = "Basic";
251
+ /** Standard */
164
252
  KnownSkuName["Standard"] = "Standard";
253
+ /** Premium */
165
254
  KnownSkuName["Premium"] = "Premium";
166
255
  })(exports.KnownSkuName || (exports.KnownSkuName = {}));
167
256
  /** Known values of {@link SkuTier} that the service accepts. */
168
257
  exports.KnownSkuTier = void 0;
169
258
  (function (KnownSkuTier) {
259
+ /** Classic */
170
260
  KnownSkuTier["Classic"] = "Classic";
261
+ /** Basic */
171
262
  KnownSkuTier["Basic"] = "Basic";
263
+ /** Standard */
172
264
  KnownSkuTier["Standard"] = "Standard";
265
+ /** Premium */
173
266
  KnownSkuTier["Premium"] = "Premium";
174
267
  })(exports.KnownSkuTier || (exports.KnownSkuTier = {}));
175
268
  /** Known values of {@link DefaultAction} that the service accepts. */
176
269
  exports.KnownDefaultAction = void 0;
177
270
  (function (KnownDefaultAction) {
271
+ /** Allow */
178
272
  KnownDefaultAction["Allow"] = "Allow";
273
+ /** Deny */
179
274
  KnownDefaultAction["Deny"] = "Deny";
180
275
  })(exports.KnownDefaultAction || (exports.KnownDefaultAction = {}));
181
276
  /** Known values of {@link Action} that the service accepts. */
182
277
  exports.KnownAction = void 0;
183
278
  (function (KnownAction) {
279
+ /** Allow */
184
280
  KnownAction["Allow"] = "Allow";
185
281
  })(exports.KnownAction || (exports.KnownAction = {}));
186
282
  /** Known values of {@link PolicyStatus} that the service accepts. */
187
283
  exports.KnownPolicyStatus = void 0;
188
284
  (function (KnownPolicyStatus) {
285
+ /** Enabled */
189
286
  KnownPolicyStatus["Enabled"] = "enabled";
287
+ /** Disabled */
190
288
  KnownPolicyStatus["Disabled"] = "disabled";
191
289
  })(exports.KnownPolicyStatus || (exports.KnownPolicyStatus = {}));
192
290
  /** Known values of {@link TrustPolicyType} that the service accepts. */
193
291
  exports.KnownTrustPolicyType = void 0;
194
292
  (function (KnownTrustPolicyType) {
293
+ /** Notary */
195
294
  KnownTrustPolicyType["Notary"] = "Notary";
196
295
  })(exports.KnownTrustPolicyType || (exports.KnownTrustPolicyType = {}));
197
296
  /** Known values of {@link ExportPolicyStatus} that the service accepts. */
198
297
  exports.KnownExportPolicyStatus = void 0;
199
298
  (function (KnownExportPolicyStatus) {
299
+ /** Enabled */
200
300
  KnownExportPolicyStatus["Enabled"] = "enabled";
301
+ /** Disabled */
201
302
  KnownExportPolicyStatus["Disabled"] = "disabled";
202
303
  })(exports.KnownExportPolicyStatus || (exports.KnownExportPolicyStatus = {}));
304
+ /** Known values of {@link AzureADAuthenticationAsArmPolicyStatus} that the service accepts. */
305
+ exports.KnownAzureADAuthenticationAsArmPolicyStatus = void 0;
306
+ (function (KnownAzureADAuthenticationAsArmPolicyStatus) {
307
+ /** Enabled */
308
+ KnownAzureADAuthenticationAsArmPolicyStatus["Enabled"] = "enabled";
309
+ /** Disabled */
310
+ KnownAzureADAuthenticationAsArmPolicyStatus["Disabled"] = "disabled";
311
+ })(exports.KnownAzureADAuthenticationAsArmPolicyStatus || (exports.KnownAzureADAuthenticationAsArmPolicyStatus = {}));
203
312
  /** Known values of {@link EncryptionStatus} that the service accepts. */
204
313
  exports.KnownEncryptionStatus = void 0;
205
314
  (function (KnownEncryptionStatus) {
315
+ /** Enabled */
206
316
  KnownEncryptionStatus["Enabled"] = "enabled";
317
+ /** Disabled */
207
318
  KnownEncryptionStatus["Disabled"] = "disabled";
208
319
  })(exports.KnownEncryptionStatus || (exports.KnownEncryptionStatus = {}));
209
320
  /** Known values of {@link PublicNetworkAccess} that the service accepts. */
210
321
  exports.KnownPublicNetworkAccess = void 0;
211
322
  (function (KnownPublicNetworkAccess) {
323
+ /** Enabled */
212
324
  KnownPublicNetworkAccess["Enabled"] = "Enabled";
325
+ /** Disabled */
213
326
  KnownPublicNetworkAccess["Disabled"] = "Disabled";
214
327
  })(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
215
328
  /** Known values of {@link NetworkRuleBypassOptions} that the service accepts. */
216
329
  exports.KnownNetworkRuleBypassOptions = void 0;
217
330
  (function (KnownNetworkRuleBypassOptions) {
331
+ /** AzureServices */
218
332
  KnownNetworkRuleBypassOptions["AzureServices"] = "AzureServices";
333
+ /** None */
219
334
  KnownNetworkRuleBypassOptions["None"] = "None";
220
335
  })(exports.KnownNetworkRuleBypassOptions || (exports.KnownNetworkRuleBypassOptions = {}));
221
336
  /** Known values of {@link ZoneRedundancy} that the service accepts. */
222
337
  exports.KnownZoneRedundancy = void 0;
223
338
  (function (KnownZoneRedundancy) {
339
+ /** Enabled */
224
340
  KnownZoneRedundancy["Enabled"] = "Enabled";
341
+ /** Disabled */
225
342
  KnownZoneRedundancy["Disabled"] = "Disabled";
226
343
  })(exports.KnownZoneRedundancy || (exports.KnownZoneRedundancy = {}));
227
344
  /** Known values of {@link RegistryUsageUnit} that the service accepts. */
228
345
  exports.KnownRegistryUsageUnit = void 0;
229
346
  (function (KnownRegistryUsageUnit) {
347
+ /** Count */
230
348
  KnownRegistryUsageUnit["Count"] = "Count";
349
+ /** Bytes */
231
350
  KnownRegistryUsageUnit["Bytes"] = "Bytes";
232
351
  })(exports.KnownRegistryUsageUnit || (exports.KnownRegistryUsageUnit = {}));
233
352
  /** Known values of {@link TokenCertificateName} that the service accepts. */
234
353
  exports.KnownTokenCertificateName = void 0;
235
354
  (function (KnownTokenCertificateName) {
355
+ /** Certificate1 */
236
356
  KnownTokenCertificateName["Certificate1"] = "certificate1";
357
+ /** Certificate2 */
237
358
  KnownTokenCertificateName["Certificate2"] = "certificate2";
238
359
  })(exports.KnownTokenCertificateName || (exports.KnownTokenCertificateName = {}));
239
360
  /** Known values of {@link TokenPasswordName} that the service accepts. */
240
361
  exports.KnownTokenPasswordName = void 0;
241
362
  (function (KnownTokenPasswordName) {
363
+ /** Password1 */
242
364
  KnownTokenPasswordName["Password1"] = "password1";
365
+ /** Password2 */
243
366
  KnownTokenPasswordName["Password2"] = "password2";
244
367
  })(exports.KnownTokenPasswordName || (exports.KnownTokenPasswordName = {}));
245
368
  /** Known values of {@link TokenStatus} that the service accepts. */
246
369
  exports.KnownTokenStatus = void 0;
247
370
  (function (KnownTokenStatus) {
371
+ /** Enabled */
248
372
  KnownTokenStatus["Enabled"] = "enabled";
373
+ /** Disabled */
249
374
  KnownTokenStatus["Disabled"] = "disabled";
250
375
  })(exports.KnownTokenStatus || (exports.KnownTokenStatus = {}));
251
376
  /** Known values of {@link WebhookStatus} that the service accepts. */
252
377
  exports.KnownWebhookStatus = void 0;
253
378
  (function (KnownWebhookStatus) {
379
+ /** Enabled */
254
380
  KnownWebhookStatus["Enabled"] = "enabled";
381
+ /** Disabled */
255
382
  KnownWebhookStatus["Disabled"] = "disabled";
256
383
  })(exports.KnownWebhookStatus || (exports.KnownWebhookStatus = {}));
257
384
  /** Known values of {@link WebhookAction} that the service accepts. */
258
385
  exports.KnownWebhookAction = void 0;
259
386
  (function (KnownWebhookAction) {
387
+ /** Push */
260
388
  KnownWebhookAction["Push"] = "push";
389
+ /** Delete */
261
390
  KnownWebhookAction["Delete"] = "delete";
391
+ /** Quarantine */
262
392
  KnownWebhookAction["Quarantine"] = "quarantine";
393
+ /** ChartPush */
263
394
  KnownWebhookAction["ChartPush"] = "chart_push";
395
+ /** ChartDelete */
264
396
  KnownWebhookAction["ChartDelete"] = "chart_delete";
265
397
  })(exports.KnownWebhookAction || (exports.KnownWebhookAction = {}));
266
398
  /** Known values of {@link OS} that the service accepts. */
267
399
  exports.KnownOS = void 0;
268
400
  (function (KnownOS) {
401
+ /** Windows */
269
402
  KnownOS["Windows"] = "Windows";
403
+ /** Linux */
270
404
  KnownOS["Linux"] = "Linux";
271
405
  })(exports.KnownOS || (exports.KnownOS = {}));
272
406
  /** Known values of {@link RunStatus} that the service accepts. */
273
407
  exports.KnownRunStatus = void 0;
274
408
  (function (KnownRunStatus) {
409
+ /** Queued */
275
410
  KnownRunStatus["Queued"] = "Queued";
411
+ /** Started */
276
412
  KnownRunStatus["Started"] = "Started";
413
+ /** Running */
277
414
  KnownRunStatus["Running"] = "Running";
415
+ /** Succeeded */
278
416
  KnownRunStatus["Succeeded"] = "Succeeded";
417
+ /** Failed */
279
418
  KnownRunStatus["Failed"] = "Failed";
419
+ /** Canceled */
280
420
  KnownRunStatus["Canceled"] = "Canceled";
421
+ /** Error */
281
422
  KnownRunStatus["Error"] = "Error";
423
+ /** Timeout */
282
424
  KnownRunStatus["Timeout"] = "Timeout";
283
425
  })(exports.KnownRunStatus || (exports.KnownRunStatus = {}));
284
426
  /** Known values of {@link RunType} that the service accepts. */
285
427
  exports.KnownRunType = void 0;
286
428
  (function (KnownRunType) {
429
+ /** QuickBuild */
287
430
  KnownRunType["QuickBuild"] = "QuickBuild";
431
+ /** QuickRun */
288
432
  KnownRunType["QuickRun"] = "QuickRun";
433
+ /** AutoBuild */
289
434
  KnownRunType["AutoBuild"] = "AutoBuild";
435
+ /** AutoRun */
290
436
  KnownRunType["AutoRun"] = "AutoRun";
291
437
  })(exports.KnownRunType || (exports.KnownRunType = {}));
292
438
  /** Known values of {@link Architecture} that the service accepts. */
293
439
  exports.KnownArchitecture = void 0;
294
440
  (function (KnownArchitecture) {
441
+ /** Amd64 */
295
442
  KnownArchitecture["Amd64"] = "amd64";
443
+ /** X86 */
296
444
  KnownArchitecture["X86"] = "x86";
445
+ /** ThreeHundredEightySix */
297
446
  KnownArchitecture["ThreeHundredEightySix"] = "386";
447
+ /** Arm */
298
448
  KnownArchitecture["Arm"] = "arm";
449
+ /** Arm64 */
299
450
  KnownArchitecture["Arm64"] = "arm64";
300
451
  })(exports.KnownArchitecture || (exports.KnownArchitecture = {}));
301
452
  /** Known values of {@link Variant} that the service accepts. */
302
453
  exports.KnownVariant = void 0;
303
454
  (function (KnownVariant) {
455
+ /** V6 */
304
456
  KnownVariant["V6"] = "v6";
457
+ /** V7 */
305
458
  KnownVariant["V7"] = "v7";
459
+ /** V8 */
306
460
  KnownVariant["V8"] = "v8";
307
461
  })(exports.KnownVariant || (exports.KnownVariant = {}));
308
462
  /** Known values of {@link TaskStatus} that the service accepts. */
309
463
  exports.KnownTaskStatus = void 0;
310
464
  (function (KnownTaskStatus) {
465
+ /** Disabled */
311
466
  KnownTaskStatus["Disabled"] = "Disabled";
467
+ /** Enabled */
312
468
  KnownTaskStatus["Enabled"] = "Enabled";
313
469
  })(exports.KnownTaskStatus || (exports.KnownTaskStatus = {}));
314
470
  /** Known values of {@link StepType} that the service accepts. */
315
471
  exports.KnownStepType = void 0;
316
472
  (function (KnownStepType) {
473
+ /** Docker */
317
474
  KnownStepType["Docker"] = "Docker";
475
+ /** FileTask */
318
476
  KnownStepType["FileTask"] = "FileTask";
477
+ /** EncodedTask */
319
478
  KnownStepType["EncodedTask"] = "EncodedTask";
320
479
  })(exports.KnownStepType || (exports.KnownStepType = {}));
321
480
  /** Known values of {@link BaseImageDependencyType} that the service accepts. */
322
481
  exports.KnownBaseImageDependencyType = void 0;
323
482
  (function (KnownBaseImageDependencyType) {
483
+ /** BuildTime */
324
484
  KnownBaseImageDependencyType["BuildTime"] = "BuildTime";
485
+ /** RunTime */
325
486
  KnownBaseImageDependencyType["RunTime"] = "RunTime";
326
487
  })(exports.KnownBaseImageDependencyType || (exports.KnownBaseImageDependencyType = {}));
327
488
  /** Known values of {@link SourceControlType} that the service accepts. */
328
489
  exports.KnownSourceControlType = void 0;
329
490
  (function (KnownSourceControlType) {
491
+ /** Github */
330
492
  KnownSourceControlType["Github"] = "Github";
493
+ /** VisualStudioTeamService */
331
494
  KnownSourceControlType["VisualStudioTeamService"] = "VisualStudioTeamService";
332
495
  })(exports.KnownSourceControlType || (exports.KnownSourceControlType = {}));
333
496
  /** Known values of {@link TokenType} that the service accepts. */
334
497
  exports.KnownTokenType = void 0;
335
498
  (function (KnownTokenType) {
499
+ /** PAT */
336
500
  KnownTokenType["PAT"] = "PAT";
501
+ /** OAuth */
337
502
  KnownTokenType["OAuth"] = "OAuth";
338
503
  })(exports.KnownTokenType || (exports.KnownTokenType = {}));
339
504
  /** Known values of {@link SourceTriggerEvent} that the service accepts. */
340
505
  exports.KnownSourceTriggerEvent = void 0;
341
506
  (function (KnownSourceTriggerEvent) {
507
+ /** Commit */
342
508
  KnownSourceTriggerEvent["Commit"] = "commit";
509
+ /** Pullrequest */
343
510
  KnownSourceTriggerEvent["Pullrequest"] = "pullrequest";
344
511
  })(exports.KnownSourceTriggerEvent || (exports.KnownSourceTriggerEvent = {}));
345
512
  /** Known values of {@link BaseImageTriggerType} that the service accepts. */
346
513
  exports.KnownBaseImageTriggerType = void 0;
347
514
  (function (KnownBaseImageTriggerType) {
515
+ /** All */
348
516
  KnownBaseImageTriggerType["All"] = "All";
517
+ /** Runtime */
349
518
  KnownBaseImageTriggerType["Runtime"] = "Runtime";
350
519
  })(exports.KnownBaseImageTriggerType || (exports.KnownBaseImageTriggerType = {}));
351
520
  /** Known values of {@link UpdateTriggerPayloadType} that the service accepts. */
352
521
  exports.KnownUpdateTriggerPayloadType = void 0;
353
522
  (function (KnownUpdateTriggerPayloadType) {
523
+ /** Default */
354
524
  KnownUpdateTriggerPayloadType["Default"] = "Default";
525
+ /** Token */
355
526
  KnownUpdateTriggerPayloadType["Token"] = "Token";
356
527
  })(exports.KnownUpdateTriggerPayloadType || (exports.KnownUpdateTriggerPayloadType = {}));
357
528
  /** Known values of {@link SourceRegistryLoginMode} that the service accepts. */
358
529
  exports.KnownSourceRegistryLoginMode = void 0;
359
530
  (function (KnownSourceRegistryLoginMode) {
531
+ /** None */
360
532
  KnownSourceRegistryLoginMode["None"] = "None";
533
+ /** Default */
361
534
  KnownSourceRegistryLoginMode["Default"] = "Default";
362
535
  })(exports.KnownSourceRegistryLoginMode || (exports.KnownSourceRegistryLoginMode = {}));
363
536
  /** Known values of {@link SecretObjectType} that the service accepts. */
364
537
  exports.KnownSecretObjectType = void 0;
365
538
  (function (KnownSecretObjectType) {
539
+ /** Opaque */
366
540
  KnownSecretObjectType["Opaque"] = "Opaque";
541
+ /** Vaultsecret */
367
542
  KnownSecretObjectType["Vaultsecret"] = "Vaultsecret";
368
543
  })(exports.KnownSecretObjectType || (exports.KnownSecretObjectType = {}));
369
544
 
@@ -1788,18 +1963,6 @@ const NetworkRuleSet = {
1788
1963
  name: "String"
1789
1964
  }
1790
1965
  },
1791
- virtualNetworkRules: {
1792
- serializedName: "virtualNetworkRules",
1793
- type: {
1794
- name: "Sequence",
1795
- element: {
1796
- type: {
1797
- name: "Composite",
1798
- className: "VirtualNetworkRule"
1799
- }
1800
- }
1801
- }
1802
- },
1803
1966
  ipRules: {
1804
1967
  serializedName: "ipRules",
1805
1968
  type: {
@@ -1815,33 +1978,13 @@ const NetworkRuleSet = {
1815
1978
  }
1816
1979
  }
1817
1980
  };
1818
- const VirtualNetworkRule = {
1819
- type: {
1820
- name: "Composite",
1821
- className: "VirtualNetworkRule",
1822
- modelProperties: {
1823
- action: {
1824
- serializedName: "action",
1825
- type: {
1826
- name: "String"
1827
- }
1828
- },
1829
- virtualNetworkResourceId: {
1830
- serializedName: "id",
1831
- required: true,
1832
- type: {
1833
- name: "String"
1834
- }
1835
- }
1836
- }
1837
- }
1838
- };
1839
1981
  const IPRule = {
1840
1982
  type: {
1841
1983
  name: "Composite",
1842
1984
  className: "IPRule",
1843
1985
  modelProperties: {
1844
1986
  action: {
1987
+ defaultValue: "Allow",
1845
1988
  serializedName: "action",
1846
1989
  type: {
1847
1990
  name: "String"
@@ -1889,6 +2032,20 @@ const Policies = {
1889
2032
  name: "Composite",
1890
2033
  className: "ExportPolicy"
1891
2034
  }
2035
+ },
2036
+ azureADAuthenticationAsArmPolicy: {
2037
+ serializedName: "azureADAuthenticationAsArmPolicy",
2038
+ type: {
2039
+ name: "Composite",
2040
+ className: "AzureADAuthenticationAsArmPolicy"
2041
+ }
2042
+ },
2043
+ softDeletePolicy: {
2044
+ serializedName: "softDeletePolicy",
2045
+ type: {
2046
+ name: "Composite",
2047
+ className: "SoftDeletePolicy"
2048
+ }
1892
2049
  }
1893
2050
  }
1894
2051
  }
@@ -1971,6 +2128,49 @@ const ExportPolicy = {
1971
2128
  }
1972
2129
  }
1973
2130
  };
2131
+ const AzureADAuthenticationAsArmPolicy = {
2132
+ type: {
2133
+ name: "Composite",
2134
+ className: "AzureADAuthenticationAsArmPolicy",
2135
+ modelProperties: {
2136
+ status: {
2137
+ defaultValue: "enabled",
2138
+ serializedName: "status",
2139
+ type: {
2140
+ name: "String"
2141
+ }
2142
+ }
2143
+ }
2144
+ }
2145
+ };
2146
+ const SoftDeletePolicy = {
2147
+ type: {
2148
+ name: "Composite",
2149
+ className: "SoftDeletePolicy",
2150
+ modelProperties: {
2151
+ retentionDays: {
2152
+ defaultValue: 7,
2153
+ serializedName: "retentionDays",
2154
+ type: {
2155
+ name: "Number"
2156
+ }
2157
+ },
2158
+ lastUpdatedTime: {
2159
+ serializedName: "lastUpdatedTime",
2160
+ readOnly: true,
2161
+ type: {
2162
+ name: "DateTime"
2163
+ }
2164
+ },
2165
+ status: {
2166
+ serializedName: "status",
2167
+ type: {
2168
+ name: "String"
2169
+ }
2170
+ }
2171
+ }
2172
+ }
2173
+ };
1974
2174
  const EncryptionProperty = {
1975
2175
  type: {
1976
2176
  name: "Composite",
@@ -4316,6 +4516,42 @@ const BaseImageTriggerUpdateParameters = {
4316
4516
  }
4317
4517
  }
4318
4518
  };
4519
+ const StorageAccountProperties = {
4520
+ type: {
4521
+ name: "Composite",
4522
+ className: "StorageAccountProperties",
4523
+ modelProperties: {
4524
+ id: {
4525
+ serializedName: "id",
4526
+ required: true,
4527
+ type: {
4528
+ name: "String"
4529
+ }
4530
+ }
4531
+ }
4532
+ }
4533
+ };
4534
+ const PackageType = {
4535
+ type: {
4536
+ name: "Composite",
4537
+ className: "PackageType",
4538
+ modelProperties: {
4539
+ name: {
4540
+ serializedName: "name",
4541
+ type: {
4542
+ name: "String"
4543
+ }
4544
+ },
4545
+ endpoint: {
4546
+ serializedName: "endpoint",
4547
+ readOnly: true,
4548
+ type: {
4549
+ name: "String"
4550
+ }
4551
+ }
4552
+ }
4553
+ }
4554
+ };
4319
4555
  const ActiveDirectoryObject = {
4320
4556
  type: {
4321
4557
  name: "Composite",
@@ -5852,13 +6088,14 @@ var Mappers = /*#__PURE__*/Object.freeze({
5852
6088
  Sku: Sku,
5853
6089
  Status: Status,
5854
6090
  NetworkRuleSet: NetworkRuleSet,
5855
- VirtualNetworkRule: VirtualNetworkRule,
5856
6091
  IPRule: IPRule,
5857
6092
  Policies: Policies,
5858
6093
  QuarantinePolicy: QuarantinePolicy,
5859
6094
  TrustPolicy: TrustPolicy,
5860
6095
  RetentionPolicy: RetentionPolicy,
5861
6096
  ExportPolicy: ExportPolicy,
6097
+ AzureADAuthenticationAsArmPolicy: AzureADAuthenticationAsArmPolicy,
6098
+ SoftDeletePolicy: SoftDeletePolicy,
5862
6099
  EncryptionProperty: EncryptionProperty,
5863
6100
  KeyVaultProperties: KeyVaultProperties,
5864
6101
  Resource: Resource,
@@ -5932,6 +6169,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
5932
6169
  SourceUpdateParameters: SourceUpdateParameters,
5933
6170
  AuthInfoUpdateParameters: AuthInfoUpdateParameters,
5934
6171
  BaseImageTriggerUpdateParameters: BaseImageTriggerUpdateParameters,
6172
+ StorageAccountProperties: StorageAccountProperties,
6173
+ PackageType: PackageType,
5935
6174
  ActiveDirectoryObject: ActiveDirectoryObject,
5936
6175
  RunFilter: RunFilter,
5937
6176
  Argument: Argument,
@@ -5997,7 +6236,7 @@ const $host = {
5997
6236
  const apiVersion = {
5998
6237
  parameterPath: "apiVersion",
5999
6238
  mapper: {
6000
- defaultValue: "2021-12-01-preview",
6239
+ defaultValue: "2022-02-01-preview",
6001
6240
  isConstant: true,
6002
6241
  serializedName: "api-version",
6003
6242
  type: {
@@ -6462,20 +6701,31 @@ class ConnectedRegistriesImpl {
6462
6701
  [Symbol.asyncIterator]() {
6463
6702
  return this;
6464
6703
  },
6465
- byPage: () => {
6466
- 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);
6467
6709
  }
6468
6710
  };
6469
6711
  }
6470
- listPagingPage(resourceGroupName, registryName, options) {
6712
+ listPagingPage(resourceGroupName, registryName, options, settings) {
6471
6713
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
6472
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
6473
- yield yield tslib.__await(result.value || []);
6474
- 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
+ }
6475
6723
  while (continuationToken) {
6476
6724
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
6477
6725
  continuationToken = result.nextLink;
6478
- yield yield tslib.__await(result.value || []);
6726
+ let page = result.value || [];
6727
+ setContinuationToken(page, continuationToken);
6728
+ yield yield tslib.__await(page);
6479
6729
  }
6480
6730
  });
6481
6731
  }
@@ -6967,20 +7217,31 @@ class ExportPipelinesImpl {
6967
7217
  [Symbol.asyncIterator]() {
6968
7218
  return this;
6969
7219
  },
6970
- byPage: () => {
6971
- 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);
6972
7225
  }
6973
7226
  };
6974
7227
  }
6975
- listPagingPage(resourceGroupName, registryName, options) {
7228
+ listPagingPage(resourceGroupName, registryName, options, settings) {
6976
7229
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
6977
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
6978
- yield yield tslib.__await(result.value || []);
6979
- 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
+ }
6980
7239
  while (continuationToken) {
6981
7240
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
6982
7241
  continuationToken = result.nextLink;
6983
- yield yield tslib.__await(result.value || []);
7242
+ let page = result.value || [];
7243
+ setContinuationToken(page, continuationToken);
7244
+ yield yield tslib.__await(page);
6984
7245
  }
6985
7246
  });
6986
7247
  }
@@ -7300,20 +7561,31 @@ class RegistriesImpl {
7300
7561
  [Symbol.asyncIterator]() {
7301
7562
  return this;
7302
7563
  },
7303
- byPage: () => {
7304
- 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);
7305
7569
  }
7306
7570
  };
7307
7571
  }
7308
- listPagingPage(options) {
7572
+ listPagingPage(options, settings) {
7309
7573
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
7310
- let result = yield tslib.__await(this._list(options));
7311
- yield yield tslib.__await(result.value || []);
7312
- 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
+ }
7313
7583
  while (continuationToken) {
7314
7584
  result = yield tslib.__await(this._listNext(continuationToken, options));
7315
7585
  continuationToken = result.nextLink;
7316
- yield yield tslib.__await(result.value || []);
7586
+ let page = result.value || [];
7587
+ setContinuationToken(page, continuationToken);
7588
+ yield yield tslib.__await(page);
7317
7589
  }
7318
7590
  });
7319
7591
  }
@@ -7349,20 +7621,31 @@ class RegistriesImpl {
7349
7621
  [Symbol.asyncIterator]() {
7350
7622
  return this;
7351
7623
  },
7352
- byPage: () => {
7353
- 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);
7354
7629
  }
7355
7630
  };
7356
7631
  }
7357
- listByResourceGroupPagingPage(resourceGroupName, options) {
7632
+ listByResourceGroupPagingPage(resourceGroupName, options, settings) {
7358
7633
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
7359
- let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
7360
- yield yield tslib.__await(result.value || []);
7361
- 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
+ }
7362
7643
  while (continuationToken) {
7363
7644
  result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
7364
7645
  continuationToken = result.nextLink;
7365
- yield yield tslib.__await(result.value || []);
7646
+ let page = result.value || [];
7647
+ setContinuationToken(page, continuationToken);
7648
+ yield yield tslib.__await(page);
7366
7649
  }
7367
7650
  });
7368
7651
  }
@@ -7399,20 +7682,31 @@ class RegistriesImpl {
7399
7682
  [Symbol.asyncIterator]() {
7400
7683
  return this;
7401
7684
  },
7402
- byPage: () => {
7403
- 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);
7404
7690
  }
7405
7691
  };
7406
7692
  }
7407
- listPrivateLinkResourcesPagingPage(resourceGroupName, registryName, options) {
7693
+ listPrivateLinkResourcesPagingPage(resourceGroupName, registryName, options, settings) {
7408
7694
  return tslib.__asyncGenerator(this, arguments, function* listPrivateLinkResourcesPagingPage_1() {
7409
- let result = yield tslib.__await(this._listPrivateLinkResources(resourceGroupName, registryName, options));
7410
- yield yield tslib.__await(result.value || []);
7411
- 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
+ }
7412
7704
  while (continuationToken) {
7413
7705
  result = yield tslib.__await(this._listPrivateLinkResourcesNext(resourceGroupName, registryName, continuationToken, options));
7414
7706
  continuationToken = result.nextLink;
7415
- yield yield tslib.__await(result.value || []);
7707
+ let page = result.value || [];
7708
+ setContinuationToken(page, continuationToken);
7709
+ yield yield tslib.__await(page);
7416
7710
  }
7417
7711
  });
7418
7712
  }
@@ -8299,20 +8593,31 @@ class ImportPipelinesImpl {
8299
8593
  [Symbol.asyncIterator]() {
8300
8594
  return this;
8301
8595
  },
8302
- byPage: () => {
8303
- 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);
8304
8601
  }
8305
8602
  };
8306
8603
  }
8307
- listPagingPage(resourceGroupName, registryName, options) {
8604
+ listPagingPage(resourceGroupName, registryName, options, settings) {
8308
8605
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
8309
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
8310
- yield yield tslib.__await(result.value || []);
8311
- 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
+ }
8312
8615
  while (continuationToken) {
8313
8616
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
8314
8617
  continuationToken = result.nextLink;
8315
- yield yield tslib.__await(result.value || []);
8618
+ let page = result.value || [];
8619
+ setContinuationToken(page, continuationToken);
8620
+ yield yield tslib.__await(page);
8316
8621
  }
8317
8622
  });
8318
8623
  }
@@ -8632,20 +8937,31 @@ class OperationsImpl {
8632
8937
  [Symbol.asyncIterator]() {
8633
8938
  return this;
8634
8939
  },
8635
- byPage: () => {
8636
- 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);
8637
8945
  }
8638
8946
  };
8639
8947
  }
8640
- listPagingPage(options) {
8948
+ listPagingPage(options, settings) {
8641
8949
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
8642
- let result = yield tslib.__await(this._list(options));
8643
- yield yield tslib.__await(result.value || []);
8644
- 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
+ }
8645
8959
  while (continuationToken) {
8646
8960
  result = yield tslib.__await(this._listNext(continuationToken, options));
8647
8961
  continuationToken = result.nextLink;
8648
- yield yield tslib.__await(result.value || []);
8962
+ let page = result.value || [];
8963
+ setContinuationToken(page, continuationToken);
8964
+ yield yield tslib.__await(page);
8649
8965
  }
8650
8966
  });
8651
8967
  }
@@ -8744,20 +9060,31 @@ class PipelineRunsImpl {
8744
9060
  [Symbol.asyncIterator]() {
8745
9061
  return this;
8746
9062
  },
8747
- byPage: () => {
8748
- 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);
8749
9068
  }
8750
9069
  };
8751
9070
  }
8752
- listPagingPage(resourceGroupName, registryName, options) {
9071
+ listPagingPage(resourceGroupName, registryName, options, settings) {
8753
9072
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
8754
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
8755
- yield yield tslib.__await(result.value || []);
8756
- 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
+ }
8757
9082
  while (continuationToken) {
8758
9083
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
8759
9084
  continuationToken = result.nextLink;
8760
- yield yield tslib.__await(result.value || []);
9085
+ let page = result.value || [];
9086
+ setContinuationToken(page, continuationToken);
9087
+ yield yield tslib.__await(page);
8761
9088
  }
8762
9089
  });
8763
9090
  }
@@ -9079,20 +9406,31 @@ class PrivateEndpointConnectionsImpl {
9079
9406
  [Symbol.asyncIterator]() {
9080
9407
  return this;
9081
9408
  },
9082
- byPage: () => {
9083
- 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);
9084
9414
  }
9085
9415
  };
9086
9416
  }
9087
- listPagingPage(resourceGroupName, registryName, options) {
9417
+ listPagingPage(resourceGroupName, registryName, options, settings) {
9088
9418
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
9089
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
9090
- yield yield tslib.__await(result.value || []);
9091
- 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
+ }
9092
9428
  while (continuationToken) {
9093
9429
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
9094
9430
  continuationToken = result.nextLink;
9095
- yield yield tslib.__await(result.value || []);
9431
+ let page = result.value || [];
9432
+ setContinuationToken(page, continuationToken);
9433
+ yield yield tslib.__await(page);
9096
9434
  }
9097
9435
  });
9098
9436
  }
@@ -9403,20 +9741,31 @@ class ReplicationsImpl {
9403
9741
  [Symbol.asyncIterator]() {
9404
9742
  return this;
9405
9743
  },
9406
- byPage: () => {
9407
- 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);
9408
9749
  }
9409
9750
  };
9410
9751
  }
9411
- listPagingPage(resourceGroupName, registryName, options) {
9752
+ listPagingPage(resourceGroupName, registryName, options, settings) {
9412
9753
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
9413
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
9414
- yield yield tslib.__await(result.value || []);
9415
- 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
+ }
9416
9763
  while (continuationToken) {
9417
9764
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
9418
9765
  continuationToken = result.nextLink;
9419
- yield yield tslib.__await(result.value || []);
9766
+ let page = result.value || [];
9767
+ setContinuationToken(page, continuationToken);
9768
+ yield yield tslib.__await(page);
9420
9769
  }
9421
9770
  });
9422
9771
  }
@@ -9808,20 +10157,31 @@ class ScopeMapsImpl {
9808
10157
  [Symbol.asyncIterator]() {
9809
10158
  return this;
9810
10159
  },
9811
- byPage: () => {
9812
- 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);
9813
10165
  }
9814
10166
  };
9815
10167
  }
9816
- listPagingPage(resourceGroupName, registryName, options) {
10168
+ listPagingPage(resourceGroupName, registryName, options, settings) {
9817
10169
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
9818
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
9819
- yield yield tslib.__await(result.value || []);
9820
- 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
+ }
9821
10179
  while (continuationToken) {
9822
10180
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
9823
10181
  continuationToken = result.nextLink;
9824
- yield yield tslib.__await(result.value || []);
10182
+ let page = result.value || [];
10183
+ setContinuationToken(page, continuationToken);
10184
+ yield yield tslib.__await(page);
9825
10185
  }
9826
10186
  });
9827
10187
  }
@@ -10237,20 +10597,31 @@ class TokensImpl {
10237
10597
  [Symbol.asyncIterator]() {
10238
10598
  return this;
10239
10599
  },
10240
- byPage: () => {
10241
- 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);
10242
10605
  }
10243
10606
  };
10244
10607
  }
10245
- listPagingPage(resourceGroupName, registryName, options) {
10608
+ listPagingPage(resourceGroupName, registryName, options, settings) {
10246
10609
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
10247
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
10248
- yield yield tslib.__await(result.value || []);
10249
- 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
+ }
10250
10619
  while (continuationToken) {
10251
10620
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
10252
10621
  continuationToken = result.nextLink;
10253
- yield yield tslib.__await(result.value || []);
10622
+ let page = result.value || [];
10623
+ setContinuationToken(page, continuationToken);
10624
+ yield yield tslib.__await(page);
10254
10625
  }
10255
10626
  });
10256
10627
  }
@@ -10666,20 +11037,31 @@ class WebhooksImpl {
10666
11037
  [Symbol.asyncIterator]() {
10667
11038
  return this;
10668
11039
  },
10669
- byPage: () => {
10670
- 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);
10671
11045
  }
10672
11046
  };
10673
11047
  }
10674
- listPagingPage(resourceGroupName, registryName, options) {
11048
+ listPagingPage(resourceGroupName, registryName, options, settings) {
10675
11049
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
10676
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
10677
- yield yield tslib.__await(result.value || []);
10678
- 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
+ }
10679
11059
  while (continuationToken) {
10680
11060
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
10681
11061
  continuationToken = result.nextLink;
10682
- yield yield tslib.__await(result.value || []);
11062
+ let page = result.value || [];
11063
+ setContinuationToken(page, continuationToken);
11064
+ yield yield tslib.__await(page);
10683
11065
  }
10684
11066
  });
10685
11067
  }
@@ -10717,20 +11099,31 @@ class WebhooksImpl {
10717
11099
  [Symbol.asyncIterator]() {
10718
11100
  return this;
10719
11101
  },
10720
- byPage: () => {
10721
- 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);
10722
11107
  }
10723
11108
  };
10724
11109
  }
10725
- listEventsPagingPage(resourceGroupName, registryName, webhookName, options) {
11110
+ listEventsPagingPage(resourceGroupName, registryName, webhookName, options, settings) {
10726
11111
  return tslib.__asyncGenerator(this, arguments, function* listEventsPagingPage_1() {
10727
- let result = yield tslib.__await(this._listEvents(resourceGroupName, registryName, webhookName, options));
10728
- yield yield tslib.__await(result.value || []);
10729
- 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
+ }
10730
11121
  while (continuationToken) {
10731
11122
  result = yield tslib.__await(this._listEventsNext(resourceGroupName, registryName, webhookName, continuationToken, options));
10732
11123
  continuationToken = result.nextLink;
10733
- yield yield tslib.__await(result.value || []);
11124
+ let page = result.value || [];
11125
+ setContinuationToken(page, continuationToken);
11126
+ yield yield tslib.__await(page);
10734
11127
  }
10735
11128
  });
10736
11129
  }
@@ -11240,20 +11633,31 @@ class AgentPoolsImpl {
11240
11633
  [Symbol.asyncIterator]() {
11241
11634
  return this;
11242
11635
  },
11243
- byPage: () => {
11244
- 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);
11245
11641
  }
11246
11642
  };
11247
11643
  }
11248
- listPagingPage(resourceGroupName, registryName, options) {
11644
+ listPagingPage(resourceGroupName, registryName, options, settings) {
11249
11645
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
11250
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
11251
- yield yield tslib.__await(result.value || []);
11252
- 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
+ }
11253
11655
  while (continuationToken) {
11254
11656
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
11255
11657
  continuationToken = result.nextLink;
11256
- yield yield tslib.__await(result.value || []);
11658
+ let page = result.value || [];
11659
+ setContinuationToken(page, continuationToken);
11660
+ yield yield tslib.__await(page);
11257
11661
  }
11258
11662
  });
11259
11663
  }
@@ -11695,20 +12099,31 @@ class RunsImpl {
11695
12099
  [Symbol.asyncIterator]() {
11696
12100
  return this;
11697
12101
  },
11698
- byPage: () => {
11699
- 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);
11700
12107
  }
11701
12108
  };
11702
12109
  }
11703
- listPagingPage(resourceGroupName, registryName, options) {
12110
+ listPagingPage(resourceGroupName, registryName, options, settings) {
11704
12111
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
11705
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
11706
- yield yield tslib.__await(result.value || []);
11707
- 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
+ }
11708
12121
  while (continuationToken) {
11709
12122
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
11710
12123
  continuationToken = result.nextLink;
11711
- yield yield tslib.__await(result.value || []);
12124
+ let page = result.value || [];
12125
+ setContinuationToken(page, continuationToken);
12126
+ yield yield tslib.__await(page);
11712
12127
  }
11713
12128
  });
11714
12129
  }
@@ -12056,20 +12471,31 @@ class TaskRunsImpl {
12056
12471
  [Symbol.asyncIterator]() {
12057
12472
  return this;
12058
12473
  },
12059
- byPage: () => {
12060
- 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);
12061
12479
  }
12062
12480
  };
12063
12481
  }
12064
- listPagingPage(resourceGroupName, registryName, options) {
12482
+ listPagingPage(resourceGroupName, registryName, options, settings) {
12065
12483
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
12066
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
12067
- yield yield tslib.__await(result.value || []);
12068
- 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
+ }
12069
12493
  while (continuationToken) {
12070
12494
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
12071
12495
  continuationToken = result.nextLink;
12072
- yield yield tslib.__await(result.value || []);
12496
+ let page = result.value || [];
12497
+ setContinuationToken(page, continuationToken);
12498
+ yield yield tslib.__await(page);
12073
12499
  }
12074
12500
  });
12075
12501
  }
@@ -12511,20 +12937,31 @@ class TasksImpl {
12511
12937
  [Symbol.asyncIterator]() {
12512
12938
  return this;
12513
12939
  },
12514
- byPage: () => {
12515
- 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);
12516
12945
  }
12517
12946
  };
12518
12947
  }
12519
- listPagingPage(resourceGroupName, registryName, options) {
12948
+ listPagingPage(resourceGroupName, registryName, options, settings) {
12520
12949
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
12521
- let result = yield tslib.__await(this._list(resourceGroupName, registryName, options));
12522
- yield yield tslib.__await(result.value || []);
12523
- 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
+ }
12524
12959
  while (continuationToken) {
12525
12960
  result = yield tslib.__await(this._listNext(resourceGroupName, registryName, continuationToken, options));
12526
12961
  continuationToken = result.nextLink;
12527
- yield yield tslib.__await(result.value || []);
12962
+ let page = result.value || [];
12963
+ setContinuationToken(page, continuationToken);
12964
+ yield yield tslib.__await(page);
12528
12965
  }
12529
12966
  });
12530
12967
  }
@@ -12955,7 +13392,7 @@ class ContainerRegistryManagementClient extends coreClient__namespace.ServiceCli
12955
13392
  * @param options The parameter options
12956
13393
  */
12957
13394
  constructor(credentials, subscriptionId, options) {
12958
- var _a, _b;
13395
+ var _a, _b, _c;
12959
13396
  if (credentials === undefined) {
12960
13397
  throw new Error("'credentials' cannot be null");
12961
13398
  }
@@ -12970,17 +13407,35 @@ class ContainerRegistryManagementClient extends coreClient__namespace.ServiceCli
12970
13407
  requestContentType: "application/json; charset=utf-8",
12971
13408
  credential: credentials
12972
13409
  };
12973
- const packageDetails = `azsdk-js-arm-containerregistry/10.1.0-beta.2`;
13410
+ const packageDetails = `azsdk-js-arm-containerregistry/10.1.0-beta.4`;
12974
13411
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
12975
13412
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
12976
13413
  : `${packageDetails}`;
12977
- if (!options.credentialScopes) {
12978
- options.credentialScopes = ["https://management.azure.com/.default"];
12979
- }
12980
13414
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
12981
13415
  userAgentPrefix
12982
- }, 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" });
12983
13417
  super(optionsWithDefaults);
13418
+ let bearerTokenAuthenticationPolicyFound = false;
13419
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
13420
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
13421
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
13422
+ coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
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
+ }));
13438
+ }
12984
13439
  // Parameter assignments
12985
13440
  this.subscriptionId = subscriptionId;
12986
13441
  // Assigning values to Constant parameters
@@ -13004,4 +13459,5 @@ class ContainerRegistryManagementClient extends coreClient__namespace.ServiceCli
13004
13459
  }
13005
13460
 
13006
13461
  exports.ContainerRegistryManagementClient = ContainerRegistryManagementClient;
13462
+ exports.getContinuationToken = getContinuationToken;
13007
13463
  //# sourceMappingURL=index.js.map