@azure/arm-storage 18.1.1-alpha.20230810.1 → 18.2.0-alpha.20230821.2
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.
- package/CHANGELOG.md +90 -57
- package/LICENSE +1 -1
- package/dist/index.js +519 -102
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersClearLegalHoldSample.js +11 -4
- package/dist-esm/samples-dev/blobContainersClearLegalHoldSample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersCreateOrUpdateImmutabilityPolicySample.js +15 -8
- package/dist-esm/samples-dev/blobContainersCreateOrUpdateImmutabilityPolicySample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersCreateSample.js +19 -12
- package/dist-esm/samples-dev/blobContainersCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersDeleteImmutabilityPolicySample.js +12 -5
- package/dist-esm/samples-dev/blobContainersDeleteImmutabilityPolicySample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersDeleteSample.js +11 -4
- package/dist-esm/samples-dev/blobContainersDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersExtendImmutabilityPolicySample.js +12 -5
- package/dist-esm/samples-dev/blobContainersExtendImmutabilityPolicySample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersGetImmutabilityPolicySample.js +11 -4
- package/dist-esm/samples-dev/blobContainersGetImmutabilityPolicySample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersGetSample.js +15 -8
- package/dist-esm/samples-dev/blobContainersGetSample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersLeaseSample.js +15 -8
- package/dist-esm/samples-dev/blobContainersLeaseSample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersListSample.js +15 -8
- package/dist-esm/samples-dev/blobContainersListSample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersLockImmutabilityPolicySample.js +12 -5
- package/dist-esm/samples-dev/blobContainersLockImmutabilityPolicySample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersObjectLevelWormSample.js +11 -4
- package/dist-esm/samples-dev/blobContainersObjectLevelWormSample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersSetLegalHoldSample.js +15 -8
- package/dist-esm/samples-dev/blobContainersSetLegalHoldSample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersUpdateSample.js +11 -4
- package/dist-esm/samples-dev/blobContainersUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/blobInventoryPoliciesCreateOrUpdateSample.js +20 -13
- package/dist-esm/samples-dev/blobInventoryPoliciesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/blobInventoryPoliciesDeleteSample.js +11 -4
- package/dist-esm/samples-dev/blobInventoryPoliciesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/blobInventoryPoliciesGetSample.js +11 -4
- package/dist-esm/samples-dev/blobInventoryPoliciesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/blobInventoryPoliciesListSample.js +11 -4
- package/dist-esm/samples-dev/blobInventoryPoliciesListSample.js.map +1 -1
- package/dist-esm/samples-dev/blobServicesGetServicePropertiesSample.js +11 -4
- package/dist-esm/samples-dev/blobServicesGetServicePropertiesSample.js.map +1 -1
- package/dist-esm/samples-dev/blobServicesListSample.js +11 -4
- package/dist-esm/samples-dev/blobServicesListSample.js.map +1 -1
- package/dist-esm/samples-dev/blobServicesSetServicePropertiesSample.js +19 -12
- package/dist-esm/samples-dev/blobServicesSetServicePropertiesSample.js.map +1 -1
- package/dist-esm/samples-dev/deletedAccountsGetSample.js +10 -3
- package/dist-esm/samples-dev/deletedAccountsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/deletedAccountsListSample.js +10 -3
- package/dist-esm/samples-dev/deletedAccountsListSample.js.map +1 -1
- package/dist-esm/samples-dev/encryptionScopesGetSample.js +12 -5
- package/dist-esm/samples-dev/encryptionScopesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/encryptionScopesListSample.js +12 -5
- package/dist-esm/samples-dev/encryptionScopesListSample.js.map +1 -1
- package/dist-esm/samples-dev/encryptionScopesPatchSample.js +12 -5
- package/dist-esm/samples-dev/encryptionScopesPatchSample.js.map +1 -1
- package/dist-esm/samples-dev/encryptionScopesPutSample.js +17 -10
- package/dist-esm/samples-dev/encryptionScopesPutSample.js.map +1 -1
- package/dist-esm/samples-dev/fileServicesGetServicePropertiesSample.js +11 -4
- package/dist-esm/samples-dev/fileServicesGetServicePropertiesSample.js.map +1 -1
- package/dist-esm/samples-dev/fileServicesListSample.js +11 -4
- package/dist-esm/samples-dev/fileServicesListSample.js.map +1 -1
- package/dist-esm/samples-dev/fileServicesSetServicePropertiesSample.js +19 -12
- package/dist-esm/samples-dev/fileServicesSetServicePropertiesSample.js.map +1 -1
- package/dist-esm/samples-dev/fileSharesCreateSample.js +19 -12
- package/dist-esm/samples-dev/fileSharesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/fileSharesDeleteSample.js +11 -4
- package/dist-esm/samples-dev/fileSharesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/fileSharesGetSample.js +15 -8
- package/dist-esm/samples-dev/fileSharesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/fileSharesLeaseSample.js +15 -8
- package/dist-esm/samples-dev/fileSharesLeaseSample.js.map +1 -1
- package/dist-esm/samples-dev/fileSharesListSample.js +19 -12
- package/dist-esm/samples-dev/fileSharesListSample.js.map +1 -1
- package/dist-esm/samples-dev/fileSharesRestoreSample.js +11 -4
- package/dist-esm/samples-dev/fileSharesRestoreSample.js.map +1 -1
- package/dist-esm/samples-dev/fileSharesUpdateSample.js +15 -8
- package/dist-esm/samples-dev/fileSharesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/localUsersCreateOrUpdateSample.js +15 -8
- package/dist-esm/samples-dev/localUsersCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/localUsersDeleteSample.js +11 -4
- package/dist-esm/samples-dev/localUsersDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/localUsersGetSample.js +11 -4
- package/dist-esm/samples-dev/localUsersGetSample.js.map +1 -1
- package/dist-esm/samples-dev/localUsersListKeysSample.js +11 -4
- package/dist-esm/samples-dev/localUsersListKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/localUsersListSample.js +11 -4
- package/dist-esm/samples-dev/localUsersListSample.js.map +1 -1
- package/dist-esm/samples-dev/localUsersRegeneratePasswordSample.js +11 -4
- package/dist-esm/samples-dev/localUsersRegeneratePasswordSample.js.map +1 -1
- package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.js +39 -32
- package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/managementPoliciesDeleteSample.js +11 -4
- package/dist-esm/samples-dev/managementPoliciesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/managementPoliciesGetSample.js +11 -4
- package/dist-esm/samples-dev/managementPoliciesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.js +23 -16
- package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.js +11 -4
- package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.js +11 -4
- package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/objectReplicationPoliciesListSample.js +11 -4
- package/dist-esm/samples-dev/objectReplicationPoliciesListSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +11 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +11 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.js +11 -4
- package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.js.map +1 -1
- package/dist-esm/samples-dev/queueCreateSample.js +15 -8
- package/dist-esm/samples-dev/queueCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/queueDeleteSample.js +11 -4
- package/dist-esm/samples-dev/queueDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/queueGetSample.js +11 -4
- package/dist-esm/samples-dev/queueGetSample.js.map +1 -1
- package/dist-esm/samples-dev/queueListSample.js +11 -4
- package/dist-esm/samples-dev/queueListSample.js.map +1 -1
- package/dist-esm/samples-dev/queueServicesGetServicePropertiesSample.js +11 -4
- package/dist-esm/samples-dev/queueServicesGetServicePropertiesSample.js.map +1 -1
- package/dist-esm/samples-dev/queueServicesListSample.js +11 -4
- package/dist-esm/samples-dev/queueServicesListSample.js.map +1 -1
- package/dist-esm/samples-dev/queueServicesSetServicePropertiesSample.js +11 -4
- package/dist-esm/samples-dev/queueServicesSetServicePropertiesSample.js.map +1 -1
- package/dist-esm/samples-dev/queueUpdateSample.js +11 -4
- package/dist-esm/samples-dev/queueUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/skusListSample.js +10 -3
- package/dist-esm/samples-dev/skusListSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsAbortHierarchicalNamespaceMigrationSample.js +11 -4
- package/dist-esm/samples-dev/storageAccountsAbortHierarchicalNamespaceMigrationSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.js +10 -3
- package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsCreateSample.js +55 -48
- package/dist-esm/samples-dev/storageAccountsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsCustomerInitiatedMigrationSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageAccountsCustomerInitiatedMigrationSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageAccountsCustomerInitiatedMigrationSample.js +39 -0
- package/dist-esm/samples-dev/storageAccountsCustomerInitiatedMigrationSample.js.map +1 -0
- package/dist-esm/samples-dev/storageAccountsDeleteSample.js +11 -4
- package/dist-esm/samples-dev/storageAccountsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsFailoverSample.js +15 -8
- package/dist-esm/samples-dev/storageAccountsFailoverSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsGetCustomerInitiatedMigrationSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageAccountsGetCustomerInitiatedMigrationSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageAccountsGetCustomerInitiatedMigrationSample.js +58 -0
- package/dist-esm/samples-dev/storageAccountsGetCustomerInitiatedMigrationSample.js.map +1 -0
- package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.js +63 -16
- package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsHierarchicalNamespaceMigrationSample.js +11 -4
- package/dist-esm/samples-dev/storageAccountsHierarchicalNamespaceMigrationSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsListAccountSasSample.js +11 -4
- package/dist-esm/samples-dev/storageAccountsListAccountSasSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.js +11 -4
- package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsListKeysSample.js +11 -4
- package/dist-esm/samples-dev/storageAccountsListKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsListSample.js +10 -3
- package/dist-esm/samples-dev/storageAccountsListSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsListServiceSasSample.js +11 -4
- package/dist-esm/samples-dev/storageAccountsListServiceSasSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.js +15 -8
- package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.js +11 -4
- package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.js +11 -4
- package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsUpdateSample.js +39 -32
- package/dist-esm/samples-dev/storageAccountsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/tableCreateSample.js +15 -8
- package/dist-esm/samples-dev/tableCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/tableDeleteSample.js +11 -4
- package/dist-esm/samples-dev/tableDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/tableGetSample.js +11 -4
- package/dist-esm/samples-dev/tableGetSample.js.map +1 -1
- package/dist-esm/samples-dev/tableListSample.js +11 -4
- package/dist-esm/samples-dev/tableListSample.js.map +1 -1
- package/dist-esm/samples-dev/tableServicesGetServicePropertiesSample.js +11 -4
- package/dist-esm/samples-dev/tableServicesGetServicePropertiesSample.js.map +1 -1
- package/dist-esm/samples-dev/tableServicesListSample.js +11 -4
- package/dist-esm/samples-dev/tableServicesListSample.js.map +1 -1
- package/dist-esm/samples-dev/tableServicesSetServicePropertiesSample.js +11 -4
- package/dist-esm/samples-dev/tableServicesSetServicePropertiesSample.js.map +1 -1
- package/dist-esm/samples-dev/tableUpdateSample.js +15 -8
- package/dist-esm/samples-dev/tableUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/usagesListByLocationSample.js +10 -3
- package/dist-esm/samples-dev/usagesListByLocationSample.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +213 -30
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +44 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +6 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +220 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +9 -6
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +39 -10
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/blobContainers.d.ts +2 -2
- package/dist-esm/src/operations/blobContainers.d.ts.map +1 -1
- package/dist-esm/src/operations/blobContainers.js +14 -16
- package/dist-esm/src/operations/blobContainers.js.map +1 -1
- package/dist-esm/src/operations/blobServices.js +1 -1
- package/dist-esm/src/operations/deletedAccounts.js +0 -1
- package/dist-esm/src/operations/deletedAccounts.js.map +1 -1
- package/dist-esm/src/operations/encryptionScopes.js +0 -6
- package/dist-esm/src/operations/encryptionScopes.js.map +1 -1
- package/dist-esm/src/operations/fileServices.js +1 -1
- package/dist-esm/src/operations/fileShares.js +1 -7
- package/dist-esm/src/operations/fileShares.js.map +1 -1
- package/dist-esm/src/operations/queue.js +0 -5
- package/dist-esm/src/operations/queue.js.map +1 -1
- package/dist-esm/src/operations/queueServices.js +1 -1
- package/dist-esm/src/operations/storageAccounts.d.ts +46 -7
- package/dist-esm/src/operations/storageAccounts.d.ts.map +1 -1
- package/dist-esm/src/operations/storageAccounts.js +177 -30
- package/dist-esm/src/operations/storageAccounts.js.map +1 -1
- package/dist-esm/src/operations/tableOperations.js +2 -3
- package/dist-esm/src/operations/tableOperations.js.map +1 -1
- package/dist-esm/src/operations/tableServices.js +1 -1
- package/dist-esm/src/operationsInterfaces/blobContainers.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/blobContainers.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts +47 -8
- package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +4 -4
- package/dist-esm/src/pagingHelper.js +4 -4
- package/dist-esm/src/storageManagementClient.js +2 -2
- package/package.json +6 -5
- package/review/arm-storage.api.md +115 -20
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +235 -38
- package/src/models/mappers.ts +228 -0
- package/src/models/parameters.ts +42 -9
- package/src/operations/blobContainers.ts +19 -21
- package/src/operations/blobServices.ts +1 -1
- package/src/operations/deletedAccounts.ts +0 -1
- package/src/operations/encryptionScopes.ts +0 -6
- package/src/operations/fileServices.ts +1 -1
- package/src/operations/fileShares.ts +1 -7
- package/src/operations/queue.ts +0 -5
- package/src/operations/queueServices.ts +1 -1
- package/src/operations/storageAccounts.ts +240 -57
- package/src/operations/tableOperations.ts +2 -3
- package/src/operations/tableServices.ts +1 -1
- package/src/operationsInterfaces/blobContainers.ts +2 -2
- package/src/operationsInterfaces/storageAccounts.ts +68 -9
- package/src/pagingHelper.ts +4 -4
- package/src/storageManagementClient.ts +2 -2
- package/types/arm-storage.d.ts +282 -43
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import {
|
|
2
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
3
3
|
import { ListContainerItem, BlobContainersListOptionalParams, BlobContainer, BlobContainersCreateOptionalParams, BlobContainersCreateResponse, BlobContainersUpdateOptionalParams, BlobContainersUpdateResponse, BlobContainersGetOptionalParams, BlobContainersGetResponse, BlobContainersDeleteOptionalParams, LegalHold, BlobContainersSetLegalHoldOptionalParams, BlobContainersSetLegalHoldResponse, BlobContainersClearLegalHoldOptionalParams, BlobContainersClearLegalHoldResponse, BlobContainersCreateOrUpdateImmutabilityPolicyOptionalParams, BlobContainersCreateOrUpdateImmutabilityPolicyResponse, BlobContainersGetImmutabilityPolicyOptionalParams, BlobContainersGetImmutabilityPolicyResponse, BlobContainersDeleteImmutabilityPolicyOptionalParams, BlobContainersDeleteImmutabilityPolicyResponse, BlobContainersLockImmutabilityPolicyOptionalParams, BlobContainersLockImmutabilityPolicyResponse, BlobContainersExtendImmutabilityPolicyOptionalParams, BlobContainersExtendImmutabilityPolicyResponse, BlobContainersLeaseOptionalParams, BlobContainersLeaseResponse, BlobContainersObjectLevelWormOptionalParams } from "../models";
|
|
4
4
|
/** Interface representing a BlobContainers. */
|
|
5
5
|
export interface BlobContainers {
|
|
@@ -224,7 +224,7 @@ export interface BlobContainers {
|
|
|
224
224
|
* number.
|
|
225
225
|
* @param options The options parameters.
|
|
226
226
|
*/
|
|
227
|
-
beginObjectLevelWorm(resourceGroupName: string, accountName: string, containerName: string, options?: BlobContainersObjectLevelWormOptionalParams): Promise<
|
|
227
|
+
beginObjectLevelWorm(resourceGroupName: string, accountName: string, containerName: string, options?: BlobContainersObjectLevelWormOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
228
228
|
/**
|
|
229
229
|
* This operation migrates a blob container from container level WORM to object level immutability
|
|
230
230
|
* enabled container. Prerequisites require a container level immutability policy either in locked or
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blobContainers.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/blobContainers.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"blobContainers.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/blobContainers.ts"],"names":[],"mappings":"AAQ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ount, StorageAccountsListOptionalParams, StorageAccountsListByResourceGroupOptionalParams, StorageAccountCheckNameAvailabilityParameters, StorageAccountsCheckNameAvailabilityOptionalParams, StorageAccountsCheckNameAvailabilityResponse, StorageAccountCreateParameters, StorageAccountsCreateOptionalParams, StorageAccountsCreateResponse, StorageAccountsDeleteOptionalParams, StorageAccountsGetPropertiesOptionalParams, StorageAccountsGetPropertiesResponse, StorageAccountUpdateParameters, StorageAccountsUpdateOptionalParams, StorageAccountsUpdateResponse, StorageAccountsListKeysOptionalParams, StorageAccountsListKeysResponse, StorageAccountRegenerateKeyParameters, StorageAccountsRegenerateKeyOptionalParams, StorageAccountsRegenerateKeyResponse, AccountSasParameters, StorageAccountsListAccountSASOptionalParams, StorageAccountsListAccountSASResponse, ServiceSasParameters, StorageAccountsListServiceSASOptionalParams, StorageAccountsListServiceSASResponse, StorageAccountsFailoverOptionalParams, StorageAccountsHierarchicalNamespaceMigrationOptionalParams, StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams, BlobRestoreParameters, StorageAccountsRestoreBlobRangesOptionalParams, StorageAccountsRestoreBlobRangesResponse, StorageAccountsRevokeUserDelegationKeysOptionalParams } from "../models";
|
|
2
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
3
|
+
import { StorageAccount, StorageAccountsListOptionalParams, StorageAccountsListByResourceGroupOptionalParams, StorageAccountCheckNameAvailabilityParameters, StorageAccountsCheckNameAvailabilityOptionalParams, StorageAccountsCheckNameAvailabilityResponse, StorageAccountCreateParameters, StorageAccountsCreateOptionalParams, StorageAccountsCreateResponse, StorageAccountsDeleteOptionalParams, StorageAccountsGetPropertiesOptionalParams, StorageAccountsGetPropertiesResponse, StorageAccountUpdateParameters, StorageAccountsUpdateOptionalParams, StorageAccountsUpdateResponse, StorageAccountsListKeysOptionalParams, StorageAccountsListKeysResponse, StorageAccountRegenerateKeyParameters, StorageAccountsRegenerateKeyOptionalParams, StorageAccountsRegenerateKeyResponse, AccountSasParameters, StorageAccountsListAccountSASOptionalParams, StorageAccountsListAccountSASResponse, ServiceSasParameters, StorageAccountsListServiceSASOptionalParams, StorageAccountsListServiceSASResponse, StorageAccountsFailoverOptionalParams, StorageAccountsHierarchicalNamespaceMigrationOptionalParams, StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams, StorageAccountMigration, StorageAccountsCustomerInitiatedMigrationOptionalParams, MigrationName, StorageAccountsGetCustomerInitiatedMigrationOptionalParams, StorageAccountsGetCustomerInitiatedMigrationResponse, BlobRestoreParameters, StorageAccountsRestoreBlobRangesOptionalParams, StorageAccountsRestoreBlobRangesResponse, StorageAccountsRevokeUserDelegationKeysOptionalParams } from "../models";
|
|
4
4
|
/** Interface representing a StorageAccounts. */
|
|
5
5
|
export interface StorageAccounts {
|
|
6
6
|
/**
|
|
@@ -38,7 +38,7 @@ export interface StorageAccounts {
|
|
|
38
38
|
* @param parameters The parameters to provide for the created account.
|
|
39
39
|
* @param options The options parameters.
|
|
40
40
|
*/
|
|
41
|
-
beginCreate(resourceGroupName: string, accountName: string, parameters: StorageAccountCreateParameters, options?: StorageAccountsCreateOptionalParams): Promise<
|
|
41
|
+
beginCreate(resourceGroupName: string, accountName: string, parameters: StorageAccountCreateParameters, options?: StorageAccountsCreateOptionalParams): Promise<SimplePollerLike<OperationState<StorageAccountsCreateResponse>, StorageAccountsCreateResponse>>;
|
|
42
42
|
/**
|
|
43
43
|
* Asynchronously creates a new storage account with the specified parameters. If an account is already
|
|
44
44
|
* created and a subsequent create request is issued with different properties, the account properties
|
|
@@ -146,7 +146,7 @@ export interface StorageAccounts {
|
|
|
146
146
|
* primary and secondary endpoints are available. The primary use case of a Planned Failover is
|
|
147
147
|
* disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter
|
|
148
148
|
* to 'Planned'. Learn more about the failover options here-
|
|
149
|
-
* https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-
|
|
149
|
+
* https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidance
|
|
150
150
|
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
151
151
|
* case insensitive.
|
|
152
152
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
@@ -154,7 +154,7 @@ export interface StorageAccounts {
|
|
|
154
154
|
* only.
|
|
155
155
|
* @param options The options parameters.
|
|
156
156
|
*/
|
|
157
|
-
beginFailover(resourceGroupName: string, accountName: string, options?: StorageAccountsFailoverOptionalParams): Promise<
|
|
157
|
+
beginFailover(resourceGroupName: string, accountName: string, options?: StorageAccountsFailoverOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
158
158
|
/**
|
|
159
159
|
* A failover request can be triggered for a storage account in the event a primary endpoint becomes
|
|
160
160
|
* unavailable for any reason. The failover occurs from the storage account's primary cluster to the
|
|
@@ -187,7 +187,7 @@ export interface StorageAccounts {
|
|
|
187
187
|
* request will migrate the account.
|
|
188
188
|
* @param options The options parameters.
|
|
189
189
|
*/
|
|
190
|
-
beginHierarchicalNamespaceMigration(resourceGroupName: string, accountName: string, requestType: string, options?: StorageAccountsHierarchicalNamespaceMigrationOptionalParams): Promise<
|
|
190
|
+
beginHierarchicalNamespaceMigration(resourceGroupName: string, accountName: string, requestType: string, options?: StorageAccountsHierarchicalNamespaceMigrationOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
191
191
|
/**
|
|
192
192
|
* Live Migration of storage account to enable Hns
|
|
193
193
|
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
@@ -211,7 +211,7 @@ export interface StorageAccounts {
|
|
|
211
211
|
* only.
|
|
212
212
|
* @param options The options parameters.
|
|
213
213
|
*/
|
|
214
|
-
beginAbortHierarchicalNamespaceMigration(resourceGroupName: string, accountName: string, options?: StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams): Promise<
|
|
214
|
+
beginAbortHierarchicalNamespaceMigration(resourceGroupName: string, accountName: string, options?: StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
215
215
|
/**
|
|
216
216
|
* Abort live Migration of storage account to enable Hns
|
|
217
217
|
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
@@ -222,6 +222,45 @@ export interface StorageAccounts {
|
|
|
222
222
|
* @param options The options parameters.
|
|
223
223
|
*/
|
|
224
224
|
beginAbortHierarchicalNamespaceMigrationAndWait(resourceGroupName: string, accountName: string, options?: StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams): Promise<void>;
|
|
225
|
+
/**
|
|
226
|
+
* Account Migration request can be triggered for a storage account to change its redundancy level. The
|
|
227
|
+
* migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa
|
|
228
|
+
* in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your
|
|
229
|
+
* storage account synchronously across three Azure availability zones in the primary region.
|
|
230
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
231
|
+
* case insensitive.
|
|
232
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
233
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
234
|
+
* only.
|
|
235
|
+
* @param parameters The request parameters required to perform storage account migration.
|
|
236
|
+
* @param options The options parameters.
|
|
237
|
+
*/
|
|
238
|
+
beginCustomerInitiatedMigration(resourceGroupName: string, accountName: string, parameters: StorageAccountMigration, options?: StorageAccountsCustomerInitiatedMigrationOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
239
|
+
/**
|
|
240
|
+
* Account Migration request can be triggered for a storage account to change its redundancy level. The
|
|
241
|
+
* migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa
|
|
242
|
+
* in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your
|
|
243
|
+
* storage account synchronously across three Azure availability zones in the primary region.
|
|
244
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
245
|
+
* case insensitive.
|
|
246
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
247
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
248
|
+
* only.
|
|
249
|
+
* @param parameters The request parameters required to perform storage account migration.
|
|
250
|
+
* @param options The options parameters.
|
|
251
|
+
*/
|
|
252
|
+
beginCustomerInitiatedMigrationAndWait(resourceGroupName: string, accountName: string, parameters: StorageAccountMigration, options?: StorageAccountsCustomerInitiatedMigrationOptionalParams): Promise<void>;
|
|
253
|
+
/**
|
|
254
|
+
* Gets the status of the ongoing migration for the specified storage account.
|
|
255
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
256
|
+
* case insensitive.
|
|
257
|
+
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
258
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
259
|
+
* only.
|
|
260
|
+
* @param migrationName The name of the Storage Account Migration. It should always be 'default'
|
|
261
|
+
* @param options The options parameters.
|
|
262
|
+
*/
|
|
263
|
+
getCustomerInitiatedMigration(resourceGroupName: string, accountName: string, migrationName: MigrationName, options?: StorageAccountsGetCustomerInitiatedMigrationOptionalParams): Promise<StorageAccountsGetCustomerInitiatedMigrationResponse>;
|
|
225
264
|
/**
|
|
226
265
|
* Restore blobs in the specified blob ranges
|
|
227
266
|
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
@@ -232,7 +271,7 @@ export interface StorageAccounts {
|
|
|
232
271
|
* @param parameters The parameters to provide for restore blob ranges.
|
|
233
272
|
* @param options The options parameters.
|
|
234
273
|
*/
|
|
235
|
-
beginRestoreBlobRanges(resourceGroupName: string, accountName: string, parameters: BlobRestoreParameters, options?: StorageAccountsRestoreBlobRangesOptionalParams): Promise<
|
|
274
|
+
beginRestoreBlobRanges(resourceGroupName: string, accountName: string, parameters: BlobRestoreParameters, options?: StorageAccountsRestoreBlobRangesOptionalParams): Promise<SimplePollerLike<OperationState<StorageAccountsRestoreBlobRangesResponse>, StorageAccountsRestoreBlobRangesResponse>>;
|
|
236
275
|
/**
|
|
237
276
|
* Restore blobs in the specified blob ranges
|
|
238
277
|
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageAccounts.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/storageAccounts.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"storageAccounts.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/storageAccounts.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,cAAc,EACd,iCAAiC,EACjC,gDAAgD,EAChD,6CAA6C,EAC7C,kDAAkD,EAClD,4CAA4C,EAC5C,8BAA8B,EAC9B,mCAAmC,EACnC,6BAA6B,EAC7B,mCAAmC,EACnC,0CAA0C,EAC1C,oCAAoC,EACpC,8BAA8B,EAC9B,mCAAmC,EACnC,6BAA6B,EAC7B,qCAAqC,EACrC,+BAA+B,EAC/B,qCAAqC,EACrC,0CAA0C,EAC1C,oCAAoC,EACpC,oBAAoB,EACpB,2CAA2C,EAC3C,qCAAqC,EACrC,oBAAoB,EACpB,2CAA2C,EAC3C,qCAAqC,EACrC,qCAAqC,EACrC,2DAA2D,EAC3D,gEAAgE,EAChE,uBAAuB,EACvB,uDAAuD,EACvD,aAAa,EACb,0DAA0D,EAC1D,oDAAoD,EACpD,qBAAqB,EACrB,8CAA8C,EAC9C,wCAAwC,EACxC,qDAAqD,EACtD,MAAM,WAAW,CAAC;AAGnB,gDAAgD;AAChD,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,iCAAiC,GAC1C,0BAA0B,CAAC,cAAc,CAAC,CAAC;IAC9C;;;;;;OAMG;IACH,mBAAmB,CACj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BAAqB,EACjC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,wCAAwC,CAAC,EACxD,wCAAwC,CACzC,CACF,CAAC;IACF;;;;;;;;;OASG;IACH,6BAA6B,CAC3B,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,qBAAqB,EACjC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC,CAAC;IACrD;;;;;;;;OAQG;IACH,wBAAwB,CACtB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,qDAAqD,GAC9D,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
|
@@ -2,11 +2,11 @@ export interface PageInfo {
|
|
|
2
2
|
continuationToken?: string;
|
|
3
3
|
}
|
|
4
4
|
/**
|
|
5
|
-
* Given
|
|
6
|
-
* continuation token that can be used to begin paging from
|
|
5
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
6
|
+
* returns a continuation token that can be used to begin paging from
|
|
7
7
|
* that point later.
|
|
8
|
-
* @param page
|
|
9
|
-
* @returns The continuation token that can be passed into byPage().
|
|
8
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
9
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
10
10
|
*/
|
|
11
11
|
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
12
12
|
export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
const pageMap = new WeakMap();
|
|
9
9
|
/**
|
|
10
|
-
* Given
|
|
11
|
-
* continuation token that can be used to begin paging from
|
|
10
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
11
|
+
* returns a continuation token that can be used to begin paging from
|
|
12
12
|
* that point later.
|
|
13
|
-
* @param page
|
|
14
|
-
* @returns The continuation token that can be passed into byPage().
|
|
13
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
14
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
15
15
|
*/
|
|
16
16
|
export function getContinuationToken(page) {
|
|
17
17
|
var _a;
|
|
@@ -32,7 +32,7 @@ export class StorageManagementClient extends coreClient.ServiceClient {
|
|
|
32
32
|
requestContentType: "application/json; charset=utf-8",
|
|
33
33
|
credential: credentials
|
|
34
34
|
};
|
|
35
|
-
const packageDetails = `azsdk-js-arm-storage/18.
|
|
35
|
+
const packageDetails = `azsdk-js-arm-storage/18.2.0`;
|
|
36
36
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
37
37
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
38
38
|
: `${packageDetails}`;
|
|
@@ -65,7 +65,7 @@ export class StorageManagementClient extends coreClient.ServiceClient {
|
|
|
65
65
|
this.subscriptionId = subscriptionId;
|
|
66
66
|
// Assigning values to Constant parameters
|
|
67
67
|
this.$host = options.$host || "https://management.azure.com";
|
|
68
|
-
this.apiVersion = options.apiVersion || "
|
|
68
|
+
this.apiVersion = options.apiVersion || "2023-01-01";
|
|
69
69
|
this.operations = new OperationsImpl(this);
|
|
70
70
|
this.skus = new SkusImpl(this);
|
|
71
71
|
this.storageAccounts = new StorageAccountsImpl(this);
|
package/package.json
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for StorageManagementClient.",
|
|
6
|
-
"version": "18.
|
|
6
|
+
"version": "18.2.0-alpha.20230821.2",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=14.0.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@azure/core-lro": "^2.
|
|
11
|
+
"@azure/core-lro": "^2.5.3",
|
|
12
12
|
"@azure/abort-controller": "^1.0.0",
|
|
13
13
|
"@azure/core-paging": "^1.2.0",
|
|
14
|
-
"@azure/core-client": "^1.
|
|
14
|
+
"@azure/core-client": "^1.7.0",
|
|
15
15
|
"@azure/core-auth": "^1.3.0",
|
|
16
16
|
"@azure/core-rest-pipeline": "^1.8.0",
|
|
17
17
|
"tslib": "^2.2.0"
|
|
@@ -33,12 +33,13 @@
|
|
|
33
33
|
"@rollup/plugin-json": "^6.0.0",
|
|
34
34
|
"@rollup/plugin-multi-entry": "^6.0.0",
|
|
35
35
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
36
|
-
"mkdirp": "^1.
|
|
36
|
+
"mkdirp": "^2.1.2",
|
|
37
37
|
"rollup": "^2.66.1",
|
|
38
38
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
39
39
|
"typescript": "~5.0.0",
|
|
40
40
|
"uglify-js": "^3.4.9",
|
|
41
41
|
"rimraf": "^3.0.0",
|
|
42
|
+
"dotenv": "^16.0.0",
|
|
42
43
|
"@azure/identity": "^2.0.1",
|
|
43
44
|
"@azure-tools/test-recorder": "^3.0.0",
|
|
44
45
|
"@azure-tools/test-credential": "^1.0.0",
|
|
@@ -49,7 +50,6 @@
|
|
|
49
50
|
"@types/node": "^14.0.0",
|
|
50
51
|
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb"
|
|
51
52
|
},
|
|
52
|
-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/arm-storage",
|
|
53
53
|
"repository": {
|
|
54
54
|
"type": "git",
|
|
55
55
|
"url": "https://github.com/Azure/azure-sdk-for-js.git"
|
|
@@ -111,6 +111,7 @@
|
|
|
111
111
|
]
|
|
112
112
|
},
|
|
113
113
|
"autoPublish": true,
|
|
114
|
+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/arm-storage",
|
|
114
115
|
"//sampleConfiguration": {
|
|
115
116
|
"productName": "",
|
|
116
117
|
"productSlugs": [
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
import * as coreAuth from '@azure/core-auth';
|
|
8
8
|
import * as coreClient from '@azure/core-client';
|
|
9
|
+
import { OperationState } from '@azure/core-lro';
|
|
9
10
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
10
|
-
import {
|
|
11
|
-
import { PollOperationState } from '@azure/core-lro';
|
|
11
|
+
import { SimplePollerLike } from '@azure/core-lro';
|
|
12
12
|
|
|
13
13
|
// @public (undocumented)
|
|
14
14
|
export interface AccessPolicy {
|
|
@@ -105,7 +105,7 @@ export interface BlobContainer extends AzureEntityResource {
|
|
|
105
105
|
|
|
106
106
|
// @public
|
|
107
107
|
export interface BlobContainers {
|
|
108
|
-
beginObjectLevelWorm(resourceGroupName: string, accountName: string, containerName: string, options?: BlobContainersObjectLevelWormOptionalParams): Promise<
|
|
108
|
+
beginObjectLevelWorm(resourceGroupName: string, accountName: string, containerName: string, options?: BlobContainersObjectLevelWormOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
109
109
|
beginObjectLevelWormAndWait(resourceGroupName: string, accountName: string, containerName: string, options?: BlobContainersObjectLevelWormOptionalParams): Promise<void>;
|
|
110
110
|
clearLegalHold(resourceGroupName: string, accountName: string, containerName: string, legalHold: LegalHold, options?: BlobContainersClearLegalHoldOptionalParams): Promise<BlobContainersClearLegalHoldResponse>;
|
|
111
111
|
create(resourceGroupName: string, accountName: string, containerName: string, blobContainer: BlobContainer, options?: BlobContainersCreateOptionalParams): Promise<BlobContainersCreateResponse>;
|
|
@@ -209,9 +209,6 @@ export type BlobContainersLeaseResponse = LeaseContainerResponse;
|
|
|
209
209
|
|
|
210
210
|
// @public
|
|
211
211
|
export interface BlobContainersListNextOptionalParams extends coreClient.OperationOptions {
|
|
212
|
-
filter?: string;
|
|
213
|
-
include?: ListContainersInclude;
|
|
214
|
-
maxpagesize?: string;
|
|
215
212
|
}
|
|
216
213
|
|
|
217
214
|
// @public
|
|
@@ -259,6 +256,11 @@ export interface BlobContainersUpdateOptionalParams extends coreClient.Operation
|
|
|
259
256
|
// @public
|
|
260
257
|
export type BlobContainersUpdateResponse = BlobContainer;
|
|
261
258
|
|
|
259
|
+
// @public
|
|
260
|
+
export interface BlobInventoryCreationTime {
|
|
261
|
+
lastNDays?: number;
|
|
262
|
+
}
|
|
263
|
+
|
|
262
264
|
// @public
|
|
263
265
|
export interface BlobInventoryPolicies {
|
|
264
266
|
createOrUpdate(resourceGroupName: string, accountName: string, blobInventoryPolicyName: BlobInventoryPolicyName, properties: BlobInventoryPolicy, options?: BlobInventoryPoliciesCreateOrUpdateOptionalParams): Promise<BlobInventoryPoliciesCreateOrUpdateResponse>;
|
|
@@ -311,6 +313,7 @@ export interface BlobInventoryPolicyDefinition {
|
|
|
311
313
|
// @public
|
|
312
314
|
export interface BlobInventoryPolicyFilter {
|
|
313
315
|
blobTypes?: string[];
|
|
316
|
+
creationTime?: BlobInventoryCreationTime;
|
|
314
317
|
excludePrefix?: string[];
|
|
315
318
|
includeBlobVersions?: boolean;
|
|
316
319
|
includeDeleted?: boolean;
|
|
@@ -604,9 +607,6 @@ export type EncryptionScopesGetResponse = EncryptionScope;
|
|
|
604
607
|
|
|
605
608
|
// @public
|
|
606
609
|
export interface EncryptionScopesListNextOptionalParams extends coreClient.OperationOptions {
|
|
607
|
-
filter?: string;
|
|
608
|
-
include?: ListEncryptionScopesInclude;
|
|
609
|
-
maxpagesize?: number;
|
|
610
610
|
}
|
|
611
611
|
|
|
612
612
|
// @public
|
|
@@ -669,11 +669,31 @@ export interface Endpoints {
|
|
|
669
669
|
readonly web?: string;
|
|
670
670
|
}
|
|
671
671
|
|
|
672
|
+
// @public
|
|
673
|
+
export interface ErrorAdditionalInfo {
|
|
674
|
+
readonly info?: Record<string, unknown>;
|
|
675
|
+
readonly type?: string;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
// @public
|
|
679
|
+
export interface ErrorDetail {
|
|
680
|
+
readonly additionalInfo?: ErrorAdditionalInfo[];
|
|
681
|
+
readonly code?: string;
|
|
682
|
+
readonly details?: ErrorDetail[];
|
|
683
|
+
readonly message?: string;
|
|
684
|
+
readonly target?: string;
|
|
685
|
+
}
|
|
686
|
+
|
|
672
687
|
// @public
|
|
673
688
|
export interface ErrorResponse {
|
|
674
689
|
error?: ErrorResponseBody;
|
|
675
690
|
}
|
|
676
691
|
|
|
692
|
+
// @public
|
|
693
|
+
export interface ErrorResponseAutoGenerated {
|
|
694
|
+
error?: ErrorDetail;
|
|
695
|
+
}
|
|
696
|
+
|
|
677
697
|
// @public
|
|
678
698
|
export interface ErrorResponseBody {
|
|
679
699
|
code?: string;
|
|
@@ -837,9 +857,6 @@ export type FileSharesLeaseResponse = FileSharesLeaseHeaders & LeaseShareRespons
|
|
|
837
857
|
|
|
838
858
|
// @public
|
|
839
859
|
export interface FileSharesListNextOptionalParams extends coreClient.OperationOptions {
|
|
840
|
-
expand?: string;
|
|
841
|
-
filter?: string;
|
|
842
|
-
maxpagesize?: string;
|
|
843
860
|
}
|
|
844
861
|
|
|
845
862
|
// @public
|
|
@@ -872,7 +889,10 @@ export type Format = string;
|
|
|
872
889
|
// @public
|
|
873
890
|
export interface GeoReplicationStats {
|
|
874
891
|
readonly canFailover?: boolean;
|
|
892
|
+
readonly canPlannedFailover?: boolean;
|
|
875
893
|
readonly lastSyncTime?: Date;
|
|
894
|
+
readonly postFailoverRedundancy?: PostFailoverRedundancy;
|
|
895
|
+
readonly postPlannedFailoverRedundancy?: PostPlannedFailoverRedundancy;
|
|
876
896
|
readonly status?: GeoReplicationStatus;
|
|
877
897
|
}
|
|
878
898
|
|
|
@@ -1001,6 +1021,7 @@ export enum KnownAllowedCopyScope {
|
|
|
1001
1021
|
|
|
1002
1022
|
// @public
|
|
1003
1023
|
export enum KnownAllowedMethods {
|
|
1024
|
+
Connect = "CONNECT",
|
|
1004
1025
|
Delete = "DELETE",
|
|
1005
1026
|
GET = "GET",
|
|
1006
1027
|
Head = "HEAD",
|
|
@@ -1008,7 +1029,8 @@ export enum KnownAllowedMethods {
|
|
|
1008
1029
|
Options = "OPTIONS",
|
|
1009
1030
|
Patch = "PATCH",
|
|
1010
1031
|
Post = "POST",
|
|
1011
|
-
PUT = "PUT"
|
|
1032
|
+
PUT = "PUT",
|
|
1033
|
+
Trace = "TRACE"
|
|
1012
1034
|
}
|
|
1013
1035
|
|
|
1014
1036
|
// @public
|
|
@@ -1211,12 +1233,26 @@ export enum KnownManagementPolicyName {
|
|
|
1211
1233
|
Default = "default"
|
|
1212
1234
|
}
|
|
1213
1235
|
|
|
1236
|
+
// @public
|
|
1237
|
+
export enum KnownMigrationName {
|
|
1238
|
+
Default = "default"
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1214
1241
|
// @public
|
|
1215
1242
|
export enum KnownMigrationState {
|
|
1216
1243
|
Completed = "Completed",
|
|
1217
1244
|
InProgress = "InProgress"
|
|
1218
1245
|
}
|
|
1219
1246
|
|
|
1247
|
+
// @public
|
|
1248
|
+
export enum KnownMigrationStatus {
|
|
1249
|
+
Complete = "Complete",
|
|
1250
|
+
Failed = "Failed",
|
|
1251
|
+
InProgress = "InProgress",
|
|
1252
|
+
Invalid = "Invalid",
|
|
1253
|
+
SubmittedForConversion = "SubmittedForConversion"
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1220
1256
|
// @public
|
|
1221
1257
|
export enum KnownMinimumTlsVersion {
|
|
1222
1258
|
TLS10 = "TLS1_0",
|
|
@@ -1255,6 +1291,20 @@ export enum KnownPermissions {
|
|
|
1255
1291
|
W = "w"
|
|
1256
1292
|
}
|
|
1257
1293
|
|
|
1294
|
+
// @public
|
|
1295
|
+
export enum KnownPostFailoverRedundancy {
|
|
1296
|
+
StandardLRS = "Standard_LRS",
|
|
1297
|
+
StandardZRS = "Standard_ZRS"
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
// @public
|
|
1301
|
+
export enum KnownPostPlannedFailoverRedundancy {
|
|
1302
|
+
StandardGRS = "Standard_GRS",
|
|
1303
|
+
StandardGzrs = "Standard_GZRS",
|
|
1304
|
+
StandardRagrs = "Standard_RAGRS",
|
|
1305
|
+
StandardRagzrs = "Standard_RAGZRS"
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1258
1308
|
// @public
|
|
1259
1309
|
export enum KnownPrivateEndpointConnectionProvisioningState {
|
|
1260
1310
|
Creating = "Creating",
|
|
@@ -1712,9 +1762,15 @@ export interface MetricSpecification {
|
|
|
1712
1762
|
unit?: string;
|
|
1713
1763
|
}
|
|
1714
1764
|
|
|
1765
|
+
// @public
|
|
1766
|
+
export type MigrationName = string;
|
|
1767
|
+
|
|
1715
1768
|
// @public
|
|
1716
1769
|
export type MigrationState = string;
|
|
1717
1770
|
|
|
1771
|
+
// @public
|
|
1772
|
+
export type MigrationStatus = string;
|
|
1773
|
+
|
|
1718
1774
|
// @public
|
|
1719
1775
|
export type MinimumTlsVersion = string;
|
|
1720
1776
|
|
|
@@ -1843,6 +1899,12 @@ export interface PermissionScope {
|
|
|
1843
1899
|
service: string;
|
|
1844
1900
|
}
|
|
1845
1901
|
|
|
1902
|
+
// @public
|
|
1903
|
+
export type PostFailoverRedundancy = string;
|
|
1904
|
+
|
|
1905
|
+
// @public
|
|
1906
|
+
export type PostPlannedFailoverRedundancy = string;
|
|
1907
|
+
|
|
1846
1908
|
// @public
|
|
1847
1909
|
export interface PrivateEndpoint {
|
|
1848
1910
|
readonly id?: string;
|
|
@@ -1983,8 +2045,6 @@ export type QueueGetResponse = StorageQueue;
|
|
|
1983
2045
|
|
|
1984
2046
|
// @public
|
|
1985
2047
|
export interface QueueListNextOptionalParams extends coreClient.OperationOptions {
|
|
1986
|
-
filter?: string;
|
|
1987
|
-
maxpagesize?: string;
|
|
1988
2048
|
}
|
|
1989
2049
|
|
|
1990
2050
|
// @public
|
|
@@ -2208,6 +2268,7 @@ export type State = string;
|
|
|
2208
2268
|
// @public
|
|
2209
2269
|
export interface StorageAccount extends TrackedResource {
|
|
2210
2270
|
readonly accessTier?: AccessTier;
|
|
2271
|
+
readonly accountMigrationInProgress?: boolean;
|
|
2211
2272
|
allowBlobPublicAccess?: boolean;
|
|
2212
2273
|
allowCrossTenantReplication?: boolean;
|
|
2213
2274
|
allowedCopyScope?: AllowedCopyScope;
|
|
@@ -2229,6 +2290,7 @@ export interface StorageAccount extends TrackedResource {
|
|
|
2229
2290
|
isHnsEnabled?: boolean;
|
|
2230
2291
|
isLocalUserEnabled?: boolean;
|
|
2231
2292
|
isSftpEnabled?: boolean;
|
|
2293
|
+
readonly isSkuConversionBlocked?: boolean;
|
|
2232
2294
|
readonly keyCreationTime?: KeyCreationTime;
|
|
2233
2295
|
readonly keyPolicy?: KeyPolicy;
|
|
2234
2296
|
readonly kind?: Kind;
|
|
@@ -2332,6 +2394,17 @@ export interface StorageAccountMicrosoftEndpoints {
|
|
|
2332
2394
|
readonly web?: string;
|
|
2333
2395
|
}
|
|
2334
2396
|
|
|
2397
|
+
// @public
|
|
2398
|
+
export interface StorageAccountMigration {
|
|
2399
|
+
readonly id?: string;
|
|
2400
|
+
readonly migrationFailedDetailedReason?: string;
|
|
2401
|
+
readonly migrationFailedReason?: string;
|
|
2402
|
+
readonly migrationStatus?: MigrationStatus;
|
|
2403
|
+
name?: string;
|
|
2404
|
+
targetSkuName: SkuName;
|
|
2405
|
+
type?: string;
|
|
2406
|
+
}
|
|
2407
|
+
|
|
2335
2408
|
// @public
|
|
2336
2409
|
export interface StorageAccountRegenerateKeyParameters {
|
|
2337
2410
|
keyName: string;
|
|
@@ -2339,18 +2412,21 @@ export interface StorageAccountRegenerateKeyParameters {
|
|
|
2339
2412
|
|
|
2340
2413
|
// @public
|
|
2341
2414
|
export interface StorageAccounts {
|
|
2342
|
-
beginAbortHierarchicalNamespaceMigration(resourceGroupName: string, accountName: string, options?: StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams): Promise<
|
|
2415
|
+
beginAbortHierarchicalNamespaceMigration(resourceGroupName: string, accountName: string, options?: StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
2343
2416
|
beginAbortHierarchicalNamespaceMigrationAndWait(resourceGroupName: string, accountName: string, options?: StorageAccountsAbortHierarchicalNamespaceMigrationOptionalParams): Promise<void>;
|
|
2344
|
-
beginCreate(resourceGroupName: string, accountName: string, parameters: StorageAccountCreateParameters, options?: StorageAccountsCreateOptionalParams): Promise<
|
|
2417
|
+
beginCreate(resourceGroupName: string, accountName: string, parameters: StorageAccountCreateParameters, options?: StorageAccountsCreateOptionalParams): Promise<SimplePollerLike<OperationState<StorageAccountsCreateResponse>, StorageAccountsCreateResponse>>;
|
|
2345
2418
|
beginCreateAndWait(resourceGroupName: string, accountName: string, parameters: StorageAccountCreateParameters, options?: StorageAccountsCreateOptionalParams): Promise<StorageAccountsCreateResponse>;
|
|
2346
|
-
|
|
2419
|
+
beginCustomerInitiatedMigration(resourceGroupName: string, accountName: string, parameters: StorageAccountMigration, options?: StorageAccountsCustomerInitiatedMigrationOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
2420
|
+
beginCustomerInitiatedMigrationAndWait(resourceGroupName: string, accountName: string, parameters: StorageAccountMigration, options?: StorageAccountsCustomerInitiatedMigrationOptionalParams): Promise<void>;
|
|
2421
|
+
beginFailover(resourceGroupName: string, accountName: string, options?: StorageAccountsFailoverOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
2347
2422
|
beginFailoverAndWait(resourceGroupName: string, accountName: string, options?: StorageAccountsFailoverOptionalParams): Promise<void>;
|
|
2348
|
-
beginHierarchicalNamespaceMigration(resourceGroupName: string, accountName: string, requestType: string, options?: StorageAccountsHierarchicalNamespaceMigrationOptionalParams): Promise<
|
|
2423
|
+
beginHierarchicalNamespaceMigration(resourceGroupName: string, accountName: string, requestType: string, options?: StorageAccountsHierarchicalNamespaceMigrationOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
2349
2424
|
beginHierarchicalNamespaceMigrationAndWait(resourceGroupName: string, accountName: string, requestType: string, options?: StorageAccountsHierarchicalNamespaceMigrationOptionalParams): Promise<void>;
|
|
2350
|
-
beginRestoreBlobRanges(resourceGroupName: string, accountName: string, parameters: BlobRestoreParameters, options?: StorageAccountsRestoreBlobRangesOptionalParams): Promise<
|
|
2425
|
+
beginRestoreBlobRanges(resourceGroupName: string, accountName: string, parameters: BlobRestoreParameters, options?: StorageAccountsRestoreBlobRangesOptionalParams): Promise<SimplePollerLike<OperationState<StorageAccountsRestoreBlobRangesResponse>, StorageAccountsRestoreBlobRangesResponse>>;
|
|
2351
2426
|
beginRestoreBlobRangesAndWait(resourceGroupName: string, accountName: string, parameters: BlobRestoreParameters, options?: StorageAccountsRestoreBlobRangesOptionalParams): Promise<StorageAccountsRestoreBlobRangesResponse>;
|
|
2352
2427
|
checkNameAvailability(accountName: StorageAccountCheckNameAvailabilityParameters, options?: StorageAccountsCheckNameAvailabilityOptionalParams): Promise<StorageAccountsCheckNameAvailabilityResponse>;
|
|
2353
2428
|
delete(resourceGroupName: string, accountName: string, options?: StorageAccountsDeleteOptionalParams): Promise<void>;
|
|
2429
|
+
getCustomerInitiatedMigration(resourceGroupName: string, accountName: string, migrationName: MigrationName, options?: StorageAccountsGetCustomerInitiatedMigrationOptionalParams): Promise<StorageAccountsGetCustomerInitiatedMigrationResponse>;
|
|
2354
2430
|
getProperties(resourceGroupName: string, accountName: string, options?: StorageAccountsGetPropertiesOptionalParams): Promise<StorageAccountsGetPropertiesResponse>;
|
|
2355
2431
|
list(options?: StorageAccountsListOptionalParams): PagedAsyncIterableIterator<StorageAccount>;
|
|
2356
2432
|
listAccountSAS(resourceGroupName: string, accountName: string, parameters: AccountSasParameters, options?: StorageAccountsListAccountSASOptionalParams): Promise<StorageAccountsListAccountSASResponse>;
|
|
@@ -2384,6 +2460,18 @@ export interface StorageAccountsCreateOptionalParams extends coreClient.Operatio
|
|
|
2384
2460
|
// @public
|
|
2385
2461
|
export type StorageAccountsCreateResponse = StorageAccount;
|
|
2386
2462
|
|
|
2463
|
+
// @public
|
|
2464
|
+
export interface StorageAccountsCustomerInitiatedMigrationHeaders {
|
|
2465
|
+
// (undocumented)
|
|
2466
|
+
location?: string;
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
// @public
|
|
2470
|
+
export interface StorageAccountsCustomerInitiatedMigrationOptionalParams extends coreClient.OperationOptions {
|
|
2471
|
+
resumeFrom?: string;
|
|
2472
|
+
updateIntervalInMs?: number;
|
|
2473
|
+
}
|
|
2474
|
+
|
|
2387
2475
|
// @public
|
|
2388
2476
|
export interface StorageAccountsDeleteOptionalParams extends coreClient.OperationOptions {
|
|
2389
2477
|
}
|
|
@@ -2394,6 +2482,13 @@ export interface StorageAccountsFailoverOptionalParams extends coreClient.Operat
|
|
|
2394
2482
|
updateIntervalInMs?: number;
|
|
2395
2483
|
}
|
|
2396
2484
|
|
|
2485
|
+
// @public
|
|
2486
|
+
export interface StorageAccountsGetCustomerInitiatedMigrationOptionalParams extends coreClient.OperationOptions {
|
|
2487
|
+
}
|
|
2488
|
+
|
|
2489
|
+
// @public
|
|
2490
|
+
export type StorageAccountsGetCustomerInitiatedMigrationResponse = StorageAccountMigration;
|
|
2491
|
+
|
|
2397
2492
|
// @public
|
|
2398
2493
|
export interface StorageAccountsGetPropertiesOptionalParams extends coreClient.OperationOptions {
|
|
2399
2494
|
expand?: StorageAccountExpand;
|
package/src/lroImpl.ts
CHANGED
|
@@ -6,29 +6,37 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT license.
|
|
11
|
+
|
|
12
|
+
import { AbortSignalLike } from "@azure/abort-controller";
|
|
9
13
|
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
10
14
|
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
...restSpec
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
15
|
+
export function createLroSpec<T>(inputs: {
|
|
16
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
17
|
+
args: Record<string, unknown>;
|
|
18
|
+
spec: {
|
|
19
|
+
readonly requestBody?: unknown;
|
|
20
|
+
readonly path?: string;
|
|
21
|
+
readonly httpMethod: string;
|
|
22
|
+
} & Record<string, any>;
|
|
23
|
+
}): LongRunningOperation<T> {
|
|
24
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
25
|
+
return {
|
|
26
|
+
requestMethod: spec.httpMethod,
|
|
27
|
+
requestPath: spec.path!,
|
|
28
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
29
|
+
sendPollRequest: (
|
|
30
|
+
path: string,
|
|
31
|
+
options?: { abortSignal?: AbortSignalLike }
|
|
32
|
+
) => {
|
|
33
|
+
const { requestBody, ...restSpec } = spec;
|
|
34
|
+
return sendOperationFn(args, {
|
|
35
|
+
...restSpec,
|
|
36
|
+
httpMethod: "GET",
|
|
37
|
+
path,
|
|
38
|
+
abortSignal: options?.abortSignal
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
};
|
|
34
42
|
}
|