@azure/arm-storage 18.0.1-alpha.20221128.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 (192) 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
@@ -604,6 +604,9 @@ export type EncryptionScopesGetResponse = EncryptionScope;
604
604
 
605
605
  // @public
606
606
  export interface EncryptionScopesListNextOptionalParams extends coreClient.OperationOptions {
607
+ filter?: string;
608
+ include?: ListEncryptionScopesInclude;
609
+ maxpagesize?: number;
607
610
  }
608
611
 
609
612
  // @public
@@ -611,6 +614,9 @@ export type EncryptionScopesListNextResponse = EncryptionScopeListResult;
611
614
 
612
615
  // @public
613
616
  export interface EncryptionScopesListOptionalParams extends coreClient.OperationOptions {
617
+ filter?: string;
618
+ include?: ListEncryptionScopesInclude;
619
+ maxpagesize?: number;
614
620
  }
615
621
 
616
622
  // @public
@@ -873,6 +879,9 @@ export interface GeoReplicationStats {
873
879
  // @public
874
880
  export type GeoReplicationStatus = string;
875
881
 
882
+ // @public
883
+ export function getContinuationToken(page: unknown): string | undefined;
884
+
876
885
  // @public
877
886
  export type HttpProtocol = "https,http" | "https";
878
887
 
@@ -1190,6 +1199,13 @@ export enum KnownListContainersInclude {
1190
1199
  Deleted = "deleted"
1191
1200
  }
1192
1201
 
1202
+ // @public
1203
+ export enum KnownListEncryptionScopesInclude {
1204
+ All = "All",
1205
+ Disabled = "Disabled",
1206
+ Enabled = "Enabled"
1207
+ }
1208
+
1193
1209
  // @public
1194
1210
  export enum KnownManagementPolicyName {
1195
1211
  Default = "default"
@@ -1474,6 +1490,9 @@ export interface ListContainerItems {
1474
1490
  // @public
1475
1491
  export type ListContainersInclude = string;
1476
1492
 
1493
+ // @public
1494
+ export type ListEncryptionScopesInclude = string;
1495
+
1477
1496
  // @public (undocumented)
1478
1497
  export interface ListQueue extends Resource {
1479
1498
  metadata?: {
@@ -1628,7 +1647,9 @@ export interface ManagementPolicyBaseBlob {
1628
1647
  delete?: DateAfterModification;
1629
1648
  enableAutoTierToHotFromCool?: boolean;
1630
1649
  tierToArchive?: DateAfterModification;
1650
+ tierToCold?: DateAfterModification;
1631
1651
  tierToCool?: DateAfterModification;
1652
+ tierToHot?: DateAfterModification;
1632
1653
  }
1633
1654
 
1634
1655
  // @public
@@ -1664,14 +1685,18 @@ export interface ManagementPolicySchema {
1664
1685
  export interface ManagementPolicySnapShot {
1665
1686
  delete?: DateAfterCreation;
1666
1687
  tierToArchive?: DateAfterCreation;
1688
+ tierToCold?: DateAfterCreation;
1667
1689
  tierToCool?: DateAfterCreation;
1690
+ tierToHot?: DateAfterCreation;
1668
1691
  }
1669
1692
 
1670
1693
  // @public
1671
1694
  export interface ManagementPolicyVersion {
1672
1695
  delete?: DateAfterCreation;
1673
1696
  tierToArchive?: DateAfterCreation;
1697
+ tierToCold?: DateAfterCreation;
1674
1698
  tierToCool?: DateAfterCreation;
1699
+ tierToHot?: DateAfterCreation;
1675
1700
  }
1676
1701
 
1677
1702
  // @public
package/src/index.ts CHANGED
@@ -7,6 +7,7 @@
7
7
  */
8
8
 
9
9
  /// <reference lib="esnext.asynciterable" />
10
+ export { getContinuationToken } from "./pagingHelper";
10
11
  export * from "./models";
11
12
  export { StorageManagementClient } from "./storageManagementClient";
12
13
  export * from "./operationsInterfaces";
@@ -993,10 +993,14 @@ export interface ManagementPolicyAction {
993
993
 
994
994
  /** Management policy action for base blob. */
995
995
  export interface ManagementPolicyBaseBlob {
996
- /** The function to tier blobs to cool storage. Support blobs currently at Hot tier */
996
+ /** The function to tier blobs to cool storage. */
997
997
  tierToCool?: DateAfterModification;
998
- /** The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier */
998
+ /** The function to tier blobs to archive storage. */
999
999
  tierToArchive?: DateAfterModification;
1000
+ /** The function to tier blobs to cold storage. */
1001
+ tierToCold?: DateAfterModification;
1002
+ /** The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts */
1003
+ tierToHot?: DateAfterModification;
1000
1004
  /** The function to delete the blob */
1001
1005
  delete?: DateAfterModification;
1002
1006
  /** This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan. */
@@ -1017,10 +1021,14 @@ export interface DateAfterModification {
1017
1021
 
1018
1022
  /** Management policy action for snapshot. */
1019
1023
  export interface ManagementPolicySnapShot {
1020
- /** The function to tier blob snapshot to cool storage. Support blob snapshot currently at Hot tier */
1024
+ /** The function to tier blob snapshot to cool storage. */
1021
1025
  tierToCool?: DateAfterCreation;
1022
- /** The function to tier blob snapshot to archive storage. Support blob snapshot currently at Hot or Cool tier */
1026
+ /** The function to tier blob snapshot to archive storage. */
1023
1027
  tierToArchive?: DateAfterCreation;
1028
+ /** The function to tier blobs to cold storage. */
1029
+ tierToCold?: DateAfterCreation;
1030
+ /** The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts */
1031
+ tierToHot?: DateAfterCreation;
1024
1032
  /** The function to delete the blob snapshot */
1025
1033
  delete?: DateAfterCreation;
1026
1034
  }
@@ -1035,10 +1043,14 @@ export interface DateAfterCreation {
1035
1043
 
1036
1044
  /** Management policy action for blob version. */
1037
1045
  export interface ManagementPolicyVersion {
1038
- /** The function to tier blob version to cool storage. Support blob version currently at Hot tier */
1046
+ /** The function to tier blob version to cool storage. */
1039
1047
  tierToCool?: DateAfterCreation;
1040
- /** The function to tier blob version to archive storage. Support blob version currently at Hot or Cool tier */
1048
+ /** The function to tier blob version to archive storage. */
1041
1049
  tierToArchive?: DateAfterCreation;
1050
+ /** The function to tier blobs to cold storage. */
1051
+ tierToCold?: DateAfterCreation;
1052
+ /** The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts */
1053
+ tierToHot?: DateAfterCreation;
1042
1054
  /** The function to delete the blob version */
1043
1055
  delete?: DateAfterCreation;
1044
1056
  }
@@ -3259,6 +3271,27 @@ export enum KnownEncryptionScopeState {
3259
3271
  */
3260
3272
  export type EncryptionScopeState = string;
3261
3273
 
3274
+ /** Known values of {@link ListEncryptionScopesInclude} that the service accepts. */
3275
+ export enum KnownListEncryptionScopesInclude {
3276
+ /** All */
3277
+ All = "All",
3278
+ /** Enabled */
3279
+ Enabled = "Enabled",
3280
+ /** Disabled */
3281
+ Disabled = "Disabled"
3282
+ }
3283
+
3284
+ /**
3285
+ * Defines values for ListEncryptionScopesInclude. \
3286
+ * {@link KnownListEncryptionScopesInclude} can be used interchangeably with ListEncryptionScopesInclude,
3287
+ * this enum contains the known values that the service supports.
3288
+ * ### Known values supported by the service
3289
+ * **All** \
3290
+ * **Enabled** \
3291
+ * **Disabled**
3292
+ */
3293
+ export type ListEncryptionScopesInclude = string;
3294
+
3262
3295
  /** Known values of {@link AllowedMethods} that the service accepts. */
3263
3296
  export enum KnownAllowedMethods {
3264
3297
  /** Delete */
@@ -3932,14 +3965,28 @@ export type EncryptionScopesGetResponse = EncryptionScope;
3932
3965
 
3933
3966
  /** Optional parameters. */
3934
3967
  export interface EncryptionScopesListOptionalParams
3935
- extends coreClient.OperationOptions {}
3968
+ extends coreClient.OperationOptions {
3969
+ /** Optional, specifies the maximum number of encryption scopes that will be included in the list response. */
3970
+ maxpagesize?: number;
3971
+ /** Optional. When specified, only encryption scope names starting with the filter will be listed. */
3972
+ filter?: string;
3973
+ /** Optional, when specified, will list encryption scopes with the specific state. Defaults to All */
3974
+ include?: ListEncryptionScopesInclude;
3975
+ }
3936
3976
 
3937
3977
  /** Contains response data for the list operation. */
3938
3978
  export type EncryptionScopesListResponse = EncryptionScopeListResult;
3939
3979
 
3940
3980
  /** Optional parameters. */
3941
3981
  export interface EncryptionScopesListNextOptionalParams
3942
- extends coreClient.OperationOptions {}
3982
+ extends coreClient.OperationOptions {
3983
+ /** Optional, specifies the maximum number of encryption scopes that will be included in the list response. */
3984
+ maxpagesize?: number;
3985
+ /** Optional. When specified, only encryption scope names starting with the filter will be listed. */
3986
+ filter?: string;
3987
+ /** Optional, when specified, will list encryption scopes with the specific state. Defaults to All */
3988
+ include?: ListEncryptionScopesInclude;
3989
+ }
3943
3990
 
3944
3991
  /** Contains response data for the listNext operation. */
3945
3992
  export type EncryptionScopesListNextResponse = EncryptionScopeListResult;
@@ -3968,10 +4015,10 @@ export type BlobServicesGetServicePropertiesResponse = BlobServiceProperties;
3968
4015
  /** Optional parameters. */
3969
4016
  export interface BlobContainersListOptionalParams
3970
4017
  extends coreClient.OperationOptions {
3971
- /** Optional. Specified maximum number of containers that can be included in the list. */
3972
- maxpagesize?: string;
3973
4018
  /** Optional. When specified, only container names starting with the filter will be listed. */
3974
4019
  filter?: string;
4020
+ /** Optional. Specified maximum number of containers that can be included in the list. */
4021
+ maxpagesize?: string;
3975
4022
  /** Optional, used to include the properties for soft deleted blob containers. */
3976
4023
  include?: ListContainersInclude;
3977
4024
  }
@@ -4091,10 +4138,10 @@ export interface BlobContainersObjectLevelWormOptionalParams
4091
4138
  /** Optional parameters. */
4092
4139
  export interface BlobContainersListNextOptionalParams
4093
4140
  extends coreClient.OperationOptions {
4094
- /** Optional. Specified maximum number of containers that can be included in the list. */
4095
- maxpagesize?: string;
4096
4141
  /** Optional. When specified, only container names starting with the filter will be listed. */
4097
4142
  filter?: string;
4143
+ /** Optional. Specified maximum number of containers that can be included in the list. */
4144
+ maxpagesize?: string;
4098
4145
  /** Optional, used to include the properties for soft deleted blob containers. */
4099
4146
  include?: ListContainersInclude;
4100
4147
  }
@@ -4126,10 +4173,10 @@ export type FileServicesGetServicePropertiesResponse = FileServiceProperties;
4126
4173
  /** Optional parameters. */
4127
4174
  export interface FileSharesListOptionalParams
4128
4175
  extends coreClient.OperationOptions {
4129
- /** Optional. Specified maximum number of shares that can be included in the list. */
4130
- maxpagesize?: string;
4131
4176
  /** Optional. When specified, only share names starting with the filter will be listed. */
4132
4177
  filter?: string;
4178
+ /** Optional. Specified maximum number of shares that can be included in the list. */
4179
+ maxpagesize?: string;
4133
4180
  /** Optional, used to expand the properties within share's properties. Valid values are: deleted, snapshots. Should be passed as a string with delimiter ',' */
4134
4181
  expand?: string;
4135
4182
  }
@@ -4195,10 +4242,10 @@ export type FileSharesLeaseResponse = FileSharesLeaseHeaders &
4195
4242
  /** Optional parameters. */
4196
4243
  export interface FileSharesListNextOptionalParams
4197
4244
  extends coreClient.OperationOptions {
4198
- /** Optional. Specified maximum number of shares that can be included in the list. */
4199
- maxpagesize?: string;
4200
4245
  /** Optional. When specified, only share names starting with the filter will be listed. */
4201
4246
  filter?: string;
4247
+ /** Optional. Specified maximum number of shares that can be included in the list. */
4248
+ maxpagesize?: string;
4202
4249
  /** Optional, used to expand the properties within share's properties. Valid values are: deleted, snapshots. Should be passed as a string with delimiter ',' */
4203
4250
  expand?: string;
4204
4251
  }
@@ -4253,10 +4300,10 @@ export interface QueueDeleteOptionalParams
4253
4300
 
4254
4301
  /** Optional parameters. */
4255
4302
  export interface QueueListOptionalParams extends coreClient.OperationOptions {
4256
- /** Optional, a maximum number of queues that should be included in a list queue response */
4257
- maxpagesize?: string;
4258
4303
  /** Optional, When specified, only the queues with a name starting with the given filter will be listed. */
4259
4304
  filter?: string;
4305
+ /** Optional, a maximum number of queues that should be included in a list queue response */
4306
+ maxpagesize?: string;
4260
4307
  }
4261
4308
 
4262
4309
  /** Contains response data for the list operation. */
@@ -4265,10 +4312,10 @@ export type QueueListResponse = ListQueueResource;
4265
4312
  /** Optional parameters. */
4266
4313
  export interface QueueListNextOptionalParams
4267
4314
  extends coreClient.OperationOptions {
4268
- /** Optional, a maximum number of queues that should be included in a list queue response */
4269
- maxpagesize?: string;
4270
4315
  /** Optional, When specified, only the queues with a name starting with the given filter will be listed. */
4271
4316
  filter?: string;
4317
+ /** Optional, a maximum number of queues that should be included in a list queue response */
4318
+ maxpagesize?: string;
4272
4319
  }
4273
4320
 
4274
4321
  /** Contains response data for the listNext operation. */
@@ -2444,6 +2444,20 @@ export const ManagementPolicyBaseBlob: coreClient.CompositeMapper = {
2444
2444
  className: "DateAfterModification"
2445
2445
  }
2446
2446
  },
2447
+ tierToCold: {
2448
+ serializedName: "tierToCold",
2449
+ type: {
2450
+ name: "Composite",
2451
+ className: "DateAfterModification"
2452
+ }
2453
+ },
2454
+ tierToHot: {
2455
+ serializedName: "tierToHot",
2456
+ type: {
2457
+ name: "Composite",
2458
+ className: "DateAfterModification"
2459
+ }
2460
+ },
2447
2461
  delete: {
2448
2462
  serializedName: "delete",
2449
2463
  type: {
@@ -2529,6 +2543,20 @@ export const ManagementPolicySnapShot: coreClient.CompositeMapper = {
2529
2543
  className: "DateAfterCreation"
2530
2544
  }
2531
2545
  },
2546
+ tierToCold: {
2547
+ serializedName: "tierToCold",
2548
+ type: {
2549
+ name: "Composite",
2550
+ className: "DateAfterCreation"
2551
+ }
2552
+ },
2553
+ tierToHot: {
2554
+ serializedName: "tierToHot",
2555
+ type: {
2556
+ name: "Composite",
2557
+ className: "DateAfterCreation"
2558
+ }
2559
+ },
2532
2560
  delete: {
2533
2561
  serializedName: "delete",
2534
2562
  type: {
@@ -2589,6 +2617,20 @@ export const ManagementPolicyVersion: coreClient.CompositeMapper = {
2589
2617
  className: "DateAfterCreation"
2590
2618
  }
2591
2619
  },
2620
+ tierToCold: {
2621
+ serializedName: "tierToCold",
2622
+ type: {
2623
+ name: "Composite",
2624
+ className: "DateAfterCreation"
2625
+ }
2626
+ },
2627
+ tierToHot: {
2628
+ serializedName: "tierToHot",
2629
+ type: {
2630
+ name: "Composite",
2631
+ className: "DateAfterCreation"
2632
+ }
2633
+ },
2592
2634
  delete: {
2593
2635
  serializedName: "delete",
2594
2636
  type: {
@@ -67,7 +67,7 @@ export const $host: OperationURLParameter = {
67
67
  export const apiVersion: OperationQueryParameter = {
68
68
  parameterPath: "apiVersion",
69
69
  mapper: {
70
- defaultValue: "2022-05-01",
70
+ defaultValue: "2022-09-01",
71
71
  isConstant: true,
72
72
  serializedName: "api-version",
73
73
  type: {
@@ -185,6 +185,18 @@ export const parameters3: OperationParameter = {
185
185
  mapper: ServiceSasParametersMapper
186
186
  };
187
187
 
188
+ export const failoverType: OperationQueryParameter = {
189
+ parameterPath: ["options", "failoverType"],
190
+ mapper: {
191
+ defaultValue: "Planned",
192
+ isConstant: true,
193
+ serializedName: "failoverType",
194
+ type: {
195
+ name: "String"
196
+ }
197
+ }
198
+ };
199
+
188
200
  export const requestType: OperationQueryParameter = {
189
201
  parameterPath: "requestType",
190
202
  mapper: {
@@ -346,6 +358,40 @@ export const encryptionScopeName: OperationURLParameter = {
346
358
  }
347
359
  };
348
360
 
361
+ export const maxpagesize: OperationQueryParameter = {
362
+ parameterPath: ["options", "maxpagesize"],
363
+ mapper: {
364
+ constraints: {
365
+ InclusiveMaximum: 5000,
366
+ InclusiveMinimum: 1
367
+ },
368
+ serializedName: "$maxpagesize",
369
+ type: {
370
+ name: "Number"
371
+ }
372
+ }
373
+ };
374
+
375
+ export const filter: OperationQueryParameter = {
376
+ parameterPath: ["options", "filter"],
377
+ mapper: {
378
+ serializedName: "$filter",
379
+ type: {
380
+ name: "String"
381
+ }
382
+ }
383
+ };
384
+
385
+ export const include: OperationQueryParameter = {
386
+ parameterPath: ["options", "include"],
387
+ mapper: {
388
+ serializedName: "$include",
389
+ type: {
390
+ name: "String"
391
+ }
392
+ }
393
+ };
394
+
349
395
  export const parameters5: OperationParameter = {
350
396
  parameterPath: "parameters",
351
397
  mapper: BlobServicePropertiesMapper
@@ -363,7 +409,7 @@ export const blobServicesName: OperationURLParameter = {
363
409
  }
364
410
  };
365
411
 
366
- export const maxpagesize: OperationQueryParameter = {
412
+ export const maxpagesize1: OperationQueryParameter = {
367
413
  parameterPath: ["options", "maxpagesize"],
368
414
  mapper: {
369
415
  serializedName: "$maxpagesize",
@@ -373,17 +419,7 @@ export const maxpagesize: OperationQueryParameter = {
373
419
  }
374
420
  };
375
421
 
376
- export const filter: OperationQueryParameter = {
377
- parameterPath: ["options", "filter"],
378
- mapper: {
379
- serializedName: "$filter",
380
- type: {
381
- name: "String"
382
- }
383
- }
384
- };
385
-
386
- export const include: OperationQueryParameter = {
422
+ export const include1: OperationQueryParameter = {
387
423
  parameterPath: ["options", "include"],
388
424
  mapper: {
389
425
  serializedName: "$include",
@@ -518,7 +554,7 @@ export const xMsSnapshot: OperationParameter = {
518
554
  }
519
555
  };
520
556
 
521
- export const include1: OperationQueryParameter = {
557
+ export const include2: OperationQueryParameter = {
522
558
  parameterPath: ["options", "include"],
523
559
  mapper: {
524
560
  serializedName: "$include",
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { BlobContainers } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -84,8 +85,16 @@ export class BlobContainersImpl implements BlobContainers {
84
85
  [Symbol.asyncIterator]() {
85
86
  return this;
86
87
  },
87
- byPage: () => {
88
- return this.listPagingPage(resourceGroupName, accountName, options);
88
+ byPage: (settings?: PageSettings) => {
89
+ if (settings?.maxPageSize) {
90
+ throw new Error("maxPageSize is not supported by this operation.");
91
+ }
92
+ return this.listPagingPage(
93
+ resourceGroupName,
94
+ accountName,
95
+ options,
96
+ settings
97
+ );
89
98
  }
90
99
  };
91
100
  }
@@ -93,11 +102,18 @@ export class BlobContainersImpl implements BlobContainers {
93
102
  private async *listPagingPage(
94
103
  resourceGroupName: string,
95
104
  accountName: string,
96
- options?: BlobContainersListOptionalParams
105
+ options?: BlobContainersListOptionalParams,
106
+ settings?: PageSettings
97
107
  ): AsyncIterableIterator<ListContainerItem[]> {
98
- let result = await this._list(resourceGroupName, accountName, options);
99
- yield result.value || [];
100
- let continuationToken = result.nextLink;
108
+ let result: BlobContainersListResponse;
109
+ let continuationToken = settings?.continuationToken;
110
+ if (!continuationToken) {
111
+ result = await this._list(resourceGroupName, accountName, options);
112
+ let page = result.value || [];
113
+ continuationToken = result.nextLink;
114
+ setContinuationToken(page, continuationToken);
115
+ yield page;
116
+ }
101
117
  while (continuationToken) {
102
118
  result = await this._listNext(
103
119
  resourceGroupName,
@@ -106,7 +122,9 @@ export class BlobContainersImpl implements BlobContainers {
106
122
  options
107
123
  );
108
124
  continuationToken = result.nextLink;
109
- yield result.value || [];
125
+ let page = result.value || [];
126
+ setContinuationToken(page, continuationToken);
127
+ yield page;
110
128
  }
111
129
  }
112
130
 
@@ -620,9 +638,9 @@ const listOperationSpec: coreClient.OperationSpec = {
620
638
  },
621
639
  queryParameters: [
622
640
  Parameters.apiVersion,
623
- Parameters.maxpagesize,
624
641
  Parameters.filter,
625
- Parameters.include
642
+ Parameters.maxpagesize1,
643
+ Parameters.include1
626
644
  ],
627
645
  urlParameters: [
628
646
  Parameters.$host,
@@ -936,9 +954,9 @@ const listNextOperationSpec: coreClient.OperationSpec = {
936
954
  },
937
955
  queryParameters: [
938
956
  Parameters.apiVersion,
939
- Parameters.maxpagesize,
940
957
  Parameters.filter,
941
- Parameters.include
958
+ Parameters.maxpagesize1,
959
+ Parameters.include1
942
960
  ],
943
961
  urlParameters: [
944
962
  Parameters.$host,
@@ -6,7 +6,7 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
10
  import { BlobInventoryPolicies } from "../operationsInterfaces";
11
11
  import * as coreClient from "@azure/core-client";
12
12
  import * as Mappers from "../models/mappers";
@@ -15,13 +15,13 @@ import { StorageManagementClient } from "../storageManagementClient";
15
15
  import {
16
16
  BlobInventoryPolicy,
17
17
  BlobInventoryPoliciesListOptionalParams,
18
+ BlobInventoryPoliciesListResponse,
18
19
  BlobInventoryPolicyName,
19
20
  BlobInventoryPoliciesGetOptionalParams,
20
21
  BlobInventoryPoliciesGetResponse,
21
22
  BlobInventoryPoliciesCreateOrUpdateOptionalParams,
22
23
  BlobInventoryPoliciesCreateOrUpdateResponse,
23
- BlobInventoryPoliciesDeleteOptionalParams,
24
- BlobInventoryPoliciesListResponse
24
+ BlobInventoryPoliciesDeleteOptionalParams
25
25
  } from "../models";
26
26
 
27
27
  /// <reference lib="esnext.asynciterable" />
@@ -59,8 +59,16 @@ export class BlobInventoryPoliciesImpl implements BlobInventoryPolicies {
59
59
  [Symbol.asyncIterator]() {
60
60
  return this;
61
61
  },
62
- byPage: () => {
63
- return this.listPagingPage(resourceGroupName, accountName, options);
62
+ byPage: (settings?: PageSettings) => {
63
+ if (settings?.maxPageSize) {
64
+ throw new Error("maxPageSize is not supported by this operation.");
65
+ }
66
+ return this.listPagingPage(
67
+ resourceGroupName,
68
+ accountName,
69
+ options,
70
+ settings
71
+ );
64
72
  }
65
73
  };
66
74
  }
@@ -68,9 +76,11 @@ export class BlobInventoryPoliciesImpl implements BlobInventoryPolicies {
68
76
  private async *listPagingPage(
69
77
  resourceGroupName: string,
70
78
  accountName: string,
71
- options?: BlobInventoryPoliciesListOptionalParams
79
+ options?: BlobInventoryPoliciesListOptionalParams,
80
+ _settings?: PageSettings
72
81
  ): AsyncIterableIterator<BlobInventoryPolicy[]> {
73
- let result = await this._list(resourceGroupName, accountName, options);
82
+ let result: BlobInventoryPoliciesListResponse;
83
+ result = await this._list(resourceGroupName, accountName, options);
74
84
  yield result.value || [];
75
85
  }
76
86
 
@@ -6,7 +6,7 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
10
  import { BlobServices } from "../operationsInterfaces";
11
11
  import * as coreClient from "@azure/core-client";
12
12
  import * as Mappers from "../models/mappers";
@@ -57,8 +57,16 @@ export class BlobServicesImpl implements BlobServices {
57
57
  [Symbol.asyncIterator]() {
58
58
  return this;
59
59
  },
60
- byPage: () => {
61
- return this.listPagingPage(resourceGroupName, accountName, options);
60
+ byPage: (settings?: PageSettings) => {
61
+ if (settings?.maxPageSize) {
62
+ throw new Error("maxPageSize is not supported by this operation.");
63
+ }
64
+ return this.listPagingPage(
65
+ resourceGroupName,
66
+ accountName,
67
+ options,
68
+ settings
69
+ );
62
70
  }
63
71
  };
64
72
  }
@@ -66,9 +74,11 @@ export class BlobServicesImpl implements BlobServices {
66
74
  private async *listPagingPage(
67
75
  resourceGroupName: string,
68
76
  accountName: string,
69
- options?: BlobServicesListOptionalParams
77
+ options?: BlobServicesListOptionalParams,
78
+ _settings?: PageSettings
70
79
  ): AsyncIterableIterator<BlobServiceProperties[]> {
71
- let result = await this._list(resourceGroupName, accountName, options);
80
+ let result: BlobServicesListResponse;
81
+ result = await this._list(resourceGroupName, accountName, options);
72
82
  yield result.value || [];
73
83
  }
74
84
 
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { DeletedAccounts } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -50,22 +51,34 @@ export class DeletedAccountsImpl implements DeletedAccounts {
50
51
  [Symbol.asyncIterator]() {
51
52
  return this;
52
53
  },
53
- byPage: () => {
54
- return this.listPagingPage(options);
54
+ byPage: (settings?: PageSettings) => {
55
+ if (settings?.maxPageSize) {
56
+ throw new Error("maxPageSize is not supported by this operation.");
57
+ }
58
+ return this.listPagingPage(options, settings);
55
59
  }
56
60
  };
57
61
  }
58
62
 
59
63
  private async *listPagingPage(
60
- options?: DeletedAccountsListOptionalParams
64
+ options?: DeletedAccountsListOptionalParams,
65
+ settings?: PageSettings
61
66
  ): AsyncIterableIterator<DeletedAccount[]> {
62
- let result = await this._list(options);
63
- yield result.value || [];
64
- let continuationToken = result.nextLink;
67
+ let result: DeletedAccountsListResponse;
68
+ let continuationToken = settings?.continuationToken;
69
+ if (!continuationToken) {
70
+ result = await this._list(options);
71
+ let page = result.value || [];
72
+ continuationToken = result.nextLink;
73
+ setContinuationToken(page, continuationToken);
74
+ yield page;
75
+ }
65
76
  while (continuationToken) {
66
77
  result = await this._listNext(continuationToken, options);
67
78
  continuationToken = result.nextLink;
68
- yield result.value || [];
79
+ let page = result.value || [];
80
+ setContinuationToken(page, continuationToken);
81
+ yield page;
69
82
  }
70
83
  }
71
84