@azure/arm-cognitiveservices 7.7.0-beta.1 → 7.7.0

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 (615) hide show
  1. package/CHANGELOG.md +113 -0
  2. package/README.md +1 -1
  3. package/dist/browser/cognitiveServicesManagementClient.d.ts +3 -3
  4. package/dist/browser/cognitiveServicesManagementClient.d.ts.map +1 -1
  5. package/dist/browser/cognitiveServicesManagementClient.js +55 -16
  6. package/dist/browser/cognitiveServicesManagementClient.js.map +1 -1
  7. package/dist/browser/lroImpl.d.ts.map +1 -1
  8. package/dist/browser/lroImpl.js +7 -3
  9. package/dist/browser/lroImpl.js.map +1 -1
  10. package/dist/browser/models/index.d.ts +36 -32
  11. package/dist/browser/models/index.d.ts.map +1 -1
  12. package/dist/browser/models/index.js.map +1 -1
  13. package/dist/browser/models/mappers.d.ts.map +1 -1
  14. package/dist/browser/models/mappers.js +292 -126
  15. package/dist/browser/models/mappers.js.map +1 -1
  16. package/dist/browser/models/parameters.d.ts +3 -3
  17. package/dist/browser/models/parameters.d.ts.map +1 -1
  18. package/dist/browser/models/parameters.js +7 -7
  19. package/dist/browser/models/parameters.js.map +1 -1
  20. package/dist/browser/operations/accountCapabilityHosts.d.ts +4 -4
  21. package/dist/browser/operations/accountCapabilityHosts.d.ts.map +1 -1
  22. package/dist/browser/operations/accountCapabilityHosts.js +31 -20
  23. package/dist/browser/operations/accountCapabilityHosts.js.map +1 -1
  24. package/dist/browser/operations/{accountConnection.d.ts → accountConnections.d.ts} +11 -11
  25. package/dist/browser/operations/accountConnections.d.ts.map +1 -0
  26. package/dist/{react-native/operations/accountConnection.js → browser/operations/accountConnections.js} +29 -46
  27. package/dist/browser/operations/accountConnections.js.map +1 -0
  28. package/dist/browser/operations/accounts.d.ts.map +1 -1
  29. package/dist/browser/operations/accounts.js +112 -140
  30. package/dist/browser/operations/accounts.js.map +1 -1
  31. package/dist/browser/operations/commitmentPlans.d.ts.map +1 -1
  32. package/dist/browser/operations/commitmentPlans.js +166 -196
  33. package/dist/browser/operations/commitmentPlans.js.map +1 -1
  34. package/dist/browser/operations/commitmentTiers.d.ts.map +1 -1
  35. package/dist/browser/operations/commitmentTiers.js +28 -41
  36. package/dist/browser/operations/commitmentTiers.js.map +1 -1
  37. package/dist/browser/operations/defenderForAISettings.d.ts.map +1 -1
  38. package/dist/browser/operations/defenderForAISettings.js +23 -40
  39. package/dist/browser/operations/defenderForAISettings.js.map +1 -1
  40. package/dist/browser/operations/deletedAccounts.d.ts.map +1 -1
  41. package/dist/browser/operations/deletedAccounts.js +40 -48
  42. package/dist/browser/operations/deletedAccounts.js.map +1 -1
  43. package/dist/browser/operations/deployments.d.ts.map +1 -1
  44. package/dist/browser/operations/deployments.js +79 -98
  45. package/dist/browser/operations/deployments.js.map +1 -1
  46. package/dist/browser/operations/encryptionScopes.d.ts.map +1 -1
  47. package/dist/browser/operations/encryptionScopes.js +35 -47
  48. package/dist/browser/operations/encryptionScopes.js.map +1 -1
  49. package/dist/browser/operations/index.d.ts +2 -2
  50. package/dist/browser/operations/index.d.ts.map +1 -1
  51. package/dist/browser/operations/index.js +2 -2
  52. package/dist/browser/operations/index.js.map +1 -1
  53. package/dist/browser/operations/locationBasedModelCapacities.d.ts.map +1 -1
  54. package/dist/browser/operations/locationBasedModelCapacities.js +28 -41
  55. package/dist/browser/operations/locationBasedModelCapacities.js.map +1 -1
  56. package/dist/browser/operations/modelCapacities.d.ts.map +1 -1
  57. package/dist/browser/operations/modelCapacities.js +28 -41
  58. package/dist/browser/operations/modelCapacities.js.map +1 -1
  59. package/dist/browser/operations/models.d.ts.map +1 -1
  60. package/dist/browser/operations/models.js +28 -41
  61. package/dist/browser/operations/models.js.map +1 -1
  62. package/dist/browser/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
  63. package/dist/browser/operations/networkSecurityPerimeterConfigurations.js +35 -47
  64. package/dist/browser/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
  65. package/dist/browser/operations/operations.d.ts.map +1 -1
  66. package/dist/browser/operations/operations.js +23 -40
  67. package/dist/browser/operations/operations.js.map +1 -1
  68. package/dist/browser/operations/privateEndpointConnections.d.ts.map +1 -1
  69. package/dist/browser/operations/privateEndpointConnections.js +24 -13
  70. package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
  71. package/dist/browser/operations/privateLinkResources.js +1 -0
  72. package/dist/browser/operations/privateLinkResources.js.map +1 -1
  73. package/dist/browser/operations/projectCapabilityHosts.d.ts +4 -4
  74. package/dist/browser/operations/projectCapabilityHosts.d.ts.map +1 -1
  75. package/dist/browser/operations/projectCapabilityHosts.js +31 -20
  76. package/dist/browser/operations/projectCapabilityHosts.js.map +1 -1
  77. package/dist/{commonjs/operations/projectConnection.d.ts → browser/operations/projectConnections.d.ts} +11 -11
  78. package/dist/browser/operations/projectConnections.d.ts.map +1 -0
  79. package/dist/browser/operations/{projectConnection.js → projectConnections.js} +29 -46
  80. package/dist/browser/operations/projectConnections.js.map +1 -0
  81. package/dist/browser/operations/projects.d.ts.map +1 -1
  82. package/dist/browser/operations/projects.js +57 -59
  83. package/dist/browser/operations/projects.js.map +1 -1
  84. package/dist/browser/operations/raiBlocklistItems.d.ts.map +1 -1
  85. package/dist/browser/operations/raiBlocklistItems.js +35 -47
  86. package/dist/browser/operations/raiBlocklistItems.js.map +1 -1
  87. package/dist/browser/operations/raiBlocklists.d.ts.map +1 -1
  88. package/dist/browser/operations/raiBlocklists.js +35 -47
  89. package/dist/browser/operations/raiBlocklists.js.map +1 -1
  90. package/dist/browser/operations/raiContentFilters.d.ts.map +1 -1
  91. package/dist/browser/operations/raiContentFilters.js +28 -41
  92. package/dist/browser/operations/raiContentFilters.js.map +1 -1
  93. package/dist/browser/operations/raiPolicies.d.ts.map +1 -1
  94. package/dist/browser/operations/raiPolicies.js +35 -47
  95. package/dist/browser/operations/raiPolicies.js.map +1 -1
  96. package/dist/browser/operations/resourceSkus.d.ts.map +1 -1
  97. package/dist/browser/operations/resourceSkus.js +28 -41
  98. package/dist/browser/operations/resourceSkus.js.map +1 -1
  99. package/dist/browser/operations/usages.d.ts.map +1 -1
  100. package/dist/browser/operations/usages.js +28 -41
  101. package/dist/browser/operations/usages.js.map +1 -1
  102. package/dist/browser/operationsInterfaces/accountCapabilityHosts.d.ts +4 -4
  103. package/dist/browser/operationsInterfaces/accountCapabilityHosts.d.ts.map +1 -1
  104. package/dist/browser/operationsInterfaces/accountCapabilityHosts.js.map +1 -1
  105. package/dist/{esm/operationsInterfaces/accountConnection.d.ts → browser/operationsInterfaces/accountConnections.d.ts} +9 -9
  106. package/dist/browser/operationsInterfaces/accountConnections.d.ts.map +1 -0
  107. package/dist/browser/operationsInterfaces/{accountConnection.js → accountConnections.js} +1 -1
  108. package/dist/browser/operationsInterfaces/accountConnections.js.map +1 -0
  109. package/dist/browser/operationsInterfaces/accounts.d.ts.map +1 -1
  110. package/dist/browser/operationsInterfaces/accounts.js.map +1 -1
  111. package/dist/browser/operationsInterfaces/commitmentTiers.d.ts.map +1 -1
  112. package/dist/browser/operationsInterfaces/commitmentTiers.js.map +1 -1
  113. package/dist/browser/operationsInterfaces/deletedAccounts.d.ts.map +1 -1
  114. package/dist/browser/operationsInterfaces/deletedAccounts.js.map +1 -1
  115. package/dist/browser/operationsInterfaces/deployments.d.ts.map +1 -1
  116. package/dist/browser/operationsInterfaces/deployments.js.map +1 -1
  117. package/dist/browser/operationsInterfaces/encryptionScopes.d.ts.map +1 -1
  118. package/dist/browser/operationsInterfaces/encryptionScopes.js.map +1 -1
  119. package/dist/browser/operationsInterfaces/index.d.ts +2 -2
  120. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
  121. package/dist/browser/operationsInterfaces/index.js +2 -2
  122. package/dist/browser/operationsInterfaces/index.js.map +1 -1
  123. package/dist/browser/operationsInterfaces/models.d.ts.map +1 -1
  124. package/dist/browser/operationsInterfaces/models.js.map +1 -1
  125. package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -1
  126. package/dist/browser/operationsInterfaces/operations.js.map +1 -1
  127. package/dist/browser/operationsInterfaces/projectCapabilityHosts.d.ts +4 -4
  128. package/dist/browser/operationsInterfaces/projectCapabilityHosts.d.ts.map +1 -1
  129. package/dist/browser/operationsInterfaces/projectCapabilityHosts.js.map +1 -1
  130. package/dist/{esm/operationsInterfaces/projectConnection.d.ts → browser/operationsInterfaces/projectConnections.d.ts} +9 -9
  131. package/dist/browser/operationsInterfaces/projectConnections.d.ts.map +1 -0
  132. package/dist/browser/operationsInterfaces/{projectConnection.js → projectConnections.js} +1 -1
  133. package/dist/browser/operationsInterfaces/projectConnections.js.map +1 -0
  134. package/dist/browser/operationsInterfaces/projects.d.ts.map +1 -1
  135. package/dist/browser/operationsInterfaces/projects.js.map +1 -1
  136. package/dist/browser/operationsInterfaces/raiBlocklists.d.ts.map +1 -1
  137. package/dist/browser/operationsInterfaces/raiBlocklists.js.map +1 -1
  138. package/dist/browser/operationsInterfaces/raiPolicies.d.ts.map +1 -1
  139. package/dist/browser/operationsInterfaces/raiPolicies.js.map +1 -1
  140. package/dist/browser/operationsInterfaces/resourceSkus.d.ts.map +1 -1
  141. package/dist/browser/operationsInterfaces/resourceSkus.js.map +1 -1
  142. package/dist/browser/operationsInterfaces/usages.d.ts.map +1 -1
  143. package/dist/browser/operationsInterfaces/usages.js.map +1 -1
  144. package/dist/browser/pagingHelper.d.ts.map +1 -1
  145. package/dist/browser/pagingHelper.js +2 -4
  146. package/dist/browser/pagingHelper.js.map +1 -1
  147. package/dist/commonjs/cognitiveServicesManagementClient.d.ts +3 -3
  148. package/dist/commonjs/cognitiveServicesManagementClient.d.ts.map +1 -1
  149. package/dist/commonjs/cognitiveServicesManagementClient.js +54 -15
  150. package/dist/commonjs/cognitiveServicesManagementClient.js.map +1 -1
  151. package/dist/commonjs/lroImpl.d.ts.map +1 -1
  152. package/dist/commonjs/lroImpl.js +7 -3
  153. package/dist/commonjs/lroImpl.js.map +1 -1
  154. package/dist/commonjs/models/index.d.ts +36 -32
  155. package/dist/commonjs/models/index.d.ts.map +1 -1
  156. package/dist/commonjs/models/index.js.map +1 -1
  157. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  158. package/dist/commonjs/models/mappers.js +292 -126
  159. package/dist/commonjs/models/mappers.js.map +1 -1
  160. package/dist/commonjs/models/parameters.d.ts +3 -3
  161. package/dist/commonjs/models/parameters.d.ts.map +1 -1
  162. package/dist/commonjs/models/parameters.js +8 -8
  163. package/dist/commonjs/models/parameters.js.map +1 -1
  164. package/dist/commonjs/operations/accountCapabilityHosts.d.ts +4 -4
  165. package/dist/commonjs/operations/accountCapabilityHosts.d.ts.map +1 -1
  166. package/dist/commonjs/operations/accountCapabilityHosts.js +30 -19
  167. package/dist/commonjs/operations/accountCapabilityHosts.js.map +1 -1
  168. package/dist/{esm/operations/accountConnection.d.ts → commonjs/operations/accountConnections.d.ts} +11 -11
  169. package/dist/commonjs/operations/accountConnections.d.ts.map +1 -0
  170. package/dist/commonjs/operations/{accountConnection.js → accountConnections.js} +31 -47
  171. package/dist/commonjs/operations/accountConnections.js.map +1 -0
  172. package/dist/commonjs/operations/accounts.d.ts.map +1 -1
  173. package/dist/commonjs/operations/accounts.js +111 -138
  174. package/dist/commonjs/operations/accounts.js.map +1 -1
  175. package/dist/commonjs/operations/commitmentPlans.d.ts.map +1 -1
  176. package/dist/commonjs/operations/commitmentPlans.js +165 -194
  177. package/dist/commonjs/operations/commitmentPlans.js.map +1 -1
  178. package/dist/commonjs/operations/commitmentTiers.d.ts.map +1 -1
  179. package/dist/commonjs/operations/commitmentTiers.js +28 -40
  180. package/dist/commonjs/operations/commitmentTiers.js.map +1 -1
  181. package/dist/commonjs/operations/defenderForAISettings.d.ts.map +1 -1
  182. package/dist/commonjs/operations/defenderForAISettings.js +23 -39
  183. package/dist/commonjs/operations/defenderForAISettings.js.map +1 -1
  184. package/dist/commonjs/operations/deletedAccounts.d.ts.map +1 -1
  185. package/dist/commonjs/operations/deletedAccounts.js +39 -46
  186. package/dist/commonjs/operations/deletedAccounts.js.map +1 -1
  187. package/dist/commonjs/operations/deployments.d.ts.map +1 -1
  188. package/dist/commonjs/operations/deployments.js +78 -96
  189. package/dist/commonjs/operations/deployments.js.map +1 -1
  190. package/dist/commonjs/operations/encryptionScopes.d.ts.map +1 -1
  191. package/dist/commonjs/operations/encryptionScopes.js +34 -45
  192. package/dist/commonjs/operations/encryptionScopes.js.map +1 -1
  193. package/dist/commonjs/operations/index.d.ts +2 -2
  194. package/dist/commonjs/operations/index.d.ts.map +1 -1
  195. package/dist/commonjs/operations/index.js +2 -2
  196. package/dist/commonjs/operations/index.js.map +1 -1
  197. package/dist/commonjs/operations/locationBasedModelCapacities.d.ts.map +1 -1
  198. package/dist/commonjs/operations/locationBasedModelCapacities.js +28 -40
  199. package/dist/commonjs/operations/locationBasedModelCapacities.js.map +1 -1
  200. package/dist/commonjs/operations/modelCapacities.d.ts.map +1 -1
  201. package/dist/commonjs/operations/modelCapacities.js +28 -40
  202. package/dist/commonjs/operations/modelCapacities.js.map +1 -1
  203. package/dist/commonjs/operations/models.d.ts.map +1 -1
  204. package/dist/commonjs/operations/models.js +28 -40
  205. package/dist/commonjs/operations/models.js.map +1 -1
  206. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
  207. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js +34 -45
  208. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
  209. package/dist/commonjs/operations/operations.d.ts.map +1 -1
  210. package/dist/commonjs/operations/operations.js +23 -39
  211. package/dist/commonjs/operations/operations.js.map +1 -1
  212. package/dist/commonjs/operations/privateEndpointConnections.d.ts.map +1 -1
  213. package/dist/commonjs/operations/privateEndpointConnections.js +23 -12
  214. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
  215. package/dist/commonjs/operations/privateLinkResources.js +1 -0
  216. package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
  217. package/dist/commonjs/operations/projectCapabilityHosts.d.ts +4 -4
  218. package/dist/commonjs/operations/projectCapabilityHosts.d.ts.map +1 -1
  219. package/dist/commonjs/operations/projectCapabilityHosts.js +30 -19
  220. package/dist/commonjs/operations/projectCapabilityHosts.js.map +1 -1
  221. package/dist/{browser/operations/projectConnection.d.ts → commonjs/operations/projectConnections.d.ts} +11 -11
  222. package/dist/commonjs/operations/projectConnections.d.ts.map +1 -0
  223. package/dist/commonjs/operations/{projectConnection.js → projectConnections.js} +31 -47
  224. package/dist/commonjs/operations/projectConnections.js.map +1 -0
  225. package/dist/commonjs/operations/projects.d.ts.map +1 -1
  226. package/dist/commonjs/operations/projects.js +56 -57
  227. package/dist/commonjs/operations/projects.js.map +1 -1
  228. package/dist/commonjs/operations/raiBlocklistItems.d.ts.map +1 -1
  229. package/dist/commonjs/operations/raiBlocklistItems.js +34 -45
  230. package/dist/commonjs/operations/raiBlocklistItems.js.map +1 -1
  231. package/dist/commonjs/operations/raiBlocklists.d.ts.map +1 -1
  232. package/dist/commonjs/operations/raiBlocklists.js +34 -45
  233. package/dist/commonjs/operations/raiBlocklists.js.map +1 -1
  234. package/dist/commonjs/operations/raiContentFilters.d.ts.map +1 -1
  235. package/dist/commonjs/operations/raiContentFilters.js +28 -40
  236. package/dist/commonjs/operations/raiContentFilters.js.map +1 -1
  237. package/dist/commonjs/operations/raiPolicies.d.ts.map +1 -1
  238. package/dist/commonjs/operations/raiPolicies.js +34 -45
  239. package/dist/commonjs/operations/raiPolicies.js.map +1 -1
  240. package/dist/commonjs/operations/resourceSkus.d.ts.map +1 -1
  241. package/dist/commonjs/operations/resourceSkus.js +28 -40
  242. package/dist/commonjs/operations/resourceSkus.js.map +1 -1
  243. package/dist/commonjs/operations/usages.d.ts.map +1 -1
  244. package/dist/commonjs/operations/usages.js +28 -40
  245. package/dist/commonjs/operations/usages.js.map +1 -1
  246. package/dist/commonjs/operationsInterfaces/accountCapabilityHosts.d.ts +4 -4
  247. package/dist/commonjs/operationsInterfaces/accountCapabilityHosts.d.ts.map +1 -1
  248. package/dist/commonjs/operationsInterfaces/accountCapabilityHosts.js.map +1 -1
  249. package/dist/{react-native/operationsInterfaces/accountConnection.d.ts → commonjs/operationsInterfaces/accountConnections.d.ts} +9 -9
  250. package/dist/commonjs/operationsInterfaces/accountConnections.d.ts.map +1 -0
  251. package/dist/commonjs/operationsInterfaces/{accountConnection.js → accountConnections.js} +1 -1
  252. package/dist/commonjs/operationsInterfaces/accountConnections.js.map +1 -0
  253. package/dist/commonjs/operationsInterfaces/accounts.d.ts.map +1 -1
  254. package/dist/commonjs/operationsInterfaces/accounts.js.map +1 -1
  255. package/dist/commonjs/operationsInterfaces/commitmentTiers.d.ts.map +1 -1
  256. package/dist/commonjs/operationsInterfaces/commitmentTiers.js.map +1 -1
  257. package/dist/commonjs/operationsInterfaces/deletedAccounts.d.ts.map +1 -1
  258. package/dist/commonjs/operationsInterfaces/deletedAccounts.js.map +1 -1
  259. package/dist/commonjs/operationsInterfaces/deployments.d.ts.map +1 -1
  260. package/dist/commonjs/operationsInterfaces/deployments.js.map +1 -1
  261. package/dist/commonjs/operationsInterfaces/encryptionScopes.d.ts.map +1 -1
  262. package/dist/commonjs/operationsInterfaces/encryptionScopes.js.map +1 -1
  263. package/dist/commonjs/operationsInterfaces/index.d.ts +2 -2
  264. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
  265. package/dist/commonjs/operationsInterfaces/index.js +2 -2
  266. package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
  267. package/dist/commonjs/operationsInterfaces/models.d.ts.map +1 -1
  268. package/dist/commonjs/operationsInterfaces/models.js.map +1 -1
  269. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -1
  270. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -1
  271. package/dist/commonjs/operationsInterfaces/projectCapabilityHosts.d.ts +4 -4
  272. package/dist/commonjs/operationsInterfaces/projectCapabilityHosts.d.ts.map +1 -1
  273. package/dist/commonjs/operationsInterfaces/projectCapabilityHosts.js.map +1 -1
  274. package/dist/{react-native/operationsInterfaces/projectConnection.d.ts → commonjs/operationsInterfaces/projectConnections.d.ts} +9 -9
  275. package/dist/commonjs/operationsInterfaces/projectConnections.d.ts.map +1 -0
  276. package/dist/commonjs/operationsInterfaces/{projectConnection.js → projectConnections.js} +1 -1
  277. package/dist/commonjs/operationsInterfaces/projectConnections.js.map +1 -0
  278. package/dist/commonjs/operationsInterfaces/projects.d.ts.map +1 -1
  279. package/dist/commonjs/operationsInterfaces/projects.js.map +1 -1
  280. package/dist/commonjs/operationsInterfaces/raiBlocklists.d.ts.map +1 -1
  281. package/dist/commonjs/operationsInterfaces/raiBlocklists.js.map +1 -1
  282. package/dist/commonjs/operationsInterfaces/raiPolicies.d.ts.map +1 -1
  283. package/dist/commonjs/operationsInterfaces/raiPolicies.js.map +1 -1
  284. package/dist/commonjs/operationsInterfaces/resourceSkus.d.ts.map +1 -1
  285. package/dist/commonjs/operationsInterfaces/resourceSkus.js.map +1 -1
  286. package/dist/commonjs/operationsInterfaces/usages.d.ts.map +1 -1
  287. package/dist/commonjs/operationsInterfaces/usages.js.map +1 -1
  288. package/dist/commonjs/pagingHelper.d.ts.map +1 -1
  289. package/dist/commonjs/pagingHelper.js +2 -4
  290. package/dist/commonjs/pagingHelper.js.map +1 -1
  291. package/dist/commonjs/tsdoc-metadata.json +11 -11
  292. package/dist/esm/cognitiveServicesManagementClient.d.ts +3 -3
  293. package/dist/esm/cognitiveServicesManagementClient.d.ts.map +1 -1
  294. package/dist/esm/cognitiveServicesManagementClient.js +55 -16
  295. package/dist/esm/cognitiveServicesManagementClient.js.map +1 -1
  296. package/dist/esm/lroImpl.d.ts.map +1 -1
  297. package/dist/esm/lroImpl.js +7 -3
  298. package/dist/esm/lroImpl.js.map +1 -1
  299. package/dist/esm/models/index.d.ts +36 -32
  300. package/dist/esm/models/index.d.ts.map +1 -1
  301. package/dist/esm/models/index.js.map +1 -1
  302. package/dist/esm/models/mappers.d.ts.map +1 -1
  303. package/dist/esm/models/mappers.js +292 -126
  304. package/dist/esm/models/mappers.js.map +1 -1
  305. package/dist/esm/models/parameters.d.ts +3 -3
  306. package/dist/esm/models/parameters.d.ts.map +1 -1
  307. package/dist/esm/models/parameters.js +7 -7
  308. package/dist/esm/models/parameters.js.map +1 -1
  309. package/dist/esm/operations/accountCapabilityHosts.d.ts +4 -4
  310. package/dist/esm/operations/accountCapabilityHosts.d.ts.map +1 -1
  311. package/dist/esm/operations/accountCapabilityHosts.js +31 -20
  312. package/dist/esm/operations/accountCapabilityHosts.js.map +1 -1
  313. package/dist/{react-native/operations/accountConnection.d.ts → esm/operations/accountConnections.d.ts} +11 -11
  314. package/dist/esm/operations/accountConnections.d.ts.map +1 -0
  315. package/dist/esm/operations/{accountConnection.js → accountConnections.js} +29 -46
  316. package/dist/esm/operations/accountConnections.js.map +1 -0
  317. package/dist/esm/operations/accounts.d.ts.map +1 -1
  318. package/dist/esm/operations/accounts.js +112 -140
  319. package/dist/esm/operations/accounts.js.map +1 -1
  320. package/dist/esm/operations/commitmentPlans.d.ts.map +1 -1
  321. package/dist/esm/operations/commitmentPlans.js +166 -196
  322. package/dist/esm/operations/commitmentPlans.js.map +1 -1
  323. package/dist/esm/operations/commitmentTiers.d.ts.map +1 -1
  324. package/dist/esm/operations/commitmentTiers.js +28 -41
  325. package/dist/esm/operations/commitmentTiers.js.map +1 -1
  326. package/dist/esm/operations/defenderForAISettings.d.ts.map +1 -1
  327. package/dist/esm/operations/defenderForAISettings.js +23 -40
  328. package/dist/esm/operations/defenderForAISettings.js.map +1 -1
  329. package/dist/esm/operations/deletedAccounts.d.ts.map +1 -1
  330. package/dist/esm/operations/deletedAccounts.js +40 -48
  331. package/dist/esm/operations/deletedAccounts.js.map +1 -1
  332. package/dist/esm/operations/deployments.d.ts.map +1 -1
  333. package/dist/esm/operations/deployments.js +79 -98
  334. package/dist/esm/operations/deployments.js.map +1 -1
  335. package/dist/esm/operations/encryptionScopes.d.ts.map +1 -1
  336. package/dist/esm/operations/encryptionScopes.js +35 -47
  337. package/dist/esm/operations/encryptionScopes.js.map +1 -1
  338. package/dist/esm/operations/index.d.ts +2 -2
  339. package/dist/esm/operations/index.d.ts.map +1 -1
  340. package/dist/esm/operations/index.js +2 -2
  341. package/dist/esm/operations/index.js.map +1 -1
  342. package/dist/esm/operations/locationBasedModelCapacities.d.ts.map +1 -1
  343. package/dist/esm/operations/locationBasedModelCapacities.js +28 -41
  344. package/dist/esm/operations/locationBasedModelCapacities.js.map +1 -1
  345. package/dist/esm/operations/modelCapacities.d.ts.map +1 -1
  346. package/dist/esm/operations/modelCapacities.js +28 -41
  347. package/dist/esm/operations/modelCapacities.js.map +1 -1
  348. package/dist/esm/operations/models.d.ts.map +1 -1
  349. package/dist/esm/operations/models.js +28 -41
  350. package/dist/esm/operations/models.js.map +1 -1
  351. package/dist/esm/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
  352. package/dist/esm/operations/networkSecurityPerimeterConfigurations.js +35 -47
  353. package/dist/esm/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
  354. package/dist/esm/operations/operations.d.ts.map +1 -1
  355. package/dist/esm/operations/operations.js +23 -40
  356. package/dist/esm/operations/operations.js.map +1 -1
  357. package/dist/esm/operations/privateEndpointConnections.d.ts.map +1 -1
  358. package/dist/esm/operations/privateEndpointConnections.js +24 -13
  359. package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
  360. package/dist/esm/operations/privateLinkResources.js +1 -0
  361. package/dist/esm/operations/privateLinkResources.js.map +1 -1
  362. package/dist/esm/operations/projectCapabilityHosts.d.ts +4 -4
  363. package/dist/esm/operations/projectCapabilityHosts.d.ts.map +1 -1
  364. package/dist/esm/operations/projectCapabilityHosts.js +31 -20
  365. package/dist/esm/operations/projectCapabilityHosts.js.map +1 -1
  366. package/dist/esm/operations/{projectConnection.d.ts → projectConnections.d.ts} +11 -11
  367. package/dist/esm/operations/projectConnections.d.ts.map +1 -0
  368. package/dist/esm/operations/{projectConnection.js → projectConnections.js} +29 -46
  369. package/dist/esm/operations/projectConnections.js.map +1 -0
  370. package/dist/esm/operations/projects.d.ts.map +1 -1
  371. package/dist/esm/operations/projects.js +57 -59
  372. package/dist/esm/operations/projects.js.map +1 -1
  373. package/dist/esm/operations/raiBlocklistItems.d.ts.map +1 -1
  374. package/dist/esm/operations/raiBlocklistItems.js +35 -47
  375. package/dist/esm/operations/raiBlocklistItems.js.map +1 -1
  376. package/dist/esm/operations/raiBlocklists.d.ts.map +1 -1
  377. package/dist/esm/operations/raiBlocklists.js +35 -47
  378. package/dist/esm/operations/raiBlocklists.js.map +1 -1
  379. package/dist/esm/operations/raiContentFilters.d.ts.map +1 -1
  380. package/dist/esm/operations/raiContentFilters.js +28 -41
  381. package/dist/esm/operations/raiContentFilters.js.map +1 -1
  382. package/dist/esm/operations/raiPolicies.d.ts.map +1 -1
  383. package/dist/esm/operations/raiPolicies.js +35 -47
  384. package/dist/esm/operations/raiPolicies.js.map +1 -1
  385. package/dist/esm/operations/resourceSkus.d.ts.map +1 -1
  386. package/dist/esm/operations/resourceSkus.js +28 -41
  387. package/dist/esm/operations/resourceSkus.js.map +1 -1
  388. package/dist/esm/operations/usages.d.ts.map +1 -1
  389. package/dist/esm/operations/usages.js +28 -41
  390. package/dist/esm/operations/usages.js.map +1 -1
  391. package/dist/esm/operationsInterfaces/accountCapabilityHosts.d.ts +4 -4
  392. package/dist/esm/operationsInterfaces/accountCapabilityHosts.d.ts.map +1 -1
  393. package/dist/esm/operationsInterfaces/accountCapabilityHosts.js.map +1 -1
  394. package/dist/{browser/operationsInterfaces/accountConnection.d.ts → esm/operationsInterfaces/accountConnections.d.ts} +9 -9
  395. package/dist/esm/operationsInterfaces/accountConnections.d.ts.map +1 -0
  396. package/dist/esm/operationsInterfaces/{accountConnection.js → accountConnections.js} +1 -1
  397. package/dist/esm/operationsInterfaces/accountConnections.js.map +1 -0
  398. package/dist/esm/operationsInterfaces/accounts.d.ts.map +1 -1
  399. package/dist/esm/operationsInterfaces/accounts.js.map +1 -1
  400. package/dist/esm/operationsInterfaces/commitmentTiers.d.ts.map +1 -1
  401. package/dist/esm/operationsInterfaces/commitmentTiers.js.map +1 -1
  402. package/dist/esm/operationsInterfaces/deletedAccounts.d.ts.map +1 -1
  403. package/dist/esm/operationsInterfaces/deletedAccounts.js.map +1 -1
  404. package/dist/esm/operationsInterfaces/deployments.d.ts.map +1 -1
  405. package/dist/esm/operationsInterfaces/deployments.js.map +1 -1
  406. package/dist/esm/operationsInterfaces/encryptionScopes.d.ts.map +1 -1
  407. package/dist/esm/operationsInterfaces/encryptionScopes.js.map +1 -1
  408. package/dist/esm/operationsInterfaces/index.d.ts +2 -2
  409. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
  410. package/dist/esm/operationsInterfaces/index.js +2 -2
  411. package/dist/esm/operationsInterfaces/index.js.map +1 -1
  412. package/dist/esm/operationsInterfaces/models.d.ts.map +1 -1
  413. package/dist/esm/operationsInterfaces/models.js.map +1 -1
  414. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -1
  415. package/dist/esm/operationsInterfaces/operations.js.map +1 -1
  416. package/dist/esm/operationsInterfaces/projectCapabilityHosts.d.ts +4 -4
  417. package/dist/esm/operationsInterfaces/projectCapabilityHosts.d.ts.map +1 -1
  418. package/dist/esm/operationsInterfaces/projectCapabilityHosts.js.map +1 -1
  419. package/dist/{commonjs/operationsInterfaces/projectConnection.d.ts → esm/operationsInterfaces/projectConnections.d.ts} +9 -9
  420. package/dist/esm/operationsInterfaces/projectConnections.d.ts.map +1 -0
  421. package/dist/esm/operationsInterfaces/{projectConnection.js → projectConnections.js} +1 -1
  422. package/dist/esm/operationsInterfaces/projectConnections.js.map +1 -0
  423. package/dist/esm/operationsInterfaces/projects.d.ts.map +1 -1
  424. package/dist/esm/operationsInterfaces/projects.js.map +1 -1
  425. package/dist/esm/operationsInterfaces/raiBlocklists.d.ts.map +1 -1
  426. package/dist/esm/operationsInterfaces/raiBlocklists.js.map +1 -1
  427. package/dist/esm/operationsInterfaces/raiPolicies.d.ts.map +1 -1
  428. package/dist/esm/operationsInterfaces/raiPolicies.js.map +1 -1
  429. package/dist/esm/operationsInterfaces/resourceSkus.d.ts.map +1 -1
  430. package/dist/esm/operationsInterfaces/resourceSkus.js.map +1 -1
  431. package/dist/esm/operationsInterfaces/usages.d.ts.map +1 -1
  432. package/dist/esm/operationsInterfaces/usages.js.map +1 -1
  433. package/dist/esm/pagingHelper.d.ts.map +1 -1
  434. package/dist/esm/pagingHelper.js +2 -4
  435. package/dist/esm/pagingHelper.js.map +1 -1
  436. package/dist/react-native/cognitiveServicesManagementClient.d.ts +3 -3
  437. package/dist/react-native/cognitiveServicesManagementClient.d.ts.map +1 -1
  438. package/dist/react-native/cognitiveServicesManagementClient.js +55 -16
  439. package/dist/react-native/cognitiveServicesManagementClient.js.map +1 -1
  440. package/dist/react-native/lroImpl.d.ts.map +1 -1
  441. package/dist/react-native/lroImpl.js +7 -3
  442. package/dist/react-native/lroImpl.js.map +1 -1
  443. package/dist/react-native/models/index.d.ts +36 -32
  444. package/dist/react-native/models/index.d.ts.map +1 -1
  445. package/dist/react-native/models/index.js.map +1 -1
  446. package/dist/react-native/models/mappers.d.ts.map +1 -1
  447. package/dist/react-native/models/mappers.js +292 -126
  448. package/dist/react-native/models/mappers.js.map +1 -1
  449. package/dist/react-native/models/parameters.d.ts +3 -3
  450. package/dist/react-native/models/parameters.d.ts.map +1 -1
  451. package/dist/react-native/models/parameters.js +7 -7
  452. package/dist/react-native/models/parameters.js.map +1 -1
  453. package/dist/react-native/operations/accountCapabilityHosts.d.ts +4 -4
  454. package/dist/react-native/operations/accountCapabilityHosts.d.ts.map +1 -1
  455. package/dist/react-native/operations/accountCapabilityHosts.js +31 -20
  456. package/dist/react-native/operations/accountCapabilityHosts.js.map +1 -1
  457. package/dist/{commonjs/operations/accountConnection.d.ts → react-native/operations/accountConnections.d.ts} +11 -11
  458. package/dist/react-native/operations/accountConnections.d.ts.map +1 -0
  459. package/dist/{browser/operations/accountConnection.js → react-native/operations/accountConnections.js} +29 -46
  460. package/dist/react-native/operations/accountConnections.js.map +1 -0
  461. package/dist/react-native/operations/accounts.d.ts.map +1 -1
  462. package/dist/react-native/operations/accounts.js +112 -140
  463. package/dist/react-native/operations/accounts.js.map +1 -1
  464. package/dist/react-native/operations/commitmentPlans.d.ts.map +1 -1
  465. package/dist/react-native/operations/commitmentPlans.js +166 -196
  466. package/dist/react-native/operations/commitmentPlans.js.map +1 -1
  467. package/dist/react-native/operations/commitmentTiers.d.ts.map +1 -1
  468. package/dist/react-native/operations/commitmentTiers.js +28 -41
  469. package/dist/react-native/operations/commitmentTiers.js.map +1 -1
  470. package/dist/react-native/operations/defenderForAISettings.d.ts.map +1 -1
  471. package/dist/react-native/operations/defenderForAISettings.js +23 -40
  472. package/dist/react-native/operations/defenderForAISettings.js.map +1 -1
  473. package/dist/react-native/operations/deletedAccounts.d.ts.map +1 -1
  474. package/dist/react-native/operations/deletedAccounts.js +40 -48
  475. package/dist/react-native/operations/deletedAccounts.js.map +1 -1
  476. package/dist/react-native/operations/deployments.d.ts.map +1 -1
  477. package/dist/react-native/operations/deployments.js +79 -98
  478. package/dist/react-native/operations/deployments.js.map +1 -1
  479. package/dist/react-native/operations/encryptionScopes.d.ts.map +1 -1
  480. package/dist/react-native/operations/encryptionScopes.js +35 -47
  481. package/dist/react-native/operations/encryptionScopes.js.map +1 -1
  482. package/dist/react-native/operations/index.d.ts +2 -2
  483. package/dist/react-native/operations/index.d.ts.map +1 -1
  484. package/dist/react-native/operations/index.js +2 -2
  485. package/dist/react-native/operations/index.js.map +1 -1
  486. package/dist/react-native/operations/locationBasedModelCapacities.d.ts.map +1 -1
  487. package/dist/react-native/operations/locationBasedModelCapacities.js +28 -41
  488. package/dist/react-native/operations/locationBasedModelCapacities.js.map +1 -1
  489. package/dist/react-native/operations/modelCapacities.d.ts.map +1 -1
  490. package/dist/react-native/operations/modelCapacities.js +28 -41
  491. package/dist/react-native/operations/modelCapacities.js.map +1 -1
  492. package/dist/react-native/operations/models.d.ts.map +1 -1
  493. package/dist/react-native/operations/models.js +28 -41
  494. package/dist/react-native/operations/models.js.map +1 -1
  495. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
  496. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js +35 -47
  497. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
  498. package/dist/react-native/operations/operations.d.ts.map +1 -1
  499. package/dist/react-native/operations/operations.js +23 -40
  500. package/dist/react-native/operations/operations.js.map +1 -1
  501. package/dist/react-native/operations/privateEndpointConnections.d.ts.map +1 -1
  502. package/dist/react-native/operations/privateEndpointConnections.js +24 -13
  503. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
  504. package/dist/react-native/operations/privateLinkResources.js +1 -0
  505. package/dist/react-native/operations/privateLinkResources.js.map +1 -1
  506. package/dist/react-native/operations/projectCapabilityHosts.d.ts +4 -4
  507. package/dist/react-native/operations/projectCapabilityHosts.d.ts.map +1 -1
  508. package/dist/react-native/operations/projectCapabilityHosts.js +31 -20
  509. package/dist/react-native/operations/projectCapabilityHosts.js.map +1 -1
  510. package/dist/react-native/operations/{projectConnection.d.ts → projectConnections.d.ts} +11 -11
  511. package/dist/react-native/operations/projectConnections.d.ts.map +1 -0
  512. package/dist/react-native/operations/{projectConnection.js → projectConnections.js} +29 -46
  513. package/dist/react-native/operations/projectConnections.js.map +1 -0
  514. package/dist/react-native/operations/projects.d.ts.map +1 -1
  515. package/dist/react-native/operations/projects.js +57 -59
  516. package/dist/react-native/operations/projects.js.map +1 -1
  517. package/dist/react-native/operations/raiBlocklistItems.d.ts.map +1 -1
  518. package/dist/react-native/operations/raiBlocklistItems.js +35 -47
  519. package/dist/react-native/operations/raiBlocklistItems.js.map +1 -1
  520. package/dist/react-native/operations/raiBlocklists.d.ts.map +1 -1
  521. package/dist/react-native/operations/raiBlocklists.js +35 -47
  522. package/dist/react-native/operations/raiBlocklists.js.map +1 -1
  523. package/dist/react-native/operations/raiContentFilters.d.ts.map +1 -1
  524. package/dist/react-native/operations/raiContentFilters.js +28 -41
  525. package/dist/react-native/operations/raiContentFilters.js.map +1 -1
  526. package/dist/react-native/operations/raiPolicies.d.ts.map +1 -1
  527. package/dist/react-native/operations/raiPolicies.js +35 -47
  528. package/dist/react-native/operations/raiPolicies.js.map +1 -1
  529. package/dist/react-native/operations/resourceSkus.d.ts.map +1 -1
  530. package/dist/react-native/operations/resourceSkus.js +28 -41
  531. package/dist/react-native/operations/resourceSkus.js.map +1 -1
  532. package/dist/react-native/operations/usages.d.ts.map +1 -1
  533. package/dist/react-native/operations/usages.js +28 -41
  534. package/dist/react-native/operations/usages.js.map +1 -1
  535. package/dist/react-native/operationsInterfaces/accountCapabilityHosts.d.ts +4 -4
  536. package/dist/react-native/operationsInterfaces/accountCapabilityHosts.d.ts.map +1 -1
  537. package/dist/react-native/operationsInterfaces/accountCapabilityHosts.js.map +1 -1
  538. package/dist/{commonjs/operationsInterfaces/accountConnection.d.ts → react-native/operationsInterfaces/accountConnections.d.ts} +9 -9
  539. package/dist/react-native/operationsInterfaces/accountConnections.d.ts.map +1 -0
  540. package/dist/react-native/operationsInterfaces/accountConnections.js +9 -0
  541. package/dist/react-native/operationsInterfaces/accountConnections.js.map +1 -0
  542. package/dist/react-native/operationsInterfaces/accounts.d.ts.map +1 -1
  543. package/dist/react-native/operationsInterfaces/accounts.js.map +1 -1
  544. package/dist/react-native/operationsInterfaces/commitmentTiers.d.ts.map +1 -1
  545. package/dist/react-native/operationsInterfaces/commitmentTiers.js.map +1 -1
  546. package/dist/react-native/operationsInterfaces/deletedAccounts.d.ts.map +1 -1
  547. package/dist/react-native/operationsInterfaces/deletedAccounts.js.map +1 -1
  548. package/dist/react-native/operationsInterfaces/deployments.d.ts.map +1 -1
  549. package/dist/react-native/operationsInterfaces/deployments.js.map +1 -1
  550. package/dist/react-native/operationsInterfaces/encryptionScopes.d.ts.map +1 -1
  551. package/dist/react-native/operationsInterfaces/encryptionScopes.js.map +1 -1
  552. package/dist/react-native/operationsInterfaces/index.d.ts +2 -2
  553. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
  554. package/dist/react-native/operationsInterfaces/index.js +2 -2
  555. package/dist/react-native/operationsInterfaces/index.js.map +1 -1
  556. package/dist/react-native/operationsInterfaces/models.d.ts.map +1 -1
  557. package/dist/react-native/operationsInterfaces/models.js.map +1 -1
  558. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -1
  559. package/dist/react-native/operationsInterfaces/operations.js.map +1 -1
  560. package/dist/react-native/operationsInterfaces/projectCapabilityHosts.d.ts +4 -4
  561. package/dist/react-native/operationsInterfaces/projectCapabilityHosts.d.ts.map +1 -1
  562. package/dist/react-native/operationsInterfaces/projectCapabilityHosts.js.map +1 -1
  563. package/dist/{browser/operationsInterfaces/projectConnection.d.ts → react-native/operationsInterfaces/projectConnections.d.ts} +9 -9
  564. package/dist/react-native/operationsInterfaces/projectConnections.d.ts.map +1 -0
  565. package/dist/react-native/operationsInterfaces/projectConnections.js +9 -0
  566. package/dist/react-native/operationsInterfaces/projectConnections.js.map +1 -0
  567. package/dist/react-native/operationsInterfaces/projects.d.ts.map +1 -1
  568. package/dist/react-native/operationsInterfaces/projects.js.map +1 -1
  569. package/dist/react-native/operationsInterfaces/raiBlocklists.d.ts.map +1 -1
  570. package/dist/react-native/operationsInterfaces/raiBlocklists.js.map +1 -1
  571. package/dist/react-native/operationsInterfaces/raiPolicies.d.ts.map +1 -1
  572. package/dist/react-native/operationsInterfaces/raiPolicies.js.map +1 -1
  573. package/dist/react-native/operationsInterfaces/resourceSkus.d.ts.map +1 -1
  574. package/dist/react-native/operationsInterfaces/resourceSkus.js.map +1 -1
  575. package/dist/react-native/operationsInterfaces/usages.d.ts.map +1 -1
  576. package/dist/react-native/operationsInterfaces/usages.js.map +1 -1
  577. package/dist/react-native/pagingHelper.d.ts.map +1 -1
  578. package/dist/react-native/pagingHelper.js +2 -4
  579. package/dist/react-native/pagingHelper.js.map +1 -1
  580. package/package.json +6 -6
  581. package/review/{arm-cognitiveservices.api.md → arm-cognitiveservices-node.api.md} +44 -48
  582. package/dist/browser/operations/accountConnection.d.ts.map +0 -1
  583. package/dist/browser/operations/accountConnection.js.map +0 -1
  584. package/dist/browser/operations/projectConnection.d.ts.map +0 -1
  585. package/dist/browser/operations/projectConnection.js.map +0 -1
  586. package/dist/browser/operationsInterfaces/accountConnection.d.ts.map +0 -1
  587. package/dist/browser/operationsInterfaces/accountConnection.js.map +0 -1
  588. package/dist/browser/operationsInterfaces/projectConnection.d.ts.map +0 -1
  589. package/dist/browser/operationsInterfaces/projectConnection.js.map +0 -1
  590. package/dist/commonjs/operations/accountConnection.d.ts.map +0 -1
  591. package/dist/commonjs/operations/accountConnection.js.map +0 -1
  592. package/dist/commonjs/operations/projectConnection.d.ts.map +0 -1
  593. package/dist/commonjs/operations/projectConnection.js.map +0 -1
  594. package/dist/commonjs/operationsInterfaces/accountConnection.d.ts.map +0 -1
  595. package/dist/commonjs/operationsInterfaces/accountConnection.js.map +0 -1
  596. package/dist/commonjs/operationsInterfaces/projectConnection.d.ts.map +0 -1
  597. package/dist/commonjs/operationsInterfaces/projectConnection.js.map +0 -1
  598. package/dist/esm/operations/accountConnection.d.ts.map +0 -1
  599. package/dist/esm/operations/accountConnection.js.map +0 -1
  600. package/dist/esm/operations/projectConnection.d.ts.map +0 -1
  601. package/dist/esm/operations/projectConnection.js.map +0 -1
  602. package/dist/esm/operationsInterfaces/accountConnection.d.ts.map +0 -1
  603. package/dist/esm/operationsInterfaces/accountConnection.js.map +0 -1
  604. package/dist/esm/operationsInterfaces/projectConnection.d.ts.map +0 -1
  605. package/dist/esm/operationsInterfaces/projectConnection.js.map +0 -1
  606. package/dist/react-native/operations/accountConnection.d.ts.map +0 -1
  607. package/dist/react-native/operations/accountConnection.js.map +0 -1
  608. package/dist/react-native/operations/projectConnection.d.ts.map +0 -1
  609. package/dist/react-native/operations/projectConnection.js.map +0 -1
  610. package/dist/react-native/operationsInterfaces/accountConnection.d.ts.map +0 -1
  611. package/dist/react-native/operationsInterfaces/accountConnection.js +0 -9
  612. package/dist/react-native/operationsInterfaces/accountConnection.js.map +0 -1
  613. package/dist/react-native/operationsInterfaces/projectConnection.d.ts.map +0 -1
  614. package/dist/react-native/operationsInterfaces/projectConnection.js +0 -9
  615. package/dist/react-native/operationsInterfaces/projectConnection.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"encryptionScopes.js","sourceRoot":"","sources":["../../../src/operations/encryptionScopes.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAAqF;AACrF,8CAA8C;AAe9C,4CAA4C;AAC5C,oDAAoD;AACpD,MAAa,oBAAoB;IAG/B;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAA4C;QAE5C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACzE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChF,CAAC;SACF,CAAC;IACJ,CAAC;IAEc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AU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,mBAAmB;KAC/B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { EncryptionScopes } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CognitiveServicesManagementClient } from \"../cognitiveServicesManagementClient.js\";\nimport { SimplePollerLike, OperationState, createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n EncryptionScope,\n EncryptionScopesListNextOptionalParams,\n EncryptionScopesListOptionalParams,\n EncryptionScopesListResponse,\n EncryptionScopesGetOptionalParams,\n EncryptionScopesGetResponse,\n EncryptionScopesCreateOrUpdateOptionalParams,\n EncryptionScopesCreateOrUpdateResponse,\n EncryptionScopesDeleteOptionalParams,\n EncryptionScopesDeleteResponse,\n EncryptionScopesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing EncryptionScopes operations. */\nexport class EncryptionScopesImpl implements EncryptionScopes {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class EncryptionScopes class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the content filters associated with the Azure OpenAI account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n options?: EncryptionScopesListOptionalParams,\n ): PagedAsyncIterableIterator<EncryptionScope> {\n const iter = this.listPagingAll(resourceGroupName, accountName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(resourceGroupName, accountName, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: EncryptionScopesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<EncryptionScope[]> {\n let result: EncryptionScopesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, accountName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(resourceGroupName, accountName, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: EncryptionScopesListOptionalParams,\n ): AsyncIterableIterator<EncryptionScope> {\n for await (const page of this.listPagingPage(resourceGroupName, accountName, options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the content filters associated with the Azure OpenAI account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n options?: EncryptionScopesListOptionalParams,\n ): Promise<EncryptionScopesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the specified EncryptionScope associated with the Cognitive Services account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services\n * Account\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n encryptionScopeName: string,\n options?: EncryptionScopesGetOptionalParams,\n ): Promise<EncryptionScopesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, encryptionScopeName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Update the state of specified encryptionScope associated with the Cognitive Services account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services\n * Account\n * @param encryptionScope The encryptionScope properties.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n accountName: string,\n encryptionScopeName: string,\n encryptionScope: EncryptionScope,\n options?: EncryptionScopesCreateOrUpdateOptionalParams,\n ): Promise<EncryptionScopesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n encryptionScopeName,\n encryptionScope,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes the specified encryptionScope associated with the Cognitive Services account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services\n * Account\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n accountName: string,\n encryptionScopeName: string,\n options?: EncryptionScopesDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<EncryptionScopesDeleteResponse>, EncryptionScopesDeleteResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<EncryptionScopesDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, accountName, encryptionScopeName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n EncryptionScopesDeleteResponse,\n OperationState<EncryptionScopesDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the specified encryptionScope associated with the Cognitive Services account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services\n * Account\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n accountName: string,\n encryptionScopeName: string,\n options?: EncryptionScopesDeleteOptionalParams,\n ): Promise<EncryptionScopesDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n accountName,\n encryptionScopeName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n accountName: string,\n nextLink: string,\n options?: EncryptionScopesListNextOptionalParams,\n ): Promise<EncryptionScopesListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/encryptionScopes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EncryptionScopeListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/encryptionScopes/{encryptionScopeName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EncryptionScope,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.encryptionScopeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/encryptionScopes/{encryptionScopeName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.EncryptionScope,\n },\n 201: {\n bodyMapper: Mappers.EncryptionScope,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.encryptionScope,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.encryptionScopeName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/encryptionScopes/{encryptionScopeName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.EncryptionScopesDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.EncryptionScopesDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.EncryptionScopesDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.EncryptionScopesDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.encryptionScopeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EncryptionScopeListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":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ACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { EncryptionScopes } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CognitiveServicesManagementClient } from \"../cognitiveServicesManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n EncryptionScope,\n EncryptionScopesListNextOptionalParams,\n EncryptionScopesListOptionalParams,\n EncryptionScopesListResponse,\n EncryptionScopesGetOptionalParams,\n EncryptionScopesGetResponse,\n EncryptionScopesCreateOrUpdateOptionalParams,\n EncryptionScopesCreateOrUpdateResponse,\n EncryptionScopesDeleteOptionalParams,\n EncryptionScopesDeleteResponse,\n EncryptionScopesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing EncryptionScopes operations. */\nexport class EncryptionScopesImpl implements EncryptionScopes {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class EncryptionScopes class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the content filters associated with the Azure OpenAI account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n options?: EncryptionScopesListOptionalParams,\n ): PagedAsyncIterableIterator<EncryptionScope> {\n const iter = this.listPagingAll(resourceGroupName, accountName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: EncryptionScopesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<EncryptionScope[]> {\n let result: EncryptionScopesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, accountName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n accountName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: EncryptionScopesListOptionalParams,\n ): AsyncIterableIterator<EncryptionScope> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the content filters associated with the Azure OpenAI account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n options?: EncryptionScopesListOptionalParams,\n ): Promise<EncryptionScopesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the specified EncryptionScope associated with the Cognitive Services account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services\n * Account\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n encryptionScopeName: string,\n options?: EncryptionScopesGetOptionalParams,\n ): Promise<EncryptionScopesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, encryptionScopeName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Update the state of specified encryptionScope associated with the Cognitive Services account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services\n * Account\n * @param encryptionScope The encryptionScope properties.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n accountName: string,\n encryptionScopeName: string,\n encryptionScope: EncryptionScope,\n options?: EncryptionScopesCreateOrUpdateOptionalParams,\n ): Promise<EncryptionScopesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n encryptionScopeName,\n encryptionScope,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes the specified encryptionScope associated with the Cognitive Services account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services\n * Account\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n accountName: string,\n encryptionScopeName: string,\n options?: EncryptionScopesDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<EncryptionScopesDeleteResponse>,\n EncryptionScopesDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<EncryptionScopesDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, accountName, encryptionScopeName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n EncryptionScopesDeleteResponse,\n OperationState<EncryptionScopesDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the specified encryptionScope associated with the Cognitive Services account.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param encryptionScopeName The name of the encryptionScope associated with the Cognitive Services\n * Account\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n accountName: string,\n encryptionScopeName: string,\n options?: EncryptionScopesDeleteOptionalParams,\n ): Promise<EncryptionScopesDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n accountName,\n encryptionScopeName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of Cognitive Services account.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n accountName: string,\n nextLink: string,\n options?: EncryptionScopesListNextOptionalParams,\n ): Promise<EncryptionScopesListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/encryptionScopes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EncryptionScopeListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/encryptionScopes/{encryptionScopeName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EncryptionScope,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.encryptionScopeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/encryptionScopes/{encryptionScopeName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.EncryptionScope,\n },\n 201: {\n bodyMapper: Mappers.EncryptionScope,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.encryptionScope,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.encryptionScopeName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/encryptionScopes/{encryptionScopeName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.EncryptionScopesDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.EncryptionScopesDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.EncryptionScopesDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.EncryptionScopesDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.encryptionScopeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.EncryptionScopeListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -19,8 +19,8 @@ export * from "./raiContentFilters.js";
19
19
  export * from "./networkSecurityPerimeterConfigurations.js";
20
20
  export * from "./defenderForAISettings.js";
21
21
  export * from "./projects.js";
22
- export * from "./accountConnection.js";
23
- export * from "./projectConnection.js";
22
+ export * from "./accountConnections.js";
23
+ export * from "./projectConnections.js";
24
24
  export * from "./accountCapabilityHosts.js";
25
25
  export * from "./projectCapabilityHosts.js";
26
26
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5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AC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC"}
@@ -29,8 +29,8 @@ tslib_1.__exportStar(require("./raiContentFilters.js"), exports);
29
29
  tslib_1.__exportStar(require("./networkSecurityPerimeterConfigurations.js"), exports);
30
30
  tslib_1.__exportStar(require("./defenderForAISettings.js"), exports);
31
31
  tslib_1.__exportStar(require("./projects.js"), exports);
32
- tslib_1.__exportStar(require("./accountConnection.js"), exports);
33
- tslib_1.__exportStar(require("./projectConnection.js"), exports);
32
+ tslib_1.__exportStar(require("./accountConnections.js"), exports);
33
+ tslib_1.__exportStar(require("./projectConnections.js"), exports);
34
34
  tslib_1.__exportStar(require("./accountCapabilityHosts.js"), exports);
35
35
  tslib_1.__exportStar(require("./projectCapabilityHosts.js"), exports);
36
36
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,wDAA8B;AAC9B,+DAAqC;AACrC,4DAAkC;AAClC,sDAA4B;AAC5B,0DAAgC;AAChC,+DAAqC;AACrC,sDAA4B;AAC5B,4EAAkD;AAClD,+DAAqC;AACrC,0EAAgD;AAChD,oEAA0C;AAC1C,2DAAiC;AACjC,+DAAqC;AACrC,gEAAsC;AACtC,2DAAiC;AACjC,6DAAmC;AACnC,iEAAuC;AACvC,iEAAuC;AACvC,sFAA4D;AAC5D,qEAA2C;AAC3C,wDAA8B;AAC9B,iEAAuC;AACvC,iEAAuC;AACvC,sEAA4C;AAC5C,sEAA4C","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./accounts.js\";\nexport * from \"./deletedAccounts.js\";\nexport * from \"./resourceSkus.js\";\nexport * from \"./usages.js\";\nexport * from \"./operations.js\";\nexport * from \"./commitmentTiers.js\";\nexport * from \"./models.js\";\nexport * from \"./locationBasedModelCapacities.js\";\nexport * from \"./modelCapacities.js\";\nexport * from \"./privateEndpointConnections.js\";\nexport * from \"./privateLinkResources.js\";\nexport * from \"./deployments.js\";\nexport * from \"./commitmentPlans.js\";\nexport * from \"./encryptionScopes.js\";\nexport * from \"./raiPolicies.js\";\nexport * from \"./raiBlocklists.js\";\nexport * from \"./raiBlocklistItems.js\";\nexport * from \"./raiContentFilters.js\";\nexport * from \"./networkSecurityPerimeterConfigurations.js\";\nexport * from \"./defenderForAISettings.js\";\nexport * from \"./projects.js\";\nexport * from \"./accountConnection.js\";\nexport * from \"./projectConnection.js\";\nexport * from \"./accountCapabilityHosts.js\";\nexport * from \"./projectCapabilityHosts.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,wDAA8B;AAC9B,+DAAqC;AACrC,4DAAkC;AAClC,sDAA4B;AAC5B,0DAAgC;AAChC,+DAAqC;AACrC,sDAA4B;AAC5B,4EAAkD;AAClD,+DAAqC;AACrC,0EAAgD;AAChD,oEAA0C;AAC1C,2DAAiC;AACjC,+DAAqC;AACrC,gEAAsC;AACtC,2DAAiC;AACjC,6DAAmC;AACnC,iEAAuC;AACvC,iEAAuC;AACvC,sFAA4D;AAC5D,qEAA2C;AAC3C,wDAA8B;AAC9B,kEAAwC;AACxC,kEAAwC;AACxC,sEAA4C;AAC5C,sEAA4C","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./accounts.js\";\nexport * from \"./deletedAccounts.js\";\nexport * from \"./resourceSkus.js\";\nexport * from \"./usages.js\";\nexport * from \"./operations.js\";\nexport * from \"./commitmentTiers.js\";\nexport * from \"./models.js\";\nexport * from \"./locationBasedModelCapacities.js\";\nexport * from \"./modelCapacities.js\";\nexport * from \"./privateEndpointConnections.js\";\nexport * from \"./privateLinkResources.js\";\nexport * from \"./deployments.js\";\nexport * from \"./commitmentPlans.js\";\nexport * from \"./encryptionScopes.js\";\nexport * from \"./raiPolicies.js\";\nexport * from \"./raiBlocklists.js\";\nexport * from \"./raiBlocklistItems.js\";\nexport * from \"./raiContentFilters.js\";\nexport * from \"./networkSecurityPerimeterConfigurations.js\";\nexport * from \"./defenderForAISettings.js\";\nexport * from \"./projects.js\";\nexport * from \"./accountConnections.js\";\nexport * from \"./projectConnections.js\";\nexport * from \"./accountCapabilityHosts.js\";\nexport * from \"./projectCapabilityHosts.js\";\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"locationBasedModelCapacities.d.ts","sourceRoot":"","sources":["../../../src/operations/locationBasedModelCapacities.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAIhF,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EACL,gCAAgC,EAEhC,8CAA8C,EAG/C,MAAM,oBAAoB,CAAC;AAG5B,gEAAgE;AAChE,qBAAa,gCAAiC,YAAW,4BAA4B;IACnF,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;;;;;OAOG;IACI,IAAI,CACT,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,8CAA8C,GACvD,0BAA0B,CAAC,gCAAgC,CAAC;YAyBhD,cAAc;YA0Bd,aAAa;IAkB5B;;;;;;;OAOG;IACH,OAAO,CAAC,KAAK;IAab;;;;;OAKG;IACH,OAAO,CAAC,SAAS;CAOlB"}
1
+ {"version":3,"file":"locationBasedModelCapacities.d.ts","sourceRoot":"","sources":["../../../src/operations/locationBasedModelCapacities.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAIhF,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EACL,gCAAgC,EAEhC,8CAA8C,EAG/C,MAAM,oBAAoB,CAAC;AAG5B,gEAAgE;AAChE,qBAAa,gCACX,YAAW,4BAA4B;IAEvC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;;;;;OAOG;IACI,IAAI,CACT,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,8CAA8C,GACvD,0BAA0B,CAAC,gCAAgC,CAAC;YA+BhD,cAAc;YAgCd,aAAa;IAkB5B;;;;;;;OAOG;IACH,OAAO,CAAC,KAAK;IAab;;;;;OAKG;IACH,OAAO,CAAC,SAAS;CAUlB"}
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing LocationBasedModelCapacities operations. */
18
18
  class LocationBasedModelCapacitiesImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class LocationBasedModelCapacities class.
21
22
  * @param client Reference to the service client
@@ -41,52 +42,35 @@ class LocationBasedModelCapacitiesImpl {
41
42
  return this;
42
43
  },
43
44
  byPage: (settings) => {
44
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
45
+ if (settings?.maxPageSize) {
45
46
  throw new Error("maxPageSize is not supported by this operation.");
46
47
  }
47
48
  return this.listPagingPage(location, modelFormat, modelName, modelVersion, options, settings);
48
49
  },
49
50
  };
50
51
  }
51
- listPagingPage(location, modelFormat, modelName, modelVersion, options, settings) {
52
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
53
- let result;
54
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
55
- if (!continuationToken) {
56
- result = yield tslib_1.__await(this._list(location, modelFormat, modelName, modelVersion, options));
57
- let page = result.value || [];
58
- continuationToken = result.nextLink;
59
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
60
- yield yield tslib_1.__await(page);
61
- }
62
- while (continuationToken) {
63
- result = yield tslib_1.__await(this._listNext(location, continuationToken, options));
64
- continuationToken = result.nextLink;
65
- let page = result.value || [];
66
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
67
- yield yield tslib_1.__await(page);
68
- }
69
- });
52
+ async *listPagingPage(location, modelFormat, modelName, modelVersion, options, settings) {
53
+ let result;
54
+ let continuationToken = settings?.continuationToken;
55
+ if (!continuationToken) {
56
+ result = await this._list(location, modelFormat, modelName, modelVersion, options);
57
+ let page = result.value || [];
58
+ continuationToken = result.nextLink;
59
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
60
+ yield page;
61
+ }
62
+ while (continuationToken) {
63
+ result = await this._listNext(location, continuationToken, options);
64
+ continuationToken = result.nextLink;
65
+ let page = result.value || [];
66
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
67
+ yield page;
68
+ }
70
69
  }
71
- listPagingAll(location, modelFormat, modelName, modelVersion, options) {
72
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
73
- var _a, e_1, _b, _c;
74
- try {
75
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(location, modelFormat, modelName, modelVersion, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
76
- _c = _f.value;
77
- _d = false;
78
- const page = _c;
79
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
80
- }
81
- }
82
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
83
- finally {
84
- try {
85
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
86
- }
87
- finally { if (e_1) throw e_1.error; }
88
- }
89
- });
70
+ async *listPagingAll(location, modelFormat, modelName, modelVersion, options) {
71
+ for await (const page of this.listPagingPage(location, modelFormat, modelName, modelVersion, options)) {
72
+ yield* page;
73
+ }
90
74
  }
91
75
  /**
92
76
  * List Location Based ModelCapacities.
@@ -129,7 +113,11 @@ const listOperationSpec = {
129
113
  Parameters.modelName,
130
114
  Parameters.modelVersion,
131
115
  ],
132
- urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.location],
116
+ urlParameters: [
117
+ Parameters.$host,
118
+ Parameters.subscriptionId,
119
+ Parameters.location,
120
+ ],
133
121
  headerParameters: [Parameters.accept],
134
122
  serializer,
135
123
  };
@@ -1 +1 @@
1
- {"version":3,"file":"locationBasedModelCapacities.js","sourceRoot":"","sources":["../../../src/operations/locationBasedModelCapacities.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,gEAAgE;AAChE,MAAa,gCAAgC;IAG3C;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,IAAI,CACT,QAAgB,EAChB,WAAmB,EACnB,SAAiB,EACjB,YAAoB,EACpB,OAAwD;QAExD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;QACzF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI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AAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,YAAY;KACxB;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,QAAQ,CAAC;IACjF,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { LocationBasedModelCapacities } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CognitiveServicesManagementClient } from \"../cognitiveServicesManagementClient.js\";\nimport {\n ModelCapacityListResultValueItem,\n LocationBasedModelCapacitiesListNextOptionalParams,\n LocationBasedModelCapacitiesListOptionalParams,\n LocationBasedModelCapacitiesListResponse,\n LocationBasedModelCapacitiesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing LocationBasedModelCapacities operations. */\nexport class LocationBasedModelCapacitiesImpl implements LocationBasedModelCapacities {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class LocationBasedModelCapacities class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * List Location Based ModelCapacities.\n * @param location Resource location.\n * @param modelFormat The format of the Model\n * @param modelName The name of the Model\n * @param modelVersion The version of the Model\n * @param options The options parameters.\n */\n public list(\n location: string,\n modelFormat: string,\n modelName: string,\n modelVersion: string,\n options?: LocationBasedModelCapacitiesListOptionalParams,\n ): PagedAsyncIterableIterator<ModelCapacityListResultValueItem> {\n const iter = this.listPagingAll(location, modelFormat, modelName, modelVersion, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n location,\n modelFormat,\n modelName,\n modelVersion,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n location: string,\n modelFormat: string,\n modelName: string,\n modelVersion: string,\n options?: LocationBasedModelCapacitiesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ModelCapacityListResultValueItem[]> {\n let result: LocationBasedModelCapacitiesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(location, modelFormat, modelName, modelVersion, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(location, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n location: string,\n modelFormat: string,\n modelName: string,\n modelVersion: string,\n options?: LocationBasedModelCapacitiesListOptionalParams,\n ): AsyncIterableIterator<ModelCapacityListResultValueItem> {\n for await (const page of this.listPagingPage(\n location,\n modelFormat,\n modelName,\n modelVersion,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List Location Based ModelCapacities.\n * @param location Resource location.\n * @param modelFormat The format of the Model\n * @param modelName The name of the Model\n * @param modelVersion The version of the Model\n * @param options The options parameters.\n */\n private _list(\n location: string,\n modelFormat: string,\n modelName: string,\n modelVersion: string,\n options?: LocationBasedModelCapacitiesListOptionalParams,\n ): Promise<LocationBasedModelCapacitiesListResponse> {\n return this.client.sendOperationRequest(\n { location, modelFormat, modelName, modelVersion, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param location Resource location.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n location: string,\n nextLink: string,\n options?: LocationBasedModelCapacitiesListNextOptionalParams,\n ): Promise<LocationBasedModelCapacitiesListNextResponse> {\n return this.client.sendOperationRequest({ location, nextLink, options }, listNextOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/modelCapacities\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ModelCapacityListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.modelFormat,\n Parameters.modelName,\n Parameters.modelVersion,\n ],\n urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.location],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ModelCapacityListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"locationBasedModelCapacities.js","sourceRoot":"","sources":["../../../src/operations/locationBasedModelCapacities.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,gEAAgE;AAChE,MAAa,gCAAgC;IAG1B,MAAM,CAAoC;IAE3D;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,IAAI,CACT,QAAgB,EAChB,WAAmB,EACnB,SAAiB,EACjB,YAAoB,EACpB,OAAwD;QAExD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,QAAQ,EACR,WAAW,EACX,SAAS,EACT,YAAY,EACZ,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,QAAQ,EACR,WAAW,EACX,SAAS,EACT,YAAY,EACZ,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,QAAgB,EAChB,WAAmB,EACnB,SAAiB,EACjB,YAAoB,EACpB,OAAwD,EACxD,QAAuB;QAEvB,IAAI,MAAgD,CAAC;QACrD,IAAI,iBAAiB,GAAG,QAA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AAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { LocationBasedModelCapacities } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CognitiveServicesManagementClient } from \"../cognitiveServicesManagementClient.js\";\nimport {\n ModelCapacityListResultValueItem,\n LocationBasedModelCapacitiesListNextOptionalParams,\n LocationBasedModelCapacitiesListOptionalParams,\n LocationBasedModelCapacitiesListResponse,\n LocationBasedModelCapacitiesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing LocationBasedModelCapacities operations. */\nexport class LocationBasedModelCapacitiesImpl\n implements LocationBasedModelCapacities\n{\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class LocationBasedModelCapacities class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * List Location Based ModelCapacities.\n * @param location Resource location.\n * @param modelFormat The format of the Model\n * @param modelName The name of the Model\n * @param modelVersion The version of the Model\n * @param options The options parameters.\n */\n public list(\n location: string,\n modelFormat: string,\n modelName: string,\n modelVersion: string,\n options?: LocationBasedModelCapacitiesListOptionalParams,\n ): PagedAsyncIterableIterator<ModelCapacityListResultValueItem> {\n const iter = this.listPagingAll(\n location,\n modelFormat,\n modelName,\n modelVersion,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n location,\n modelFormat,\n modelName,\n modelVersion,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n location: string,\n modelFormat: string,\n modelName: string,\n modelVersion: string,\n options?: LocationBasedModelCapacitiesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ModelCapacityListResultValueItem[]> {\n let result: LocationBasedModelCapacitiesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n location,\n modelFormat,\n modelName,\n modelVersion,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(location, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n location: string,\n modelFormat: string,\n modelName: string,\n modelVersion: string,\n options?: LocationBasedModelCapacitiesListOptionalParams,\n ): AsyncIterableIterator<ModelCapacityListResultValueItem> {\n for await (const page of this.listPagingPage(\n location,\n modelFormat,\n modelName,\n modelVersion,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List Location Based ModelCapacities.\n * @param location Resource location.\n * @param modelFormat The format of the Model\n * @param modelName The name of the Model\n * @param modelVersion The version of the Model\n * @param options The options parameters.\n */\n private _list(\n location: string,\n modelFormat: string,\n modelName: string,\n modelVersion: string,\n options?: LocationBasedModelCapacitiesListOptionalParams,\n ): Promise<LocationBasedModelCapacitiesListResponse> {\n return this.client.sendOperationRequest(\n { location, modelFormat, modelName, modelVersion, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param location Resource location.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n location: string,\n nextLink: string,\n options?: LocationBasedModelCapacitiesListNextOptionalParams,\n ): Promise<LocationBasedModelCapacitiesListNextResponse> {\n return this.client.sendOperationRequest(\n { location, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/modelCapacities\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ModelCapacityListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.modelFormat,\n Parameters.modelName,\n Parameters.modelVersion,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ModelCapacityListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"modelCapacities.d.ts","sourceRoot":"","sources":["../../../src/operations/modelCapacities.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAInE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EACL,gCAAgC,EAEhC,iCAAiC,EAGlC,MAAM,oBAAoB,CAAC;AAG5B,mDAAmD;AACnD,qBAAa,mBAAoB,YAAW,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;;;;OAMG;IACI,IAAI,CACT,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,0BAA0B,CAAC,gCAAgC,CAAC;YAkBhD,cAAc;YAyBd,aAAa;IAW5B;;;;;;OAMG;IACH,OAAO,CAAC,KAAK;IAYb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CAMlB"}
1
+ {"version":3,"file":"modelCapacities.d.ts","sourceRoot":"","sources":["../../../src/operations/modelCapacities.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAInE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EACL,gCAAgC,EAEhC,iCAAiC,EAGlC,MAAM,oBAAoB,CAAC;AAG5B,mDAAmD;AACnD,qBAAa,mBAAoB,YAAW,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;;;;OAMG;IACI,IAAI,CACT,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,0BAA0B,CAAC,gCAAgC,CAAC;YA6BhD,cAAc;YAyBd,aAAa;IAgB5B;;;;;;OAMG;IACH,OAAO,CAAC,KAAK;IAYb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing ModelCapacities operations. */
18
18
  class ModelCapacitiesImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class ModelCapacities class.
21
22
  * @param client Reference to the service client
@@ -40,52 +41,35 @@ class ModelCapacitiesImpl {
40
41
  return this;
41
42
  },
42
43
  byPage: (settings) => {
43
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
44
+ if (settings?.maxPageSize) {
44
45
  throw new Error("maxPageSize is not supported by this operation.");
45
46
  }
46
47
  return this.listPagingPage(modelFormat, modelName, modelVersion, options, settings);
47
48
  },
48
49
  };
49
50
  }
50
- listPagingPage(modelFormat, modelName, modelVersion, options, settings) {
51
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
52
- let result;
53
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
54
- if (!continuationToken) {
55
- result = yield tslib_1.__await(this._list(modelFormat, modelName, modelVersion, options));
56
- let page = result.value || [];
57
- continuationToken = result.nextLink;
58
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
59
- yield yield tslib_1.__await(page);
60
- }
61
- while (continuationToken) {
62
- result = yield tslib_1.__await(this._listNext(continuationToken, options));
63
- continuationToken = result.nextLink;
64
- let page = result.value || [];
65
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
66
- yield yield tslib_1.__await(page);
67
- }
68
- });
51
+ async *listPagingPage(modelFormat, modelName, modelVersion, options, settings) {
52
+ let result;
53
+ let continuationToken = settings?.continuationToken;
54
+ if (!continuationToken) {
55
+ result = await this._list(modelFormat, modelName, modelVersion, options);
56
+ let page = result.value || [];
57
+ continuationToken = result.nextLink;
58
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
59
+ yield page;
60
+ }
61
+ while (continuationToken) {
62
+ result = await this._listNext(continuationToken, options);
63
+ continuationToken = result.nextLink;
64
+ let page = result.value || [];
65
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
66
+ yield page;
67
+ }
69
68
  }
70
- listPagingAll(modelFormat, modelName, modelVersion, options) {
71
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
72
- var _a, e_1, _b, _c;
73
- try {
74
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(modelFormat, modelName, modelVersion, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
75
- _c = _f.value;
76
- _d = false;
77
- const page = _c;
78
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
79
- }
80
- }
81
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
82
- finally {
83
- try {
84
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
85
- }
86
- finally { if (e_1) throw e_1.error; }
87
- }
88
- });
69
+ async *listPagingAll(modelFormat, modelName, modelVersion, options) {
70
+ for await (const page of this.listPagingPage(modelFormat, modelName, modelVersion, options)) {
71
+ yield* page;
72
+ }
89
73
  }
90
74
  /**
91
75
  * List ModelCapacities.
@@ -141,7 +125,11 @@ const listNextOperationSpec = {
141
125
  bodyMapper: Mappers.ErrorResponse,
142
126
  },
143
127
  },
144
- urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink],
128
+ urlParameters: [
129
+ Parameters.$host,
130
+ Parameters.subscriptionId,
131
+ Parameters.nextLink,
132
+ ],
145
133
  headerParameters: [Parameters.accept],
146
134
  serializer,
147
135
  };
@@ -1 +1 @@
1
- {"version":3,"file":"modelCapacities.js","sourceRoot":"","sources":["../../../src/operations/modelCapacities.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,mDAAmD;AACnD,MAAa,mBAAmB;IAG9B;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,WAAmB,EACnB,SAAiB,EACjB,YAAoB,EACpB,OAA2C;QAE3C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;QAC/E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,E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f,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,YAAY;KACxB;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,EAAE,UAAU,CAAC,QAAQ,CAAC;IACjF,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ModelCapacities } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CognitiveServicesManagementClient } from \"../cognitiveServicesManagementClient.js\";\nimport {\n ModelCapacityListResultValueItem,\n ModelCapacitiesListNextOptionalParams,\n ModelCapacitiesListOptionalParams,\n ModelCapacitiesListResponse,\n ModelCapacitiesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ModelCapacities operations. */\nexport class ModelCapacitiesImpl implements ModelCapacities {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class ModelCapacities class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * List ModelCapacities.\n * @param modelFormat The format of the Model\n * @param modelName The name of the Model\n * @param modelVersion The version of the Model\n * @param options The options parameters.\n */\n public list(\n modelFormat: string,\n modelName: string,\n modelVersion: string,\n options?: ModelCapacitiesListOptionalParams,\n ): PagedAsyncIterableIterator<ModelCapacityListResultValueItem> {\n const iter = this.listPagingAll(modelFormat, modelName, modelVersion, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(modelFormat, modelName, modelVersion, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n modelFormat: string,\n modelName: string,\n modelVersion: string,\n options?: ModelCapacitiesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ModelCapacityListResultValueItem[]> {\n let result: ModelCapacitiesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(modelFormat, modelName, modelVersion, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n modelFormat: string,\n modelName: string,\n modelVersion: string,\n options?: ModelCapacitiesListOptionalParams,\n ): AsyncIterableIterator<ModelCapacityListResultValueItem> {\n for await (const page of this.listPagingPage(modelFormat, modelName, modelVersion, options)) {\n yield* page;\n }\n }\n\n /**\n * List ModelCapacities.\n * @param modelFormat The format of the Model\n * @param modelName The name of the Model\n * @param modelVersion The version of the Model\n * @param options The options parameters.\n */\n private _list(\n modelFormat: string,\n modelName: string,\n modelVersion: string,\n options?: ModelCapacitiesListOptionalParams,\n ): Promise<ModelCapacitiesListResponse> {\n return this.client.sendOperationRequest(\n { modelFormat, modelName, modelVersion, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: ModelCapacitiesListNextOptionalParams,\n ): Promise<ModelCapacitiesListNextResponse> {\n return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/modelCapacities\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ModelCapacityListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.modelFormat,\n Parameters.modelName,\n Parameters.modelVersion,\n ],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ModelCapacityListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"modelCapacities.js","sourceRoot":"","sources":["../../../src/operations/modelCapacities.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,mDAAmD;AACnD,MAAa,mBAAmB;IACb,MAAM,CAAoC;IAE3D;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MA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P,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,YAAY;KACxB;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ModelCapacities } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CognitiveServicesManagementClient } from \"../cognitiveServicesManagementClient.js\";\nimport {\n ModelCapacityListResultValueItem,\n ModelCapacitiesListNextOptionalParams,\n ModelCapacitiesListOptionalParams,\n ModelCapacitiesListResponse,\n ModelCapacitiesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ModelCapacities operations. */\nexport class ModelCapacitiesImpl implements ModelCapacities {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class ModelCapacities class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * List ModelCapacities.\n * @param modelFormat The format of the Model\n * @param modelName The name of the Model\n * @param modelVersion The version of the Model\n * @param options The options parameters.\n */\n public list(\n modelFormat: string,\n modelName: string,\n modelVersion: string,\n options?: ModelCapacitiesListOptionalParams,\n ): PagedAsyncIterableIterator<ModelCapacityListResultValueItem> {\n const iter = this.listPagingAll(\n modelFormat,\n modelName,\n modelVersion,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n modelFormat,\n modelName,\n modelVersion,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n modelFormat: string,\n modelName: string,\n modelVersion: string,\n options?: ModelCapacitiesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ModelCapacityListResultValueItem[]> {\n let result: ModelCapacitiesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(modelFormat, modelName, modelVersion, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n modelFormat: string,\n modelName: string,\n modelVersion: string,\n options?: ModelCapacitiesListOptionalParams,\n ): AsyncIterableIterator<ModelCapacityListResultValueItem> {\n for await (const page of this.listPagingPage(\n modelFormat,\n modelName,\n modelVersion,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List ModelCapacities.\n * @param modelFormat The format of the Model\n * @param modelName The name of the Model\n * @param modelVersion The version of the Model\n * @param options The options parameters.\n */\n private _list(\n modelFormat: string,\n modelName: string,\n modelVersion: string,\n options?: ModelCapacitiesListOptionalParams,\n ): Promise<ModelCapacitiesListResponse> {\n return this.client.sendOperationRequest(\n { modelFormat, modelName, modelVersion, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: ModelCapacitiesListNextOptionalParams,\n ): Promise<ModelCapacitiesListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/modelCapacities\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ModelCapacityListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.modelFormat,\n Parameters.modelName,\n Parameters.modelVersion,\n ],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ModelCapacityListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/operations/models.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAI1D,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EACL,KAAK,EAEL,wBAAwB,EAGzB,MAAM,oBAAoB,CAAC;AAG5B,0CAA0C;AAC1C,qBAAa,UAAW,YAAW,MAAM;IACvC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;;OAIG;IACI,IAAI,CACT,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,wBAAwB,GACjC,0BAA0B,CAAC,KAAK,CAAC;YAkBrB,cAAc;YAuBd,aAAa;IAS5B;;;;OAIG;IACH,OAAO,CAAC,KAAK;IAIb;;;;;OAKG;IACH,OAAO,CAAC,SAAS;CAOlB"}
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/operations/models.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAI1D,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EACL,KAAK,EAEL,wBAAwB,EAGzB,MAAM,oBAAoB,CAAC;AAG5B,0CAA0C;AAC1C,qBAAa,UAAW,YAAW,MAAM;IACvC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;;OAIG;IACI,IAAI,CACT,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,wBAAwB,GACjC,0BAA0B,CAAC,KAAK,CAAC;YAkBrB,cAAc;YAuBd,aAAa;IAS5B;;;;OAIG;IACH,OAAO,CAAC,KAAK;IAUb;;;;;OAKG;IACH,OAAO,CAAC,SAAS;CAUlB"}
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing Models operations. */
18
18
  class ModelsImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class Models class.
21
22
  * @param client Reference to the service client
@@ -38,52 +39,35 @@ class ModelsImpl {
38
39
  return this;
39
40
  },
40
41
  byPage: (settings) => {
41
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
42
+ if (settings?.maxPageSize) {
42
43
  throw new Error("maxPageSize is not supported by this operation.");
43
44
  }
44
45
  return this.listPagingPage(location, options, settings);
45
46
  },
46
47
  };
47
48
  }
48
- listPagingPage(location, options, settings) {
49
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
50
- let result;
51
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
- if (!continuationToken) {
53
- result = yield tslib_1.__await(this._list(location, options));
54
- let page = result.value || [];
55
- continuationToken = result.nextLink;
56
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
57
- yield yield tslib_1.__await(page);
58
- }
59
- while (continuationToken) {
60
- result = yield tslib_1.__await(this._listNext(location, continuationToken, options));
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
64
- yield yield tslib_1.__await(page);
65
- }
66
- });
49
+ async *listPagingPage(location, options, settings) {
50
+ let result;
51
+ let continuationToken = settings?.continuationToken;
52
+ if (!continuationToken) {
53
+ result = await this._list(location, options);
54
+ let page = result.value || [];
55
+ continuationToken = result.nextLink;
56
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
57
+ yield page;
58
+ }
59
+ while (continuationToken) {
60
+ result = await this._listNext(location, continuationToken, options);
61
+ continuationToken = result.nextLink;
62
+ let page = result.value || [];
63
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
64
+ yield page;
65
+ }
67
66
  }
68
- listPagingAll(location, options) {
69
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(location, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
73
- _c = _f.value;
74
- _d = false;
75
- const page = _c;
76
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
77
- }
78
- }
79
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
80
- finally {
81
- try {
82
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
83
- }
84
- finally { if (e_1) throw e_1.error; }
85
- }
86
- });
67
+ async *listPagingAll(location, options) {
68
+ for await (const page of this.listPagingPage(location, options)) {
69
+ yield* page;
70
+ }
87
71
  }
88
72
  /**
89
73
  * List Models.
@@ -118,7 +102,11 @@ const listOperationSpec = {
118
102
  },
119
103
  },
120
104
  queryParameters: [Parameters.apiVersion],
121
- urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.location],
105
+ urlParameters: [
106
+ Parameters.$host,
107
+ Parameters.subscriptionId,
108
+ Parameters.location,
109
+ ],
122
110
  headerParameters: [Parameters.accept],
123
111
  serializer,
124
112
  };
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/operations/models.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAa,UAAU;IAGrB;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,QAAgB,EAChB,OAAkC;QAElC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACnD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;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AC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Models } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CognitiveServicesManagementClient } from \"../cognitiveServicesManagementClient.js\";\nimport {\n Model,\n ModelsListNextOptionalParams,\n ModelsListOptionalParams,\n ModelsListResponse,\n ModelsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Models operations. */\nexport class ModelsImpl implements Models {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class Models class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * List Models.\n * @param location Resource location.\n * @param options The options parameters.\n */\n public list(\n location: string,\n options?: ModelsListOptionalParams,\n ): PagedAsyncIterableIterator<Model> {\n const iter = this.listPagingAll(location, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(location, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n location: string,\n options?: ModelsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Model[]> {\n let result: ModelsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(location, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(location, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n location: string,\n options?: ModelsListOptionalParams,\n ): AsyncIterableIterator<Model> {\n for await (const page of this.listPagingPage(location, options)) {\n yield* page;\n }\n }\n\n /**\n * List Models.\n * @param location Resource location.\n * @param options The options parameters.\n */\n private _list(location: string, options?: ModelsListOptionalParams): Promise<ModelsListResponse> {\n return this.client.sendOperationRequest({ location, options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param location Resource location.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n location: string,\n nextLink: string,\n options?: ModelsListNextOptionalParams,\n ): Promise<ModelsListNextResponse> {\n return this.client.sendOperationRequest({ location, nextLink, options }, listNextOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/models\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ModelListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.location],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ModelListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/operations/models.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAa,UAAU;IACJ,MAAM,CAAoC;IAE3D;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,QAAgB,EAChB,OAAkC;QAElC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACnD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC1D,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,QAAgB,EAChB,OAAkC,EAClC,QAAuB;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,oBAAoB,CACrC,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,EAC/B,qBAAqB,CACtB,CAAC;IACJ,CAAC;CACF;AApGD,gCAoGC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,mGAAmG;IACzG,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Models } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CognitiveServicesManagementClient } from \"../cognitiveServicesManagementClient.js\";\nimport {\n Model,\n ModelsListNextOptionalParams,\n ModelsListOptionalParams,\n ModelsListResponse,\n ModelsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Models operations. */\nexport class ModelsImpl implements Models {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class Models class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * List Models.\n * @param location Resource location.\n * @param options The options parameters.\n */\n public list(\n location: string,\n options?: ModelsListOptionalParams,\n ): PagedAsyncIterableIterator<Model> {\n const iter = this.listPagingAll(location, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(location, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n location: string,\n options?: ModelsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Model[]> {\n let result: ModelsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(location, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(location, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n location: string,\n options?: ModelsListOptionalParams,\n ): AsyncIterableIterator<Model> {\n for await (const page of this.listPagingPage(location, options)) {\n yield* page;\n }\n }\n\n /**\n * List Models.\n * @param location Resource location.\n * @param options The options parameters.\n */\n private _list(\n location: string,\n options?: ModelsListOptionalParams,\n ): Promise<ModelsListResponse> {\n return this.client.sendOperationRequest(\n { location, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param location Resource location.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n location: string,\n nextLink: string,\n options?: ModelsListNextOptionalParams,\n ): Promise<ModelsListNextResponse> {\n return this.client.sendOperationRequest(\n { location, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/models\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ModelListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ModelListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}