@azure/arm-mysql 5.0.2-alpha.20221128.1 → 5.1.0-alpha.20221205.3

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 (109) hide show
  1. package/CHANGELOG.md +28 -10
  2. package/dist/index.js +378 -135
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/src/index.d.ts +1 -0
  7. package/dist-esm/src/index.d.ts.map +1 -1
  8. package/dist-esm/src/index.js +1 -0
  9. package/dist-esm/src/index.js.map +1 -1
  10. package/dist-esm/src/models/index.d.ts +93 -45
  11. package/dist-esm/src/models/index.d.ts.map +1 -1
  12. package/dist-esm/src/models/index.js +47 -0
  13. package/dist-esm/src/models/index.js.map +1 -1
  14. package/dist-esm/src/mySQLManagementClient.d.ts.map +1 -1
  15. package/dist-esm/src/mySQLManagementClient.js +20 -18
  16. package/dist-esm/src/mySQLManagementClient.js.map +1 -1
  17. package/dist-esm/src/operations/advisors.d.ts.map +1 -1
  18. package/dist-esm/src/operations/advisors.js +19 -7
  19. package/dist-esm/src/operations/advisors.js.map +1 -1
  20. package/dist-esm/src/operations/configurations.d.ts.map +1 -1
  21. package/dist-esm/src/operations/configurations.js +8 -4
  22. package/dist-esm/src/operations/configurations.js.map +1 -1
  23. package/dist-esm/src/operations/databases.d.ts.map +1 -1
  24. package/dist-esm/src/operations/databases.js +8 -4
  25. package/dist-esm/src/operations/databases.js.map +1 -1
  26. package/dist-esm/src/operations/firewallRules.d.ts.map +1 -1
  27. package/dist-esm/src/operations/firewallRules.js +8 -4
  28. package/dist-esm/src/operations/firewallRules.js.map +1 -1
  29. package/dist-esm/src/operations/locationBasedPerformanceTier.d.ts.map +1 -1
  30. package/dist-esm/src/operations/locationBasedPerformanceTier.js +8 -4
  31. package/dist-esm/src/operations/locationBasedPerformanceTier.js.map +1 -1
  32. package/dist-esm/src/operations/locationBasedRecommendedActionSessionsResult.d.ts.map +1 -1
  33. package/dist-esm/src/operations/locationBasedRecommendedActionSessionsResult.js +19 -7
  34. package/dist-esm/src/operations/locationBasedRecommendedActionSessionsResult.js.map +1 -1
  35. package/dist-esm/src/operations/logFiles.d.ts.map +1 -1
  36. package/dist-esm/src/operations/logFiles.js +8 -4
  37. package/dist-esm/src/operations/logFiles.js.map +1 -1
  38. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  39. package/dist-esm/src/operations/privateEndpointConnections.js +19 -7
  40. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  41. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -1
  42. package/dist-esm/src/operations/privateLinkResources.js +19 -7
  43. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  44. package/dist-esm/src/operations/queryTexts.d.ts.map +1 -1
  45. package/dist-esm/src/operations/queryTexts.js +19 -7
  46. package/dist-esm/src/operations/queryTexts.js.map +1 -1
  47. package/dist-esm/src/operations/recommendedActions.d.ts.map +1 -1
  48. package/dist-esm/src/operations/recommendedActions.js +19 -7
  49. package/dist-esm/src/operations/recommendedActions.js.map +1 -1
  50. package/dist-esm/src/operations/replicas.d.ts.map +1 -1
  51. package/dist-esm/src/operations/replicas.js +8 -4
  52. package/dist-esm/src/operations/replicas.js.map +1 -1
  53. package/dist-esm/src/operations/serverAdministrators.d.ts.map +1 -1
  54. package/dist-esm/src/operations/serverAdministrators.js +8 -4
  55. package/dist-esm/src/operations/serverAdministrators.js.map +1 -1
  56. package/dist-esm/src/operations/serverBasedPerformanceTier.d.ts.map +1 -1
  57. package/dist-esm/src/operations/serverBasedPerformanceTier.js +8 -4
  58. package/dist-esm/src/operations/serverBasedPerformanceTier.js.map +1 -1
  59. package/dist-esm/src/operations/serverKeys.d.ts.map +1 -1
  60. package/dist-esm/src/operations/serverKeys.js +19 -7
  61. package/dist-esm/src/operations/serverKeys.js.map +1 -1
  62. package/dist-esm/src/operations/serverSecurityAlertPolicies.d.ts.map +1 -1
  63. package/dist-esm/src/operations/serverSecurityAlertPolicies.js +19 -7
  64. package/dist-esm/src/operations/serverSecurityAlertPolicies.js.map +1 -1
  65. package/dist-esm/src/operations/servers.d.ts.map +1 -1
  66. package/dist-esm/src/operations/servers.js +16 -8
  67. package/dist-esm/src/operations/servers.js.map +1 -1
  68. package/dist-esm/src/operations/topQueryStatistics.d.ts.map +1 -1
  69. package/dist-esm/src/operations/topQueryStatistics.js +19 -7
  70. package/dist-esm/src/operations/topQueryStatistics.js.map +1 -1
  71. package/dist-esm/src/operations/virtualNetworkRules.d.ts.map +1 -1
  72. package/dist-esm/src/operations/virtualNetworkRules.js +19 -7
  73. package/dist-esm/src/operations/virtualNetworkRules.js.map +1 -1
  74. package/dist-esm/src/operations/waitStatistics.d.ts.map +1 -1
  75. package/dist-esm/src/operations/waitStatistics.js +19 -7
  76. package/dist-esm/src/operations/waitStatistics.js.map +1 -1
  77. package/dist-esm/src/pagingHelper.d.ts +13 -0
  78. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  79. package/dist-esm/src/pagingHelper.js +32 -0
  80. package/dist-esm/src/pagingHelper.js.map +1 -0
  81. package/dist-esm/test/sampleTest.js +11 -13
  82. package/dist-esm/test/sampleTest.js.map +1 -1
  83. package/package.json +12 -8
  84. package/review/arm-mysql.api.md +92 -135
  85. package/src/index.ts +1 -0
  86. package/src/models/index.ts +94 -45
  87. package/src/mySQLManagementClient.ts +26 -20
  88. package/src/operations/advisors.ts +23 -13
  89. package/src/operations/configurations.ts +13 -11
  90. package/src/operations/databases.ts +13 -11
  91. package/src/operations/firewallRules.ts +13 -11
  92. package/src/operations/locationBasedPerformanceTier.ts +10 -5
  93. package/src/operations/locationBasedRecommendedActionSessionsResult.ts +26 -8
  94. package/src/operations/logFiles.ts +11 -9
  95. package/src/operations/privateEndpointConnections.ts +23 -13
  96. package/src/operations/privateLinkResources.ts +22 -12
  97. package/src/operations/queryTexts.ts +28 -14
  98. package/src/operations/recommendedActions.ts +28 -14
  99. package/src/operations/replicas.ts +11 -9
  100. package/src/operations/serverAdministrators.ts +17 -7
  101. package/src/operations/serverBasedPerformanceTier.ts +15 -5
  102. package/src/operations/serverKeys.ts +26 -8
  103. package/src/operations/serverSecurityAlertPolicies.ts +23 -13
  104. package/src/operations/servers.ts +25 -11
  105. package/src/operations/topQueryStatistics.ts +28 -14
  106. package/src/operations/virtualNetworkRules.ts +23 -13
  107. package/src/operations/waitStatistics.ts +28 -14
  108. package/src/pagingHelper.ts +39 -0
  109. package/types/arm-mysql.d.ts +102 -45
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,28 +70,39 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
38
70
  /** Known values of {@link IdentityType} that the service accepts. */
39
71
  exports.KnownIdentityType = void 0;
40
72
  (function (KnownIdentityType) {
73
+ /** SystemAssigned */
41
74
  KnownIdentityType["SystemAssigned"] = "SystemAssigned";
42
75
  })(exports.KnownIdentityType || (exports.KnownIdentityType = {}));
43
76
  /** Known values of {@link SkuTier} that the service accepts. */
44
77
  exports.KnownSkuTier = void 0;
45
78
  (function (KnownSkuTier) {
79
+ /** Basic */
46
80
  KnownSkuTier["Basic"] = "Basic";
81
+ /** GeneralPurpose */
47
82
  KnownSkuTier["GeneralPurpose"] = "GeneralPurpose";
83
+ /** MemoryOptimized */
48
84
  KnownSkuTier["MemoryOptimized"] = "MemoryOptimized";
49
85
  })(exports.KnownSkuTier || (exports.KnownSkuTier = {}));
50
86
  /** Known values of {@link ServerVersion} that the service accepts. */
51
87
  exports.KnownServerVersion = void 0;
52
88
  (function (KnownServerVersion) {
89
+ /** Five6 */
53
90
  KnownServerVersion["Five6"] = "5.6";
91
+ /** Five7 */
54
92
  KnownServerVersion["Five7"] = "5.7";
93
+ /** Eight0 */
55
94
  KnownServerVersion["Eight0"] = "8.0";
56
95
  })(exports.KnownServerVersion || (exports.KnownServerVersion = {}));
57
96
  /** Known values of {@link MinimalTlsVersionEnum} that the service accepts. */
58
97
  exports.KnownMinimalTlsVersionEnum = void 0;
59
98
  (function (KnownMinimalTlsVersionEnum) {
99
+ /** TLS10 */
60
100
  KnownMinimalTlsVersionEnum["TLS10"] = "TLS1_0";
101
+ /** TLS11 */
61
102
  KnownMinimalTlsVersionEnum["TLS11"] = "TLS1_1";
103
+ /** TLS12 */
62
104
  KnownMinimalTlsVersionEnum["TLS12"] = "TLS1_2";
105
+ /** TLSEnforcementDisabled */
63
106
  KnownMinimalTlsVersionEnum["TLSEnforcementDisabled"] = "TLSEnforcementDisabled";
64
107
  })(exports.KnownMinimalTlsVersionEnum || (exports.KnownMinimalTlsVersionEnum = {}));
65
108
  /** Known values of {@link InfrastructureEncryption} that the service accepts. */
@@ -73,89 +116,125 @@ exports.KnownInfrastructureEncryption = void 0;
73
116
  /** Known values of {@link PublicNetworkAccessEnum} that the service accepts. */
74
117
  exports.KnownPublicNetworkAccessEnum = void 0;
75
118
  (function (KnownPublicNetworkAccessEnum) {
119
+ /** Enabled */
76
120
  KnownPublicNetworkAccessEnum["Enabled"] = "Enabled";
121
+ /** Disabled */
77
122
  KnownPublicNetworkAccessEnum["Disabled"] = "Disabled";
78
123
  })(exports.KnownPublicNetworkAccessEnum || (exports.KnownPublicNetworkAccessEnum = {}));
79
124
  /** Known values of {@link GeoRedundantBackup} that the service accepts. */
80
125
  exports.KnownGeoRedundantBackup = void 0;
81
126
  (function (KnownGeoRedundantBackup) {
127
+ /** Enabled */
82
128
  KnownGeoRedundantBackup["Enabled"] = "Enabled";
129
+ /** Disabled */
83
130
  KnownGeoRedundantBackup["Disabled"] = "Disabled";
84
131
  })(exports.KnownGeoRedundantBackup || (exports.KnownGeoRedundantBackup = {}));
85
132
  /** Known values of {@link StorageAutogrow} that the service accepts. */
86
133
  exports.KnownStorageAutogrow = void 0;
87
134
  (function (KnownStorageAutogrow) {
135
+ /** Enabled */
88
136
  KnownStorageAutogrow["Enabled"] = "Enabled";
137
+ /** Disabled */
89
138
  KnownStorageAutogrow["Disabled"] = "Disabled";
90
139
  })(exports.KnownStorageAutogrow || (exports.KnownStorageAutogrow = {}));
91
140
  /** Known values of {@link CreateMode} that the service accepts. */
92
141
  exports.KnownCreateMode = void 0;
93
142
  (function (KnownCreateMode) {
143
+ /** Default */
94
144
  KnownCreateMode["Default"] = "Default";
145
+ /** PointInTimeRestore */
95
146
  KnownCreateMode["PointInTimeRestore"] = "PointInTimeRestore";
147
+ /** GeoRestore */
96
148
  KnownCreateMode["GeoRestore"] = "GeoRestore";
149
+ /** Replica */
97
150
  KnownCreateMode["Replica"] = "Replica";
98
151
  })(exports.KnownCreateMode || (exports.KnownCreateMode = {}));
99
152
  /** Known values of {@link ServerState} that the service accepts. */
100
153
  exports.KnownServerState = void 0;
101
154
  (function (KnownServerState) {
155
+ /** Ready */
102
156
  KnownServerState["Ready"] = "Ready";
157
+ /** Dropping */
103
158
  KnownServerState["Dropping"] = "Dropping";
159
+ /** Disabled */
104
160
  KnownServerState["Disabled"] = "Disabled";
161
+ /** Inaccessible */
105
162
  KnownServerState["Inaccessible"] = "Inaccessible";
106
163
  })(exports.KnownServerState || (exports.KnownServerState = {}));
107
164
  /** Known values of {@link PrivateLinkServiceConnectionStateStatus} that the service accepts. */
108
165
  exports.KnownPrivateLinkServiceConnectionStateStatus = void 0;
109
166
  (function (KnownPrivateLinkServiceConnectionStateStatus) {
167
+ /** Approved */
110
168
  KnownPrivateLinkServiceConnectionStateStatus["Approved"] = "Approved";
169
+ /** Pending */
111
170
  KnownPrivateLinkServiceConnectionStateStatus["Pending"] = "Pending";
171
+ /** Rejected */
112
172
  KnownPrivateLinkServiceConnectionStateStatus["Rejected"] = "Rejected";
173
+ /** Disconnected */
113
174
  KnownPrivateLinkServiceConnectionStateStatus["Disconnected"] = "Disconnected";
114
175
  })(exports.KnownPrivateLinkServiceConnectionStateStatus || (exports.KnownPrivateLinkServiceConnectionStateStatus = {}));
115
176
  /** Known values of {@link PrivateLinkServiceConnectionStateActionsRequire} that the service accepts. */
116
177
  exports.KnownPrivateLinkServiceConnectionStateActionsRequire = void 0;
117
178
  (function (KnownPrivateLinkServiceConnectionStateActionsRequire) {
179
+ /** None */
118
180
  KnownPrivateLinkServiceConnectionStateActionsRequire["None"] = "None";
119
181
  })(exports.KnownPrivateLinkServiceConnectionStateActionsRequire || (exports.KnownPrivateLinkServiceConnectionStateActionsRequire = {}));
120
182
  /** Known values of {@link PrivateEndpointProvisioningState} that the service accepts. */
121
183
  exports.KnownPrivateEndpointProvisioningState = void 0;
122
184
  (function (KnownPrivateEndpointProvisioningState) {
185
+ /** Approving */
123
186
  KnownPrivateEndpointProvisioningState["Approving"] = "Approving";
187
+ /** Ready */
124
188
  KnownPrivateEndpointProvisioningState["Ready"] = "Ready";
189
+ /** Dropping */
125
190
  KnownPrivateEndpointProvisioningState["Dropping"] = "Dropping";
191
+ /** Failed */
126
192
  KnownPrivateEndpointProvisioningState["Failed"] = "Failed";
193
+ /** Rejecting */
127
194
  KnownPrivateEndpointProvisioningState["Rejecting"] = "Rejecting";
128
195
  })(exports.KnownPrivateEndpointProvisioningState || (exports.KnownPrivateEndpointProvisioningState = {}));
129
196
  /** Known values of {@link VirtualNetworkRuleState} that the service accepts. */
130
197
  exports.KnownVirtualNetworkRuleState = void 0;
131
198
  (function (KnownVirtualNetworkRuleState) {
199
+ /** Initializing */
132
200
  KnownVirtualNetworkRuleState["Initializing"] = "Initializing";
201
+ /** InProgress */
133
202
  KnownVirtualNetworkRuleState["InProgress"] = "InProgress";
203
+ /** Ready */
134
204
  KnownVirtualNetworkRuleState["Ready"] = "Ready";
205
+ /** Deleting */
135
206
  KnownVirtualNetworkRuleState["Deleting"] = "Deleting";
207
+ /** Unknown */
136
208
  KnownVirtualNetworkRuleState["Unknown"] = "Unknown";
137
209
  })(exports.KnownVirtualNetworkRuleState || (exports.KnownVirtualNetworkRuleState = {}));
138
210
  /** Known values of {@link OperationOrigin} that the service accepts. */
139
211
  exports.KnownOperationOrigin = void 0;
140
212
  (function (KnownOperationOrigin) {
213
+ /** NotSpecified */
141
214
  KnownOperationOrigin["NotSpecified"] = "NotSpecified";
215
+ /** User */
142
216
  KnownOperationOrigin["User"] = "user";
217
+ /** System */
143
218
  KnownOperationOrigin["System"] = "system";
144
219
  })(exports.KnownOperationOrigin || (exports.KnownOperationOrigin = {}));
145
220
  /** Known values of {@link SecurityAlertPolicyName} that the service accepts. */
146
221
  exports.KnownSecurityAlertPolicyName = void 0;
147
222
  (function (KnownSecurityAlertPolicyName) {
223
+ /** Default */
148
224
  KnownSecurityAlertPolicyName["Default"] = "Default";
149
225
  })(exports.KnownSecurityAlertPolicyName || (exports.KnownSecurityAlertPolicyName = {}));
150
226
  /** Known values of {@link QueryPerformanceInsightResetDataResultState} that the service accepts. */
151
227
  exports.KnownQueryPerformanceInsightResetDataResultState = void 0;
152
228
  (function (KnownQueryPerformanceInsightResetDataResultState) {
229
+ /** Succeeded */
153
230
  KnownQueryPerformanceInsightResetDataResultState["Succeeded"] = "Succeeded";
231
+ /** Failed */
154
232
  KnownQueryPerformanceInsightResetDataResultState["Failed"] = "Failed";
155
233
  })(exports.KnownQueryPerformanceInsightResetDataResultState || (exports.KnownQueryPerformanceInsightResetDataResultState = {}));
156
234
  /** Known values of {@link ServerKeyType} that the service accepts. */
157
235
  exports.KnownServerKeyType = void 0;
158
236
  (function (KnownServerKeyType) {
237
+ /** AzureKeyVault */
159
238
  KnownServerKeyType["AzureKeyVault"] = "AzureKeyVault";
160
239
  })(exports.KnownServerKeyType || (exports.KnownServerKeyType = {}));
161
240
 
@@ -2801,14 +2880,18 @@ class ServersImpl {
2801
2880
  [Symbol.asyncIterator]() {
2802
2881
  return this;
2803
2882
  },
2804
- byPage: () => {
2805
- return this.listByResourceGroupPagingPage(resourceGroupName, options);
2883
+ byPage: (settings) => {
2884
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2885
+ throw new Error("maxPageSize is not supported by this operation.");
2886
+ }
2887
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
2806
2888
  }
2807
2889
  };
2808
2890
  }
2809
- listByResourceGroupPagingPage(resourceGroupName, options) {
2891
+ listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
2810
2892
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
2811
- let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
2893
+ let result;
2894
+ result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
2812
2895
  yield yield tslib.__await(result.value || []);
2813
2896
  });
2814
2897
  }
@@ -2843,14 +2926,18 @@ class ServersImpl {
2843
2926
  [Symbol.asyncIterator]() {
2844
2927
  return this;
2845
2928
  },
2846
- byPage: () => {
2847
- return this.listPagingPage(options);
2929
+ byPage: (settings) => {
2930
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2931
+ throw new Error("maxPageSize is not supported by this operation.");
2932
+ }
2933
+ return this.listPagingPage(options, settings);
2848
2934
  }
2849
2935
  };
2850
2936
  }
2851
- listPagingPage(options) {
2937
+ listPagingPage(options, _settings) {
2852
2938
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2853
- let result = yield tslib.__await(this._list(options));
2939
+ let result;
2940
+ result = yield tslib.__await(this._list(options));
2854
2941
  yield yield tslib.__await(result.value || []);
2855
2942
  });
2856
2943
  }
@@ -3532,14 +3619,18 @@ class ReplicasImpl {
3532
3619
  [Symbol.asyncIterator]() {
3533
3620
  return this;
3534
3621
  },
3535
- byPage: () => {
3536
- return this.listByServerPagingPage(resourceGroupName, serverName, options);
3622
+ byPage: (settings) => {
3623
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3624
+ throw new Error("maxPageSize is not supported by this operation.");
3625
+ }
3626
+ return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
3537
3627
  }
3538
3628
  };
3539
3629
  }
3540
- listByServerPagingPage(resourceGroupName, serverName, options) {
3630
+ listByServerPagingPage(resourceGroupName, serverName, options, _settings) {
3541
3631
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
3542
- let result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
3632
+ let result;
3633
+ result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
3543
3634
  yield yield tslib.__await(result.value || []);
3544
3635
  });
3545
3636
  }
@@ -3627,14 +3718,18 @@ class FirewallRulesImpl {
3627
3718
  [Symbol.asyncIterator]() {
3628
3719
  return this;
3629
3720
  },
3630
- byPage: () => {
3631
- return this.listByServerPagingPage(resourceGroupName, serverName, options);
3721
+ byPage: (settings) => {
3722
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
3723
+ throw new Error("maxPageSize is not supported by this operation.");
3724
+ }
3725
+ return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
3632
3726
  }
3633
3727
  };
3634
3728
  }
3635
- listByServerPagingPage(resourceGroupName, serverName, options) {
3729
+ listByServerPagingPage(resourceGroupName, serverName, options, _settings) {
3636
3730
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
3637
- let result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
3731
+ let result;
3732
+ result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
3638
3733
  yield yield tslib.__await(result.value || []);
3639
3734
  });
3640
3735
  }
@@ -3918,20 +4013,31 @@ class VirtualNetworkRulesImpl {
3918
4013
  [Symbol.asyncIterator]() {
3919
4014
  return this;
3920
4015
  },
3921
- byPage: () => {
3922
- return this.listByServerPagingPage(resourceGroupName, serverName, options);
4016
+ byPage: (settings) => {
4017
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4018
+ throw new Error("maxPageSize is not supported by this operation.");
4019
+ }
4020
+ return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
3923
4021
  }
3924
4022
  };
3925
4023
  }
3926
- listByServerPagingPage(resourceGroupName, serverName, options) {
4024
+ listByServerPagingPage(resourceGroupName, serverName, options, settings) {
3927
4025
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
3928
- let result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
3929
- yield yield tslib.__await(result.value || []);
3930
- let continuationToken = result.nextLink;
4026
+ let result;
4027
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4028
+ if (!continuationToken) {
4029
+ result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
4030
+ let page = result.value || [];
4031
+ continuationToken = result.nextLink;
4032
+ setContinuationToken(page, continuationToken);
4033
+ yield yield tslib.__await(page);
4034
+ }
3931
4035
  while (continuationToken) {
3932
4036
  result = yield tslib.__await(this._listByServerNext(resourceGroupName, serverName, continuationToken, options));
3933
4037
  continuationToken = result.nextLink;
3934
- yield yield tslib.__await(result.value || []);
4038
+ let page = result.value || [];
4039
+ setContinuationToken(page, continuationToken);
4040
+ yield yield tslib.__await(page);
3935
4041
  }
3936
4042
  });
3937
4043
  }
@@ -4236,14 +4342,18 @@ class DatabasesImpl {
4236
4342
  [Symbol.asyncIterator]() {
4237
4343
  return this;
4238
4344
  },
4239
- byPage: () => {
4240
- return this.listByServerPagingPage(resourceGroupName, serverName, options);
4345
+ byPage: (settings) => {
4346
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4347
+ throw new Error("maxPageSize is not supported by this operation.");
4348
+ }
4349
+ return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
4241
4350
  }
4242
4351
  };
4243
4352
  }
4244
- listByServerPagingPage(resourceGroupName, serverName, options) {
4353
+ listByServerPagingPage(resourceGroupName, serverName, options, _settings) {
4245
4354
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
4246
- let result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
4355
+ let result;
4356
+ result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
4247
4357
  yield yield tslib.__await(result.value || []);
4248
4358
  });
4249
4359
  }
@@ -4527,14 +4637,18 @@ class ConfigurationsImpl {
4527
4637
  [Symbol.asyncIterator]() {
4528
4638
  return this;
4529
4639
  },
4530
- byPage: () => {
4531
- return this.listByServerPagingPage(resourceGroupName, serverName, options);
4640
+ byPage: (settings) => {
4641
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4642
+ throw new Error("maxPageSize is not supported by this operation.");
4643
+ }
4644
+ return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
4532
4645
  }
4533
4646
  };
4534
4647
  }
4535
- listByServerPagingPage(resourceGroupName, serverName, options) {
4648
+ listByServerPagingPage(resourceGroupName, serverName, options, _settings) {
4536
4649
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
4537
- let result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
4650
+ let result;
4651
+ result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
4538
4652
  yield yield tslib.__await(result.value || []);
4539
4653
  });
4540
4654
  }
@@ -4848,14 +4962,18 @@ class LogFilesImpl {
4848
4962
  [Symbol.asyncIterator]() {
4849
4963
  return this;
4850
4964
  },
4851
- byPage: () => {
4852
- return this.listByServerPagingPage(resourceGroupName, serverName, options);
4965
+ byPage: (settings) => {
4966
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4967
+ throw new Error("maxPageSize is not supported by this operation.");
4968
+ }
4969
+ return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
4853
4970
  }
4854
4971
  };
4855
4972
  }
4856
- listByServerPagingPage(resourceGroupName, serverName, options) {
4973
+ listByServerPagingPage(resourceGroupName, serverName, options, _settings) {
4857
4974
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
4858
- let result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
4975
+ let result;
4976
+ result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
4859
4977
  yield yield tslib.__await(result.value || []);
4860
4978
  });
4861
4979
  }
@@ -4943,14 +5061,18 @@ class ServerAdministratorsImpl {
4943
5061
  [Symbol.asyncIterator]() {
4944
5062
  return this;
4945
5063
  },
4946
- byPage: () => {
4947
- return this.listPagingPage(resourceGroupName, serverName, options);
5064
+ byPage: (settings) => {
5065
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5066
+ throw new Error("maxPageSize is not supported by this operation.");
5067
+ }
5068
+ return this.listPagingPage(resourceGroupName, serverName, options, settings);
4948
5069
  }
4949
5070
  };
4950
5071
  }
4951
- listPagingPage(resourceGroupName, serverName, options) {
5072
+ listPagingPage(resourceGroupName, serverName, options, _settings) {
4952
5073
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
4953
- let result = yield tslib.__await(this._list(resourceGroupName, serverName, options));
5074
+ let result;
5075
+ result = yield tslib.__await(this._list(resourceGroupName, serverName, options));
4954
5076
  yield yield tslib.__await(result.value || []);
4955
5077
  });
4956
5078
  }
@@ -5278,14 +5400,18 @@ class ServerBasedPerformanceTierImpl {
5278
5400
  [Symbol.asyncIterator]() {
5279
5401
  return this;
5280
5402
  },
5281
- byPage: () => {
5282
- return this.listPagingPage(resourceGroupName, serverName, options);
5403
+ byPage: (settings) => {
5404
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5405
+ throw new Error("maxPageSize is not supported by this operation.");
5406
+ }
5407
+ return this.listPagingPage(resourceGroupName, serverName, options, settings);
5283
5408
  }
5284
5409
  };
5285
5410
  }
5286
- listPagingPage(resourceGroupName, serverName, options) {
5411
+ listPagingPage(resourceGroupName, serverName, options, _settings) {
5287
5412
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
5288
- let result = yield tslib.__await(this._list(resourceGroupName, serverName, options));
5413
+ let result;
5414
+ result = yield tslib.__await(this._list(resourceGroupName, serverName, options));
5289
5415
  yield yield tslib.__await(result.value || []);
5290
5416
  });
5291
5417
  }
@@ -5372,14 +5498,18 @@ class LocationBasedPerformanceTierImpl {
5372
5498
  [Symbol.asyncIterator]() {
5373
5499
  return this;
5374
5500
  },
5375
- byPage: () => {
5376
- return this.listPagingPage(locationName, options);
5501
+ byPage: (settings) => {
5502
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5503
+ throw new Error("maxPageSize is not supported by this operation.");
5504
+ }
5505
+ return this.listPagingPage(locationName, options, settings);
5377
5506
  }
5378
5507
  };
5379
5508
  }
5380
- listPagingPage(locationName, options) {
5509
+ listPagingPage(locationName, options, _settings) {
5381
5510
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
5382
- let result = yield tslib.__await(this._list(locationName, options));
5511
+ let result;
5512
+ result = yield tslib.__await(this._list(locationName, options));
5383
5513
  yield yield tslib.__await(result.value || []);
5384
5514
  });
5385
5515
  }
@@ -5554,20 +5684,31 @@ class ServerSecurityAlertPoliciesImpl {
5554
5684
  [Symbol.asyncIterator]() {
5555
5685
  return this;
5556
5686
  },
5557
- byPage: () => {
5558
- return this.listByServerPagingPage(resourceGroupName, serverName, options);
5687
+ byPage: (settings) => {
5688
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5689
+ throw new Error("maxPageSize is not supported by this operation.");
5690
+ }
5691
+ return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
5559
5692
  }
5560
5693
  };
5561
5694
  }
5562
- listByServerPagingPage(resourceGroupName, serverName, options) {
5695
+ listByServerPagingPage(resourceGroupName, serverName, options, settings) {
5563
5696
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
5564
- let result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
5565
- yield yield tslib.__await(result.value || []);
5566
- let continuationToken = result.nextLink;
5697
+ let result;
5698
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5699
+ if (!continuationToken) {
5700
+ result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
5701
+ let page = result.value || [];
5702
+ continuationToken = result.nextLink;
5703
+ setContinuationToken(page, continuationToken);
5704
+ yield yield tslib.__await(page);
5705
+ }
5567
5706
  while (continuationToken) {
5568
5707
  result = yield tslib.__await(this._listByServerNext(resourceGroupName, serverName, continuationToken, options));
5569
5708
  continuationToken = result.nextLink;
5570
- yield yield tslib.__await(result.value || []);
5709
+ let page = result.value || [];
5710
+ setContinuationToken(page, continuationToken);
5711
+ yield yield tslib.__await(page);
5571
5712
  }
5572
5713
  });
5573
5714
  }
@@ -5806,20 +5947,31 @@ class QueryTextsImpl {
5806
5947
  [Symbol.asyncIterator]() {
5807
5948
  return this;
5808
5949
  },
5809
- byPage: () => {
5810
- return this.listByServerPagingPage(resourceGroupName, serverName, queryIds, options);
5950
+ byPage: (settings) => {
5951
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5952
+ throw new Error("maxPageSize is not supported by this operation.");
5953
+ }
5954
+ return this.listByServerPagingPage(resourceGroupName, serverName, queryIds, options, settings);
5811
5955
  }
5812
5956
  };
5813
5957
  }
5814
- listByServerPagingPage(resourceGroupName, serverName, queryIds, options) {
5958
+ listByServerPagingPage(resourceGroupName, serverName, queryIds, options, settings) {
5815
5959
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
5816
- let result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, queryIds, options));
5817
- yield yield tslib.__await(result.value || []);
5818
- let continuationToken = result.nextLink;
5960
+ let result;
5961
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5962
+ if (!continuationToken) {
5963
+ result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, queryIds, options));
5964
+ let page = result.value || [];
5965
+ continuationToken = result.nextLink;
5966
+ setContinuationToken(page, continuationToken);
5967
+ yield yield tslib.__await(page);
5968
+ }
5819
5969
  while (continuationToken) {
5820
5970
  result = yield tslib.__await(this._listByServerNext(resourceGroupName, serverName, queryIds, continuationToken, options));
5821
5971
  continuationToken = result.nextLink;
5822
- yield yield tslib.__await(result.value || []);
5972
+ let page = result.value || [];
5973
+ setContinuationToken(page, continuationToken);
5974
+ yield yield tslib.__await(page);
5823
5975
  }
5824
5976
  });
5825
5977
  }
@@ -5974,20 +6126,31 @@ class TopQueryStatisticsImpl {
5974
6126
  [Symbol.asyncIterator]() {
5975
6127
  return this;
5976
6128
  },
5977
- byPage: () => {
5978
- return this.listByServerPagingPage(resourceGroupName, serverName, parameters, options);
6129
+ byPage: (settings) => {
6130
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6131
+ throw new Error("maxPageSize is not supported by this operation.");
6132
+ }
6133
+ return this.listByServerPagingPage(resourceGroupName, serverName, parameters, options, settings);
5979
6134
  }
5980
6135
  };
5981
6136
  }
5982
- listByServerPagingPage(resourceGroupName, serverName, parameters, options) {
6137
+ listByServerPagingPage(resourceGroupName, serverName, parameters, options, settings) {
5983
6138
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
5984
- let result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, parameters, options));
5985
- yield yield tslib.__await(result.value || []);
5986
- let continuationToken = result.nextLink;
6139
+ let result;
6140
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6141
+ if (!continuationToken) {
6142
+ result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, parameters, options));
6143
+ let page = result.value || [];
6144
+ continuationToken = result.nextLink;
6145
+ setContinuationToken(page, continuationToken);
6146
+ yield yield tslib.__await(page);
6147
+ }
5987
6148
  while (continuationToken) {
5988
6149
  result = yield tslib.__await(this._listByServerNext(resourceGroupName, serverName, parameters, continuationToken, options));
5989
6150
  continuationToken = result.nextLink;
5990
- yield yield tslib.__await(result.value || []);
6151
+ let page = result.value || [];
6152
+ setContinuationToken(page, continuationToken);
6153
+ yield yield tslib.__await(page);
5991
6154
  }
5992
6155
  });
5993
6156
  }
@@ -6144,20 +6307,31 @@ class WaitStatisticsImpl {
6144
6307
  [Symbol.asyncIterator]() {
6145
6308
  return this;
6146
6309
  },
6147
- byPage: () => {
6148
- return this.listByServerPagingPage(resourceGroupName, serverName, parameters, options);
6310
+ byPage: (settings) => {
6311
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6312
+ throw new Error("maxPageSize is not supported by this operation.");
6313
+ }
6314
+ return this.listByServerPagingPage(resourceGroupName, serverName, parameters, options, settings);
6149
6315
  }
6150
6316
  };
6151
6317
  }
6152
- listByServerPagingPage(resourceGroupName, serverName, parameters, options) {
6318
+ listByServerPagingPage(resourceGroupName, serverName, parameters, options, settings) {
6153
6319
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
6154
- let result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, parameters, options));
6155
- yield yield tslib.__await(result.value || []);
6156
- let continuationToken = result.nextLink;
6320
+ let result;
6321
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6322
+ if (!continuationToken) {
6323
+ result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, parameters, options));
6324
+ let page = result.value || [];
6325
+ continuationToken = result.nextLink;
6326
+ setContinuationToken(page, continuationToken);
6327
+ yield yield tslib.__await(page);
6328
+ }
6157
6329
  while (continuationToken) {
6158
6330
  result = yield tslib.__await(this._listByServerNext(resourceGroupName, serverName, parameters, continuationToken, options));
6159
6331
  continuationToken = result.nextLink;
6160
- yield yield tslib.__await(result.value || []);
6332
+ let page = result.value || [];
6333
+ setContinuationToken(page, continuationToken);
6334
+ yield yield tslib.__await(page);
6161
6335
  }
6162
6336
  });
6163
6337
  }
@@ -6313,20 +6487,31 @@ class AdvisorsImpl {
6313
6487
  [Symbol.asyncIterator]() {
6314
6488
  return this;
6315
6489
  },
6316
- byPage: () => {
6317
- return this.listByServerPagingPage(resourceGroupName, serverName, options);
6490
+ byPage: (settings) => {
6491
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6492
+ throw new Error("maxPageSize is not supported by this operation.");
6493
+ }
6494
+ return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
6318
6495
  }
6319
6496
  };
6320
6497
  }
6321
- listByServerPagingPage(resourceGroupName, serverName, options) {
6498
+ listByServerPagingPage(resourceGroupName, serverName, options, settings) {
6322
6499
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
6323
- let result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
6324
- yield yield tslib.__await(result.value || []);
6325
- let continuationToken = result.nextLink;
6500
+ let result;
6501
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6502
+ if (!continuationToken) {
6503
+ result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
6504
+ let page = result.value || [];
6505
+ continuationToken = result.nextLink;
6506
+ setContinuationToken(page, continuationToken);
6507
+ yield yield tslib.__await(page);
6508
+ }
6326
6509
  while (continuationToken) {
6327
6510
  result = yield tslib.__await(this._listByServerNext(resourceGroupName, serverName, continuationToken, options));
6328
6511
  continuationToken = result.nextLink;
6329
- yield yield tslib.__await(result.value || []);
6512
+ let page = result.value || [];
6513
+ setContinuationToken(page, continuationToken);
6514
+ yield yield tslib.__await(page);
6330
6515
  }
6331
6516
  });
6332
6517
  }
@@ -6470,20 +6655,31 @@ class RecommendedActionsImpl {
6470
6655
  [Symbol.asyncIterator]() {
6471
6656
  return this;
6472
6657
  },
6473
- byPage: () => {
6474
- return this.listByServerPagingPage(resourceGroupName, serverName, advisorName, options);
6658
+ byPage: (settings) => {
6659
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6660
+ throw new Error("maxPageSize is not supported by this operation.");
6661
+ }
6662
+ return this.listByServerPagingPage(resourceGroupName, serverName, advisorName, options, settings);
6475
6663
  }
6476
6664
  };
6477
6665
  }
6478
- listByServerPagingPage(resourceGroupName, serverName, advisorName, options) {
6666
+ listByServerPagingPage(resourceGroupName, serverName, advisorName, options, settings) {
6479
6667
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
6480
- let result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, advisorName, options));
6481
- yield yield tslib.__await(result.value || []);
6482
- let continuationToken = result.nextLink;
6668
+ let result;
6669
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6670
+ if (!continuationToken) {
6671
+ result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, advisorName, options));
6672
+ let page = result.value || [];
6673
+ continuationToken = result.nextLink;
6674
+ setContinuationToken(page, continuationToken);
6675
+ yield yield tslib.__await(page);
6676
+ }
6483
6677
  while (continuationToken) {
6484
6678
  result = yield tslib.__await(this._listByServerNext(resourceGroupName, serverName, advisorName, continuationToken, options));
6485
6679
  continuationToken = result.nextLink;
6486
- yield yield tslib.__await(result.value || []);
6680
+ let page = result.value || [];
6681
+ setContinuationToken(page, continuationToken);
6682
+ yield yield tslib.__await(page);
6487
6683
  }
6488
6684
  });
6489
6685
  }
@@ -6685,20 +6881,31 @@ class LocationBasedRecommendedActionSessionsResultImpl {
6685
6881
  [Symbol.asyncIterator]() {
6686
6882
  return this;
6687
6883
  },
6688
- byPage: () => {
6689
- return this.listPagingPage(locationName, operationId, options);
6884
+ byPage: (settings) => {
6885
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6886
+ throw new Error("maxPageSize is not supported by this operation.");
6887
+ }
6888
+ return this.listPagingPage(locationName, operationId, options, settings);
6690
6889
  }
6691
6890
  };
6692
6891
  }
6693
- listPagingPage(locationName, operationId, options) {
6892
+ listPagingPage(locationName, operationId, options, settings) {
6694
6893
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
6695
- let result = yield tslib.__await(this._list(locationName, operationId, options));
6696
- yield yield tslib.__await(result.value || []);
6697
- let continuationToken = result.nextLink;
6894
+ let result;
6895
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
6896
+ if (!continuationToken) {
6897
+ result = yield tslib.__await(this._list(locationName, operationId, options));
6898
+ let page = result.value || [];
6899
+ continuationToken = result.nextLink;
6900
+ setContinuationToken(page, continuationToken);
6901
+ yield yield tslib.__await(page);
6902
+ }
6698
6903
  while (continuationToken) {
6699
6904
  result = yield tslib.__await(this._listNext(locationName, operationId, continuationToken, options));
6700
6905
  continuationToken = result.nextLink;
6701
- yield yield tslib.__await(result.value || []);
6906
+ let page = result.value || [];
6907
+ setContinuationToken(page, continuationToken);
6908
+ yield yield tslib.__await(page);
6702
6909
  }
6703
6910
  });
6704
6911
  }
@@ -6818,20 +7025,31 @@ class PrivateEndpointConnectionsImpl {
6818
7025
  [Symbol.asyncIterator]() {
6819
7026
  return this;
6820
7027
  },
6821
- byPage: () => {
6822
- return this.listByServerPagingPage(resourceGroupName, serverName, options);
7028
+ byPage: (settings) => {
7029
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7030
+ throw new Error("maxPageSize is not supported by this operation.");
7031
+ }
7032
+ return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
6823
7033
  }
6824
7034
  };
6825
7035
  }
6826
- listByServerPagingPage(resourceGroupName, serverName, options) {
7036
+ listByServerPagingPage(resourceGroupName, serverName, options, settings) {
6827
7037
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
6828
- let result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
6829
- yield yield tslib.__await(result.value || []);
6830
- let continuationToken = result.nextLink;
7038
+ let result;
7039
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7040
+ if (!continuationToken) {
7041
+ result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
7042
+ let page = result.value || [];
7043
+ continuationToken = result.nextLink;
7044
+ setContinuationToken(page, continuationToken);
7045
+ yield yield tslib.__await(page);
7046
+ }
6831
7047
  while (continuationToken) {
6832
7048
  result = yield tslib.__await(this._listByServerNext(resourceGroupName, serverName, continuationToken, options));
6833
7049
  continuationToken = result.nextLink;
6834
- yield yield tslib.__await(result.value || []);
7050
+ let page = result.value || [];
7051
+ setContinuationToken(page, continuationToken);
7052
+ yield yield tslib.__await(page);
6835
7053
  }
6836
7054
  });
6837
7055
  }
@@ -7247,20 +7465,31 @@ class PrivateLinkResourcesImpl {
7247
7465
  [Symbol.asyncIterator]() {
7248
7466
  return this;
7249
7467
  },
7250
- byPage: () => {
7251
- return this.listByServerPagingPage(resourceGroupName, serverName, options);
7468
+ byPage: (settings) => {
7469
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7470
+ throw new Error("maxPageSize is not supported by this operation.");
7471
+ }
7472
+ return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
7252
7473
  }
7253
7474
  };
7254
7475
  }
7255
- listByServerPagingPage(resourceGroupName, serverName, options) {
7476
+ listByServerPagingPage(resourceGroupName, serverName, options, settings) {
7256
7477
  return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
7257
- let result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
7258
- yield yield tslib.__await(result.value || []);
7259
- let continuationToken = result.nextLink;
7478
+ let result;
7479
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7480
+ if (!continuationToken) {
7481
+ result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
7482
+ let page = result.value || [];
7483
+ continuationToken = result.nextLink;
7484
+ setContinuationToken(page, continuationToken);
7485
+ yield yield tslib.__await(page);
7486
+ }
7260
7487
  while (continuationToken) {
7261
7488
  result = yield tslib.__await(this._listByServerNext(resourceGroupName, serverName, continuationToken, options));
7262
7489
  continuationToken = result.nextLink;
7263
- yield yield tslib.__await(result.value || []);
7490
+ let page = result.value || [];
7491
+ setContinuationToken(page, continuationToken);
7492
+ yield yield tslib.__await(page);
7264
7493
  }
7265
7494
  });
7266
7495
  }
@@ -7412,20 +7641,31 @@ class ServerKeysImpl {
7412
7641
  [Symbol.asyncIterator]() {
7413
7642
  return this;
7414
7643
  },
7415
- byPage: () => {
7416
- return this.listPagingPage(resourceGroupName, serverName, options);
7644
+ byPage: (settings) => {
7645
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7646
+ throw new Error("maxPageSize is not supported by this operation.");
7647
+ }
7648
+ return this.listPagingPage(resourceGroupName, serverName, options, settings);
7417
7649
  }
7418
7650
  };
7419
7651
  }
7420
- listPagingPage(resourceGroupName, serverName, options) {
7652
+ listPagingPage(resourceGroupName, serverName, options, settings) {
7421
7653
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
7422
- let result = yield tslib.__await(this._list(resourceGroupName, serverName, options));
7423
- yield yield tslib.__await(result.value || []);
7424
- let continuationToken = result.nextLink;
7654
+ let result;
7655
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7656
+ if (!continuationToken) {
7657
+ result = yield tslib.__await(this._list(resourceGroupName, serverName, options));
7658
+ let page = result.value || [];
7659
+ continuationToken = result.nextLink;
7660
+ setContinuationToken(page, continuationToken);
7661
+ yield yield tslib.__await(page);
7662
+ }
7425
7663
  while (continuationToken) {
7426
7664
  result = yield tslib.__await(this._listNext(resourceGroupName, serverName, continuationToken, options));
7427
7665
  continuationToken = result.nextLink;
7428
- yield yield tslib.__await(result.value || []);
7666
+ let page = result.value || [];
7667
+ setContinuationToken(page, continuationToken);
7668
+ yield yield tslib.__await(page);
7429
7669
  }
7430
7670
  });
7431
7671
  }
@@ -7724,7 +7964,7 @@ class MySQLManagementClient extends coreClient__namespace.ServiceClient {
7724
7964
  * @param options The parameter options
7725
7965
  */
7726
7966
  constructor(credentials, subscriptionId, options) {
7727
- var _a, _b;
7967
+ var _a, _b, _c;
7728
7968
  if (credentials === undefined) {
7729
7969
  throw new Error("'credentials' cannot be null");
7730
7970
  }
@@ -7739,32 +7979,34 @@ class MySQLManagementClient extends coreClient__namespace.ServiceClient {
7739
7979
  requestContentType: "application/json; charset=utf-8",
7740
7980
  credential: credentials
7741
7981
  };
7742
- const packageDetails = `azsdk-js-arm-mysql/5.0.2`;
7982
+ const packageDetails = `azsdk-js-arm-mysql/5.1.0`;
7743
7983
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
7744
7984
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
7745
7985
  : `${packageDetails}`;
7746
- if (!options.credentialScopes) {
7747
- options.credentialScopes = ["https://management.azure.com/.default"];
7748
- }
7749
7986
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
7750
7987
  userAgentPrefix
7751
- }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
7988
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
7752
7989
  super(optionsWithDefaults);
7990
+ let bearerTokenAuthenticationPolicyFound = false;
7753
7991
  if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
7754
7992
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
7755
- const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
7993
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
7756
7994
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
7757
- if (!bearerTokenAuthenticationPolicyFound) {
7758
- this.pipeline.removePolicy({
7759
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
7760
- });
7761
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
7762
- scopes: `${optionsWithDefaults.baseUri}/.default`,
7763
- challengeCallbacks: {
7764
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
7765
- }
7766
- }));
7767
- }
7995
+ }
7996
+ if (!options ||
7997
+ !options.pipeline ||
7998
+ options.pipeline.getOrderedPolicies().length == 0 ||
7999
+ !bearerTokenAuthenticationPolicyFound) {
8000
+ this.pipeline.removePolicy({
8001
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
8002
+ });
8003
+ this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
8004
+ credential: credentials,
8005
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
8006
+ challengeCallbacks: {
8007
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
8008
+ }
8009
+ }));
7768
8010
  }
7769
8011
  // Parameter assignments
7770
8012
  this.subscriptionId = subscriptionId;
@@ -7900,4 +8142,5 @@ const createRecommendedActionSessionOperationSpec = {
7900
8142
  };
7901
8143
 
7902
8144
  exports.MySQLManagementClient = MySQLManagementClient;
8145
+ exports.getContinuationToken = getContinuationToken;
7903
8146
  //# sourceMappingURL=index.js.map