@azure/arm-workspaces 1.1.1-alpha.20250210.1 → 1.1.1-alpha.20250211.2

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 (302) hide show
  1. package/README.md +21 -14
  2. package/dist/browser/index.d.ts +5 -0
  3. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  4. package/{dist-esm/src → dist/browser}/index.js +4 -4
  5. package/dist/browser/index.js.map +1 -0
  6. package/{dist-esm/src → dist/browser}/machineLearningWorkspacesManagementClient.d.ts +2 -2
  7. package/dist/browser/machineLearningWorkspacesManagementClient.d.ts.map +1 -0
  8. package/{dist-esm/src → dist/browser}/machineLearningWorkspacesManagementClient.js +15 -18
  9. package/dist/browser/machineLearningWorkspacesManagementClient.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 +3 -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 +2 -2
  17. package/dist/browser/operations/index.js.map +1 -0
  18. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  19. package/dist/browser/operations/operations.d.ts.map +1 -0
  20. package/{dist-esm/src → dist/browser}/operations/operations.js +2 -2
  21. package/dist/browser/operations/operations.js.map +1 -0
  22. package/{dist-esm/src → dist/browser}/operations/workspaces.d.ts +3 -3
  23. package/dist/browser/operations/workspaces.d.ts.map +1 -0
  24. package/{dist-esm/src → dist/browser}/operations/workspaces.js +3 -3
  25. package/dist/browser/operations/workspaces.js.map +1 -0
  26. package/dist/browser/operationsInterfaces/index.d.ts +3 -0
  27. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  28. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +2 -2
  29. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  30. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  31. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  32. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  33. package/{dist-esm/src → dist/browser}/operationsInterfaces/workspaces.d.ts +1 -1
  34. package/dist/browser/operationsInterfaces/workspaces.d.ts.map +1 -0
  35. package/dist/browser/operationsInterfaces/workspaces.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/machineLearningWorkspacesManagementClient.d.ts +21 -0
  43. package/dist/commonjs/machineLearningWorkspacesManagementClient.d.ts.map +1 -0
  44. package/dist/commonjs/machineLearningWorkspacesManagementClient.js +103 -0
  45. package/dist/commonjs/machineLearningWorkspacesManagementClient.js.map +1 -0
  46. package/dist/commonjs/models/index.d.ts +190 -0
  47. package/dist/commonjs/models/index.d.ts.map +1 -0
  48. package/dist/commonjs/models/index.js +10 -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 +333 -0
  53. package/dist/commonjs/models/mappers.js.map +1 -0
  54. package/dist/commonjs/models/parameters.d.ts +12 -0
  55. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  56. package/dist/commonjs/models/parameters.js +105 -0
  57. package/dist/commonjs/models/parameters.js.map +1 -0
  58. package/dist/commonjs/operations/index.d.ts +3 -0
  59. package/dist/commonjs/operations/index.d.ts.map +1 -0
  60. package/dist/commonjs/operations/index.js +13 -0
  61. package/dist/commonjs/operations/index.js.map +1 -0
  62. package/dist/commonjs/operations/operations.d.ts +26 -0
  63. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  64. package/dist/commonjs/operations/operations.js +100 -0
  65. package/dist/commonjs/operations/operations.js.map +1 -0
  66. package/dist/commonjs/operations/workspaces.d.ts +106 -0
  67. package/dist/commonjs/operations/workspaces.d.ts.map +1 -0
  68. package/dist/commonjs/operations/workspaces.js +454 -0
  69. package/dist/commonjs/operations/workspaces.js.map +1 -0
  70. package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
  71. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  72. package/dist/commonjs/operationsInterfaces/index.js +13 -0
  73. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  74. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  75. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  76. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  77. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  78. package/dist/commonjs/operationsInterfaces/workspaces.d.ts +68 -0
  79. package/dist/commonjs/operationsInterfaces/workspaces.d.ts.map +1 -0
  80. package/dist/commonjs/operationsInterfaces/workspaces.js +10 -0
  81. package/dist/commonjs/operationsInterfaces/workspaces.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/machineLearningWorkspacesManagementClient.d.ts +21 -0
  92. package/dist/esm/machineLearningWorkspacesManagementClient.d.ts.map +1 -0
  93. package/dist/esm/machineLearningWorkspacesManagementClient.js +98 -0
  94. package/dist/esm/machineLearningWorkspacesManagementClient.js.map +1 -0
  95. package/dist/esm/models/index.d.ts +190 -0
  96. package/dist/esm/models/index.d.ts.map +1 -0
  97. package/{src/operations/index.ts → dist/esm/models/index.js} +2 -3
  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 +330 -0
  102. package/dist/esm/models/mappers.js.map +1 -0
  103. package/dist/esm/models/parameters.d.ts +12 -0
  104. package/dist/esm/models/parameters.d.ts.map +1 -0
  105. package/dist/esm/models/parameters.js +102 -0
  106. package/dist/esm/models/parameters.js.map +1 -0
  107. package/dist/esm/operations/index.d.ts +3 -0
  108. package/dist/esm/operations/index.d.ts.map +1 -0
  109. package/dist/esm/operations/index.js +10 -0
  110. package/dist/esm/operations/index.js.map +1 -0
  111. package/dist/esm/operations/operations.d.ts +26 -0
  112. package/dist/esm/operations/operations.d.ts.map +1 -0
  113. package/dist/esm/operations/operations.js +96 -0
  114. package/dist/esm/operations/operations.js.map +1 -0
  115. package/dist/esm/operations/workspaces.d.ts +106 -0
  116. package/dist/esm/operations/workspaces.d.ts.map +1 -0
  117. package/dist/esm/operations/workspaces.js +450 -0
  118. package/dist/esm/operations/workspaces.js.map +1 -0
  119. package/dist/esm/operationsInterfaces/index.d.ts +3 -0
  120. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  121. package/dist/esm/operationsInterfaces/index.js +10 -0
  122. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  123. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  124. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  125. package/dist/esm/operationsInterfaces/operations.js +9 -0
  126. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  127. package/dist/esm/operationsInterfaces/workspaces.d.ts +68 -0
  128. package/dist/esm/operationsInterfaces/workspaces.d.ts.map +1 -0
  129. package/dist/esm/operationsInterfaces/workspaces.js +9 -0
  130. package/dist/esm/operationsInterfaces/workspaces.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/machineLearningWorkspacesManagementClient.d.ts +21 -0
  141. package/dist/react-native/machineLearningWorkspacesManagementClient.d.ts.map +1 -0
  142. package/dist/react-native/machineLearningWorkspacesManagementClient.js +98 -0
  143. package/dist/react-native/machineLearningWorkspacesManagementClient.js.map +1 -0
  144. package/dist/react-native/models/index.d.ts +190 -0
  145. package/dist/react-native/models/index.d.ts.map +1 -0
  146. package/dist/react-native/models/index.js +9 -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 +330 -0
  151. package/dist/react-native/models/mappers.js.map +1 -0
  152. package/dist/react-native/models/parameters.d.ts +12 -0
  153. package/dist/react-native/models/parameters.d.ts.map +1 -0
  154. package/dist/react-native/models/parameters.js +102 -0
  155. package/dist/react-native/models/parameters.js.map +1 -0
  156. package/dist/react-native/operations/index.d.ts +3 -0
  157. package/dist/react-native/operations/index.d.ts.map +1 -0
  158. package/dist/react-native/operations/index.js +10 -0
  159. package/dist/react-native/operations/index.js.map +1 -0
  160. package/dist/react-native/operations/operations.d.ts +26 -0
  161. package/dist/react-native/operations/operations.d.ts.map +1 -0
  162. package/dist/react-native/operations/operations.js +96 -0
  163. package/dist/react-native/operations/operations.js.map +1 -0
  164. package/dist/react-native/operations/workspaces.d.ts +106 -0
  165. package/dist/react-native/operations/workspaces.d.ts.map +1 -0
  166. package/dist/react-native/operations/workspaces.js +450 -0
  167. package/dist/react-native/operations/workspaces.js.map +1 -0
  168. package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
  169. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  170. package/dist/react-native/operationsInterfaces/index.js +10 -0
  171. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  172. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  173. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  174. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  175. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  176. package/dist/react-native/operationsInterfaces/workspaces.d.ts +68 -0
  177. package/dist/react-native/operationsInterfaces/workspaces.d.ts.map +1 -0
  178. package/dist/react-native/operationsInterfaces/workspaces.js +9 -0
  179. package/dist/react-native/operationsInterfaces/workspaces.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 -1142
  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/listWorkspaceKeys.d.ts +0 -2
  191. package/dist-esm/samples-dev/listWorkspaceKeys.d.ts.map +0 -1
  192. package/dist-esm/samples-dev/listWorkspaceKeys.js +0 -29
  193. package/dist-esm/samples-dev/listWorkspaceKeys.js.map +0 -1
  194. package/dist-esm/samples-dev/resyncStorageKeys.d.ts +0 -2
  195. package/dist-esm/samples-dev/resyncStorageKeys.d.ts.map +0 -1
  196. package/dist-esm/samples-dev/resyncStorageKeys.js +0 -29
  197. package/dist-esm/samples-dev/resyncStorageKeys.js.map +0 -1
  198. package/dist-esm/samples-dev/workspaceCreate.d.ts +0 -2
  199. package/dist-esm/samples-dev/workspaceCreate.d.ts.map +0 -1
  200. package/dist-esm/samples-dev/workspaceCreate.js +0 -23
  201. package/dist-esm/samples-dev/workspaceCreate.js.map +0 -1
  202. package/dist-esm/samples-dev/workspaceDelete.d.ts +0 -2
  203. package/dist-esm/samples-dev/workspaceDelete.d.ts.map +0 -1
  204. package/dist-esm/samples-dev/workspaceDelete.js +0 -29
  205. package/dist-esm/samples-dev/workspaceDelete.js.map +0 -1
  206. package/dist-esm/samples-dev/workspaceGet.d.ts +0 -2
  207. package/dist-esm/samples-dev/workspaceGet.d.ts.map +0 -1
  208. package/dist-esm/samples-dev/workspaceGet.js +0 -29
  209. package/dist-esm/samples-dev/workspaceGet.js.map +0 -1
  210. package/dist-esm/samples-dev/workspaceGetBySubscription.d.ts +0 -2
  211. package/dist-esm/samples-dev/workspaceGetBySubscription.d.ts.map +0 -1
  212. package/dist-esm/samples-dev/workspaceGetBySubscription.js +0 -43
  213. package/dist-esm/samples-dev/workspaceGetBySubscription.js.map +0 -1
  214. package/dist-esm/samples-dev/workspaceListResourceGroup.d.ts +0 -2
  215. package/dist-esm/samples-dev/workspaceListResourceGroup.d.ts.map +0 -1
  216. package/dist-esm/samples-dev/workspaceListResourceGroup.js +0 -44
  217. package/dist-esm/samples-dev/workspaceListResourceGroup.js.map +0 -1
  218. package/dist-esm/samples-dev/workspaceUpdate.d.ts +0 -2
  219. package/dist-esm/samples-dev/workspaceUpdate.d.ts.map +0 -1
  220. package/dist-esm/samples-dev/workspaceUpdate.js +0 -21
  221. package/dist-esm/samples-dev/workspaceUpdate.js.map +0 -1
  222. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.d.ts +0 -2
  223. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.d.ts.map +0 -1
  224. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js +0 -29
  225. package/dist-esm/samples-dev/workspacesCreateOrUpdateSample.js.map +0 -1
  226. package/dist-esm/samples-dev/workspacesDeleteSample.d.ts +0 -2
  227. package/dist-esm/samples-dev/workspacesDeleteSample.d.ts.map +0 -1
  228. package/dist-esm/samples-dev/workspacesDeleteSample.js +0 -29
  229. package/dist-esm/samples-dev/workspacesDeleteSample.js.map +0 -1
  230. package/dist-esm/samples-dev/workspacesGetSample.d.ts +0 -2
  231. package/dist-esm/samples-dev/workspacesGetSample.d.ts.map +0 -1
  232. package/dist-esm/samples-dev/workspacesGetSample.js +0 -29
  233. package/dist-esm/samples-dev/workspacesGetSample.js.map +0 -1
  234. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts +0 -2
  235. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts.map +0 -1
  236. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +0 -44
  237. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +0 -1
  238. package/dist-esm/samples-dev/workspacesListSample.d.ts +0 -2
  239. package/dist-esm/samples-dev/workspacesListSample.d.ts.map +0 -1
  240. package/dist-esm/samples-dev/workspacesListSample.js +0 -43
  241. package/dist-esm/samples-dev/workspacesListSample.js.map +0 -1
  242. package/dist-esm/samples-dev/workspacesListWorkspaceKeysSample.d.ts +0 -2
  243. package/dist-esm/samples-dev/workspacesListWorkspaceKeysSample.d.ts.map +0 -1
  244. package/dist-esm/samples-dev/workspacesListWorkspaceKeysSample.js +0 -29
  245. package/dist-esm/samples-dev/workspacesListWorkspaceKeysSample.js.map +0 -1
  246. package/dist-esm/samples-dev/workspacesResyncStorageKeysSample.d.ts +0 -2
  247. package/dist-esm/samples-dev/workspacesResyncStorageKeysSample.d.ts.map +0 -1
  248. package/dist-esm/samples-dev/workspacesResyncStorageKeysSample.js +0 -29
  249. package/dist-esm/samples-dev/workspacesResyncStorageKeysSample.js.map +0 -1
  250. package/dist-esm/samples-dev/workspacesUpdateSample.d.ts +0 -2
  251. package/dist-esm/samples-dev/workspacesUpdateSample.d.ts.map +0 -1
  252. package/dist-esm/samples-dev/workspacesUpdateSample.js +0 -27
  253. package/dist-esm/samples-dev/workspacesUpdateSample.js.map +0 -1
  254. package/dist-esm/src/index.d.ts +0 -5
  255. package/dist-esm/src/index.js.map +0 -1
  256. package/dist-esm/src/machineLearningWorkspacesManagementClient.d.ts.map +0 -1
  257. package/dist-esm/src/machineLearningWorkspacesManagementClient.js.map +0 -1
  258. package/dist-esm/src/models/index.js.map +0 -1
  259. package/dist-esm/src/models/mappers.js.map +0 -1
  260. package/dist-esm/src/models/parameters.js.map +0 -1
  261. package/dist-esm/src/operations/index.d.ts +0 -3
  262. package/dist-esm/src/operations/index.js.map +0 -1
  263. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  264. package/dist-esm/src/operations/operations.js.map +0 -1
  265. package/dist-esm/src/operations/workspaces.d.ts.map +0 -1
  266. package/dist-esm/src/operations/workspaces.js.map +0 -1
  267. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -3
  268. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  269. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  270. package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +0 -1
  271. package/dist-esm/src/operationsInterfaces/workspaces.js.map +0 -1
  272. package/dist-esm/src/pagingHelper.js.map +0 -1
  273. package/dist-esm/test/sampleTest.d.ts +0 -2
  274. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  275. package/dist-esm/test/sampleTest.js +0 -42
  276. package/dist-esm/test/sampleTest.js.map +0 -1
  277. package/src/machineLearningWorkspacesManagementClient.ts +0 -142
  278. package/src/models/index.ts +0 -238
  279. package/src/models/mappers.ts +0 -351
  280. package/src/models/parameters.ts +0 -120
  281. package/src/operations/operations.ts +0 -103
  282. package/src/operations/workspaces.ts +0 -561
  283. package/src/operationsInterfaces/index.ts +0 -10
  284. package/src/operationsInterfaces/operations.ts +0 -22
  285. package/src/operationsInterfaces/workspaces.ts +0 -123
  286. package/src/pagingHelper.ts +0 -39
  287. package/tsconfig.json +0 -37
  288. package/types/arm-workspaces.d.ts +0 -327
  289. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  290. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  291. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  292. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  293. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  294. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  295. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  296. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  297. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  298. /package/{dist-esm/src → dist/browser}/operationsInterfaces/workspaces.js +0 -0
  299. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  300. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  301. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  302. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
@@ -0,0 +1,106 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Workspaces } from "../operationsInterfaces/index.js";
3
+ import { MachineLearningWorkspacesManagementClient } from "../machineLearningWorkspacesManagementClient.js";
4
+ import { Workspace, WorkspacesListByResourceGroupOptionalParams, WorkspacesListOptionalParams, WorkspacesGetOptionalParams, WorkspacesGetResponse, WorkspacesCreateOrUpdateOptionalParams, WorkspacesCreateOrUpdateResponse, WorkspacesDeleteOptionalParams, WorkspaceUpdateParameters, WorkspacesUpdateOptionalParams, WorkspacesUpdateResponse, WorkspacesResyncStorageKeysOptionalParams, WorkspacesListWorkspaceKeysOptionalParams, WorkspacesListWorkspaceKeysResponse } from "../models/index.js";
5
+ /** Class containing Workspaces operations. */
6
+ export declare class WorkspacesImpl implements Workspaces {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Workspaces class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: MachineLearningWorkspacesManagementClient);
13
+ /**
14
+ * Lists all the available machine learning workspaces under the specified resource group.
15
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
16
+ * belongs.
17
+ * @param options The options parameters.
18
+ */
19
+ listByResourceGroup(resourceGroupName: string, options?: WorkspacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Workspace>;
20
+ private listByResourceGroupPagingPage;
21
+ private listByResourceGroupPagingAll;
22
+ /**
23
+ * Lists all the available machine learning workspaces under the specified subscription.
24
+ * @param options The options parameters.
25
+ */
26
+ list(options?: WorkspacesListOptionalParams): PagedAsyncIterableIterator<Workspace>;
27
+ private listPagingPage;
28
+ private listPagingAll;
29
+ /**
30
+ * Gets the properties of the specified machine learning workspace.
31
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
32
+ * belongs.
33
+ * @param workspaceName The name of the machine learning workspace.
34
+ * @param options The options parameters.
35
+ */
36
+ get(resourceGroupName: string, workspaceName: string, options?: WorkspacesGetOptionalParams): Promise<WorkspacesGetResponse>;
37
+ /**
38
+ * Creates or updates a workspace with the specified parameters.
39
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
40
+ * belongs.
41
+ * @param workspaceName The name of the machine learning workspace.
42
+ * @param parameters The parameters for creating or updating a machine learning workspace.
43
+ * @param options The options parameters.
44
+ */
45
+ createOrUpdate(resourceGroupName: string, workspaceName: string, parameters: Workspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise<WorkspacesCreateOrUpdateResponse>;
46
+ /**
47
+ * Deletes a machine learning workspace.
48
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
49
+ * belongs.
50
+ * @param workspaceName The name of the machine learning workspace.
51
+ * @param options The options parameters.
52
+ */
53
+ delete(resourceGroupName: string, workspaceName: string, options?: WorkspacesDeleteOptionalParams): Promise<void>;
54
+ /**
55
+ * Updates a machine learning workspace with the specified parameters.
56
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
57
+ * belongs.
58
+ * @param workspaceName The name of the machine learning workspace.
59
+ * @param parameters The parameters for updating a machine learning workspace.
60
+ * @param options The options parameters.
61
+ */
62
+ update(resourceGroupName: string, workspaceName: string, parameters: WorkspaceUpdateParameters, options?: WorkspacesUpdateOptionalParams): Promise<WorkspacesUpdateResponse>;
63
+ /**
64
+ * Resync storage keys associated with this workspace.
65
+ * @param workspaceName The name of the machine learning workspace.
66
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
67
+ * belongs.
68
+ * @param options The options parameters.
69
+ */
70
+ resyncStorageKeys(workspaceName: string, resourceGroupName: string, options?: WorkspacesResyncStorageKeysOptionalParams): Promise<void>;
71
+ /**
72
+ * List the authorization keys associated with this workspace.
73
+ * @param workspaceName The name of the machine learning workspace.
74
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
75
+ * belongs.
76
+ * @param options The options parameters.
77
+ */
78
+ listWorkspaceKeys(workspaceName: string, resourceGroupName: string, options?: WorkspacesListWorkspaceKeysOptionalParams): Promise<WorkspacesListWorkspaceKeysResponse>;
79
+ /**
80
+ * Lists all the available machine learning workspaces under the specified resource group.
81
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
82
+ * belongs.
83
+ * @param options The options parameters.
84
+ */
85
+ private _listByResourceGroup;
86
+ /**
87
+ * Lists all the available machine learning workspaces under the specified subscription.
88
+ * @param options The options parameters.
89
+ */
90
+ private _list;
91
+ /**
92
+ * ListByResourceGroupNext
93
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
94
+ * belongs.
95
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
96
+ * @param options The options parameters.
97
+ */
98
+ private _listByResourceGroupNext;
99
+ /**
100
+ * ListNext
101
+ * @param nextLink The nextLink from the previous successful call to the List method.
102
+ * @param options The options parameters.
103
+ */
104
+ private _listNext;
105
+ }
106
+ //# sourceMappingURL=workspaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../../src/operations/workspaces.ts"],"names":[],"mappings":"AAQA,OA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A8B,GACvC,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,yBAAyB,EACrC,OAAO,CAAC,EAAE,8BAA8B,GACvC,OAAO,CAAC,wBAAwB,CAAC;IAOpC;;;;;;OAMG;IACH,iBAAiB,CACf,aAAa,EAAE,MAAM,EACrB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;;OAMG;IACH,iBAAiB,CACf,aAAa,EAAE,MAAM,EACrB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,mCAAmC,CAAC;IAO/C;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;;;OAMG;IACH,OAAO,CAAC,wBAAwB;IAWhC;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -0,0 +1,450 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import { setContinuationToken } from "../pagingHelper.js";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers.js";
12
+ import * as Parameters from "../models/parameters.js";
13
+ /// <reference lib="esnext.asynciterable" />
14
+ /** Class containing Workspaces operations. */
15
+ export class WorkspacesImpl {
16
+ /**
17
+ * Initialize a new instance of the class Workspaces class.
18
+ * @param client Reference to the service client
19
+ */
20
+ constructor(client) {
21
+ this.client = client;
22
+ }
23
+ /**
24
+ * Lists all the available machine learning workspaces under the specified resource group.
25
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
26
+ * belongs.
27
+ * @param options The options parameters.
28
+ */
29
+ listByResourceGroup(resourceGroupName, options) {
30
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
31
+ return {
32
+ next() {
33
+ return iter.next();
34
+ },
35
+ [Symbol.asyncIterator]() {
36
+ return this;
37
+ },
38
+ byPage: (settings) => {
39
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
40
+ throw new Error("maxPageSize is not supported by this operation.");
41
+ }
42
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
43
+ }
44
+ };
45
+ }
46
+ listByResourceGroupPagingPage(resourceGroupName, options, settings) {
47
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
48
+ let result;
49
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
+ if (!continuationToken) {
51
+ result = yield __await(this._listByResourceGroup(resourceGroupName, options));
52
+ let page = result.value || [];
53
+ continuationToken = result.nextLink;
54
+ setContinuationToken(page, continuationToken);
55
+ yield yield __await(page);
56
+ }
57
+ while (continuationToken) {
58
+ result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
59
+ continuationToken = result.nextLink;
60
+ let page = result.value || [];
61
+ setContinuationToken(page, continuationToken);
62
+ yield yield __await(page);
63
+ }
64
+ });
65
+ }
66
+ listByResourceGroupPagingAll(resourceGroupName, options) {
67
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
68
+ var _a, e_1, _b, _c;
69
+ try {
70
+ for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
71
+ _c = _f.value;
72
+ _d = false;
73
+ const page = _c;
74
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
75
+ }
76
+ }
77
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
78
+ finally {
79
+ try {
80
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
81
+ }
82
+ finally { if (e_1) throw e_1.error; }
83
+ }
84
+ });
85
+ }
86
+ /**
87
+ * Lists all the available machine learning workspaces under the specified subscription.
88
+ * @param options The options parameters.
89
+ */
90
+ list(options) {
91
+ const iter = this.listPagingAll(options);
92
+ return {
93
+ next() {
94
+ return iter.next();
95
+ },
96
+ [Symbol.asyncIterator]() {
97
+ return this;
98
+ },
99
+ byPage: (settings) => {
100
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
101
+ throw new Error("maxPageSize is not supported by this operation.");
102
+ }
103
+ return this.listPagingPage(options, settings);
104
+ }
105
+ };
106
+ }
107
+ listPagingPage(options, settings) {
108
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
109
+ let result;
110
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
111
+ if (!continuationToken) {
112
+ result = yield __await(this._list(options));
113
+ let page = result.value || [];
114
+ continuationToken = result.nextLink;
115
+ setContinuationToken(page, continuationToken);
116
+ yield yield __await(page);
117
+ }
118
+ while (continuationToken) {
119
+ result = yield __await(this._listNext(continuationToken, options));
120
+ continuationToken = result.nextLink;
121
+ let page = result.value || [];
122
+ setContinuationToken(page, continuationToken);
123
+ yield yield __await(page);
124
+ }
125
+ });
126
+ }
127
+ listPagingAll(options) {
128
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
129
+ var _a, e_2, _b, _c;
130
+ try {
131
+ for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
132
+ _c = _f.value;
133
+ _d = false;
134
+ const page = _c;
135
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
136
+ }
137
+ }
138
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
139
+ finally {
140
+ try {
141
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
142
+ }
143
+ finally { if (e_2) throw e_2.error; }
144
+ }
145
+ });
146
+ }
147
+ /**
148
+ * Gets the properties of the specified machine learning workspace.
149
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
150
+ * belongs.
151
+ * @param workspaceName The name of the machine learning workspace.
152
+ * @param options The options parameters.
153
+ */
154
+ get(resourceGroupName, workspaceName, options) {
155
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, getOperationSpec);
156
+ }
157
+ /**
158
+ * Creates or updates a workspace with the specified parameters.
159
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
160
+ * belongs.
161
+ * @param workspaceName The name of the machine learning workspace.
162
+ * @param parameters The parameters for creating or updating a machine learning workspace.
163
+ * @param options The options parameters.
164
+ */
165
+ createOrUpdate(resourceGroupName, workspaceName, parameters, options) {
166
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, parameters, options }, createOrUpdateOperationSpec);
167
+ }
168
+ /**
169
+ * Deletes a machine learning workspace.
170
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
171
+ * belongs.
172
+ * @param workspaceName The name of the machine learning workspace.
173
+ * @param options The options parameters.
174
+ */
175
+ delete(resourceGroupName, workspaceName, options) {
176
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, deleteOperationSpec);
177
+ }
178
+ /**
179
+ * Updates a machine learning workspace with the specified parameters.
180
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
181
+ * belongs.
182
+ * @param workspaceName The name of the machine learning workspace.
183
+ * @param parameters The parameters for updating a machine learning workspace.
184
+ * @param options The options parameters.
185
+ */
186
+ update(resourceGroupName, workspaceName, parameters, options) {
187
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, parameters, options }, updateOperationSpec);
188
+ }
189
+ /**
190
+ * Resync storage keys associated with this workspace.
191
+ * @param workspaceName The name of the machine learning workspace.
192
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
193
+ * belongs.
194
+ * @param options The options parameters.
195
+ */
196
+ resyncStorageKeys(workspaceName, resourceGroupName, options) {
197
+ return this.client.sendOperationRequest({ workspaceName, resourceGroupName, options }, resyncStorageKeysOperationSpec);
198
+ }
199
+ /**
200
+ * List the authorization keys associated with this workspace.
201
+ * @param workspaceName The name of the machine learning workspace.
202
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
203
+ * belongs.
204
+ * @param options The options parameters.
205
+ */
206
+ listWorkspaceKeys(workspaceName, resourceGroupName, options) {
207
+ return this.client.sendOperationRequest({ workspaceName, resourceGroupName, options }, listWorkspaceKeysOperationSpec);
208
+ }
209
+ /**
210
+ * Lists all the available machine learning workspaces under the specified resource group.
211
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
212
+ * belongs.
213
+ * @param options The options parameters.
214
+ */
215
+ _listByResourceGroup(resourceGroupName, options) {
216
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
217
+ }
218
+ /**
219
+ * Lists all the available machine learning workspaces under the specified subscription.
220
+ * @param options The options parameters.
221
+ */
222
+ _list(options) {
223
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
224
+ }
225
+ /**
226
+ * ListByResourceGroupNext
227
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
228
+ * belongs.
229
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
230
+ * @param options The options parameters.
231
+ */
232
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
233
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
234
+ }
235
+ /**
236
+ * ListNext
237
+ * @param nextLink The nextLink from the previous successful call to the List method.
238
+ * @param options The options parameters.
239
+ */
240
+ _listNext(nextLink, options) {
241
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
242
+ }
243
+ }
244
+ // Operation Specifications
245
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
246
+ const getOperationSpec = {
247
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
248
+ httpMethod: "GET",
249
+ responses: {
250
+ 200: {
251
+ bodyMapper: Mappers.Workspace
252
+ },
253
+ default: {
254
+ bodyMapper: Mappers.ErrorResponse
255
+ }
256
+ },
257
+ queryParameters: [Parameters.apiVersion],
258
+ urlParameters: [
259
+ Parameters.$host,
260
+ Parameters.subscriptionId,
261
+ Parameters.resourceGroupName,
262
+ Parameters.workspaceName
263
+ ],
264
+ headerParameters: [Parameters.accept],
265
+ serializer
266
+ };
267
+ const createOrUpdateOperationSpec = {
268
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
269
+ httpMethod: "PUT",
270
+ responses: {
271
+ 200: {
272
+ bodyMapper: Mappers.Workspace
273
+ },
274
+ default: {
275
+ bodyMapper: Mappers.ErrorResponse
276
+ }
277
+ },
278
+ requestBody: Parameters.parameters,
279
+ queryParameters: [Parameters.apiVersion],
280
+ urlParameters: [
281
+ Parameters.$host,
282
+ Parameters.subscriptionId,
283
+ Parameters.resourceGroupName,
284
+ Parameters.workspaceName
285
+ ],
286
+ headerParameters: [Parameters.accept, Parameters.contentType],
287
+ mediaType: "json",
288
+ serializer
289
+ };
290
+ const deleteOperationSpec = {
291
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
292
+ httpMethod: "DELETE",
293
+ responses: {
294
+ 200: {},
295
+ 204: {},
296
+ default: {
297
+ bodyMapper: Mappers.ErrorResponse
298
+ }
299
+ },
300
+ queryParameters: [Parameters.apiVersion],
301
+ urlParameters: [
302
+ Parameters.$host,
303
+ Parameters.subscriptionId,
304
+ Parameters.resourceGroupName,
305
+ Parameters.workspaceName
306
+ ],
307
+ headerParameters: [Parameters.accept],
308
+ serializer
309
+ };
310
+ const updateOperationSpec = {
311
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
312
+ httpMethod: "PATCH",
313
+ responses: {
314
+ 200: {
315
+ bodyMapper: Mappers.Workspace
316
+ },
317
+ default: {
318
+ bodyMapper: Mappers.ErrorResponse
319
+ }
320
+ },
321
+ requestBody: Parameters.parameters1,
322
+ queryParameters: [Parameters.apiVersion],
323
+ urlParameters: [
324
+ Parameters.$host,
325
+ Parameters.subscriptionId,
326
+ Parameters.resourceGroupName,
327
+ Parameters.workspaceName
328
+ ],
329
+ headerParameters: [Parameters.accept, Parameters.contentType],
330
+ mediaType: "json",
331
+ serializer
332
+ };
333
+ const resyncStorageKeysOperationSpec = {
334
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/resyncStorageKeys",
335
+ httpMethod: "POST",
336
+ responses: {
337
+ 200: {},
338
+ default: {
339
+ bodyMapper: Mappers.ErrorResponse
340
+ }
341
+ },
342
+ queryParameters: [Parameters.apiVersion],
343
+ urlParameters: [
344
+ Parameters.$host,
345
+ Parameters.subscriptionId,
346
+ Parameters.resourceGroupName,
347
+ Parameters.workspaceName
348
+ ],
349
+ headerParameters: [Parameters.accept],
350
+ serializer
351
+ };
352
+ const listWorkspaceKeysOperationSpec = {
353
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/listWorkspaceKeys",
354
+ httpMethod: "POST",
355
+ responses: {
356
+ 200: {
357
+ bodyMapper: Mappers.WorkspaceKeysResponse
358
+ },
359
+ default: {
360
+ bodyMapper: Mappers.ErrorResponse
361
+ }
362
+ },
363
+ queryParameters: [Parameters.apiVersion],
364
+ urlParameters: [
365
+ Parameters.$host,
366
+ Parameters.subscriptionId,
367
+ Parameters.resourceGroupName,
368
+ Parameters.workspaceName
369
+ ],
370
+ headerParameters: [Parameters.accept],
371
+ serializer
372
+ };
373
+ const listByResourceGroupOperationSpec = {
374
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces",
375
+ httpMethod: "GET",
376
+ responses: {
377
+ 200: {
378
+ bodyMapper: Mappers.WorkspaceListResult
379
+ },
380
+ default: {
381
+ bodyMapper: Mappers.ErrorResponse
382
+ }
383
+ },
384
+ queryParameters: [Parameters.apiVersion],
385
+ urlParameters: [
386
+ Parameters.$host,
387
+ Parameters.subscriptionId,
388
+ Parameters.resourceGroupName
389
+ ],
390
+ headerParameters: [Parameters.accept],
391
+ serializer
392
+ };
393
+ const listOperationSpec = {
394
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/workspaces",
395
+ httpMethod: "GET",
396
+ responses: {
397
+ 200: {
398
+ bodyMapper: Mappers.WorkspaceListResult
399
+ },
400
+ default: {
401
+ bodyMapper: Mappers.ErrorResponse
402
+ }
403
+ },
404
+ queryParameters: [Parameters.apiVersion],
405
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
406
+ headerParameters: [Parameters.accept],
407
+ serializer
408
+ };
409
+ const listByResourceGroupNextOperationSpec = {
410
+ path: "{nextLink}",
411
+ httpMethod: "GET",
412
+ responses: {
413
+ 200: {
414
+ bodyMapper: Mappers.WorkspaceListResult
415
+ },
416
+ default: {
417
+ bodyMapper: Mappers.ErrorResponse
418
+ }
419
+ },
420
+ queryParameters: [Parameters.apiVersion],
421
+ urlParameters: [
422
+ Parameters.$host,
423
+ Parameters.subscriptionId,
424
+ Parameters.resourceGroupName,
425
+ Parameters.nextLink
426
+ ],
427
+ headerParameters: [Parameters.accept],
428
+ serializer
429
+ };
430
+ const listNextOperationSpec = {
431
+ path: "{nextLink}",
432
+ httpMethod: "GET",
433
+ responses: {
434
+ 200: {
435
+ bodyMapper: Mappers.WorkspaceListResult
436
+ },
437
+ default: {
438
+ bodyMapper: Mappers.ErrorResponse
439
+ }
440
+ },
441
+ queryParameters: [Parameters.apiVersion],
442
+ urlParameters: [
443
+ Parameters.$host,
444
+ Parameters.subscriptionId,
445
+ Parameters.nextLink
446
+ ],
447
+ headerParameters: [Parameters.accept],
448
+ serializer
449
+ };
450
+ //# sourceMappingURL=workspaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../../src/operations/workspaces.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAyBtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAiD;QAC3D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,OAAqD;QAErD,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,6BAA6B,CACvC,iBAAiB,EACjB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,6BAA6B,CAC1C,iBAAyB,EACzB,OAAqD,EACrD,QAAuB;;YAEvB,IAAI,MAA6C,CAAC;YAClD,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ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,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Workspaces } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MachineLearningWorkspacesManagementClient } from \"../machineLearningWorkspacesManagementClient.js\";\nimport {\n Workspace,\n WorkspacesListByResourceGroupNextOptionalParams,\n WorkspacesListByResourceGroupOptionalParams,\n WorkspacesListByResourceGroupResponse,\n WorkspacesListNextOptionalParams,\n WorkspacesListOptionalParams,\n WorkspacesListResponse,\n WorkspacesGetOptionalParams,\n WorkspacesGetResponse,\n WorkspacesCreateOrUpdateOptionalParams,\n WorkspacesCreateOrUpdateResponse,\n WorkspacesDeleteOptionalParams,\n WorkspaceUpdateParameters,\n WorkspacesUpdateOptionalParams,\n WorkspacesUpdateResponse,\n WorkspacesResyncStorageKeysOptionalParams,\n WorkspacesListWorkspaceKeysOptionalParams,\n WorkspacesListWorkspaceKeysResponse,\n WorkspacesListByResourceGroupNextResponse,\n WorkspacesListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Workspaces operations. */\nexport class WorkspacesImpl implements Workspaces {\n private readonly client: MachineLearningWorkspacesManagementClient;\n\n /**\n * Initialize a new instance of the class Workspaces class.\n * @param client Reference to the service client\n */\n constructor(client: MachineLearningWorkspacesManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all the available machine learning workspaces under the specified resource group.\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: WorkspacesListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<Workspace> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: WorkspacesListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Workspace[]> {\n let result: WorkspacesListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: WorkspacesListByResourceGroupOptionalParams\n ): AsyncIterableIterator<Workspace> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all the available machine learning workspaces under the specified subscription.\n * @param options The options parameters.\n */\n public list(\n options?: WorkspacesListOptionalParams\n ): PagedAsyncIterableIterator<Workspace> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: WorkspacesListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Workspace[]> {\n let result: WorkspacesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: WorkspacesListOptionalParams\n ): AsyncIterableIterator<Workspace> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the properties of the specified machine learning workspace.\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param workspaceName The name of the machine learning workspace.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n options?: WorkspacesGetOptionalParams\n ): Promise<WorkspacesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates a workspace with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param workspaceName The name of the machine learning workspace.\n * @param parameters The parameters for creating or updating a machine learning workspace.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n workspaceName: string,\n parameters: Workspace,\n options?: WorkspacesCreateOrUpdateOptionalParams\n ): Promise<WorkspacesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes a machine learning workspace.\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param workspaceName The name of the machine learning workspace.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n options?: WorkspacesDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Updates a machine learning workspace with the specified parameters.\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param workspaceName The name of the machine learning workspace.\n * @param parameters The parameters for updating a machine learning workspace.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n workspaceName: string,\n parameters: WorkspaceUpdateParameters,\n options?: WorkspacesUpdateOptionalParams\n ): Promise<WorkspacesUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, parameters, options },\n updateOperationSpec\n );\n }\n\n /**\n * Resync storage keys associated with this workspace.\n * @param workspaceName The name of the machine learning workspace.\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param options The options parameters.\n */\n resyncStorageKeys(\n workspaceName: string,\n resourceGroupName: string,\n options?: WorkspacesResyncStorageKeysOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { workspaceName, resourceGroupName, options },\n resyncStorageKeysOperationSpec\n );\n }\n\n /**\n * List the authorization keys associated with this workspace.\n * @param workspaceName The name of the machine learning workspace.\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param options The options parameters.\n */\n listWorkspaceKeys(\n workspaceName: string,\n resourceGroupName: string,\n options?: WorkspacesListWorkspaceKeysOptionalParams\n ): Promise<WorkspacesListWorkspaceKeysResponse> {\n return this.client.sendOperationRequest(\n { workspaceName, resourceGroupName, options },\n listWorkspaceKeysOperationSpec\n );\n }\n\n /**\n * Lists all the available machine learning workspaces under the specified resource group.\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: WorkspacesListByResourceGroupOptionalParams\n ): Promise<WorkspacesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Lists all the available machine learning workspaces under the specified subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: WorkspacesListOptionalParams\n ): Promise<WorkspacesListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group to which the machine learning workspace\n * belongs.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: WorkspacesListByResourceGroupNextOptionalParams\n ): Promise<WorkspacesListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: WorkspacesListNextOptionalParams\n ): Promise<WorkspacesListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Workspace\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Workspace\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Workspace\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst resyncStorageKeysOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/resyncStorageKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listWorkspaceKeysOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/listWorkspaceKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceKeysResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/workspaces\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkspaceListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,3 @@
1
+ export * from "./operations.js";
2
+ export * from "./workspaces.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,10 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export * from "./operations.js";
9
+ export * from "./workspaces.js";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./operations.js\";\nexport * from \"./workspaces.js\";\n"]}
@@ -0,0 +1,11 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operation, OperationsListOptionalParams } from "../models/index.js";
3
+ /** Interface representing a Operations. */
4
+ export interface Operations {
5
+ /**
6
+ * Lists all of the available Azure Machine Learning Studio REST API operations.
7
+ * @param options The options parameters.
8
+ */
9
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
10
+ }
11
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAG7E,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"}