@azure/arm-defendereasm 1.0.0-alpha.20250115.1 → 1.0.0-alpha.20250117.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 (383) hide show
  1. package/{dist-esm/src → dist/browser}/easmMgmtClient.d.ts +2 -2
  2. package/dist/browser/easmMgmtClient.d.ts.map +1 -0
  3. package/{dist-esm/src → dist/browser}/easmMgmtClient.js +15 -18
  4. package/dist/browser/easmMgmtClient.js.map +1 -0
  5. package/dist/browser/index.d.ts +5 -0
  6. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  7. package/{dist-esm/src → dist/browser}/index.js +4 -4
  8. package/dist/browser/index.js.map +1 -0
  9. package/dist/browser/lroImpl.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/browser/operations/index.d.ts +5 -0
  15. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  16. package/{dist-esm/src → dist/browser}/operations/index.js +4 -4
  17. package/dist/browser/operations/index.js.map +1 -0
  18. package/{dist-esm/src → dist/browser}/operations/labels.d.ts +3 -3
  19. package/dist/browser/operations/labels.d.ts.map +1 -0
  20. package/{dist-esm/src → dist/browser}/operations/labels.js +79 -87
  21. package/dist/browser/operations/labels.js.map +1 -0
  22. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  23. package/dist/browser/operations/operations.d.ts.map +1 -0
  24. package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
  25. package/dist/browser/operations/operations.js.map +1 -0
  26. package/{dist-esm/src → dist/browser}/operations/tasks.d.ts +3 -3
  27. package/dist/browser/operations/tasks.d.ts.map +1 -0
  28. package/{dist-esm/src → dist/browser}/operations/tasks.js +2 -2
  29. package/dist/browser/operations/tasks.js.map +1 -0
  30. package/{dist-esm/src → dist/browser}/operations/workspaces.d.ts +3 -3
  31. package/dist/browser/operations/workspaces.d.ts.map +1 -0
  32. package/{dist-esm/src → dist/browser}/operations/workspaces.js +79 -87
  33. package/dist/browser/operations/workspaces.js.map +1 -0
  34. package/dist/browser/operationsInterfaces/index.d.ts +5 -0
  35. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  36. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +4 -4
  37. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  38. package/{dist-esm/src → dist/browser}/operationsInterfaces/labels.d.ts +1 -1
  39. package/dist/browser/operationsInterfaces/labels.d.ts.map +1 -0
  40. package/dist/browser/operationsInterfaces/labels.js.map +1 -0
  41. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  42. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  43. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  44. package/{dist-esm/src → dist/browser}/operationsInterfaces/tasks.d.ts +1 -1
  45. package/dist/browser/operationsInterfaces/tasks.d.ts.map +1 -0
  46. package/dist/browser/operationsInterfaces/tasks.js.map +1 -0
  47. package/{dist-esm/src → dist/browser}/operationsInterfaces/workspaces.d.ts +1 -1
  48. package/dist/browser/operationsInterfaces/workspaces.d.ts.map +1 -0
  49. package/dist/browser/operationsInterfaces/workspaces.js.map +1 -0
  50. package/dist/browser/package.json +3 -0
  51. package/dist/browser/pagingHelper.js.map +1 -0
  52. package/dist/commonjs/easmMgmtClient.d.ts +23 -0
  53. package/dist/commonjs/easmMgmtClient.d.ts.map +1 -0
  54. package/dist/commonjs/easmMgmtClient.js +105 -0
  55. package/dist/commonjs/easmMgmtClient.js.map +1 -0
  56. package/dist/commonjs/index.d.ts +5 -0
  57. package/dist/commonjs/index.d.ts.map +1 -0
  58. package/dist/commonjs/index.js +19 -0
  59. package/dist/commonjs/index.js.map +1 -0
  60. package/dist/commonjs/lroImpl.d.ts +11 -0
  61. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  62. package/dist/commonjs/lroImpl.js +24 -0
  63. package/dist/commonjs/lroImpl.js.map +1 -0
  64. package/{types/arm-defendereasm.d.ts → dist/commonjs/models/index.d.ts} +492 -724
  65. package/dist/commonjs/models/index.d.ts.map +1 -0
  66. package/dist/commonjs/models/index.js +69 -0
  67. package/dist/commonjs/models/index.js.map +1 -0
  68. package/dist/commonjs/models/mappers.d.ts +23 -0
  69. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  70. package/dist/commonjs/models/mappers.js +577 -0
  71. package/dist/commonjs/models/mappers.js.map +1 -0
  72. package/dist/commonjs/models/parameters.d.ts +16 -0
  73. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  74. package/dist/commonjs/models/parameters.js +140 -0
  75. package/dist/commonjs/models/parameters.js.map +1 -0
  76. package/dist/commonjs/operations/index.d.ts +5 -0
  77. package/dist/commonjs/operations/index.d.ts.map +1 -0
  78. package/dist/commonjs/operations/index.js +15 -0
  79. package/dist/commonjs/operations/index.js.map +1 -0
  80. package/dist/commonjs/operations/labels.d.ts +87 -0
  81. package/dist/commonjs/operations/labels.d.ts.map +1 -0
  82. package/dist/commonjs/operations/labels.js +386 -0
  83. package/dist/commonjs/operations/labels.js.map +1 -0
  84. package/dist/commonjs/operations/operations.d.ts +32 -0
  85. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  86. package/dist/commonjs/operations/operations.js +137 -0
  87. package/dist/commonjs/operations/operations.js.map +1 -0
  88. package/dist/commonjs/operations/tasks.d.ts +21 -0
  89. package/dist/commonjs/operations/tasks.d.ts.map +1 -0
  90. package/dist/commonjs/operations/tasks.js +60 -0
  91. package/dist/commonjs/operations/tasks.js.map +1 -0
  92. package/dist/commonjs/operations/workspaces.d.ts +96 -0
  93. package/dist/commonjs/operations/workspaces.d.ts.map +1 -0
  94. package/dist/commonjs/operations/workspaces.js +482 -0
  95. package/dist/commonjs/operations/workspaces.js.map +1 -0
  96. package/dist/commonjs/operationsInterfaces/index.d.ts +5 -0
  97. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  98. package/dist/commonjs/operationsInterfaces/index.js +15 -0
  99. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  100. package/dist/commonjs/operationsInterfaces/labels.d.ts +62 -0
  101. package/dist/commonjs/operationsInterfaces/labels.d.ts.map +1 -0
  102. package/dist/commonjs/operationsInterfaces/labels.js +10 -0
  103. package/dist/commonjs/operationsInterfaces/labels.js.map +1 -0
  104. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  105. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  106. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  107. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  108. package/dist/commonjs/operationsInterfaces/tasks.d.ts +13 -0
  109. package/dist/commonjs/operationsInterfaces/tasks.d.ts.map +1 -0
  110. package/dist/commonjs/operationsInterfaces/tasks.js +10 -0
  111. package/dist/commonjs/operationsInterfaces/tasks.js.map +1 -0
  112. package/dist/commonjs/operationsInterfaces/workspaces.d.ts +60 -0
  113. package/dist/commonjs/operationsInterfaces/workspaces.d.ts.map +1 -0
  114. package/dist/commonjs/operationsInterfaces/workspaces.js +10 -0
  115. package/dist/commonjs/operationsInterfaces/workspaces.js.map +1 -0
  116. package/dist/commonjs/package.json +3 -0
  117. package/dist/commonjs/pagingHelper.d.ts +13 -0
  118. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  119. package/dist/commonjs/pagingHelper.js +36 -0
  120. package/dist/commonjs/pagingHelper.js.map +1 -0
  121. package/dist/esm/easmMgmtClient.d.ts +23 -0
  122. package/dist/esm/easmMgmtClient.d.ts.map +1 -0
  123. package/dist/esm/easmMgmtClient.js +100 -0
  124. package/dist/esm/easmMgmtClient.js.map +1 -0
  125. package/dist/esm/index.d.ts +5 -0
  126. package/dist/esm/index.d.ts.map +1 -0
  127. package/{src/index.ts → dist/esm/index.js} +5 -5
  128. package/dist/esm/index.js.map +1 -0
  129. package/dist/esm/lroImpl.d.ts +11 -0
  130. package/dist/esm/lroImpl.d.ts.map +1 -0
  131. package/dist/esm/lroImpl.js +21 -0
  132. package/dist/esm/lroImpl.js.map +1 -0
  133. package/dist/esm/models/index.d.ts +492 -0
  134. package/dist/esm/models/index.d.ts.map +1 -0
  135. package/dist/esm/models/index.js +66 -0
  136. package/dist/esm/models/index.js.map +1 -0
  137. package/dist/esm/models/mappers.d.ts +23 -0
  138. package/dist/esm/models/mappers.d.ts.map +1 -0
  139. package/dist/esm/models/mappers.js +574 -0
  140. package/dist/esm/models/mappers.js.map +1 -0
  141. package/dist/esm/models/parameters.d.ts +16 -0
  142. package/dist/esm/models/parameters.d.ts.map +1 -0
  143. package/dist/esm/models/parameters.js +137 -0
  144. package/dist/esm/models/parameters.js.map +1 -0
  145. package/dist/esm/operations/index.d.ts +5 -0
  146. package/dist/esm/operations/index.d.ts.map +1 -0
  147. package/dist/esm/operations/index.js +12 -0
  148. package/dist/esm/operations/index.js.map +1 -0
  149. package/dist/esm/operations/labels.d.ts +87 -0
  150. package/dist/esm/operations/labels.d.ts.map +1 -0
  151. package/dist/esm/operations/labels.js +382 -0
  152. package/dist/esm/operations/labels.js.map +1 -0
  153. package/dist/esm/operations/operations.d.ts +32 -0
  154. package/dist/esm/operations/operations.d.ts.map +1 -0
  155. package/dist/esm/operations/operations.js +133 -0
  156. package/dist/esm/operations/operations.js.map +1 -0
  157. package/dist/esm/operations/tasks.d.ts +21 -0
  158. package/dist/esm/operations/tasks.d.ts.map +1 -0
  159. package/dist/esm/operations/tasks.js +55 -0
  160. package/dist/esm/operations/tasks.js.map +1 -0
  161. package/dist/esm/operations/workspaces.d.ts +96 -0
  162. package/dist/esm/operations/workspaces.d.ts.map +1 -0
  163. package/dist/esm/operations/workspaces.js +478 -0
  164. package/dist/esm/operations/workspaces.js.map +1 -0
  165. package/dist/esm/operationsInterfaces/index.d.ts +5 -0
  166. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  167. package/dist/esm/operationsInterfaces/index.js +12 -0
  168. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  169. package/dist/esm/operationsInterfaces/labels.d.ts +62 -0
  170. package/dist/esm/operationsInterfaces/labels.d.ts.map +1 -0
  171. package/dist/esm/operationsInterfaces/labels.js +9 -0
  172. package/dist/esm/operationsInterfaces/labels.js.map +1 -0
  173. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  174. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  175. package/dist/esm/operationsInterfaces/operations.js +9 -0
  176. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  177. package/dist/esm/operationsInterfaces/tasks.d.ts +13 -0
  178. package/dist/esm/operationsInterfaces/tasks.d.ts.map +1 -0
  179. package/dist/esm/operationsInterfaces/tasks.js +9 -0
  180. package/dist/esm/operationsInterfaces/tasks.js.map +1 -0
  181. package/dist/esm/operationsInterfaces/workspaces.d.ts +60 -0
  182. package/dist/esm/operationsInterfaces/workspaces.d.ts.map +1 -0
  183. package/dist/esm/operationsInterfaces/workspaces.js +9 -0
  184. package/dist/esm/operationsInterfaces/workspaces.js.map +1 -0
  185. package/dist/esm/package.json +3 -0
  186. package/dist/esm/pagingHelper.d.ts +13 -0
  187. package/dist/esm/pagingHelper.d.ts.map +1 -0
  188. package/dist/esm/pagingHelper.js +32 -0
  189. package/dist/esm/pagingHelper.js.map +1 -0
  190. package/dist/react-native/easmMgmtClient.d.ts +23 -0
  191. package/dist/react-native/easmMgmtClient.d.ts.map +1 -0
  192. package/dist/react-native/easmMgmtClient.js +100 -0
  193. package/dist/react-native/easmMgmtClient.js.map +1 -0
  194. package/dist/react-native/index.d.ts +5 -0
  195. package/dist/react-native/index.d.ts.map +1 -0
  196. package/dist/react-native/index.js +13 -0
  197. package/dist/react-native/index.js.map +1 -0
  198. package/dist/react-native/lroImpl.d.ts +11 -0
  199. package/dist/react-native/lroImpl.d.ts.map +1 -0
  200. package/dist/react-native/lroImpl.js +21 -0
  201. package/dist/react-native/lroImpl.js.map +1 -0
  202. package/dist/react-native/models/index.d.ts +492 -0
  203. package/dist/react-native/models/index.d.ts.map +1 -0
  204. package/dist/react-native/models/index.js +66 -0
  205. package/dist/react-native/models/index.js.map +1 -0
  206. package/dist/react-native/models/mappers.d.ts +23 -0
  207. package/dist/react-native/models/mappers.d.ts.map +1 -0
  208. package/dist/react-native/models/mappers.js +574 -0
  209. package/dist/react-native/models/mappers.js.map +1 -0
  210. package/dist/react-native/models/parameters.d.ts +16 -0
  211. package/dist/react-native/models/parameters.d.ts.map +1 -0
  212. package/dist/react-native/models/parameters.js +137 -0
  213. package/dist/react-native/models/parameters.js.map +1 -0
  214. package/dist/react-native/operations/index.d.ts +5 -0
  215. package/dist/react-native/operations/index.d.ts.map +1 -0
  216. package/dist/react-native/operations/index.js +12 -0
  217. package/dist/react-native/operations/index.js.map +1 -0
  218. package/dist/react-native/operations/labels.d.ts +87 -0
  219. package/dist/react-native/operations/labels.d.ts.map +1 -0
  220. package/dist/react-native/operations/labels.js +382 -0
  221. package/dist/react-native/operations/labels.js.map +1 -0
  222. package/dist/react-native/operations/operations.d.ts +32 -0
  223. package/dist/react-native/operations/operations.d.ts.map +1 -0
  224. package/dist/react-native/operations/operations.js +133 -0
  225. package/dist/react-native/operations/operations.js.map +1 -0
  226. package/dist/react-native/operations/tasks.d.ts +21 -0
  227. package/dist/react-native/operations/tasks.d.ts.map +1 -0
  228. package/dist/react-native/operations/tasks.js +55 -0
  229. package/dist/react-native/operations/tasks.js.map +1 -0
  230. package/dist/react-native/operations/workspaces.d.ts +96 -0
  231. package/dist/react-native/operations/workspaces.d.ts.map +1 -0
  232. package/dist/react-native/operations/workspaces.js +478 -0
  233. package/dist/react-native/operations/workspaces.js.map +1 -0
  234. package/dist/react-native/operationsInterfaces/index.d.ts +5 -0
  235. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  236. package/dist/react-native/operationsInterfaces/index.js +12 -0
  237. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  238. package/dist/react-native/operationsInterfaces/labels.d.ts +62 -0
  239. package/dist/react-native/operationsInterfaces/labels.d.ts.map +1 -0
  240. package/dist/react-native/operationsInterfaces/labels.js +9 -0
  241. package/dist/react-native/operationsInterfaces/labels.js.map +1 -0
  242. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  243. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  244. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  245. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  246. package/dist/react-native/operationsInterfaces/tasks.d.ts +13 -0
  247. package/dist/react-native/operationsInterfaces/tasks.d.ts.map +1 -0
  248. package/dist/react-native/operationsInterfaces/tasks.js +9 -0
  249. package/dist/react-native/operationsInterfaces/tasks.js.map +1 -0
  250. package/dist/react-native/operationsInterfaces/workspaces.d.ts +60 -0
  251. package/dist/react-native/operationsInterfaces/workspaces.d.ts.map +1 -0
  252. package/dist/react-native/operationsInterfaces/workspaces.js +9 -0
  253. package/dist/react-native/operationsInterfaces/workspaces.js.map +1 -0
  254. package/dist/react-native/package.json +3 -0
  255. package/dist/react-native/pagingHelper.d.ts +13 -0
  256. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  257. package/dist/react-native/pagingHelper.js +32 -0
  258. package/dist/react-native/pagingHelper.js.map +1 -0
  259. package/package.json +58 -28
  260. package/dist/index.js +0 -2026
  261. package/dist/index.js.map +0 -1
  262. package/dist/index.min.js +0 -1
  263. package/dist/index.min.js.map +0 -1
  264. package/dist-esm/samples-dev/labelsCreateAndUpdateSample.d.ts +0 -2
  265. package/dist-esm/samples-dev/labelsCreateAndUpdateSample.d.ts.map +0 -1
  266. package/dist-esm/samples-dev/labelsCreateAndUpdateSample.js +0 -40
  267. package/dist-esm/samples-dev/labelsCreateAndUpdateSample.js.map +0 -1
  268. package/dist-esm/samples-dev/labelsDeleteSample.d.ts +0 -2
  269. package/dist-esm/samples-dev/labelsDeleteSample.d.ts.map +0 -1
  270. package/dist-esm/samples-dev/labelsDeleteSample.js +0 -40
  271. package/dist-esm/samples-dev/labelsDeleteSample.js.map +0 -1
  272. package/dist-esm/samples-dev/labelsGetByWorkspaceSample.d.ts +0 -2
  273. package/dist-esm/samples-dev/labelsGetByWorkspaceSample.d.ts.map +0 -1
  274. package/dist-esm/samples-dev/labelsGetByWorkspaceSample.js +0 -40
  275. package/dist-esm/samples-dev/labelsGetByWorkspaceSample.js.map +0 -1
  276. package/dist-esm/samples-dev/labelsListByWorkspaceSample.d.ts +0 -2
  277. package/dist-esm/samples-dev/labelsListByWorkspaceSample.d.ts.map +0 -1
  278. package/dist-esm/samples-dev/labelsListByWorkspaceSample.js +0 -55
  279. package/dist-esm/samples-dev/labelsListByWorkspaceSample.js.map +0 -1
  280. package/dist-esm/samples-dev/labelsUpdateSample.d.ts +0 -2
  281. package/dist-esm/samples-dev/labelsUpdateSample.d.ts.map +0 -1
  282. package/dist-esm/samples-dev/labelsUpdateSample.js +0 -40
  283. package/dist-esm/samples-dev/labelsUpdateSample.js.map +0 -1
  284. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  285. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  286. package/dist-esm/samples-dev/operationsListSample.js +0 -53
  287. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  288. package/dist-esm/samples-dev/tasksGetByWorkspaceSample.d.ts +0 -2
  289. package/dist-esm/samples-dev/tasksGetByWorkspaceSample.d.ts.map +0 -1
  290. package/dist-esm/samples-dev/tasksGetByWorkspaceSample.js +0 -40
  291. package/dist-esm/samples-dev/tasksGetByWorkspaceSample.js.map +0 -1
  292. package/dist-esm/samples-dev/workspacesCreateAndUpdateSample.d.ts +0 -2
  293. package/dist-esm/samples-dev/workspacesCreateAndUpdateSample.d.ts.map +0 -1
  294. package/dist-esm/samples-dev/workspacesCreateAndUpdateSample.js +0 -43
  295. package/dist-esm/samples-dev/workspacesCreateAndUpdateSample.js.map +0 -1
  296. package/dist-esm/samples-dev/workspacesDeleteSample.d.ts +0 -2
  297. package/dist-esm/samples-dev/workspacesDeleteSample.d.ts.map +0 -1
  298. package/dist-esm/samples-dev/workspacesDeleteSample.js +0 -39
  299. package/dist-esm/samples-dev/workspacesDeleteSample.js.map +0 -1
  300. package/dist-esm/samples-dev/workspacesGetSample.d.ts +0 -2
  301. package/dist-esm/samples-dev/workspacesGetSample.d.ts.map +0 -1
  302. package/dist-esm/samples-dev/workspacesGetSample.js +0 -39
  303. package/dist-esm/samples-dev/workspacesGetSample.js.map +0 -1
  304. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts +0 -2
  305. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts.map +0 -1
  306. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +0 -54
  307. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +0 -1
  308. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.d.ts +0 -2
  309. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.d.ts.map +0 -1
  310. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +0 -53
  311. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js.map +0 -1
  312. package/dist-esm/samples-dev/workspacesUpdateSample.d.ts +0 -2
  313. package/dist-esm/samples-dev/workspacesUpdateSample.d.ts.map +0 -1
  314. package/dist-esm/samples-dev/workspacesUpdateSample.js +0 -39
  315. package/dist-esm/samples-dev/workspacesUpdateSample.js.map +0 -1
  316. package/dist-esm/src/easmMgmtClient.d.ts.map +0 -1
  317. package/dist-esm/src/easmMgmtClient.js.map +0 -1
  318. package/dist-esm/src/index.d.ts +0 -5
  319. package/dist-esm/src/index.js.map +0 -1
  320. package/dist-esm/src/lroImpl.js.map +0 -1
  321. package/dist-esm/src/models/index.js.map +0 -1
  322. package/dist-esm/src/models/mappers.js.map +0 -1
  323. package/dist-esm/src/models/parameters.js.map +0 -1
  324. package/dist-esm/src/operations/index.d.ts +0 -5
  325. package/dist-esm/src/operations/index.js.map +0 -1
  326. package/dist-esm/src/operations/labels.d.ts.map +0 -1
  327. package/dist-esm/src/operations/labels.js.map +0 -1
  328. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  329. package/dist-esm/src/operations/operations.js.map +0 -1
  330. package/dist-esm/src/operations/tasks.d.ts.map +0 -1
  331. package/dist-esm/src/operations/tasks.js.map +0 -1
  332. package/dist-esm/src/operations/workspaces.d.ts.map +0 -1
  333. package/dist-esm/src/operations/workspaces.js.map +0 -1
  334. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -5
  335. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  336. package/dist-esm/src/operationsInterfaces/labels.d.ts.map +0 -1
  337. package/dist-esm/src/operationsInterfaces/labels.js.map +0 -1
  338. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  339. package/dist-esm/src/operationsInterfaces/tasks.d.ts.map +0 -1
  340. package/dist-esm/src/operationsInterfaces/tasks.js.map +0 -1
  341. package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +0 -1
  342. package/dist-esm/src/operationsInterfaces/workspaces.js.map +0 -1
  343. package/dist-esm/src/pagingHelper.js.map +0 -1
  344. package/dist-esm/test/defendereasm_operations_test.spec.d.ts +0 -4
  345. package/dist-esm/test/defendereasm_operations_test.spec.d.ts.map +0 -1
  346. package/dist-esm/test/defendereasm_operations_test.spec.js +0 -115
  347. package/dist-esm/test/defendereasm_operations_test.spec.js.map +0 -1
  348. package/src/easmMgmtClient.ts +0 -151
  349. package/src/lroImpl.ts +0 -42
  350. package/src/models/index.ts +0 -562
  351. package/src/models/mappers.ts +0 -639
  352. package/src/models/parameters.ts +0 -161
  353. package/src/operations/index.ts +0 -12
  354. package/src/operations/labels.ts +0 -543
  355. package/src/operations/operations.ts +0 -149
  356. package/src/operations/tasks.ts +0 -75
  357. package/src/operations/workspaces.ts +0 -625
  358. package/src/operationsInterfaces/index.ts +0 -12
  359. package/src/operationsInterfaces/labels.ts +0 -120
  360. package/src/operationsInterfaces/operations.ts +0 -22
  361. package/src/operationsInterfaces/tasks.ts +0 -29
  362. package/src/operationsInterfaces/workspaces.ts +0 -114
  363. package/src/pagingHelper.ts +0 -39
  364. package/tsconfig.json +0 -33
  365. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  366. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  367. /package/{dist-esm/src → dist/browser}/lroImpl.js +0 -0
  368. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  369. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  370. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  371. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  372. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  373. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  374. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  375. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  376. /package/{dist-esm/src → dist/browser}/operationsInterfaces/labels.js +0 -0
  377. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  378. /package/{dist-esm/src → dist/browser}/operationsInterfaces/tasks.js +0 -0
  379. /package/{dist-esm/src → dist/browser}/operationsInterfaces/workspaces.js +0 -0
  380. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  381. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  382. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  383. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
package/dist/index.js DELETED
@@ -1,2026 +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
- var coreLro = require('@azure/core-lro');
9
-
10
- function _interopNamespaceDefault(e) {
11
- var n = Object.create(null);
12
- if (e) {
13
- Object.keys(e).forEach(function (k) {
14
- if (k !== 'default') {
15
- var d = Object.getOwnPropertyDescriptor(e, k);
16
- Object.defineProperty(n, k, d.get ? d : {
17
- enumerable: true,
18
- get: function () { return e[k]; }
19
- });
20
- }
21
- });
22
- }
23
- n.default = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
28
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
29
-
30
- /*
31
- * Copyright (c) Microsoft Corporation.
32
- * Licensed under the MIT License.
33
- *
34
- * Code generated by Microsoft (R) AutoRest Code Generator.
35
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
36
- */
37
- const pageMap = new WeakMap();
38
- /**
39
- * Given the last `.value` produced by the `byPage` iterator,
40
- * returns a continuation token that can be used to begin paging from
41
- * that point later.
42
- * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
43
- * @returns The continuation token that can be passed into byPage() during future calls.
44
- */
45
- function getContinuationToken(page) {
46
- var _a;
47
- if (typeof page !== "object" || page === null) {
48
- return undefined;
49
- }
50
- return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
51
- }
52
- function setContinuationToken(page, continuationToken) {
53
- var _a;
54
- if (typeof page !== "object" || page === null || !continuationToken) {
55
- return;
56
- }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
58
- pageInfo.continuationToken = continuationToken;
59
- pageMap.set(page, pageInfo);
60
- }
61
-
62
- /*
63
- * Copyright (c) Microsoft Corporation.
64
- * Licensed under the MIT License.
65
- *
66
- * Code generated by Microsoft (R) AutoRest Code Generator.
67
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
68
- */
69
- /** Known values of {@link ResourceState} that the service accepts. */
70
- exports.KnownResourceState = void 0;
71
- (function (KnownResourceState) {
72
- /** NotSpecified */
73
- KnownResourceState["NotSpecified"] = "NotSpecified";
74
- /** Accepted */
75
- KnownResourceState["Accepted"] = "Accepted";
76
- /** Creating */
77
- KnownResourceState["Creating"] = "Creating";
78
- /** Succeeded */
79
- KnownResourceState["Succeeded"] = "Succeeded";
80
- /** Failed */
81
- KnownResourceState["Failed"] = "Failed";
82
- /** Canceled */
83
- KnownResourceState["Canceled"] = "Canceled";
84
- /** ProvisioningResources */
85
- KnownResourceState["ProvisioningResources"] = "ProvisioningResources";
86
- /** InstallingApplication */
87
- KnownResourceState["InstallingApplication"] = "InstallingApplication";
88
- /** ConfiguringApplication */
89
- KnownResourceState["ConfiguringApplication"] = "ConfiguringApplication";
90
- /** MigratingApplicationData */
91
- KnownResourceState["MigratingApplicationData"] = "MigratingApplicationData";
92
- /** RunningValidations */
93
- KnownResourceState["RunningValidations"] = "RunningValidations";
94
- /** CreatingArtifacts */
95
- KnownResourceState["CreatingArtifacts"] = "CreatingArtifacts";
96
- /** DeletingArtifacts */
97
- KnownResourceState["DeletingArtifacts"] = "DeletingArtifacts";
98
- })(exports.KnownResourceState || (exports.KnownResourceState = {}));
99
- /** Known values of {@link CreatedByType} that the service accepts. */
100
- exports.KnownCreatedByType = void 0;
101
- (function (KnownCreatedByType) {
102
- /** User */
103
- KnownCreatedByType["User"] = "User";
104
- /** Application */
105
- KnownCreatedByType["Application"] = "Application";
106
- /** ManagedIdentity */
107
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
108
- /** Key */
109
- KnownCreatedByType["Key"] = "Key";
110
- })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
111
- /** Known values of {@link Origin} that the service accepts. */
112
- exports.KnownOrigin = void 0;
113
- (function (KnownOrigin) {
114
- /** User */
115
- KnownOrigin["User"] = "user";
116
- /** System */
117
- KnownOrigin["System"] = "system";
118
- /** UserSystem */
119
- KnownOrigin["UserSystem"] = "user,system";
120
- })(exports.KnownOrigin || (exports.KnownOrigin = {}));
121
- /** Known values of {@link ActionType} that the service accepts. */
122
- exports.KnownActionType = void 0;
123
- (function (KnownActionType) {
124
- /** Internal */
125
- KnownActionType["Internal"] = "Internal";
126
- })(exports.KnownActionType || (exports.KnownActionType = {}));
127
-
128
- /*
129
- * Copyright (c) Microsoft Corporation.
130
- * Licensed under the MIT License.
131
- *
132
- * Code generated by Microsoft (R) AutoRest Code Generator.
133
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
134
- */
135
- const WorkspaceResourceList = {
136
- type: {
137
- name: "Composite",
138
- className: "WorkspaceResourceList",
139
- modelProperties: {
140
- nextLink: {
141
- serializedName: "nextLink",
142
- type: {
143
- name: "String"
144
- }
145
- },
146
- value: {
147
- serializedName: "value",
148
- type: {
149
- name: "Sequence",
150
- element: {
151
- type: {
152
- name: "Composite",
153
- className: "WorkspaceResource"
154
- }
155
- }
156
- }
157
- }
158
- }
159
- }
160
- };
161
- const ResourceBaseProperties = {
162
- type: {
163
- name: "Composite",
164
- className: "ResourceBaseProperties",
165
- modelProperties: {
166
- provisioningState: {
167
- serializedName: "provisioningState",
168
- readOnly: true,
169
- type: {
170
- name: "String"
171
- }
172
- }
173
- }
174
- }
175
- };
176
- const Resource = {
177
- type: {
178
- name: "Composite",
179
- className: "Resource",
180
- modelProperties: {
181
- id: {
182
- serializedName: "id",
183
- readOnly: true,
184
- type: {
185
- name: "String"
186
- }
187
- },
188
- name: {
189
- serializedName: "name",
190
- readOnly: true,
191
- type: {
192
- name: "String"
193
- }
194
- },
195
- type: {
196
- serializedName: "type",
197
- readOnly: true,
198
- type: {
199
- name: "String"
200
- }
201
- },
202
- systemData: {
203
- serializedName: "systemData",
204
- type: {
205
- name: "Composite",
206
- className: "SystemData"
207
- }
208
- }
209
- }
210
- }
211
- };
212
- const SystemData = {
213
- type: {
214
- name: "Composite",
215
- className: "SystemData",
216
- modelProperties: {
217
- createdBy: {
218
- serializedName: "createdBy",
219
- type: {
220
- name: "String"
221
- }
222
- },
223
- createdByType: {
224
- serializedName: "createdByType",
225
- type: {
226
- name: "String"
227
- }
228
- },
229
- createdAt: {
230
- serializedName: "createdAt",
231
- type: {
232
- name: "DateTime"
233
- }
234
- },
235
- lastModifiedBy: {
236
- serializedName: "lastModifiedBy",
237
- type: {
238
- name: "String"
239
- }
240
- },
241
- lastModifiedByType: {
242
- serializedName: "lastModifiedByType",
243
- type: {
244
- name: "String"
245
- }
246
- },
247
- lastModifiedAt: {
248
- serializedName: "lastModifiedAt",
249
- type: {
250
- name: "DateTime"
251
- }
252
- }
253
- }
254
- }
255
- };
256
- const ErrorResponse = {
257
- type: {
258
- name: "Composite",
259
- className: "ErrorResponse",
260
- modelProperties: {
261
- error: {
262
- serializedName: "error",
263
- type: {
264
- name: "Composite",
265
- className: "ErrorDetail"
266
- }
267
- }
268
- }
269
- }
270
- };
271
- const ErrorDetail = {
272
- type: {
273
- name: "Composite",
274
- className: "ErrorDetail",
275
- modelProperties: {
276
- code: {
277
- serializedName: "code",
278
- readOnly: true,
279
- type: {
280
- name: "String"
281
- }
282
- },
283
- message: {
284
- serializedName: "message",
285
- readOnly: true,
286
- type: {
287
- name: "String"
288
- }
289
- },
290
- target: {
291
- serializedName: "target",
292
- readOnly: true,
293
- type: {
294
- name: "String"
295
- }
296
- },
297
- details: {
298
- serializedName: "details",
299
- readOnly: true,
300
- type: {
301
- name: "Sequence",
302
- element: {
303
- type: {
304
- name: "Composite",
305
- className: "ErrorDetail"
306
- }
307
- }
308
- }
309
- },
310
- additionalInfo: {
311
- serializedName: "additionalInfo",
312
- readOnly: true,
313
- type: {
314
- name: "Sequence",
315
- element: {
316
- type: {
317
- name: "Composite",
318
- className: "ErrorAdditionalInfo"
319
- }
320
- }
321
- }
322
- }
323
- }
324
- }
325
- };
326
- const ErrorAdditionalInfo = {
327
- type: {
328
- name: "Composite",
329
- className: "ErrorAdditionalInfo",
330
- modelProperties: {
331
- type: {
332
- serializedName: "type",
333
- readOnly: true,
334
- type: {
335
- name: "String"
336
- }
337
- },
338
- info: {
339
- serializedName: "info",
340
- readOnly: true,
341
- type: {
342
- name: "Dictionary",
343
- value: { type: { name: "any" } }
344
- }
345
- }
346
- }
347
- }
348
- };
349
- const WorkspacePatchResource = {
350
- type: {
351
- name: "Composite",
352
- className: "WorkspacePatchResource",
353
- modelProperties: {
354
- tags: {
355
- serializedName: "tags",
356
- type: {
357
- name: "Dictionary",
358
- value: { type: { name: "String" } }
359
- }
360
- },
361
- systemData: {
362
- serializedName: "systemData",
363
- type: {
364
- name: "Composite",
365
- className: "SystemData"
366
- }
367
- }
368
- }
369
- }
370
- };
371
- const LabelResourceList = {
372
- type: {
373
- name: "Composite",
374
- className: "LabelResourceList",
375
- modelProperties: {
376
- value: {
377
- serializedName: "value",
378
- type: {
379
- name: "Sequence",
380
- element: {
381
- type: {
382
- name: "Composite",
383
- className: "LabelResource"
384
- }
385
- }
386
- }
387
- },
388
- nextLink: {
389
- serializedName: "nextLink",
390
- type: {
391
- name: "String"
392
- }
393
- }
394
- }
395
- }
396
- };
397
- const OperationListResult = {
398
- type: {
399
- name: "Composite",
400
- className: "OperationListResult",
401
- modelProperties: {
402
- value: {
403
- serializedName: "value",
404
- readOnly: true,
405
- type: {
406
- name: "Sequence",
407
- element: {
408
- type: {
409
- name: "Composite",
410
- className: "Operation"
411
- }
412
- }
413
- }
414
- },
415
- nextLink: {
416
- serializedName: "nextLink",
417
- readOnly: true,
418
- type: {
419
- name: "String"
420
- }
421
- }
422
- }
423
- }
424
- };
425
- const Operation = {
426
- type: {
427
- name: "Composite",
428
- className: "Operation",
429
- modelProperties: {
430
- name: {
431
- serializedName: "name",
432
- readOnly: true,
433
- type: {
434
- name: "String"
435
- }
436
- },
437
- isDataAction: {
438
- serializedName: "isDataAction",
439
- readOnly: true,
440
- type: {
441
- name: "Boolean"
442
- }
443
- },
444
- display: {
445
- serializedName: "display",
446
- type: {
447
- name: "Composite",
448
- className: "OperationDisplay"
449
- }
450
- },
451
- origin: {
452
- serializedName: "origin",
453
- readOnly: true,
454
- type: {
455
- name: "String"
456
- }
457
- },
458
- actionType: {
459
- serializedName: "actionType",
460
- readOnly: true,
461
- type: {
462
- name: "String"
463
- }
464
- }
465
- }
466
- }
467
- };
468
- const OperationDisplay = {
469
- type: {
470
- name: "Composite",
471
- className: "OperationDisplay",
472
- modelProperties: {
473
- provider: {
474
- serializedName: "provider",
475
- readOnly: true,
476
- type: {
477
- name: "String"
478
- }
479
- },
480
- resource: {
481
- serializedName: "resource",
482
- readOnly: true,
483
- type: {
484
- name: "String"
485
- }
486
- },
487
- operation: {
488
- serializedName: "operation",
489
- readOnly: true,
490
- type: {
491
- name: "String"
492
- }
493
- },
494
- description: {
495
- serializedName: "description",
496
- readOnly: true,
497
- type: {
498
- name: "String"
499
- }
500
- }
501
- }
502
- }
503
- };
504
- const WorkspaceResourceProperties = {
505
- type: {
506
- name: "Composite",
507
- className: "WorkspaceResourceProperties",
508
- modelProperties: Object.assign(Object.assign({}, ResourceBaseProperties.type.modelProperties), { dataPlaneEndpoint: {
509
- serializedName: "dataPlaneEndpoint",
510
- readOnly: true,
511
- type: {
512
- name: "String"
513
- }
514
- } })
515
- }
516
- };
517
- const LabelResourceProperties = {
518
- type: {
519
- name: "Composite",
520
- className: "LabelResourceProperties",
521
- modelProperties: Object.assign(Object.assign({}, ResourceBaseProperties.type.modelProperties), { displayName: {
522
- serializedName: "displayName",
523
- type: {
524
- name: "String"
525
- }
526
- }, color: {
527
- serializedName: "color",
528
- type: {
529
- name: "String"
530
- }
531
- } })
532
- }
533
- };
534
- const TaskResourceProperties = {
535
- type: {
536
- name: "Composite",
537
- className: "TaskResourceProperties",
538
- modelProperties: Object.assign(Object.assign({}, ResourceBaseProperties.type.modelProperties), { startedAt: {
539
- serializedName: "startedAt",
540
- type: {
541
- name: "String"
542
- }
543
- }, completedAt: {
544
- serializedName: "completedAt",
545
- type: {
546
- name: "String"
547
- }
548
- }, lastPolledAt: {
549
- serializedName: "lastPolledAt",
550
- type: {
551
- name: "String"
552
- }
553
- }, state: {
554
- serializedName: "state",
555
- type: {
556
- name: "String"
557
- }
558
- }, phase: {
559
- serializedName: "phase",
560
- type: {
561
- name: "String"
562
- }
563
- }, reason: {
564
- serializedName: "reason",
565
- type: {
566
- name: "String"
567
- }
568
- }, metadata: {
569
- serializedName: "metadata",
570
- type: {
571
- name: "Dictionary",
572
- value: { type: { name: "any" } }
573
- }
574
- } })
575
- }
576
- };
577
- const TrackedResource = {
578
- type: {
579
- name: "Composite",
580
- className: "TrackedResource",
581
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
582
- serializedName: "tags",
583
- type: {
584
- name: "Dictionary",
585
- value: { type: { name: "String" } }
586
- }
587
- }, location: {
588
- serializedName: "location",
589
- required: true,
590
- type: {
591
- name: "String"
592
- }
593
- } })
594
- }
595
- };
596
- const ProxyResource = {
597
- type: {
598
- name: "Composite",
599
- className: "ProxyResource",
600
- modelProperties: Object.assign({}, Resource.type.modelProperties)
601
- }
602
- };
603
- const WorkspaceResource = {
604
- type: {
605
- name: "Composite",
606
- className: "WorkspaceResource",
607
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { provisioningState: {
608
- serializedName: "properties.provisioningState",
609
- readOnly: true,
610
- type: {
611
- name: "String"
612
- }
613
- }, dataPlaneEndpoint: {
614
- serializedName: "properties.dataPlaneEndpoint",
615
- readOnly: true,
616
- type: {
617
- name: "String"
618
- }
619
- } })
620
- }
621
- };
622
- const LabelResource = {
623
- type: {
624
- name: "Composite",
625
- className: "LabelResource",
626
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { provisioningState: {
627
- serializedName: "properties.provisioningState",
628
- readOnly: true,
629
- type: {
630
- name: "String"
631
- }
632
- }, displayName: {
633
- serializedName: "properties.displayName",
634
- type: {
635
- name: "String"
636
- }
637
- }, color: {
638
- serializedName: "properties.color",
639
- type: {
640
- name: "String"
641
- }
642
- } })
643
- }
644
- };
645
- const TaskResource = {
646
- type: {
647
- name: "Composite",
648
- className: "TaskResource",
649
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { provisioningState: {
650
- serializedName: "properties.provisioningState",
651
- readOnly: true,
652
- type: {
653
- name: "String"
654
- }
655
- }, startedAt: {
656
- serializedName: "properties.startedAt",
657
- type: {
658
- name: "String"
659
- }
660
- }, completedAt: {
661
- serializedName: "properties.completedAt",
662
- type: {
663
- name: "String"
664
- }
665
- }, lastPolledAt: {
666
- serializedName: "properties.lastPolledAt",
667
- type: {
668
- name: "String"
669
- }
670
- }, state: {
671
- serializedName: "properties.state",
672
- type: {
673
- name: "String"
674
- }
675
- }, phase: {
676
- serializedName: "properties.phase",
677
- type: {
678
- name: "String"
679
- }
680
- }, reason: {
681
- serializedName: "properties.reason",
682
- type: {
683
- name: "String"
684
- }
685
- }, metadata: {
686
- serializedName: "properties.metadata",
687
- type: {
688
- name: "Dictionary",
689
- value: { type: { name: "any" } }
690
- }
691
- } })
692
- }
693
- };
694
- const LabelPatchResource = {
695
- type: {
696
- name: "Composite",
697
- className: "LabelPatchResource",
698
- modelProperties: Object.assign({}, LabelResource.type.modelProperties)
699
- }
700
- };
701
-
702
- var Mappers = /*#__PURE__*/Object.freeze({
703
- __proto__: null,
704
- ErrorAdditionalInfo: ErrorAdditionalInfo,
705
- ErrorDetail: ErrorDetail,
706
- ErrorResponse: ErrorResponse,
707
- LabelPatchResource: LabelPatchResource,
708
- LabelResource: LabelResource,
709
- LabelResourceList: LabelResourceList,
710
- LabelResourceProperties: LabelResourceProperties,
711
- Operation: Operation,
712
- OperationDisplay: OperationDisplay,
713
- OperationListResult: OperationListResult,
714
- ProxyResource: ProxyResource,
715
- Resource: Resource,
716
- ResourceBaseProperties: ResourceBaseProperties,
717
- SystemData: SystemData,
718
- TaskResource: TaskResource,
719
- TaskResourceProperties: TaskResourceProperties,
720
- TrackedResource: TrackedResource,
721
- WorkspacePatchResource: WorkspacePatchResource,
722
- WorkspaceResource: WorkspaceResource,
723
- WorkspaceResourceList: WorkspaceResourceList,
724
- WorkspaceResourceProperties: WorkspaceResourceProperties
725
- });
726
-
727
- /*
728
- * Copyright (c) Microsoft Corporation.
729
- * Licensed under the MIT License.
730
- *
731
- * Code generated by Microsoft (R) AutoRest Code Generator.
732
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
733
- */
734
- const accept = {
735
- parameterPath: "accept",
736
- mapper: {
737
- defaultValue: "application/json",
738
- isConstant: true,
739
- serializedName: "Accept",
740
- type: {
741
- name: "String"
742
- }
743
- }
744
- };
745
- const $host = {
746
- parameterPath: "$host",
747
- mapper: {
748
- serializedName: "$host",
749
- required: true,
750
- type: {
751
- name: "String"
752
- }
753
- },
754
- skipEncoding: true
755
- };
756
- const apiVersion = {
757
- parameterPath: "apiVersion",
758
- mapper: {
759
- defaultValue: "2023-04-01-preview",
760
- isConstant: true,
761
- serializedName: "api-version",
762
- type: {
763
- name: "String"
764
- }
765
- }
766
- };
767
- const subscriptionId = {
768
- parameterPath: "subscriptionId",
769
- mapper: {
770
- constraints: {
771
- MinLength: 1
772
- },
773
- serializedName: "subscriptionId",
774
- required: true,
775
- type: {
776
- name: "String"
777
- }
778
- }
779
- };
780
- const resourceGroupName = {
781
- parameterPath: "resourceGroupName",
782
- mapper: {
783
- constraints: {
784
- MaxLength: 90,
785
- MinLength: 1
786
- },
787
- serializedName: "resourceGroupName",
788
- required: true,
789
- type: {
790
- name: "String"
791
- }
792
- }
793
- };
794
- const workspaceName = {
795
- parameterPath: "workspaceName",
796
- mapper: {
797
- serializedName: "workspaceName",
798
- required: true,
799
- type: {
800
- name: "String"
801
- }
802
- }
803
- };
804
- const contentType = {
805
- parameterPath: ["options", "contentType"],
806
- mapper: {
807
- defaultValue: "application/json",
808
- isConstant: true,
809
- serializedName: "Content-Type",
810
- type: {
811
- name: "String"
812
- }
813
- }
814
- };
815
- const workspaceResource = {
816
- parameterPath: ["options", "workspaceResource"],
817
- mapper: WorkspaceResource
818
- };
819
- const workspacePatchResource = {
820
- parameterPath: ["options", "workspacePatchResource"],
821
- mapper: WorkspacePatchResource
822
- };
823
- const nextLink = {
824
- parameterPath: "nextLink",
825
- mapper: {
826
- serializedName: "nextLink",
827
- required: true,
828
- type: {
829
- name: "String"
830
- }
831
- },
832
- skipEncoding: true
833
- };
834
- const labelName = {
835
- parameterPath: "labelName",
836
- mapper: {
837
- serializedName: "labelName",
838
- required: true,
839
- type: {
840
- name: "String"
841
- }
842
- }
843
- };
844
- const labelResource = {
845
- parameterPath: ["options", "labelResource"],
846
- mapper: LabelResource
847
- };
848
- const labelPatchResource = {
849
- parameterPath: ["options", "labelPatchResource"],
850
- mapper: LabelPatchResource
851
- };
852
- const taskId = {
853
- parameterPath: "taskId",
854
- mapper: {
855
- serializedName: "taskId",
856
- required: true,
857
- type: {
858
- name: "String"
859
- }
860
- }
861
- };
862
-
863
- /*
864
- * Copyright (c) Microsoft Corporation.
865
- * Licensed under the MIT License.
866
- *
867
- * Code generated by Microsoft (R) AutoRest Code Generator.
868
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
869
- */
870
- function createLroSpec(inputs) {
871
- const { args, spec, sendOperationFn } = inputs;
872
- return {
873
- requestMethod: spec.httpMethod,
874
- requestPath: spec.path,
875
- sendInitialRequest: () => sendOperationFn(args, spec),
876
- sendPollRequest: (path, options) => {
877
- const restSpec = tslib.__rest(spec, ["requestBody"]);
878
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
879
- }
880
- };
881
- }
882
-
883
- /*
884
- * Copyright (c) Microsoft Corporation.
885
- * Licensed under the MIT License.
886
- *
887
- * Code generated by Microsoft (R) AutoRest Code Generator.
888
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
889
- */
890
- /// <reference lib="esnext.asynciterable" />
891
- /** Class containing Workspaces operations. */
892
- class WorkspacesImpl {
893
- /**
894
- * Initialize a new instance of the class Workspaces class.
895
- * @param client Reference to the service client
896
- */
897
- constructor(client) {
898
- this.client = client;
899
- }
900
- /**
901
- * Returns a list of workspaces under the given subscription.
902
- * @param options The options parameters.
903
- */
904
- listBySubscription(options) {
905
- const iter = this.listBySubscriptionPagingAll(options);
906
- return {
907
- next() {
908
- return iter.next();
909
- },
910
- [Symbol.asyncIterator]() {
911
- return this;
912
- },
913
- byPage: (settings) => {
914
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
915
- throw new Error("maxPageSize is not supported by this operation.");
916
- }
917
- return this.listBySubscriptionPagingPage(options, settings);
918
- }
919
- };
920
- }
921
- listBySubscriptionPagingPage(options, settings) {
922
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
923
- let result;
924
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
925
- if (!continuationToken) {
926
- result = yield tslib.__await(this._listBySubscription(options));
927
- let page = result.value || [];
928
- continuationToken = result.nextLink;
929
- setContinuationToken(page, continuationToken);
930
- yield yield tslib.__await(page);
931
- }
932
- while (continuationToken) {
933
- result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
934
- continuationToken = result.nextLink;
935
- let page = result.value || [];
936
- setContinuationToken(page, continuationToken);
937
- yield yield tslib.__await(page);
938
- }
939
- });
940
- }
941
- listBySubscriptionPagingAll(options) {
942
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
943
- var _a, e_1, _b, _c;
944
- try {
945
- for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
946
- _c = _f.value;
947
- _d = false;
948
- const page = _c;
949
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
950
- }
951
- }
952
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
953
- finally {
954
- try {
955
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
956
- }
957
- finally { if (e_1) throw e_1.error; }
958
- }
959
- });
960
- }
961
- /**
962
- * Returns a list of workspaces in the given resource group.
963
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
964
- * @param options The options parameters.
965
- */
966
- listByResourceGroup(resourceGroupName, options) {
967
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
968
- return {
969
- next() {
970
- return iter.next();
971
- },
972
- [Symbol.asyncIterator]() {
973
- return this;
974
- },
975
- byPage: (settings) => {
976
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
977
- throw new Error("maxPageSize is not supported by this operation.");
978
- }
979
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
980
- }
981
- };
982
- }
983
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
984
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
985
- let result;
986
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
987
- if (!continuationToken) {
988
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
989
- let page = result.value || [];
990
- continuationToken = result.nextLink;
991
- setContinuationToken(page, continuationToken);
992
- yield yield tslib.__await(page);
993
- }
994
- while (continuationToken) {
995
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
996
- continuationToken = result.nextLink;
997
- let page = result.value || [];
998
- setContinuationToken(page, continuationToken);
999
- yield yield tslib.__await(page);
1000
- }
1001
- });
1002
- }
1003
- listByResourceGroupPagingAll(resourceGroupName, options) {
1004
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1005
- var _a, e_2, _b, _c;
1006
- try {
1007
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1008
- _c = _f.value;
1009
- _d = false;
1010
- const page = _c;
1011
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1012
- }
1013
- }
1014
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1015
- finally {
1016
- try {
1017
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1018
- }
1019
- finally { if (e_2) throw e_2.error; }
1020
- }
1021
- });
1022
- }
1023
- /**
1024
- * Returns a list of workspaces under the given subscription.
1025
- * @param options The options parameters.
1026
- */
1027
- _listBySubscription(options) {
1028
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
1029
- }
1030
- /**
1031
- * Returns a list of workspaces in the given resource group.
1032
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1033
- * @param options The options parameters.
1034
- */
1035
- _listByResourceGroup(resourceGroupName, options) {
1036
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1037
- }
1038
- /**
1039
- * Returns a workspace with the given name.
1040
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1041
- * @param workspaceName The name of the Workspace.
1042
- * @param options The options parameters.
1043
- */
1044
- get(resourceGroupName, workspaceName, options) {
1045
- return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, getOperationSpec);
1046
- }
1047
- /**
1048
- * Create or update a Workspace.
1049
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1050
- * @param workspaceName The name of the Workspace.
1051
- * @param options The options parameters.
1052
- */
1053
- beginCreateAndUpdate(resourceGroupName, workspaceName, options) {
1054
- return tslib.__awaiter(this, undefined, undefined, function* () {
1055
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1056
- return this.client.sendOperationRequest(args, spec);
1057
- });
1058
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1059
- var _a;
1060
- let currentRawResponse = undefined;
1061
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
1062
- const callback = (rawResponse, flatResponse) => {
1063
- currentRawResponse = rawResponse;
1064
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
1065
- };
1066
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1067
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1068
- return {
1069
- flatResponse,
1070
- rawResponse: {
1071
- statusCode: currentRawResponse.status,
1072
- body: currentRawResponse.parsedBody,
1073
- headers: currentRawResponse.headers.toJSON()
1074
- }
1075
- };
1076
- });
1077
- const lro = createLroSpec({
1078
- sendOperationFn,
1079
- args: { resourceGroupName, workspaceName, options },
1080
- spec: createAndUpdateOperationSpec$1
1081
- });
1082
- const poller = yield coreLro.createHttpPoller(lro, {
1083
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
1084
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
1085
- resourceLocationConfig: "azure-async-operation"
1086
- });
1087
- yield poller.poll();
1088
- return poller;
1089
- });
1090
- }
1091
- /**
1092
- * Create or update a Workspace.
1093
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1094
- * @param workspaceName The name of the Workspace.
1095
- * @param options The options parameters.
1096
- */
1097
- beginCreateAndUpdateAndWait(resourceGroupName, workspaceName, options) {
1098
- return tslib.__awaiter(this, undefined, undefined, function* () {
1099
- const poller = yield this.beginCreateAndUpdate(resourceGroupName, workspaceName, options);
1100
- return poller.pollUntilDone();
1101
- });
1102
- }
1103
- /**
1104
- * Update a Workspace.
1105
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1106
- * @param workspaceName The name of the Workspace.
1107
- * @param options The options parameters.
1108
- */
1109
- update(resourceGroupName, workspaceName, options) {
1110
- return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, updateOperationSpec$1);
1111
- }
1112
- /**
1113
- * Delete a Workspace.
1114
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1115
- * @param workspaceName The name of the Workspace.
1116
- * @param options The options parameters.
1117
- */
1118
- beginDelete(resourceGroupName, workspaceName, options) {
1119
- return tslib.__awaiter(this, undefined, undefined, function* () {
1120
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1121
- return this.client.sendOperationRequest(args, spec);
1122
- });
1123
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1124
- var _a;
1125
- let currentRawResponse = undefined;
1126
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
1127
- const callback = (rawResponse, flatResponse) => {
1128
- currentRawResponse = rawResponse;
1129
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
1130
- };
1131
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1132
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1133
- return {
1134
- flatResponse,
1135
- rawResponse: {
1136
- statusCode: currentRawResponse.status,
1137
- body: currentRawResponse.parsedBody,
1138
- headers: currentRawResponse.headers.toJSON()
1139
- }
1140
- };
1141
- });
1142
- const lro = createLroSpec({
1143
- sendOperationFn,
1144
- args: { resourceGroupName, workspaceName, options },
1145
- spec: deleteOperationSpec$1
1146
- });
1147
- const poller = yield coreLro.createHttpPoller(lro, {
1148
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
1149
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
1150
- resourceLocationConfig: "azure-async-operation"
1151
- });
1152
- yield poller.poll();
1153
- return poller;
1154
- });
1155
- }
1156
- /**
1157
- * Delete a Workspace.
1158
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1159
- * @param workspaceName The name of the Workspace.
1160
- * @param options The options parameters.
1161
- */
1162
- beginDeleteAndWait(resourceGroupName, workspaceName, options) {
1163
- return tslib.__awaiter(this, undefined, undefined, function* () {
1164
- const poller = yield this.beginDelete(resourceGroupName, workspaceName, options);
1165
- return poller.pollUntilDone();
1166
- });
1167
- }
1168
- /**
1169
- * ListBySubscriptionNext
1170
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
1171
- * @param options The options parameters.
1172
- */
1173
- _listBySubscriptionNext(nextLink, options) {
1174
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
1175
- }
1176
- /**
1177
- * ListByResourceGroupNext
1178
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1179
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1180
- * @param options The options parameters.
1181
- */
1182
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1183
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1184
- }
1185
- }
1186
- // Operation Specifications
1187
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1188
- const listBySubscriptionOperationSpec = {
1189
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.Easm/workspaces",
1190
- httpMethod: "GET",
1191
- responses: {
1192
- 200: {
1193
- bodyMapper: WorkspaceResourceList
1194
- },
1195
- default: {
1196
- bodyMapper: ErrorResponse
1197
- }
1198
- },
1199
- queryParameters: [apiVersion],
1200
- urlParameters: [$host, subscriptionId],
1201
- headerParameters: [accept],
1202
- serializer: serializer$3
1203
- };
1204
- const listByResourceGroupOperationSpec = {
1205
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces",
1206
- httpMethod: "GET",
1207
- responses: {
1208
- 200: {
1209
- bodyMapper: WorkspaceResourceList
1210
- },
1211
- default: {
1212
- bodyMapper: ErrorResponse
1213
- }
1214
- },
1215
- queryParameters: [apiVersion],
1216
- urlParameters: [
1217
- $host,
1218
- subscriptionId,
1219
- resourceGroupName
1220
- ],
1221
- headerParameters: [accept],
1222
- serializer: serializer$3
1223
- };
1224
- const getOperationSpec = {
1225
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}",
1226
- httpMethod: "GET",
1227
- responses: {
1228
- 200: {
1229
- bodyMapper: WorkspaceResource
1230
- },
1231
- default: {
1232
- bodyMapper: ErrorResponse
1233
- }
1234
- },
1235
- queryParameters: [apiVersion],
1236
- urlParameters: [
1237
- $host,
1238
- subscriptionId,
1239
- resourceGroupName,
1240
- workspaceName
1241
- ],
1242
- headerParameters: [accept],
1243
- serializer: serializer$3
1244
- };
1245
- const createAndUpdateOperationSpec$1 = {
1246
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}",
1247
- httpMethod: "PUT",
1248
- responses: {
1249
- 200: {
1250
- bodyMapper: WorkspaceResource
1251
- },
1252
- 201: {
1253
- bodyMapper: WorkspaceResource
1254
- },
1255
- 202: {
1256
- bodyMapper: WorkspaceResource
1257
- },
1258
- 204: {
1259
- bodyMapper: WorkspaceResource
1260
- },
1261
- default: {
1262
- bodyMapper: ErrorResponse
1263
- }
1264
- },
1265
- requestBody: workspaceResource,
1266
- queryParameters: [apiVersion],
1267
- urlParameters: [
1268
- $host,
1269
- subscriptionId,
1270
- resourceGroupName,
1271
- workspaceName
1272
- ],
1273
- headerParameters: [accept, contentType],
1274
- mediaType: "json",
1275
- serializer: serializer$3
1276
- };
1277
- const updateOperationSpec$1 = {
1278
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}",
1279
- httpMethod: "PATCH",
1280
- responses: {
1281
- 200: {
1282
- bodyMapper: WorkspaceResource
1283
- },
1284
- default: {
1285
- bodyMapper: ErrorResponse
1286
- }
1287
- },
1288
- requestBody: workspacePatchResource,
1289
- queryParameters: [apiVersion],
1290
- urlParameters: [
1291
- $host,
1292
- subscriptionId,
1293
- resourceGroupName,
1294
- workspaceName
1295
- ],
1296
- headerParameters: [accept, contentType],
1297
- mediaType: "json",
1298
- serializer: serializer$3
1299
- };
1300
- const deleteOperationSpec$1 = {
1301
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}",
1302
- httpMethod: "DELETE",
1303
- responses: {
1304
- 200: {},
1305
- 201: {},
1306
- 202: {},
1307
- 204: {},
1308
- default: {
1309
- bodyMapper: ErrorResponse
1310
- }
1311
- },
1312
- queryParameters: [apiVersion],
1313
- urlParameters: [
1314
- $host,
1315
- subscriptionId,
1316
- resourceGroupName,
1317
- workspaceName
1318
- ],
1319
- headerParameters: [accept],
1320
- serializer: serializer$3
1321
- };
1322
- const listBySubscriptionNextOperationSpec = {
1323
- path: "{nextLink}",
1324
- httpMethod: "GET",
1325
- responses: {
1326
- 200: {
1327
- bodyMapper: WorkspaceResourceList
1328
- },
1329
- default: {
1330
- bodyMapper: ErrorResponse
1331
- }
1332
- },
1333
- urlParameters: [
1334
- $host,
1335
- subscriptionId,
1336
- nextLink
1337
- ],
1338
- headerParameters: [accept],
1339
- serializer: serializer$3
1340
- };
1341
- const listByResourceGroupNextOperationSpec = {
1342
- path: "{nextLink}",
1343
- httpMethod: "GET",
1344
- responses: {
1345
- 200: {
1346
- bodyMapper: WorkspaceResourceList
1347
- },
1348
- default: {
1349
- bodyMapper: ErrorResponse
1350
- }
1351
- },
1352
- urlParameters: [
1353
- $host,
1354
- subscriptionId,
1355
- resourceGroupName,
1356
- nextLink
1357
- ],
1358
- headerParameters: [accept],
1359
- serializer: serializer$3
1360
- };
1361
-
1362
- /*
1363
- * Copyright (c) Microsoft Corporation.
1364
- * Licensed under the MIT License.
1365
- *
1366
- * Code generated by Microsoft (R) AutoRest Code Generator.
1367
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1368
- */
1369
- /// <reference lib="esnext.asynciterable" />
1370
- /** Class containing Labels operations. */
1371
- class LabelsImpl {
1372
- /**
1373
- * Initialize a new instance of the class Labels class.
1374
- * @param client Reference to the service client
1375
- */
1376
- constructor(client) {
1377
- this.client = client;
1378
- }
1379
- /**
1380
- * Returns a list of labels in the given workspace.
1381
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1382
- * @param workspaceName The name of the Workspace.
1383
- * @param options The options parameters.
1384
- */
1385
- listByWorkspace(resourceGroupName, workspaceName, options) {
1386
- const iter = this.listByWorkspacePagingAll(resourceGroupName, workspaceName, options);
1387
- return {
1388
- next() {
1389
- return iter.next();
1390
- },
1391
- [Symbol.asyncIterator]() {
1392
- return this;
1393
- },
1394
- byPage: (settings) => {
1395
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
1396
- throw new Error("maxPageSize is not supported by this operation.");
1397
- }
1398
- return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
1399
- }
1400
- };
1401
- }
1402
- listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings) {
1403
- return tslib.__asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
1404
- let result;
1405
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
1406
- if (!continuationToken) {
1407
- result = yield tslib.__await(this._listByWorkspace(resourceGroupName, workspaceName, options));
1408
- let page = result.value || [];
1409
- continuationToken = result.nextLink;
1410
- setContinuationToken(page, continuationToken);
1411
- yield yield tslib.__await(page);
1412
- }
1413
- while (continuationToken) {
1414
- result = yield tslib.__await(this._listByWorkspaceNext(resourceGroupName, workspaceName, continuationToken, options));
1415
- continuationToken = result.nextLink;
1416
- let page = result.value || [];
1417
- setContinuationToken(page, continuationToken);
1418
- yield yield tslib.__await(page);
1419
- }
1420
- });
1421
- }
1422
- listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
1423
- return tslib.__asyncGenerator(this, arguments, function* listByWorkspacePagingAll_1() {
1424
- var _a, e_1, _b, _c;
1425
- try {
1426
- for (var _d = true, _e = tslib.__asyncValues(this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1427
- _c = _f.value;
1428
- _d = false;
1429
- const page = _c;
1430
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1431
- }
1432
- }
1433
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1434
- finally {
1435
- try {
1436
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1437
- }
1438
- finally { if (e_1) throw e_1.error; }
1439
- }
1440
- });
1441
- }
1442
- /**
1443
- * Returns a list of labels in the given workspace.
1444
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1445
- * @param workspaceName The name of the Workspace.
1446
- * @param options The options parameters.
1447
- */
1448
- _listByWorkspace(resourceGroupName, workspaceName, options) {
1449
- return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listByWorkspaceOperationSpec);
1450
- }
1451
- /**
1452
- * Returns a label in the given workspace.
1453
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1454
- * @param workspaceName The name of the Workspace.
1455
- * @param labelName The name of the Label.
1456
- * @param options The options parameters.
1457
- */
1458
- getByWorkspace(resourceGroupName, workspaceName, labelName, options) {
1459
- return this.client.sendOperationRequest({ resourceGroupName, workspaceName, labelName, options }, getByWorkspaceOperationSpec$1);
1460
- }
1461
- /**
1462
- * Create or update a Label.
1463
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1464
- * @param workspaceName The name of the Workspace.
1465
- * @param labelName The name of the Label.
1466
- * @param options The options parameters.
1467
- */
1468
- beginCreateAndUpdate(resourceGroupName, workspaceName, labelName, options) {
1469
- return tslib.__awaiter(this, undefined, undefined, function* () {
1470
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1471
- return this.client.sendOperationRequest(args, spec);
1472
- });
1473
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1474
- var _a;
1475
- let currentRawResponse = undefined;
1476
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
1477
- const callback = (rawResponse, flatResponse) => {
1478
- currentRawResponse = rawResponse;
1479
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
1480
- };
1481
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1482
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1483
- return {
1484
- flatResponse,
1485
- rawResponse: {
1486
- statusCode: currentRawResponse.status,
1487
- body: currentRawResponse.parsedBody,
1488
- headers: currentRawResponse.headers.toJSON()
1489
- }
1490
- };
1491
- });
1492
- const lro = createLroSpec({
1493
- sendOperationFn,
1494
- args: { resourceGroupName, workspaceName, labelName, options },
1495
- spec: createAndUpdateOperationSpec
1496
- });
1497
- const poller = yield coreLro.createHttpPoller(lro, {
1498
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
1499
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
1500
- resourceLocationConfig: "azure-async-operation"
1501
- });
1502
- yield poller.poll();
1503
- return poller;
1504
- });
1505
- }
1506
- /**
1507
- * Create or update a Label.
1508
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1509
- * @param workspaceName The name of the Workspace.
1510
- * @param labelName The name of the Label.
1511
- * @param options The options parameters.
1512
- */
1513
- beginCreateAndUpdateAndWait(resourceGroupName, workspaceName, labelName, options) {
1514
- return tslib.__awaiter(this, undefined, undefined, function* () {
1515
- const poller = yield this.beginCreateAndUpdate(resourceGroupName, workspaceName, labelName, options);
1516
- return poller.pollUntilDone();
1517
- });
1518
- }
1519
- /**
1520
- * Update a Label.
1521
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1522
- * @param workspaceName The name of the Workspace.
1523
- * @param labelName The name of the Label.
1524
- * @param options The options parameters.
1525
- */
1526
- update(resourceGroupName, workspaceName, labelName, options) {
1527
- return this.client.sendOperationRequest({ resourceGroupName, workspaceName, labelName, options }, updateOperationSpec);
1528
- }
1529
- /**
1530
- * Delete a Label.
1531
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1532
- * @param workspaceName The name of the Workspace.
1533
- * @param labelName The name of the Label.
1534
- * @param options The options parameters.
1535
- */
1536
- beginDelete(resourceGroupName, workspaceName, labelName, options) {
1537
- return tslib.__awaiter(this, undefined, undefined, function* () {
1538
- const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1539
- return this.client.sendOperationRequest(args, spec);
1540
- });
1541
- const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
1542
- var _a;
1543
- let currentRawResponse = undefined;
1544
- const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
1545
- const callback = (rawResponse, flatResponse) => {
1546
- currentRawResponse = rawResponse;
1547
- providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
1548
- };
1549
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1550
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1551
- return {
1552
- flatResponse,
1553
- rawResponse: {
1554
- statusCode: currentRawResponse.status,
1555
- body: currentRawResponse.parsedBody,
1556
- headers: currentRawResponse.headers.toJSON()
1557
- }
1558
- };
1559
- });
1560
- const lro = createLroSpec({
1561
- sendOperationFn,
1562
- args: { resourceGroupName, workspaceName, labelName, options },
1563
- spec: deleteOperationSpec
1564
- });
1565
- const poller = yield coreLro.createHttpPoller(lro, {
1566
- restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
1567
- intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
1568
- resourceLocationConfig: "azure-async-operation"
1569
- });
1570
- yield poller.poll();
1571
- return poller;
1572
- });
1573
- }
1574
- /**
1575
- * Delete a Label.
1576
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1577
- * @param workspaceName The name of the Workspace.
1578
- * @param labelName The name of the Label.
1579
- * @param options The options parameters.
1580
- */
1581
- beginDeleteAndWait(resourceGroupName, workspaceName, labelName, options) {
1582
- return tslib.__awaiter(this, undefined, undefined, function* () {
1583
- const poller = yield this.beginDelete(resourceGroupName, workspaceName, labelName, options);
1584
- return poller.pollUntilDone();
1585
- });
1586
- }
1587
- /**
1588
- * ListByWorkspaceNext
1589
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1590
- * @param workspaceName The name of the Workspace.
1591
- * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.
1592
- * @param options The options parameters.
1593
- */
1594
- _listByWorkspaceNext(resourceGroupName, workspaceName, nextLink, options) {
1595
- return this.client.sendOperationRequest({ resourceGroupName, workspaceName, nextLink, options }, listByWorkspaceNextOperationSpec);
1596
- }
1597
- }
1598
- // Operation Specifications
1599
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1600
- const listByWorkspaceOperationSpec = {
1601
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}/labels",
1602
- httpMethod: "GET",
1603
- responses: {
1604
- 200: {
1605
- bodyMapper: LabelResourceList
1606
- },
1607
- default: {
1608
- bodyMapper: ErrorResponse
1609
- }
1610
- },
1611
- queryParameters: [apiVersion],
1612
- urlParameters: [
1613
- $host,
1614
- subscriptionId,
1615
- resourceGroupName,
1616
- workspaceName
1617
- ],
1618
- headerParameters: [accept],
1619
- serializer: serializer$2
1620
- };
1621
- const getByWorkspaceOperationSpec$1 = {
1622
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}/labels/{labelName}",
1623
- httpMethod: "GET",
1624
- responses: {
1625
- 200: {
1626
- bodyMapper: LabelResource
1627
- },
1628
- default: {
1629
- bodyMapper: ErrorResponse
1630
- }
1631
- },
1632
- queryParameters: [apiVersion],
1633
- urlParameters: [
1634
- $host,
1635
- subscriptionId,
1636
- resourceGroupName,
1637
- workspaceName,
1638
- labelName
1639
- ],
1640
- headerParameters: [accept],
1641
- serializer: serializer$2
1642
- };
1643
- const createAndUpdateOperationSpec = {
1644
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}/labels/{labelName}",
1645
- httpMethod: "PUT",
1646
- responses: {
1647
- 200: {
1648
- bodyMapper: LabelResource
1649
- },
1650
- 201: {
1651
- bodyMapper: LabelResource
1652
- },
1653
- 202: {
1654
- bodyMapper: LabelResource
1655
- },
1656
- 204: {
1657
- bodyMapper: LabelResource
1658
- },
1659
- default: {
1660
- bodyMapper: ErrorResponse
1661
- }
1662
- },
1663
- requestBody: labelResource,
1664
- queryParameters: [apiVersion],
1665
- urlParameters: [
1666
- $host,
1667
- subscriptionId,
1668
- resourceGroupName,
1669
- workspaceName,
1670
- labelName
1671
- ],
1672
- headerParameters: [accept, contentType],
1673
- mediaType: "json",
1674
- serializer: serializer$2
1675
- };
1676
- const updateOperationSpec = {
1677
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}/labels/{labelName}",
1678
- httpMethod: "PATCH",
1679
- responses: {
1680
- 200: {
1681
- bodyMapper: LabelResource
1682
- },
1683
- default: {
1684
- bodyMapper: ErrorResponse
1685
- }
1686
- },
1687
- requestBody: labelPatchResource,
1688
- queryParameters: [apiVersion],
1689
- urlParameters: [
1690
- $host,
1691
- subscriptionId,
1692
- resourceGroupName,
1693
- workspaceName,
1694
- labelName
1695
- ],
1696
- headerParameters: [accept, contentType],
1697
- mediaType: "json",
1698
- serializer: serializer$2
1699
- };
1700
- const deleteOperationSpec = {
1701
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}/labels/{labelName}",
1702
- httpMethod: "DELETE",
1703
- responses: {
1704
- 200: {},
1705
- 201: {},
1706
- 202: {},
1707
- 204: {},
1708
- default: {
1709
- bodyMapper: ErrorResponse
1710
- }
1711
- },
1712
- queryParameters: [apiVersion],
1713
- urlParameters: [
1714
- $host,
1715
- subscriptionId,
1716
- resourceGroupName,
1717
- workspaceName,
1718
- labelName
1719
- ],
1720
- headerParameters: [accept],
1721
- serializer: serializer$2
1722
- };
1723
- const listByWorkspaceNextOperationSpec = {
1724
- path: "{nextLink}",
1725
- httpMethod: "GET",
1726
- responses: {
1727
- 200: {
1728
- bodyMapper: LabelResourceList
1729
- },
1730
- default: {
1731
- bodyMapper: ErrorResponse
1732
- }
1733
- },
1734
- urlParameters: [
1735
- $host,
1736
- subscriptionId,
1737
- resourceGroupName,
1738
- workspaceName,
1739
- nextLink
1740
- ],
1741
- headerParameters: [accept],
1742
- serializer: serializer$2
1743
- };
1744
-
1745
- /*
1746
- * Copyright (c) Microsoft Corporation.
1747
- * Licensed under the MIT License.
1748
- *
1749
- * Code generated by Microsoft (R) AutoRest Code Generator.
1750
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1751
- */
1752
- /** Class containing Tasks operations. */
1753
- class TasksImpl {
1754
- /**
1755
- * Initialize a new instance of the class Tasks class.
1756
- * @param client Reference to the service client
1757
- */
1758
- constructor(client) {
1759
- this.client = client;
1760
- }
1761
- /**
1762
- * Returns a task in the given workspace.
1763
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1764
- * @param workspaceName The name of the Workspace.
1765
- * @param taskId The id of the Task.
1766
- * @param options The options parameters.
1767
- */
1768
- getByWorkspace(resourceGroupName, workspaceName, taskId, options) {
1769
- return this.client.sendOperationRequest({ resourceGroupName, workspaceName, taskId, options }, getByWorkspaceOperationSpec);
1770
- }
1771
- }
1772
- // Operation Specifications
1773
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1774
- const getByWorkspaceOperationSpec = {
1775
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}/tasks/{taskId}",
1776
- httpMethod: "GET",
1777
- responses: {
1778
- 200: {
1779
- bodyMapper: TaskResource
1780
- },
1781
- default: {
1782
- bodyMapper: ErrorResponse
1783
- }
1784
- },
1785
- queryParameters: [apiVersion],
1786
- urlParameters: [
1787
- $host,
1788
- subscriptionId,
1789
- resourceGroupName,
1790
- workspaceName,
1791
- taskId
1792
- ],
1793
- headerParameters: [accept],
1794
- serializer: serializer$1
1795
- };
1796
-
1797
- /*
1798
- * Copyright (c) Microsoft Corporation.
1799
- * Licensed under the MIT License.
1800
- *
1801
- * Code generated by Microsoft (R) AutoRest Code Generator.
1802
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1803
- */
1804
- /// <reference lib="esnext.asynciterable" />
1805
- /** Class containing Operations operations. */
1806
- class OperationsImpl {
1807
- /**
1808
- * Initialize a new instance of the class Operations class.
1809
- * @param client Reference to the service client
1810
- */
1811
- constructor(client) {
1812
- this.client = client;
1813
- }
1814
- /**
1815
- * Returns list of operations.
1816
- * @param options The options parameters.
1817
- */
1818
- list(options) {
1819
- const iter = this.listPagingAll(options);
1820
- return {
1821
- next() {
1822
- return iter.next();
1823
- },
1824
- [Symbol.asyncIterator]() {
1825
- return this;
1826
- },
1827
- byPage: (settings) => {
1828
- if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
1829
- throw new Error("maxPageSize is not supported by this operation.");
1830
- }
1831
- return this.listPagingPage(options, settings);
1832
- }
1833
- };
1834
- }
1835
- listPagingPage(options, settings) {
1836
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1837
- let result;
1838
- let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
1839
- if (!continuationToken) {
1840
- result = yield tslib.__await(this._list(options));
1841
- let page = result.value || [];
1842
- continuationToken = result.nextLink;
1843
- setContinuationToken(page, continuationToken);
1844
- yield yield tslib.__await(page);
1845
- }
1846
- while (continuationToken) {
1847
- result = yield tslib.__await(this._listNext(continuationToken, options));
1848
- continuationToken = result.nextLink;
1849
- let page = result.value || [];
1850
- setContinuationToken(page, continuationToken);
1851
- yield yield tslib.__await(page);
1852
- }
1853
- });
1854
- }
1855
- listPagingAll(options) {
1856
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1857
- var _a, e_1, _b, _c;
1858
- try {
1859
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1860
- _c = _f.value;
1861
- _d = false;
1862
- const page = _c;
1863
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1864
- }
1865
- }
1866
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1867
- finally {
1868
- try {
1869
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1870
- }
1871
- finally { if (e_1) throw e_1.error; }
1872
- }
1873
- });
1874
- }
1875
- /**
1876
- * Returns list of operations.
1877
- * @param options The options parameters.
1878
- */
1879
- _list(options) {
1880
- return this.client.sendOperationRequest({ options }, listOperationSpec);
1881
- }
1882
- /**
1883
- * ListNext
1884
- * @param nextLink The nextLink from the previous successful call to the List method.
1885
- * @param options The options parameters.
1886
- */
1887
- _listNext(nextLink, options) {
1888
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
1889
- }
1890
- }
1891
- // Operation Specifications
1892
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1893
- const listOperationSpec = {
1894
- path: "/providers/Microsoft.Easm/operations",
1895
- httpMethod: "GET",
1896
- responses: {
1897
- 200: {
1898
- bodyMapper: OperationListResult
1899
- },
1900
- default: {
1901
- bodyMapper: ErrorResponse
1902
- }
1903
- },
1904
- queryParameters: [apiVersion],
1905
- urlParameters: [$host],
1906
- headerParameters: [accept],
1907
- serializer
1908
- };
1909
- const listNextOperationSpec = {
1910
- path: "{nextLink}",
1911
- httpMethod: "GET",
1912
- responses: {
1913
- 200: {
1914
- bodyMapper: OperationListResult
1915
- },
1916
- default: {
1917
- bodyMapper: ErrorResponse
1918
- }
1919
- },
1920
- urlParameters: [$host, nextLink],
1921
- headerParameters: [accept],
1922
- serializer
1923
- };
1924
-
1925
- /*
1926
- * Copyright (c) Microsoft Corporation.
1927
- * Licensed under the MIT License.
1928
- *
1929
- * Code generated by Microsoft (R) AutoRest Code Generator.
1930
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1931
- */
1932
- class EasmMgmtClient extends coreClient__namespace.ServiceClient {
1933
- /**
1934
- * Initializes a new instance of the EasmMgmtClient class.
1935
- * @param credentials Subscription credentials which uniquely identify client subscription.
1936
- * @param subscriptionId The ID of the target subscription.
1937
- * @param options The parameter options
1938
- */
1939
- constructor(credentials, subscriptionId, options) {
1940
- var _a, _b, _c;
1941
- if (credentials === undefined) {
1942
- throw new Error("'credentials' cannot be null");
1943
- }
1944
- if (subscriptionId === undefined) {
1945
- throw new Error("'subscriptionId' cannot be null");
1946
- }
1947
- // Initializing default values for options
1948
- if (!options) {
1949
- options = {};
1950
- }
1951
- const defaults = {
1952
- requestContentType: "application/json; charset=utf-8",
1953
- credential: credentials
1954
- };
1955
- const packageDetails = `azsdk-js-arm-defendereasm/1.0.0-beta.1`;
1956
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1957
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1958
- : `${packageDetails}`;
1959
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
1960
- userAgentPrefix
1961
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
1962
- super(optionsWithDefaults);
1963
- let bearerTokenAuthenticationPolicyFound = false;
1964
- if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
1965
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
1966
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
1967
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
1968
- }
1969
- if (!options ||
1970
- !options.pipeline ||
1971
- options.pipeline.getOrderedPolicies().length == 0 ||
1972
- !bearerTokenAuthenticationPolicyFound) {
1973
- this.pipeline.removePolicy({
1974
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
1975
- });
1976
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
1977
- credential: credentials,
1978
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
1979
- challengeCallbacks: {
1980
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
1981
- }
1982
- }));
1983
- }
1984
- // Parameter assignments
1985
- this.subscriptionId = subscriptionId;
1986
- // Assigning values to Constant parameters
1987
- this.$host = options.$host || "https://management.azure.com";
1988
- this.apiVersion = options.apiVersion || "2023-04-01-preview";
1989
- this.workspaces = new WorkspacesImpl(this);
1990
- this.labels = new LabelsImpl(this);
1991
- this.tasks = new TasksImpl(this);
1992
- this.operations = new OperationsImpl(this);
1993
- this.addCustomApiVersionPolicy(options.apiVersion);
1994
- }
1995
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
1996
- addCustomApiVersionPolicy(apiVersion) {
1997
- if (!apiVersion) {
1998
- return;
1999
- }
2000
- const apiVersionPolicy = {
2001
- name: "CustomApiVersionPolicy",
2002
- sendRequest(request, next) {
2003
- return tslib.__awaiter(this, undefined, undefined, function* () {
2004
- const param = request.url.split("?");
2005
- if (param.length > 1) {
2006
- const newParams = param[1].split("&").map((item) => {
2007
- if (item.indexOf("api-version") > -1) {
2008
- return "api-version=" + apiVersion;
2009
- }
2010
- else {
2011
- return item;
2012
- }
2013
- });
2014
- request.url = param[0] + "?" + newParams.join("&");
2015
- }
2016
- return next(request);
2017
- });
2018
- }
2019
- };
2020
- this.pipeline.addPolicy(apiVersionPolicy);
2021
- }
2022
- }
2023
-
2024
- exports.EasmMgmtClient = EasmMgmtClient;
2025
- exports.getContinuationToken = getContinuationToken;
2026
- //# sourceMappingURL=index.js.map