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