@azure/arm-machinelearningcompute 3.0.0-beta.3 → 3.0.0-beta.4

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