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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,454 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.WorkspacesImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const pagingHelper_js_1 = require("../pagingHelper.js");
13
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ /// <reference lib="esnext.asynciterable" />
17
+ /** Class containing Workspaces operations. */
18
+ class WorkspacesImpl {
19
+ /**
20
+ * Initialize a new instance of the class Workspaces class.
21
+ * @param client Reference to the service client
22
+ */
23
+ constructor(client) {
24
+ this.client = client;
25
+ }
26
+ /**
27
+ * Lists all the available machine learning workspaces under the specified resource group.
28
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
29
+ * belongs.
30
+ * @param options The options parameters.
31
+ */
32
+ listByResourceGroup(resourceGroupName, options) {
33
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
34
+ return {
35
+ next() {
36
+ return iter.next();
37
+ },
38
+ [Symbol.asyncIterator]() {
39
+ return this;
40
+ },
41
+ byPage: (settings) => {
42
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
43
+ throw new Error("maxPageSize is not supported by this operation.");
44
+ }
45
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
46
+ }
47
+ };
48
+ }
49
+ listByResourceGroupPagingPage(resourceGroupName, options, settings) {
50
+ return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
51
+ let result;
52
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
53
+ if (!continuationToken) {
54
+ result = yield tslib_1.__await(this._listByResourceGroup(resourceGroupName, options));
55
+ let page = result.value || [];
56
+ continuationToken = result.nextLink;
57
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
+ yield yield tslib_1.__await(page);
59
+ }
60
+ while (continuationToken) {
61
+ result = yield tslib_1.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
62
+ continuationToken = result.nextLink;
63
+ let page = result.value || [];
64
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
65
+ yield yield tslib_1.__await(page);
66
+ }
67
+ });
68
+ }
69
+ listByResourceGroupPagingAll(resourceGroupName, options) {
70
+ return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
71
+ var _a, e_1, _b, _c;
72
+ try {
73
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
74
+ _c = _f.value;
75
+ _d = false;
76
+ const page = _c;
77
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
78
+ }
79
+ }
80
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
81
+ finally {
82
+ try {
83
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
84
+ }
85
+ finally { if (e_1) throw e_1.error; }
86
+ }
87
+ });
88
+ }
89
+ /**
90
+ * Lists all the available machine learning workspaces under the specified subscription.
91
+ * @param options The options parameters.
92
+ */
93
+ list(options) {
94
+ const iter = this.listPagingAll(options);
95
+ return {
96
+ next() {
97
+ return iter.next();
98
+ },
99
+ [Symbol.asyncIterator]() {
100
+ return this;
101
+ },
102
+ byPage: (settings) => {
103
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
104
+ throw new Error("maxPageSize is not supported by this operation.");
105
+ }
106
+ return this.listPagingPage(options, settings);
107
+ }
108
+ };
109
+ }
110
+ listPagingPage(options, settings) {
111
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
112
+ let result;
113
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
114
+ if (!continuationToken) {
115
+ result = yield tslib_1.__await(this._list(options));
116
+ let page = result.value || [];
117
+ continuationToken = result.nextLink;
118
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
119
+ yield yield tslib_1.__await(page);
120
+ }
121
+ while (continuationToken) {
122
+ result = yield tslib_1.__await(this._listNext(continuationToken, options));
123
+ continuationToken = result.nextLink;
124
+ let page = result.value || [];
125
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
126
+ yield yield tslib_1.__await(page);
127
+ }
128
+ });
129
+ }
130
+ listPagingAll(options) {
131
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
132
+ var _a, e_2, _b, _c;
133
+ try {
134
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
135
+ _c = _f.value;
136
+ _d = false;
137
+ const page = _c;
138
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
139
+ }
140
+ }
141
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
142
+ finally {
143
+ try {
144
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
145
+ }
146
+ finally { if (e_2) throw e_2.error; }
147
+ }
148
+ });
149
+ }
150
+ /**
151
+ * Gets the properties of the specified machine learning workspace.
152
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
153
+ * belongs.
154
+ * @param workspaceName The name of the machine learning workspace.
155
+ * @param options The options parameters.
156
+ */
157
+ get(resourceGroupName, workspaceName, options) {
158
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, getOperationSpec);
159
+ }
160
+ /**
161
+ * Creates or updates a workspace with the specified parameters.
162
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
163
+ * belongs.
164
+ * @param workspaceName The name of the machine learning workspace.
165
+ * @param parameters The parameters for creating or updating a machine learning workspace.
166
+ * @param options The options parameters.
167
+ */
168
+ createOrUpdate(resourceGroupName, workspaceName, parameters, options) {
169
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, parameters, options }, createOrUpdateOperationSpec);
170
+ }
171
+ /**
172
+ * Deletes a machine learning workspace.
173
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
174
+ * belongs.
175
+ * @param workspaceName The name of the machine learning workspace.
176
+ * @param options The options parameters.
177
+ */
178
+ delete(resourceGroupName, workspaceName, options) {
179
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, deleteOperationSpec);
180
+ }
181
+ /**
182
+ * Updates a machine learning workspace with the specified parameters.
183
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
184
+ * belongs.
185
+ * @param workspaceName The name of the machine learning workspace.
186
+ * @param parameters The parameters for updating a machine learning workspace.
187
+ * @param options The options parameters.
188
+ */
189
+ update(resourceGroupName, workspaceName, parameters, options) {
190
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, parameters, options }, updateOperationSpec);
191
+ }
192
+ /**
193
+ * Resync storage keys associated with this workspace.
194
+ * @param workspaceName The name of the machine learning workspace.
195
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
196
+ * belongs.
197
+ * @param options The options parameters.
198
+ */
199
+ resyncStorageKeys(workspaceName, resourceGroupName, options) {
200
+ return this.client.sendOperationRequest({ workspaceName, resourceGroupName, options }, resyncStorageKeysOperationSpec);
201
+ }
202
+ /**
203
+ * List the authorization keys associated with this workspace.
204
+ * @param workspaceName The name of the machine learning workspace.
205
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
206
+ * belongs.
207
+ * @param options The options parameters.
208
+ */
209
+ listWorkspaceKeys(workspaceName, resourceGroupName, options) {
210
+ return this.client.sendOperationRequest({ workspaceName, resourceGroupName, options }, listWorkspaceKeysOperationSpec);
211
+ }
212
+ /**
213
+ * Lists all the available machine learning workspaces under the specified resource group.
214
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
215
+ * belongs.
216
+ * @param options The options parameters.
217
+ */
218
+ _listByResourceGroup(resourceGroupName, options) {
219
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
220
+ }
221
+ /**
222
+ * Lists all the available machine learning workspaces under the specified subscription.
223
+ * @param options The options parameters.
224
+ */
225
+ _list(options) {
226
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
227
+ }
228
+ /**
229
+ * ListByResourceGroupNext
230
+ * @param resourceGroupName The name of the resource group to which the machine learning workspace
231
+ * belongs.
232
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
233
+ * @param options The options parameters.
234
+ */
235
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
236
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
237
+ }
238
+ /**
239
+ * ListNext
240
+ * @param nextLink The nextLink from the previous successful call to the List method.
241
+ * @param options The options parameters.
242
+ */
243
+ _listNext(nextLink, options) {
244
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
245
+ }
246
+ }
247
+ exports.WorkspacesImpl = WorkspacesImpl;
248
+ // Operation Specifications
249
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
250
+ const getOperationSpec = {
251
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
252
+ httpMethod: "GET",
253
+ responses: {
254
+ 200: {
255
+ bodyMapper: Mappers.Workspace
256
+ },
257
+ default: {
258
+ bodyMapper: Mappers.ErrorResponse
259
+ }
260
+ },
261
+ queryParameters: [Parameters.apiVersion],
262
+ urlParameters: [
263
+ Parameters.$host,
264
+ Parameters.subscriptionId,
265
+ Parameters.resourceGroupName,
266
+ Parameters.workspaceName
267
+ ],
268
+ headerParameters: [Parameters.accept],
269
+ serializer
270
+ };
271
+ const createOrUpdateOperationSpec = {
272
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
273
+ httpMethod: "PUT",
274
+ responses: {
275
+ 200: {
276
+ bodyMapper: Mappers.Workspace
277
+ },
278
+ default: {
279
+ bodyMapper: Mappers.ErrorResponse
280
+ }
281
+ },
282
+ requestBody: Parameters.parameters,
283
+ queryParameters: [Parameters.apiVersion],
284
+ urlParameters: [
285
+ Parameters.$host,
286
+ Parameters.subscriptionId,
287
+ Parameters.resourceGroupName,
288
+ Parameters.workspaceName
289
+ ],
290
+ headerParameters: [Parameters.accept, Parameters.contentType],
291
+ mediaType: "json",
292
+ serializer
293
+ };
294
+ const deleteOperationSpec = {
295
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
296
+ httpMethod: "DELETE",
297
+ responses: {
298
+ 200: {},
299
+ 204: {},
300
+ default: {
301
+ bodyMapper: Mappers.ErrorResponse
302
+ }
303
+ },
304
+ queryParameters: [Parameters.apiVersion],
305
+ urlParameters: [
306
+ Parameters.$host,
307
+ Parameters.subscriptionId,
308
+ Parameters.resourceGroupName,
309
+ Parameters.workspaceName
310
+ ],
311
+ headerParameters: [Parameters.accept],
312
+ serializer
313
+ };
314
+ const updateOperationSpec = {
315
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}",
316
+ httpMethod: "PATCH",
317
+ responses: {
318
+ 200: {
319
+ bodyMapper: Mappers.Workspace
320
+ },
321
+ default: {
322
+ bodyMapper: Mappers.ErrorResponse
323
+ }
324
+ },
325
+ requestBody: Parameters.parameters1,
326
+ queryParameters: [Parameters.apiVersion],
327
+ urlParameters: [
328
+ Parameters.$host,
329
+ Parameters.subscriptionId,
330
+ Parameters.resourceGroupName,
331
+ Parameters.workspaceName
332
+ ],
333
+ headerParameters: [Parameters.accept, Parameters.contentType],
334
+ mediaType: "json",
335
+ serializer
336
+ };
337
+ const resyncStorageKeysOperationSpec = {
338
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/resyncStorageKeys",
339
+ httpMethod: "POST",
340
+ responses: {
341
+ 200: {},
342
+ default: {
343
+ bodyMapper: Mappers.ErrorResponse
344
+ }
345
+ },
346
+ queryParameters: [Parameters.apiVersion],
347
+ urlParameters: [
348
+ Parameters.$host,
349
+ Parameters.subscriptionId,
350
+ Parameters.resourceGroupName,
351
+ Parameters.workspaceName
352
+ ],
353
+ headerParameters: [Parameters.accept],
354
+ serializer
355
+ };
356
+ const listWorkspaceKeysOperationSpec = {
357
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}/listWorkspaceKeys",
358
+ httpMethod: "POST",
359
+ responses: {
360
+ 200: {
361
+ bodyMapper: Mappers.WorkspaceKeysResponse
362
+ },
363
+ default: {
364
+ bodyMapper: Mappers.ErrorResponse
365
+ }
366
+ },
367
+ queryParameters: [Parameters.apiVersion],
368
+ urlParameters: [
369
+ Parameters.$host,
370
+ Parameters.subscriptionId,
371
+ Parameters.resourceGroupName,
372
+ Parameters.workspaceName
373
+ ],
374
+ headerParameters: [Parameters.accept],
375
+ serializer
376
+ };
377
+ const listByResourceGroupOperationSpec = {
378
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces",
379
+ httpMethod: "GET",
380
+ responses: {
381
+ 200: {
382
+ bodyMapper: Mappers.WorkspaceListResult
383
+ },
384
+ default: {
385
+ bodyMapper: Mappers.ErrorResponse
386
+ }
387
+ },
388
+ queryParameters: [Parameters.apiVersion],
389
+ urlParameters: [
390
+ Parameters.$host,
391
+ Parameters.subscriptionId,
392
+ Parameters.resourceGroupName
393
+ ],
394
+ headerParameters: [Parameters.accept],
395
+ serializer
396
+ };
397
+ const listOperationSpec = {
398
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearning/workspaces",
399
+ httpMethod: "GET",
400
+ responses: {
401
+ 200: {
402
+ bodyMapper: Mappers.WorkspaceListResult
403
+ },
404
+ default: {
405
+ bodyMapper: Mappers.ErrorResponse
406
+ }
407
+ },
408
+ queryParameters: [Parameters.apiVersion],
409
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
410
+ headerParameters: [Parameters.accept],
411
+ serializer
412
+ };
413
+ const listByResourceGroupNextOperationSpec = {
414
+ path: "{nextLink}",
415
+ httpMethod: "GET",
416
+ responses: {
417
+ 200: {
418
+ bodyMapper: Mappers.WorkspaceListResult
419
+ },
420
+ default: {
421
+ bodyMapper: Mappers.ErrorResponse
422
+ }
423
+ },
424
+ queryParameters: [Parameters.apiVersion],
425
+ urlParameters: [
426
+ Parameters.$host,
427
+ Parameters.subscriptionId,
428
+ Parameters.resourceGroupName,
429
+ Parameters.nextLink
430
+ ],
431
+ headerParameters: [Parameters.accept],
432
+ serializer
433
+ };
434
+ const listNextOperationSpec = {
435
+ path: "{nextLink}",
436
+ httpMethod: "GET",
437
+ responses: {
438
+ 200: {
439
+ bodyMapper: Mappers.WorkspaceListResult
440
+ },
441
+ default: {
442
+ bodyMapper: Mappers.ErrorResponse
443
+ }
444
+ },
445
+ queryParameters: [Parameters.apiVersion],
446
+ urlParameters: [
447
+ Parameters.$host,
448
+ Parameters.subscriptionId,
449
+ Parameters.nextLink
450
+ ],
451
+ headerParameters: [Parameters.accept],
452
+ serializer
453
+ };
454
+ //# sourceMappingURL=workspaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../../src/operations/workspaces.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAyBtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,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,6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,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,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,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,13 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * Code generated by Microsoft (R) AutoRest Code Generator.
7
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ const tslib_1 = require("tslib");
11
+ tslib_1.__exportStar(require("./operations.js"), exports);
12
+ tslib_1.__exportStar(require("./workspaces.js"), exports);
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,0DAAgC;AAChC,0DAAgC","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