@azure/arm-locks-profile-2020-09-01-hybrid 2.1.1-alpha.20250211.1 → 2.1.1-alpha.20250213.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -14
- package/dist/browser/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/managementLockClient.d.ts +2 -2
- package/dist/browser/managementLockClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/managementLockClient.js +15 -18
- package/dist/browser/managementLockClient.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/authorizationOperations.d.ts +3 -3
- package/dist/browser/operations/authorizationOperations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/authorizationOperations.js +3 -3
- package/dist/browser/operations/authorizationOperations.js.map +1 -0
- package/dist/browser/operations/index.d.ts +3 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +2 -2
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/managementLocks.d.ts +3 -3
- package/dist/browser/operations/managementLocks.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/managementLocks.js +3 -3
- package/dist/browser/operations/managementLocks.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/authorizationOperations.d.ts +1 -1
- package/dist/browser/operationsInterfaces/authorizationOperations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/authorizationOperations.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +3 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +2 -2
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/managementLocks.d.ts +1 -1
- package/dist/browser/operationsInterfaces/managementLocks.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/managementLocks.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/managementLockClient.d.ts +21 -0
- package/dist/commonjs/managementLockClient.d.ts.map +1 -0
- package/dist/commonjs/managementLockClient.js +103 -0
- package/dist/commonjs/managementLockClient.js.map +1 -0
- package/{src/models/index.ts → dist/commonjs/models/index.d.ts} +104 -165
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +21 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +8 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +178 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +17 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +167 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/authorizationOperations.d.ts +32 -0
- package/dist/commonjs/operations/authorizationOperations.d.ts.map +1 -0
- package/dist/commonjs/operations/authorizationOperations.js +131 -0
- package/dist/commonjs/operations/authorizationOperations.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +3 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +13 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/managementLocks.d.ts +245 -0
- package/dist/commonjs/operations/managementLocks.d.ts.map +1 -0
- package/dist/commonjs/operations/managementLocks.js +897 -0
- package/dist/commonjs/operations/managementLocks.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/authorizationOperations.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/authorizationOperations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/authorizationOperations.js +10 -0
- package/dist/commonjs/operationsInterfaces/authorizationOperations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +13 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/managementLocks.d.ts +159 -0
- package/dist/commonjs/operationsInterfaces/managementLocks.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/managementLocks.js +10 -0
- package/dist/commonjs/operationsInterfaces/managementLocks.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/managementLockClient.d.ts +21 -0
- package/dist/esm/managementLockClient.d.ts.map +1 -0
- package/dist/esm/managementLockClient.js +98 -0
- package/dist/esm/managementLockClient.js.map +1 -0
- package/dist/esm/models/index.d.ts +199 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +18 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +8 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +175 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +17 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +164 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/authorizationOperations.d.ts +32 -0
- package/dist/esm/operations/authorizationOperations.d.ts.map +1 -0
- package/dist/esm/operations/authorizationOperations.js +127 -0
- package/dist/esm/operations/authorizationOperations.js.map +1 -0
- package/dist/esm/operations/index.d.ts +3 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +10 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/managementLocks.d.ts +245 -0
- package/dist/esm/operations/managementLocks.d.ts.map +1 -0
- package/dist/{index.js → esm/operations/managementLocks.js} +176 -819
- package/dist/esm/operations/managementLocks.js.map +1 -0
- package/dist/esm/operationsInterfaces/authorizationOperations.d.ts +11 -0
- package/dist/esm/operationsInterfaces/authorizationOperations.d.ts.map +1 -0
- package/{src/operations/index.ts → dist/esm/operationsInterfaces/authorizationOperations.js} +2 -3
- package/dist/esm/operationsInterfaces/authorizationOperations.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +3 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +10 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/managementLocks.d.ts +159 -0
- package/dist/esm/operationsInterfaces/managementLocks.d.ts.map +1 -0
- package/{src/operationsInterfaces/index.ts → dist/esm/operationsInterfaces/managementLocks.js} +2 -3
- package/dist/esm/operationsInterfaces/managementLocks.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/managementLockClient.d.ts +21 -0
- package/dist/react-native/managementLockClient.d.ts.map +1 -0
- package/dist/react-native/managementLockClient.js +98 -0
- package/dist/react-native/managementLockClient.js.map +1 -0
- package/dist/react-native/models/index.d.ts +199 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +18 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +8 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +175 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +17 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +164 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/authorizationOperations.d.ts +32 -0
- package/dist/react-native/operations/authorizationOperations.d.ts.map +1 -0
- package/dist/react-native/operations/authorizationOperations.js +127 -0
- package/dist/react-native/operations/authorizationOperations.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +3 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +10 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/managementLocks.d.ts +245 -0
- package/dist/react-native/operations/managementLocks.d.ts.map +1 -0
- package/dist/react-native/operations/managementLocks.js +893 -0
- package/dist/react-native/operations/managementLocks.js.map +1 -0
- package/dist/react-native/operationsInterfaces/authorizationOperations.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/authorizationOperations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/authorizationOperations.js +9 -0
- package/dist/react-native/operationsInterfaces/authorizationOperations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +10 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/managementLocks.d.ts +159 -0
- package/dist/react-native/operationsInterfaces/managementLocks.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/managementLocks.js +9 -0
- package/dist/react-native/operationsInterfaces/managementLocks.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +69 -40
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/authorizationOperationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/authorizationOperationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/authorizationOperationsListSample.js +0 -50
- package/dist-esm/samples-dev/authorizationOperationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceGroupLevelSample.d.ts +0 -2
- package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceGroupLevelSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceGroupLevelSample.js +0 -30
- package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceGroupLevelSample.js.map +0 -1
- package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceLevelSample.d.ts +0 -2
- package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceLevelSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceLevelSample.js +0 -34
- package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceLevelSample.js.map +0 -1
- package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtSubscriptionLevelSample.d.ts +0 -2
- package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtSubscriptionLevelSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtSubscriptionLevelSample.js +0 -29
- package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtSubscriptionLevelSample.js.map +0 -1
- package/dist-esm/samples-dev/managementLocksCreateOrUpdateByScopeSample.d.ts +0 -2
- package/dist-esm/samples-dev/managementLocksCreateOrUpdateByScopeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managementLocksCreateOrUpdateByScopeSample.js +0 -30
- package/dist-esm/samples-dev/managementLocksCreateOrUpdateByScopeSample.js.map +0 -1
- package/dist-esm/samples-dev/managementLocksDeleteAtResourceGroupLevelSample.d.ts +0 -2
- package/dist-esm/samples-dev/managementLocksDeleteAtResourceGroupLevelSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managementLocksDeleteAtResourceGroupLevelSample.js +0 -36
- package/dist-esm/samples-dev/managementLocksDeleteAtResourceGroupLevelSample.js.map +0 -1
- package/dist-esm/samples-dev/managementLocksDeleteAtResourceLevelSample.d.ts +0 -2
- package/dist-esm/samples-dev/managementLocksDeleteAtResourceLevelSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managementLocksDeleteAtResourceLevelSample.js +0 -40
- package/dist-esm/samples-dev/managementLocksDeleteAtResourceLevelSample.js.map +0 -1
- package/dist-esm/samples-dev/managementLocksDeleteAtSubscriptionLevelSample.d.ts +0 -2
- package/dist-esm/samples-dev/managementLocksDeleteAtSubscriptionLevelSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managementLocksDeleteAtSubscriptionLevelSample.js +0 -35
- package/dist-esm/samples-dev/managementLocksDeleteAtSubscriptionLevelSample.js.map +0 -1
- package/dist-esm/samples-dev/managementLocksDeleteByScopeSample.d.ts +0 -2
- package/dist-esm/samples-dev/managementLocksDeleteByScopeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managementLocksDeleteByScopeSample.js +0 -36
- package/dist-esm/samples-dev/managementLocksDeleteByScopeSample.js.map +0 -1
- package/dist-esm/samples-dev/managementLocksGetAtResourceGroupLevelSample.d.ts +0 -2
- package/dist-esm/samples-dev/managementLocksGetAtResourceGroupLevelSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managementLocksGetAtResourceGroupLevelSample.js +0 -36
- package/dist-esm/samples-dev/managementLocksGetAtResourceGroupLevelSample.js.map +0 -1
- package/dist-esm/samples-dev/managementLocksGetAtResourceLevelSample.d.ts +0 -2
- package/dist-esm/samples-dev/managementLocksGetAtResourceLevelSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managementLocksGetAtResourceLevelSample.js +0 -40
- package/dist-esm/samples-dev/managementLocksGetAtResourceLevelSample.js.map +0 -1
- package/dist-esm/samples-dev/managementLocksGetAtSubscriptionLevelSample.d.ts +0 -2
- package/dist-esm/samples-dev/managementLocksGetAtSubscriptionLevelSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managementLocksGetAtSubscriptionLevelSample.js +0 -35
- package/dist-esm/samples-dev/managementLocksGetAtSubscriptionLevelSample.js.map +0 -1
- package/dist-esm/samples-dev/managementLocksGetByScopeSample.d.ts +0 -2
- package/dist-esm/samples-dev/managementLocksGetByScopeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managementLocksGetByScopeSample.js +0 -36
- package/dist-esm/samples-dev/managementLocksGetByScopeSample.js.map +0 -1
- package/dist-esm/samples-dev/managementLocksListAtResourceGroupLevelSample.d.ts +0 -2
- package/dist-esm/samples-dev/managementLocksListAtResourceGroupLevelSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managementLocksListAtResourceGroupLevelSample.js +0 -51
- package/dist-esm/samples-dev/managementLocksListAtResourceGroupLevelSample.js.map +0 -1
- package/dist-esm/samples-dev/managementLocksListAtResourceLevelSample.d.ts +0 -2
- package/dist-esm/samples-dev/managementLocksListAtResourceLevelSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managementLocksListAtResourceLevelSample.js +0 -55
- package/dist-esm/samples-dev/managementLocksListAtResourceLevelSample.js.map +0 -1
- package/dist-esm/samples-dev/managementLocksListAtSubscriptionLevelSample.d.ts +0 -2
- package/dist-esm/samples-dev/managementLocksListAtSubscriptionLevelSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managementLocksListAtSubscriptionLevelSample.js +0 -50
- package/dist-esm/samples-dev/managementLocksListAtSubscriptionLevelSample.js.map +0 -1
- package/dist-esm/samples-dev/managementLocksListByScopeSample.d.ts +0 -2
- package/dist-esm/samples-dev/managementLocksListByScopeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managementLocksListByScopeSample.js +0 -51
- package/dist-esm/samples-dev/managementLocksListByScopeSample.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/managementLockClient.d.ts.map +0 -1
- package/dist-esm/src/managementLockClient.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/authorizationOperations.d.ts.map +0 -1
- package/dist-esm/src/operations/authorizationOperations.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -3
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/managementLocks.d.ts.map +0 -1
- package/dist-esm/src/operations/managementLocks.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/authorizationOperations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/authorizationOperations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/managementLocks.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/managementLocks.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -42
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/src/managementLockClient.ts +0 -145
- package/src/models/mappers.ts +0 -182
- package/src/models/parameters.ts +0 -184
- package/src/operations/authorizationOperations.ts +0 -143
- package/src/operations/managementLocks.ts +0 -1172
- package/src/operationsInterfaces/authorizationOperations.ts +0 -25
- package/src/operationsInterfaces/managementLocks.ts +0 -270
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -33
- package/types/arm-locks-profile-2020-09-01-hybrid.d.ts +0 -443
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/authorizationOperations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/managementLocks.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
- /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import { ManagementLockClient } from "@azure/arm-locks-profile-2020-09-01-hybrid";
|
|
10
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
11
|
-
import * as dotenv from "dotenv";
|
|
12
|
-
dotenv.config();
|
|
13
|
-
/**
|
|
14
|
-
* This sample demonstrates how to To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
|
|
15
|
-
*
|
|
16
|
-
* @summary To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
|
|
17
|
-
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json
|
|
18
|
-
*/
|
|
19
|
-
function deleteManagementLockAtResourceGroupLevel() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = process.env["LOCKS_SUBSCRIPTION_ID"] || "subscriptionId";
|
|
22
|
-
const resourceGroupName = process.env["LOCKS_RESOURCE_GROUP"] || "resourcegroupname";
|
|
23
|
-
const lockName = "testlock";
|
|
24
|
-
const credential = new DefaultAzureCredential();
|
|
25
|
-
const client = new ManagementLockClient(credential, subscriptionId);
|
|
26
|
-
const result = yield client.managementLocks.deleteAtResourceGroupLevel(resourceGroupName, lockName);
|
|
27
|
-
console.log(result);
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
function main() {
|
|
31
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
-
yield deleteManagementLockAtResourceGroupLevel();
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
main().catch(console.error);
|
|
36
|
-
//# sourceMappingURL=managementLocksDeleteAtResourceGroupLevelSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"managementLocksDeleteAtResourceGroupLevelSample.js","sourceRoot":"","sources":["../../samples-dev/managementLocksDeleteAtResourceGroupLevelSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,wCAAwC;;QACrD,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,gBAAgB,CAAC;QAChF,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,mBAAmB,CAAC;QACrF,MAAM,QAAQ,GAAG,UAAU,CAAC;QAC5B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,0BAA0B,CACpE,iBAAiB,EACjB,QAAQ,CACT,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,wCAAwC,EAAE,CAAC;IACnD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"managementLocksDeleteAtResourceLevelSample.d.ts","sourceRoot":"","sources":["../../samples-dev/managementLocksDeleteAtResourceLevelSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import { ManagementLockClient } from "@azure/arm-locks-profile-2020-09-01-hybrid";
|
|
10
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
11
|
-
import * as dotenv from "dotenv";
|
|
12
|
-
dotenv.config();
|
|
13
|
-
/**
|
|
14
|
-
* This sample demonstrates how to To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
|
|
15
|
-
*
|
|
16
|
-
* @summary To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
|
|
17
|
-
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_DeleteAtResourceLevel.json
|
|
18
|
-
*/
|
|
19
|
-
function deleteManagementLockAtResourceLevel() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = process.env["LOCKS_SUBSCRIPTION_ID"] || "subscriptionId";
|
|
22
|
-
const resourceGroupName = process.env["LOCKS_RESOURCE_GROUP"] || "resourcegroupname";
|
|
23
|
-
const resourceProviderNamespace = "Microsoft.Storage";
|
|
24
|
-
const parentResourcePath = "parentResourcePath";
|
|
25
|
-
const resourceType = "storageAccounts";
|
|
26
|
-
const resourceName = "teststorageaccount";
|
|
27
|
-
const lockName = "testlock";
|
|
28
|
-
const credential = new DefaultAzureCredential();
|
|
29
|
-
const client = new ManagementLockClient(credential, subscriptionId);
|
|
30
|
-
const result = yield client.managementLocks.deleteAtResourceLevel(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, lockName);
|
|
31
|
-
console.log(result);
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function main() {
|
|
35
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
yield deleteManagementLockAtResourceLevel();
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
main().catch(console.error);
|
|
40
|
-
//# sourceMappingURL=managementLocksDeleteAtResourceLevelSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"managementLocksDeleteAtResourceLevelSample.js","sourceRoot":"","sources":["../../samples-dev/managementLocksDeleteAtResourceLevelSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,mCAAmC;;QAChD,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,gBAAgB,CAAC;QAChF,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,mBAAmB,CAAC;QACrF,MAAM,yBAAyB,GAAG,mBAAmB,CAAC;QACtD,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;QAChD,MAAM,YAAY,GAAG,iBAAiB,CAAC;QACvC,MAAM,YAAY,GAAG,oBAAoB,CAAC;QAC1C,MAAM,QAAQ,GAAG,UAAU,CAAC;QAC5B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,qBAAqB,CAC/D,iBAAiB,EACjB,yBAAyB,EACzB,kBAAkB,EAClB,YAAY,EACZ,YAAY,EACZ,QAAQ,CACT,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,mCAAmC,EAAE,CAAC;IAC9C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"managementLocksDeleteAtSubscriptionLevelSample.d.ts","sourceRoot":"","sources":["../../samples-dev/managementLocksDeleteAtSubscriptionLevelSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import { ManagementLockClient } from "@azure/arm-locks-profile-2020-09-01-hybrid";
|
|
10
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
11
|
-
import * as dotenv from "dotenv";
|
|
12
|
-
dotenv.config();
|
|
13
|
-
/**
|
|
14
|
-
* This sample demonstrates how to To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
|
|
15
|
-
*
|
|
16
|
-
* @summary To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.
|
|
17
|
-
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json
|
|
18
|
-
*/
|
|
19
|
-
function deleteManagementLockAtSubscriptionLevel() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = process.env["LOCKS_SUBSCRIPTION_ID"] || "subscriptionId";
|
|
22
|
-
const lockName = "testlock";
|
|
23
|
-
const credential = new DefaultAzureCredential();
|
|
24
|
-
const client = new ManagementLockClient(credential, subscriptionId);
|
|
25
|
-
const result = yield client.managementLocks.deleteAtSubscriptionLevel(lockName);
|
|
26
|
-
console.log(result);
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
function main() {
|
|
30
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
-
yield deleteManagementLockAtSubscriptionLevel();
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
main().catch(console.error);
|
|
35
|
-
//# sourceMappingURL=managementLocksDeleteAtSubscriptionLevelSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"managementLocksDeleteAtSubscriptionLevelSample.js","sourceRoot":"","sources":["../../samples-dev/managementLocksDeleteAtSubscriptionLevelSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,uCAAuC;;QACpD,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,gBAAgB,CAAC;QAChF,MAAM,QAAQ,GAAG,UAAU,CAAC;QAC5B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,yBAAyB,CAAC,QAAQ,CAAC,CAAC;QAChF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,uCAAuC,EAAE,CAAC;IAClD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"managementLocksDeleteByScopeSample.d.ts","sourceRoot":"","sources":["../../samples-dev/managementLocksDeleteByScopeSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import { ManagementLockClient } from "@azure/arm-locks-profile-2020-09-01-hybrid";
|
|
10
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
11
|
-
import * as dotenv from "dotenv";
|
|
12
|
-
dotenv.config();
|
|
13
|
-
/**
|
|
14
|
-
* This sample demonstrates how to Delete a management lock by scope.
|
|
15
|
-
*
|
|
16
|
-
* @summary Delete a management lock by scope.
|
|
17
|
-
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_DeleteAtScope.json
|
|
18
|
-
*/
|
|
19
|
-
function deleteManagementLockAtScope() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = process.env["LOCKS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
|
|
22
|
-
const scope = "subscriptions/subscriptionId";
|
|
23
|
-
const lockName = "testlock";
|
|
24
|
-
const credential = new DefaultAzureCredential();
|
|
25
|
-
const client = new ManagementLockClient(credential, subscriptionId);
|
|
26
|
-
const result = yield client.managementLocks.deleteByScope(scope, lockName);
|
|
27
|
-
console.log(result);
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
function main() {
|
|
31
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
-
yield deleteManagementLockAtScope();
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
main().catch(console.error);
|
|
36
|
-
//# sourceMappingURL=managementLocksDeleteByScopeSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"managementLocksDeleteByScopeSample.js","sourceRoot":"","sources":["../../samples-dev/managementLocksDeleteByScopeSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAClF,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,uBAAuB,CAAC,IAAI,sCAAsC,CAAC;QACjF,MAAM,KAAK,GAAG,8BAA8B,CAAC;QAC7C,MAAM,QAAQ,GAAG,UAAU,CAAC;QAC5B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,aAAa,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QAC3E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,2BAA2B,EAAE,CAAC;IACtC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"managementLocksGetAtResourceGroupLevelSample.d.ts","sourceRoot":"","sources":["../../samples-dev/managementLocksGetAtResourceGroupLevelSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import { ManagementLockClient } from "@azure/arm-locks-profile-2020-09-01-hybrid";
|
|
10
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
11
|
-
import * as dotenv from "dotenv";
|
|
12
|
-
dotenv.config();
|
|
13
|
-
/**
|
|
14
|
-
* This sample demonstrates how to Gets a management lock at the resource group level.
|
|
15
|
-
*
|
|
16
|
-
* @summary Gets a management lock at the resource group level.
|
|
17
|
-
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_GetAtResourceGroupLevel.json
|
|
18
|
-
*/
|
|
19
|
-
function getManagementLockAtResourceGroupLevel() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = process.env["LOCKS_SUBSCRIPTION_ID"] || "subscriptionId";
|
|
22
|
-
const resourceGroupName = process.env["LOCKS_RESOURCE_GROUP"] || "resourcegroupname";
|
|
23
|
-
const lockName = "testlock";
|
|
24
|
-
const credential = new DefaultAzureCredential();
|
|
25
|
-
const client = new ManagementLockClient(credential, subscriptionId);
|
|
26
|
-
const result = yield client.managementLocks.getAtResourceGroupLevel(resourceGroupName, lockName);
|
|
27
|
-
console.log(result);
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
function main() {
|
|
31
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
-
yield getManagementLockAtResourceGroupLevel();
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
main().catch(console.error);
|
|
36
|
-
//# sourceMappingURL=managementLocksGetAtResourceGroupLevelSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"managementLocksGetAtResourceGroupLevelSample.js","sourceRoot":"","sources":["../../samples-dev/managementLocksGetAtResourceGroupLevelSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,qCAAqC;;QAClD,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,gBAAgB,CAAC;QAChF,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,mBAAmB,CAAC;QACrF,MAAM,QAAQ,GAAG,UAAU,CAAC;QAC5B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,uBAAuB,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC;QACjG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,qCAAqC,EAAE,CAAC;IAChD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"managementLocksGetAtResourceLevelSample.d.ts","sourceRoot":"","sources":["../../samples-dev/managementLocksGetAtResourceLevelSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import { ManagementLockClient } from "@azure/arm-locks-profile-2020-09-01-hybrid";
|
|
10
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
11
|
-
import * as dotenv from "dotenv";
|
|
12
|
-
dotenv.config();
|
|
13
|
-
/**
|
|
14
|
-
* This sample demonstrates how to Get the management lock of a resource or any level below resource.
|
|
15
|
-
*
|
|
16
|
-
* @summary Get the management lock of a resource or any level below resource.
|
|
17
|
-
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_GetAtResourceLevel.json
|
|
18
|
-
*/
|
|
19
|
-
function getManagementLockAtResourceLevel() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = process.env["LOCKS_SUBSCRIPTION_ID"] || "subscriptionId";
|
|
22
|
-
const resourceGroupName = process.env["LOCKS_RESOURCE_GROUP"] || "resourcegroupname";
|
|
23
|
-
const resourceProviderNamespace = "Microsoft.Storage";
|
|
24
|
-
const parentResourcePath = "parentResourcePath";
|
|
25
|
-
const resourceType = "storageAccounts";
|
|
26
|
-
const resourceName = "teststorageaccount";
|
|
27
|
-
const lockName = "testlock";
|
|
28
|
-
const credential = new DefaultAzureCredential();
|
|
29
|
-
const client = new ManagementLockClient(credential, subscriptionId);
|
|
30
|
-
const result = yield client.managementLocks.getAtResourceLevel(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, lockName);
|
|
31
|
-
console.log(result);
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function main() {
|
|
35
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
yield getManagementLockAtResourceLevel();
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
main().catch(console.error);
|
|
40
|
-
//# sourceMappingURL=managementLocksGetAtResourceLevelSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"managementLocksGetAtResourceLevelSample.js","sourceRoot":"","sources":["../../samples-dev/managementLocksGetAtResourceLevelSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,gCAAgC;;QAC7C,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,gBAAgB,CAAC;QAChF,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,mBAAmB,CAAC;QACrF,MAAM,yBAAyB,GAAG,mBAAmB,CAAC;QACtD,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;QAChD,MAAM,YAAY,GAAG,iBAAiB,CAAC;QACvC,MAAM,YAAY,GAAG,oBAAoB,CAAC;QAC1C,MAAM,QAAQ,GAAG,UAAU,CAAC;QAC5B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,kBAAkB,CAC5D,iBAAiB,EACjB,yBAAyB,EACzB,kBAAkB,EAClB,YAAY,EACZ,YAAY,EACZ,QAAQ,CACT,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,gCAAgC,EAAE,CAAC;IAC3C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"managementLocksGetAtSubscriptionLevelSample.d.ts","sourceRoot":"","sources":["../../samples-dev/managementLocksGetAtSubscriptionLevelSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import { ManagementLockClient } from "@azure/arm-locks-profile-2020-09-01-hybrid";
|
|
10
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
11
|
-
import * as dotenv from "dotenv";
|
|
12
|
-
dotenv.config();
|
|
13
|
-
/**
|
|
14
|
-
* This sample demonstrates how to Gets a management lock at the subscription level.
|
|
15
|
-
*
|
|
16
|
-
* @summary Gets a management lock at the subscription level.
|
|
17
|
-
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_GetAtSubscriptionLevel.json
|
|
18
|
-
*/
|
|
19
|
-
function getManagementLockAtSubscriptionLevel() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = process.env["LOCKS_SUBSCRIPTION_ID"] || "subscriptionId";
|
|
22
|
-
const lockName = "testlock";
|
|
23
|
-
const credential = new DefaultAzureCredential();
|
|
24
|
-
const client = new ManagementLockClient(credential, subscriptionId);
|
|
25
|
-
const result = yield client.managementLocks.getAtSubscriptionLevel(lockName);
|
|
26
|
-
console.log(result);
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
function main() {
|
|
30
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
-
yield getManagementLockAtSubscriptionLevel();
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
main().catch(console.error);
|
|
35
|
-
//# sourceMappingURL=managementLocksGetAtSubscriptionLevelSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"managementLocksGetAtSubscriptionLevelSample.js","sourceRoot":"","sources":["../../samples-dev/managementLocksGetAtSubscriptionLevelSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,oCAAoC;;QACjD,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,gBAAgB,CAAC;QAChF,MAAM,QAAQ,GAAG,UAAU,CAAC;QAC5B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAAC;QAC7E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,oCAAoC,EAAE,CAAC;IAC/C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"managementLocksGetByScopeSample.d.ts","sourceRoot":"","sources":["../../samples-dev/managementLocksGetByScopeSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import { ManagementLockClient } from "@azure/arm-locks-profile-2020-09-01-hybrid";
|
|
10
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
11
|
-
import * as dotenv from "dotenv";
|
|
12
|
-
dotenv.config();
|
|
13
|
-
/**
|
|
14
|
-
* This sample demonstrates how to Get a management lock by scope.
|
|
15
|
-
*
|
|
16
|
-
* @summary Get a management lock by scope.
|
|
17
|
-
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_GetAtScope.json
|
|
18
|
-
*/
|
|
19
|
-
function getManagementLockAtScope() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = process.env["LOCKS_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000";
|
|
22
|
-
const scope = "subscriptions/subscriptionId";
|
|
23
|
-
const lockName = "testlock";
|
|
24
|
-
const credential = new DefaultAzureCredential();
|
|
25
|
-
const client = new ManagementLockClient(credential, subscriptionId);
|
|
26
|
-
const result = yield client.managementLocks.getByScope(scope, lockName);
|
|
27
|
-
console.log(result);
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
function main() {
|
|
31
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
-
yield getManagementLockAtScope();
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
main().catch(console.error);
|
|
36
|
-
//# sourceMappingURL=managementLocksGetByScopeSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"managementLocksGetByScopeSample.js","sourceRoot":"","sources":["../../samples-dev/managementLocksGetByScopeSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAClF,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,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,sCAAsC,CAAC;QACjF,MAAM,KAAK,GAAG,8BAA8B,CAAC;QAC7C,MAAM,QAAQ,GAAG,UAAU,CAAC;QAC5B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QACxE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,wBAAwB,EAAE,CAAC;IACnC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"managementLocksListAtResourceGroupLevelSample.d.ts","sourceRoot":"","sources":["../../samples-dev/managementLocksListAtResourceGroupLevelSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { __asyncValues, __awaiter } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import { ManagementLockClient } from "@azure/arm-locks-profile-2020-09-01-hybrid";
|
|
10
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
11
|
-
import * as dotenv from "dotenv";
|
|
12
|
-
dotenv.config();
|
|
13
|
-
/**
|
|
14
|
-
* This sample demonstrates how to Gets all the management locks for a resource group.
|
|
15
|
-
*
|
|
16
|
-
* @summary Gets all the management locks for a resource group.
|
|
17
|
-
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_ListAtResourceGroupLevel.json
|
|
18
|
-
*/
|
|
19
|
-
function listManagementGroupsAtResourceGroupLevel() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
var _a, e_1, _b, _c;
|
|
22
|
-
const subscriptionId = process.env["LOCKS_SUBSCRIPTION_ID"] || "subscriptionId";
|
|
23
|
-
const resourceGroupName = process.env["LOCKS_RESOURCE_GROUP"] || "resourcegroupname";
|
|
24
|
-
const credential = new DefaultAzureCredential();
|
|
25
|
-
const client = new ManagementLockClient(credential, subscriptionId);
|
|
26
|
-
const resArray = new Array();
|
|
27
|
-
try {
|
|
28
|
-
for (var _d = true, _e = __asyncValues(client.managementLocks.listAtResourceGroupLevel(resourceGroupName)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
29
|
-
_c = _f.value;
|
|
30
|
-
_d = false;
|
|
31
|
-
const item = _c;
|
|
32
|
-
resArray.push(item);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
36
|
-
finally {
|
|
37
|
-
try {
|
|
38
|
-
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
39
|
-
}
|
|
40
|
-
finally { if (e_1) throw e_1.error; }
|
|
41
|
-
}
|
|
42
|
-
console.log(resArray);
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
function main() {
|
|
46
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
-
yield listManagementGroupsAtResourceGroupLevel();
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
main().catch(console.error);
|
|
51
|
-
//# sourceMappingURL=managementLocksListAtResourceGroupLevelSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"managementLocksListAtResourceGroupLevelSample.js","sourceRoot":"","sources":["../../samples-dev/managementLocksListAtResourceGroupLevelSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,wCAAwC;;;QACrD,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,gBAAgB,CAAC;QAChF,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,mBAAmB,CAAC;QACrF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAyB,eAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,wBAAwB,CAAC,iBAAiB,CAAC,CAAA,IAAA,sDAAE,CAAC;gBAArE,cAAkE;gBAAlE,WAAkE;gBAAhF,MAAM,IAAI,KAAA,CAAA;gBACnB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,wCAAwC,EAAE,CAAC;IACnD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"managementLocksListAtResourceLevelSample.d.ts","sourceRoot":"","sources":["../../samples-dev/managementLocksListAtResourceLevelSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { __asyncValues, __awaiter } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import { ManagementLockClient } from "@azure/arm-locks-profile-2020-09-01-hybrid";
|
|
10
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
11
|
-
import * as dotenv from "dotenv";
|
|
12
|
-
dotenv.config();
|
|
13
|
-
/**
|
|
14
|
-
* This sample demonstrates how to Gets all the management locks for a resource or any level below resource.
|
|
15
|
-
*
|
|
16
|
-
* @summary Gets all the management locks for a resource or any level below resource.
|
|
17
|
-
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_ListAtResourceLevel.json
|
|
18
|
-
*/
|
|
19
|
-
function listManagementLocksAtResourceLevel() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
var _a, e_1, _b, _c;
|
|
22
|
-
const subscriptionId = process.env["LOCKS_SUBSCRIPTION_ID"] || "subscriptionId";
|
|
23
|
-
const resourceGroupName = process.env["LOCKS_RESOURCE_GROUP"] || "resourcegroupname";
|
|
24
|
-
const resourceProviderNamespace = "Microsoft.Storage";
|
|
25
|
-
const parentResourcePath = "parentResourcePath";
|
|
26
|
-
const resourceType = "storageAccounts";
|
|
27
|
-
const resourceName = "teststorageaccount";
|
|
28
|
-
const credential = new DefaultAzureCredential();
|
|
29
|
-
const client = new ManagementLockClient(credential, subscriptionId);
|
|
30
|
-
const resArray = new Array();
|
|
31
|
-
try {
|
|
32
|
-
for (var _d = true, _e = __asyncValues(client.managementLocks.listAtResourceLevel(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
33
|
-
_c = _f.value;
|
|
34
|
-
_d = false;
|
|
35
|
-
const item = _c;
|
|
36
|
-
resArray.push(item);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
40
|
-
finally {
|
|
41
|
-
try {
|
|
42
|
-
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
43
|
-
}
|
|
44
|
-
finally { if (e_1) throw e_1.error; }
|
|
45
|
-
}
|
|
46
|
-
console.log(resArray);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
function main() {
|
|
50
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
-
yield listManagementLocksAtResourceLevel();
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
main().catch(console.error);
|
|
55
|
-
//# sourceMappingURL=managementLocksListAtResourceLevelSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"managementLocksListAtResourceLevelSample.js","sourceRoot":"","sources":["../../samples-dev/managementLocksListAtResourceLevelSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,kCAAkC;;;QAC/C,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,gBAAgB,CAAC;QAChF,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,mBAAmB,CAAC;QACrF,MAAM,yBAAyB,GAAG,mBAAmB,CAAC;QACtD,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;QAChD,MAAM,YAAY,GAAG,iBAAiB,CAAC;QACvC,MAAM,YAAY,GAAG,oBAAoB,CAAC;QAC1C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAyB,eAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,mBAAmB,CACjE,iBAAiB,EACjB,yBAAyB,EACzB,kBAAkB,EAClB,YAAY,EACZ,YAAY,CACb,CAAA,IAAA,sDAAE,CAAC;gBANqB,cAMxB;gBANwB,WAMxB;gBANU,MAAM,IAAI,KAAA,CAAA;gBAOnB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,kCAAkC,EAAE,CAAC;IAC7C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"managementLocksListAtSubscriptionLevelSample.d.ts","sourceRoot":"","sources":["../../samples-dev/managementLocksListAtSubscriptionLevelSample.ts"],"names":[],"mappings":""}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { __asyncValues, __awaiter } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) Microsoft Corporation.
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
9
|
-
import { ManagementLockClient } from "@azure/arm-locks-profile-2020-09-01-hybrid";
|
|
10
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
11
|
-
import * as dotenv from "dotenv";
|
|
12
|
-
dotenv.config();
|
|
13
|
-
/**
|
|
14
|
-
* This sample demonstrates how to Gets all the management locks for a subscription.
|
|
15
|
-
*
|
|
16
|
-
* @summary Gets all the management locks for a subscription.
|
|
17
|
-
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/examples/ManagementLocks_ListAtSubscriptionLevel.json
|
|
18
|
-
*/
|
|
19
|
-
function listManagementLocksAtSubscriptionLevel() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
var _a, e_1, _b, _c;
|
|
22
|
-
const subscriptionId = process.env["LOCKS_SUBSCRIPTION_ID"] || "subscriptionId";
|
|
23
|
-
const credential = new DefaultAzureCredential();
|
|
24
|
-
const client = new ManagementLockClient(credential, subscriptionId);
|
|
25
|
-
const resArray = new Array();
|
|
26
|
-
try {
|
|
27
|
-
for (var _d = true, _e = __asyncValues(client.managementLocks.listAtSubscriptionLevel()), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
28
|
-
_c = _f.value;
|
|
29
|
-
_d = false;
|
|
30
|
-
const item = _c;
|
|
31
|
-
resArray.push(item);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
35
|
-
finally {
|
|
36
|
-
try {
|
|
37
|
-
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
38
|
-
}
|
|
39
|
-
finally { if (e_1) throw e_1.error; }
|
|
40
|
-
}
|
|
41
|
-
console.log(resArray);
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
function main() {
|
|
45
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
-
yield listManagementLocksAtSubscriptionLevel();
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
main().catch(console.error);
|
|
50
|
-
//# sourceMappingURL=managementLocksListAtSubscriptionLevelSample.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"managementLocksListAtSubscriptionLevelSample.js","sourceRoot":"","sources":["../../samples-dev/managementLocksListAtSubscriptionLevelSample.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,sCAAsC;;;QACnD,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,gBAAgB,CAAC;QAChF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAyB,eAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,uBAAuB,EAAE,CAAA,IAAA,sDAAE,CAAC;gBAAnD,cAAgD;gBAAhD,WAAgD;gBAA9D,MAAM,IAAI,KAAA,CAAA;gBACnB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,MAAM,sCAAsC,EAAE,CAAC;IACjD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"managementLocksListByScopeSample.d.ts","sourceRoot":"","sources":["../../samples-dev/managementLocksListByScopeSample.ts"],"names":[],"mappings":""}
|