@azure/arm-locks-profile-2020-09-01-hybrid 2.1.1-alpha.20250210.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.
Files changed (305) 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/esm/operations/managementLocks.js +893 -0
  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 +0 -1536
  187. package/dist/index.js.map +0 -1
  188. package/dist/index.min.js +0 -1
  189. package/dist/index.min.js.map +0 -1
  190. package/dist-esm/samples-dev/authorizationOperationsListSample.d.ts +0 -2
  191. package/dist-esm/samples-dev/authorizationOperationsListSample.d.ts.map +0 -1
  192. package/dist-esm/samples-dev/authorizationOperationsListSample.js +0 -50
  193. package/dist-esm/samples-dev/authorizationOperationsListSample.js.map +0 -1
  194. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceGroupLevelSample.d.ts +0 -2
  195. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceGroupLevelSample.d.ts.map +0 -1
  196. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceGroupLevelSample.js +0 -30
  197. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceGroupLevelSample.js.map +0 -1
  198. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceLevelSample.d.ts +0 -2
  199. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceLevelSample.d.ts.map +0 -1
  200. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceLevelSample.js +0 -34
  201. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtResourceLevelSample.js.map +0 -1
  202. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtSubscriptionLevelSample.d.ts +0 -2
  203. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtSubscriptionLevelSample.d.ts.map +0 -1
  204. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtSubscriptionLevelSample.js +0 -29
  205. package/dist-esm/samples-dev/managementLocksCreateOrUpdateAtSubscriptionLevelSample.js.map +0 -1
  206. package/dist-esm/samples-dev/managementLocksCreateOrUpdateByScopeSample.d.ts +0 -2
  207. package/dist-esm/samples-dev/managementLocksCreateOrUpdateByScopeSample.d.ts.map +0 -1
  208. package/dist-esm/samples-dev/managementLocksCreateOrUpdateByScopeSample.js +0 -30
  209. package/dist-esm/samples-dev/managementLocksCreateOrUpdateByScopeSample.js.map +0 -1
  210. package/dist-esm/samples-dev/managementLocksDeleteAtResourceGroupLevelSample.d.ts +0 -2
  211. package/dist-esm/samples-dev/managementLocksDeleteAtResourceGroupLevelSample.d.ts.map +0 -1
  212. package/dist-esm/samples-dev/managementLocksDeleteAtResourceGroupLevelSample.js +0 -36
  213. package/dist-esm/samples-dev/managementLocksDeleteAtResourceGroupLevelSample.js.map +0 -1
  214. package/dist-esm/samples-dev/managementLocksDeleteAtResourceLevelSample.d.ts +0 -2
  215. package/dist-esm/samples-dev/managementLocksDeleteAtResourceLevelSample.d.ts.map +0 -1
  216. package/dist-esm/samples-dev/managementLocksDeleteAtResourceLevelSample.js +0 -40
  217. package/dist-esm/samples-dev/managementLocksDeleteAtResourceLevelSample.js.map +0 -1
  218. package/dist-esm/samples-dev/managementLocksDeleteAtSubscriptionLevelSample.d.ts +0 -2
  219. package/dist-esm/samples-dev/managementLocksDeleteAtSubscriptionLevelSample.d.ts.map +0 -1
  220. package/dist-esm/samples-dev/managementLocksDeleteAtSubscriptionLevelSample.js +0 -35
  221. package/dist-esm/samples-dev/managementLocksDeleteAtSubscriptionLevelSample.js.map +0 -1
  222. package/dist-esm/samples-dev/managementLocksDeleteByScopeSample.d.ts +0 -2
  223. package/dist-esm/samples-dev/managementLocksDeleteByScopeSample.d.ts.map +0 -1
  224. package/dist-esm/samples-dev/managementLocksDeleteByScopeSample.js +0 -36
  225. package/dist-esm/samples-dev/managementLocksDeleteByScopeSample.js.map +0 -1
  226. package/dist-esm/samples-dev/managementLocksGetAtResourceGroupLevelSample.d.ts +0 -2
  227. package/dist-esm/samples-dev/managementLocksGetAtResourceGroupLevelSample.d.ts.map +0 -1
  228. package/dist-esm/samples-dev/managementLocksGetAtResourceGroupLevelSample.js +0 -36
  229. package/dist-esm/samples-dev/managementLocksGetAtResourceGroupLevelSample.js.map +0 -1
  230. package/dist-esm/samples-dev/managementLocksGetAtResourceLevelSample.d.ts +0 -2
  231. package/dist-esm/samples-dev/managementLocksGetAtResourceLevelSample.d.ts.map +0 -1
  232. package/dist-esm/samples-dev/managementLocksGetAtResourceLevelSample.js +0 -40
  233. package/dist-esm/samples-dev/managementLocksGetAtResourceLevelSample.js.map +0 -1
  234. package/dist-esm/samples-dev/managementLocksGetAtSubscriptionLevelSample.d.ts +0 -2
  235. package/dist-esm/samples-dev/managementLocksGetAtSubscriptionLevelSample.d.ts.map +0 -1
  236. package/dist-esm/samples-dev/managementLocksGetAtSubscriptionLevelSample.js +0 -35
  237. package/dist-esm/samples-dev/managementLocksGetAtSubscriptionLevelSample.js.map +0 -1
  238. package/dist-esm/samples-dev/managementLocksGetByScopeSample.d.ts +0 -2
  239. package/dist-esm/samples-dev/managementLocksGetByScopeSample.d.ts.map +0 -1
  240. package/dist-esm/samples-dev/managementLocksGetByScopeSample.js +0 -36
  241. package/dist-esm/samples-dev/managementLocksGetByScopeSample.js.map +0 -1
  242. package/dist-esm/samples-dev/managementLocksListAtResourceGroupLevelSample.d.ts +0 -2
  243. package/dist-esm/samples-dev/managementLocksListAtResourceGroupLevelSample.d.ts.map +0 -1
  244. package/dist-esm/samples-dev/managementLocksListAtResourceGroupLevelSample.js +0 -51
  245. package/dist-esm/samples-dev/managementLocksListAtResourceGroupLevelSample.js.map +0 -1
  246. package/dist-esm/samples-dev/managementLocksListAtResourceLevelSample.d.ts +0 -2
  247. package/dist-esm/samples-dev/managementLocksListAtResourceLevelSample.d.ts.map +0 -1
  248. package/dist-esm/samples-dev/managementLocksListAtResourceLevelSample.js +0 -55
  249. package/dist-esm/samples-dev/managementLocksListAtResourceLevelSample.js.map +0 -1
  250. package/dist-esm/samples-dev/managementLocksListAtSubscriptionLevelSample.d.ts +0 -2
  251. package/dist-esm/samples-dev/managementLocksListAtSubscriptionLevelSample.d.ts.map +0 -1
  252. package/dist-esm/samples-dev/managementLocksListAtSubscriptionLevelSample.js +0 -50
  253. package/dist-esm/samples-dev/managementLocksListAtSubscriptionLevelSample.js.map +0 -1
  254. package/dist-esm/samples-dev/managementLocksListByScopeSample.d.ts +0 -2
  255. package/dist-esm/samples-dev/managementLocksListByScopeSample.d.ts.map +0 -1
  256. package/dist-esm/samples-dev/managementLocksListByScopeSample.js +0 -51
  257. package/dist-esm/samples-dev/managementLocksListByScopeSample.js.map +0 -1
  258. package/dist-esm/src/index.d.ts +0 -5
  259. package/dist-esm/src/index.js.map +0 -1
  260. package/dist-esm/src/managementLockClient.d.ts.map +0 -1
  261. package/dist-esm/src/managementLockClient.js.map +0 -1
  262. package/dist-esm/src/models/index.js.map +0 -1
  263. package/dist-esm/src/models/mappers.js.map +0 -1
  264. package/dist-esm/src/models/parameters.js.map +0 -1
  265. package/dist-esm/src/operations/authorizationOperations.d.ts.map +0 -1
  266. package/dist-esm/src/operations/authorizationOperations.js.map +0 -1
  267. package/dist-esm/src/operations/index.d.ts +0 -3
  268. package/dist-esm/src/operations/index.js.map +0 -1
  269. package/dist-esm/src/operations/managementLocks.d.ts.map +0 -1
  270. package/dist-esm/src/operations/managementLocks.js.map +0 -1
  271. package/dist-esm/src/operationsInterfaces/authorizationOperations.d.ts.map +0 -1
  272. package/dist-esm/src/operationsInterfaces/authorizationOperations.js.map +0 -1
  273. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
  274. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  275. package/dist-esm/src/operationsInterfaces/managementLocks.d.ts.map +0 -1
  276. package/dist-esm/src/operationsInterfaces/managementLocks.js.map +0 -1
  277. package/dist-esm/src/pagingHelper.js.map +0 -1
  278. package/dist-esm/test/sampleTest.d.ts +0 -2
  279. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  280. package/dist-esm/test/sampleTest.js +0 -42
  281. package/dist-esm/test/sampleTest.js.map +0 -1
  282. package/src/managementLockClient.ts +0 -145
  283. package/src/models/mappers.ts +0 -182
  284. package/src/models/parameters.ts +0 -184
  285. package/src/operations/authorizationOperations.ts +0 -143
  286. package/src/operations/managementLocks.ts +0 -1172
  287. package/src/operationsInterfaces/authorizationOperations.ts +0 -25
  288. package/src/operationsInterfaces/managementLocks.ts +0 -270
  289. package/src/pagingHelper.ts +0 -39
  290. package/tsconfig.json +0 -33
  291. package/types/arm-locks-profile-2020-09-01-hybrid.d.ts +0 -443
  292. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  293. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  294. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  295. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  296. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  297. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  298. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  299. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  300. /package/{dist-esm/src → dist/browser}/operationsInterfaces/authorizationOperations.js +0 -0
  301. /package/{dist-esm/src → dist/browser}/operationsInterfaces/managementLocks.js +0 -0
  302. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  303. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  304. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  305. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
package/dist/index.js DELETED
@@ -1,1536 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var tslib = require('tslib');
6
- var coreClient = require('@azure/core-client');
7
- var coreRestPipeline = require('@azure/core-rest-pipeline');
8
-
9
- function _interopNamespaceDefault(e) {
10
- var n = Object.create(null);
11
- if (e) {
12
- Object.keys(e).forEach(function (k) {
13
- if (k !== 'default') {
14
- var d = Object.getOwnPropertyDescriptor(e, k);
15
- Object.defineProperty(n, k, d.get ? d : {
16
- enumerable: true,
17
- get: function () { return e[k]; }
18
- });
19
- }
20
- });
21
- }
22
- n.default = e;
23
- return Object.freeze(n);
24
- }
25
-
26
- var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
27
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
28
-
29
- /*
30
- * Copyright (c) Microsoft Corporation.
31
- * Licensed under the MIT License.
32
- *
33
- * Code generated by Microsoft (R) AutoRest Code Generator.
34
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
35
- */
36
- const pageMap = new WeakMap();
37
- /**
38
- * Given the last `.value` produced by the `byPage` iterator,
39
- * returns a continuation token that can be used to begin paging from
40
- * that point later.
41
- * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
42
- * @returns The continuation token that can be passed into byPage() during future calls.
43
- */
44
- function getContinuationToken(page) {
45
- var _a;
46
- if (typeof page !== "object" || page === null) {
47
- return undefined;
48
- }
49
- return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
50
- }
51
- function setContinuationToken(page, continuationToken) {
52
- var _a;
53
- if (typeof page !== "object" || page === null || !continuationToken) {
54
- return;
55
- }
56
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
57
- pageInfo.continuationToken = continuationToken;
58
- pageMap.set(page, pageInfo);
59
- }
60
-
61
- /*
62
- * Copyright (c) Microsoft Corporation.
63
- * Licensed under the MIT License.
64
- *
65
- * Code generated by Microsoft (R) AutoRest Code Generator.
66
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
67
- */
68
- /** Known values of {@link LockLevel} that the service accepts. */
69
- exports.KnownLockLevel = void 0;
70
- (function (KnownLockLevel) {
71
- /** NotSpecified */
72
- KnownLockLevel["NotSpecified"] = "NotSpecified";
73
- /** CanNotDelete */
74
- KnownLockLevel["CanNotDelete"] = "CanNotDelete";
75
- /** ReadOnly */
76
- KnownLockLevel["ReadOnly"] = "ReadOnly";
77
- })(exports.KnownLockLevel || (exports.KnownLockLevel = {}));
78
-
79
- /*
80
- * Copyright (c) Microsoft Corporation.
81
- * Licensed under the MIT License.
82
- *
83
- * Code generated by Microsoft (R) AutoRest Code Generator.
84
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
85
- */
86
- const OperationListResult = {
87
- type: {
88
- name: "Composite",
89
- className: "OperationListResult",
90
- modelProperties: {
91
- value: {
92
- serializedName: "value",
93
- type: {
94
- name: "Sequence",
95
- element: {
96
- type: {
97
- name: "Composite",
98
- className: "Operation"
99
- }
100
- }
101
- }
102
- },
103
- nextLink: {
104
- serializedName: "nextLink",
105
- type: {
106
- name: "String"
107
- }
108
- }
109
- }
110
- }
111
- };
112
- const Operation = {
113
- type: {
114
- name: "Composite",
115
- className: "Operation",
116
- modelProperties: {
117
- name: {
118
- serializedName: "name",
119
- type: {
120
- name: "String"
121
- }
122
- },
123
- display: {
124
- serializedName: "display",
125
- type: {
126
- name: "Composite",
127
- className: "OperationDisplay"
128
- }
129
- }
130
- }
131
- }
132
- };
133
- const OperationDisplay = {
134
- type: {
135
- name: "Composite",
136
- className: "OperationDisplay",
137
- modelProperties: {
138
- provider: {
139
- serializedName: "provider",
140
- type: {
141
- name: "String"
142
- }
143
- },
144
- resource: {
145
- serializedName: "resource",
146
- type: {
147
- name: "String"
148
- }
149
- },
150
- operation: {
151
- serializedName: "operation",
152
- type: {
153
- name: "String"
154
- }
155
- }
156
- }
157
- }
158
- };
159
- const ManagementLockObject = {
160
- type: {
161
- name: "Composite",
162
- className: "ManagementLockObject",
163
- modelProperties: {
164
- id: {
165
- serializedName: "id",
166
- readOnly: true,
167
- type: {
168
- name: "String"
169
- }
170
- },
171
- type: {
172
- serializedName: "type",
173
- readOnly: true,
174
- type: {
175
- name: "String"
176
- }
177
- },
178
- name: {
179
- serializedName: "name",
180
- readOnly: true,
181
- type: {
182
- name: "String"
183
- }
184
- },
185
- level: {
186
- serializedName: "properties.level",
187
- required: true,
188
- type: {
189
- name: "String"
190
- }
191
- },
192
- notes: {
193
- serializedName: "properties.notes",
194
- type: {
195
- name: "String"
196
- }
197
- },
198
- owners: {
199
- serializedName: "properties.owners",
200
- type: {
201
- name: "Sequence",
202
- element: {
203
- type: {
204
- name: "Composite",
205
- className: "ManagementLockOwner"
206
- }
207
- }
208
- }
209
- }
210
- }
211
- }
212
- };
213
- const ManagementLockOwner = {
214
- type: {
215
- name: "Composite",
216
- className: "ManagementLockOwner",
217
- modelProperties: {
218
- applicationId: {
219
- serializedName: "applicationId",
220
- type: {
221
- name: "String"
222
- }
223
- }
224
- }
225
- }
226
- };
227
- const ManagementLockListResult = {
228
- type: {
229
- name: "Composite",
230
- className: "ManagementLockListResult",
231
- modelProperties: {
232
- value: {
233
- serializedName: "value",
234
- type: {
235
- name: "Sequence",
236
- element: {
237
- type: {
238
- name: "Composite",
239
- className: "ManagementLockObject"
240
- }
241
- }
242
- }
243
- },
244
- nextLink: {
245
- serializedName: "nextLink",
246
- type: {
247
- name: "String"
248
- }
249
- }
250
- }
251
- }
252
- };
253
-
254
- var Mappers = /*#__PURE__*/Object.freeze({
255
- __proto__: null,
256
- ManagementLockListResult: ManagementLockListResult,
257
- ManagementLockObject: ManagementLockObject,
258
- ManagementLockOwner: ManagementLockOwner,
259
- Operation: Operation,
260
- OperationDisplay: OperationDisplay,
261
- OperationListResult: OperationListResult
262
- });
263
-
264
- /*
265
- * Copyright (c) Microsoft Corporation.
266
- * Licensed under the MIT License.
267
- *
268
- * Code generated by Microsoft (R) AutoRest Code Generator.
269
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
270
- */
271
- const accept = {
272
- parameterPath: "accept",
273
- mapper: {
274
- defaultValue: "application/json",
275
- isConstant: true,
276
- serializedName: "Accept",
277
- type: {
278
- name: "String"
279
- }
280
- }
281
- };
282
- const $host = {
283
- parameterPath: "$host",
284
- mapper: {
285
- serializedName: "$host",
286
- required: true,
287
- type: {
288
- name: "String"
289
- }
290
- },
291
- skipEncoding: true
292
- };
293
- const apiVersion = {
294
- parameterPath: "apiVersion",
295
- mapper: {
296
- defaultValue: "2016-09-01",
297
- isConstant: true,
298
- serializedName: "api-version",
299
- type: {
300
- name: "String"
301
- }
302
- }
303
- };
304
- const nextLink = {
305
- parameterPath: "nextLink",
306
- mapper: {
307
- serializedName: "nextLink",
308
- required: true,
309
- type: {
310
- name: "String"
311
- }
312
- },
313
- skipEncoding: true
314
- };
315
- const contentType = {
316
- parameterPath: ["options", "contentType"],
317
- mapper: {
318
- defaultValue: "application/json",
319
- isConstant: true,
320
- serializedName: "Content-Type",
321
- type: {
322
- name: "String"
323
- }
324
- }
325
- };
326
- const parameters = {
327
- parameterPath: "parameters",
328
- mapper: ManagementLockObject
329
- };
330
- const resourceGroupName = {
331
- parameterPath: "resourceGroupName",
332
- mapper: {
333
- constraints: {
334
- Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
335
- MaxLength: 90,
336
- MinLength: 1
337
- },
338
- serializedName: "resourceGroupName",
339
- required: true,
340
- type: {
341
- name: "String"
342
- }
343
- }
344
- };
345
- const lockName = {
346
- parameterPath: "lockName",
347
- mapper: {
348
- serializedName: "lockName",
349
- required: true,
350
- type: {
351
- name: "String"
352
- }
353
- }
354
- };
355
- const subscriptionId = {
356
- parameterPath: "subscriptionId",
357
- mapper: {
358
- serializedName: "subscriptionId",
359
- required: true,
360
- type: {
361
- name: "String"
362
- }
363
- }
364
- };
365
- const scope = {
366
- parameterPath: "scope",
367
- mapper: {
368
- serializedName: "scope",
369
- required: true,
370
- type: {
371
- name: "String"
372
- }
373
- }
374
- };
375
- const resourceProviderNamespace = {
376
- parameterPath: "resourceProviderNamespace",
377
- mapper: {
378
- serializedName: "resourceProviderNamespace",
379
- required: true,
380
- type: {
381
- name: "String"
382
- }
383
- }
384
- };
385
- const parentResourcePath = {
386
- parameterPath: "parentResourcePath",
387
- mapper: {
388
- serializedName: "parentResourcePath",
389
- required: true,
390
- type: {
391
- name: "String"
392
- }
393
- },
394
- skipEncoding: true
395
- };
396
- const resourceType = {
397
- parameterPath: "resourceType",
398
- mapper: {
399
- serializedName: "resourceType",
400
- required: true,
401
- type: {
402
- name: "String"
403
- }
404
- },
405
- skipEncoding: true
406
- };
407
- const resourceName = {
408
- parameterPath: "resourceName",
409
- mapper: {
410
- serializedName: "resourceName",
411
- required: true,
412
- type: {
413
- name: "String"
414
- }
415
- }
416
- };
417
- const filter = {
418
- parameterPath: ["options", "filter"],
419
- mapper: {
420
- serializedName: "$filter",
421
- type: {
422
- name: "String"
423
- }
424
- }
425
- };
426
-
427
- /*
428
- * Copyright (c) Microsoft Corporation.
429
- * Licensed under the MIT License.
430
- *
431
- * Code generated by Microsoft (R) AutoRest Code Generator.
432
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
433
- */
434
- /// <reference lib="esnext.asynciterable" />
435
- /** Class containing AuthorizationOperations operations. */
436
- class AuthorizationOperationsImpl {
437
- /**
438
- * Initialize a new instance of the class AuthorizationOperations class.
439
- * @param client Reference to the service client
440
- */
441
- constructor(client) {
442
- this.client = client;
443
- }
444
- /**
445
- * Lists all of the available Microsoft.Authorization REST API operations.
446
- * @param options The options parameters.
447
- */
448
- list(options) {
449
- const iter = this.listPagingAll(options);
450
- return {
451
- next() {
452
- return iter.next();
453
- },
454
- [Symbol.asyncIterator]() {
455
- return this;
456
- },
457
- byPage: (settings) => {
458
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
459
- throw new Error("maxPageSize is not supported by this operation.");
460
- }
461
- return this.listPagingPage(options, settings);
462
- }
463
- };
464
- }
465
- listPagingPage(options, settings) {
466
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
467
- let result;
468
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
469
- if (!continuationToken) {
470
- result = yield tslib.__await(this._list(options));
471
- let page = result.value || [];
472
- continuationToken = result.nextLink;
473
- setContinuationToken(page, continuationToken);
474
- yield yield tslib.__await(page);
475
- }
476
- while (continuationToken) {
477
- result = yield tslib.__await(this._listNext(continuationToken, options));
478
- continuationToken = result.nextLink;
479
- let page = result.value || [];
480
- setContinuationToken(page, continuationToken);
481
- yield yield tslib.__await(page);
482
- }
483
- });
484
- }
485
- listPagingAll(options) {
486
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
487
- var _a, e_1, _b, _c;
488
- try {
489
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
490
- _c = _f.value;
491
- _d = false;
492
- const page = _c;
493
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
494
- }
495
- }
496
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
497
- finally {
498
- try {
499
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
500
- }
501
- finally { if (e_1) throw e_1.error; }
502
- }
503
- });
504
- }
505
- /**
506
- * Lists all of the available Microsoft.Authorization REST API operations.
507
- * @param options The options parameters.
508
- */
509
- _list(options) {
510
- return this.client.sendOperationRequest({ options }, listOperationSpec);
511
- }
512
- /**
513
- * ListNext
514
- * @param nextLink The nextLink from the previous successful call to the List method.
515
- * @param options The options parameters.
516
- */
517
- _listNext(nextLink, options) {
518
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
519
- }
520
- }
521
- // Operation Specifications
522
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
523
- const listOperationSpec = {
524
- path: "/providers/Microsoft.Authorization/operations",
525
- httpMethod: "GET",
526
- responses: {
527
- 200: {
528
- bodyMapper: OperationListResult
529
- }
530
- },
531
- queryParameters: [apiVersion],
532
- urlParameters: [$host],
533
- headerParameters: [accept],
534
- serializer: serializer$1
535
- };
536
- const listNextOperationSpec = {
537
- path: "{nextLink}",
538
- httpMethod: "GET",
539
- responses: {
540
- 200: {
541
- bodyMapper: OperationListResult
542
- }
543
- },
544
- urlParameters: [$host, nextLink],
545
- headerParameters: [accept],
546
- serializer: serializer$1
547
- };
548
-
549
- /*
550
- * Copyright (c) Microsoft Corporation.
551
- * Licensed under the MIT License.
552
- *
553
- * Code generated by Microsoft (R) AutoRest Code Generator.
554
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
555
- */
556
- /// <reference lib="esnext.asynciterable" />
557
- /** Class containing ManagementLocks operations. */
558
- class ManagementLocksImpl {
559
- /**
560
- * Initialize a new instance of the class ManagementLocks class.
561
- * @param client Reference to the service client
562
- */
563
- constructor(client) {
564
- this.client = client;
565
- }
566
- /**
567
- * Gets all the management locks for a resource group.
568
- * @param resourceGroupName The name of the resource group containing the locks to get.
569
- * @param options The options parameters.
570
- */
571
- listAtResourceGroupLevel(resourceGroupName, options) {
572
- const iter = this.listAtResourceGroupLevelPagingAll(resourceGroupName, options);
573
- return {
574
- next() {
575
- return iter.next();
576
- },
577
- [Symbol.asyncIterator]() {
578
- return this;
579
- },
580
- byPage: (settings) => {
581
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
582
- throw new Error("maxPageSize is not supported by this operation.");
583
- }
584
- return this.listAtResourceGroupLevelPagingPage(resourceGroupName, options, settings);
585
- }
586
- };
587
- }
588
- listAtResourceGroupLevelPagingPage(resourceGroupName, options, settings) {
589
- return tslib.__asyncGenerator(this, arguments, function* listAtResourceGroupLevelPagingPage_1() {
590
- let result;
591
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
592
- if (!continuationToken) {
593
- result = yield tslib.__await(this._listAtResourceGroupLevel(resourceGroupName, options));
594
- let page = result.value || [];
595
- continuationToken = result.nextLink;
596
- setContinuationToken(page, continuationToken);
597
- yield yield tslib.__await(page);
598
- }
599
- while (continuationToken) {
600
- result = yield tslib.__await(this._listAtResourceGroupLevelNext(resourceGroupName, continuationToken, options));
601
- continuationToken = result.nextLink;
602
- let page = result.value || [];
603
- setContinuationToken(page, continuationToken);
604
- yield yield tslib.__await(page);
605
- }
606
- });
607
- }
608
- listAtResourceGroupLevelPagingAll(resourceGroupName, options) {
609
- return tslib.__asyncGenerator(this, arguments, function* listAtResourceGroupLevelPagingAll_1() {
610
- var _a, e_1, _b, _c;
611
- try {
612
- for (var _d = true, _e = tslib.__asyncValues(this.listAtResourceGroupLevelPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
613
- _c = _f.value;
614
- _d = false;
615
- const page = _c;
616
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
617
- }
618
- }
619
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
620
- finally {
621
- try {
622
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
623
- }
624
- finally { if (e_1) throw e_1.error; }
625
- }
626
- });
627
- }
628
- /**
629
- * Gets all the management locks for a resource or any level below resource.
630
- * @param resourceGroupName The name of the resource group containing the locked resource. The name is
631
- * case insensitive.
632
- * @param resourceProviderNamespace The namespace of the resource provider.
633
- * @param parentResourcePath The parent resource identity.
634
- * @param resourceType The resource type of the locked resource.
635
- * @param resourceName The name of the locked resource.
636
- * @param options The options parameters.
637
- */
638
- listAtResourceLevel(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options) {
639
- const iter = this.listAtResourceLevelPagingAll(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options);
640
- return {
641
- next() {
642
- return iter.next();
643
- },
644
- [Symbol.asyncIterator]() {
645
- return this;
646
- },
647
- byPage: (settings) => {
648
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
649
- throw new Error("maxPageSize is not supported by this operation.");
650
- }
651
- return this.listAtResourceLevelPagingPage(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options, settings);
652
- }
653
- };
654
- }
655
- listAtResourceLevelPagingPage(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options, settings) {
656
- return tslib.__asyncGenerator(this, arguments, function* listAtResourceLevelPagingPage_1() {
657
- let result;
658
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
659
- if (!continuationToken) {
660
- result = yield tslib.__await(this._listAtResourceLevel(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options));
661
- let page = result.value || [];
662
- continuationToken = result.nextLink;
663
- setContinuationToken(page, continuationToken);
664
- yield yield tslib.__await(page);
665
- }
666
- while (continuationToken) {
667
- result = yield tslib.__await(this._listAtResourceLevelNext(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, continuationToken, options));
668
- continuationToken = result.nextLink;
669
- let page = result.value || [];
670
- setContinuationToken(page, continuationToken);
671
- yield yield tslib.__await(page);
672
- }
673
- });
674
- }
675
- listAtResourceLevelPagingAll(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options) {
676
- return tslib.__asyncGenerator(this, arguments, function* listAtResourceLevelPagingAll_1() {
677
- var _a, e_2, _b, _c;
678
- try {
679
- for (var _d = true, _e = tslib.__asyncValues(this.listAtResourceLevelPagingPage(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
680
- _c = _f.value;
681
- _d = false;
682
- const page = _c;
683
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
684
- }
685
- }
686
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
687
- finally {
688
- try {
689
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
690
- }
691
- finally { if (e_2) throw e_2.error; }
692
- }
693
- });
694
- }
695
- /**
696
- * Gets all the management locks for a subscription.
697
- * @param options The options parameters.
698
- */
699
- listAtSubscriptionLevel(options) {
700
- const iter = this.listAtSubscriptionLevelPagingAll(options);
701
- return {
702
- next() {
703
- return iter.next();
704
- },
705
- [Symbol.asyncIterator]() {
706
- return this;
707
- },
708
- byPage: (settings) => {
709
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
710
- throw new Error("maxPageSize is not supported by this operation.");
711
- }
712
- return this.listAtSubscriptionLevelPagingPage(options, settings);
713
- }
714
- };
715
- }
716
- listAtSubscriptionLevelPagingPage(options, settings) {
717
- return tslib.__asyncGenerator(this, arguments, function* listAtSubscriptionLevelPagingPage_1() {
718
- let result;
719
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
720
- if (!continuationToken) {
721
- result = yield tslib.__await(this._listAtSubscriptionLevel(options));
722
- let page = result.value || [];
723
- continuationToken = result.nextLink;
724
- setContinuationToken(page, continuationToken);
725
- yield yield tslib.__await(page);
726
- }
727
- while (continuationToken) {
728
- result = yield tslib.__await(this._listAtSubscriptionLevelNext(continuationToken, options));
729
- continuationToken = result.nextLink;
730
- let page = result.value || [];
731
- setContinuationToken(page, continuationToken);
732
- yield yield tslib.__await(page);
733
- }
734
- });
735
- }
736
- listAtSubscriptionLevelPagingAll(options) {
737
- return tslib.__asyncGenerator(this, arguments, function* listAtSubscriptionLevelPagingAll_1() {
738
- var _a, e_3, _b, _c;
739
- try {
740
- for (var _d = true, _e = tslib.__asyncValues(this.listAtSubscriptionLevelPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
741
- _c = _f.value;
742
- _d = false;
743
- const page = _c;
744
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
745
- }
746
- }
747
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
748
- finally {
749
- try {
750
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
751
- }
752
- finally { if (e_3) throw e_3.error; }
753
- }
754
- });
755
- }
756
- /**
757
- * Gets all the management locks for a scope.
758
- * @param scope The scope for the lock. When providing a scope for the assignment, use
759
- * '/subscriptions/{subscriptionId}' for subscriptions,
760
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
761
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
762
- * for resources.
763
- * @param options The options parameters.
764
- */
765
- listByScope(scope, options) {
766
- const iter = this.listByScopePagingAll(scope, options);
767
- return {
768
- next() {
769
- return iter.next();
770
- },
771
- [Symbol.asyncIterator]() {
772
- return this;
773
- },
774
- byPage: (settings) => {
775
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
776
- throw new Error("maxPageSize is not supported by this operation.");
777
- }
778
- return this.listByScopePagingPage(scope, options, settings);
779
- }
780
- };
781
- }
782
- listByScopePagingPage(scope, options, settings) {
783
- return tslib.__asyncGenerator(this, arguments, function* listByScopePagingPage_1() {
784
- let result;
785
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
786
- if (!continuationToken) {
787
- result = yield tslib.__await(this._listByScope(scope, options));
788
- let page = result.value || [];
789
- continuationToken = result.nextLink;
790
- setContinuationToken(page, continuationToken);
791
- yield yield tslib.__await(page);
792
- }
793
- while (continuationToken) {
794
- result = yield tslib.__await(this._listByScopeNext(scope, continuationToken, options));
795
- continuationToken = result.nextLink;
796
- let page = result.value || [];
797
- setContinuationToken(page, continuationToken);
798
- yield yield tslib.__await(page);
799
- }
800
- });
801
- }
802
- listByScopePagingAll(scope, options) {
803
- return tslib.__asyncGenerator(this, arguments, function* listByScopePagingAll_1() {
804
- var _a, e_4, _b, _c;
805
- try {
806
- for (var _d = true, _e = tslib.__asyncValues(this.listByScopePagingPage(scope, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
807
- _c = _f.value;
808
- _d = false;
809
- const page = _c;
810
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
811
- }
812
- }
813
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
814
- finally {
815
- try {
816
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
817
- }
818
- finally { if (e_4) throw e_4.error; }
819
- }
820
- });
821
- }
822
- /**
823
- * When you apply a lock at a parent scope, all child resources inherit the same lock. To create
824
- * management locks, you must have access to Microsoft.Authorization/* or
825
- * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
826
- * Administrator are granted those actions.
827
- * @param resourceGroupName The name of the resource group to lock.
828
- * @param lockName The lock name. The lock name can be a maximum of 260 characters. It cannot contain
829
- * <, > %, &, :, \, ?, /, or any control characters.
830
- * @param parameters The management lock parameters.
831
- * @param options The options parameters.
832
- */
833
- createOrUpdateAtResourceGroupLevel(resourceGroupName, lockName, parameters, options) {
834
- return this.client.sendOperationRequest({ resourceGroupName, lockName, parameters, options }, createOrUpdateAtResourceGroupLevelOperationSpec);
835
- }
836
- /**
837
- * To delete management locks, you must have access to Microsoft.Authorization/* or
838
- * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
839
- * Administrator are granted those actions.
840
- * @param resourceGroupName The name of the resource group containing the lock.
841
- * @param lockName The name of lock to delete.
842
- * @param options The options parameters.
843
- */
844
- deleteAtResourceGroupLevel(resourceGroupName, lockName, options) {
845
- return this.client.sendOperationRequest({ resourceGroupName, lockName, options }, deleteAtResourceGroupLevelOperationSpec);
846
- }
847
- /**
848
- * Gets a management lock at the resource group level.
849
- * @param resourceGroupName The name of the locked resource group.
850
- * @param lockName The name of the lock to get.
851
- * @param options The options parameters.
852
- */
853
- getAtResourceGroupLevel(resourceGroupName, lockName, options) {
854
- return this.client.sendOperationRequest({ resourceGroupName, lockName, options }, getAtResourceGroupLevelOperationSpec);
855
- }
856
- /**
857
- * Create or update a management lock by scope.
858
- * @param scope The scope for the lock. When providing a scope for the assignment, use
859
- * '/subscriptions/{subscriptionId}' for subscriptions,
860
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
861
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
862
- * for resources.
863
- * @param lockName The name of lock.
864
- * @param parameters Create or update management lock parameters.
865
- * @param options The options parameters.
866
- */
867
- createOrUpdateByScope(scope, lockName, parameters, options) {
868
- return this.client.sendOperationRequest({ scope, lockName, parameters, options }, createOrUpdateByScopeOperationSpec);
869
- }
870
- /**
871
- * Delete a management lock by scope.
872
- * @param scope The scope for the lock.
873
- * @param lockName The name of lock.
874
- * @param options The options parameters.
875
- */
876
- deleteByScope(scope, lockName, options) {
877
- return this.client.sendOperationRequest({ scope, lockName, options }, deleteByScopeOperationSpec);
878
- }
879
- /**
880
- * Get a management lock by scope.
881
- * @param scope The scope for the lock.
882
- * @param lockName The name of lock.
883
- * @param options The options parameters.
884
- */
885
- getByScope(scope, lockName, options) {
886
- return this.client.sendOperationRequest({ scope, lockName, options }, getByScopeOperationSpec);
887
- }
888
- /**
889
- * When you apply a lock at a parent scope, all child resources inherit the same lock. To create
890
- * management locks, you must have access to Microsoft.Authorization/* or
891
- * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
892
- * Administrator are granted those actions.
893
- * @param resourceGroupName The name of the resource group containing the resource to lock.
894
- * @param resourceProviderNamespace The resource provider namespace of the resource to lock.
895
- * @param parentResourcePath The parent resource identity.
896
- * @param resourceType The resource type of the resource to lock.
897
- * @param resourceName The name of the resource to lock.
898
- * @param lockName The name of lock. The lock name can be a maximum of 260 characters. It cannot
899
- * contain <, > %, &, :, \, ?, /, or any control characters.
900
- * @param parameters Parameters for creating or updating a management lock.
901
- * @param options The options parameters.
902
- */
903
- createOrUpdateAtResourceLevel(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, lockName, parameters, options) {
904
- return this.client.sendOperationRequest({
905
- resourceGroupName,
906
- resourceProviderNamespace,
907
- parentResourcePath,
908
- resourceType,
909
- resourceName,
910
- lockName,
911
- parameters,
912
- options
913
- }, createOrUpdateAtResourceLevelOperationSpec);
914
- }
915
- /**
916
- * To delete management locks, you must have access to Microsoft.Authorization/* or
917
- * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
918
- * Administrator are granted those actions.
919
- * @param resourceGroupName The name of the resource group containing the resource with the lock to
920
- * delete.
921
- * @param resourceProviderNamespace The resource provider namespace of the resource with the lock to
922
- * delete.
923
- * @param parentResourcePath The parent resource identity.
924
- * @param resourceType The resource type of the resource with the lock to delete.
925
- * @param resourceName The name of the resource with the lock to delete.
926
- * @param lockName The name of the lock to delete.
927
- * @param options The options parameters.
928
- */
929
- deleteAtResourceLevel(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, lockName, options) {
930
- return this.client.sendOperationRequest({
931
- resourceGroupName,
932
- resourceProviderNamespace,
933
- parentResourcePath,
934
- resourceType,
935
- resourceName,
936
- lockName,
937
- options
938
- }, deleteAtResourceLevelOperationSpec);
939
- }
940
- /**
941
- * Get the management lock of a resource or any level below resource.
942
- * @param resourceGroupName The name of the resource group.
943
- * @param resourceProviderNamespace The namespace of the resource provider.
944
- * @param parentResourcePath An extra path parameter needed in some services, like SQL Databases.
945
- * @param resourceType The type of the resource.
946
- * @param resourceName The name of the resource.
947
- * @param lockName The name of lock.
948
- * @param options The options parameters.
949
- */
950
- getAtResourceLevel(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, lockName, options) {
951
- return this.client.sendOperationRequest({
952
- resourceGroupName,
953
- resourceProviderNamespace,
954
- parentResourcePath,
955
- resourceType,
956
- resourceName,
957
- lockName,
958
- options
959
- }, getAtResourceLevelOperationSpec);
960
- }
961
- /**
962
- * When you apply a lock at a parent scope, all child resources inherit the same lock. To create
963
- * management locks, you must have access to Microsoft.Authorization/* or
964
- * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
965
- * Administrator are granted those actions.
966
- * @param lockName The name of lock. The lock name can be a maximum of 260 characters. It cannot
967
- * contain <, > %, &, :, \, ?, /, or any control characters.
968
- * @param parameters The management lock parameters.
969
- * @param options The options parameters.
970
- */
971
- createOrUpdateAtSubscriptionLevel(lockName, parameters, options) {
972
- return this.client.sendOperationRequest({ lockName, parameters, options }, createOrUpdateAtSubscriptionLevelOperationSpec);
973
- }
974
- /**
975
- * To delete management locks, you must have access to Microsoft.Authorization/* or
976
- * Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access
977
- * Administrator are granted those actions.
978
- * @param lockName The name of lock to delete.
979
- * @param options The options parameters.
980
- */
981
- deleteAtSubscriptionLevel(lockName, options) {
982
- return this.client.sendOperationRequest({ lockName, options }, deleteAtSubscriptionLevelOperationSpec);
983
- }
984
- /**
985
- * Gets a management lock at the subscription level.
986
- * @param lockName The name of the lock to get.
987
- * @param options The options parameters.
988
- */
989
- getAtSubscriptionLevel(lockName, options) {
990
- return this.client.sendOperationRequest({ lockName, options }, getAtSubscriptionLevelOperationSpec);
991
- }
992
- /**
993
- * Gets all the management locks for a resource group.
994
- * @param resourceGroupName The name of the resource group containing the locks to get.
995
- * @param options The options parameters.
996
- */
997
- _listAtResourceGroupLevel(resourceGroupName, options) {
998
- return this.client.sendOperationRequest({ resourceGroupName, options }, listAtResourceGroupLevelOperationSpec);
999
- }
1000
- /**
1001
- * Gets all the management locks for a resource or any level below resource.
1002
- * @param resourceGroupName The name of the resource group containing the locked resource. The name is
1003
- * case insensitive.
1004
- * @param resourceProviderNamespace The namespace of the resource provider.
1005
- * @param parentResourcePath The parent resource identity.
1006
- * @param resourceType The resource type of the locked resource.
1007
- * @param resourceName The name of the locked resource.
1008
- * @param options The options parameters.
1009
- */
1010
- _listAtResourceLevel(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options) {
1011
- return this.client.sendOperationRequest({
1012
- resourceGroupName,
1013
- resourceProviderNamespace,
1014
- parentResourcePath,
1015
- resourceType,
1016
- resourceName,
1017
- options
1018
- }, listAtResourceLevelOperationSpec);
1019
- }
1020
- /**
1021
- * Gets all the management locks for a subscription.
1022
- * @param options The options parameters.
1023
- */
1024
- _listAtSubscriptionLevel(options) {
1025
- return this.client.sendOperationRequest({ options }, listAtSubscriptionLevelOperationSpec);
1026
- }
1027
- /**
1028
- * Gets all the management locks for a scope.
1029
- * @param scope The scope for the lock. When providing a scope for the assignment, use
1030
- * '/subscriptions/{subscriptionId}' for subscriptions,
1031
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
1032
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
1033
- * for resources.
1034
- * @param options The options parameters.
1035
- */
1036
- _listByScope(scope, options) {
1037
- return this.client.sendOperationRequest({ scope, options }, listByScopeOperationSpec);
1038
- }
1039
- /**
1040
- * ListAtResourceGroupLevelNext
1041
- * @param resourceGroupName The name of the resource group containing the locks to get.
1042
- * @param nextLink The nextLink from the previous successful call to the ListAtResourceGroupLevel
1043
- * method.
1044
- * @param options The options parameters.
1045
- */
1046
- _listAtResourceGroupLevelNext(resourceGroupName, nextLink, options) {
1047
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listAtResourceGroupLevelNextOperationSpec);
1048
- }
1049
- /**
1050
- * ListAtResourceLevelNext
1051
- * @param resourceGroupName The name of the resource group containing the locked resource. The name is
1052
- * case insensitive.
1053
- * @param resourceProviderNamespace The namespace of the resource provider.
1054
- * @param parentResourcePath The parent resource identity.
1055
- * @param resourceType The resource type of the locked resource.
1056
- * @param resourceName The name of the locked resource.
1057
- * @param nextLink The nextLink from the previous successful call to the ListAtResourceLevel method.
1058
- * @param options The options parameters.
1059
- */
1060
- _listAtResourceLevelNext(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, nextLink, options) {
1061
- return this.client.sendOperationRequest({
1062
- resourceGroupName,
1063
- resourceProviderNamespace,
1064
- parentResourcePath,
1065
- resourceType,
1066
- resourceName,
1067
- nextLink,
1068
- options
1069
- }, listAtResourceLevelNextOperationSpec);
1070
- }
1071
- /**
1072
- * ListAtSubscriptionLevelNext
1073
- * @param nextLink The nextLink from the previous successful call to the ListAtSubscriptionLevel
1074
- * method.
1075
- * @param options The options parameters.
1076
- */
1077
- _listAtSubscriptionLevelNext(nextLink, options) {
1078
- return this.client.sendOperationRequest({ nextLink, options }, listAtSubscriptionLevelNextOperationSpec);
1079
- }
1080
- /**
1081
- * ListByScopeNext
1082
- * @param scope The scope for the lock. When providing a scope for the assignment, use
1083
- * '/subscriptions/{subscriptionId}' for subscriptions,
1084
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and
1085
- * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}'
1086
- * for resources.
1087
- * @param nextLink The nextLink from the previous successful call to the ListByScope method.
1088
- * @param options The options parameters.
1089
- */
1090
- _listByScopeNext(scope, nextLink, options) {
1091
- return this.client.sendOperationRequest({ scope, nextLink, options }, listByScopeNextOperationSpec);
1092
- }
1093
- }
1094
- // Operation Specifications
1095
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1096
- const createOrUpdateAtResourceGroupLevelOperationSpec = {
1097
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}",
1098
- httpMethod: "PUT",
1099
- responses: {
1100
- 200: {
1101
- bodyMapper: ManagementLockObject
1102
- },
1103
- 201: {
1104
- bodyMapper: ManagementLockObject
1105
- }
1106
- },
1107
- requestBody: parameters,
1108
- queryParameters: [apiVersion],
1109
- urlParameters: [
1110
- $host,
1111
- resourceGroupName,
1112
- lockName,
1113
- subscriptionId
1114
- ],
1115
- headerParameters: [accept, contentType],
1116
- mediaType: "json",
1117
- serializer
1118
- };
1119
- const deleteAtResourceGroupLevelOperationSpec = {
1120
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}",
1121
- httpMethod: "DELETE",
1122
- responses: { 200: {}, 204: {} },
1123
- queryParameters: [apiVersion],
1124
- urlParameters: [
1125
- $host,
1126
- resourceGroupName,
1127
- lockName,
1128
- subscriptionId
1129
- ],
1130
- serializer
1131
- };
1132
- const getAtResourceGroupLevelOperationSpec = {
1133
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}",
1134
- httpMethod: "GET",
1135
- responses: {
1136
- 200: {
1137
- bodyMapper: ManagementLockObject
1138
- }
1139
- },
1140
- queryParameters: [apiVersion],
1141
- urlParameters: [
1142
- $host,
1143
- resourceGroupName,
1144
- lockName,
1145
- subscriptionId
1146
- ],
1147
- headerParameters: [accept],
1148
- serializer
1149
- };
1150
- const createOrUpdateByScopeOperationSpec = {
1151
- path: "/{scope}/providers/Microsoft.Authorization/locks/{lockName}",
1152
- httpMethod: "PUT",
1153
- responses: {
1154
- 200: {
1155
- bodyMapper: ManagementLockObject
1156
- },
1157
- 201: {
1158
- bodyMapper: ManagementLockObject
1159
- }
1160
- },
1161
- requestBody: parameters,
1162
- queryParameters: [apiVersion],
1163
- urlParameters: [$host, lockName, scope],
1164
- headerParameters: [accept, contentType],
1165
- mediaType: "json",
1166
- serializer
1167
- };
1168
- const deleteByScopeOperationSpec = {
1169
- path: "/{scope}/providers/Microsoft.Authorization/locks/{lockName}",
1170
- httpMethod: "DELETE",
1171
- responses: { 200: {}, 204: {} },
1172
- queryParameters: [apiVersion],
1173
- urlParameters: [$host, lockName, scope],
1174
- serializer
1175
- };
1176
- const getByScopeOperationSpec = {
1177
- path: "/{scope}/providers/Microsoft.Authorization/locks/{lockName}",
1178
- httpMethod: "GET",
1179
- responses: {
1180
- 200: {
1181
- bodyMapper: ManagementLockObject
1182
- }
1183
- },
1184
- queryParameters: [apiVersion],
1185
- urlParameters: [$host, lockName, scope],
1186
- headerParameters: [accept],
1187
- serializer
1188
- };
1189
- const createOrUpdateAtResourceLevelOperationSpec = {
1190
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}",
1191
- httpMethod: "PUT",
1192
- responses: {
1193
- 200: {
1194
- bodyMapper: ManagementLockObject
1195
- },
1196
- 201: {
1197
- bodyMapper: ManagementLockObject
1198
- }
1199
- },
1200
- requestBody: parameters,
1201
- queryParameters: [apiVersion],
1202
- urlParameters: [
1203
- $host,
1204
- resourceGroupName,
1205
- lockName,
1206
- subscriptionId,
1207
- resourceProviderNamespace,
1208
- parentResourcePath,
1209
- resourceType,
1210
- resourceName
1211
- ],
1212
- headerParameters: [accept, contentType],
1213
- mediaType: "json",
1214
- serializer
1215
- };
1216
- const deleteAtResourceLevelOperationSpec = {
1217
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}",
1218
- httpMethod: "DELETE",
1219
- responses: { 200: {}, 204: {} },
1220
- queryParameters: [apiVersion],
1221
- urlParameters: [
1222
- $host,
1223
- resourceGroupName,
1224
- lockName,
1225
- subscriptionId,
1226
- resourceProviderNamespace,
1227
- parentResourcePath,
1228
- resourceType,
1229
- resourceName
1230
- ],
1231
- serializer
1232
- };
1233
- const getAtResourceLevelOperationSpec = {
1234
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}",
1235
- httpMethod: "GET",
1236
- responses: {
1237
- 200: {
1238
- bodyMapper: ManagementLockObject
1239
- }
1240
- },
1241
- queryParameters: [apiVersion],
1242
- urlParameters: [
1243
- $host,
1244
- resourceGroupName,
1245
- lockName,
1246
- subscriptionId,
1247
- resourceProviderNamespace,
1248
- parentResourcePath,
1249
- resourceType,
1250
- resourceName
1251
- ],
1252
- headerParameters: [accept],
1253
- serializer
1254
- };
1255
- const createOrUpdateAtSubscriptionLevelOperationSpec = {
1256
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}",
1257
- httpMethod: "PUT",
1258
- responses: {
1259
- 200: {
1260
- bodyMapper: ManagementLockObject
1261
- },
1262
- 201: {
1263
- bodyMapper: ManagementLockObject
1264
- }
1265
- },
1266
- requestBody: parameters,
1267
- queryParameters: [apiVersion],
1268
- urlParameters: [
1269
- $host,
1270
- lockName,
1271
- subscriptionId
1272
- ],
1273
- headerParameters: [accept, contentType],
1274
- mediaType: "json",
1275
- serializer
1276
- };
1277
- const deleteAtSubscriptionLevelOperationSpec = {
1278
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}",
1279
- httpMethod: "DELETE",
1280
- responses: { 200: {}, 204: {} },
1281
- queryParameters: [apiVersion],
1282
- urlParameters: [
1283
- $host,
1284
- lockName,
1285
- subscriptionId
1286
- ],
1287
- serializer
1288
- };
1289
- const getAtSubscriptionLevelOperationSpec = {
1290
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}",
1291
- httpMethod: "GET",
1292
- responses: {
1293
- 200: {
1294
- bodyMapper: ManagementLockObject
1295
- }
1296
- },
1297
- queryParameters: [apiVersion],
1298
- urlParameters: [
1299
- $host,
1300
- lockName,
1301
- subscriptionId
1302
- ],
1303
- headerParameters: [accept],
1304
- serializer
1305
- };
1306
- const listAtResourceGroupLevelOperationSpec = {
1307
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks",
1308
- httpMethod: "GET",
1309
- responses: {
1310
- 200: {
1311
- bodyMapper: ManagementLockListResult
1312
- }
1313
- },
1314
- queryParameters: [apiVersion, filter],
1315
- urlParameters: [
1316
- $host,
1317
- resourceGroupName,
1318
- subscriptionId
1319
- ],
1320
- headerParameters: [accept],
1321
- serializer
1322
- };
1323
- const listAtResourceLevelOperationSpec = {
1324
- path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks",
1325
- httpMethod: "GET",
1326
- responses: {
1327
- 200: {
1328
- bodyMapper: ManagementLockListResult
1329
- }
1330
- },
1331
- queryParameters: [apiVersion, filter],
1332
- urlParameters: [
1333
- $host,
1334
- resourceGroupName,
1335
- subscriptionId,
1336
- resourceProviderNamespace,
1337
- parentResourcePath,
1338
- resourceType,
1339
- resourceName
1340
- ],
1341
- headerParameters: [accept],
1342
- serializer
1343
- };
1344
- const listAtSubscriptionLevelOperationSpec = {
1345
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks",
1346
- httpMethod: "GET",
1347
- responses: {
1348
- 200: {
1349
- bodyMapper: ManagementLockListResult
1350
- }
1351
- },
1352
- queryParameters: [apiVersion, filter],
1353
- urlParameters: [$host, subscriptionId],
1354
- headerParameters: [accept],
1355
- serializer
1356
- };
1357
- const listByScopeOperationSpec = {
1358
- path: "/{scope}/providers/Microsoft.Authorization/locks",
1359
- httpMethod: "GET",
1360
- responses: {
1361
- 200: {
1362
- bodyMapper: ManagementLockListResult
1363
- }
1364
- },
1365
- queryParameters: [apiVersion, filter],
1366
- urlParameters: [$host, scope],
1367
- headerParameters: [accept],
1368
- serializer
1369
- };
1370
- const listAtResourceGroupLevelNextOperationSpec = {
1371
- path: "{nextLink}",
1372
- httpMethod: "GET",
1373
- responses: {
1374
- 200: {
1375
- bodyMapper: ManagementLockListResult
1376
- }
1377
- },
1378
- urlParameters: [
1379
- $host,
1380
- nextLink,
1381
- resourceGroupName,
1382
- subscriptionId
1383
- ],
1384
- headerParameters: [accept],
1385
- serializer
1386
- };
1387
- const listAtResourceLevelNextOperationSpec = {
1388
- path: "{nextLink}",
1389
- httpMethod: "GET",
1390
- responses: {
1391
- 200: {
1392
- bodyMapper: ManagementLockListResult
1393
- }
1394
- },
1395
- urlParameters: [
1396
- $host,
1397
- nextLink,
1398
- resourceGroupName,
1399
- subscriptionId,
1400
- resourceProviderNamespace,
1401
- parentResourcePath,
1402
- resourceType,
1403
- resourceName
1404
- ],
1405
- headerParameters: [accept],
1406
- serializer
1407
- };
1408
- const listAtSubscriptionLevelNextOperationSpec = {
1409
- path: "{nextLink}",
1410
- httpMethod: "GET",
1411
- responses: {
1412
- 200: {
1413
- bodyMapper: ManagementLockListResult
1414
- }
1415
- },
1416
- urlParameters: [
1417
- $host,
1418
- nextLink,
1419
- subscriptionId
1420
- ],
1421
- headerParameters: [accept],
1422
- serializer
1423
- };
1424
- const listByScopeNextOperationSpec = {
1425
- path: "{nextLink}",
1426
- httpMethod: "GET",
1427
- responses: {
1428
- 200: {
1429
- bodyMapper: ManagementLockListResult
1430
- }
1431
- },
1432
- urlParameters: [$host, nextLink, scope],
1433
- headerParameters: [accept],
1434
- serializer
1435
- };
1436
-
1437
- /*
1438
- * Copyright (c) Microsoft Corporation.
1439
- * Licensed under the MIT License.
1440
- *
1441
- * Code generated by Microsoft (R) AutoRest Code Generator.
1442
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1443
- */
1444
- class ManagementLockClient extends coreClient__namespace.ServiceClient {
1445
- /**
1446
- * Initializes a new instance of the ManagementLockClient class.
1447
- * @param credentials Subscription credentials which uniquely identify client subscription.
1448
- * @param subscriptionId The ID of the target subscription.
1449
- * @param options The parameter options
1450
- */
1451
- constructor(credentials, subscriptionId, options) {
1452
- var _a, _b, _c;
1453
- if (credentials === undefined) {
1454
- throw new Error("'credentials' cannot be null");
1455
- }
1456
- if (subscriptionId === undefined) {
1457
- throw new Error("'subscriptionId' cannot be null");
1458
- }
1459
- // Initializing default values for options
1460
- if (!options) {
1461
- options = {};
1462
- }
1463
- const defaults = {
1464
- requestContentType: "application/json; charset=utf-8",
1465
- credential: credentials
1466
- };
1467
- const packageDetails = `azsdk-js-arm-locks-profile-2020-09-01-hybrid/2.1.1`;
1468
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1469
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1470
- : `${packageDetails}`;
1471
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
1472
- userAgentPrefix
1473
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
1474
- super(optionsWithDefaults);
1475
- let bearerTokenAuthenticationPolicyFound = false;
1476
- if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
1477
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
1478
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
1479
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
1480
- }
1481
- if (!options ||
1482
- !options.pipeline ||
1483
- options.pipeline.getOrderedPolicies().length == 0 ||
1484
- !bearerTokenAuthenticationPolicyFound) {
1485
- this.pipeline.removePolicy({
1486
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
1487
- });
1488
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
1489
- credential: credentials,
1490
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
1491
- challengeCallbacks: {
1492
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
1493
- }
1494
- }));
1495
- }
1496
- // Parameter assignments
1497
- this.subscriptionId = subscriptionId;
1498
- // Assigning values to Constant parameters
1499
- this.$host = options.$host || "https://management.azure.com";
1500
- this.apiVersion = options.apiVersion || "2016-09-01";
1501
- this.authorizationOperations = new AuthorizationOperationsImpl(this);
1502
- this.managementLocks = new ManagementLocksImpl(this);
1503
- this.addCustomApiVersionPolicy(options.apiVersion);
1504
- }
1505
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
1506
- addCustomApiVersionPolicy(apiVersion) {
1507
- if (!apiVersion) {
1508
- return;
1509
- }
1510
- const apiVersionPolicy = {
1511
- name: "CustomApiVersionPolicy",
1512
- sendRequest(request, next) {
1513
- return tslib.__awaiter(this, undefined, undefined, function* () {
1514
- const param = request.url.split("?");
1515
- if (param.length > 1) {
1516
- const newParams = param[1].split("&").map((item) => {
1517
- if (item.indexOf("api-version") > -1) {
1518
- return "api-version=" + apiVersion;
1519
- }
1520
- else {
1521
- return item;
1522
- }
1523
- });
1524
- request.url = param[0] + "?" + newParams.join("&");
1525
- }
1526
- return next(request);
1527
- });
1528
- }
1529
- };
1530
- this.pipeline.addPolicy(apiVersionPolicy);
1531
- }
1532
- }
1533
-
1534
- exports.ManagementLockClient = ManagementLockClient;
1535
- exports.getContinuationToken = getContinuationToken;
1536
- //# sourceMappingURL=index.js.map