@azure/arm-storage 17.2.2-alpha.20220616.1 → 18.0.0-alpha.20220819.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/CHANGELOG.md +39 -10
  2. package/dist/index.js +198 -39
  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 +6 -6
  50. package/dist-esm/samples-dev/managementPoliciesDeleteSample.js +1 -1
  51. package/dist-esm/samples-dev/managementPoliciesGetSample.js +1 -1
  52. package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.js +4 -4
  53. package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.js +1 -1
  54. package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.js +1 -1
  55. package/dist-esm/samples-dev/objectReplicationPoliciesListSample.js +1 -1
  56. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  57. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  58. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  59. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
  60. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +1 -1
  61. package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.js +1 -1
  62. package/dist-esm/samples-dev/queueCreateSample.js +2 -2
  63. package/dist-esm/samples-dev/queueDeleteSample.js +1 -1
  64. package/dist-esm/samples-dev/queueGetSample.js +1 -1
  65. package/dist-esm/samples-dev/queueListSample.js +1 -1
  66. package/dist-esm/samples-dev/queueServicesGetServicePropertiesSample.js +1 -1
  67. package/dist-esm/samples-dev/queueServicesListSample.js +1 -1
  68. package/dist-esm/samples-dev/queueServicesSetServicePropertiesSample.js +1 -1
  69. package/dist-esm/samples-dev/queueUpdateSample.js +1 -1
  70. package/dist-esm/samples-dev/skusListSample.js +1 -1
  71. package/dist-esm/samples-dev/storageAccountsAbortHierarchicalNamespaceMigrationSample.js +1 -1
  72. package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.js +1 -1
  73. package/dist-esm/samples-dev/storageAccountsCreateSample.js +12 -12
  74. package/dist-esm/samples-dev/storageAccountsDeleteSample.js +1 -1
  75. package/dist-esm/samples-dev/storageAccountsFailoverSample.js +1 -1
  76. package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.js +4 -4
  77. package/dist-esm/samples-dev/storageAccountsHierarchicalNamespaceMigrationSample.js +1 -1
  78. package/dist-esm/samples-dev/storageAccountsListAccountSasSample.js +1 -1
  79. package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.js +1 -1
  80. package/dist-esm/samples-dev/storageAccountsListKeysSample.js +1 -1
  81. package/dist-esm/samples-dev/storageAccountsListSample.js +1 -1
  82. package/dist-esm/samples-dev/storageAccountsListServiceSasSample.js +1 -1
  83. package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.js +2 -2
  84. package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.js +1 -1
  85. package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.js +1 -1
  86. package/dist-esm/samples-dev/storageAccountsUpdateSample.js +8 -8
  87. package/dist-esm/samples-dev/tableCreateSample.js +2 -2
  88. package/dist-esm/samples-dev/tableDeleteSample.js +1 -1
  89. package/dist-esm/samples-dev/tableGetSample.js +1 -1
  90. package/dist-esm/samples-dev/tableListSample.js +1 -1
  91. package/dist-esm/samples-dev/tableServicesGetServicePropertiesSample.js +1 -1
  92. package/dist-esm/samples-dev/tableServicesListSample.js +1 -1
  93. package/dist-esm/samples-dev/tableServicesSetServicePropertiesSample.js +1 -1
  94. package/dist-esm/samples-dev/tableUpdateSample.js +2 -2
  95. package/dist-esm/samples-dev/usagesListByLocationSample.js +1 -1
  96. package/dist-esm/src/models/index.d.ts +229 -68
  97. package/dist-esm/src/models/index.d.ts.map +1 -1
  98. package/dist-esm/src/models/index.js +177 -18
  99. package/dist-esm/src/models/index.js.map +1 -1
  100. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  101. package/dist-esm/src/models/mappers.js +0 -5
  102. package/dist-esm/src/models/mappers.js.map +1 -1
  103. package/dist-esm/src/models/parameters.js +1 -1
  104. package/dist-esm/src/storageManagementClient.d.ts.map +1 -1
  105. package/dist-esm/src/storageManagementClient.js +20 -15
  106. package/dist-esm/src/storageManagementClient.js.map +1 -1
  107. package/dist-esm/test/storage_examples.js.map +1 -1
  108. package/package.json +3 -4
  109. package/review/arm-storage.api.md +185 -321
  110. package/src/models/index.ts +228 -68
  111. package/src/models/mappers.ts +0 -5
  112. package/src/models/parameters.ts +1 -1
  113. package/src/storageManagementClient.ts +25 -18
  114. package/types/arm-storage.d.ts +259 -98
  115. package/dist-esm/test/sampleTest.d.ts +0 -2
  116. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  117. package/dist-esm/test/sampleTest.js +0 -38
  118. package/dist-esm/test/sampleTest.js.map +0 -1
package/dist/index.js CHANGED
@@ -38,370 +38,529 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
38
38
  /** Known values of {@link SkuName} that the service accepts. */
39
39
  exports.KnownSkuName = void 0;
40
40
  (function (KnownSkuName) {
41
+ /** StandardLRS */
41
42
  KnownSkuName["StandardLRS"] = "Standard_LRS";
43
+ /** StandardGRS */
42
44
  KnownSkuName["StandardGRS"] = "Standard_GRS";
45
+ /** StandardRagrs */
43
46
  KnownSkuName["StandardRagrs"] = "Standard_RAGRS";
47
+ /** StandardZRS */
44
48
  KnownSkuName["StandardZRS"] = "Standard_ZRS";
49
+ /** PremiumLRS */
45
50
  KnownSkuName["PremiumLRS"] = "Premium_LRS";
51
+ /** PremiumZRS */
46
52
  KnownSkuName["PremiumZRS"] = "Premium_ZRS";
53
+ /** StandardGzrs */
47
54
  KnownSkuName["StandardGzrs"] = "Standard_GZRS";
55
+ /** StandardRagzrs */
48
56
  KnownSkuName["StandardRagzrs"] = "Standard_RAGZRS";
49
57
  })(exports.KnownSkuName || (exports.KnownSkuName = {}));
50
58
  /** Known values of {@link Kind} that the service accepts. */
51
59
  exports.KnownKind = void 0;
52
60
  (function (KnownKind) {
61
+ /** Storage */
53
62
  KnownKind["Storage"] = "Storage";
63
+ /** StorageV2 */
54
64
  KnownKind["StorageV2"] = "StorageV2";
65
+ /** BlobStorage */
55
66
  KnownKind["BlobStorage"] = "BlobStorage";
67
+ /** FileStorage */
56
68
  KnownKind["FileStorage"] = "FileStorage";
69
+ /** BlockBlobStorage */
57
70
  KnownKind["BlockBlobStorage"] = "BlockBlobStorage";
58
71
  })(exports.KnownKind || (exports.KnownKind = {}));
59
72
  /** Known values of {@link ReasonCode} that the service accepts. */
60
73
  exports.KnownReasonCode = void 0;
61
74
  (function (KnownReasonCode) {
75
+ /** QuotaId */
62
76
  KnownReasonCode["QuotaId"] = "QuotaId";
77
+ /** NotAvailableForSubscription */
63
78
  KnownReasonCode["NotAvailableForSubscription"] = "NotAvailableForSubscription";
64
79
  })(exports.KnownReasonCode || (exports.KnownReasonCode = {}));
65
80
  /** Known values of {@link ExtendedLocationTypes} that the service accepts. */
66
81
  exports.KnownExtendedLocationTypes = void 0;
67
82
  (function (KnownExtendedLocationTypes) {
83
+ /** EdgeZone */
68
84
  KnownExtendedLocationTypes["EdgeZone"] = "EdgeZone";
69
85
  })(exports.KnownExtendedLocationTypes || (exports.KnownExtendedLocationTypes = {}));
70
86
  /** Known values of {@link IdentityType} that the service accepts. */
71
87
  exports.KnownIdentityType = void 0;
72
88
  (function (KnownIdentityType) {
89
+ /** None */
73
90
  KnownIdentityType["None"] = "None";
91
+ /** SystemAssigned */
74
92
  KnownIdentityType["SystemAssigned"] = "SystemAssigned";
93
+ /** UserAssigned */
75
94
  KnownIdentityType["UserAssigned"] = "UserAssigned";
95
+ /** SystemAssignedUserAssigned */
76
96
  KnownIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned,UserAssigned";
77
97
  })(exports.KnownIdentityType || (exports.KnownIdentityType = {}));
78
98
  /** Known values of {@link AllowedCopyScope} that the service accepts. */
79
99
  exports.KnownAllowedCopyScope = void 0;
80
100
  (function (KnownAllowedCopyScope) {
101
+ /** PrivateLink */
81
102
  KnownAllowedCopyScope["PrivateLink"] = "PrivateLink";
103
+ /** AAD */
82
104
  KnownAllowedCopyScope["AAD"] = "AAD";
83
105
  })(exports.KnownAllowedCopyScope || (exports.KnownAllowedCopyScope = {}));
84
106
  /** Known values of {@link PublicNetworkAccess} that the service accepts. */
85
107
  exports.KnownPublicNetworkAccess = void 0;
86
108
  (function (KnownPublicNetworkAccess) {
109
+ /** Enabled */
87
110
  KnownPublicNetworkAccess["Enabled"] = "Enabled";
111
+ /** Disabled */
88
112
  KnownPublicNetworkAccess["Disabled"] = "Disabled";
89
113
  })(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
90
114
  /** Known values of {@link ExpirationAction} that the service accepts. */
91
115
  exports.KnownExpirationAction = void 0;
92
116
  (function (KnownExpirationAction) {
117
+ /** Log */
93
118
  KnownExpirationAction["Log"] = "Log";
94
119
  })(exports.KnownExpirationAction || (exports.KnownExpirationAction = {}));
95
120
  /** Known values of {@link KeyType} that the service accepts. */
96
121
  exports.KnownKeyType = void 0;
97
122
  (function (KnownKeyType) {
123
+ /** Service */
98
124
  KnownKeyType["Service"] = "Service";
125
+ /** Account */
99
126
  KnownKeyType["Account"] = "Account";
100
127
  })(exports.KnownKeyType || (exports.KnownKeyType = {}));
101
128
  /** Known values of {@link KeySource} that the service accepts. */
102
129
  exports.KnownKeySource = void 0;
103
130
  (function (KnownKeySource) {
131
+ /** MicrosoftStorage */
104
132
  KnownKeySource["MicrosoftStorage"] = "Microsoft.Storage";
133
+ /** MicrosoftKeyvault */
105
134
  KnownKeySource["MicrosoftKeyvault"] = "Microsoft.Keyvault";
106
135
  })(exports.KnownKeySource || (exports.KnownKeySource = {}));
107
136
  /** Known values of {@link Bypass} that the service accepts. */
108
137
  exports.KnownBypass = void 0;
109
138
  (function (KnownBypass) {
139
+ /** None */
110
140
  KnownBypass["None"] = "None";
141
+ /** Logging */
111
142
  KnownBypass["Logging"] = "Logging";
143
+ /** Metrics */
112
144
  KnownBypass["Metrics"] = "Metrics";
145
+ /** AzureServices */
113
146
  KnownBypass["AzureServices"] = "AzureServices";
114
147
  })(exports.KnownBypass || (exports.KnownBypass = {}));
115
148
  /** Known values of {@link State} that the service accepts. */
116
149
  exports.KnownState = void 0;
117
150
  (function (KnownState) {
151
+ /** Provisioning */
118
152
  KnownState["Provisioning"] = "Provisioning";
153
+ /** Deprovisioning */
119
154
  KnownState["Deprovisioning"] = "Deprovisioning";
155
+ /** Succeeded */
120
156
  KnownState["Succeeded"] = "Succeeded";
157
+ /** Failed */
121
158
  KnownState["Failed"] = "Failed";
159
+ /** NetworkSourceDeleted */
122
160
  KnownState["NetworkSourceDeleted"] = "NetworkSourceDeleted";
123
161
  })(exports.KnownState || (exports.KnownState = {}));
124
162
  /** Known values of {@link DirectoryServiceOptions} that the service accepts. */
125
163
  exports.KnownDirectoryServiceOptions = void 0;
126
164
  (function (KnownDirectoryServiceOptions) {
165
+ /** None */
127
166
  KnownDirectoryServiceOptions["None"] = "None";
167
+ /** Aadds */
128
168
  KnownDirectoryServiceOptions["Aadds"] = "AADDS";
169
+ /** AD */
129
170
  KnownDirectoryServiceOptions["AD"] = "AD";
171
+ /** Aadkerb */
172
+ KnownDirectoryServiceOptions["Aadkerb"] = "AADKERB";
130
173
  })(exports.KnownDirectoryServiceOptions || (exports.KnownDirectoryServiceOptions = {}));
131
- /** Known values of {@link ActiveDirectoryPropertiesAccountType} that the service accepts. */
132
- exports.KnownActiveDirectoryPropertiesAccountType = void 0;
133
- (function (KnownActiveDirectoryPropertiesAccountType) {
134
- KnownActiveDirectoryPropertiesAccountType["User"] = "User";
135
- KnownActiveDirectoryPropertiesAccountType["Computer"] = "Computer";
136
- })(exports.KnownActiveDirectoryPropertiesAccountType || (exports.KnownActiveDirectoryPropertiesAccountType = {}));
174
+ /** Known values of {@link AccountType} that the service accepts. */
175
+ exports.KnownAccountType = void 0;
176
+ (function (KnownAccountType) {
177
+ /** User */
178
+ KnownAccountType["User"] = "User";
179
+ /** Computer */
180
+ KnownAccountType["Computer"] = "Computer";
181
+ })(exports.KnownAccountType || (exports.KnownAccountType = {}));
137
182
  /** Known values of {@link DefaultSharePermission} that the service accepts. */
138
183
  exports.KnownDefaultSharePermission = void 0;
139
184
  (function (KnownDefaultSharePermission) {
185
+ /** None */
140
186
  KnownDefaultSharePermission["None"] = "None";
187
+ /** StorageFileDataSmbShareReader */
141
188
  KnownDefaultSharePermission["StorageFileDataSmbShareReader"] = "StorageFileDataSmbShareReader";
189
+ /** StorageFileDataSmbShareContributor */
142
190
  KnownDefaultSharePermission["StorageFileDataSmbShareContributor"] = "StorageFileDataSmbShareContributor";
191
+ /** StorageFileDataSmbShareElevatedContributor */
143
192
  KnownDefaultSharePermission["StorageFileDataSmbShareElevatedContributor"] = "StorageFileDataSmbShareElevatedContributor";
144
193
  })(exports.KnownDefaultSharePermission || (exports.KnownDefaultSharePermission = {}));
145
194
  /** Known values of {@link LargeFileSharesState} that the service accepts. */
146
195
  exports.KnownLargeFileSharesState = void 0;
147
196
  (function (KnownLargeFileSharesState) {
197
+ /** Disabled */
148
198
  KnownLargeFileSharesState["Disabled"] = "Disabled";
199
+ /** Enabled */
149
200
  KnownLargeFileSharesState["Enabled"] = "Enabled";
150
201
  })(exports.KnownLargeFileSharesState || (exports.KnownLargeFileSharesState = {}));
151
202
  /** Known values of {@link RoutingChoice} that the service accepts. */
152
203
  exports.KnownRoutingChoice = void 0;
153
204
  (function (KnownRoutingChoice) {
205
+ /** MicrosoftRouting */
154
206
  KnownRoutingChoice["MicrosoftRouting"] = "MicrosoftRouting";
207
+ /** InternetRouting */
155
208
  KnownRoutingChoice["InternetRouting"] = "InternetRouting";
156
209
  })(exports.KnownRoutingChoice || (exports.KnownRoutingChoice = {}));
157
210
  /** Known values of {@link MinimumTlsVersion} that the service accepts. */
158
211
  exports.KnownMinimumTlsVersion = void 0;
159
212
  (function (KnownMinimumTlsVersion) {
213
+ /** TLS10 */
160
214
  KnownMinimumTlsVersion["TLS10"] = "TLS1_0";
215
+ /** TLS11 */
161
216
  KnownMinimumTlsVersion["TLS11"] = "TLS1_1";
217
+ /** TLS12 */
162
218
  KnownMinimumTlsVersion["TLS12"] = "TLS1_2";
163
219
  })(exports.KnownMinimumTlsVersion || (exports.KnownMinimumTlsVersion = {}));
164
220
  /** Known values of {@link AccountImmutabilityPolicyState} that the service accepts. */
165
221
  exports.KnownAccountImmutabilityPolicyState = void 0;
166
222
  (function (KnownAccountImmutabilityPolicyState) {
223
+ /** Unlocked */
167
224
  KnownAccountImmutabilityPolicyState["Unlocked"] = "Unlocked";
225
+ /** Locked */
168
226
  KnownAccountImmutabilityPolicyState["Locked"] = "Locked";
227
+ /** Disabled */
169
228
  KnownAccountImmutabilityPolicyState["Disabled"] = "Disabled";
170
229
  })(exports.KnownAccountImmutabilityPolicyState || (exports.KnownAccountImmutabilityPolicyState = {}));
171
230
  /** Known values of {@link DnsEndpointType} that the service accepts. */
172
231
  exports.KnownDnsEndpointType = void 0;
173
232
  (function (KnownDnsEndpointType) {
233
+ /** Standard */
174
234
  KnownDnsEndpointType["Standard"] = "Standard";
235
+ /** AzureDnsZone */
175
236
  KnownDnsEndpointType["AzureDnsZone"] = "AzureDnsZone";
176
237
  })(exports.KnownDnsEndpointType || (exports.KnownDnsEndpointType = {}));
177
238
  /** Known values of {@link GeoReplicationStatus} that the service accepts. */
178
239
  exports.KnownGeoReplicationStatus = void 0;
179
240
  (function (KnownGeoReplicationStatus) {
241
+ /** Live */
180
242
  KnownGeoReplicationStatus["Live"] = "Live";
243
+ /** Bootstrap */
181
244
  KnownGeoReplicationStatus["Bootstrap"] = "Bootstrap";
245
+ /** Unavailable */
182
246
  KnownGeoReplicationStatus["Unavailable"] = "Unavailable";
183
247
  })(exports.KnownGeoReplicationStatus || (exports.KnownGeoReplicationStatus = {}));
184
248
  /** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
185
249
  exports.KnownPrivateEndpointServiceConnectionStatus = void 0;
186
250
  (function (KnownPrivateEndpointServiceConnectionStatus) {
251
+ /** Pending */
187
252
  KnownPrivateEndpointServiceConnectionStatus["Pending"] = "Pending";
253
+ /** Approved */
188
254
  KnownPrivateEndpointServiceConnectionStatus["Approved"] = "Approved";
255
+ /** Rejected */
189
256
  KnownPrivateEndpointServiceConnectionStatus["Rejected"] = "Rejected";
190
257
  })(exports.KnownPrivateEndpointServiceConnectionStatus || (exports.KnownPrivateEndpointServiceConnectionStatus = {}));
191
258
  /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
192
259
  exports.KnownPrivateEndpointConnectionProvisioningState = void 0;
193
260
  (function (KnownPrivateEndpointConnectionProvisioningState) {
261
+ /** Succeeded */
194
262
  KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
263
+ /** Creating */
195
264
  KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
265
+ /** Deleting */
196
266
  KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
267
+ /** Failed */
197
268
  KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
198
269
  })(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
199
270
  /** Known values of {@link BlobRestoreProgressStatus} that the service accepts. */
200
271
  exports.KnownBlobRestoreProgressStatus = void 0;
201
272
  (function (KnownBlobRestoreProgressStatus) {
273
+ /** InProgress */
202
274
  KnownBlobRestoreProgressStatus["InProgress"] = "InProgress";
275
+ /** Complete */
203
276
  KnownBlobRestoreProgressStatus["Complete"] = "Complete";
277
+ /** Failed */
204
278
  KnownBlobRestoreProgressStatus["Failed"] = "Failed";
205
279
  })(exports.KnownBlobRestoreProgressStatus || (exports.KnownBlobRestoreProgressStatus = {}));
206
280
  /** Known values of {@link SkuConversionStatus} that the service accepts. */
207
281
  exports.KnownSkuConversionStatus = void 0;
208
282
  (function (KnownSkuConversionStatus) {
283
+ /** InProgress */
209
284
  KnownSkuConversionStatus["InProgress"] = "InProgress";
285
+ /** Succeeded */
210
286
  KnownSkuConversionStatus["Succeeded"] = "Succeeded";
287
+ /** Failed */
211
288
  KnownSkuConversionStatus["Failed"] = "Failed";
212
289
  })(exports.KnownSkuConversionStatus || (exports.KnownSkuConversionStatus = {}));
213
290
  /** Known values of {@link Services} that the service accepts. */
214
291
  exports.KnownServices = void 0;
215
292
  (function (KnownServices) {
293
+ /** B */
216
294
  KnownServices["B"] = "b";
295
+ /** Q */
217
296
  KnownServices["Q"] = "q";
297
+ /** T */
218
298
  KnownServices["T"] = "t";
299
+ /** F */
219
300
  KnownServices["F"] = "f";
220
301
  })(exports.KnownServices || (exports.KnownServices = {}));
221
302
  /** Known values of {@link SignedResourceTypes} that the service accepts. */
222
303
  exports.KnownSignedResourceTypes = void 0;
223
304
  (function (KnownSignedResourceTypes) {
305
+ /** S */
224
306
  KnownSignedResourceTypes["S"] = "s";
307
+ /** C */
225
308
  KnownSignedResourceTypes["C"] = "c";
309
+ /** O */
226
310
  KnownSignedResourceTypes["O"] = "o";
227
311
  })(exports.KnownSignedResourceTypes || (exports.KnownSignedResourceTypes = {}));
228
312
  /** Known values of {@link Permissions} that the service accepts. */
229
313
  exports.KnownPermissions = void 0;
230
314
  (function (KnownPermissions) {
315
+ /** R */
231
316
  KnownPermissions["R"] = "r";
317
+ /** D */
232
318
  KnownPermissions["D"] = "d";
319
+ /** W */
233
320
  KnownPermissions["W"] = "w";
321
+ /** L */
234
322
  KnownPermissions["L"] = "l";
323
+ /** A */
235
324
  KnownPermissions["A"] = "a";
325
+ /** C */
236
326
  KnownPermissions["C"] = "c";
327
+ /** U */
237
328
  KnownPermissions["U"] = "u";
329
+ /** P */
238
330
  KnownPermissions["P"] = "p";
239
331
  })(exports.KnownPermissions || (exports.KnownPermissions = {}));
240
332
  /** Known values of {@link SignedResource} that the service accepts. */
241
333
  exports.KnownSignedResource = void 0;
242
334
  (function (KnownSignedResource) {
335
+ /** B */
243
336
  KnownSignedResource["B"] = "b";
337
+ /** C */
244
338
  KnownSignedResource["C"] = "c";
339
+ /** F */
245
340
  KnownSignedResource["F"] = "f";
341
+ /** S */
246
342
  KnownSignedResource["S"] = "s";
247
343
  })(exports.KnownSignedResource || (exports.KnownSignedResource = {}));
248
344
  /** Known values of {@link ManagementPolicyName} that the service accepts. */
249
345
  exports.KnownManagementPolicyName = void 0;
250
346
  (function (KnownManagementPolicyName) {
347
+ /** Default */
251
348
  KnownManagementPolicyName["Default"] = "default";
252
349
  })(exports.KnownManagementPolicyName || (exports.KnownManagementPolicyName = {}));
253
350
  /** Known values of {@link RuleType} that the service accepts. */
254
351
  exports.KnownRuleType = void 0;
255
352
  (function (KnownRuleType) {
353
+ /** Lifecycle */
256
354
  KnownRuleType["Lifecycle"] = "Lifecycle";
257
355
  })(exports.KnownRuleType || (exports.KnownRuleType = {}));
258
356
  /** Known values of {@link BlobInventoryPolicyName} that the service accepts. */
259
357
  exports.KnownBlobInventoryPolicyName = void 0;
260
358
  (function (KnownBlobInventoryPolicyName) {
359
+ /** Default */
261
360
  KnownBlobInventoryPolicyName["Default"] = "default";
262
361
  })(exports.KnownBlobInventoryPolicyName || (exports.KnownBlobInventoryPolicyName = {}));
263
362
  /** Known values of {@link InventoryRuleType} that the service accepts. */
264
363
  exports.KnownInventoryRuleType = void 0;
265
364
  (function (KnownInventoryRuleType) {
365
+ /** Inventory */
266
366
  KnownInventoryRuleType["Inventory"] = "Inventory";
267
367
  })(exports.KnownInventoryRuleType || (exports.KnownInventoryRuleType = {}));
268
368
  /** Known values of {@link Format} that the service accepts. */
269
369
  exports.KnownFormat = void 0;
270
370
  (function (KnownFormat) {
371
+ /** Csv */
271
372
  KnownFormat["Csv"] = "Csv";
373
+ /** Parquet */
272
374
  KnownFormat["Parquet"] = "Parquet";
273
375
  })(exports.KnownFormat || (exports.KnownFormat = {}));
274
376
  /** Known values of {@link Schedule} that the service accepts. */
275
377
  exports.KnownSchedule = void 0;
276
378
  (function (KnownSchedule) {
379
+ /** Daily */
277
380
  KnownSchedule["Daily"] = "Daily";
381
+ /** Weekly */
278
382
  KnownSchedule["Weekly"] = "Weekly";
279
383
  })(exports.KnownSchedule || (exports.KnownSchedule = {}));
280
384
  /** Known values of {@link ObjectType} that the service accepts. */
281
385
  exports.KnownObjectType = void 0;
282
386
  (function (KnownObjectType) {
387
+ /** Blob */
283
388
  KnownObjectType["Blob"] = "Blob";
389
+ /** Container */
284
390
  KnownObjectType["Container"] = "Container";
285
391
  })(exports.KnownObjectType || (exports.KnownObjectType = {}));
286
392
  /** Known values of {@link CreatedByType} that the service accepts. */
287
393
  exports.KnownCreatedByType = void 0;
288
394
  (function (KnownCreatedByType) {
395
+ /** User */
289
396
  KnownCreatedByType["User"] = "User";
397
+ /** Application */
290
398
  KnownCreatedByType["Application"] = "Application";
399
+ /** ManagedIdentity */
291
400
  KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
401
+ /** Key */
292
402
  KnownCreatedByType["Key"] = "Key";
293
403
  })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
294
404
  /** Known values of {@link EncryptionScopeSource} that the service accepts. */
295
405
  exports.KnownEncryptionScopeSource = void 0;
296
406
  (function (KnownEncryptionScopeSource) {
407
+ /** MicrosoftStorage */
297
408
  KnownEncryptionScopeSource["MicrosoftStorage"] = "Microsoft.Storage";
409
+ /** MicrosoftKeyVault */
298
410
  KnownEncryptionScopeSource["MicrosoftKeyVault"] = "Microsoft.KeyVault";
299
411
  })(exports.KnownEncryptionScopeSource || (exports.KnownEncryptionScopeSource = {}));
300
412
  /** Known values of {@link EncryptionScopeState} that the service accepts. */
301
413
  exports.KnownEncryptionScopeState = void 0;
302
414
  (function (KnownEncryptionScopeState) {
415
+ /** Enabled */
303
416
  KnownEncryptionScopeState["Enabled"] = "Enabled";
417
+ /** Disabled */
304
418
  KnownEncryptionScopeState["Disabled"] = "Disabled";
305
419
  })(exports.KnownEncryptionScopeState || (exports.KnownEncryptionScopeState = {}));
306
- /** Known values of {@link CorsRuleAllowedMethodsItem} that the service accepts. */
307
- exports.KnownCorsRuleAllowedMethodsItem = void 0;
308
- (function (KnownCorsRuleAllowedMethodsItem) {
309
- KnownCorsRuleAllowedMethodsItem["Delete"] = "DELETE";
310
- KnownCorsRuleAllowedMethodsItem["GET"] = "GET";
311
- KnownCorsRuleAllowedMethodsItem["Head"] = "HEAD";
312
- KnownCorsRuleAllowedMethodsItem["Merge"] = "MERGE";
313
- KnownCorsRuleAllowedMethodsItem["Post"] = "POST";
314
- KnownCorsRuleAllowedMethodsItem["Options"] = "OPTIONS";
315
- KnownCorsRuleAllowedMethodsItem["PUT"] = "PUT";
316
- KnownCorsRuleAllowedMethodsItem["Patch"] = "PATCH";
317
- })(exports.KnownCorsRuleAllowedMethodsItem || (exports.KnownCorsRuleAllowedMethodsItem = {}));
420
+ /** Known values of {@link AllowedMethods} that the service accepts. */
421
+ exports.KnownAllowedMethods = void 0;
422
+ (function (KnownAllowedMethods) {
423
+ /** Delete */
424
+ KnownAllowedMethods["Delete"] = "DELETE";
425
+ /** GET */
426
+ KnownAllowedMethods["GET"] = "GET";
427
+ /** Head */
428
+ KnownAllowedMethods["Head"] = "HEAD";
429
+ /** Merge */
430
+ KnownAllowedMethods["Merge"] = "MERGE";
431
+ /** Post */
432
+ KnownAllowedMethods["Post"] = "POST";
433
+ /** Options */
434
+ KnownAllowedMethods["Options"] = "OPTIONS";
435
+ /** PUT */
436
+ KnownAllowedMethods["PUT"] = "PUT";
437
+ /** Patch */
438
+ KnownAllowedMethods["Patch"] = "PATCH";
439
+ })(exports.KnownAllowedMethods || (exports.KnownAllowedMethods = {}));
318
440
  /** Known values of {@link Name} that the service accepts. */
319
441
  exports.KnownName = void 0;
320
442
  (function (KnownName) {
443
+ /** AccessTimeTracking */
321
444
  KnownName["AccessTimeTracking"] = "AccessTimeTracking";
322
445
  })(exports.KnownName || (exports.KnownName = {}));
323
446
  /** Known values of {@link ListContainersInclude} that the service accepts. */
324
447
  exports.KnownListContainersInclude = void 0;
325
448
  (function (KnownListContainersInclude) {
449
+ /** Deleted */
326
450
  KnownListContainersInclude["Deleted"] = "deleted";
327
451
  })(exports.KnownListContainersInclude || (exports.KnownListContainersInclude = {}));
328
452
  /** Known values of {@link LeaseStatus} that the service accepts. */
329
453
  exports.KnownLeaseStatus = void 0;
330
454
  (function (KnownLeaseStatus) {
455
+ /** Locked */
331
456
  KnownLeaseStatus["Locked"] = "Locked";
457
+ /** Unlocked */
332
458
  KnownLeaseStatus["Unlocked"] = "Unlocked";
333
459
  })(exports.KnownLeaseStatus || (exports.KnownLeaseStatus = {}));
334
460
  /** Known values of {@link LeaseState} that the service accepts. */
335
461
  exports.KnownLeaseState = void 0;
336
462
  (function (KnownLeaseState) {
463
+ /** Available */
337
464
  KnownLeaseState["Available"] = "Available";
465
+ /** Leased */
338
466
  KnownLeaseState["Leased"] = "Leased";
467
+ /** Expired */
339
468
  KnownLeaseState["Expired"] = "Expired";
469
+ /** Breaking */
340
470
  KnownLeaseState["Breaking"] = "Breaking";
471
+ /** Broken */
341
472
  KnownLeaseState["Broken"] = "Broken";
342
473
  })(exports.KnownLeaseState || (exports.KnownLeaseState = {}));
343
474
  /** Known values of {@link LeaseDuration} that the service accepts. */
344
475
  exports.KnownLeaseDuration = void 0;
345
476
  (function (KnownLeaseDuration) {
477
+ /** Infinite */
346
478
  KnownLeaseDuration["Infinite"] = "Infinite";
479
+ /** Fixed */
347
480
  KnownLeaseDuration["Fixed"] = "Fixed";
348
481
  })(exports.KnownLeaseDuration || (exports.KnownLeaseDuration = {}));
349
482
  /** Known values of {@link ImmutabilityPolicyState} that the service accepts. */
350
483
  exports.KnownImmutabilityPolicyState = void 0;
351
484
  (function (KnownImmutabilityPolicyState) {
485
+ /** Locked */
352
486
  KnownImmutabilityPolicyState["Locked"] = "Locked";
487
+ /** Unlocked */
353
488
  KnownImmutabilityPolicyState["Unlocked"] = "Unlocked";
354
489
  })(exports.KnownImmutabilityPolicyState || (exports.KnownImmutabilityPolicyState = {}));
355
490
  /** Known values of {@link ImmutabilityPolicyUpdateType} that the service accepts. */
356
491
  exports.KnownImmutabilityPolicyUpdateType = void 0;
357
492
  (function (KnownImmutabilityPolicyUpdateType) {
493
+ /** Put */
358
494
  KnownImmutabilityPolicyUpdateType["Put"] = "put";
495
+ /** Lock */
359
496
  KnownImmutabilityPolicyUpdateType["Lock"] = "lock";
497
+ /** Extend */
360
498
  KnownImmutabilityPolicyUpdateType["Extend"] = "extend";
361
499
  })(exports.KnownImmutabilityPolicyUpdateType || (exports.KnownImmutabilityPolicyUpdateType = {}));
362
500
  /** Known values of {@link MigrationState} that the service accepts. */
363
501
  exports.KnownMigrationState = void 0;
364
502
  (function (KnownMigrationState) {
503
+ /** InProgress */
365
504
  KnownMigrationState["InProgress"] = "InProgress";
505
+ /** Completed */
366
506
  KnownMigrationState["Completed"] = "Completed";
367
507
  })(exports.KnownMigrationState || (exports.KnownMigrationState = {}));
368
508
  /** Known values of {@link LeaseContainerRequestAction} that the service accepts. */
369
509
  exports.KnownLeaseContainerRequestAction = void 0;
370
510
  (function (KnownLeaseContainerRequestAction) {
511
+ /** Acquire */
371
512
  KnownLeaseContainerRequestAction["Acquire"] = "Acquire";
513
+ /** Renew */
372
514
  KnownLeaseContainerRequestAction["Renew"] = "Renew";
515
+ /** Change */
373
516
  KnownLeaseContainerRequestAction["Change"] = "Change";
517
+ /** Release */
374
518
  KnownLeaseContainerRequestAction["Release"] = "Release";
519
+ /** Break */
375
520
  KnownLeaseContainerRequestAction["Break"] = "Break";
376
521
  })(exports.KnownLeaseContainerRequestAction || (exports.KnownLeaseContainerRequestAction = {}));
377
522
  /** Known values of {@link EnabledProtocols} that the service accepts. */
378
523
  exports.KnownEnabledProtocols = void 0;
379
524
  (function (KnownEnabledProtocols) {
525
+ /** SMB */
380
526
  KnownEnabledProtocols["SMB"] = "SMB";
527
+ /** NFS */
381
528
  KnownEnabledProtocols["NFS"] = "NFS";
382
529
  })(exports.KnownEnabledProtocols || (exports.KnownEnabledProtocols = {}));
383
530
  /** Known values of {@link RootSquashType} that the service accepts. */
384
531
  exports.KnownRootSquashType = void 0;
385
532
  (function (KnownRootSquashType) {
533
+ /** NoRootSquash */
386
534
  KnownRootSquashType["NoRootSquash"] = "NoRootSquash";
535
+ /** RootSquash */
387
536
  KnownRootSquashType["RootSquash"] = "RootSquash";
537
+ /** AllSquash */
388
538
  KnownRootSquashType["AllSquash"] = "AllSquash";
389
539
  })(exports.KnownRootSquashType || (exports.KnownRootSquashType = {}));
390
540
  /** Known values of {@link ShareAccessTier} that the service accepts. */
391
541
  exports.KnownShareAccessTier = void 0;
392
542
  (function (KnownShareAccessTier) {
543
+ /** TransactionOptimized */
393
544
  KnownShareAccessTier["TransactionOptimized"] = "TransactionOptimized";
545
+ /** Hot */
394
546
  KnownShareAccessTier["Hot"] = "Hot";
547
+ /** Cool */
395
548
  KnownShareAccessTier["Cool"] = "Cool";
549
+ /** Premium */
396
550
  KnownShareAccessTier["Premium"] = "Premium";
397
551
  })(exports.KnownShareAccessTier || (exports.KnownShareAccessTier = {}));
398
552
  /** Known values of {@link LeaseShareAction} that the service accepts. */
399
553
  exports.KnownLeaseShareAction = void 0;
400
554
  (function (KnownLeaseShareAction) {
555
+ /** Acquire */
401
556
  KnownLeaseShareAction["Acquire"] = "Acquire";
557
+ /** Renew */
402
558
  KnownLeaseShareAction["Renew"] = "Renew";
559
+ /** Change */
403
560
  KnownLeaseShareAction["Change"] = "Change";
561
+ /** Release */
404
562
  KnownLeaseShareAction["Release"] = "Release";
563
+ /** Break */
405
564
  KnownLeaseShareAction["Break"] = "Break";
406
565
  })(exports.KnownLeaseShareAction || (exports.KnownLeaseShareAction = {}));
407
566
 
@@ -1183,7 +1342,6 @@ const Encryption = {
1183
1342
  keySource: {
1184
1343
  defaultValue: "Microsoft.Storage",
1185
1344
  serializedName: "keySource",
1186
- required: true,
1187
1345
  type: {
1188
1346
  name: "String"
1189
1347
  }
@@ -1515,14 +1673,12 @@ const ActiveDirectoryProperties = {
1515
1673
  },
1516
1674
  netBiosDomainName: {
1517
1675
  serializedName: "netBiosDomainName",
1518
- required: true,
1519
1676
  type: {
1520
1677
  name: "String"
1521
1678
  }
1522
1679
  },
1523
1680
  forestName: {
1524
1681
  serializedName: "forestName",
1525
- required: true,
1526
1682
  type: {
1527
1683
  name: "String"
1528
1684
  }
@@ -1536,14 +1692,12 @@ const ActiveDirectoryProperties = {
1536
1692
  },
1537
1693
  domainSid: {
1538
1694
  serializedName: "domainSid",
1539
- required: true,
1540
1695
  type: {
1541
1696
  name: "String"
1542
1697
  }
1543
1698
  },
1544
1699
  azureStorageSid: {
1545
1700
  serializedName: "azureStorageSid",
1546
- required: true,
1547
1701
  type: {
1548
1702
  name: "String"
1549
1703
  }
@@ -6130,7 +6284,7 @@ const $host = {
6130
6284
  const apiVersion = {
6131
6285
  parameterPath: "apiVersion",
6132
6286
  mapper: {
6133
- defaultValue: "2021-09-01",
6287
+ defaultValue: "2022-05-01",
6134
6288
  isConstant: true,
6135
6289
  serializedName: "api-version",
6136
6290
  type: {
@@ -11652,7 +11806,7 @@ class StorageManagementClient extends coreClient__namespace.ServiceClient {
11652
11806
  requestContentType: "application/json; charset=utf-8",
11653
11807
  credential: credentials
11654
11808
  };
11655
- const packageDetails = `azsdk-js-arm-storage/17.2.2`;
11809
+ const packageDetails = `azsdk-js-arm-storage/18.0.0`;
11656
11810
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
11657
11811
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
11658
11812
  : `${packageDetails}`;
@@ -11663,27 +11817,32 @@ class StorageManagementClient extends coreClient__namespace.ServiceClient {
11663
11817
  userAgentPrefix
11664
11818
  }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
11665
11819
  super(optionsWithDefaults);
11820
+ let bearerTokenAuthenticationPolicyFound = false;
11666
11821
  if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
11667
11822
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
11668
- const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
11823
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
11669
11824
  coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
11670
- if (!bearerTokenAuthenticationPolicyFound) {
11671
- this.pipeline.removePolicy({
11672
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
11673
- });
11674
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
11675
- scopes: `${optionsWithDefaults.baseUri}/.default`,
11676
- challengeCallbacks: {
11677
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
11678
- }
11679
- }));
11680
- }
11825
+ }
11826
+ if (!options ||
11827
+ !options.pipeline ||
11828
+ options.pipeline.getOrderedPolicies().length == 0 ||
11829
+ !bearerTokenAuthenticationPolicyFound) {
11830
+ this.pipeline.removePolicy({
11831
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
11832
+ });
11833
+ this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
11834
+ credential: credentials,
11835
+ scopes: `${optionsWithDefaults.credentialScopes}`,
11836
+ challengeCallbacks: {
11837
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
11838
+ }
11839
+ }));
11681
11840
  }
11682
11841
  // Parameter assignments
11683
11842
  this.subscriptionId = subscriptionId;
11684
11843
  // Assigning values to Constant parameters
11685
11844
  this.$host = options.$host || "https://management.azure.com";
11686
- this.apiVersion = options.apiVersion || "2021-09-01";
11845
+ this.apiVersion = options.apiVersion || "2022-05-01";
11687
11846
  this.operations = new OperationsImpl(this);
11688
11847
  this.skus = new SkusImpl(this);
11689
11848
  this.storageAccounts = new StorageAccountsImpl(this);
@@ -11719,7 +11878,7 @@ class StorageManagementClient extends coreClient__namespace.ServiceClient {
11719
11878
  if (param.length > 1) {
11720
11879
  const newParams = param[1].split("&").map((item) => {
11721
11880
  if (item.indexOf("api-version") > -1) {
11722
- return item.replace(/(?<==).*$/, apiVersion);
11881
+ return "api-version=" + apiVersion;
11723
11882
  }
11724
11883
  else {
11725
11884
  return item;