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