@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.
Files changed (304) hide show
  1. package/README.md +21 -14
  2. package/dist/browser/index.d.ts +5 -0
  3. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  4. package/{dist-esm/src → dist/browser}/index.js +4 -4
  5. package/dist/browser/index.js.map +1 -0
  6. package/{dist-esm/src → dist/browser}/managementLockClient.d.ts +2 -2
  7. package/dist/browser/managementLockClient.d.ts.map +1 -0
  8. package/{dist-esm/src → dist/browser}/managementLockClient.js +15 -18
  9. package/dist/browser/managementLockClient.js.map +1 -0
  10. package/dist/browser/models/index.js.map +1 -0
  11. package/dist/browser/models/mappers.js.map +1 -0
  12. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  13. package/dist/browser/models/parameters.js.map +1 -0
  14. package/{dist-esm/src → dist/browser}/operations/authorizationOperations.d.ts +3 -3
  15. package/dist/browser/operations/authorizationOperations.d.ts.map +1 -0
  16. package/{dist-esm/src → dist/browser}/operations/authorizationOperations.js +3 -3
  17. package/dist/browser/operations/authorizationOperations.js.map +1 -0
  18. package/dist/browser/operations/index.d.ts +3 -0
  19. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  20. package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +2 -2
  21. package/dist/browser/operations/index.js.map +1 -0
  22. package/{dist-esm/src → dist/browser}/operations/managementLocks.d.ts +3 -3
  23. package/dist/browser/operations/managementLocks.d.ts.map +1 -0
  24. package/{dist-esm/src → dist/browser}/operations/managementLocks.js +3 -3
  25. package/dist/browser/operations/managementLocks.js.map +1 -0
  26. package/{dist-esm/src → dist/browser}/operationsInterfaces/authorizationOperations.d.ts +1 -1
  27. package/dist/browser/operationsInterfaces/authorizationOperations.d.ts.map +1 -0
  28. package/dist/browser/operationsInterfaces/authorizationOperations.js.map +1 -0
  29. package/dist/browser/operationsInterfaces/index.d.ts +3 -0
  30. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  31. package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +2 -2
  32. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  33. package/{dist-esm/src → dist/browser}/operationsInterfaces/managementLocks.d.ts +1 -1
  34. package/dist/browser/operationsInterfaces/managementLocks.d.ts.map +1 -0
  35. package/dist/browser/operationsInterfaces/managementLocks.js.map +1 -0
  36. package/dist/browser/package.json +3 -0
  37. package/dist/browser/pagingHelper.js.map +1 -0
  38. package/dist/commonjs/index.d.ts +5 -0
  39. package/dist/commonjs/index.d.ts.map +1 -0
  40. package/dist/commonjs/index.js +19 -0
  41. package/dist/commonjs/index.js.map +1 -0
  42. package/dist/commonjs/managementLockClient.d.ts +21 -0
  43. package/dist/commonjs/managementLockClient.d.ts.map +1 -0
  44. package/dist/commonjs/managementLockClient.js +103 -0
  45. package/dist/commonjs/managementLockClient.js.map +1 -0
  46. package/{src/models/index.ts → dist/commonjs/models/index.d.ts} +104 -165
  47. package/dist/commonjs/models/index.d.ts.map +1 -0
  48. package/dist/commonjs/models/index.js +21 -0
  49. package/dist/commonjs/models/index.js.map +1 -0
  50. package/dist/commonjs/models/mappers.d.ts +8 -0
  51. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  52. package/dist/commonjs/models/mappers.js +178 -0
  53. package/dist/commonjs/models/mappers.js.map +1 -0
  54. package/dist/commonjs/models/parameters.d.ts +17 -0
  55. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  56. package/dist/commonjs/models/parameters.js +167 -0
  57. package/dist/commonjs/models/parameters.js.map +1 -0
  58. package/dist/commonjs/operations/authorizationOperations.d.ts +32 -0
  59. package/dist/commonjs/operations/authorizationOperations.d.ts.map +1 -0
  60. package/dist/commonjs/operations/authorizationOperations.js +131 -0
  61. package/dist/commonjs/operations/authorizationOperations.js.map +1 -0
  62. package/dist/commonjs/operations/index.d.ts +3 -0
  63. package/dist/commonjs/operations/index.d.ts.map +1 -0
  64. package/dist/commonjs/operations/index.js +13 -0
  65. package/dist/commonjs/operations/index.js.map +1 -0
  66. package/dist/commonjs/operations/managementLocks.d.ts +245 -0
  67. package/dist/commonjs/operations/managementLocks.d.ts.map +1 -0
  68. package/dist/commonjs/operations/managementLocks.js +897 -0
  69. package/dist/commonjs/operations/managementLocks.js.map +1 -0
  70. package/dist/commonjs/operationsInterfaces/authorizationOperations.d.ts +11 -0
  71. package/dist/commonjs/operationsInterfaces/authorizationOperations.d.ts.map +1 -0
  72. package/dist/commonjs/operationsInterfaces/authorizationOperations.js +10 -0
  73. package/dist/commonjs/operationsInterfaces/authorizationOperations.js.map +1 -0
  74. package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
  75. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  76. package/dist/commonjs/operationsInterfaces/index.js +13 -0
  77. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  78. package/dist/commonjs/operationsInterfaces/managementLocks.d.ts +159 -0
  79. package/dist/commonjs/operationsInterfaces/managementLocks.d.ts.map +1 -0
  80. package/dist/commonjs/operationsInterfaces/managementLocks.js +10 -0
  81. package/dist/commonjs/operationsInterfaces/managementLocks.js.map +1 -0
  82. package/dist/commonjs/package.json +3 -0
  83. package/dist/commonjs/pagingHelper.d.ts +13 -0
  84. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  85. package/dist/commonjs/pagingHelper.js +36 -0
  86. package/dist/commonjs/pagingHelper.js.map +1 -0
  87. package/dist/esm/index.d.ts +5 -0
  88. package/dist/esm/index.d.ts.map +1 -0
  89. package/{src/index.ts → dist/esm/index.js} +5 -5
  90. package/dist/esm/index.js.map +1 -0
  91. package/dist/esm/managementLockClient.d.ts +21 -0
  92. package/dist/esm/managementLockClient.d.ts.map +1 -0
  93. package/dist/esm/managementLockClient.js +98 -0
  94. package/dist/esm/managementLockClient.js.map +1 -0
  95. package/dist/esm/models/index.d.ts +199 -0
  96. package/dist/esm/models/index.d.ts.map +1 -0
  97. package/dist/esm/models/index.js +18 -0
  98. package/dist/esm/models/index.js.map +1 -0
  99. package/dist/esm/models/mappers.d.ts +8 -0
  100. package/dist/esm/models/mappers.d.ts.map +1 -0
  101. package/dist/esm/models/mappers.js +175 -0
  102. package/dist/esm/models/mappers.js.map +1 -0
  103. package/dist/esm/models/parameters.d.ts +17 -0
  104. package/dist/esm/models/parameters.d.ts.map +1 -0
  105. package/dist/esm/models/parameters.js +164 -0
  106. package/dist/esm/models/parameters.js.map +1 -0
  107. package/dist/esm/operations/authorizationOperations.d.ts +32 -0
  108. package/dist/esm/operations/authorizationOperations.d.ts.map +1 -0
  109. package/dist/esm/operations/authorizationOperations.js +127 -0
  110. package/dist/esm/operations/authorizationOperations.js.map +1 -0
  111. package/dist/esm/operations/index.d.ts +3 -0
  112. package/dist/esm/operations/index.d.ts.map +1 -0
  113. package/dist/esm/operations/index.js +10 -0
  114. package/dist/esm/operations/index.js.map +1 -0
  115. package/dist/esm/operations/managementLocks.d.ts +245 -0
  116. package/dist/esm/operations/managementLocks.d.ts.map +1 -0
  117. package/dist/{index.js → esm/operations/managementLocks.js} +176 -819
  118. package/dist/esm/operations/managementLocks.js.map +1 -0
  119. package/dist/esm/operationsInterfaces/authorizationOperations.d.ts +11 -0
  120. package/dist/esm/operationsInterfaces/authorizationOperations.d.ts.map +1 -0
  121. package/{src/operations/index.ts → dist/esm/operationsInterfaces/authorizationOperations.js} +2 -3
  122. package/dist/esm/operationsInterfaces/authorizationOperations.js.map +1 -0
  123. package/dist/esm/operationsInterfaces/index.d.ts +3 -0
  124. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  125. package/dist/esm/operationsInterfaces/index.js +10 -0
  126. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  127. package/dist/esm/operationsInterfaces/managementLocks.d.ts +159 -0
  128. package/dist/esm/operationsInterfaces/managementLocks.d.ts.map +1 -0
  129. package/{src/operationsInterfaces/index.ts → dist/esm/operationsInterfaces/managementLocks.js} +2 -3
  130. package/dist/esm/operationsInterfaces/managementLocks.js.map +1 -0
  131. package/dist/esm/package.json +3 -0
  132. package/dist/esm/pagingHelper.d.ts +13 -0
  133. package/dist/esm/pagingHelper.d.ts.map +1 -0
  134. package/dist/esm/pagingHelper.js +32 -0
  135. package/dist/esm/pagingHelper.js.map +1 -0
  136. package/dist/react-native/index.d.ts +5 -0
  137. package/dist/react-native/index.d.ts.map +1 -0
  138. package/dist/react-native/index.js +13 -0
  139. package/dist/react-native/index.js.map +1 -0
  140. package/dist/react-native/managementLockClient.d.ts +21 -0
  141. package/dist/react-native/managementLockClient.d.ts.map +1 -0
  142. package/dist/react-native/managementLockClient.js +98 -0
  143. package/dist/react-native/managementLockClient.js.map +1 -0
  144. package/dist/react-native/models/index.d.ts +199 -0
  145. package/dist/react-native/models/index.d.ts.map +1 -0
  146. package/dist/react-native/models/index.js +18 -0
  147. package/dist/react-native/models/index.js.map +1 -0
  148. package/dist/react-native/models/mappers.d.ts +8 -0
  149. package/dist/react-native/models/mappers.d.ts.map +1 -0
  150. package/dist/react-native/models/mappers.js +175 -0
  151. package/dist/react-native/models/mappers.js.map +1 -0
  152. package/dist/react-native/models/parameters.d.ts +17 -0
  153. package/dist/react-native/models/parameters.d.ts.map +1 -0
  154. package/dist/react-native/models/parameters.js +164 -0
  155. package/dist/react-native/models/parameters.js.map +1 -0
  156. package/dist/react-native/operations/authorizationOperations.d.ts +32 -0
  157. package/dist/react-native/operations/authorizationOperations.d.ts.map +1 -0
  158. package/dist/react-native/operations/authorizationOperations.js +127 -0
  159. package/dist/react-native/operations/authorizationOperations.js.map +1 -0
  160. package/dist/react-native/operations/index.d.ts +3 -0
  161. package/dist/react-native/operations/index.d.ts.map +1 -0
  162. package/dist/react-native/operations/index.js +10 -0
  163. package/dist/react-native/operations/index.js.map +1 -0
  164. package/dist/react-native/operations/managementLocks.d.ts +245 -0
  165. package/dist/react-native/operations/managementLocks.d.ts.map +1 -0
  166. package/dist/react-native/operations/managementLocks.js +893 -0
  167. package/dist/react-native/operations/managementLocks.js.map +1 -0
  168. package/dist/react-native/operationsInterfaces/authorizationOperations.d.ts +11 -0
  169. package/dist/react-native/operationsInterfaces/authorizationOperations.d.ts.map +1 -0
  170. package/dist/react-native/operationsInterfaces/authorizationOperations.js +9 -0
  171. package/dist/react-native/operationsInterfaces/authorizationOperations.js.map +1 -0
  172. package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
  173. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  174. package/dist/react-native/operationsInterfaces/index.js +10 -0
  175. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  176. package/dist/react-native/operationsInterfaces/managementLocks.d.ts +159 -0
  177. package/dist/react-native/operationsInterfaces/managementLocks.d.ts.map +1 -0
  178. package/dist/react-native/operationsInterfaces/managementLocks.js +9 -0
  179. package/dist/react-native/operationsInterfaces/managementLocks.js.map +1 -0
  180. package/dist/react-native/package.json +3 -0
  181. package/dist/react-native/pagingHelper.d.ts +13 -0
  182. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  183. package/dist/react-native/pagingHelper.js +32 -0
  184. package/dist/react-native/pagingHelper.js.map +1 -0
  185. package/package.json +69 -40
  186. package/dist/index.js.map +0 -1
  187. package/dist/index.min.js +0 -1
  188. package/dist/index.min.js.map +0 -1
  189. package/dist-esm/samples-dev/authorizationOperationsListSample.d.ts +0 -2
  190. package/dist-esm/samples-dev/authorizationOperationsListSample.d.ts.map +0 -1
  191. package/dist-esm/samples-dev/authorizationOperationsListSample.js +0 -50
  192. package/dist-esm/samples-dev/authorizationOperationsListSample.js.map +0 -1
  193. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceGroupLevelSample.d.ts +0 -2
  194. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceGroupLevelSample.d.ts.map +0 -1
  195. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceGroupLevelSample.js +0 -30
  196. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceGroupLevelSample.js.map +0 -1
  197. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceLevelSample.d.ts +0 -2
  198. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceLevelSample.d.ts.map +0 -1
  199. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceLevelSample.js +0 -34
  200. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceLevelSample.js.map +0 -1
  201. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtSubscriptionLevelSample.d.ts +0 -2
  202. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtSubscriptionLevelSample.d.ts.map +0 -1
  203. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtSubscriptionLevelSample.js +0 -29
  204. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtSubscriptionLevelSample.js.map +0 -1
  205. package/dist-esm/samples-dev/managementLocksCreateOrUpdateByScopeSample.d.ts +0 -2
  206. package/dist-esm/samples-dev/managementLocksCreateOrUpdateByScopeSample.d.ts.map +0 -1
  207. package/dist-esm/samples-dev/managementLocksCreateOrUpdateByScopeSample.js +0 -30
  208. package/dist-esm/samples-dev/managementLocksCreateOrUpdateByScopeSample.js.map +0 -1
  209. package/dist-esm/samples-dev/managementLocksDeleteAtResourceGroupLevelSample.d.ts +0 -2
  210. package/dist-esm/samples-dev/managementLocksDeleteAtResourceGroupLevelSample.d.ts.map +0 -1
  211. package/dist-esm/samples-dev/managementLocksDeleteAtResourceGroupLevelSample.js +0 -36
  212. package/dist-esm/samples-dev/managementLocksDeleteAtResourceGroupLevelSample.js.map +0 -1
  213. package/dist-esm/samples-dev/managementLocksDeleteAtResourceLevelSample.d.ts +0 -2
  214. package/dist-esm/samples-dev/managementLocksDeleteAtResourceLevelSample.d.ts.map +0 -1
  215. package/dist-esm/samples-dev/managementLocksDeleteAtResourceLevelSample.js +0 -40
  216. package/dist-esm/samples-dev/managementLocksDeleteAtResourceLevelSample.js.map +0 -1
  217. package/dist-esm/samples-dev/managementLocksDeleteAtSubscriptionLevelSample.d.ts +0 -2
  218. package/dist-esm/samples-dev/managementLocksDeleteAtSubscriptionLevelSample.d.ts.map +0 -1
  219. package/dist-esm/samples-dev/managementLocksDeleteAtSubscriptionLevelSample.js +0 -35
  220. package/dist-esm/samples-dev/managementLocksDeleteAtSubscriptionLevelSample.js.map +0 -1
  221. package/dist-esm/samples-dev/managementLocksDeleteByScopeSample.d.ts +0 -2
  222. package/dist-esm/samples-dev/managementLocksDeleteByScopeSample.d.ts.map +0 -1
  223. package/dist-esm/samples-dev/managementLocksDeleteByScopeSample.js +0 -36
  224. package/dist-esm/samples-dev/managementLocksDeleteByScopeSample.js.map +0 -1
  225. package/dist-esm/samples-dev/managementLocksGetAtResourceGroupLevelSample.d.ts +0 -2
  226. package/dist-esm/samples-dev/managementLocksGetAtResourceGroupLevelSample.d.ts.map +0 -1
  227. package/dist-esm/samples-dev/managementLocksGetAtResourceGroupLevelSample.js +0 -36
  228. package/dist-esm/samples-dev/managementLocksGetAtResourceGroupLevelSample.js.map +0 -1
  229. package/dist-esm/samples-dev/managementLocksGetAtResourceLevelSample.d.ts +0 -2
  230. package/dist-esm/samples-dev/managementLocksGetAtResourceLevelSample.d.ts.map +0 -1
  231. package/dist-esm/samples-dev/managementLocksGetAtResourceLevelSample.js +0 -40
  232. package/dist-esm/samples-dev/managementLocksGetAtResourceLevelSample.js.map +0 -1
  233. package/dist-esm/samples-dev/managementLocksGetAtSubscriptionLevelSample.d.ts +0 -2
  234. package/dist-esm/samples-dev/managementLocksGetAtSubscriptionLevelSample.d.ts.map +0 -1
  235. package/dist-esm/samples-dev/managementLocksGetAtSubscriptionLevelSample.js +0 -35
  236. package/dist-esm/samples-dev/managementLocksGetAtSubscriptionLevelSample.js.map +0 -1
  237. package/dist-esm/samples-dev/managementLocksGetByScopeSample.d.ts +0 -2
  238. package/dist-esm/samples-dev/managementLocksGetByScopeSample.d.ts.map +0 -1
  239. package/dist-esm/samples-dev/managementLocksGetByScopeSample.js +0 -36
  240. package/dist-esm/samples-dev/managementLocksGetByScopeSample.js.map +0 -1
  241. package/dist-esm/samples-dev/managementLocksListAtResourceGroupLevelSample.d.ts +0 -2
  242. package/dist-esm/samples-dev/managementLocksListAtResourceGroupLevelSample.d.ts.map +0 -1
  243. package/dist-esm/samples-dev/managementLocksListAtResourceGroupLevelSample.js +0 -51
  244. package/dist-esm/samples-dev/managementLocksListAtResourceGroupLevelSample.js.map +0 -1
  245. package/dist-esm/samples-dev/managementLocksListAtResourceLevelSample.d.ts +0 -2
  246. package/dist-esm/samples-dev/managementLocksListAtResourceLevelSample.d.ts.map +0 -1
  247. package/dist-esm/samples-dev/managementLocksListAtResourceLevelSample.js +0 -55
  248. package/dist-esm/samples-dev/managementLocksListAtResourceLevelSample.js.map +0 -1
  249. package/dist-esm/samples-dev/managementLocksListAtSubscriptionLevelSample.d.ts +0 -2
  250. package/dist-esm/samples-dev/managementLocksListAtSubscriptionLevelSample.d.ts.map +0 -1
  251. package/dist-esm/samples-dev/managementLocksListAtSubscriptionLevelSample.js +0 -50
  252. package/dist-esm/samples-dev/managementLocksListAtSubscriptionLevelSample.js.map +0 -1
  253. package/dist-esm/samples-dev/managementLocksListByScopeSample.d.ts +0 -2
  254. package/dist-esm/samples-dev/managementLocksListByScopeSample.d.ts.map +0 -1
  255. package/dist-esm/samples-dev/managementLocksListByScopeSample.js +0 -51
  256. package/dist-esm/samples-dev/managementLocksListByScopeSample.js.map +0 -1
  257. package/dist-esm/src/index.d.ts +0 -5
  258. package/dist-esm/src/index.js.map +0 -1
  259. package/dist-esm/src/managementLockClient.d.ts.map +0 -1
  260. package/dist-esm/src/managementLockClient.js.map +0 -1
  261. package/dist-esm/src/models/index.js.map +0 -1
  262. package/dist-esm/src/models/mappers.js.map +0 -1
  263. package/dist-esm/src/models/parameters.js.map +0 -1
  264. package/dist-esm/src/operations/authorizationOperations.d.ts.map +0 -1
  265. package/dist-esm/src/operations/authorizationOperations.js.map +0 -1
  266. package/dist-esm/src/operations/index.d.ts +0 -3
  267. package/dist-esm/src/operations/index.js.map +0 -1
  268. package/dist-esm/src/operations/managementLocks.d.ts.map +0 -1
  269. package/dist-esm/src/operations/managementLocks.js.map +0 -1
  270. package/dist-esm/src/operationsInterfaces/authorizationOperations.d.ts.map +0 -1
  271. package/dist-esm/src/operationsInterfaces/authorizationOperations.js.map +0 -1
  272. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
  273. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  274. package/dist-esm/src/operationsInterfaces/managementLocks.d.ts.map +0 -1
  275. package/dist-esm/src/operationsInterfaces/managementLocks.js.map +0 -1
  276. package/dist-esm/src/pagingHelper.js.map +0 -1
  277. package/dist-esm/test/sampleTest.d.ts +0 -2
  278. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  279. package/dist-esm/test/sampleTest.js +0 -42
  280. package/dist-esm/test/sampleTest.js.map +0 -1
  281. package/src/managementLockClient.ts +0 -145
  282. package/src/models/mappers.ts +0 -182
  283. package/src/models/parameters.ts +0 -184
  284. package/src/operations/authorizationOperations.ts +0 -143
  285. package/src/operations/managementLocks.ts +0 -1172
  286. package/src/operationsInterfaces/authorizationOperations.ts +0 -25
  287. package/src/operationsInterfaces/managementLocks.ts +0 -270
  288. package/src/pagingHelper.ts +0 -39
  289. package/tsconfig.json +0 -33
  290. package/types/arm-locks-profile-2020-09-01-hybrid.d.ts +0 -443
  291. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  292. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  293. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  294. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  295. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  296. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  297. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  298. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  299. /package/{dist-esm/src → dist/browser}/operationsInterfaces/authorizationOperations.js +0 -0
  300. /package/{dist-esm/src → dist/browser}/operationsInterfaces/managementLocks.js +0 -0
  301. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  302. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  303. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  304. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
@@ -1,1172 +0,0 @@
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
- import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
- import { setContinuationToken } from "../pagingHelper";
11
- import { ManagementLocks } from "../operationsInterfaces";
12
- import * as coreClient from "@azure/core-client";
13
- import * as Mappers from "../models/mappers";
14
- import * as Parameters from "../models/parameters";
15
- import { ManagementLockClient } from "../managementLockClient";
16
- import {
17
- ManagementLockObject,
18
- ManagementLocksListAtResourceGroupLevelNextOptionalParams,
19
- ManagementLocksListAtResourceGroupLevelOptionalParams,
20
- ManagementLocksListAtResourceGroupLevelResponse,
21
- ManagementLocksListAtResourceLevelNextOptionalParams,
22
- ManagementLocksListAtResourceLevelOptionalParams,
23
- ManagementLocksListAtResourceLevelResponse,
24
- ManagementLocksListAtSubscriptionLevelNextOptionalParams,
25
- ManagementLocksListAtSubscriptionLevelOptionalParams,
26
- ManagementLocksListAtSubscriptionLevelResponse,
27
- ManagementLocksListByScopeNextOptionalParams,
28
- ManagementLocksListByScopeOptionalParams,
29
- ManagementLocksListByScopeResponse,
30
- ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams,
31
- ManagementLocksCreateOrUpdateAtResourceGroupLevelResponse,
32
- ManagementLocksDeleteAtResourceGroupLevelOptionalParams,
33
- ManagementLocksGetAtResourceGroupLevelOptionalParams,
34
- ManagementLocksGetAtResourceGroupLevelResponse,
35
- ManagementLocksCreateOrUpdateByScopeOptionalParams,
36
- ManagementLocksCreateOrUpdateByScopeResponse,
37
- ManagementLocksDeleteByScopeOptionalParams,
38
- ManagementLocksGetByScopeOptionalParams,
39
- ManagementLocksGetByScopeResponse,
40
- ManagementLocksCreateOrUpdateAtResourceLevelOptionalParams,
41
- ManagementLocksCreateOrUpdateAtResourceLevelResponse,
42
- ManagementLocksDeleteAtResourceLevelOptionalParams,
43
- ManagementLocksGetAtResourceLevelOptionalParams,
44
- ManagementLocksGetAtResourceLevelResponse,
45
- ManagementLocksCreateOrUpdateAtSubscriptionLevelOptionalParams,
46
- ManagementLocksCreateOrUpdateAtSubscriptionLevelResponse,
47
- ManagementLocksDeleteAtSubscriptionLevelOptionalParams,
48
- ManagementLocksGetAtSubscriptionLevelOptionalParams,
49
- ManagementLocksGetAtSubscriptionLevelResponse,
50
- ManagementLocksListAtResourceGroupLevelNextResponse,
51
- ManagementLocksListAtResourceLevelNextResponse,
52
- ManagementLocksListAtSubscriptionLevelNextResponse,
53
- ManagementLocksListByScopeNextResponse
54
- } from "../models";
55
-
56
- /// <reference lib="esnext.asynciterable" />
57
- /** Class containing ManagementLocks operations. */
58
- export class ManagementLocksImpl implements ManagementLocks {
59
- private readonly client: ManagementLockClient;
60
-
61
- /**
62
- * Initialize a new instance of the class ManagementLocks class.
63
- * @param client Reference to the service client
64
- */
65
- constructor(client: ManagementLockClient) {
66
- this.client = client;
67
- }
68
-
69
- /**
70
- * Gets all the management locks for a resource group.
71
- * @param resourceGroupName The name of the resource group containing the locks to get.
72
- * @param options The options parameters.
73
- */
74
- public listAtResourceGroupLevel(
75
- resourceGroupName: string,
76
- options?: ManagementLocksListAtResourceGroupLevelOptionalParams
77
- ): PagedAsyncIterableIterator<ManagementLockObject> {
78
- const iter = this.listAtResourceGroupLevelPagingAll(
79
- resourceGroupName,
80
- options
81
- );
82
- return {
83
- next() {
84
- return iter.next();
85
- },
86
- [Symbol.asyncIterator]() {
87
- return this;
88
- },
89
- byPage: (settings?: PageSettings) => {
90
- if (settings?.maxPageSize) {
91
- throw new Error("maxPageSize is not supported by this operation.");
92
- }
93
- return this.listAtResourceGroupLevelPagingPage(
94
- resourceGroupName,
95
- options,
96
- settings
97
- );
98
- }
99
- };
100
- }
101
-
102
- private async *listAtResourceGroupLevelPagingPage(
103
- resourceGroupName: string,
104
- options?: ManagementLocksListAtResourceGroupLevelOptionalParams,
105
- settings?: PageSettings
106
- ): AsyncIterableIterator<ManagementLockObject[]> {
107
- let result: ManagementLocksListAtResourceGroupLevelResponse;
108
- let continuationToken = settings?.continuationToken;
109
- if (!continuationToken) {
110
- result = await this._listAtResourceGroupLevel(resourceGroupName, options);
111
- let page = result.value || [];
112
- continuationToken = result.nextLink;
113
- setContinuationToken(page, continuationToken);
114
- yield page;
115
- }
116
- while (continuationToken) {
117
- result = await this._listAtResourceGroupLevelNext(
118
- resourceGroupName,
119
- continuationToken,
120
- options
121
- );
122
- continuationToken = result.nextLink;
123
- let page = result.value || [];
124
- setContinuationToken(page, continuationToken);
125
- yield page;
126
- }
127
- }
128
-
129
- private async *listAtResourceGroupLevelPagingAll(
130
- resourceGroupName: string,
131
- options?: ManagementLocksListAtResourceGroupLevelOptionalParams
132
- ): AsyncIterableIterator<ManagementLockObject> {
133
- for await (const page of this.listAtResourceGroupLevelPagingPage(
134
- resourceGroupName,
135
- options
136
- )) {
137
- yield* page;
138
- }
139
- }
140
-
141
- /**
142
- * Gets all the management locks for a resource or any level below resource.
143
- * @param resourceGroupName The name of the resource group containing the locked resource. The name is
144
- * case insensitive.
145
- * @param resourceProviderNamespace The namespace of the resource provider.
146
- * @param parentResourcePath The parent resource identity.
147
- * @param resourceType The resource type of the locked resource.
148
- * @param resourceName The name of the locked resource.
149
- * @param options The options parameters.
150
- */
151
- public listAtResourceLevel(
152
- resourceGroupName: string,
153
- resourceProviderNamespace: string,
154
- parentResourcePath: string,
155
- resourceType: string,
156
- resourceName: string,
157
- options?: ManagementLocksListAtResourceLevelOptionalParams
158
- ): PagedAsyncIterableIterator<ManagementLockObject> {
159
- const iter = this.listAtResourceLevelPagingAll(
160
- resourceGroupName,
161
- resourceProviderNamespace,
162
- parentResourcePath,
163
- resourceType,
164
- resourceName,
165
- options
166
- );
167
- return {
168
- next() {
169
- return iter.next();
170
- },
171
- [Symbol.asyncIterator]() {
172
- return this;
173
- },
174
- byPage: (settings?: PageSettings) => {
175
- if (settings?.maxPageSize) {
176
- throw new Error("maxPageSize is not supported by this operation.");
177
- }
178
- return this.listAtResourceLevelPagingPage(
179
- resourceGroupName,
180
- resourceProviderNamespace,
181
- parentResourcePath,
182
- resourceType,
183
- resourceName,
184
- options,
185
- settings
186
- );
187
- }
188
- };
189
- }
190
-
191
- private async *listAtResourceLevelPagingPage(
192
- resourceGroupName: string,
193
- resourceProviderNamespace: string,
194
- parentResourcePath: string,
195
- resourceType: string,
196
- resourceName: string,
197
- options?: ManagementLocksListAtResourceLevelOptionalParams,
198
- settings?: PageSettings
199
- ): AsyncIterableIterator<ManagementLockObject[]> {
200
- let result: ManagementLocksListAtResourceLevelResponse;
201
- let continuationToken = settings?.continuationToken;
202
- if (!continuationToken) {
203
- result = await this._listAtResourceLevel(
204
- resourceGroupName,
205
- resourceProviderNamespace,
206
- parentResourcePath,
207
- resourceType,
208
- resourceName,
209
- options
210
- );
211
- let page = result.value || [];
212
- continuationToken = result.nextLink;
213
- setContinuationToken(page, continuationToken);
214
- yield page;
215
- }
216
- while (continuationToken) {
217
- result = await this._listAtResourceLevelNext(
218
- resourceGroupName,
219
- resourceProviderNamespace,
220
- parentResourcePath,
221
- resourceType,
222
- resourceName,
223
- continuationToken,
224
- options
225
- );
226
- continuationToken = result.nextLink;
227
- let page = result.value || [];
228
- setContinuationToken(page, continuationToken);
229
- yield page;
230
- }
231
- }
232
-
233
- private async *listAtResourceLevelPagingAll(
234
- resourceGroupName: string,
235
- resourceProviderNamespace: string,
236
- parentResourcePath: string,
237
- resourceType: string,
238
- resourceName: string,
239
- options?: ManagementLocksListAtResourceLevelOptionalParams
240
- ): AsyncIterableIterator<ManagementLockObject> {
241
- for await (const page of this.listAtResourceLevelPagingPage(
242
- resourceGroupName,
243
- resourceProviderNamespace,
244
- parentResourcePath,
245
- resourceType,
246
- resourceName,
247
- options
248
- )) {
249
- yield* page;
250
- }
251
- }
252
-
253
- /**
254
- * Gets all the management locks for a subscription.
255
- * @param options The options parameters.
256
- */
257
- public listAtSubscriptionLevel(
258
- options?: ManagementLocksListAtSubscriptionLevelOptionalParams
259
- ): PagedAsyncIterableIterator<ManagementLockObject> {
260
- const iter = this.listAtSubscriptionLevelPagingAll(options);
261
- return {
262
- next() {
263
- return iter.next();
264
- },
265
- [Symbol.asyncIterator]() {
266
- return this;
267
- },
268
- byPage: (settings?: PageSettings) => {
269
- if (settings?.maxPageSize) {
270
- throw new Error("maxPageSize is not supported by this operation.");
271
- }
272
- return this.listAtSubscriptionLevelPagingPage(options, settings);
273
- }
274
- };
275
- }
276
-
277
- private async *listAtSubscriptionLevelPagingPage(
278
- options?: ManagementLocksListAtSubscriptionLevelOptionalParams,
279
- settings?: PageSettings
280
- ): AsyncIterableIterator<ManagementLockObject[]> {
281
- let result: ManagementLocksListAtSubscriptionLevelResponse;
282
- let continuationToken = settings?.continuationToken;
283
- if (!continuationToken) {
284
- result = await this._listAtSubscriptionLevel(options);
285
- let page = result.value || [];
286
- continuationToken = result.nextLink;
287
- setContinuationToken(page, continuationToken);
288
- yield page;
289
- }
290
- while (continuationToken) {
291
- result = await this._listAtSubscriptionLevelNext(
292
- continuationToken,
293
- options
294
- );
295
- continuationToken = result.nextLink;
296
- let page = result.value || [];
297
- setContinuationToken(page, continuationToken);
298
- yield page;
299
- }
300
- }
301
-
302
- private async *listAtSubscriptionLevelPagingAll(
303
- options?: ManagementLocksListAtSubscriptionLevelOptionalParams
304
- ): AsyncIterableIterator<ManagementLockObject> {
305
- for await (const page of this.listAtSubscriptionLevelPagingPage(options)) {
306
- yield* page;
307
- }
308
- }
309
-
310
- /**
311
- * Gets all the management locks for a scope.
312
- * @param scope The scope for the lock. When providing a scope for the assignment, use
313
- * '/subscriptions/{subscriptionId}' for subscriptions,
314
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
315
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
316
- * for resources.
317
- * @param options The options parameters.
318
- */
319
- public listByScope(
320
- scope: string,
321
- options?: ManagementLocksListByScopeOptionalParams
322
- ): PagedAsyncIterableIterator<ManagementLockObject> {
323
- const iter = this.listByScopePagingAll(scope, options);
324
- return {
325
- next() {
326
- return iter.next();
327
- },
328
- [Symbol.asyncIterator]() {
329
- return this;
330
- },
331
- byPage: (settings?: PageSettings) => {
332
- if (settings?.maxPageSize) {
333
- throw new Error("maxPageSize is not supported by this operation.");
334
- }
335
- return this.listByScopePagingPage(scope, options, settings);
336
- }
337
- };
338
- }
339
-
340
- private async *listByScopePagingPage(
341
- scope: string,
342
- options?: ManagementLocksListByScopeOptionalParams,
343
- settings?: PageSettings
344
- ): AsyncIterableIterator<ManagementLockObject[]> {
345
- let result: ManagementLocksListByScopeResponse;
346
- let continuationToken = settings?.continuationToken;
347
- if (!continuationToken) {
348
- result = await this._listByScope(scope, options);
349
- let page = result.value || [];
350
- continuationToken = result.nextLink;
351
- setContinuationToken(page, continuationToken);
352
- yield page;
353
- }
354
- while (continuationToken) {
355
- result = await this._listByScopeNext(scope, continuationToken, options);
356
- continuationToken = result.nextLink;
357
- let page = result.value || [];
358
- setContinuationToken(page, continuationToken);
359
- yield page;
360
- }
361
- }
362
-
363
- private async *listByScopePagingAll(
364
- scope: string,
365
- options?: ManagementLocksListByScopeOptionalParams
366
- ): AsyncIterableIterator<ManagementLockObject> {
367
- for await (const page of this.listByScopePagingPage(scope, options)) {
368
- yield* page;
369
- }
370
- }
371
-
372
- /**
373
- * When you apply a lock at a parent scope, all child resources inherit the same lock. To create
374
- * management locks, you must have access to Microsoft.Authorization/* or
375
- * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
376
- * Administrator are granted those actions.
377
- * @param resourceGroupName The name of the resource group to lock.
378
- * @param lockName The lock name. The lock name can be a maximum of 260 characters. It cannot contain
379
- * <, > %, &, :, \, ?, /, or any control characters.
380
- * @param parameters The management lock parameters.
381
- * @param options The options parameters.
382
- */
383
- createOrUpdateAtResourceGroupLevel(
384
- resourceGroupName: string,
385
- lockName: string,
386
- parameters: ManagementLockObject,
387
- options?: ManagementLocksCreateOrUpdateAtResourceGroupLevelOptionalParams
388
- ): Promise<ManagementLocksCreateOrUpdateAtResourceGroupLevelResponse> {
389
- return this.client.sendOperationRequest(
390
- { resourceGroupName, lockName, parameters, options },
391
- createOrUpdateAtResourceGroupLevelOperationSpec
392
- );
393
- }
394
-
395
- /**
396
- * To delete management locks, you must have access to Microsoft.Authorization/* or
397
- * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
398
- * Administrator are granted those actions.
399
- * @param resourceGroupName The name of the resource group containing the lock.
400
- * @param lockName The name of lock to delete.
401
- * @param options The options parameters.
402
- */
403
- deleteAtResourceGroupLevel(
404
- resourceGroupName: string,
405
- lockName: string,
406
- options?: ManagementLocksDeleteAtResourceGroupLevelOptionalParams
407
- ): Promise<void> {
408
- return this.client.sendOperationRequest(
409
- { resourceGroupName, lockName, options },
410
- deleteAtResourceGroupLevelOperationSpec
411
- );
412
- }
413
-
414
- /**
415
- * Gets a management lock at the resource group level.
416
- * @param resourceGroupName The name of the locked resource group.
417
- * @param lockName The name of the lock to get.
418
- * @param options The options parameters.
419
- */
420
- getAtResourceGroupLevel(
421
- resourceGroupName: string,
422
- lockName: string,
423
- options?: ManagementLocksGetAtResourceGroupLevelOptionalParams
424
- ): Promise<ManagementLocksGetAtResourceGroupLevelResponse> {
425
- return this.client.sendOperationRequest(
426
- { resourceGroupName, lockName, options },
427
- getAtResourceGroupLevelOperationSpec
428
- );
429
- }
430
-
431
- /**
432
- * Create or update a management lock by scope.
433
- * @param scope The scope for the lock. When providing a scope for the assignment, use
434
- * '/subscriptions/{subscriptionId}' for subscriptions,
435
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
436
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
437
- * for resources.
438
- * @param lockName The name of lock.
439
- * @param parameters Create or update management lock parameters.
440
- * @param options The options parameters.
441
- */
442
- createOrUpdateByScope(
443
- scope: string,
444
- lockName: string,
445
- parameters: ManagementLockObject,
446
- options?: ManagementLocksCreateOrUpdateByScopeOptionalParams
447
- ): Promise<ManagementLocksCreateOrUpdateByScopeResponse> {
448
- return this.client.sendOperationRequest(
449
- { scope, lockName, parameters, options },
450
- createOrUpdateByScopeOperationSpec
451
- );
452
- }
453
-
454
- /**
455
- * Delete a management lock by scope.
456
- * @param scope The scope for the lock.
457
- * @param lockName The name of lock.
458
- * @param options The options parameters.
459
- */
460
- deleteByScope(
461
- scope: string,
462
- lockName: string,
463
- options?: ManagementLocksDeleteByScopeOptionalParams
464
- ): Promise<void> {
465
- return this.client.sendOperationRequest(
466
- { scope, lockName, options },
467
- deleteByScopeOperationSpec
468
- );
469
- }
470
-
471
- /**
472
- * Get a management lock by scope.
473
- * @param scope The scope for the lock.
474
- * @param lockName The name of lock.
475
- * @param options The options parameters.
476
- */
477
- getByScope(
478
- scope: string,
479
- lockName: string,
480
- options?: ManagementLocksGetByScopeOptionalParams
481
- ): Promise<ManagementLocksGetByScopeResponse> {
482
- return this.client.sendOperationRequest(
483
- { scope, lockName, options },
484
- getByScopeOperationSpec
485
- );
486
- }
487
-
488
- /**
489
- * When you apply a lock at a parent scope, all child resources inherit the same lock. To create
490
- * management locks, you must have access to Microsoft.Authorization/* or
491
- * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
492
- * Administrator are granted those actions.
493
- * @param resourceGroupName The name of the resource group containing the resource to lock.
494
- * @param resourceProviderNamespace The resource provider namespace of the resource to lock.
495
- * @param parentResourcePath The parent resource identity.
496
- * @param resourceType The resource type of the resource to lock.
497
- * @param resourceName The name of the resource to lock.
498
- * @param lockName The name of lock. The lock name can be a maximum of 260 characters. It cannot
499
- * contain <, > %, &, :, \, ?, /, or any control characters.
500
- * @param parameters Parameters for creating or updating a management lock.
501
- * @param options The options parameters.
502
- */
503
- createOrUpdateAtResourceLevel(
504
- resourceGroupName: string,
505
- resourceProviderNamespace: string,
506
- parentResourcePath: string,
507
- resourceType: string,
508
- resourceName: string,
509
- lockName: string,
510
- parameters: ManagementLockObject,
511
- options?: ManagementLocksCreateOrUpdateAtResourceLevelOptionalParams
512
- ): Promise<ManagementLocksCreateOrUpdateAtResourceLevelResponse> {
513
- return this.client.sendOperationRequest(
514
- {
515
- resourceGroupName,
516
- resourceProviderNamespace,
517
- parentResourcePath,
518
- resourceType,
519
- resourceName,
520
- lockName,
521
- parameters,
522
- options
523
- },
524
- createOrUpdateAtResourceLevelOperationSpec
525
- );
526
- }
527
-
528
- /**
529
- * To delete management locks, you must have access to Microsoft.Authorization/* or
530
- * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
531
- * Administrator are granted those actions.
532
- * @param resourceGroupName The name of the resource group containing the resource with the lock to
533
- * delete.
534
- * @param resourceProviderNamespace The resource provider namespace of the resource with the lock to
535
- * delete.
536
- * @param parentResourcePath The parent resource identity.
537
- * @param resourceType The resource type of the resource with the lock to delete.
538
- * @param resourceName The name of the resource with the lock to delete.
539
- * @param lockName The name of the lock to delete.
540
- * @param options The options parameters.
541
- */
542
- deleteAtResourceLevel(
543
- resourceGroupName: string,
544
- resourceProviderNamespace: string,
545
- parentResourcePath: string,
546
- resourceType: string,
547
- resourceName: string,
548
- lockName: string,
549
- options?: ManagementLocksDeleteAtResourceLevelOptionalParams
550
- ): Promise<void> {
551
- return this.client.sendOperationRequest(
552
- {
553
- resourceGroupName,
554
- resourceProviderNamespace,
555
- parentResourcePath,
556
- resourceType,
557
- resourceName,
558
- lockName,
559
- options
560
- },
561
- deleteAtResourceLevelOperationSpec
562
- );
563
- }
564
-
565
- /**
566
- * Get the management lock of a resource or any level below resource.
567
- * @param resourceGroupName The name of the resource group.
568
- * @param resourceProviderNamespace The namespace of the resource provider.
569
- * @param parentResourcePath An extra path parameter needed in some services, like SQL Databases.
570
- * @param resourceType The type of the resource.
571
- * @param resourceName The name of the resource.
572
- * @param lockName The name of lock.
573
- * @param options The options parameters.
574
- */
575
- getAtResourceLevel(
576
- resourceGroupName: string,
577
- resourceProviderNamespace: string,
578
- parentResourcePath: string,
579
- resourceType: string,
580
- resourceName: string,
581
- lockName: string,
582
- options?: ManagementLocksGetAtResourceLevelOptionalParams
583
- ): Promise<ManagementLocksGetAtResourceLevelResponse> {
584
- return this.client.sendOperationRequest(
585
- {
586
- resourceGroupName,
587
- resourceProviderNamespace,
588
- parentResourcePath,
589
- resourceType,
590
- resourceName,
591
- lockName,
592
- options
593
- },
594
- getAtResourceLevelOperationSpec
595
- );
596
- }
597
-
598
- /**
599
- * When you apply a lock at a parent scope, all child resources inherit the same lock. To create
600
- * management locks, you must have access to Microsoft.Authorization/* or
601
- * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
602
- * Administrator are granted those actions.
603
- * @param lockName The name of lock. The lock name can be a maximum of 260 characters. It cannot
604
- * contain <, > %, &, :, \, ?, /, or any control characters.
605
- * @param parameters The management lock parameters.
606
- * @param options The options parameters.
607
- */
608
- createOrUpdateAtSubscriptionLevel(
609
- lockName: string,
610
- parameters: ManagementLockObject,
611
- options?: ManagementLocksCreateOrUpdateAtSubscriptionLevelOptionalParams
612
- ): Promise<ManagementLocksCreateOrUpdateAtSubscriptionLevelResponse> {
613
- return this.client.sendOperationRequest(
614
- { lockName, parameters, options },
615
- createOrUpdateAtSubscriptionLevelOperationSpec
616
- );
617
- }
618
-
619
- /**
620
- * To delete management locks, you must have access to Microsoft.Authorization/* or
621
- * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
622
- * Administrator are granted those actions.
623
- * @param lockName The name of lock to delete.
624
- * @param options The options parameters.
625
- */
626
- deleteAtSubscriptionLevel(
627
- lockName: string,
628
- options?: ManagementLocksDeleteAtSubscriptionLevelOptionalParams
629
- ): Promise<void> {
630
- return this.client.sendOperationRequest(
631
- { lockName, options },
632
- deleteAtSubscriptionLevelOperationSpec
633
- );
634
- }
635
-
636
- /**
637
- * Gets a management lock at the subscription level.
638
- * @param lockName The name of the lock to get.
639
- * @param options The options parameters.
640
- */
641
- getAtSubscriptionLevel(
642
- lockName: string,
643
- options?: ManagementLocksGetAtSubscriptionLevelOptionalParams
644
- ): Promise<ManagementLocksGetAtSubscriptionLevelResponse> {
645
- return this.client.sendOperationRequest(
646
- { lockName, options },
647
- getAtSubscriptionLevelOperationSpec
648
- );
649
- }
650
-
651
- /**
652
- * Gets all the management locks for a resource group.
653
- * @param resourceGroupName The name of the resource group containing the locks to get.
654
- * @param options The options parameters.
655
- */
656
- private _listAtResourceGroupLevel(
657
- resourceGroupName: string,
658
- options?: ManagementLocksListAtResourceGroupLevelOptionalParams
659
- ): Promise<ManagementLocksListAtResourceGroupLevelResponse> {
660
- return this.client.sendOperationRequest(
661
- { resourceGroupName, options },
662
- listAtResourceGroupLevelOperationSpec
663
- );
664
- }
665
-
666
- /**
667
- * Gets all the management locks for a resource or any level below resource.
668
- * @param resourceGroupName The name of the resource group containing the locked resource. The name is
669
- * case insensitive.
670
- * @param resourceProviderNamespace The namespace of the resource provider.
671
- * @param parentResourcePath The parent resource identity.
672
- * @param resourceType The resource type of the locked resource.
673
- * @param resourceName The name of the locked resource.
674
- * @param options The options parameters.
675
- */
676
- private _listAtResourceLevel(
677
- resourceGroupName: string,
678
- resourceProviderNamespace: string,
679
- parentResourcePath: string,
680
- resourceType: string,
681
- resourceName: string,
682
- options?: ManagementLocksListAtResourceLevelOptionalParams
683
- ): Promise<ManagementLocksListAtResourceLevelResponse> {
684
- return this.client.sendOperationRequest(
685
- {
686
- resourceGroupName,
687
- resourceProviderNamespace,
688
- parentResourcePath,
689
- resourceType,
690
- resourceName,
691
- options
692
- },
693
- listAtResourceLevelOperationSpec
694
- );
695
- }
696
-
697
- /**
698
- * Gets all the management locks for a subscription.
699
- * @param options The options parameters.
700
- */
701
- private _listAtSubscriptionLevel(
702
- options?: ManagementLocksListAtSubscriptionLevelOptionalParams
703
- ): Promise<ManagementLocksListAtSubscriptionLevelResponse> {
704
- return this.client.sendOperationRequest(
705
- { options },
706
- listAtSubscriptionLevelOperationSpec
707
- );
708
- }
709
-
710
- /**
711
- * Gets all the management locks for a scope.
712
- * @param scope The scope for the lock. When providing a scope for the assignment, use
713
- * '/subscriptions/{subscriptionId}' for subscriptions,
714
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
715
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
716
- * for resources.
717
- * @param options The options parameters.
718
- */
719
- private _listByScope(
720
- scope: string,
721
- options?: ManagementLocksListByScopeOptionalParams
722
- ): Promise<ManagementLocksListByScopeResponse> {
723
- return this.client.sendOperationRequest(
724
- { scope, options },
725
- listByScopeOperationSpec
726
- );
727
- }
728
-
729
- /**
730
- * ListAtResourceGroupLevelNext
731
- * @param resourceGroupName The name of the resource group containing the locks to get.
732
- * @param nextLink The nextLink from the previous successful call to the ListAtResourceGroupLevel
733
- * method.
734
- * @param options The options parameters.
735
- */
736
- private _listAtResourceGroupLevelNext(
737
- resourceGroupName: string,
738
- nextLink: string,
739
- options?: ManagementLocksListAtResourceGroupLevelNextOptionalParams
740
- ): Promise<ManagementLocksListAtResourceGroupLevelNextResponse> {
741
- return this.client.sendOperationRequest(
742
- { resourceGroupName, nextLink, options },
743
- listAtResourceGroupLevelNextOperationSpec
744
- );
745
- }
746
-
747
- /**
748
- * ListAtResourceLevelNext
749
- * @param resourceGroupName The name of the resource group containing the locked resource. The name is
750
- * case insensitive.
751
- * @param resourceProviderNamespace The namespace of the resource provider.
752
- * @param parentResourcePath The parent resource identity.
753
- * @param resourceType The resource type of the locked resource.
754
- * @param resourceName The name of the locked resource.
755
- * @param nextLink The nextLink from the previous successful call to the ListAtResourceLevel method.
756
- * @param options The options parameters.
757
- */
758
- private _listAtResourceLevelNext(
759
- resourceGroupName: string,
760
- resourceProviderNamespace: string,
761
- parentResourcePath: string,
762
- resourceType: string,
763
- resourceName: string,
764
- nextLink: string,
765
- options?: ManagementLocksListAtResourceLevelNextOptionalParams
766
- ): Promise<ManagementLocksListAtResourceLevelNextResponse> {
767
- return this.client.sendOperationRequest(
768
- {
769
- resourceGroupName,
770
- resourceProviderNamespace,
771
- parentResourcePath,
772
- resourceType,
773
- resourceName,
774
- nextLink,
775
- options
776
- },
777
- listAtResourceLevelNextOperationSpec
778
- );
779
- }
780
-
781
- /**
782
- * ListAtSubscriptionLevelNext
783
- * @param nextLink The nextLink from the previous successful call to the ListAtSubscriptionLevel
784
- * method.
785
- * @param options The options parameters.
786
- */
787
- private _listAtSubscriptionLevelNext(
788
- nextLink: string,
789
- options?: ManagementLocksListAtSubscriptionLevelNextOptionalParams
790
- ): Promise<ManagementLocksListAtSubscriptionLevelNextResponse> {
791
- return this.client.sendOperationRequest(
792
- { nextLink, options },
793
- listAtSubscriptionLevelNextOperationSpec
794
- );
795
- }
796
-
797
- /**
798
- * ListByScopeNext
799
- * @param scope The scope for the lock. When providing a scope for the assignment, use
800
- * '/subscriptions/{subscriptionId}' for subscriptions,
801
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
802
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
803
- * for resources.
804
- * @param nextLink The nextLink from the previous successful call to the ListByScope method.
805
- * @param options The options parameters.
806
- */
807
- private _listByScopeNext(
808
- scope: string,
809
- nextLink: string,
810
- options?: ManagementLocksListByScopeNextOptionalParams
811
- ): Promise<ManagementLocksListByScopeNextResponse> {
812
- return this.client.sendOperationRequest(
813
- { scope, nextLink, options },
814
- listByScopeNextOperationSpec
815
- );
816
- }
817
- }
818
- // Operation Specifications
819
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
820
-
821
- const createOrUpdateAtResourceGroupLevelOperationSpec: coreClient.OperationSpec = {
822
- path:
823
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}",
824
- httpMethod: "PUT",
825
- responses: {
826
- 200: {
827
- bodyMapper: Mappers.ManagementLockObject
828
- },
829
- 201: {
830
- bodyMapper: Mappers.ManagementLockObject
831
- }
832
- },
833
- requestBody: Parameters.parameters,
834
- queryParameters: [Parameters.apiVersion],
835
- urlParameters: [
836
- Parameters.$host,
837
- Parameters.resourceGroupName,
838
- Parameters.lockName,
839
- Parameters.subscriptionId
840
- ],
841
- headerParameters: [Parameters.accept, Parameters.contentType],
842
- mediaType: "json",
843
- serializer
844
- };
845
- const deleteAtResourceGroupLevelOperationSpec: coreClient.OperationSpec = {
846
- path:
847
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}",
848
- httpMethod: "DELETE",
849
- responses: { 200: {}, 204: {} },
850
- queryParameters: [Parameters.apiVersion],
851
- urlParameters: [
852
- Parameters.$host,
853
- Parameters.resourceGroupName,
854
- Parameters.lockName,
855
- Parameters.subscriptionId
856
- ],
857
- serializer
858
- };
859
- const getAtResourceGroupLevelOperationSpec: coreClient.OperationSpec = {
860
- path:
861
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}",
862
- httpMethod: "GET",
863
- responses: {
864
- 200: {
865
- bodyMapper: Mappers.ManagementLockObject
866
- }
867
- },
868
- queryParameters: [Parameters.apiVersion],
869
- urlParameters: [
870
- Parameters.$host,
871
- Parameters.resourceGroupName,
872
- Parameters.lockName,
873
- Parameters.subscriptionId
874
- ],
875
- headerParameters: [Parameters.accept],
876
- serializer
877
- };
878
- const createOrUpdateByScopeOperationSpec: coreClient.OperationSpec = {
879
- path: "/{scope}/providers/Microsoft.Authorization/locks/{lockName}",
880
- httpMethod: "PUT",
881
- responses: {
882
- 200: {
883
- bodyMapper: Mappers.ManagementLockObject
884
- },
885
- 201: {
886
- bodyMapper: Mappers.ManagementLockObject
887
- }
888
- },
889
- requestBody: Parameters.parameters,
890
- queryParameters: [Parameters.apiVersion],
891
- urlParameters: [Parameters.$host, Parameters.lockName, Parameters.scope],
892
- headerParameters: [Parameters.accept, Parameters.contentType],
893
- mediaType: "json",
894
- serializer
895
- };
896
- const deleteByScopeOperationSpec: coreClient.OperationSpec = {
897
- path: "/{scope}/providers/Microsoft.Authorization/locks/{lockName}",
898
- httpMethod: "DELETE",
899
- responses: { 200: {}, 204: {} },
900
- queryParameters: [Parameters.apiVersion],
901
- urlParameters: [Parameters.$host, Parameters.lockName, Parameters.scope],
902
- serializer
903
- };
904
- const getByScopeOperationSpec: coreClient.OperationSpec = {
905
- path: "/{scope}/providers/Microsoft.Authorization/locks/{lockName}",
906
- httpMethod: "GET",
907
- responses: {
908
- 200: {
909
- bodyMapper: Mappers.ManagementLockObject
910
- }
911
- },
912
- queryParameters: [Parameters.apiVersion],
913
- urlParameters: [Parameters.$host, Parameters.lockName, Parameters.scope],
914
- headerParameters: [Parameters.accept],
915
- serializer
916
- };
917
- const createOrUpdateAtResourceLevelOperationSpec: coreClient.OperationSpec = {
918
- path:
919
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}",
920
- httpMethod: "PUT",
921
- responses: {
922
- 200: {
923
- bodyMapper: Mappers.ManagementLockObject
924
- },
925
- 201: {
926
- bodyMapper: Mappers.ManagementLockObject
927
- }
928
- },
929
- requestBody: Parameters.parameters,
930
- queryParameters: [Parameters.apiVersion],
931
- urlParameters: [
932
- Parameters.$host,
933
- Parameters.resourceGroupName,
934
- Parameters.lockName,
935
- Parameters.subscriptionId,
936
- Parameters.resourceProviderNamespace,
937
- Parameters.parentResourcePath,
938
- Parameters.resourceType,
939
- Parameters.resourceName
940
- ],
941
- headerParameters: [Parameters.accept, Parameters.contentType],
942
- mediaType: "json",
943
- serializer
944
- };
945
- const deleteAtResourceLevelOperationSpec: coreClient.OperationSpec = {
946
- path:
947
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}",
948
- httpMethod: "DELETE",
949
- responses: { 200: {}, 204: {} },
950
- queryParameters: [Parameters.apiVersion],
951
- urlParameters: [
952
- Parameters.$host,
953
- Parameters.resourceGroupName,
954
- Parameters.lockName,
955
- Parameters.subscriptionId,
956
- Parameters.resourceProviderNamespace,
957
- Parameters.parentResourcePath,
958
- Parameters.resourceType,
959
- Parameters.resourceName
960
- ],
961
- serializer
962
- };
963
- const getAtResourceLevelOperationSpec: coreClient.OperationSpec = {
964
- path:
965
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}",
966
- httpMethod: "GET",
967
- responses: {
968
- 200: {
969
- bodyMapper: Mappers.ManagementLockObject
970
- }
971
- },
972
- queryParameters: [Parameters.apiVersion],
973
- urlParameters: [
974
- Parameters.$host,
975
- Parameters.resourceGroupName,
976
- Parameters.lockName,
977
- Parameters.subscriptionId,
978
- Parameters.resourceProviderNamespace,
979
- Parameters.parentResourcePath,
980
- Parameters.resourceType,
981
- Parameters.resourceName
982
- ],
983
- headerParameters: [Parameters.accept],
984
- serializer
985
- };
986
- const createOrUpdateAtSubscriptionLevelOperationSpec: coreClient.OperationSpec = {
987
- path:
988
- "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}",
989
- httpMethod: "PUT",
990
- responses: {
991
- 200: {
992
- bodyMapper: Mappers.ManagementLockObject
993
- },
994
- 201: {
995
- bodyMapper: Mappers.ManagementLockObject
996
- }
997
- },
998
- requestBody: Parameters.parameters,
999
- queryParameters: [Parameters.apiVersion],
1000
- urlParameters: [
1001
- Parameters.$host,
1002
- Parameters.lockName,
1003
- Parameters.subscriptionId
1004
- ],
1005
- headerParameters: [Parameters.accept, Parameters.contentType],
1006
- mediaType: "json",
1007
- serializer
1008
- };
1009
- const deleteAtSubscriptionLevelOperationSpec: coreClient.OperationSpec = {
1010
- path:
1011
- "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}",
1012
- httpMethod: "DELETE",
1013
- responses: { 200: {}, 204: {} },
1014
- queryParameters: [Parameters.apiVersion],
1015
- urlParameters: [
1016
- Parameters.$host,
1017
- Parameters.lockName,
1018
- Parameters.subscriptionId
1019
- ],
1020
- serializer
1021
- };
1022
- const getAtSubscriptionLevelOperationSpec: coreClient.OperationSpec = {
1023
- path:
1024
- "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}",
1025
- httpMethod: "GET",
1026
- responses: {
1027
- 200: {
1028
- bodyMapper: Mappers.ManagementLockObject
1029
- }
1030
- },
1031
- queryParameters: [Parameters.apiVersion],
1032
- urlParameters: [
1033
- Parameters.$host,
1034
- Parameters.lockName,
1035
- Parameters.subscriptionId
1036
- ],
1037
- headerParameters: [Parameters.accept],
1038
- serializer
1039
- };
1040
- const listAtResourceGroupLevelOperationSpec: coreClient.OperationSpec = {
1041
- path:
1042
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks",
1043
- httpMethod: "GET",
1044
- responses: {
1045
- 200: {
1046
- bodyMapper: Mappers.ManagementLockListResult
1047
- }
1048
- },
1049
- queryParameters: [Parameters.apiVersion, Parameters.filter],
1050
- urlParameters: [
1051
- Parameters.$host,
1052
- Parameters.resourceGroupName,
1053
- Parameters.subscriptionId
1054
- ],
1055
- headerParameters: [Parameters.accept],
1056
- serializer
1057
- };
1058
- const listAtResourceLevelOperationSpec: coreClient.OperationSpec = {
1059
- path:
1060
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks",
1061
- httpMethod: "GET",
1062
- responses: {
1063
- 200: {
1064
- bodyMapper: Mappers.ManagementLockListResult
1065
- }
1066
- },
1067
- queryParameters: [Parameters.apiVersion, Parameters.filter],
1068
- urlParameters: [
1069
- Parameters.$host,
1070
- Parameters.resourceGroupName,
1071
- Parameters.subscriptionId,
1072
- Parameters.resourceProviderNamespace,
1073
- Parameters.parentResourcePath,
1074
- Parameters.resourceType,
1075
- Parameters.resourceName
1076
- ],
1077
- headerParameters: [Parameters.accept],
1078
- serializer
1079
- };
1080
- const listAtSubscriptionLevelOperationSpec: coreClient.OperationSpec = {
1081
- path:
1082
- "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks",
1083
- httpMethod: "GET",
1084
- responses: {
1085
- 200: {
1086
- bodyMapper: Mappers.ManagementLockListResult
1087
- }
1088
- },
1089
- queryParameters: [Parameters.apiVersion, Parameters.filter],
1090
- urlParameters: [Parameters.$host, Parameters.subscriptionId],
1091
- headerParameters: [Parameters.accept],
1092
- serializer
1093
- };
1094
- const listByScopeOperationSpec: coreClient.OperationSpec = {
1095
- path: "/{scope}/providers/Microsoft.Authorization/locks",
1096
- httpMethod: "GET",
1097
- responses: {
1098
- 200: {
1099
- bodyMapper: Mappers.ManagementLockListResult
1100
- }
1101
- },
1102
- queryParameters: [Parameters.apiVersion, Parameters.filter],
1103
- urlParameters: [Parameters.$host, Parameters.scope],
1104
- headerParameters: [Parameters.accept],
1105
- serializer
1106
- };
1107
- const listAtResourceGroupLevelNextOperationSpec: coreClient.OperationSpec = {
1108
- path: "{nextLink}",
1109
- httpMethod: "GET",
1110
- responses: {
1111
- 200: {
1112
- bodyMapper: Mappers.ManagementLockListResult
1113
- }
1114
- },
1115
- urlParameters: [
1116
- Parameters.$host,
1117
- Parameters.nextLink,
1118
- Parameters.resourceGroupName,
1119
- Parameters.subscriptionId
1120
- ],
1121
- headerParameters: [Parameters.accept],
1122
- serializer
1123
- };
1124
- const listAtResourceLevelNextOperationSpec: coreClient.OperationSpec = {
1125
- path: "{nextLink}",
1126
- httpMethod: "GET",
1127
- responses: {
1128
- 200: {
1129
- bodyMapper: Mappers.ManagementLockListResult
1130
- }
1131
- },
1132
- urlParameters: [
1133
- Parameters.$host,
1134
- Parameters.nextLink,
1135
- Parameters.resourceGroupName,
1136
- Parameters.subscriptionId,
1137
- Parameters.resourceProviderNamespace,
1138
- Parameters.parentResourcePath,
1139
- Parameters.resourceType,
1140
- Parameters.resourceName
1141
- ],
1142
- headerParameters: [Parameters.accept],
1143
- serializer
1144
- };
1145
- const listAtSubscriptionLevelNextOperationSpec: coreClient.OperationSpec = {
1146
- path: "{nextLink}",
1147
- httpMethod: "GET",
1148
- responses: {
1149
- 200: {
1150
- bodyMapper: Mappers.ManagementLockListResult
1151
- }
1152
- },
1153
- urlParameters: [
1154
- Parameters.$host,
1155
- Parameters.nextLink,
1156
- Parameters.subscriptionId
1157
- ],
1158
- headerParameters: [Parameters.accept],
1159
- serializer
1160
- };
1161
- const listByScopeNextOperationSpec: coreClient.OperationSpec = {
1162
- path: "{nextLink}",
1163
- httpMethod: "GET",
1164
- responses: {
1165
- 200: {
1166
- bodyMapper: Mappers.ManagementLockListResult
1167
- }
1168
- },
1169
- urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],
1170
- headerParameters: [Parameters.accept],
1171
- serializer
1172
- };