@azure/arm-storage 18.2.1-alpha.20240422.1 → 18.3.0
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 +107 -17
- package/LICENSE +1 -1
- package/dist/index.js +9905 -7599
- 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 +1 -1
- package/dist-esm/samples-dev/blobContainersCreateOrUpdateImmutabilityPolicySample.js +7 -11
- package/dist-esm/samples-dev/blobContainersCreateOrUpdateImmutabilityPolicySample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersCreateSample.js +5 -5
- package/dist-esm/samples-dev/blobContainersDeleteImmutabilityPolicySample.js +1 -1
- package/dist-esm/samples-dev/blobContainersDeleteSample.js +1 -1
- package/dist-esm/samples-dev/blobContainersExtendImmutabilityPolicySample.js +4 -4
- package/dist-esm/samples-dev/blobContainersExtendImmutabilityPolicySample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersGetImmutabilityPolicySample.js +1 -1
- package/dist-esm/samples-dev/blobContainersGetSample.js +2 -2
- package/dist-esm/samples-dev/blobContainersLeaseSample.js +5 -5
- package/dist-esm/samples-dev/blobContainersLeaseSample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersListSample.js +3 -3
- package/dist-esm/samples-dev/blobContainersListSample.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersLockImmutabilityPolicySample.js +1 -1
- package/dist-esm/samples-dev/blobContainersObjectLevelWormSample.js +1 -1
- package/dist-esm/samples-dev/blobContainersSetLegalHoldSample.js +3 -3
- package/dist-esm/samples-dev/blobContainersUpdateSample.js +2 -2
- package/dist-esm/samples-dev/blobInventoryPoliciesCreateOrUpdateSample.js +34 -34
- package/dist-esm/samples-dev/blobInventoryPoliciesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/blobInventoryPoliciesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/blobInventoryPoliciesGetSample.js +1 -1
- package/dist-esm/samples-dev/blobInventoryPoliciesListSample.js +1 -1
- package/dist-esm/samples-dev/blobServicesGetServicePropertiesSample.js +1 -1
- package/dist-esm/samples-dev/blobServicesListSample.js +1 -1
- package/dist-esm/samples-dev/blobServicesSetServicePropertiesSample.js +17 -17
- package/dist-esm/samples-dev/blobServicesSetServicePropertiesSample.js.map +1 -1
- package/dist-esm/samples-dev/deletedAccountsGetSample.js +1 -1
- package/dist-esm/samples-dev/deletedAccountsListSample.js +1 -1
- package/dist-esm/samples-dev/encryptionScopesGetSample.js +1 -1
- package/dist-esm/samples-dev/encryptionScopesListSample.js +1 -1
- package/dist-esm/samples-dev/encryptionScopesPatchSample.js +3 -3
- package/dist-esm/samples-dev/encryptionScopesPutSample.js +3 -3
- package/dist-esm/samples-dev/fileServicesGetServicePropertiesSample.js +1 -1
- package/dist-esm/samples-dev/fileServicesListSample.js +1 -1
- package/dist-esm/samples-dev/fileServicesSetServicePropertiesSample.js +17 -17
- package/dist-esm/samples-dev/fileServicesSetServicePropertiesSample.js.map +1 -1
- package/dist-esm/samples-dev/fileSharesCreateSample.js +3 -3
- package/dist-esm/samples-dev/fileSharesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/fileSharesGetSample.js +3 -3
- package/dist-esm/samples-dev/fileSharesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/fileSharesLeaseSample.js +5 -5
- package/dist-esm/samples-dev/fileSharesLeaseSample.js.map +1 -1
- package/dist-esm/samples-dev/fileSharesListSample.js +4 -4
- package/dist-esm/samples-dev/fileSharesListSample.js.map +1 -1
- package/dist-esm/samples-dev/fileSharesRestoreSample.js +2 -2
- package/dist-esm/samples-dev/fileSharesUpdateSample.js +6 -6
- package/dist-esm/samples-dev/localUsersCreateOrUpdateSample.js +39 -10
- package/dist-esm/samples-dev/localUsersCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/localUsersDeleteSample.js +1 -1
- package/dist-esm/samples-dev/localUsersGetSample.js +1 -1
- package/dist-esm/samples-dev/localUsersListKeysSample.js +1 -1
- package/dist-esm/samples-dev/localUsersListSample.js +38 -2
- package/dist-esm/samples-dev/localUsersListSample.js.map +1 -1
- package/dist-esm/samples-dev/localUsersRegeneratePasswordSample.js +1 -1
- package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.js +85 -85
- package/dist-esm/samples-dev/managementPoliciesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/managementPoliciesGetSample.js +1 -1
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.js +40 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListSample.js +55 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.d.ts +2 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.js +40 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.js.map +1 -0
- package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.js +19 -19
- package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.js +1 -1
- package/dist-esm/samples-dev/objectReplicationPoliciesListSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +4 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.js +1 -1
- package/dist-esm/samples-dev/queueCreateSample.js +3 -3
- package/dist-esm/samples-dev/queueDeleteSample.js +1 -1
- package/dist-esm/samples-dev/queueGetSample.js +1 -1
- package/dist-esm/samples-dev/queueListSample.js +1 -1
- package/dist-esm/samples-dev/queueServicesGetServicePropertiesSample.js +1 -1
- package/dist-esm/samples-dev/queueServicesListSample.js +1 -1
- package/dist-esm/samples-dev/queueServicesSetServicePropertiesSample.js +11 -11
- package/dist-esm/samples-dev/queueServicesSetServicePropertiesSample.js.map +1 -1
- package/dist-esm/samples-dev/queueUpdateSample.js +1 -1
- package/dist-esm/samples-dev/skusListSample.js +1 -1
- package/dist-esm/samples-dev/storageAccountsAbortHierarchicalNamespaceMigrationSample.js +1 -1
- package/dist-esm/samples-dev/storageAccountsAbortHierarchicalNamespaceMigrationSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.js +3 -3
- package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsCreateSample.js +66 -65
- package/dist-esm/samples-dev/storageAccountsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsCustomerInitiatedMigrationSample.js +2 -2
- package/dist-esm/samples-dev/storageAccountsCustomerInitiatedMigrationSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/storageAccountsFailoverSample.js +2 -2
- package/dist-esm/samples-dev/storageAccountsGetCustomerInitiatedMigrationSample.js +2 -2
- package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.js +7 -7
- package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsHierarchicalNamespaceMigrationSample.js +1 -1
- package/dist-esm/samples-dev/storageAccountsHierarchicalNamespaceMigrationSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsListAccountSasSample.js +3 -3
- package/dist-esm/samples-dev/storageAccountsListAccountSasSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/storageAccountsListKeysSample.js +1 -1
- package/dist-esm/samples-dev/storageAccountsListSample.js +1 -1
- package/dist-esm/samples-dev/storageAccountsListServiceSasSample.js +3 -3
- package/dist-esm/samples-dev/storageAccountsListServiceSasSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.js +5 -5
- package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.js +4 -4
- package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.js +1 -1
- package/dist-esm/samples-dev/storageAccountsUpdateSample.js +55 -54
- package/dist-esm/samples-dev/storageAccountsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/storageTaskAssignmentInstancesReportListSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTaskAssignmentInstancesReportListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTaskAssignmentInstancesReportListSample.js +56 -0
- package/dist-esm/samples-dev/storageTaskAssignmentInstancesReportListSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTaskAssignmentsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTaskAssignmentsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTaskAssignmentsCreateSample.js +89 -0
- package/dist-esm/samples-dev/storageTaskAssignmentsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTaskAssignmentsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTaskAssignmentsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTaskAssignmentsDeleteSample.js +40 -0
- package/dist-esm/samples-dev/storageTaskAssignmentsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTaskAssignmentsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTaskAssignmentsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTaskAssignmentsGetSample.js +40 -0
- package/dist-esm/samples-dev/storageTaskAssignmentsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTaskAssignmentsInstancesReportListSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTaskAssignmentsInstancesReportListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTaskAssignmentsInstancesReportListSample.js +55 -0
- package/dist-esm/samples-dev/storageTaskAssignmentsInstancesReportListSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTaskAssignmentsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTaskAssignmentsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTaskAssignmentsListSample.js +55 -0
- package/dist-esm/samples-dev/storageTaskAssignmentsListSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTaskAssignmentsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTaskAssignmentsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTaskAssignmentsUpdateSample.js +54 -0
- package/dist-esm/samples-dev/storageTaskAssignmentsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/tableCreateSample.js +9 -9
- package/dist-esm/samples-dev/tableCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/tableDeleteSample.js +1 -1
- package/dist-esm/samples-dev/tableGetSample.js +1 -1
- package/dist-esm/samples-dev/tableListSample.js +1 -1
- package/dist-esm/samples-dev/tableServicesGetServicePropertiesSample.js +1 -1
- package/dist-esm/samples-dev/tableServicesListSample.js +1 -1
- package/dist-esm/samples-dev/tableServicesSetServicePropertiesSample.js +11 -11
- package/dist-esm/samples-dev/tableServicesSetServicePropertiesSample.js.map +1 -1
- package/dist-esm/samples-dev/tableUpdateSample.js +9 -9
- package/dist-esm/samples-dev/tableUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/usagesListByLocationSample.js +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +2634 -1975
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +225 -149
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +75 -42
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +5262 -4221
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +43 -37
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +389 -335
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/blobContainers.d.ts.map +1 -1
- package/dist-esm/src/operations/blobContainers.js +101 -101
- package/dist-esm/src/operations/blobContainers.js.map +1 -1
- package/dist-esm/src/operations/blobInventoryPolicies.js +28 -28
- package/dist-esm/src/operations/blobInventoryPolicies.js.map +1 -1
- package/dist-esm/src/operations/blobServices.js +19 -19
- package/dist-esm/src/operations/blobServices.js.map +1 -1
- package/dist-esm/src/operations/deletedAccounts.js +15 -15
- package/dist-esm/src/operations/deletedAccounts.js.map +1 -1
- package/dist-esm/src/operations/encryptionScopes.js +38 -38
- package/dist-esm/src/operations/encryptionScopes.js.map +1 -1
- package/dist-esm/src/operations/fileServices.js +21 -21
- package/dist-esm/src/operations/fileServices.js.map +1 -1
- package/dist-esm/src/operations/fileShares.js +62 -62
- package/dist-esm/src/operations/fileShares.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +10 -6
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +10 -6
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/localUsersOperations.d.ts +2 -1
- package/dist-esm/src/operations/localUsersOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/localUsersOperations.js +49 -43
- package/dist-esm/src/operations/localUsersOperations.js.map +1 -1
- package/dist-esm/src/operations/managementPolicies.js +17 -17
- package/dist-esm/src/operations/managementPolicies.js.map +1 -1
- package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.d.ts +73 -0
- package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.js +256 -0
- package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist-esm/src/operations/objectReplicationPoliciesOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/objectReplicationPoliciesOperations.js +28 -28
- package/dist-esm/src/operations/objectReplicationPoliciesOperations.js.map +1 -1
- package/dist-esm/src/operations/operations.js +4 -4
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +29 -29
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.js +5 -5
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/queue.js +42 -42
- package/dist-esm/src/operations/queue.js.map +1 -1
- package/dist-esm/src/operations/queueServices.js +21 -21
- package/dist-esm/src/operations/queueServices.js.map +1 -1
- package/dist-esm/src/operations/skus.js +4 -4
- package/dist-esm/src/operations/storageAccounts.d.ts.map +1 -1
- package/dist-esm/src/operations/storageAccounts.js +132 -132
- package/dist-esm/src/operations/storageAccounts.js.map +1 -1
- package/dist-esm/src/operations/storageTaskAssignmentInstancesReport.d.ts +53 -0
- package/dist-esm/src/operations/storageTaskAssignmentInstancesReport.d.ts.map +1 -0
- package/dist-esm/src/operations/storageTaskAssignmentInstancesReport.js +177 -0
- package/dist-esm/src/operations/storageTaskAssignmentInstancesReport.js.map +1 -0
- package/dist-esm/src/operations/storageTaskAssignments.d.ts +141 -0
- package/dist-esm/src/operations/storageTaskAssignments.d.ts.map +1 -0
- package/dist-esm/src/operations/storageTaskAssignments.js +518 -0
- package/dist-esm/src/operations/storageTaskAssignments.js.map +1 -0
- package/dist-esm/src/operations/storageTaskAssignmentsInstancesReport.d.ts +44 -0
- package/dist-esm/src/operations/storageTaskAssignmentsInstancesReport.d.ts.map +1 -0
- package/dist-esm/src/operations/storageTaskAssignmentsInstancesReport.js +160 -0
- package/dist-esm/src/operations/storageTaskAssignmentsInstancesReport.js.map +1 -0
- package/dist-esm/src/operations/tableOperations.js +41 -41
- package/dist-esm/src/operations/tableOperations.js.map +1 -1
- package/dist-esm/src/operations/tableServices.js +20 -20
- package/dist-esm/src/operations/tableServices.js.map +1 -1
- package/dist-esm/src/operations/usages.js +5 -5
- package/dist-esm/src/operations/usages.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +10 -6
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +10 -6
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/localUsersOperations.d.ts +2 -1
- package/dist-esm/src/operationsInterfaces/localUsersOperations.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +53 -0
- package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.js +9 -0
- package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageTaskAssignmentInstancesReport.d.ts +18 -0
- package/dist-esm/src/operationsInterfaces/storageTaskAssignmentInstancesReport.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageTaskAssignmentInstancesReport.js +9 -0
- package/dist-esm/src/operationsInterfaces/storageTaskAssignmentInstancesReport.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageTaskAssignments.d.ts +112 -0
- package/dist-esm/src/operationsInterfaces/storageTaskAssignments.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageTaskAssignments.js +9 -0
- package/dist-esm/src/operationsInterfaces/storageTaskAssignments.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageTaskAssignmentsInstancesReport.d.ts +15 -0
- package/dist-esm/src/operationsInterfaces/storageTaskAssignmentsInstancesReport.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageTaskAssignmentsInstancesReport.js +9 -0
- package/dist-esm/src/operationsInterfaces/storageTaskAssignmentsInstancesReport.js.map +1 -0
- package/dist-esm/src/storageManagementClient.d.ts +11 -7
- package/dist-esm/src/storageManagementClient.d.ts.map +1 -1
- package/dist-esm/src/storageManagementClient.js +24 -16
- package/dist-esm/src/storageManagementClient.js.map +1 -1
- package/dist-esm/test/storage_examples.d.ts.map +1 -1
- package/dist-esm/test/storage_examples.js +6 -5
- package/dist-esm/test/storage_examples.js.map +1 -1
- package/package.json +11 -11
- package/review/arm-storage.api.md +470 -4
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +3163 -2397
- package/src/models/mappers.ts +4188 -3072
- package/src/models/parameters.ts +437 -374
- package/src/operations/blobContainers.ts +179 -193
- package/src/operations/blobInventoryPolicies.ts +46 -50
- package/src/operations/blobServices.ts +34 -37
- package/src/operations/deletedAccounts.ts +26 -28
- package/src/operations/encryptionScopes.ts +59 -63
- package/src/operations/fileServices.ts +31 -34
- package/src/operations/fileShares.ts +92 -99
- package/src/operations/index.ts +10 -6
- package/src/operations/localUsersOperations.ts +73 -73
- package/src/operations/managementPolicies.ts +27 -30
- package/src/operations/networkSecurityPerimeterConfigurations.ts +343 -0
- package/src/operations/objectReplicationPoliciesOperations.ts +48 -51
- package/src/operations/operations.ts +9 -9
- package/src/operations/privateEndpointConnections.ts +49 -52
- package/src/operations/privateLinkResources.ts +9 -10
- package/src/operations/queue.ts +66 -71
- package/src/operations/queueServices.ts +31 -34
- package/src/operations/skus.ts +8 -8
- package/src/operations/storageAccounts.ts +249 -272
- package/src/operations/storageTaskAssignmentInstancesReport.ts +240 -0
- package/src/operations/storageTaskAssignments.ts +700 -0
- package/src/operations/storageTaskAssignmentsInstancesReport.ts +205 -0
- package/src/operations/tableOperations.ts +65 -70
- package/src/operations/tableServices.ts +30 -33
- package/src/operations/usages.ts +12 -13
- package/src/operationsInterfaces/blobContainers.ts +16 -16
- package/src/operationsInterfaces/blobInventoryPolicies.ts +5 -5
- package/src/operationsInterfaces/blobServices.ts +4 -4
- package/src/operationsInterfaces/deletedAccounts.ts +3 -3
- package/src/operationsInterfaces/encryptionScopes.ts +5 -5
- package/src/operationsInterfaces/fileServices.ts +4 -4
- package/src/operationsInterfaces/fileShares.ts +8 -8
- package/src/operationsInterfaces/index.ts +10 -6
- package/src/operationsInterfaces/localUsersOperations.ts +9 -8
- package/src/operationsInterfaces/managementPolicies.ts +4 -4
- package/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts +93 -0
- package/src/operationsInterfaces/objectReplicationPoliciesOperations.ts +5 -5
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/privateEndpointConnections.ts +5 -5
- package/src/operationsInterfaces/privateLinkResources.ts +2 -2
- package/src/operationsInterfaces/queue.ts +6 -6
- package/src/operationsInterfaces/queueServices.ts +4 -4
- package/src/operationsInterfaces/skus.ts +1 -1
- package/src/operationsInterfaces/storageAccounts.ts +25 -25
- package/src/operationsInterfaces/storageTaskAssignmentInstancesReport.ts +35 -0
- package/src/operationsInterfaces/storageTaskAssignments.ts +191 -0
- package/src/operationsInterfaces/storageTaskAssignmentsInstancesReport.ts +31 -0
- package/src/operationsInterfaces/tableOperations.ts +6 -6
- package/src/operationsInterfaces/tableServices.ts +4 -4
- package/src/operationsInterfaces/usages.ts +1 -1
- package/src/pagingHelper.ts +1 -1
- package/src/storageManagementClient.ts +63 -44
- package/types/arm-storage.d.ts +958 -30
- package/types/tsdoc-metadata.json +1 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { __awaiter } from "tslib";
|
|
9
9
|
// Copyright (c) Microsoft Corporation.
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
|
-
import { StorageManagementClient } from "@azure/arm-storage";
|
|
11
|
+
import { StorageManagementClient, } from "@azure/arm-storage";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
13
|
import * as dotenv from "dotenv";
|
|
14
14
|
dotenv.config();
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
|
|
17
17
|
*
|
|
18
18
|
* @summary The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
|
|
19
|
-
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-
|
|
19
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountEnableAD.json
|
|
20
20
|
*/
|
|
21
21
|
function storageAccountEnableAd() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -33,10 +33,10 @@ function storageAccountEnableAd() {
|
|
|
33
33
|
domainSid: "S-1-5-21-2400535526-2334094090-2402026252",
|
|
34
34
|
forestName: "adtest.com",
|
|
35
35
|
netBiosDomainName: "adtest.com",
|
|
36
|
-
samAccountName: "sam12498"
|
|
36
|
+
samAccountName: "sam12498",
|
|
37
37
|
},
|
|
38
|
-
directoryServiceOptions: "AD"
|
|
39
|
-
}
|
|
38
|
+
directoryServiceOptions: "AD",
|
|
39
|
+
},
|
|
40
40
|
};
|
|
41
41
|
const credential = new DefaultAzureCredential();
|
|
42
42
|
const client = new StorageManagementClient(credential, subscriptionId);
|
|
@@ -48,7 +48,7 @@ function storageAccountEnableAd() {
|
|
|
48
48
|
* This sample demonstrates how to The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
|
|
49
49
|
*
|
|
50
50
|
* @summary The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
|
|
51
|
-
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-
|
|
51
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountEnableCMK.json
|
|
52
52
|
*/
|
|
53
53
|
function storageAccountEnableCmk() {
|
|
54
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -61,13 +61,13 @@ function storageAccountEnableCmk() {
|
|
|
61
61
|
keyVaultProperties: {
|
|
62
62
|
keyName: "wrappingKey",
|
|
63
63
|
keyVaultUri: "https://myvault8569.vault.azure.net",
|
|
64
|
-
keyVersion: ""
|
|
64
|
+
keyVersion: "",
|
|
65
65
|
},
|
|
66
66
|
services: {
|
|
67
67
|
blob: { enabled: true, keyType: "Account" },
|
|
68
|
-
file: { enabled: true, keyType: "Account" }
|
|
69
|
-
}
|
|
70
|
-
}
|
|
68
|
+
file: { enabled: true, keyType: "Account" },
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
71
|
};
|
|
72
72
|
const credential = new DefaultAzureCredential();
|
|
73
73
|
const client = new StorageManagementClient(credential, subscriptionId);
|
|
@@ -79,7 +79,7 @@ function storageAccountEnableCmk() {
|
|
|
79
79
|
* This sample demonstrates how to The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
|
|
80
80
|
*
|
|
81
81
|
* @summary The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
|
|
82
|
-
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-
|
|
82
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountUpdate.json
|
|
83
83
|
*/
|
|
84
84
|
function storageAccountUpdate() {
|
|
85
85
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -90,12 +90,13 @@ function storageAccountUpdate() {
|
|
|
90
90
|
allowBlobPublicAccess: false,
|
|
91
91
|
allowSharedKeyAccess: true,
|
|
92
92
|
defaultToOAuthAuthentication: false,
|
|
93
|
+
enableExtendedGroups: true,
|
|
93
94
|
encryption: {
|
|
94
95
|
keySource: "Microsoft.Storage",
|
|
95
96
|
services: {
|
|
96
97
|
blob: { enabled: true, keyType: "Account" },
|
|
97
|
-
file: { enabled: true, keyType: "Account" }
|
|
98
|
-
}
|
|
98
|
+
file: { enabled: true, keyType: "Account" },
|
|
99
|
+
},
|
|
99
100
|
},
|
|
100
101
|
isLocalUserEnabled: true,
|
|
101
102
|
isSftpEnabled: true,
|
|
@@ -106,16 +107,16 @@ function storageAccountUpdate() {
|
|
|
106
107
|
resourceAccessRules: [
|
|
107
108
|
{
|
|
108
109
|
resourceId: "/subscriptions/a7e99807-abbf-4642-bdec-2c809a96a8bc/resourceGroups/res9407/providers/Microsoft.Synapse/workspaces/testworkspace",
|
|
109
|
-
tenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47"
|
|
110
|
-
}
|
|
111
|
-
]
|
|
110
|
+
tenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47",
|
|
111
|
+
},
|
|
112
|
+
],
|
|
112
113
|
},
|
|
113
114
|
routingPreference: {
|
|
114
115
|
publishInternetEndpoints: true,
|
|
115
116
|
publishMicrosoftEndpoints: true,
|
|
116
|
-
routingChoice: "MicrosoftRouting"
|
|
117
|
+
routingChoice: "MicrosoftRouting",
|
|
117
118
|
},
|
|
118
|
-
sasPolicy: { expirationAction: "Log", sasExpirationPeriod: "1.15:59:59" }
|
|
119
|
+
sasPolicy: { expirationAction: "Log", sasExpirationPeriod: "1.15:59:59" },
|
|
119
120
|
};
|
|
120
121
|
const credential = new DefaultAzureCredential();
|
|
121
122
|
const client = new StorageManagementClient(credential, subscriptionId);
|
|
@@ -127,7 +128,7 @@ function storageAccountUpdate() {
|
|
|
127
128
|
* This sample demonstrates how to The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
|
|
128
129
|
*
|
|
129
130
|
* @summary The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
|
|
130
|
-
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-
|
|
131
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountUpdateAllowedCopyScopeToAAD.json
|
|
131
132
|
*/
|
|
132
133
|
function storageAccountUpdateAllowedCopyScopeToAad() {
|
|
133
134
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -142,8 +143,8 @@ function storageAccountUpdateAllowedCopyScopeToAad() {
|
|
|
142
143
|
keySource: "Microsoft.Storage",
|
|
143
144
|
services: {
|
|
144
145
|
blob: { enabled: true, keyType: "Account" },
|
|
145
|
-
file: { enabled: true, keyType: "Account" }
|
|
146
|
-
}
|
|
146
|
+
file: { enabled: true, keyType: "Account" },
|
|
147
|
+
},
|
|
147
148
|
},
|
|
148
149
|
keyPolicy: { keyExpirationPeriodInDays: 20 },
|
|
149
150
|
minimumTlsVersion: "TLS1_2",
|
|
@@ -152,16 +153,16 @@ function storageAccountUpdateAllowedCopyScopeToAad() {
|
|
|
152
153
|
resourceAccessRules: [
|
|
153
154
|
{
|
|
154
155
|
resourceId: "/subscriptions/a7e99807-abbf-4642-bdec-2c809a96a8bc/resourceGroups/res9407/providers/Microsoft.Synapse/workspaces/testworkspace",
|
|
155
|
-
tenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47"
|
|
156
|
-
}
|
|
157
|
-
]
|
|
156
|
+
tenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47",
|
|
157
|
+
},
|
|
158
|
+
],
|
|
158
159
|
},
|
|
159
160
|
routingPreference: {
|
|
160
161
|
publishInternetEndpoints: true,
|
|
161
162
|
publishMicrosoftEndpoints: true,
|
|
162
|
-
routingChoice: "MicrosoftRouting"
|
|
163
|
+
routingChoice: "MicrosoftRouting",
|
|
163
164
|
},
|
|
164
|
-
sasPolicy: { expirationAction: "Log", sasExpirationPeriod: "1.15:59:59" }
|
|
165
|
+
sasPolicy: { expirationAction: "Log", sasExpirationPeriod: "1.15:59:59" },
|
|
165
166
|
};
|
|
166
167
|
const credential = new DefaultAzureCredential();
|
|
167
168
|
const client = new StorageManagementClient(credential, subscriptionId);
|
|
@@ -173,7 +174,7 @@ function storageAccountUpdateAllowedCopyScopeToAad() {
|
|
|
173
174
|
* This sample demonstrates how to The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
|
|
174
175
|
*
|
|
175
176
|
* @summary The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
|
|
176
|
-
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-
|
|
177
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountUpdateDisablePublicNetworkAccess.json
|
|
177
178
|
*/
|
|
178
179
|
function storageAccountUpdateDisablePublicNetworkAccess() {
|
|
179
180
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -187,8 +188,8 @@ function storageAccountUpdateDisablePublicNetworkAccess() {
|
|
|
187
188
|
keySource: "Microsoft.Storage",
|
|
188
189
|
services: {
|
|
189
190
|
blob: { enabled: true, keyType: "Account" },
|
|
190
|
-
file: { enabled: true, keyType: "Account" }
|
|
191
|
-
}
|
|
191
|
+
file: { enabled: true, keyType: "Account" },
|
|
192
|
+
},
|
|
192
193
|
},
|
|
193
194
|
keyPolicy: { keyExpirationPeriodInDays: 20 },
|
|
194
195
|
minimumTlsVersion: "TLS1_2",
|
|
@@ -197,17 +198,17 @@ function storageAccountUpdateDisablePublicNetworkAccess() {
|
|
|
197
198
|
resourceAccessRules: [
|
|
198
199
|
{
|
|
199
200
|
resourceId: "/subscriptions/a7e99807-abbf-4642-bdec-2c809a96a8bc/resourceGroups/res9407/providers/Microsoft.Synapse/workspaces/testworkspace",
|
|
200
|
-
tenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47"
|
|
201
|
-
}
|
|
202
|
-
]
|
|
201
|
+
tenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47",
|
|
202
|
+
},
|
|
203
|
+
],
|
|
203
204
|
},
|
|
204
205
|
publicNetworkAccess: "Disabled",
|
|
205
206
|
routingPreference: {
|
|
206
207
|
publishInternetEndpoints: true,
|
|
207
208
|
publishMicrosoftEndpoints: true,
|
|
208
|
-
routingChoice: "MicrosoftRouting"
|
|
209
|
+
routingChoice: "MicrosoftRouting",
|
|
209
210
|
},
|
|
210
|
-
sasPolicy: { expirationAction: "Log", sasExpirationPeriod: "1.15:59:59" }
|
|
211
|
+
sasPolicy: { expirationAction: "Log", sasExpirationPeriod: "1.15:59:59" },
|
|
211
212
|
};
|
|
212
213
|
const credential = new DefaultAzureCredential();
|
|
213
214
|
const client = new StorageManagementClient(credential, subscriptionId);
|
|
@@ -219,7 +220,7 @@ function storageAccountUpdateDisablePublicNetworkAccess() {
|
|
|
219
220
|
* This sample demonstrates how to The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
|
|
220
221
|
*
|
|
221
222
|
* @summary The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
|
|
222
|
-
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-
|
|
223
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountUpdateUserAssignedEncryptionIdentityWithCMK.json
|
|
223
224
|
*/
|
|
224
225
|
function storageAccountUpdateUserAssignedEncryptionIdentityWithCmk() {
|
|
225
226
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -229,27 +230,27 @@ function storageAccountUpdateUserAssignedEncryptionIdentityWithCmk() {
|
|
|
229
230
|
const parameters = {
|
|
230
231
|
encryption: {
|
|
231
232
|
encryptionIdentity: {
|
|
232
|
-
encryptionUserAssignedIdentity: "/subscriptions/{subscription-id}/resourceGroups/res9101/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{managed-identity-name}"
|
|
233
|
+
encryptionUserAssignedIdentity: "/subscriptions/{subscription-id}/resourceGroups/res9101/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{managed-identity-name}",
|
|
233
234
|
},
|
|
234
235
|
keySource: "Microsoft.Keyvault",
|
|
235
236
|
keyVaultProperties: {
|
|
236
237
|
keyName: "wrappingKey",
|
|
237
238
|
keyVaultUri: "https://myvault8569.vault.azure.net",
|
|
238
|
-
keyVersion: ""
|
|
239
|
+
keyVersion: "",
|
|
239
240
|
},
|
|
240
241
|
services: {
|
|
241
242
|
blob: { enabled: true, keyType: "Account" },
|
|
242
|
-
file: { enabled: true, keyType: "Account" }
|
|
243
|
-
}
|
|
243
|
+
file: { enabled: true, keyType: "Account" },
|
|
244
|
+
},
|
|
244
245
|
},
|
|
245
246
|
identity: {
|
|
246
247
|
type: "UserAssigned",
|
|
247
248
|
userAssignedIdentities: {
|
|
248
|
-
"/subscriptions/{subscriptionId}/resourceGroups/res9101/providers/MicrosoftManagedIdentity/userAssignedIdentities/{managedIdentityName}": {}
|
|
249
|
-
}
|
|
249
|
+
"/subscriptions/{subscriptionId}/resourceGroups/res9101/providers/MicrosoftManagedIdentity/userAssignedIdentities/{managedIdentityName}": {},
|
|
250
|
+
},
|
|
250
251
|
},
|
|
251
252
|
kind: "Storage",
|
|
252
|
-
sku: { name: "Standard_LRS" }
|
|
253
|
+
sku: { name: "Standard_LRS" },
|
|
253
254
|
};
|
|
254
255
|
const credential = new DefaultAzureCredential();
|
|
255
256
|
const client = new StorageManagementClient(credential, subscriptionId);
|
|
@@ -261,7 +262,7 @@ function storageAccountUpdateUserAssignedEncryptionIdentityWithCmk() {
|
|
|
261
262
|
* This sample demonstrates how to The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
|
|
262
263
|
*
|
|
263
264
|
* @summary The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
|
|
264
|
-
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-
|
|
265
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountUpdateUserAssignedIdentityWithFederatedIdentityClientId.json
|
|
265
266
|
*/
|
|
266
267
|
function storageAccountUpdateUserAssignedIdentityWithFederatedIdentityClientId() {
|
|
267
268
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -272,27 +273,27 @@ function storageAccountUpdateUserAssignedIdentityWithFederatedIdentityClientId()
|
|
|
272
273
|
encryption: {
|
|
273
274
|
encryptionIdentity: {
|
|
274
275
|
encryptionFederatedIdentityClientId: "3109d1c4-a5de-4d84-8832-feabb916a4b6",
|
|
275
|
-
encryptionUserAssignedIdentity: "/subscriptions/{subscription-id}/resourceGroups/res9101/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{managed-identity-name}"
|
|
276
|
+
encryptionUserAssignedIdentity: "/subscriptions/{subscription-id}/resourceGroups/res9101/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{managed-identity-name}",
|
|
276
277
|
},
|
|
277
278
|
keySource: "Microsoft.Keyvault",
|
|
278
279
|
keyVaultProperties: {
|
|
279
280
|
keyName: "wrappingKey",
|
|
280
281
|
keyVaultUri: "https://myvault8569.vault.azure.net",
|
|
281
|
-
keyVersion: ""
|
|
282
|
+
keyVersion: "",
|
|
282
283
|
},
|
|
283
284
|
services: {
|
|
284
285
|
blob: { enabled: true, keyType: "Account" },
|
|
285
|
-
file: { enabled: true, keyType: "Account" }
|
|
286
|
-
}
|
|
286
|
+
file: { enabled: true, keyType: "Account" },
|
|
287
|
+
},
|
|
287
288
|
},
|
|
288
289
|
identity: {
|
|
289
290
|
type: "UserAssigned",
|
|
290
291
|
userAssignedIdentities: {
|
|
291
|
-
"/subscriptions/{subscriptionId}/resourceGroups/res9101/providers/MicrosoftManagedIdentity/userAssignedIdentities/{managedIdentityName}": {}
|
|
292
|
-
}
|
|
292
|
+
"/subscriptions/{subscriptionId}/resourceGroups/res9101/providers/MicrosoftManagedIdentity/userAssignedIdentities/{managedIdentityName}": {},
|
|
293
|
+
},
|
|
293
294
|
},
|
|
294
295
|
kind: "Storage",
|
|
295
|
-
sku: { name: "Standard_LRS" }
|
|
296
|
+
sku: { name: "Standard_LRS" },
|
|
296
297
|
};
|
|
297
298
|
const credential = new DefaultAzureCredential();
|
|
298
299
|
const client = new StorageManagementClient(credential, subscriptionId);
|
|
@@ -304,7 +305,7 @@ function storageAccountUpdateUserAssignedIdentityWithFederatedIdentityClientId()
|
|
|
304
305
|
* This sample demonstrates how to The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
|
|
305
306
|
*
|
|
306
307
|
* @summary The update operation can be used to update the SKU, encryption, access tier, or tags for a storage account. It can also be used to map the account to a custom domain. Only one custom domain is supported per storage account; the replacement/change of custom domain is not supported. In order to replace an old custom domain, the old value must be cleared/unregistered before a new value can be set. The update of multiple properties is supported. This call does not change the storage keys for the account. If you want to change the storage account keys, use the regenerate keys operation. The location and name of the storage account cannot be changed after creation.
|
|
307
|
-
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-
|
|
308
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/StorageAccountUpdateWithImmutabilityPolicy.json
|
|
308
309
|
*/
|
|
309
310
|
function storageAccountUpdateWithImmutabilityPolicy() {
|
|
310
311
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -317,9 +318,9 @@ function storageAccountUpdateWithImmutabilityPolicy() {
|
|
|
317
318
|
immutabilityPolicy: {
|
|
318
319
|
allowProtectedAppendWrites: true,
|
|
319
320
|
immutabilityPeriodSinceCreationInDays: 15,
|
|
320
|
-
state: "Locked"
|
|
321
|
-
}
|
|
322
|
-
}
|
|
321
|
+
state: "Locked",
|
|
322
|
+
},
|
|
323
|
+
},
|
|
323
324
|
};
|
|
324
325
|
const credential = new DefaultAzureCredential();
|
|
325
326
|
const client = new StorageManagementClient(credential, subscriptionId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageAccountsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,uBAAuB,
|
|
1
|
+
{"version":3,"file":"storageAccountsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/storageAccountsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,uBAAuB,GACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,IAAI,mBAAmB,CAAC;QAChE,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,SAAS,CAAC;QAC7E,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,UAAU,GAAmC;YACjD,qCAAqC,EAAE;gBACrC,yBAAyB,EAAE;oBACzB,WAAW,EAAE,MAAM;oBACnB,eAAe,EAAE,gDAAgD;oBACjE,UAAU,EAAE,sCAAsC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IAC/C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageTaskAssignmentInstancesReportListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/storageTaskAssignmentInstancesReportListSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { StorageManagementClient } from "@azure/arm-storage";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Fetch the report summary of a single storage task assignment's instances
|
|
17
|
+
*
|
|
18
|
+
* @summary Fetch the report summary of a single storage task assignment's instances
|
|
19
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/storageTaskAssignmentsList/ListStorageTaskAssignmentInstancesReportSummary.json
|
|
20
|
+
*/
|
|
21
|
+
function listStorageTaskAssignmentInstancesReportSummary() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
var _a, e_1, _b, _c;
|
|
24
|
+
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] ||
|
|
25
|
+
"1f31ba14-ce16-4281-b9b4-3e78da6e1616";
|
|
26
|
+
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res4228";
|
|
27
|
+
const accountName = "sto4445";
|
|
28
|
+
const storageTaskAssignmentName = "myassignment1";
|
|
29
|
+
const credential = new DefaultAzureCredential();
|
|
30
|
+
const client = new StorageManagementClient(credential, subscriptionId);
|
|
31
|
+
const resArray = new Array();
|
|
32
|
+
try {
|
|
33
|
+
for (var _d = true, _e = __asyncValues(client.storageTaskAssignmentInstancesReport.list(resourceGroupName, accountName, storageTaskAssignmentName)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
34
|
+
_c = _f.value;
|
|
35
|
+
_d = false;
|
|
36
|
+
let item = _c;
|
|
37
|
+
resArray.push(item);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
41
|
+
finally {
|
|
42
|
+
try {
|
|
43
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
44
|
+
}
|
|
45
|
+
finally { if (e_1) throw e_1.error; }
|
|
46
|
+
}
|
|
47
|
+
console.log(resArray);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function main() {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
listStorageTaskAssignmentInstancesReportSummary();
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
main().catch(console.error);
|
|
56
|
+
//# sourceMappingURL=storageTaskAssignmentInstancesReportListSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageTaskAssignmentInstancesReportListSample.js","sourceRoot":"","sources":["../../samples-dev/storageTaskAssignmentInstancesReportListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,+CAA+C;;;QAC5D,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC;YACtC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,SAAS,CAAC;QAC7E,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,yBAAyB,GAAG,eAAe,CAAC;QAClD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,oCAAoC,CAAC,IAAI,CACrE,iBAAiB,EACjB,WAAW,EACX,yBAAyB,CAC1B,CAAA,IAAA,sDAAE,CAAC;gBAJmB,cAItB;gBAJsB,WAItB;gBAJU,IAAI,IAAI,KAAA,CAAA;gBAKjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,+CAA+C,EAAE,CAAC;IACpD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageTaskAssignmentsCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/storageTaskAssignmentsCreateSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { StorageManagementClient, } from "@azure/arm-storage";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Asynchronously creates a new storage task assignment sub-resource with the specified parameters. If a storage task assignment is already created and a subsequent create request is issued with different properties, the storage task assignment properties will be updated. If a storage task assignment is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.
|
|
17
|
+
*
|
|
18
|
+
* @summary Asynchronously creates a new storage task assignment sub-resource with the specified parameters. If a storage task assignment is already created and a subsequent create request is issued with different properties, the storage task assignment properties will be updated. If a storage task assignment is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.
|
|
19
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/storageTaskAssignmentsCrud/PutStorageTaskAssignment.json
|
|
20
|
+
*/
|
|
21
|
+
function putStorageTaskAssignment() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"1f31ba14-ce16-4281-b9b4-3e78da6e1616";
|
|
25
|
+
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res4228";
|
|
26
|
+
const accountName = "sto4445";
|
|
27
|
+
const storageTaskAssignmentName = "myassignment1";
|
|
28
|
+
const parameters = {
|
|
29
|
+
properties: {
|
|
30
|
+
description: "My Storage task assignment",
|
|
31
|
+
enabled: true,
|
|
32
|
+
executionContext: {
|
|
33
|
+
target: { excludePrefix: [], prefix: ["prefix1", "prefix2"] },
|
|
34
|
+
trigger: {
|
|
35
|
+
type: "RunOnce",
|
|
36
|
+
parameters: { startOn: new Date("2022-11-15T21:52:47.8145095Z") },
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
report: { prefix: "container1" },
|
|
40
|
+
taskId: "/subscriptions/1f31ba14-ce16-4281-b9b4-3e78da6e1616/resourceGroups/res4228/providers/Microsoft.StorageActions/storageTasks/mytask1",
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
const credential = new DefaultAzureCredential();
|
|
44
|
+
const client = new StorageManagementClient(credential, subscriptionId);
|
|
45
|
+
const result = yield client.storageTaskAssignments.beginCreateAndWait(resourceGroupName, accountName, storageTaskAssignmentName, parameters);
|
|
46
|
+
console.log(result);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* This sample demonstrates how to Asynchronously creates a new storage task assignment sub-resource with the specified parameters. If a storage task assignment is already created and a subsequent create request is issued with different properties, the storage task assignment properties will be updated. If a storage task assignment is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.
|
|
51
|
+
*
|
|
52
|
+
* @summary Asynchronously creates a new storage task assignment sub-resource with the specified parameters. If a storage task assignment is already created and a subsequent create request is issued with different properties, the storage task assignment properties will be updated. If a storage task assignment is already created and a subsequent create or update request is issued with the exact same set of properties, the request will succeed.
|
|
53
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/storageTaskAssignmentsCrud/PutStorageTaskAssignmentRequiredProperties.json
|
|
54
|
+
*/
|
|
55
|
+
function putStorageTaskAssignmentRequiredProperties() {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] ||
|
|
58
|
+
"1f31ba14-ce16-4281-b9b4-3e78da6e1616";
|
|
59
|
+
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res4228";
|
|
60
|
+
const accountName = "sto4445";
|
|
61
|
+
const storageTaskAssignmentName = "myassignment1";
|
|
62
|
+
const parameters = {
|
|
63
|
+
properties: {
|
|
64
|
+
description: "My Storage task assignment",
|
|
65
|
+
enabled: true,
|
|
66
|
+
executionContext: {
|
|
67
|
+
trigger: {
|
|
68
|
+
type: "RunOnce",
|
|
69
|
+
parameters: { startOn: new Date("2022-11-15T21:52:47.8145095Z") },
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
report: { prefix: "container1" },
|
|
73
|
+
taskId: "/subscriptions/1f31ba14-ce16-4281-b9b4-3e78da6e1616/resourceGroups/res4228/providers/Microsoft.StorageActions/storageTasks/mytask1",
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
const credential = new DefaultAzureCredential();
|
|
77
|
+
const client = new StorageManagementClient(credential, subscriptionId);
|
|
78
|
+
const result = yield client.storageTaskAssignments.beginCreateAndWait(resourceGroupName, accountName, storageTaskAssignmentName, parameters);
|
|
79
|
+
console.log(result);
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
function main() {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
putStorageTaskAssignment();
|
|
85
|
+
putStorageTaskAssignmentRequiredProperties();
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
main().catch(console.error);
|
|
89
|
+
//# sourceMappingURL=storageTaskAssignmentsCreateSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageTaskAssignmentsCreateSample.js","sourceRoot":"","sources":["../../samples-dev/storageTaskAssignmentsCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,uBAAuB,GACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,wBAAwB;;QACrC,M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C9B,MAAM,yBAAyB,GAAG,eAAe,CAAC;QAClD,MAAM,UAAU,GAA0B;YACxC,UAAU,EAAE;gBACV,WAAW,EAAE,4BAA4B;gBACzC,OAAO,EAAE,IAAI;gBACb,gBAAgB,EAAE;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE,SAAS;wBACf,UAAU,EAAE,EAAE,OAAO,EAAE,IAAI,IAAI,CAAC,8BAA8B,CAAC,EAAE;qBAClE;iBACF;gBACD,MAAM,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE;gBAChC,MAAM,EACJ,oIAAoI;aACvI;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,kBAAkB,CACnE,iBAAiB,EACjB,WAAW,EACX,yBAAyB,EACzB,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,wBAAwB,EAAE,CAAC;QAC3B,0CAA0C,EAAE,CAAC;IAC/C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageTaskAssignmentsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/storageTaskAssignmentsDeleteSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { StorageManagementClient } from "@azure/arm-storage";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Delete the storage task assignment sub-resource
|
|
17
|
+
*
|
|
18
|
+
* @summary Delete the storage task assignment sub-resource
|
|
19
|
+
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2023-05-01/examples/storageTaskAssignmentsCrud/DeleteStorageTaskAssignment.json
|
|
20
|
+
*/
|
|
21
|
+
function deleteStorageTaskAssignment() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const subscriptionId = process.env["STORAGE_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"1f31ba14-ce16-4281-b9b4-3e78da6e1616";
|
|
25
|
+
const resourceGroupName = process.env["STORAGE_RESOURCE_GROUP"] || "res4228";
|
|
26
|
+
const accountName = "sto4445";
|
|
27
|
+
const storageTaskAssignmentName = "myassignment1";
|
|
28
|
+
const credential = new DefaultAzureCredential();
|
|
29
|
+
const client = new StorageManagementClient(credential, subscriptionId);
|
|
30
|
+
const result = yield client.storageTaskAssignments.beginDeleteAndWait(resourceGroupName, accountName, storageTaskAssignmentName);
|
|
31
|
+
console.log(result);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function main() {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
deleteStorageTaskAssignment();
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
main().catch(console.error);
|
|
40
|
+
//# sourceMappingURL=storageTaskAssignmentsDeleteSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageTaskAssignmentsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/storageTaskAssignmentsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,2BAA2B;;QACxC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC;YACtC,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,IAAI,SAAS,CAAC;QAC7E,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,yBAAyB,GAAG,eAAe,CAAC;QAClD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,uBAAuB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACvE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,kBAAkB,CACnE,iBAAiB,EACjB,WAAW,EACX,yBAAyB,CAC1B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,2BAA2B,EAAE,CAAC;IAChC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageTaskAssignmentsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/storageTaskAssignmentsGetSample.ts"],"names":[],"mappings":""}
|