@azure/arm-locks-profile-2020-09-01-hybrid 2.1.1-alpha.20250211.1 → 2.1.1-alpha.20250212.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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managementLocks.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/managementLocks.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport {\n ManagementLockObject,\n ManagementLocksListAtResourceGroupLevelOptionalParams,\n ManagementLocksListAtResourceLevelOptionalParams,\n ManagementLocksListAtSubscriptionLevelOptionalParams,\n ManagementLocksListByScopeOptionalParams,\n ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams,\n ManagementLocksCreateOrUpdateAtResourceGroupLevelResponse,\n ManagementLocksDeleteAtResourceGroupLevelOptionalParams,\n ManagementLocksGetAtResourceGroupLevelOptionalParams,\n ManagementLocksGetAtResourceGroupLevelResponse,\n ManagementLocksCreateOrUpdateByScopeOptionalParams,\n ManagementLocksCreateOrUpdateByScopeResponse,\n ManagementLocksDeleteByScopeOptionalParams,\n ManagementLocksGetByScopeOptionalParams,\n ManagementLocksGetByScopeResponse,\n ManagementLocksCreateOrUpdateAtResourceLevelOptionalParams,\n ManagementLocksCreateOrUpdateAtResourceLevelResponse,\n ManagementLocksDeleteAtResourceLevelOptionalParams,\n ManagementLocksGetAtResourceLevelOptionalParams,\n ManagementLocksGetAtResourceLevelResponse,\n ManagementLocksCreateOrUpdateAtSubscriptionLevelOptionalParams,\n ManagementLocksCreateOrUpdateAtSubscriptionLevelResponse,\n ManagementLocksDeleteAtSubscriptionLevelOptionalParams,\n ManagementLocksGetAtSubscriptionLevelOptionalParams,\n ManagementLocksGetAtSubscriptionLevelResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a ManagementLocks. */\nexport interface ManagementLocks {\n /**\n * Gets all the management locks for a resource group.\n * @param resourceGroupName The name of the resource group containing the locks to get.\n * @param options The options parameters.\n */\n listAtResourceGroupLevel(\n resourceGroupName: string,\n options?: ManagementLocksListAtResourceGroupLevelOptionalParams\n ): PagedAsyncIterableIterator<ManagementLockObject>;\n /**\n * Gets all the management locks for a resource or any level below resource.\n * @param resourceGroupName The name of the resource group containing the locked resource. The name is\n * case insensitive.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourcePath The parent resource identity.\n * @param resourceType The resource type of the locked resource.\n * @param resourceName The name of the locked resource.\n * @param options The options parameters.\n */\n listAtResourceLevel(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourcePath: string,\n resourceType: string,\n resourceName: string,\n options?: ManagementLocksListAtResourceLevelOptionalParams\n ): PagedAsyncIterableIterator<ManagementLockObject>;\n /**\n * Gets all the management locks for a subscription.\n * @param options The options parameters.\n */\n listAtSubscriptionLevel(\n options?: ManagementLocksListAtSubscriptionLevelOptionalParams\n ): PagedAsyncIterableIterator<ManagementLockObject>;\n /**\n * Gets all the management locks for a scope.\n * @param scope The scope for the lock. When providing a scope for the assignment, use\n * '/subscriptions/{subscriptionId}' for subscriptions,\n * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and\n * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'\n * for resources.\n * @param options The options parameters.\n */\n listByScope(\n scope: string,\n options?: ManagementLocksListByScopeOptionalParams\n ): PagedAsyncIterableIterator<ManagementLockObject>;\n /**\n * When you apply a lock at a parent scope, all child resources inherit the same lock. To create\n * management locks, you must have access to Microsoft.Authorization/* or\n * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access\n * Administrator are granted those actions.\n * @param resourceGroupName The name of the resource group to lock.\n * @param lockName The lock name. The lock name can be a maximum of 260 characters. It cannot contain\n * <, > %, &, :, \\, ?, /, or any control characters.\n * @param parameters The management lock parameters.\n * @param options The options parameters.\n */\n createOrUpdateAtResourceGroupLevel(\n resourceGroupName: string,\n lockName: string,\n parameters: ManagementLockObject,\n options?: ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams\n ): Promise<ManagementLocksCreateOrUpdateAtResourceGroupLevelResponse>;\n /**\n * To delete management locks, you must have access to Microsoft.Authorization/* or\n * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access\n * Administrator are granted those actions.\n * @param resourceGroupName The name of the resource group containing the lock.\n * @param lockName The name of lock to delete.\n * @param options The options parameters.\n */\n deleteAtResourceGroupLevel(\n resourceGroupName: string,\n lockName: string,\n options?: ManagementLocksDeleteAtResourceGroupLevelOptionalParams\n ): Promise<void>;\n /**\n * Gets a management lock at the resource group level.\n * @param resourceGroupName The name of the locked resource group.\n * @param lockName The name of the lock to get.\n * @param options The options parameters.\n */\n getAtResourceGroupLevel(\n resourceGroupName: string,\n lockName: string,\n options?: ManagementLocksGetAtResourceGroupLevelOptionalParams\n ): Promise<ManagementLocksGetAtResourceGroupLevelResponse>;\n /**\n * Create or update a management lock by scope.\n * @param scope The scope for the lock. When providing a scope for the assignment, use\n * '/subscriptions/{subscriptionId}' for subscriptions,\n * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and\n * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'\n * for resources.\n * @param lockName The name of lock.\n * @param parameters Create or update management lock parameters.\n * @param options The options parameters.\n */\n createOrUpdateByScope(\n scope: string,\n lockName: string,\n parameters: ManagementLockObject,\n options?: ManagementLocksCreateOrUpdateByScopeOptionalParams\n ): Promise<ManagementLocksCreateOrUpdateByScopeResponse>;\n /**\n * Delete a management lock by scope.\n * @param scope The scope for the lock.\n * @param lockName The name of lock.\n * @param options The options parameters.\n */\n deleteByScope(\n scope: string,\n lockName: string,\n options?: ManagementLocksDeleteByScopeOptionalParams\n ): Promise<void>;\n /**\n * Get a management lock by scope.\n * @param scope The scope for the lock.\n * @param lockName The name of lock.\n * @param options The options parameters.\n */\n getByScope(\n scope: string,\n lockName: string,\n options?: ManagementLocksGetByScopeOptionalParams\n ): Promise<ManagementLocksGetByScopeResponse>;\n /**\n * When you apply a lock at a parent scope, all child resources inherit the same lock. To create\n * management locks, you must have access to Microsoft.Authorization/* or\n * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access\n * Administrator are granted those actions.\n * @param resourceGroupName The name of the resource group containing the resource to lock.\n * @param resourceProviderNamespace The resource provider namespace of the resource to lock.\n * @param parentResourcePath The parent resource identity.\n * @param resourceType The resource type of the resource to lock.\n * @param resourceName The name of the resource to lock.\n * @param lockName The name of lock. The lock name can be a maximum of 260 characters. It cannot\n * contain <, > %, &, :, \\, ?, /, or any control characters.\n * @param parameters Parameters for creating or updating a management lock.\n * @param options The options parameters.\n */\n createOrUpdateAtResourceLevel(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourcePath: string,\n resourceType: string,\n resourceName: string,\n lockName: string,\n parameters: ManagementLockObject,\n options?: ManagementLocksCreateOrUpdateAtResourceLevelOptionalParams\n ): Promise<ManagementLocksCreateOrUpdateAtResourceLevelResponse>;\n /**\n * To delete management locks, you must have access to Microsoft.Authorization/* or\n * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access\n * Administrator are granted those actions.\n * @param resourceGroupName The name of the resource group containing the resource with the lock to\n * delete.\n * @param resourceProviderNamespace The resource provider namespace of the resource with the lock to\n * delete.\n * @param parentResourcePath The parent resource identity.\n * @param resourceType The resource type of the resource with the lock to delete.\n * @param resourceName The name of the resource with the lock to delete.\n * @param lockName The name of the lock to delete.\n * @param options The options parameters.\n */\n deleteAtResourceLevel(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourcePath: string,\n resourceType: string,\n resourceName: string,\n lockName: string,\n options?: ManagementLocksDeleteAtResourceLevelOptionalParams\n ): Promise<void>;\n /**\n * Get the management lock of a resource or any level below resource.\n * @param resourceGroupName The name of the resource group.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param parentResourcePath An extra path parameter needed in some services, like SQL Databases.\n * @param resourceType The type of the resource.\n * @param resourceName The name of the resource.\n * @param lockName The name of lock.\n * @param options The options parameters.\n */\n getAtResourceLevel(\n resourceGroupName: string,\n resourceProviderNamespace: string,\n parentResourcePath: string,\n resourceType: string,\n resourceName: string,\n lockName: string,\n options?: ManagementLocksGetAtResourceLevelOptionalParams\n ): Promise<ManagementLocksGetAtResourceLevelResponse>;\n /**\n * When you apply a lock at a parent scope, all child resources inherit the same lock. To create\n * management locks, you must have access to Microsoft.Authorization/* or\n * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access\n * Administrator are granted those actions.\n * @param lockName The name of lock. The lock name can be a maximum of 260 characters. It cannot\n * contain <, > %, &, :, \\, ?, /, or any control characters.\n * @param parameters The management lock parameters.\n * @param options The options parameters.\n */\n createOrUpdateAtSubscriptionLevel(\n lockName: string,\n parameters: ManagementLockObject,\n options?: ManagementLocksCreateOrUpdateAtSubscriptionLevelOptionalParams\n ): Promise<ManagementLocksCreateOrUpdateAtSubscriptionLevelResponse>;\n /**\n * To delete management locks, you must have access to Microsoft.Authorization/* or\n * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access\n * Administrator are granted those actions.\n * @param lockName The name of lock to delete.\n * @param options The options parameters.\n */\n deleteAtSubscriptionLevel(\n lockName: string,\n options?: ManagementLocksDeleteAtSubscriptionLevelOptionalParams\n ): Promise<void>;\n /**\n * Gets a management lock at the subscription level.\n * @param lockName The name of the lock to get.\n * @param options The options parameters.\n */\n getAtSubscriptionLevel(\n lockName: string,\n options?: ManagementLocksGetAtSubscriptionLevelOptionalParams\n ): Promise<ManagementLocksGetAtSubscriptionLevelResponse>;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,cAAc,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.ManagementLockClient = exports.getContinuationToken = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
var pagingHelper_js_1 = require("./pagingHelper.js");
|
|
14
|
+
Object.defineProperty(exports, "getContinuationToken", { enumerable: true, get: function () { return pagingHelper_js_1.getContinuationToken; } });
|
|
15
|
+
tslib_1.__exportStar(require("./models/index.js"), exports);
|
|
16
|
+
var managementLockClient_js_1 = require("./managementLockClient.js");
|
|
17
|
+
Object.defineProperty(exports, "ManagementLockClient", { enumerable: true, get: function () { return managementLockClient_js_1.ManagementLockClient; } });
|
|
18
|
+
tslib_1.__exportStar(require("./operationsInterfaces/index.js"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,4CAA4C;AAC5C,qDAAyD;AAAhD,uHAAA,oBAAoB,OAAA;AAC7B,4DAAkC;AAClC,qEAAiE;AAAxD,+HAAA,oBAAoB,OAAA;AAC7B,0EAAgD","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { ManagementLockClient } from \"./managementLockClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
import * as coreAuth from "@azure/core-auth";
|
|
3
|
+
import { AuthorizationOperations, ManagementLocks } from "./operationsInterfaces/index.js";
|
|
4
|
+
import { ManagementLockClientOptionalParams } from "./models/index.js";
|
|
5
|
+
export declare class ManagementLockClient extends coreClient.ServiceClient {
|
|
6
|
+
$host: string;
|
|
7
|
+
apiVersion: string;
|
|
8
|
+
subscriptionId: string;
|
|
9
|
+
/**
|
|
10
|
+
* Initializes a new instance of the ManagementLockClient class.
|
|
11
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
12
|
+
* @param subscriptionId The ID of the target subscription.
|
|
13
|
+
* @param options The parameter options
|
|
14
|
+
*/
|
|
15
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ManagementLockClientOptionalParams);
|
|
16
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
17
|
+
private addCustomApiVersionPolicy;
|
|
18
|
+
authorizationOperations: AuthorizationOperations;
|
|
19
|
+
managementLocks: ManagementLocks;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=managementLockClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managementLockClient.d.ts","sourceRoot":"","sources":["../../src/managementLockClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EACL,uBAAuB,EACvB,eAAe,EAChB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,kCAAkC,EAAE,MAAM,mBAAmB,CAAC;AAEvE,qBAAa,oBAAqB,SAAQ,UAAU,CAAC,aAAa;IAChE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,kCAAkC;IA6E9C,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,eAAe,EAAE,eAAe,CAAC;CAClC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.ManagementLockClient = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
13
|
+
const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
|
|
14
|
+
const index_js_1 = require("./operations/index.js");
|
|
15
|
+
class ManagementLockClient extends coreClient.ServiceClient {
|
|
16
|
+
/**
|
|
17
|
+
* Initializes a new instance of the ManagementLockClient class.
|
|
18
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
19
|
+
* @param subscriptionId The ID of the target subscription.
|
|
20
|
+
* @param options The parameter options
|
|
21
|
+
*/
|
|
22
|
+
constructor(credentials, subscriptionId, options) {
|
|
23
|
+
var _a, _b, _c;
|
|
24
|
+
if (credentials === undefined) {
|
|
25
|
+
throw new Error("'credentials' cannot be null");
|
|
26
|
+
}
|
|
27
|
+
if (subscriptionId === undefined) {
|
|
28
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
29
|
+
}
|
|
30
|
+
// Initializing default values for options
|
|
31
|
+
if (!options) {
|
|
32
|
+
options = {};
|
|
33
|
+
}
|
|
34
|
+
const defaults = {
|
|
35
|
+
requestContentType: "application/json; charset=utf-8",
|
|
36
|
+
credential: credentials
|
|
37
|
+
};
|
|
38
|
+
const packageDetails = `azsdk-js-arm-locks-profile-2020-09-01-hybrid/2.1.1`;
|
|
39
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
40
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
41
|
+
: `${packageDetails}`;
|
|
42
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
43
|
+
userAgentPrefix
|
|
44
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
45
|
+
super(optionsWithDefaults);
|
|
46
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
47
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
48
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
49
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
50
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
51
|
+
}
|
|
52
|
+
if (!options ||
|
|
53
|
+
!options.pipeline ||
|
|
54
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
55
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
56
|
+
this.pipeline.removePolicy({
|
|
57
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
58
|
+
});
|
|
59
|
+
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
60
|
+
credential: credentials,
|
|
61
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
62
|
+
challengeCallbacks: {
|
|
63
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
64
|
+
}
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
// Parameter assignments
|
|
68
|
+
this.subscriptionId = subscriptionId;
|
|
69
|
+
// Assigning values to Constant parameters
|
|
70
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
71
|
+
this.apiVersion = options.apiVersion || "2016-09-01";
|
|
72
|
+
this.authorizationOperations = new index_js_1.AuthorizationOperationsImpl(this);
|
|
73
|
+
this.managementLocks = new index_js_1.ManagementLocksImpl(this);
|
|
74
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
75
|
+
}
|
|
76
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
77
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
78
|
+
if (!apiVersion) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
const apiVersionPolicy = {
|
|
82
|
+
name: "CustomApiVersionPolicy",
|
|
83
|
+
async sendRequest(request, next) {
|
|
84
|
+
const param = request.url.split("?");
|
|
85
|
+
if (param.length > 1) {
|
|
86
|
+
const newParams = param[1].split("&").map((item) => {
|
|
87
|
+
if (item.indexOf("api-version") > -1) {
|
|
88
|
+
return "api-version=" + apiVersion;
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
return item;
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
95
|
+
}
|
|
96
|
+
return next(request);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.ManagementLockClient = ManagementLockClient;
|
|
103
|
+
//# sourceMappingURL=managementLockClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managementLockClient.js","s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GAA8G;IACtG,yBAAyB,CAAC,UAAmB;QACnD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAIF;AAzHD,oDAyHC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { AuthorizationOperationsImpl, ManagementLocksImpl } from \"./operations/index.js\";\nimport {\n AuthorizationOperations,\n ManagementLocks\n} from \"./operationsInterfaces/index.js\";\nimport { ManagementLockClientOptionalParams } from \"./models/index.js\";\n\nexport class ManagementLockClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ManagementLockClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ManagementLockClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ManagementLockClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-locks-profile-2020-09-01-hybrid/2.1.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2016-09-01\";\n this.authorizationOperations = new AuthorizationOperationsImpl(this);\n this.managementLocks = new ManagementLocksImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n authorizationOperations: AuthorizationOperations;\n managementLocks: ManagementLocks;\n}\n"]}
|
|
@@ -1,88 +1,72 @@
|
|
|
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
|
-
|
|
9
1
|
import * as coreClient from "@azure/core-client";
|
|
10
|
-
|
|
11
2
|
/** Result of the request to list Microsoft.Authorization operations. It contains a list of operations and a URL link to get the next set of results. */
|
|
12
3
|
export interface OperationListResult {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
4
|
+
/** List of Microsoft.Authorization operations. */
|
|
5
|
+
value?: Operation[];
|
|
6
|
+
/** URL to get the next set of operation list results if there are any. */
|
|
7
|
+
nextLink?: string;
|
|
17
8
|
}
|
|
18
|
-
|
|
19
9
|
/** Microsoft.Authorization operation */
|
|
20
10
|
export interface Operation {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
11
|
+
/** Operation name: {provider}/{resource}/{operation} */
|
|
12
|
+
name?: string;
|
|
13
|
+
/** The object that represents the operation. */
|
|
14
|
+
display?: OperationDisplay;
|
|
25
15
|
}
|
|
26
|
-
|
|
27
16
|
/** The object that represents the operation. */
|
|
28
17
|
export interface OperationDisplay {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
18
|
+
/** Service provider: Microsoft.Authorization */
|
|
19
|
+
provider?: string;
|
|
20
|
+
/** Resource on which the operation is performed: Profile, endpoint, etc. */
|
|
21
|
+
resource?: string;
|
|
22
|
+
/** Operation type: Read, write, delete, etc. */
|
|
23
|
+
operation?: string;
|
|
35
24
|
}
|
|
36
|
-
|
|
37
25
|
/** The lock information. */
|
|
38
26
|
export interface ManagementLockObject {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
27
|
+
/**
|
|
28
|
+
* The resource ID of the lock.
|
|
29
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
30
|
+
*/
|
|
31
|
+
readonly id?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The resource type of the lock - Microsoft.Authorization/locks.
|
|
34
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
35
|
+
*/
|
|
36
|
+
readonly type?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The name of the lock.
|
|
39
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
40
|
+
*/
|
|
41
|
+
readonly name?: string;
|
|
42
|
+
/** The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it. */
|
|
43
|
+
level: LockLevel;
|
|
44
|
+
/** Notes about the lock. Maximum of 512 characters. */
|
|
45
|
+
notes?: string;
|
|
46
|
+
/** The owners of the lock. */
|
|
47
|
+
owners?: ManagementLockOwner[];
|
|
60
48
|
}
|
|
61
|
-
|
|
62
49
|
/** Lock owner properties. */
|
|
63
50
|
export interface ManagementLockOwner {
|
|
64
|
-
|
|
65
|
-
|
|
51
|
+
/** The application ID of the lock owner. */
|
|
52
|
+
applicationId?: string;
|
|
66
53
|
}
|
|
67
|
-
|
|
68
54
|
/** The list of locks. */
|
|
69
55
|
export interface ManagementLockListResult {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
56
|
+
/** The list of locks. */
|
|
57
|
+
value?: ManagementLockObject[];
|
|
58
|
+
/** The URL to use for getting the next set of results. */
|
|
59
|
+
nextLink?: string;
|
|
74
60
|
}
|
|
75
|
-
|
|
76
61
|
/** Known values of {@link LockLevel} that the service accepts. */
|
|
77
|
-
export enum KnownLockLevel {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
62
|
+
export declare enum KnownLockLevel {
|
|
63
|
+
/** NotSpecified */
|
|
64
|
+
NotSpecified = "NotSpecified",
|
|
65
|
+
/** CanNotDelete */
|
|
66
|
+
CanNotDelete = "CanNotDelete",
|
|
67
|
+
/** ReadOnly */
|
|
68
|
+
ReadOnly = "ReadOnly"
|
|
84
69
|
}
|
|
85
|
-
|
|
86
70
|
/**
|
|
87
71
|
* Defines values for LockLevel. \
|
|
88
72
|
* {@link KnownLockLevel} can be used interchangeably with LockLevel,
|
|
@@ -93,168 +77,123 @@ export enum KnownLockLevel {
|
|
|
93
77
|
* **ReadOnly**
|
|
94
78
|
*/
|
|
95
79
|
export type LockLevel = string;
|
|
96
|
-
|
|
97
80
|
/** Optional parameters. */
|
|
98
|
-
export interface AuthorizationOperationsListOptionalParams
|
|
99
|
-
|
|
100
|
-
|
|
81
|
+
export interface AuthorizationOperationsListOptionalParams extends coreClient.OperationOptions {
|
|
82
|
+
}
|
|
101
83
|
/** Contains response data for the list operation. */
|
|
102
84
|
export type AuthorizationOperationsListResponse = OperationListResult;
|
|
103
|
-
|
|
104
85
|
/** Optional parameters. */
|
|
105
|
-
export interface AuthorizationOperationsListNextOptionalParams
|
|
106
|
-
|
|
107
|
-
|
|
86
|
+
export interface AuthorizationOperationsListNextOptionalParams extends coreClient.OperationOptions {
|
|
87
|
+
}
|
|
108
88
|
/** Contains response data for the listNext operation. */
|
|
109
89
|
export type AuthorizationOperationsListNextResponse = OperationListResult;
|
|
110
|
-
|
|
111
90
|
/** Optional parameters. */
|
|
112
|
-
export interface ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams
|
|
113
|
-
|
|
114
|
-
|
|
91
|
+
export interface ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams extends coreClient.OperationOptions {
|
|
92
|
+
}
|
|
115
93
|
/** Contains response data for the createOrUpdateAtResourceGroupLevel operation. */
|
|
116
94
|
export type ManagementLocksCreateOrUpdateAtResourceGroupLevelResponse = ManagementLockObject;
|
|
117
|
-
|
|
118
95
|
/** Optional parameters. */
|
|
119
|
-
export interface ManagementLocksDeleteAtResourceGroupLevelOptionalParams
|
|
120
|
-
|
|
121
|
-
|
|
96
|
+
export interface ManagementLocksDeleteAtResourceGroupLevelOptionalParams extends coreClient.OperationOptions {
|
|
97
|
+
}
|
|
122
98
|
/** Optional parameters. */
|
|
123
|
-
export interface ManagementLocksGetAtResourceGroupLevelOptionalParams
|
|
124
|
-
|
|
125
|
-
|
|
99
|
+
export interface ManagementLocksGetAtResourceGroupLevelOptionalParams extends coreClient.OperationOptions {
|
|
100
|
+
}
|
|
126
101
|
/** Contains response data for the getAtResourceGroupLevel operation. */
|
|
127
102
|
export type ManagementLocksGetAtResourceGroupLevelResponse = ManagementLockObject;
|
|
128
|
-
|
|
129
103
|
/** Optional parameters. */
|
|
130
|
-
export interface ManagementLocksCreateOrUpdateByScopeOptionalParams
|
|
131
|
-
|
|
132
|
-
|
|
104
|
+
export interface ManagementLocksCreateOrUpdateByScopeOptionalParams extends coreClient.OperationOptions {
|
|
105
|
+
}
|
|
133
106
|
/** Contains response data for the createOrUpdateByScope operation. */
|
|
134
107
|
export type ManagementLocksCreateOrUpdateByScopeResponse = ManagementLockObject;
|
|
135
|
-
|
|
136
108
|
/** Optional parameters. */
|
|
137
|
-
export interface ManagementLocksDeleteByScopeOptionalParams
|
|
138
|
-
|
|
139
|
-
|
|
109
|
+
export interface ManagementLocksDeleteByScopeOptionalParams extends coreClient.OperationOptions {
|
|
110
|
+
}
|
|
140
111
|
/** Optional parameters. */
|
|
141
|
-
export interface ManagementLocksGetByScopeOptionalParams
|
|
142
|
-
|
|
143
|
-
|
|
112
|
+
export interface ManagementLocksGetByScopeOptionalParams extends coreClient.OperationOptions {
|
|
113
|
+
}
|
|
144
114
|
/** Contains response data for the getByScope operation. */
|
|
145
115
|
export type ManagementLocksGetByScopeResponse = ManagementLockObject;
|
|
146
|
-
|
|
147
116
|
/** Optional parameters. */
|
|
148
|
-
export interface ManagementLocksCreateOrUpdateAtResourceLevelOptionalParams
|
|
149
|
-
|
|
150
|
-
|
|
117
|
+
export interface ManagementLocksCreateOrUpdateAtResourceLevelOptionalParams extends coreClient.OperationOptions {
|
|
118
|
+
}
|
|
151
119
|
/** Contains response data for the createOrUpdateAtResourceLevel operation. */
|
|
152
120
|
export type ManagementLocksCreateOrUpdateAtResourceLevelResponse = ManagementLockObject;
|
|
153
|
-
|
|
154
121
|
/** Optional parameters. */
|
|
155
|
-
export interface ManagementLocksDeleteAtResourceLevelOptionalParams
|
|
156
|
-
|
|
157
|
-
|
|
122
|
+
export interface ManagementLocksDeleteAtResourceLevelOptionalParams extends coreClient.OperationOptions {
|
|
123
|
+
}
|
|
158
124
|
/** Optional parameters. */
|
|
159
|
-
export interface ManagementLocksGetAtResourceLevelOptionalParams
|
|
160
|
-
|
|
161
|
-
|
|
125
|
+
export interface ManagementLocksGetAtResourceLevelOptionalParams extends coreClient.OperationOptions {
|
|
126
|
+
}
|
|
162
127
|
/** Contains response data for the getAtResourceLevel operation. */
|
|
163
128
|
export type ManagementLocksGetAtResourceLevelResponse = ManagementLockObject;
|
|
164
|
-
|
|
165
129
|
/** Optional parameters. */
|
|
166
|
-
export interface ManagementLocksCreateOrUpdateAtSubscriptionLevelOptionalParams
|
|
167
|
-
|
|
168
|
-
|
|
130
|
+
export interface ManagementLocksCreateOrUpdateAtSubscriptionLevelOptionalParams extends coreClient.OperationOptions {
|
|
131
|
+
}
|
|
169
132
|
/** Contains response data for the createOrUpdateAtSubscriptionLevel operation. */
|
|
170
133
|
export type ManagementLocksCreateOrUpdateAtSubscriptionLevelResponse = ManagementLockObject;
|
|
171
|
-
|
|
172
134
|
/** Optional parameters. */
|
|
173
|
-
export interface ManagementLocksDeleteAtSubscriptionLevelOptionalParams
|
|
174
|
-
|
|
175
|
-
|
|
135
|
+
export interface ManagementLocksDeleteAtSubscriptionLevelOptionalParams extends coreClient.OperationOptions {
|
|
136
|
+
}
|
|
176
137
|
/** Optional parameters. */
|
|
177
|
-
export interface ManagementLocksGetAtSubscriptionLevelOptionalParams
|
|
178
|
-
|
|
179
|
-
|
|
138
|
+
export interface ManagementLocksGetAtSubscriptionLevelOptionalParams extends coreClient.OperationOptions {
|
|
139
|
+
}
|
|
180
140
|
/** Contains response data for the getAtSubscriptionLevel operation. */
|
|
181
141
|
export type ManagementLocksGetAtSubscriptionLevelResponse = ManagementLockObject;
|
|
182
|
-
|
|
183
142
|
/** Optional parameters. */
|
|
184
|
-
export interface ManagementLocksListAtResourceGroupLevelOptionalParams
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
filter?: string;
|
|
143
|
+
export interface ManagementLocksListAtResourceGroupLevelOptionalParams extends coreClient.OperationOptions {
|
|
144
|
+
/** The filter to apply on the operation. */
|
|
145
|
+
filter?: string;
|
|
188
146
|
}
|
|
189
|
-
|
|
190
147
|
/** Contains response data for the listAtResourceGroupLevel operation. */
|
|
191
148
|
export type ManagementLocksListAtResourceGroupLevelResponse = ManagementLockListResult;
|
|
192
|
-
|
|
193
149
|
/** Optional parameters. */
|
|
194
|
-
export interface ManagementLocksListAtResourceLevelOptionalParams
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
filter?: string;
|
|
150
|
+
export interface ManagementLocksListAtResourceLevelOptionalParams extends coreClient.OperationOptions {
|
|
151
|
+
/** The filter to apply on the operation. */
|
|
152
|
+
filter?: string;
|
|
198
153
|
}
|
|
199
|
-
|
|
200
154
|
/** Contains response data for the listAtResourceLevel operation. */
|
|
201
155
|
export type ManagementLocksListAtResourceLevelResponse = ManagementLockListResult;
|
|
202
|
-
|
|
203
156
|
/** Optional parameters. */
|
|
204
|
-
export interface ManagementLocksListAtSubscriptionLevelOptionalParams
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
filter?: string;
|
|
157
|
+
export interface ManagementLocksListAtSubscriptionLevelOptionalParams extends coreClient.OperationOptions {
|
|
158
|
+
/** The filter to apply on the operation. */
|
|
159
|
+
filter?: string;
|
|
208
160
|
}
|
|
209
|
-
|
|
210
161
|
/** Contains response data for the listAtSubscriptionLevel operation. */
|
|
211
162
|
export type ManagementLocksListAtSubscriptionLevelResponse = ManagementLockListResult;
|
|
212
|
-
|
|
213
163
|
/** Optional parameters. */
|
|
214
|
-
export interface ManagementLocksListByScopeOptionalParams
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
filter?: string;
|
|
164
|
+
export interface ManagementLocksListByScopeOptionalParams extends coreClient.OperationOptions {
|
|
165
|
+
/** The filter to apply on the operation. */
|
|
166
|
+
filter?: string;
|
|
218
167
|
}
|
|
219
|
-
|
|
220
168
|
/** Contains response data for the listByScope operation. */
|
|
221
169
|
export type ManagementLocksListByScopeResponse = ManagementLockListResult;
|
|
222
|
-
|
|
223
170
|
/** Optional parameters. */
|
|
224
|
-
export interface ManagementLocksListAtResourceGroupLevelNextOptionalParams
|
|
225
|
-
|
|
226
|
-
|
|
171
|
+
export interface ManagementLocksListAtResourceGroupLevelNextOptionalParams extends coreClient.OperationOptions {
|
|
172
|
+
}
|
|
227
173
|
/** Contains response data for the listAtResourceGroupLevelNext operation. */
|
|
228
174
|
export type ManagementLocksListAtResourceGroupLevelNextResponse = ManagementLockListResult;
|
|
229
|
-
|
|
230
175
|
/** Optional parameters. */
|
|
231
|
-
export interface ManagementLocksListAtResourceLevelNextOptionalParams
|
|
232
|
-
|
|
233
|
-
|
|
176
|
+
export interface ManagementLocksListAtResourceLevelNextOptionalParams extends coreClient.OperationOptions {
|
|
177
|
+
}
|
|
234
178
|
/** Contains response data for the listAtResourceLevelNext operation. */
|
|
235
179
|
export type ManagementLocksListAtResourceLevelNextResponse = ManagementLockListResult;
|
|
236
|
-
|
|
237
180
|
/** Optional parameters. */
|
|
238
|
-
export interface ManagementLocksListAtSubscriptionLevelNextOptionalParams
|
|
239
|
-
|
|
240
|
-
|
|
181
|
+
export interface ManagementLocksListAtSubscriptionLevelNextOptionalParams extends coreClient.OperationOptions {
|
|
182
|
+
}
|
|
241
183
|
/** Contains response data for the listAtSubscriptionLevelNext operation. */
|
|
242
184
|
export type ManagementLocksListAtSubscriptionLevelNextResponse = ManagementLockListResult;
|
|
243
|
-
|
|
244
185
|
/** Optional parameters. */
|
|
245
|
-
export interface ManagementLocksListByScopeNextOptionalParams
|
|
246
|
-
|
|
247
|
-
|
|
186
|
+
export interface ManagementLocksListByScopeNextOptionalParams extends coreClient.OperationOptions {
|
|
187
|
+
}
|
|
248
188
|
/** Contains response data for the listByScopeNext operation. */
|
|
249
189
|
export type ManagementLocksListByScopeNextResponse = ManagementLockListResult;
|
|
250
|
-
|
|
251
190
|
/** Optional parameters. */
|
|
252
|
-
export interface ManagementLockClientOptionalParams
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
endpoint?: string;
|
|
191
|
+
export interface ManagementLockClientOptionalParams extends coreClient.ServiceClientOptions {
|
|
192
|
+
/** server parameter */
|
|
193
|
+
$host?: string;
|
|
194
|
+
/** Api Version */
|
|
195
|
+
apiVersion?: string;
|
|
196
|
+
/** Overrides client endpoint. */
|
|
197
|
+
endpoint?: string;
|
|
260
198
|
}
|
|
199
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,wJAAwJ;AACxJ,MAAM,WAAW,mBAAmB;IAClC,kDAAkD;IAClD,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wCAAwC;AACxC,MAAM,WAAW,SAAS;IACxB,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gDAAgD;IAChD,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B;AAED,gDAAgD;AAChD,MAAM,WAAW,gBAAgB;IAC/B,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4EAA4E;IAC5E,QAAQ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E,MAAM,MAAM,kDAAkD,GAAG,wBAAwB,CAAC;AAE1F,2BAA2B;AAC3B,MAAM,WAAW,4CACf,SAAQ,UAAU,CAAC,gBAAgB;CAAG;AAExC,gEAAgE;AAChE,MAAM,MAAM,sCAAsC,GAAG,wBAAwB,CAAC;AAE9E,2BAA2B;AAC3B,MAAM,WAAW,kCACf,SAAQ,UAAU,CAAC,oBAAoB;IACvC,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.KnownLockLevel = void 0;
|
|
11
|
+
/** Known values of {@link LockLevel} that the service accepts. */
|
|
12
|
+
var KnownLockLevel;
|
|
13
|
+
(function (KnownLockLevel) {
|
|
14
|
+
/** NotSpecified */
|
|
15
|
+
KnownLockLevel["NotSpecified"] = "NotSpecified";
|
|
16
|
+
/** CanNotDelete */
|
|
17
|
+
KnownLockLevel["CanNotDelete"] = "CanNotDelete";
|
|
18
|
+
/** ReadOnly */
|
|
19
|
+
KnownLockLevel["ReadOnly"] = "ReadOnly";
|
|
20
|
+
})(KnownLockLevel || (exports.KnownLockLevel = KnownLockLevel = {}));
|
|
21
|
+
//# sourceMappingURL=index.js.map
|