@azure/arm-storage-profile-2020-09-01-hybrid 2.0.1-alpha.20221128.1 → 2.1.1-alpha.20221223.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 (211) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/dist/index.js +266 -53
  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/blobInventoryPoliciesCreateOrUpdateSample.d.ts +2 -0
  7. package/dist-esm/samples-dev/blobInventoryPoliciesCreateOrUpdateSample.d.ts.map +1 -0
  8. package/dist-esm/samples-dev/blobInventoryPoliciesCreateOrUpdateSample.js +60 -0
  9. package/dist-esm/samples-dev/blobInventoryPoliciesCreateOrUpdateSample.js.map +1 -0
  10. package/dist-esm/samples-dev/blobInventoryPoliciesDeleteSample.d.ts +2 -0
  11. package/dist-esm/samples-dev/blobInventoryPoliciesDeleteSample.d.ts.map +1 -0
  12. package/dist-esm/samples-dev/blobInventoryPoliciesDeleteSample.js +39 -0
  13. package/dist-esm/samples-dev/blobInventoryPoliciesDeleteSample.js.map +1 -0
  14. package/dist-esm/samples-dev/blobInventoryPoliciesGetSample.d.ts +2 -0
  15. package/dist-esm/samples-dev/blobInventoryPoliciesGetSample.d.ts.map +1 -0
  16. package/dist-esm/samples-dev/blobInventoryPoliciesGetSample.js +39 -0
  17. package/dist-esm/samples-dev/blobInventoryPoliciesGetSample.js.map +1 -0
  18. package/dist-esm/samples-dev/blobInventoryPoliciesListSample.d.ts +2 -0
  19. package/dist-esm/samples-dev/blobInventoryPoliciesListSample.d.ts.map +1 -0
  20. package/dist-esm/samples-dev/blobInventoryPoliciesListSample.js +52 -0
  21. package/dist-esm/samples-dev/blobInventoryPoliciesListSample.js.map +1 -0
  22. package/dist-esm/samples-dev/encryptionScopesGetSample.d.ts +2 -0
  23. package/dist-esm/samples-dev/encryptionScopesGetSample.d.ts.map +1 -0
  24. package/dist-esm/samples-dev/encryptionScopesGetSample.js +39 -0
  25. package/dist-esm/samples-dev/encryptionScopesGetSample.js.map +1 -0
  26. package/dist-esm/samples-dev/encryptionScopesListSample.d.ts +2 -0
  27. package/dist-esm/samples-dev/encryptionScopesListSample.d.ts.map +1 -0
  28. package/dist-esm/samples-dev/encryptionScopesListSample.js +52 -0
  29. package/dist-esm/samples-dev/encryptionScopesListSample.js.map +1 -0
  30. package/dist-esm/samples-dev/encryptionScopesPatchSample.d.ts +2 -0
  31. package/dist-esm/samples-dev/encryptionScopesPatchSample.d.ts.map +1 -0
  32. package/dist-esm/samples-dev/encryptionScopesPatchSample.js +45 -0
  33. package/dist-esm/samples-dev/encryptionScopesPatchSample.js.map +1 -0
  34. package/dist-esm/samples-dev/encryptionScopesPutSample.d.ts +2 -0
  35. package/dist-esm/samples-dev/encryptionScopesPutSample.d.ts.map +1 -0
  36. package/dist-esm/samples-dev/encryptionScopesPutSample.js +40 -0
  37. package/dist-esm/samples-dev/encryptionScopesPutSample.js.map +1 -0
  38. package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.d.ts +2 -0
  39. package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.d.ts.map +1 -0
  40. package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.js +225 -0
  41. package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.js.map +1 -0
  42. package/dist-esm/samples-dev/managementPoliciesDeleteSample.d.ts +2 -0
  43. package/dist-esm/samples-dev/managementPoliciesDeleteSample.d.ts.map +1 -0
  44. package/dist-esm/samples-dev/managementPoliciesDeleteSample.js +39 -0
  45. package/dist-esm/samples-dev/managementPoliciesDeleteSample.js.map +1 -0
  46. package/dist-esm/samples-dev/managementPoliciesGetSample.d.ts +2 -0
  47. package/dist-esm/samples-dev/managementPoliciesGetSample.d.ts.map +1 -0
  48. package/dist-esm/samples-dev/managementPoliciesGetSample.js +39 -0
  49. package/dist-esm/samples-dev/managementPoliciesGetSample.js.map +1 -0
  50. package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.d.ts +2 -0
  51. package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.d.ts.map +1 -0
  52. package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.js +152 -0
  53. package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.js.map +1 -0
  54. package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.d.ts +2 -0
  55. package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.d.ts.map +1 -0
  56. package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.js +39 -0
  57. package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.js.map +1 -0
  58. package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.d.ts +2 -0
  59. package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.d.ts.map +1 -0
  60. package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.js +39 -0
  61. package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.js.map +1 -0
  62. package/dist-esm/samples-dev/objectReplicationPoliciesListSample.d.ts +2 -0
  63. package/dist-esm/samples-dev/objectReplicationPoliciesListSample.d.ts.map +1 -0
  64. package/dist-esm/samples-dev/objectReplicationPoliciesListSample.js +52 -0
  65. package/dist-esm/samples-dev/objectReplicationPoliciesListSample.js.map +1 -0
  66. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  67. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  68. package/dist-esm/samples-dev/operationsListSample.js +51 -0
  69. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  70. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
  71. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
  72. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +39 -0
  73. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
  74. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
  75. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
  76. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +39 -0
  77. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
  78. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +2 -0
  79. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +1 -0
  80. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +52 -0
  81. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -0
  82. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.d.ts +2 -0
  83. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.d.ts.map +1 -0
  84. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +45 -0
  85. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +1 -0
  86. package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.d.ts +2 -0
  87. package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.d.ts.map +1 -0
  88. package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.js +38 -0
  89. package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.js.map +1 -0
  90. package/dist-esm/samples-dev/skusListSample.d.ts +2 -0
  91. package/dist-esm/samples-dev/skusListSample.d.ts.map +1 -0
  92. package/dist-esm/samples-dev/skusListSample.js +50 -0
  93. package/dist-esm/samples-dev/skusListSample.js.map +1 -0
  94. package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.d.ts +2 -0
  95. package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.d.ts.map +1 -0
  96. package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.js +40 -0
  97. package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.js.map +1 -0
  98. package/dist-esm/samples-dev/storageAccountsCreateSample.d.ts +2 -0
  99. package/dist-esm/samples-dev/storageAccountsCreateSample.d.ts.map +1 -0
  100. package/dist-esm/samples-dev/storageAccountsCreateSample.js +61 -0
  101. package/dist-esm/samples-dev/storageAccountsCreateSample.js.map +1 -0
  102. package/dist-esm/samples-dev/storageAccountsDeleteSample.d.ts +2 -0
  103. package/dist-esm/samples-dev/storageAccountsDeleteSample.d.ts.map +1 -0
  104. package/dist-esm/samples-dev/storageAccountsDeleteSample.js +38 -0
  105. package/dist-esm/samples-dev/storageAccountsDeleteSample.js.map +1 -0
  106. package/dist-esm/samples-dev/storageAccountsFailoverSample.d.ts +2 -0
  107. package/dist-esm/samples-dev/storageAccountsFailoverSample.d.ts.map +1 -0
  108. package/dist-esm/samples-dev/storageAccountsFailoverSample.js +38 -0
  109. package/dist-esm/samples-dev/storageAccountsFailoverSample.js.map +1 -0
  110. package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.d.ts +2 -0
  111. package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.d.ts.map +1 -0
  112. package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.js +56 -0
  113. package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.js.map +1 -0
  114. package/dist-esm/samples-dev/storageAccountsListAccountSasSample.d.ts +2 -0
  115. package/dist-esm/samples-dev/storageAccountsListAccountSasSample.d.ts.map +1 -0
  116. package/dist-esm/samples-dev/storageAccountsListAccountSasSample.js +47 -0
  117. package/dist-esm/samples-dev/storageAccountsListAccountSasSample.js.map +1 -0
  118. package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.d.ts +2 -0
  119. package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.d.ts.map +1 -0
  120. package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.js +51 -0
  121. package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.js.map +1 -0
  122. package/dist-esm/samples-dev/storageAccountsListKeysSample.d.ts +2 -0
  123. package/dist-esm/samples-dev/storageAccountsListKeysSample.d.ts.map +1 -0
  124. package/dist-esm/samples-dev/storageAccountsListKeysSample.js +38 -0
  125. package/dist-esm/samples-dev/storageAccountsListKeysSample.js.map +1 -0
  126. package/dist-esm/samples-dev/storageAccountsListSample.d.ts +2 -0
  127. package/dist-esm/samples-dev/storageAccountsListSample.d.ts.map +1 -0
  128. package/dist-esm/samples-dev/storageAccountsListSample.js +50 -0
  129. package/dist-esm/samples-dev/storageAccountsListSample.js.map +1 -0
  130. package/dist-esm/samples-dev/storageAccountsListServiceSasSample.d.ts +2 -0
  131. package/dist-esm/samples-dev/storageAccountsListServiceSasSample.d.ts.map +1 -0
  132. package/dist-esm/samples-dev/storageAccountsListServiceSasSample.js +44 -0
  133. package/dist-esm/samples-dev/storageAccountsListServiceSasSample.js.map +1 -0
  134. package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.d.ts +2 -0
  135. package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.d.ts.map +1 -0
  136. package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.js +62 -0
  137. package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.js.map +1 -0
  138. package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.d.ts +2 -0
  139. package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.d.ts.map +1 -0
  140. package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.js +45 -0
  141. package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.js.map +1 -0
  142. package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.d.ts +2 -0
  143. package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.d.ts.map +1 -0
  144. package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.js +38 -0
  145. package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.js.map +1 -0
  146. package/dist-esm/samples-dev/storageAccountsUpdateSample.d.ts +2 -0
  147. package/dist-esm/samples-dev/storageAccountsUpdateSample.d.ts.map +1 -0
  148. package/dist-esm/samples-dev/storageAccountsUpdateSample.js +119 -0
  149. package/dist-esm/samples-dev/storageAccountsUpdateSample.js.map +1 -0
  150. package/dist-esm/samples-dev/usagesListByLocationSample.d.ts +2 -0
  151. package/dist-esm/samples-dev/usagesListByLocationSample.d.ts.map +1 -0
  152. package/dist-esm/samples-dev/usagesListByLocationSample.js +51 -0
  153. package/dist-esm/samples-dev/usagesListByLocationSample.js.map +1 -0
  154. package/dist-esm/src/index.d.ts +1 -0
  155. package/dist-esm/src/index.d.ts.map +1 -1
  156. package/dist-esm/src/index.js +1 -0
  157. package/dist-esm/src/index.js.map +1 -1
  158. package/dist-esm/src/models/index.d.ts +93 -16
  159. package/dist-esm/src/models/index.d.ts.map +1 -1
  160. package/dist-esm/src/models/index.js +77 -0
  161. package/dist-esm/src/models/index.js.map +1 -1
  162. package/dist-esm/src/operations/blobInventoryPolicies.d.ts.map +1 -1
  163. package/dist-esm/src/operations/blobInventoryPolicies.js +8 -4
  164. package/dist-esm/src/operations/blobInventoryPolicies.js.map +1 -1
  165. package/dist-esm/src/operations/encryptionScopes.d.ts.map +1 -1
  166. package/dist-esm/src/operations/encryptionScopes.js +19 -8
  167. package/dist-esm/src/operations/encryptionScopes.js.map +1 -1
  168. package/dist-esm/src/operations/objectReplicationPoliciesOperations.d.ts.map +1 -1
  169. package/dist-esm/src/operations/objectReplicationPoliciesOperations.js +8 -4
  170. package/dist-esm/src/operations/objectReplicationPoliciesOperations.js.map +1 -1
  171. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  172. package/dist-esm/src/operations/operations.js +8 -4
  173. package/dist-esm/src/operations/operations.js.map +1 -1
  174. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  175. package/dist-esm/src/operations/privateEndpointConnections.js +8 -4
  176. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  177. package/dist-esm/src/operations/skus.d.ts.map +1 -1
  178. package/dist-esm/src/operations/skus.js +8 -4
  179. package/dist-esm/src/operations/skus.js.map +1 -1
  180. package/dist-esm/src/operations/storageAccounts.d.ts.map +1 -1
  181. package/dist-esm/src/operations/storageAccounts.js +36 -15
  182. package/dist-esm/src/operations/storageAccounts.js.map +1 -1
  183. package/dist-esm/src/operations/usages.d.ts.map +1 -1
  184. package/dist-esm/src/operations/usages.js +8 -4
  185. package/dist-esm/src/operations/usages.js.map +1 -1
  186. package/dist-esm/src/pagingHelper.d.ts +13 -0
  187. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  188. package/dist-esm/src/pagingHelper.js +32 -0
  189. package/dist-esm/src/pagingHelper.js.map +1 -0
  190. package/dist-esm/src/storageManagementClient.d.ts +2 -0
  191. package/dist-esm/src/storageManagementClient.d.ts.map +1 -1
  192. package/dist-esm/src/storageManagementClient.js +54 -5
  193. package/dist-esm/src/storageManagementClient.js.map +1 -1
  194. package/dist-esm/test/sampleTest.js +11 -13
  195. package/dist-esm/test/sampleTest.js.map +1 -1
  196. package/package.json +24 -11
  197. package/review/arm-storage-profile-2020-09-01-hybrid.api.md +48 -103
  198. package/src/index.ts +1 -0
  199. package/src/models/index.ts +93 -16
  200. package/src/operations/blobInventoryPolicies.ts +17 -7
  201. package/src/operations/encryptionScopes.ts +27 -10
  202. package/src/operations/objectReplicationPoliciesOperations.ts +15 -5
  203. package/src/operations/operations.ts +10 -5
  204. package/src/operations/privateEndpointConnections.ts +15 -5
  205. package/src/operations/skus.ts +10 -5
  206. package/src/operations/storageAccounts.ts +45 -18
  207. package/src/operations/usages.ts +10 -5
  208. package/src/pagingHelper.ts +39 -0
  209. package/src/storageManagementClient.ts +70 -5
  210. package/tsconfig.json +8 -2
  211. package/types/arm-storage-profile-2020-09-01-hybrid.d.ts +104 -16
@@ -1004,7 +1004,7 @@ export interface EncryptionScopeListResult {
1004
1004
  }
1005
1005
 
1006
1006
  /** The Private Endpoint Connection resource. */
1007
- export type PrivateEndpointConnection = Resource & {
1007
+ export interface PrivateEndpointConnection extends Resource {
1008
1008
  /** The resource of private end point. */
1009
1009
  privateEndpoint?: PrivateEndpoint;
1010
1010
  /** A collection of information about the state of the connection between service consumer and provider. */
@@ -1014,18 +1014,18 @@ export type PrivateEndpointConnection = Resource & {
1014
1014
  * NOTE: This property will not be serialized. It can only be populated by the server.
1015
1015
  */
1016
1016
  readonly provisioningState?: PrivateEndpointConnectionProvisioningState;
1017
- };
1017
+ }
1018
1018
 
1019
1019
  /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
1020
- export type TrackedResource = Resource & {
1020
+ export interface TrackedResource extends Resource {
1021
1021
  /** Resource tags. */
1022
1022
  tags?: { [propertyName: string]: string };
1023
1023
  /** The geo-location where the resource lives */
1024
1024
  location: string;
1025
- };
1025
+ }
1026
1026
 
1027
1027
  /** The Get Storage Account ManagementPolicies operation response. */
1028
- export type ManagementPolicy = Resource & {
1028
+ export interface ManagementPolicy extends Resource {
1029
1029
  /**
1030
1030
  * Returns the date and time the ManagementPolicies was last modified.
1031
1031
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1033,10 +1033,10 @@ export type ManagementPolicy = Resource & {
1033
1033
  readonly lastModifiedTime?: Date;
1034
1034
  /** The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts. */
1035
1035
  policy?: ManagementPolicySchema;
1036
- };
1036
+ }
1037
1037
 
1038
1038
  /** The storage account blob inventory policy. */
1039
- export type BlobInventoryPolicy = Resource & {
1039
+ export interface BlobInventoryPolicy extends Resource {
1040
1040
  /**
1041
1041
  * Metadata pertaining to creation and last modification of the resource.
1042
1042
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1049,10 +1049,10 @@ export type BlobInventoryPolicy = Resource & {
1049
1049
  readonly lastModifiedTime?: Date;
1050
1050
  /** The storage account blob inventory policy object. It is composed of policy rules. */
1051
1051
  policy?: BlobInventoryPolicySchema;
1052
- };
1052
+ }
1053
1053
 
1054
1054
  /** A private link resource */
1055
- export type PrivateLinkResource = Resource & {
1055
+ export interface PrivateLinkResource extends Resource {
1056
1056
  /**
1057
1057
  * The private link resource group id.
1058
1058
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1065,10 +1065,10 @@ export type PrivateLinkResource = Resource & {
1065
1065
  readonly requiredMembers?: string[];
1066
1066
  /** The private link resource Private link DNS zone name. */
1067
1067
  requiredZoneNames?: string[];
1068
- };
1068
+ }
1069
1069
 
1070
1070
  /** The replication policy between two storage accounts. Multiple rules can be defined in one policy. */
1071
- export type ObjectReplicationPolicy = Resource & {
1071
+ export interface ObjectReplicationPolicy extends Resource {
1072
1072
  /**
1073
1073
  * A unique id for object replication policy.
1074
1074
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1085,10 +1085,10 @@ export type ObjectReplicationPolicy = Resource & {
1085
1085
  destinationAccount?: string;
1086
1086
  /** The storage account object replication rules. */
1087
1087
  rules?: ObjectReplicationPolicyRule[];
1088
- };
1088
+ }
1089
1089
 
1090
1090
  /** The Encryption Scope resource. */
1091
- export type EncryptionScope = Resource & {
1091
+ export interface EncryptionScope extends Resource {
1092
1092
  /** The provider for the encryption scope. Possible values (case-insensitive): Microsoft.Storage, Microsoft.KeyVault. */
1093
1093
  source?: EncryptionScopeSource;
1094
1094
  /** The state of the encryption scope. Possible values (case-insensitive): Enabled, Disabled. */
@@ -1105,10 +1105,10 @@ export type EncryptionScope = Resource & {
1105
1105
  readonly lastModifiedTime?: Date;
1106
1106
  /** The key vault properties for the encryption scope. This is a required field if encryption scope 'source' attribute is set to 'Microsoft.KeyVault'. */
1107
1107
  keyVaultProperties?: EncryptionScopeKeyVaultProperties;
1108
- };
1108
+ }
1109
1109
 
1110
1110
  /** The storage account. */
1111
- export type StorageAccount = TrackedResource & {
1111
+ export interface StorageAccount extends TrackedResource {
1112
1112
  /**
1113
1113
  * Gets the SKU.
1114
1114
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1222,17 +1222,25 @@ export type StorageAccount = TrackedResource & {
1222
1222
  minimumTlsVersion?: MinimumTlsVersion;
1223
1223
  /** Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true. */
1224
1224
  allowSharedKeyAccess?: boolean;
1225
- };
1225
+ }
1226
1226
 
1227
1227
  /** Known values of {@link SkuName} that the service accepts. */
1228
1228
  export enum KnownSkuName {
1229
+ /** StandardLRS */
1229
1230
  StandardLRS = "Standard_LRS",
1231
+ /** StandardGRS */
1230
1232
  StandardGRS = "Standard_GRS",
1233
+ /** StandardRagrs */
1231
1234
  StandardRagrs = "Standard_RAGRS",
1235
+ /** StandardZRS */
1232
1236
  StandardZRS = "Standard_ZRS",
1237
+ /** PremiumLRS */
1233
1238
  PremiumLRS = "Premium_LRS",
1239
+ /** PremiumZRS */
1234
1240
  PremiumZRS = "Premium_ZRS",
1241
+ /** StandardGzrs */
1235
1242
  StandardGzrs = "Standard_GZRS",
1243
+ /** StandardRagzrs */
1236
1244
  StandardRagzrs = "Standard_RAGZRS"
1237
1245
  }
1238
1246
 
@@ -1254,10 +1262,15 @@ export type SkuName = string;
1254
1262
 
1255
1263
  /** Known values of {@link Kind} that the service accepts. */
1256
1264
  export enum KnownKind {
1265
+ /** Storage */
1257
1266
  Storage = "Storage",
1267
+ /** StorageV2 */
1258
1268
  StorageV2 = "StorageV2",
1269
+ /** BlobStorage */
1259
1270
  BlobStorage = "BlobStorage",
1271
+ /** FileStorage */
1260
1272
  FileStorage = "FileStorage",
1273
+ /** BlockBlobStorage */
1261
1274
  BlockBlobStorage = "BlockBlobStorage"
1262
1275
  }
1263
1276
 
@@ -1276,7 +1289,9 @@ export type Kind = string;
1276
1289
 
1277
1290
  /** Known values of {@link ReasonCode} that the service accepts. */
1278
1291
  export enum KnownReasonCode {
1292
+ /** QuotaId */
1279
1293
  QuotaId = "QuotaId",
1294
+ /** NotAvailableForSubscription */
1280
1295
  NotAvailableForSubscription = "NotAvailableForSubscription"
1281
1296
  }
1282
1297
 
@@ -1292,7 +1307,9 @@ export type ReasonCode = string;
1292
1307
 
1293
1308
  /** Known values of {@link KeyType} that the service accepts. */
1294
1309
  export enum KnownKeyType {
1310
+ /** Service */
1295
1311
  Service = "Service",
1312
+ /** Account */
1296
1313
  Account = "Account"
1297
1314
  }
1298
1315
 
@@ -1308,7 +1325,9 @@ export type KeyType = string;
1308
1325
 
1309
1326
  /** Known values of {@link KeySource} that the service accepts. */
1310
1327
  export enum KnownKeySource {
1328
+ /** MicrosoftStorage */
1311
1329
  MicrosoftStorage = "Microsoft.Storage",
1330
+ /** MicrosoftKeyvault */
1312
1331
  MicrosoftKeyvault = "Microsoft.Keyvault"
1313
1332
  }
1314
1333
 
@@ -1324,9 +1343,13 @@ export type KeySource = string;
1324
1343
 
1325
1344
  /** Known values of {@link Bypass} that the service accepts. */
1326
1345
  export enum KnownBypass {
1346
+ /** None */
1327
1347
  None = "None",
1348
+ /** Logging */
1328
1349
  Logging = "Logging",
1350
+ /** Metrics */
1329
1351
  Metrics = "Metrics",
1352
+ /** AzureServices */
1330
1353
  AzureServices = "AzureServices"
1331
1354
  }
1332
1355
 
@@ -1344,8 +1367,11 @@ export type Bypass = string;
1344
1367
 
1345
1368
  /** Known values of {@link DirectoryServiceOptions} that the service accepts. */
1346
1369
  export enum KnownDirectoryServiceOptions {
1370
+ /** None */
1347
1371
  None = "None",
1372
+ /** Aadds */
1348
1373
  Aadds = "AADDS",
1374
+ /** AD */
1349
1375
  AD = "AD"
1350
1376
  }
1351
1377
 
@@ -1362,7 +1388,9 @@ export type DirectoryServiceOptions = string;
1362
1388
 
1363
1389
  /** Known values of {@link LargeFileSharesState} that the service accepts. */
1364
1390
  export enum KnownLargeFileSharesState {
1391
+ /** Disabled */
1365
1392
  Disabled = "Disabled",
1393
+ /** Enabled */
1366
1394
  Enabled = "Enabled"
1367
1395
  }
1368
1396
 
@@ -1378,7 +1406,9 @@ export type LargeFileSharesState = string;
1378
1406
 
1379
1407
  /** Known values of {@link RoutingChoice} that the service accepts. */
1380
1408
  export enum KnownRoutingChoice {
1409
+ /** MicrosoftRouting */
1381
1410
  MicrosoftRouting = "MicrosoftRouting",
1411
+ /** InternetRouting */
1382
1412
  InternetRouting = "InternetRouting"
1383
1413
  }
1384
1414
 
@@ -1394,8 +1424,11 @@ export type RoutingChoice = string;
1394
1424
 
1395
1425
  /** Known values of {@link MinimumTlsVersion} that the service accepts. */
1396
1426
  export enum KnownMinimumTlsVersion {
1427
+ /** TLS10 */
1397
1428
  TLS10 = "TLS1_0",
1429
+ /** TLS11 */
1398
1430
  TLS11 = "TLS1_1",
1431
+ /** TLS12 */
1399
1432
  TLS12 = "TLS1_2"
1400
1433
  }
1401
1434
 
@@ -1412,8 +1445,11 @@ export type MinimumTlsVersion = string;
1412
1445
 
1413
1446
  /** Known values of {@link GeoReplicationStatus} that the service accepts. */
1414
1447
  export enum KnownGeoReplicationStatus {
1448
+ /** Live */
1415
1449
  Live = "Live",
1450
+ /** Bootstrap */
1416
1451
  Bootstrap = "Bootstrap",
1452
+ /** Unavailable */
1417
1453
  Unavailable = "Unavailable"
1418
1454
  }
1419
1455
 
@@ -1430,8 +1466,11 @@ export type GeoReplicationStatus = string;
1430
1466
 
1431
1467
  /** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
1432
1468
  export enum KnownPrivateEndpointServiceConnectionStatus {
1469
+ /** Pending */
1433
1470
  Pending = "Pending",
1471
+ /** Approved */
1434
1472
  Approved = "Approved",
1473
+ /** Rejected */
1435
1474
  Rejected = "Rejected"
1436
1475
  }
1437
1476
 
@@ -1448,9 +1487,13 @@ export type PrivateEndpointServiceConnectionStatus = string;
1448
1487
 
1449
1488
  /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
1450
1489
  export enum KnownPrivateEndpointConnectionProvisioningState {
1490
+ /** Succeeded */
1451
1491
  Succeeded = "Succeeded",
1492
+ /** Creating */
1452
1493
  Creating = "Creating",
1494
+ /** Deleting */
1453
1495
  Deleting = "Deleting",
1496
+ /** Failed */
1454
1497
  Failed = "Failed"
1455
1498
  }
1456
1499
 
@@ -1468,8 +1511,11 @@ export type PrivateEndpointConnectionProvisioningState = string;
1468
1511
 
1469
1512
  /** Known values of {@link BlobRestoreProgressStatus} that the service accepts. */
1470
1513
  export enum KnownBlobRestoreProgressStatus {
1514
+ /** InProgress */
1471
1515
  InProgress = "InProgress",
1516
+ /** Complete */
1472
1517
  Complete = "Complete",
1518
+ /** Failed */
1473
1519
  Failed = "Failed"
1474
1520
  }
1475
1521
 
@@ -1486,9 +1532,13 @@ export type BlobRestoreProgressStatus = string;
1486
1532
 
1487
1533
  /** Known values of {@link Services} that the service accepts. */
1488
1534
  export enum KnownServices {
1535
+ /** B */
1489
1536
  B = "b",
1537
+ /** Q */
1490
1538
  Q = "q",
1539
+ /** T */
1491
1540
  T = "t",
1541
+ /** F */
1492
1542
  F = "f"
1493
1543
  }
1494
1544
 
@@ -1506,8 +1556,11 @@ export type Services = string;
1506
1556
 
1507
1557
  /** Known values of {@link SignedResourceTypes} that the service accepts. */
1508
1558
  export enum KnownSignedResourceTypes {
1559
+ /** S */
1509
1560
  S = "s",
1561
+ /** C */
1510
1562
  C = "c",
1563
+ /** O */
1511
1564
  O = "o"
1512
1565
  }
1513
1566
 
@@ -1524,13 +1577,21 @@ export type SignedResourceTypes = string;
1524
1577
 
1525
1578
  /** Known values of {@link Permissions} that the service accepts. */
1526
1579
  export enum KnownPermissions {
1580
+ /** R */
1527
1581
  R = "r",
1582
+ /** D */
1528
1583
  D = "d",
1584
+ /** W */
1529
1585
  W = "w",
1586
+ /** L */
1530
1587
  L = "l",
1588
+ /** A */
1531
1589
  A = "a",
1590
+ /** C */
1532
1591
  C = "c",
1592
+ /** U */
1533
1593
  U = "u",
1594
+ /** P */
1534
1595
  P = "p"
1535
1596
  }
1536
1597
 
@@ -1552,9 +1613,13 @@ export type Permissions = string;
1552
1613
 
1553
1614
  /** Known values of {@link SignedResource} that the service accepts. */
1554
1615
  export enum KnownSignedResource {
1616
+ /** B */
1555
1617
  B = "b",
1618
+ /** C */
1556
1619
  C = "c",
1620
+ /** F */
1557
1621
  F = "f",
1622
+ /** S */
1558
1623
  S = "s"
1559
1624
  }
1560
1625
 
@@ -1572,6 +1637,7 @@ export type SignedResource = string;
1572
1637
 
1573
1638
  /** Known values of {@link ManagementPolicyName} that the service accepts. */
1574
1639
  export enum KnownManagementPolicyName {
1640
+ /** Default */
1575
1641
  Default = "default"
1576
1642
  }
1577
1643
 
@@ -1586,6 +1652,7 @@ export type ManagementPolicyName = string;
1586
1652
 
1587
1653
  /** Known values of {@link RuleType} that the service accepts. */
1588
1654
  export enum KnownRuleType {
1655
+ /** Lifecycle */
1589
1656
  Lifecycle = "Lifecycle"
1590
1657
  }
1591
1658
 
@@ -1600,6 +1667,7 @@ export type RuleType = string;
1600
1667
 
1601
1668
  /** Known values of {@link BlobInventoryPolicyName} that the service accepts. */
1602
1669
  export enum KnownBlobInventoryPolicyName {
1670
+ /** Default */
1603
1671
  Default = "default"
1604
1672
  }
1605
1673
 
@@ -1614,6 +1682,7 @@ export type BlobInventoryPolicyName = string;
1614
1682
 
1615
1683
  /** Known values of {@link InventoryRuleType} that the service accepts. */
1616
1684
  export enum KnownInventoryRuleType {
1685
+ /** Inventory */
1617
1686
  Inventory = "Inventory"
1618
1687
  }
1619
1688
 
@@ -1628,9 +1697,13 @@ export type InventoryRuleType = string;
1628
1697
 
1629
1698
  /** Known values of {@link CreatedByType} that the service accepts. */
1630
1699
  export enum KnownCreatedByType {
1700
+ /** User */
1631
1701
  User = "User",
1702
+ /** Application */
1632
1703
  Application = "Application",
1704
+ /** ManagedIdentity */
1633
1705
  ManagedIdentity = "ManagedIdentity",
1706
+ /** Key */
1634
1707
  Key = "Key"
1635
1708
  }
1636
1709
 
@@ -1648,7 +1721,9 @@ export type CreatedByType = string;
1648
1721
 
1649
1722
  /** Known values of {@link EncryptionScopeSource} that the service accepts. */
1650
1723
  export enum KnownEncryptionScopeSource {
1724
+ /** MicrosoftStorage */
1651
1725
  MicrosoftStorage = "Microsoft.Storage",
1726
+ /** MicrosoftKeyVault */
1652
1727
  MicrosoftKeyVault = "Microsoft.KeyVault"
1653
1728
  }
1654
1729
 
@@ -1664,7 +1739,9 @@ export type EncryptionScopeSource = string;
1664
1739
 
1665
1740
  /** Known values of {@link EncryptionScopeState} that the service accepts. */
1666
1741
  export enum KnownEncryptionScopeState {
1742
+ /** Enabled */
1667
1743
  Enabled = "Enabled",
1744
+ /** Disabled */
1668
1745
  Disabled = "Disabled"
1669
1746
  }
1670
1747
 
@@ -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,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 { EncryptionScopes } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -16,13 +17,13 @@ import {
16
17
  EncryptionScope,
17
18
  EncryptionScopesListNextOptionalParams,
18
19
  EncryptionScopesListOptionalParams,
20
+ EncryptionScopesListResponse,
19
21
  EncryptionScopesPutOptionalParams,
20
22
  EncryptionScopesPutResponse,
21
23
  EncryptionScopesPatchOptionalParams,
22
24
  EncryptionScopesPatchResponse,
23
25
  EncryptionScopesGetOptionalParams,
24
26
  EncryptionScopesGetResponse,
25
- EncryptionScopesListResponse,
26
27
  EncryptionScopesListNextResponse
27
28
  } from "../models";
28
29
 
@@ -61,8 +62,16 @@ export class EncryptionScopesImpl implements EncryptionScopes {
61
62
  [Symbol.asyncIterator]() {
62
63
  return this;
63
64
  },
64
- byPage: () => {
65
- return this.listPagingPage(resourceGroupName, accountName, options);
65
+ byPage: (settings?: PageSettings) => {
66
+ if (settings?.maxPageSize) {
67
+ throw new Error("maxPageSize is not supported by this operation.");
68
+ }
69
+ return this.listPagingPage(
70
+ resourceGroupName,
71
+ accountName,
72
+ options,
73
+ settings
74
+ );
66
75
  }
67
76
  };
68
77
  }
@@ -70,11 +79,18 @@ export class EncryptionScopesImpl implements EncryptionScopes {
70
79
  private async *listPagingPage(
71
80
  resourceGroupName: string,
72
81
  accountName: string,
73
- options?: EncryptionScopesListOptionalParams
82
+ options?: EncryptionScopesListOptionalParams,
83
+ settings?: PageSettings
74
84
  ): AsyncIterableIterator<EncryptionScope[]> {
75
- let result = await this._list(resourceGroupName, accountName, options);
76
- yield result.value || [];
77
- let continuationToken = result.nextLink;
85
+ let result: EncryptionScopesListResponse;
86
+ let continuationToken = settings?.continuationToken;
87
+ if (!continuationToken) {
88
+ result = await this._list(resourceGroupName, accountName, options);
89
+ let page = result.value || [];
90
+ continuationToken = result.nextLink;
91
+ setContinuationToken(page, continuationToken);
92
+ yield page;
93
+ }
78
94
  while (continuationToken) {
79
95
  result = await this._listNext(
80
96
  resourceGroupName,
@@ -83,7 +99,9 @@ export class EncryptionScopesImpl implements EncryptionScopes {
83
99
  options
84
100
  );
85
101
  continuationToken = result.nextLink;
86
- yield result.value || [];
102
+ let page = result.value || [];
103
+ setContinuationToken(page, continuationToken);
104
+ yield page;
87
105
  }
88
106
  }
89
107
 
@@ -343,7 +361,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
343
361
  bodyMapper: Mappers.EncryptionScopeListResult
344
362
  }
345
363
  },
346
- queryParameters: [Parameters.apiVersion],
347
364
  urlParameters: [
348
365
  Parameters.$host,
349
366
  Parameters.subscriptionId,
@@ -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 { ObjectReplicationPoliciesOperations } from "../operationsInterfaces";
11
11
  import * as coreClient from "@azure/core-client";
12
12
  import * as Mappers from "../models/mappers";
@@ -59,8 +59,16 @@ export class ObjectReplicationPoliciesOperationsImpl
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 ObjectReplicationPoliciesOperationsImpl
68
76
  private async *listPagingPage(
69
77
  resourceGroupName: string,
70
78
  accountName: string,
71
- options?: ObjectReplicationPoliciesListOptionalParams
79
+ options?: ObjectReplicationPoliciesListOptionalParams,
80
+ _settings?: PageSettings
72
81
  ): AsyncIterableIterator<ObjectReplicationPolicy[]> {
73
- let result = await this._list(resourceGroupName, accountName, options);
82
+ let result: ObjectReplicationPoliciesListResponse;
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 { Operations } from "../operationsInterfaces";
11
11
  import * as coreClient from "@azure/core-client";
12
12
  import * as Mappers from "../models/mappers";
@@ -46,16 +46,21 @@ export class OperationsImpl implements Operations {
46
46
  [Symbol.asyncIterator]() {
47
47
  return this;
48
48
  },
49
- byPage: () => {
50
- return this.listPagingPage(options);
49
+ byPage: (settings?: PageSettings) => {
50
+ if (settings?.maxPageSize) {
51
+ throw new Error("maxPageSize is not supported by this operation.");
52
+ }
53
+ return this.listPagingPage(options, settings);
51
54
  }
52
55
  };
53
56
  }
54
57
 
55
58
  private async *listPagingPage(
56
- options?: OperationsListOptionalParams
59
+ options?: OperationsListOptionalParams,
60
+ _settings?: PageSettings
57
61
  ): AsyncIterableIterator<Operation[]> {
58
- let result = await this._list(options);
62
+ let result: OperationsListResponse;
63
+ result = await this._list(options);
59
64
  yield result.value || [];
60
65
  }
61
66
 
@@ -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 { PrivateEndpointConnections } from "../operationsInterfaces";
11
11
  import * as coreClient from "@azure/core-client";
12
12
  import * as Mappers from "../models/mappers";
@@ -59,8 +59,16 @@ export class PrivateEndpointConnectionsImpl
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 PrivateEndpointConnectionsImpl
68
76
  private async *listPagingPage(
69
77
  resourceGroupName: string,
70
78
  accountName: string,
71
- options?: PrivateEndpointConnectionsListOptionalParams
79
+ options?: PrivateEndpointConnectionsListOptionalParams,
80
+ _settings?: PageSettings
72
81
  ): AsyncIterableIterator<PrivateEndpointConnection[]> {
73
- let result = await this._list(resourceGroupName, accountName, options);
82
+ let result: PrivateEndpointConnectionsListResponse;
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 { Skus } from "../operationsInterfaces";
11
11
  import * as coreClient from "@azure/core-client";
12
12
  import * as Mappers from "../models/mappers";
@@ -46,16 +46,21 @@ export class SkusImpl implements Skus {
46
46
  [Symbol.asyncIterator]() {
47
47
  return this;
48
48
  },
49
- byPage: () => {
50
- return this.listPagingPage(options);
49
+ byPage: (settings?: PageSettings) => {
50
+ if (settings?.maxPageSize) {
51
+ throw new Error("maxPageSize is not supported by this operation.");
52
+ }
53
+ return this.listPagingPage(options, settings);
51
54
  }
52
55
  };
53
56
  }
54
57
 
55
58
  private async *listPagingPage(
56
- options?: SkusListOptionalParams
59
+ options?: SkusListOptionalParams,
60
+ _settings?: PageSettings
57
61
  ): AsyncIterableIterator<SkuInformation[]> {
58
- let result = await this._list(options);
62
+ let result: SkusListResponse;
63
+ result = await this._list(options);
59
64
  yield result.value || [];
60
65
  }
61
66