@azure/arm-storage 18.0.1-alpha.20221101.1 → 18.1.0-alpha.20221130.1

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 (193) hide show
  1. package/CHANGELOG.md +20 -10
  2. package/dist/index.js +388 -129
  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/samples-dev/blobContainersClearLegalHoldSample.js +1 -1
  7. package/dist-esm/samples-dev/blobContainersCreateOrUpdateImmutabilityPolicySample.js +2 -2
  8. package/dist-esm/samples-dev/blobContainersCreateSample.js +3 -3
  9. package/dist-esm/samples-dev/blobContainersDeleteImmutabilityPolicySample.js +1 -1
  10. package/dist-esm/samples-dev/blobContainersDeleteSample.js +1 -1
  11. package/dist-esm/samples-dev/blobContainersExtendImmutabilityPolicySample.js +1 -1
  12. package/dist-esm/samples-dev/blobContainersGetImmutabilityPolicySample.js +1 -1
  13. package/dist-esm/samples-dev/blobContainersGetSample.js +2 -2
  14. package/dist-esm/samples-dev/blobContainersLeaseSample.js +2 -2
  15. package/dist-esm/samples-dev/blobContainersListSample.js +2 -2
  16. package/dist-esm/samples-dev/blobContainersLockImmutabilityPolicySample.js +1 -1
  17. package/dist-esm/samples-dev/blobContainersObjectLevelWormSample.js +1 -1
  18. package/dist-esm/samples-dev/blobContainersSetLegalHoldSample.js +2 -2
  19. package/dist-esm/samples-dev/blobContainersUpdateSample.js +1 -1
  20. package/dist-esm/samples-dev/blobInventoryPoliciesCreateOrUpdateSample.js +3 -3
  21. package/dist-esm/samples-dev/blobInventoryPoliciesDeleteSample.js +1 -1
  22. package/dist-esm/samples-dev/blobInventoryPoliciesGetSample.js +1 -1
  23. package/dist-esm/samples-dev/blobInventoryPoliciesListSample.js +1 -1
  24. package/dist-esm/samples-dev/blobServicesGetServicePropertiesSample.js +1 -1
  25. package/dist-esm/samples-dev/blobServicesListSample.js +1 -1
  26. package/dist-esm/samples-dev/blobServicesSetServicePropertiesSample.js +3 -3
  27. package/dist-esm/samples-dev/deletedAccountsGetSample.js +1 -1
  28. package/dist-esm/samples-dev/deletedAccountsListSample.js +1 -1
  29. package/dist-esm/samples-dev/encryptionScopesGetSample.js +1 -1
  30. package/dist-esm/samples-dev/encryptionScopesListSample.js +1 -1
  31. package/dist-esm/samples-dev/encryptionScopesPatchSample.js +1 -1
  32. package/dist-esm/samples-dev/encryptionScopesPutSample.js +2 -2
  33. package/dist-esm/samples-dev/fileServicesGetServicePropertiesSample.js +1 -1
  34. package/dist-esm/samples-dev/fileServicesListSample.js +1 -1
  35. package/dist-esm/samples-dev/fileServicesSetServicePropertiesSample.js +3 -3
  36. package/dist-esm/samples-dev/fileSharesCreateSample.js +3 -3
  37. package/dist-esm/samples-dev/fileSharesDeleteSample.js +1 -1
  38. package/dist-esm/samples-dev/fileSharesGetSample.js +2 -2
  39. package/dist-esm/samples-dev/fileSharesLeaseSample.js +2 -2
  40. package/dist-esm/samples-dev/fileSharesListSample.js +3 -3
  41. package/dist-esm/samples-dev/fileSharesRestoreSample.js +1 -1
  42. package/dist-esm/samples-dev/fileSharesUpdateSample.js +2 -2
  43. package/dist-esm/samples-dev/localUsersCreateOrUpdateSample.js +2 -2
  44. package/dist-esm/samples-dev/localUsersDeleteSample.js +1 -1
  45. package/dist-esm/samples-dev/localUsersGetSample.js +1 -1
  46. package/dist-esm/samples-dev/localUsersListKeysSample.js +1 -1
  47. package/dist-esm/samples-dev/localUsersListSample.js +1 -1
  48. package/dist-esm/samples-dev/localUsersRegeneratePasswordSample.js +1 -1
  49. package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.js +99 -6
  50. package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.js.map +1 -1
  51. package/dist-esm/samples-dev/managementPoliciesDeleteSample.js +1 -1
  52. package/dist-esm/samples-dev/managementPoliciesGetSample.js +1 -1
  53. package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.js +4 -4
  54. package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.js +1 -1
  55. package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.js +1 -1
  56. package/dist-esm/samples-dev/objectReplicationPoliciesListSample.js +1 -1
  57. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  58. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  59. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  60. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
  61. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +1 -1
  62. package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.js +1 -1
  63. package/dist-esm/samples-dev/queueCreateSample.js +2 -2
  64. package/dist-esm/samples-dev/queueDeleteSample.js +1 -1
  65. package/dist-esm/samples-dev/queueGetSample.js +1 -1
  66. package/dist-esm/samples-dev/queueListSample.js +1 -1
  67. package/dist-esm/samples-dev/queueServicesGetServicePropertiesSample.js +1 -1
  68. package/dist-esm/samples-dev/queueServicesListSample.js +1 -1
  69. package/dist-esm/samples-dev/queueServicesSetServicePropertiesSample.js +1 -1
  70. package/dist-esm/samples-dev/queueUpdateSample.js +1 -1
  71. package/dist-esm/samples-dev/skusListSample.js +1 -1
  72. package/dist-esm/samples-dev/storageAccountsAbortHierarchicalNamespaceMigrationSample.js +1 -1
  73. package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.js +1 -1
  74. package/dist-esm/samples-dev/storageAccountsCreateSample.js +12 -12
  75. package/dist-esm/samples-dev/storageAccountsDeleteSample.js +1 -1
  76. package/dist-esm/samples-dev/storageAccountsFailoverSample.js +21 -3
  77. package/dist-esm/samples-dev/storageAccountsFailoverSample.js.map +1 -1
  78. package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.js +4 -4
  79. package/dist-esm/samples-dev/storageAccountsHierarchicalNamespaceMigrationSample.js +1 -1
  80. package/dist-esm/samples-dev/storageAccountsListAccountSasSample.js +1 -1
  81. package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.js +1 -1
  82. package/dist-esm/samples-dev/storageAccountsListKeysSample.js +1 -1
  83. package/dist-esm/samples-dev/storageAccountsListSample.js +1 -1
  84. package/dist-esm/samples-dev/storageAccountsListServiceSasSample.js +1 -1
  85. package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.js +2 -2
  86. package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.js +1 -1
  87. package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.js +1 -1
  88. package/dist-esm/samples-dev/storageAccountsUpdateSample.js +8 -8
  89. package/dist-esm/samples-dev/tableCreateSample.js +2 -2
  90. package/dist-esm/samples-dev/tableDeleteSample.js +1 -1
  91. package/dist-esm/samples-dev/tableGetSample.js +1 -1
  92. package/dist-esm/samples-dev/tableListSample.js +1 -1
  93. package/dist-esm/samples-dev/tableServicesGetServicePropertiesSample.js +1 -1
  94. package/dist-esm/samples-dev/tableServicesListSample.js +1 -1
  95. package/dist-esm/samples-dev/tableServicesSetServicePropertiesSample.js +1 -1
  96. package/dist-esm/samples-dev/tableUpdateSample.js +2 -2
  97. package/dist-esm/samples-dev/usagesListByLocationSample.js +1 -1
  98. package/dist-esm/src/index.d.ts +1 -0
  99. package/dist-esm/src/index.d.ts.map +1 -1
  100. package/dist-esm/src/index.js +1 -0
  101. package/dist-esm/src/index.js.map +1 -1
  102. package/dist-esm/src/models/index.d.ts +61 -18
  103. package/dist-esm/src/models/index.d.ts.map +1 -1
  104. package/dist-esm/src/models/index.js +10 -0
  105. package/dist-esm/src/models/index.js.map +1 -1
  106. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  107. package/dist-esm/src/models/mappers.js +42 -0
  108. package/dist-esm/src/models/mappers.js.map +1 -1
  109. package/dist-esm/src/models/parameters.d.ts +6 -3
  110. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  111. package/dist-esm/src/models/parameters.js +46 -13
  112. package/dist-esm/src/models/parameters.js.map +1 -1
  113. package/dist-esm/src/operations/blobContainers.d.ts.map +1 -1
  114. package/dist-esm/src/operations/blobContainers.js +23 -11
  115. package/dist-esm/src/operations/blobContainers.js.map +1 -1
  116. package/dist-esm/src/operations/blobInventoryPolicies.d.ts.map +1 -1
  117. package/dist-esm/src/operations/blobInventoryPolicies.js +8 -4
  118. package/dist-esm/src/operations/blobInventoryPolicies.js.map +1 -1
  119. package/dist-esm/src/operations/blobServices.d.ts.map +1 -1
  120. package/dist-esm/src/operations/blobServices.js +8 -4
  121. package/dist-esm/src/operations/blobServices.js.map +1 -1
  122. package/dist-esm/src/operations/deletedAccounts.d.ts.map +1 -1
  123. package/dist-esm/src/operations/deletedAccounts.js +19 -7
  124. package/dist-esm/src/operations/deletedAccounts.js.map +1 -1
  125. package/dist-esm/src/operations/encryptionScopes.d.ts.map +1 -1
  126. package/dist-esm/src/operations/encryptionScopes.js +31 -9
  127. package/dist-esm/src/operations/encryptionScopes.js.map +1 -1
  128. package/dist-esm/src/operations/fileShares.d.ts.map +1 -1
  129. package/dist-esm/src/operations/fileShares.js +22 -10
  130. package/dist-esm/src/operations/fileShares.js.map +1 -1
  131. package/dist-esm/src/operations/localUsersOperations.d.ts.map +1 -1
  132. package/dist-esm/src/operations/localUsersOperations.js +8 -4
  133. package/dist-esm/src/operations/localUsersOperations.js.map +1 -1
  134. package/dist-esm/src/operations/objectReplicationPoliciesOperations.d.ts.map +1 -1
  135. package/dist-esm/src/operations/objectReplicationPoliciesOperations.js +8 -4
  136. package/dist-esm/src/operations/objectReplicationPoliciesOperations.js.map +1 -1
  137. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  138. package/dist-esm/src/operations/operations.js +8 -4
  139. package/dist-esm/src/operations/operations.js.map +1 -1
  140. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  141. package/dist-esm/src/operations/privateEndpointConnections.js +8 -4
  142. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  143. package/dist-esm/src/operations/queue.d.ts.map +1 -1
  144. package/dist-esm/src/operations/queue.js +23 -11
  145. package/dist-esm/src/operations/queue.js.map +1 -1
  146. package/dist-esm/src/operations/skus.d.ts.map +1 -1
  147. package/dist-esm/src/operations/skus.js +8 -4
  148. package/dist-esm/src/operations/skus.js.map +1 -1
  149. package/dist-esm/src/operations/storageAccounts.d.ts +20 -6
  150. package/dist-esm/src/operations/storageAccounts.d.ts.map +1 -1
  151. package/dist-esm/src/operations/storageAccounts.js +58 -21
  152. package/dist-esm/src/operations/storageAccounts.js.map +1 -1
  153. package/dist-esm/src/operations/tableOperations.d.ts.map +1 -1
  154. package/dist-esm/src/operations/tableOperations.js +19 -7
  155. package/dist-esm/src/operations/tableOperations.js.map +1 -1
  156. package/dist-esm/src/operations/usages.d.ts.map +1 -1
  157. package/dist-esm/src/operations/usages.js +8 -4
  158. package/dist-esm/src/operations/usages.js.map +1 -1
  159. package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts +20 -6
  160. package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts.map +1 -1
  161. package/dist-esm/src/pagingHelper.d.ts +13 -0
  162. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  163. package/dist-esm/src/pagingHelper.js +32 -0
  164. package/dist-esm/src/pagingHelper.js.map +1 -0
  165. package/dist-esm/src/storageManagementClient.d.ts.map +1 -1
  166. package/dist-esm/src/storageManagementClient.js +5 -8
  167. package/dist-esm/src/storageManagementClient.js.map +1 -1
  168. package/package.json +4 -3
  169. package/review/arm-storage.api.md +25 -0
  170. package/src/index.ts +1 -0
  171. package/src/models/index.ts +67 -20
  172. package/src/models/mappers.ts +42 -0
  173. package/src/models/parameters.ts +50 -14
  174. package/src/operations/blobContainers.ts +30 -12
  175. package/src/operations/blobInventoryPolicies.ts +17 -7
  176. package/src/operations/blobServices.ts +15 -5
  177. package/src/operations/deletedAccounts.ts +21 -8
  178. package/src/operations/encryptionScopes.ts +39 -11
  179. package/src/operations/fileShares.ts +29 -11
  180. package/src/operations/localUsersOperations.ts +15 -5
  181. package/src/operations/objectReplicationPoliciesOperations.ts +15 -5
  182. package/src/operations/operations.ts +10 -5
  183. package/src/operations/privateEndpointConnections.ts +15 -5
  184. package/src/operations/queue.ts +31 -13
  185. package/src/operations/skus.ts +10 -5
  186. package/src/operations/storageAccounts.ts +67 -24
  187. package/src/operations/tableOperations.ts +27 -9
  188. package/src/operations/usages.ts +10 -5
  189. package/src/operationsInterfaces/storageAccounts.ts +20 -6
  190. package/src/pagingHelper.ts +39 -0
  191. package/src/storageManagementClient.ts +6 -7
  192. package/types/arm-storage.d.ts +92 -24
  193. package/types/tsdoc-metadata.json +1 -1
package/dist/index.js CHANGED
@@ -28,6 +28,38 @@ function _interopNamespace(e) {
28
28
  var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
29
  var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
30
30
 
31
+ /*
32
+ * Copyright (c) Microsoft Corporation.
33
+ * Licensed under the MIT License.
34
+ *
35
+ * Code generated by Microsoft (R) AutoRest Code Generator.
36
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
37
+ */
38
+ const pageMap = new WeakMap();
39
+ /**
40
+ * Given a result page from a pageable operation, returns a
41
+ * continuation token that can be used to begin paging from
42
+ * that point later.
43
+ * @param page A result object from calling .byPage() on a paged operation.
44
+ * @returns The continuation token that can be passed into byPage().
45
+ */
46
+ function getContinuationToken(page) {
47
+ var _a;
48
+ if (typeof page !== "object" || page === null) {
49
+ return undefined;
50
+ }
51
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
52
+ }
53
+ function setContinuationToken(page, continuationToken) {
54
+ var _a;
55
+ if (typeof page !== "object" || page === null || !continuationToken) {
56
+ return;
57
+ }
58
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
59
+ pageInfo.continuationToken = continuationToken;
60
+ pageMap.set(page, pageInfo);
61
+ }
62
+
31
63
  /*
32
64
  * Copyright (c) Microsoft Corporation.
33
65
  * Licensed under the MIT License.
@@ -417,6 +449,16 @@ exports.KnownEncryptionScopeState = void 0;
417
449
  /** Disabled */
418
450
  KnownEncryptionScopeState["Disabled"] = "Disabled";
419
451
  })(exports.KnownEncryptionScopeState || (exports.KnownEncryptionScopeState = {}));
452
+ /** Known values of {@link ListEncryptionScopesInclude} that the service accepts. */
453
+ exports.KnownListEncryptionScopesInclude = void 0;
454
+ (function (KnownListEncryptionScopesInclude) {
455
+ /** All */
456
+ KnownListEncryptionScopesInclude["All"] = "All";
457
+ /** Enabled */
458
+ KnownListEncryptionScopesInclude["Enabled"] = "Enabled";
459
+ /** Disabled */
460
+ KnownListEncryptionScopesInclude["Disabled"] = "Disabled";
461
+ })(exports.KnownListEncryptionScopesInclude || (exports.KnownListEncryptionScopesInclude = {}));
420
462
  /** Known values of {@link AllowedMethods} that the service accepts. */
421
463
  exports.KnownAllowedMethods = void 0;
422
464
  (function (KnownAllowedMethods) {
@@ -2942,6 +2984,20 @@ const ManagementPolicyBaseBlob = {
2942
2984
  className: "DateAfterModification"
2943
2985
  }
2944
2986
  },
2987
+ tierToCold: {
2988
+ serializedName: "tierToCold",
2989
+ type: {
2990
+ name: "Composite",
2991
+ className: "DateAfterModification"
2992
+ }
2993
+ },
2994
+ tierToHot: {
2995
+ serializedName: "tierToHot",
2996
+ type: {
2997
+ name: "Composite",
2998
+ className: "DateAfterModification"
2999
+ }
3000
+ },
2945
3001
  delete: {
2946
3002
  serializedName: "delete",
2947
3003
  type: {
@@ -3025,6 +3081,20 @@ const ManagementPolicySnapShot = {
3025
3081
  className: "DateAfterCreation"
3026
3082
  }
3027
3083
  },
3084
+ tierToCold: {
3085
+ serializedName: "tierToCold",
3086
+ type: {
3087
+ name: "Composite",
3088
+ className: "DateAfterCreation"
3089
+ }
3090
+ },
3091
+ tierToHot: {
3092
+ serializedName: "tierToHot",
3093
+ type: {
3094
+ name: "Composite",
3095
+ className: "DateAfterCreation"
3096
+ }
3097
+ },
3028
3098
  delete: {
3029
3099
  serializedName: "delete",
3030
3100
  type: {
@@ -3083,6 +3153,20 @@ const ManagementPolicyVersion = {
3083
3153
  className: "DateAfterCreation"
3084
3154
  }
3085
3155
  },
3156
+ tierToCold: {
3157
+ serializedName: "tierToCold",
3158
+ type: {
3159
+ name: "Composite",
3160
+ className: "DateAfterCreation"
3161
+ }
3162
+ },
3163
+ tierToHot: {
3164
+ serializedName: "tierToHot",
3165
+ type: {
3166
+ name: "Composite",
3167
+ className: "DateAfterCreation"
3168
+ }
3169
+ },
3086
3170
  delete: {
3087
3171
  serializedName: "delete",
3088
3172
  type: {
@@ -6284,7 +6368,7 @@ const $host = {
6284
6368
  const apiVersion = {
6285
6369
  parameterPath: "apiVersion",
6286
6370
  mapper: {
6287
- defaultValue: "2022-05-01",
6371
+ defaultValue: "2022-09-01",
6288
6372
  isConstant: true,
6289
6373
  serializedName: "api-version",
6290
6374
  type: {
@@ -6389,6 +6473,17 @@ const parameters3 = {
6389
6473
  parameterPath: "parameters",
6390
6474
  mapper: ServiceSasParameters
6391
6475
  };
6476
+ const failoverType = {
6477
+ parameterPath: ["options", "failoverType"],
6478
+ mapper: {
6479
+ defaultValue: "Planned",
6480
+ isConstant: true,
6481
+ serializedName: "failoverType",
6482
+ type: {
6483
+ name: "String"
6484
+ }
6485
+ }
6486
+ };
6392
6487
  const requestType = {
6393
6488
  parameterPath: "requestType",
6394
6489
  mapper: {
@@ -6533,6 +6628,37 @@ const encryptionScopeName = {
6533
6628
  }
6534
6629
  }
6535
6630
  };
6631
+ const maxpagesize = {
6632
+ parameterPath: ["options", "maxpagesize"],
6633
+ mapper: {
6634
+ constraints: {
6635
+ InclusiveMaximum: 5000,
6636
+ InclusiveMinimum: 1
6637
+ },
6638
+ serializedName: "$maxpagesize",
6639
+ type: {
6640
+ name: "Number"
6641
+ }
6642
+ }
6643
+ };
6644
+ const filter = {
6645
+ parameterPath: ["options", "filter"],
6646
+ mapper: {
6647
+ serializedName: "$filter",
6648
+ type: {
6649
+ name: "String"
6650
+ }
6651
+ }
6652
+ };
6653
+ const include = {
6654
+ parameterPath: ["options", "include"],
6655
+ mapper: {
6656
+ serializedName: "$include",
6657
+ type: {
6658
+ name: "String"
6659
+ }
6660
+ }
6661
+ };
6536
6662
  const parameters5 = {
6537
6663
  parameterPath: "parameters",
6538
6664
  mapper: BlobServiceProperties
@@ -6548,7 +6674,7 @@ const blobServicesName = {
6548
6674
  }
6549
6675
  }
6550
6676
  };
6551
- const maxpagesize = {
6677
+ const maxpagesize1 = {
6552
6678
  parameterPath: ["options", "maxpagesize"],
6553
6679
  mapper: {
6554
6680
  serializedName: "$maxpagesize",
@@ -6557,16 +6683,7 @@ const maxpagesize = {
6557
6683
  }
6558
6684
  }
6559
6685
  };
6560
- const filter = {
6561
- parameterPath: ["options", "filter"],
6562
- mapper: {
6563
- serializedName: "$filter",
6564
- type: {
6565
- name: "String"
6566
- }
6567
- }
6568
- };
6569
- const include = {
6686
+ const include1 = {
6570
6687
  parameterPath: ["options", "include"],
6571
6688
  mapper: {
6572
6689
  serializedName: "$include",
@@ -6686,7 +6803,7 @@ const xMsSnapshot = {
6686
6803
  }
6687
6804
  }
6688
6805
  };
6689
- const include1 = {
6806
+ const include2 = {
6690
6807
  parameterPath: ["options", "include"],
6691
6808
  mapper: {
6692
6809
  serializedName: "$include",
@@ -6802,14 +6919,18 @@ class OperationsImpl {
6802
6919
  [Symbol.asyncIterator]() {
6803
6920
  return this;
6804
6921
  },
6805
- byPage: () => {
6806
- return this.listPagingPage(options);
6922
+ byPage: (settings) => {
6923
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
6924
+ throw new Error("maxPageSize is not supported by this operation.");
6925
+ }
6926
+ return this.listPagingPage(options, settings);
6807
6927
  }
6808
6928
  };
6809
6929
  }
6810
- listPagingPage(options) {
6930
+ listPagingPage(options, _settings) {
6811
6931
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
6812
- let result = yield tslib.__await(this._list(options));
6932
+ let result;
6933
+ result = yield tslib.__await(this._list(options));
6813
6934
  yield yield tslib.__await(result.value || []);
6814
6935
  });
6815
6936
  }
@@ -6885,14 +7006,18 @@ class SkusImpl {
6885
7006
  [Symbol.asyncIterator]() {
6886
7007
  return this;
6887
7008
  },
6888
- byPage: () => {
6889
- return this.listPagingPage(options);
7009
+ byPage: (settings) => {
7010
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7011
+ throw new Error("maxPageSize is not supported by this operation.");
7012
+ }
7013
+ return this.listPagingPage(options, settings);
6890
7014
  }
6891
7015
  };
6892
7016
  }
6893
- listPagingPage(options) {
7017
+ listPagingPage(options, _settings) {
6894
7018
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
6895
- let result = yield tslib.__await(this._list(options));
7019
+ let result;
7020
+ result = yield tslib.__await(this._list(options));
6896
7021
  yield yield tslib.__await(result.value || []);
6897
7022
  });
6898
7023
  }
@@ -6997,20 +7122,31 @@ class StorageAccountsImpl {
6997
7122
  [Symbol.asyncIterator]() {
6998
7123
  return this;
6999
7124
  },
7000
- byPage: () => {
7001
- return this.listPagingPage(options);
7125
+ byPage: (settings) => {
7126
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7127
+ throw new Error("maxPageSize is not supported by this operation.");
7128
+ }
7129
+ return this.listPagingPage(options, settings);
7002
7130
  }
7003
7131
  };
7004
7132
  }
7005
- listPagingPage(options) {
7133
+ listPagingPage(options, settings) {
7006
7134
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
7007
- let result = yield tslib.__await(this._list(options));
7008
- yield yield tslib.__await(result.value || []);
7009
- let continuationToken = result.nextLink;
7135
+ let result;
7136
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7137
+ if (!continuationToken) {
7138
+ result = yield tslib.__await(this._list(options));
7139
+ let page = result.value || [];
7140
+ continuationToken = result.nextLink;
7141
+ setContinuationToken(page, continuationToken);
7142
+ yield yield tslib.__await(page);
7143
+ }
7010
7144
  while (continuationToken) {
7011
7145
  result = yield tslib.__await(this._listNext(continuationToken, options));
7012
7146
  continuationToken = result.nextLink;
7013
- yield yield tslib.__await(result.value || []);
7147
+ let page = result.value || [];
7148
+ setContinuationToken(page, continuationToken);
7149
+ yield yield tslib.__await(page);
7014
7150
  }
7015
7151
  });
7016
7152
  }
@@ -7048,20 +7184,31 @@ class StorageAccountsImpl {
7048
7184
  [Symbol.asyncIterator]() {
7049
7185
  return this;
7050
7186
  },
7051
- byPage: () => {
7052
- return this.listByResourceGroupPagingPage(resourceGroupName, options);
7187
+ byPage: (settings) => {
7188
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7189
+ throw new Error("maxPageSize is not supported by this operation.");
7190
+ }
7191
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
7053
7192
  }
7054
7193
  };
7055
7194
  }
7056
- listByResourceGroupPagingPage(resourceGroupName, options) {
7195
+ listByResourceGroupPagingPage(resourceGroupName, options, settings) {
7057
7196
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
7058
- let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
7059
- yield yield tslib.__await(result.value || []);
7060
- let continuationToken = result.nextLink;
7197
+ let result;
7198
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7199
+ if (!continuationToken) {
7200
+ result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
7201
+ let page = result.value || [];
7202
+ continuationToken = result.nextLink;
7203
+ setContinuationToken(page, continuationToken);
7204
+ yield yield tslib.__await(page);
7205
+ }
7061
7206
  while (continuationToken) {
7062
7207
  result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
7063
7208
  continuationToken = result.nextLink;
7064
- yield yield tslib.__await(result.value || []);
7209
+ let page = result.value || [];
7210
+ setContinuationToken(page, continuationToken);
7211
+ yield yield tslib.__await(page);
7065
7212
  }
7066
7213
  });
7067
7214
  }
@@ -7274,9 +7421,16 @@ class StorageAccountsImpl {
7274
7421
  return this.client.sendOperationRequest({ resourceGroupName, accountName, parameters, options }, listServiceSASOperationSpec);
7275
7422
  }
7276
7423
  /**
7277
- * Failover request can be triggered for a storage account in case of availability issues. The failover
7278
- * occurs from the storage account's primary cluster to secondary cluster for RA-GRS accounts. The
7279
- * secondary cluster will become primary after failover.
7424
+ * A failover request can be triggered for a storage account in the event a primary endpoint becomes
7425
+ * unavailable for any reason. The failover occurs from the storage account's primary cluster to the
7426
+ * secondary cluster for RA-GRS accounts. The secondary cluster will become primary after failover and
7427
+ * the account is converted to LRS. In the case of a Planned Failover, the primary and secondary
7428
+ * clusters are swapped after failover and the account remains geo-replicated. Failover should continue
7429
+ * to be used in the event of availability issues as Planned failover is only available while the
7430
+ * primary and secondary endpoints are available. The primary use case of a Planned Failover is
7431
+ * disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter
7432
+ * to 'Planned'. Learn more about the failover options here-
7433
+ * https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidance
7280
7434
  * @param resourceGroupName The name of the resource group within the user's subscription. The name is
7281
7435
  * case insensitive.
7282
7436
  * @param accountName The name of the storage account within the specified resource group. Storage
@@ -7319,9 +7473,16 @@ class StorageAccountsImpl {
7319
7473
  });
7320
7474
  }
7321
7475
  /**
7322
- * Failover request can be triggered for a storage account in case of availability issues. The failover
7323
- * occurs from the storage account's primary cluster to secondary cluster for RA-GRS accounts. The
7324
- * secondary cluster will become primary after failover.
7476
+ * A failover request can be triggered for a storage account in the event a primary endpoint becomes
7477
+ * unavailable for any reason. The failover occurs from the storage account's primary cluster to the
7478
+ * secondary cluster for RA-GRS accounts. The secondary cluster will become primary after failover and
7479
+ * the account is converted to LRS. In the case of a Planned Failover, the primary and secondary
7480
+ * clusters are swapped after failover and the account remains geo-replicated. Failover should continue
7481
+ * to be used in the event of availability issues as Planned failover is only available while the
7482
+ * primary and secondary endpoints are available. The primary use case of a Planned Failover is
7483
+ * disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter
7484
+ * to 'Planned'. Learn more about the failover options here-
7485
+ * https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidance
7325
7486
  * @param resourceGroupName The name of the resource group within the user's subscription. The name is
7326
7487
  * case insensitive.
7327
7488
  * @param accountName The name of the storage account within the specified resource group. Storage
@@ -7759,7 +7920,7 @@ const failoverOperationSpec = {
7759
7920
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/failover",
7760
7921
  httpMethod: "POST",
7761
7922
  responses: { 200: {}, 201: {}, 202: {}, 204: {} },
7762
- queryParameters: [apiVersion],
7923
+ queryParameters: [apiVersion, failoverType],
7763
7924
  urlParameters: [
7764
7925
  $host,
7765
7926
  subscriptionId,
@@ -7920,20 +8081,31 @@ class DeletedAccountsImpl {
7920
8081
  [Symbol.asyncIterator]() {
7921
8082
  return this;
7922
8083
  },
7923
- byPage: () => {
7924
- return this.listPagingPage(options);
8084
+ byPage: (settings) => {
8085
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8086
+ throw new Error("maxPageSize is not supported by this operation.");
8087
+ }
8088
+ return this.listPagingPage(options, settings);
7925
8089
  }
7926
8090
  };
7927
8091
  }
7928
- listPagingPage(options) {
8092
+ listPagingPage(options, settings) {
7929
8093
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
7930
- let result = yield tslib.__await(this._list(options));
7931
- yield yield tslib.__await(result.value || []);
7932
- let continuationToken = result.nextLink;
8094
+ let result;
8095
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
8096
+ if (!continuationToken) {
8097
+ result = yield tslib.__await(this._list(options));
8098
+ let page = result.value || [];
8099
+ continuationToken = result.nextLink;
8100
+ setContinuationToken(page, continuationToken);
8101
+ yield yield tslib.__await(page);
8102
+ }
7933
8103
  while (continuationToken) {
7934
8104
  result = yield tslib.__await(this._listNext(continuationToken, options));
7935
8105
  continuationToken = result.nextLink;
7936
- yield yield tslib.__await(result.value || []);
8106
+ let page = result.value || [];
8107
+ setContinuationToken(page, continuationToken);
8108
+ yield yield tslib.__await(page);
7937
8109
  }
7938
8110
  });
7939
8111
  }
@@ -8071,14 +8243,18 @@ class UsagesImpl {
8071
8243
  [Symbol.asyncIterator]() {
8072
8244
  return this;
8073
8245
  },
8074
- byPage: () => {
8075
- return this.listByLocationPagingPage(location, options);
8246
+ byPage: (settings) => {
8247
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8248
+ throw new Error("maxPageSize is not supported by this operation.");
8249
+ }
8250
+ return this.listByLocationPagingPage(location, options, settings);
8076
8251
  }
8077
8252
  };
8078
8253
  }
8079
- listByLocationPagingPage(location, options) {
8254
+ listByLocationPagingPage(location, options, _settings) {
8080
8255
  return tslib.__asyncGenerator(this, arguments, function* listByLocationPagingPage_1() {
8081
- let result = yield tslib.__await(this._listByLocation(location, options));
8256
+ let result;
8257
+ result = yield tslib.__await(this._listByLocation(location, options));
8082
8258
  yield yield tslib.__await(result.value || []);
8083
8259
  });
8084
8260
  }
@@ -8287,14 +8463,18 @@ class BlobInventoryPoliciesImpl {
8287
8463
  [Symbol.asyncIterator]() {
8288
8464
  return this;
8289
8465
  },
8290
- byPage: () => {
8291
- return this.listPagingPage(resourceGroupName, accountName, options);
8466
+ byPage: (settings) => {
8467
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8468
+ throw new Error("maxPageSize is not supported by this operation.");
8469
+ }
8470
+ return this.listPagingPage(resourceGroupName, accountName, options, settings);
8292
8471
  }
8293
8472
  };
8294
8473
  }
8295
- listPagingPage(resourceGroupName, accountName, options) {
8474
+ listPagingPage(resourceGroupName, accountName, options, _settings) {
8296
8475
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
8297
- let result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
8476
+ let result;
8477
+ result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
8298
8478
  yield yield tslib.__await(result.value || []);
8299
8479
  });
8300
8480
  }
@@ -8504,14 +8684,18 @@ class PrivateEndpointConnectionsImpl {
8504
8684
  [Symbol.asyncIterator]() {
8505
8685
  return this;
8506
8686
  },
8507
- byPage: () => {
8508
- return this.listPagingPage(resourceGroupName, accountName, options);
8687
+ byPage: (settings) => {
8688
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8689
+ throw new Error("maxPageSize is not supported by this operation.");
8690
+ }
8691
+ return this.listPagingPage(resourceGroupName, accountName, options, settings);
8509
8692
  }
8510
8693
  };
8511
8694
  }
8512
- listPagingPage(resourceGroupName, accountName, options) {
8695
+ listPagingPage(resourceGroupName, accountName, options, _settings) {
8513
8696
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
8514
- let result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
8697
+ let result;
8698
+ result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
8515
8699
  yield yield tslib.__await(result.value || []);
8516
8700
  });
8517
8701
  }
@@ -8778,14 +8962,18 @@ class ObjectReplicationPoliciesOperationsImpl {
8778
8962
  [Symbol.asyncIterator]() {
8779
8963
  return this;
8780
8964
  },
8781
- byPage: () => {
8782
- return this.listPagingPage(resourceGroupName, accountName, options);
8965
+ byPage: (settings) => {
8966
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
8967
+ throw new Error("maxPageSize is not supported by this operation.");
8968
+ }
8969
+ return this.listPagingPage(resourceGroupName, accountName, options, settings);
8783
8970
  }
8784
8971
  };
8785
8972
  }
8786
- listPagingPage(resourceGroupName, accountName, options) {
8973
+ listPagingPage(resourceGroupName, accountName, options, _settings) {
8787
8974
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
8788
- let result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
8975
+ let result;
8976
+ result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
8789
8977
  yield yield tslib.__await(result.value || []);
8790
8978
  });
8791
8979
  }
@@ -9002,14 +9190,18 @@ class LocalUsersOperationsImpl {
9002
9190
  [Symbol.asyncIterator]() {
9003
9191
  return this;
9004
9192
  },
9005
- byPage: () => {
9006
- return this.listPagingPage(resourceGroupName, accountName, options);
9193
+ byPage: (settings) => {
9194
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9195
+ throw new Error("maxPageSize is not supported by this operation.");
9196
+ }
9197
+ return this.listPagingPage(resourceGroupName, accountName, options, settings);
9007
9198
  }
9008
9199
  };
9009
9200
  }
9010
- listPagingPage(resourceGroupName, accountName, options) {
9201
+ listPagingPage(resourceGroupName, accountName, options, _settings) {
9011
9202
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
9012
- let result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
9203
+ let result;
9204
+ result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
9013
9205
  yield yield tslib.__await(result.value || []);
9014
9206
  });
9015
9207
  }
@@ -9285,20 +9477,31 @@ class EncryptionScopesImpl {
9285
9477
  [Symbol.asyncIterator]() {
9286
9478
  return this;
9287
9479
  },
9288
- byPage: () => {
9289
- return this.listPagingPage(resourceGroupName, accountName, options);
9480
+ byPage: (settings) => {
9481
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9482
+ throw new Error("maxPageSize is not supported by this operation.");
9483
+ }
9484
+ return this.listPagingPage(resourceGroupName, accountName, options, settings);
9290
9485
  }
9291
9486
  };
9292
9487
  }
9293
- listPagingPage(resourceGroupName, accountName, options) {
9488
+ listPagingPage(resourceGroupName, accountName, options, settings) {
9294
9489
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
9295
- let result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
9296
- yield yield tslib.__await(result.value || []);
9297
- let continuationToken = result.nextLink;
9490
+ let result;
9491
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
9492
+ if (!continuationToken) {
9493
+ result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
9494
+ let page = result.value || [];
9495
+ continuationToken = result.nextLink;
9496
+ setContinuationToken(page, continuationToken);
9497
+ yield yield tslib.__await(page);
9498
+ }
9298
9499
  while (continuationToken) {
9299
9500
  result = yield tslib.__await(this._listNext(resourceGroupName, accountName, continuationToken, options));
9300
9501
  continuationToken = result.nextLink;
9301
- yield yield tslib.__await(result.value || []);
9502
+ let page = result.value || [];
9503
+ setContinuationToken(page, continuationToken);
9504
+ yield yield tslib.__await(page);
9302
9505
  }
9303
9506
  });
9304
9507
  }
@@ -9494,7 +9697,12 @@ const listOperationSpec$8 = {
9494
9697
  bodyMapper: EncryptionScopeListResult
9495
9698
  }
9496
9699
  },
9497
- queryParameters: [apiVersion],
9700
+ queryParameters: [
9701
+ apiVersion,
9702
+ maxpagesize,
9703
+ filter,
9704
+ include
9705
+ ],
9498
9706
  urlParameters: [
9499
9707
  $host,
9500
9708
  subscriptionId,
@@ -9512,7 +9720,12 @@ const listNextOperationSpec$4 = {
9512
9720
  bodyMapper: EncryptionScopeListResult
9513
9721
  }
9514
9722
  },
9515
- queryParameters: [apiVersion],
9723
+ queryParameters: [
9724
+ apiVersion,
9725
+ maxpagesize,
9726
+ filter,
9727
+ include
9728
+ ],
9516
9729
  urlParameters: [
9517
9730
  $host,
9518
9731
  subscriptionId,
@@ -9559,14 +9772,18 @@ class BlobServicesImpl {
9559
9772
  [Symbol.asyncIterator]() {
9560
9773
  return this;
9561
9774
  },
9562
- byPage: () => {
9563
- return this.listPagingPage(resourceGroupName, accountName, options);
9775
+ byPage: (settings) => {
9776
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9777
+ throw new Error("maxPageSize is not supported by this operation.");
9778
+ }
9779
+ return this.listPagingPage(resourceGroupName, accountName, options, settings);
9564
9780
  }
9565
9781
  };
9566
9782
  }
9567
- listPagingPage(resourceGroupName, accountName, options) {
9783
+ listPagingPage(resourceGroupName, accountName, options, _settings) {
9568
9784
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
9569
- let result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
9785
+ let result;
9786
+ result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
9570
9787
  yield yield tslib.__await(result.value || []);
9571
9788
  });
9572
9789
  }
@@ -9726,20 +9943,31 @@ class BlobContainersImpl {
9726
9943
  [Symbol.asyncIterator]() {
9727
9944
  return this;
9728
9945
  },
9729
- byPage: () => {
9730
- return this.listPagingPage(resourceGroupName, accountName, options);
9946
+ byPage: (settings) => {
9947
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
9948
+ throw new Error("maxPageSize is not supported by this operation.");
9949
+ }
9950
+ return this.listPagingPage(resourceGroupName, accountName, options, settings);
9731
9951
  }
9732
9952
  };
9733
9953
  }
9734
- listPagingPage(resourceGroupName, accountName, options) {
9954
+ listPagingPage(resourceGroupName, accountName, options, settings) {
9735
9955
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
9736
- let result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
9737
- yield yield tslib.__await(result.value || []);
9738
- let continuationToken = result.nextLink;
9956
+ let result;
9957
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
9958
+ if (!continuationToken) {
9959
+ result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
9960
+ let page = result.value || [];
9961
+ continuationToken = result.nextLink;
9962
+ setContinuationToken(page, continuationToken);
9963
+ yield yield tslib.__await(page);
9964
+ }
9739
9965
  while (continuationToken) {
9740
9966
  result = yield tslib.__await(this._listNext(resourceGroupName, accountName, continuationToken, options));
9741
9967
  continuationToken = result.nextLink;
9742
- yield yield tslib.__await(result.value || []);
9968
+ let page = result.value || [];
9969
+ setContinuationToken(page, continuationToken);
9970
+ yield yield tslib.__await(page);
9743
9971
  }
9744
9972
  });
9745
9973
  }
@@ -10090,9 +10318,9 @@ const listOperationSpec$6 = {
10090
10318
  },
10091
10319
  queryParameters: [
10092
10320
  apiVersion,
10093
- maxpagesize,
10094
10321
  filter,
10095
- include
10322
+ maxpagesize1,
10323
+ include1
10096
10324
  ],
10097
10325
  urlParameters: [
10098
10326
  $host,
@@ -10392,9 +10620,9 @@ const listNextOperationSpec$3 = {
10392
10620
  },
10393
10621
  queryParameters: [
10394
10622
  apiVersion,
10395
- maxpagesize,
10396
10623
  filter,
10397
- include
10624
+ maxpagesize1,
10625
+ include1
10398
10626
  ],
10399
10627
  urlParameters: [
10400
10628
  $host,
@@ -10569,20 +10797,31 @@ class FileSharesImpl {
10569
10797
  [Symbol.asyncIterator]() {
10570
10798
  return this;
10571
10799
  },
10572
- byPage: () => {
10573
- return this.listPagingPage(resourceGroupName, accountName, options);
10800
+ byPage: (settings) => {
10801
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
10802
+ throw new Error("maxPageSize is not supported by this operation.");
10803
+ }
10804
+ return this.listPagingPage(resourceGroupName, accountName, options, settings);
10574
10805
  }
10575
10806
  };
10576
10807
  }
10577
- listPagingPage(resourceGroupName, accountName, options) {
10808
+ listPagingPage(resourceGroupName, accountName, options, settings) {
10578
10809
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
10579
- let result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
10580
- yield yield tslib.__await(result.value || []);
10581
- let continuationToken = result.nextLink;
10810
+ let result;
10811
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
10812
+ if (!continuationToken) {
10813
+ result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
10814
+ let page = result.value || [];
10815
+ continuationToken = result.nextLink;
10816
+ setContinuationToken(page, continuationToken);
10817
+ yield yield tslib.__await(page);
10818
+ }
10582
10819
  while (continuationToken) {
10583
10820
  result = yield tslib.__await(this._listNext(resourceGroupName, accountName, continuationToken, options));
10584
10821
  continuationToken = result.nextLink;
10585
- yield yield tslib.__await(result.value || []);
10822
+ let page = result.value || [];
10823
+ setContinuationToken(page, continuationToken);
10824
+ yield yield tslib.__await(page);
10586
10825
  }
10587
10826
  });
10588
10827
  }
@@ -10742,8 +10981,8 @@ const listOperationSpec$4 = {
10742
10981
  },
10743
10982
  queryParameters: [
10744
10983
  apiVersion,
10745
- maxpagesize,
10746
10984
  filter,
10985
+ maxpagesize1,
10747
10986
  expand2
10748
10987
  ],
10749
10988
  urlParameters: [
@@ -10838,7 +11077,7 @@ const deleteOperationSpec$2 = {
10838
11077
  bodyMapper: CloudError
10839
11078
  }
10840
11079
  },
10841
- queryParameters: [apiVersion, include1],
11080
+ queryParameters: [apiVersion, include2],
10842
11081
  urlParameters: [
10843
11082
  $host,
10844
11083
  subscriptionId,
@@ -10913,8 +11152,8 @@ const listNextOperationSpec$2 = {
10913
11152
  },
10914
11153
  queryParameters: [
10915
11154
  apiVersion,
10916
- maxpagesize,
10917
11155
  filter,
11156
+ maxpagesize1,
10918
11157
  expand2
10919
11158
  ],
10920
11159
  urlParameters: [
@@ -11090,20 +11329,31 @@ class QueueImpl {
11090
11329
  [Symbol.asyncIterator]() {
11091
11330
  return this;
11092
11331
  },
11093
- byPage: () => {
11094
- return this.listPagingPage(resourceGroupName, accountName, options);
11332
+ byPage: (settings) => {
11333
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
11334
+ throw new Error("maxPageSize is not supported by this operation.");
11335
+ }
11336
+ return this.listPagingPage(resourceGroupName, accountName, options, settings);
11095
11337
  }
11096
11338
  };
11097
11339
  }
11098
- listPagingPage(resourceGroupName, accountName, options) {
11340
+ listPagingPage(resourceGroupName, accountName, options, settings) {
11099
11341
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
11100
- let result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
11101
- yield yield tslib.__await(result.value || []);
11102
- let continuationToken = result.nextLink;
11342
+ let result;
11343
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
11344
+ if (!continuationToken) {
11345
+ result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
11346
+ let page = result.value || [];
11347
+ continuationToken = result.nextLink;
11348
+ setContinuationToken(page, continuationToken);
11349
+ yield yield tslib.__await(page);
11350
+ }
11103
11351
  while (continuationToken) {
11104
11352
  result = yield tslib.__await(this._listNext(resourceGroupName, accountName, continuationToken, options));
11105
11353
  continuationToken = result.nextLink;
11106
- yield yield tslib.__await(result.value || []);
11354
+ let page = result.value || [];
11355
+ setContinuationToken(page, continuationToken);
11356
+ yield yield tslib.__await(page);
11107
11357
  }
11108
11358
  });
11109
11359
  }
@@ -11318,8 +11568,8 @@ const listOperationSpec$2 = {
11318
11568
  },
11319
11569
  queryParameters: [
11320
11570
  apiVersion,
11321
- maxpagesize,
11322
- filter
11571
+ filter,
11572
+ maxpagesize1
11323
11573
  ],
11324
11574
  urlParameters: [
11325
11575
  $host,
@@ -11343,8 +11593,8 @@ const listNextOperationSpec$1 = {
11343
11593
  },
11344
11594
  queryParameters: [
11345
11595
  apiVersion,
11346
- maxpagesize,
11347
- filter
11596
+ filter,
11597
+ maxpagesize1
11348
11598
  ],
11349
11599
  urlParameters: [
11350
11600
  $host,
@@ -11519,20 +11769,31 @@ class TableOperationsImpl {
11519
11769
  [Symbol.asyncIterator]() {
11520
11770
  return this;
11521
11771
  },
11522
- byPage: () => {
11523
- return this.listPagingPage(resourceGroupName, accountName, options);
11772
+ byPage: (settings) => {
11773
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
11774
+ throw new Error("maxPageSize is not supported by this operation.");
11775
+ }
11776
+ return this.listPagingPage(resourceGroupName, accountName, options, settings);
11524
11777
  }
11525
11778
  };
11526
11779
  }
11527
- listPagingPage(resourceGroupName, accountName, options) {
11780
+ listPagingPage(resourceGroupName, accountName, options, settings) {
11528
11781
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
11529
- let result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
11530
- yield yield tslib.__await(result.value || []);
11531
- let continuationToken = result.nextLink;
11782
+ let result;
11783
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
11784
+ if (!continuationToken) {
11785
+ result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
11786
+ let page = result.value || [];
11787
+ continuationToken = result.nextLink;
11788
+ setContinuationToken(page, continuationToken);
11789
+ yield yield tslib.__await(page);
11790
+ }
11532
11791
  while (continuationToken) {
11533
11792
  result = yield tslib.__await(this._listNext(resourceGroupName, accountName, continuationToken, options));
11534
11793
  continuationToken = result.nextLink;
11535
- yield yield tslib.__await(result.value || []);
11794
+ let page = result.value || [];
11795
+ setContinuationToken(page, continuationToken);
11796
+ yield yield tslib.__await(page);
11536
11797
  }
11537
11798
  });
11538
11799
  }
@@ -11791,7 +12052,7 @@ class StorageManagementClient extends coreClient__namespace.ServiceClient {
11791
12052
  * @param options The parameter options
11792
12053
  */
11793
12054
  constructor(credentials, subscriptionId, options) {
11794
- var _a, _b;
12055
+ var _a, _b, _c;
11795
12056
  if (credentials === undefined) {
11796
12057
  throw new Error("'credentials' cannot be null");
11797
12058
  }
@@ -11806,16 +12067,13 @@ class StorageManagementClient extends coreClient__namespace.ServiceClient {
11806
12067
  requestContentType: "application/json; charset=utf-8",
11807
12068
  credential: credentials
11808
12069
  };
11809
- const packageDetails = `azsdk-js-arm-storage/18.0.1`;
12070
+ const packageDetails = `azsdk-js-arm-storage/18.1.0`;
11810
12071
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
11811
12072
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
11812
12073
  : `${packageDetails}`;
11813
- if (!options.credentialScopes) {
11814
- options.credentialScopes = ["https://management.azure.com/.default"];
11815
- }
11816
12074
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
11817
12075
  userAgentPrefix
11818
- }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
12076
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
11819
12077
  super(optionsWithDefaults);
11820
12078
  let bearerTokenAuthenticationPolicyFound = false;
11821
12079
  if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
@@ -11832,7 +12090,7 @@ class StorageManagementClient extends coreClient__namespace.ServiceClient {
11832
12090
  });
11833
12091
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
11834
12092
  credential: credentials,
11835
- scopes: `${optionsWithDefaults.credentialScopes}`,
12093
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
11836
12094
  challengeCallbacks: {
11837
12095
  authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
11838
12096
  }
@@ -11842,7 +12100,7 @@ class StorageManagementClient extends coreClient__namespace.ServiceClient {
11842
12100
  this.subscriptionId = subscriptionId;
11843
12101
  // Assigning values to Constant parameters
11844
12102
  this.$host = options.$host || "https://management.azure.com";
11845
- this.apiVersion = options.apiVersion || "2022-05-01";
12103
+ this.apiVersion = options.apiVersion || "2022-09-01";
11846
12104
  this.operations = new OperationsImpl(this);
11847
12105
  this.skus = new SkusImpl(this);
11848
12106
  this.storageAccounts = new StorageAccountsImpl(this);
@@ -11895,4 +12153,5 @@ class StorageManagementClient extends coreClient__namespace.ServiceClient {
11895
12153
  }
11896
12154
 
11897
12155
  exports.StorageManagementClient = StorageManagementClient;
12156
+ exports.getContinuationToken = getContinuationToken;
11898
12157
  //# sourceMappingURL=index.js.map