@azure/arm-cognitiveservices 7.7.0-beta.1 → 8.0.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 (809) hide show
  1. package/README.md +1 -1
  2. package/dist/browser/cognitiveServicesManagementClient.d.ts +3 -3
  3. package/dist/browser/cognitiveServicesManagementClient.d.ts.map +1 -1
  4. package/dist/browser/cognitiveServicesManagementClient.js +49 -20
  5. package/dist/browser/cognitiveServicesManagementClient.js.map +1 -1
  6. package/dist/browser/index.d.ts.map +1 -1
  7. package/dist/browser/index.js +4 -7
  8. package/dist/browser/index.js.map +1 -1
  9. package/dist/browser/lroImpl.d.ts.map +1 -1
  10. package/dist/browser/lroImpl.js +9 -10
  11. package/dist/browser/lroImpl.js.map +1 -1
  12. package/dist/browser/models/index.d.ts +38 -35
  13. package/dist/browser/models/index.d.ts.map +1 -1
  14. package/dist/browser/models/index.js +2 -7
  15. package/dist/browser/models/index.js.map +1 -1
  16. package/dist/browser/models/mappers.d.ts +1 -1
  17. package/dist/browser/models/mappers.d.ts.map +1 -1
  18. package/dist/browser/models/mappers.js +297 -136
  19. package/dist/browser/models/mappers.js.map +1 -1
  20. package/dist/browser/models/parameters.d.ts +3 -3
  21. package/dist/browser/models/parameters.d.ts.map +1 -1
  22. package/dist/browser/models/parameters.js +9 -14
  23. package/dist/browser/models/parameters.js.map +1 -1
  24. package/dist/browser/operations/accountCapabilityHosts.d.ts +4 -4
  25. package/dist/browser/operations/accountCapabilityHosts.d.ts.map +1 -1
  26. package/dist/browser/operations/accountCapabilityHosts.js +32 -26
  27. package/dist/browser/operations/accountCapabilityHosts.js.map +1 -1
  28. package/dist/{esm/operations/accountConnection.d.ts → browser/operations/accountConnections.d.ts} +11 -11
  29. package/dist/browser/operations/accountConnections.d.ts.map +1 -0
  30. package/dist/{react-native/operations/accountConnection.js → browser/operations/accountConnections.js} +31 -53
  31. package/dist/browser/operations/accountConnections.js.map +1 -0
  32. package/dist/browser/operations/accounts.d.ts.map +1 -1
  33. package/dist/browser/operations/accounts.js +103 -144
  34. package/dist/browser/operations/accounts.js.map +1 -1
  35. package/dist/browser/operations/commitmentPlans.d.ts.map +1 -1
  36. package/dist/browser/operations/commitmentPlans.js +157 -200
  37. package/dist/browser/operations/commitmentPlans.js.map +1 -1
  38. package/dist/browser/operations/commitmentTiers.d.ts.map +1 -1
  39. package/dist/browser/operations/commitmentTiers.js +25 -47
  40. package/dist/browser/operations/commitmentTiers.js.map +1 -1
  41. package/dist/browser/operations/defenderForAISettings.d.ts.map +1 -1
  42. package/dist/browser/operations/defenderForAISettings.js +25 -47
  43. package/dist/browser/operations/defenderForAISettings.js.map +1 -1
  44. package/dist/browser/operations/deletedAccounts.d.ts.map +1 -1
  45. package/dist/browser/operations/deletedAccounts.js +36 -53
  46. package/dist/browser/operations/deletedAccounts.js.map +1 -1
  47. package/dist/browser/operations/deployments.d.ts.map +1 -1
  48. package/dist/browser/operations/deployments.js +80 -104
  49. package/dist/browser/operations/deployments.js.map +1 -1
  50. package/dist/browser/operations/encryptionScopes.d.ts.map +1 -1
  51. package/dist/browser/operations/encryptionScopes.js +36 -53
  52. package/dist/browser/operations/encryptionScopes.js.map +1 -1
  53. package/dist/browser/operations/index.d.ts +2 -2
  54. package/dist/browser/operations/index.d.ts.map +1 -1
  55. package/dist/browser/operations/index.js +6 -9
  56. package/dist/browser/operations/index.js.map +1 -1
  57. package/dist/browser/operations/locationBasedModelCapacities.d.ts.map +1 -1
  58. package/dist/browser/operations/locationBasedModelCapacities.js +25 -47
  59. package/dist/browser/operations/locationBasedModelCapacities.js.map +1 -1
  60. package/dist/browser/operations/modelCapacities.d.ts.map +1 -1
  61. package/dist/browser/operations/modelCapacities.js +25 -47
  62. package/dist/browser/operations/modelCapacities.js.map +1 -1
  63. package/dist/browser/operations/models.d.ts.map +1 -1
  64. package/dist/browser/operations/models.js +25 -47
  65. package/dist/browser/operations/models.js.map +1 -1
  66. package/dist/browser/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
  67. package/dist/browser/operations/networkSecurityPerimeterConfigurations.js +36 -53
  68. package/dist/browser/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
  69. package/dist/browser/operations/operations.d.ts.map +1 -1
  70. package/dist/browser/operations/operations.js +25 -47
  71. package/dist/browser/operations/operations.js.map +1 -1
  72. package/dist/browser/operations/privateEndpointConnections.d.ts.map +1 -1
  73. package/dist/browser/operations/privateEndpointConnections.js +25 -19
  74. package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
  75. package/dist/browser/operations/privateLinkResources.d.ts.map +1 -1
  76. package/dist/browser/operations/privateLinkResources.js +3 -7
  77. package/dist/browser/operations/privateLinkResources.js.map +1 -1
  78. package/dist/browser/operations/projectCapabilityHosts.d.ts +4 -4
  79. package/dist/browser/operations/projectCapabilityHosts.d.ts.map +1 -1
  80. package/dist/browser/operations/projectCapabilityHosts.js +32 -26
  81. package/dist/browser/operations/projectCapabilityHosts.js.map +1 -1
  82. package/dist/browser/operations/{projectConnection.d.ts → projectConnections.d.ts} +11 -11
  83. package/dist/browser/operations/projectConnections.d.ts.map +1 -0
  84. package/dist/browser/operations/{projectConnection.js → projectConnections.js} +31 -53
  85. package/dist/browser/operations/projectConnections.js.map +1 -0
  86. package/dist/browser/operations/projects.d.ts.map +1 -1
  87. package/dist/browser/operations/projects.js +58 -65
  88. package/dist/browser/operations/projects.js.map +1 -1
  89. package/dist/browser/operations/raiBlocklistItems.d.ts.map +1 -1
  90. package/dist/browser/operations/raiBlocklistItems.js +36 -53
  91. package/dist/browser/operations/raiBlocklistItems.js.map +1 -1
  92. package/dist/browser/operations/raiBlocklists.d.ts.map +1 -1
  93. package/dist/browser/operations/raiBlocklists.js +36 -53
  94. package/dist/browser/operations/raiBlocklists.js.map +1 -1
  95. package/dist/browser/operations/raiContentFilters.d.ts.map +1 -1
  96. package/dist/browser/operations/raiContentFilters.js +25 -47
  97. package/dist/browser/operations/raiContentFilters.js.map +1 -1
  98. package/dist/browser/operations/raiPolicies.d.ts.map +1 -1
  99. package/dist/browser/operations/raiPolicies.js +36 -53
  100. package/dist/browser/operations/raiPolicies.js.map +1 -1
  101. package/dist/browser/operations/resourceSkus.d.ts.map +1 -1
  102. package/dist/browser/operations/resourceSkus.js +25 -47
  103. package/dist/browser/operations/resourceSkus.js.map +1 -1
  104. package/dist/browser/operations/usages.d.ts.map +1 -1
  105. package/dist/browser/operations/usages.js +25 -47
  106. package/dist/browser/operations/usages.js.map +1 -1
  107. package/dist/browser/operationsInterfaces/accountCapabilityHosts.d.ts +4 -4
  108. package/dist/browser/operationsInterfaces/accountCapabilityHosts.d.ts.map +1 -1
  109. package/dist/browser/operationsInterfaces/accountCapabilityHosts.js +2 -7
  110. package/dist/browser/operationsInterfaces/accountCapabilityHosts.js.map +1 -1
  111. package/dist/{esm/operationsInterfaces/accountConnection.d.ts → browser/operationsInterfaces/accountConnections.d.ts} +9 -9
  112. package/dist/browser/operationsInterfaces/accountConnections.d.ts.map +1 -0
  113. package/dist/browser/operationsInterfaces/accountConnections.js +4 -0
  114. package/dist/browser/operationsInterfaces/accountConnections.js.map +1 -0
  115. package/dist/browser/operationsInterfaces/accounts.d.ts.map +1 -1
  116. package/dist/browser/operationsInterfaces/accounts.js +2 -7
  117. package/dist/browser/operationsInterfaces/accounts.js.map +1 -1
  118. package/dist/browser/operationsInterfaces/commitmentPlans.d.ts.map +1 -1
  119. package/dist/browser/operationsInterfaces/commitmentPlans.js +2 -7
  120. package/dist/browser/operationsInterfaces/commitmentPlans.js.map +1 -1
  121. package/dist/browser/operationsInterfaces/commitmentTiers.d.ts.map +1 -1
  122. package/dist/browser/operationsInterfaces/commitmentTiers.js +2 -7
  123. package/dist/browser/operationsInterfaces/commitmentTiers.js.map +1 -1
  124. package/dist/browser/operationsInterfaces/defenderForAISettings.d.ts.map +1 -1
  125. package/dist/browser/operationsInterfaces/defenderForAISettings.js +2 -7
  126. package/dist/browser/operationsInterfaces/defenderForAISettings.js.map +1 -1
  127. package/dist/browser/operationsInterfaces/deletedAccounts.d.ts.map +1 -1
  128. package/dist/browser/operationsInterfaces/deletedAccounts.js +2 -7
  129. package/dist/browser/operationsInterfaces/deletedAccounts.js.map +1 -1
  130. package/dist/browser/operationsInterfaces/deployments.d.ts.map +1 -1
  131. package/dist/browser/operationsInterfaces/deployments.js +2 -7
  132. package/dist/browser/operationsInterfaces/deployments.js.map +1 -1
  133. package/dist/browser/operationsInterfaces/encryptionScopes.d.ts.map +1 -1
  134. package/dist/browser/operationsInterfaces/encryptionScopes.js +2 -7
  135. package/dist/browser/operationsInterfaces/encryptionScopes.js.map +1 -1
  136. package/dist/browser/operationsInterfaces/index.d.ts +2 -2
  137. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
  138. package/dist/browser/operationsInterfaces/index.js +6 -9
  139. package/dist/browser/operationsInterfaces/index.js.map +1 -1
  140. package/dist/browser/operationsInterfaces/locationBasedModelCapacities.d.ts.map +1 -1
  141. package/dist/browser/operationsInterfaces/locationBasedModelCapacities.js +2 -7
  142. package/dist/browser/operationsInterfaces/locationBasedModelCapacities.js.map +1 -1
  143. package/dist/browser/operationsInterfaces/modelCapacities.d.ts.map +1 -1
  144. package/dist/browser/operationsInterfaces/modelCapacities.js +2 -7
  145. package/dist/browser/operationsInterfaces/modelCapacities.js.map +1 -1
  146. package/dist/browser/operationsInterfaces/models.d.ts.map +1 -1
  147. package/dist/browser/operationsInterfaces/models.js +2 -7
  148. package/dist/browser/operationsInterfaces/models.js.map +1 -1
  149. package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
  150. package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.js +2 -7
  151. package/dist/browser/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -1
  152. package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -1
  153. package/dist/browser/operationsInterfaces/operations.js +2 -7
  154. package/dist/browser/operationsInterfaces/operations.js.map +1 -1
  155. package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
  156. package/dist/browser/operationsInterfaces/privateEndpointConnections.js +2 -7
  157. package/dist/browser/operationsInterfaces/privateEndpointConnections.js.map +1 -1
  158. package/dist/browser/operationsInterfaces/privateLinkResources.d.ts.map +1 -1
  159. package/dist/browser/operationsInterfaces/privateLinkResources.js +2 -7
  160. package/dist/browser/operationsInterfaces/privateLinkResources.js.map +1 -1
  161. package/dist/browser/operationsInterfaces/projectCapabilityHosts.d.ts +4 -4
  162. package/dist/browser/operationsInterfaces/projectCapabilityHosts.d.ts.map +1 -1
  163. package/dist/browser/operationsInterfaces/projectCapabilityHosts.js +2 -7
  164. package/dist/browser/operationsInterfaces/projectCapabilityHosts.js.map +1 -1
  165. package/dist/{esm/operationsInterfaces/projectConnection.d.ts → browser/operationsInterfaces/projectConnections.d.ts} +9 -9
  166. package/dist/browser/operationsInterfaces/projectConnections.d.ts.map +1 -0
  167. package/dist/browser/operationsInterfaces/projectConnections.js +4 -0
  168. package/dist/browser/operationsInterfaces/projectConnections.js.map +1 -0
  169. package/dist/browser/operationsInterfaces/projects.d.ts.map +1 -1
  170. package/dist/browser/operationsInterfaces/projects.js +2 -7
  171. package/dist/browser/operationsInterfaces/projects.js.map +1 -1
  172. package/dist/browser/operationsInterfaces/raiBlocklistItems.d.ts.map +1 -1
  173. package/dist/browser/operationsInterfaces/raiBlocklistItems.js +2 -7
  174. package/dist/browser/operationsInterfaces/raiBlocklistItems.js.map +1 -1
  175. package/dist/browser/operationsInterfaces/raiBlocklists.d.ts.map +1 -1
  176. package/dist/browser/operationsInterfaces/raiBlocklists.js +2 -7
  177. package/dist/browser/operationsInterfaces/raiBlocklists.js.map +1 -1
  178. package/dist/browser/operationsInterfaces/raiContentFilters.d.ts.map +1 -1
  179. package/dist/browser/operationsInterfaces/raiContentFilters.js +2 -7
  180. package/dist/browser/operationsInterfaces/raiContentFilters.js.map +1 -1
  181. package/dist/browser/operationsInterfaces/raiPolicies.d.ts.map +1 -1
  182. package/dist/browser/operationsInterfaces/raiPolicies.js +2 -7
  183. package/dist/browser/operationsInterfaces/raiPolicies.js.map +1 -1
  184. package/dist/browser/operationsInterfaces/resourceSkus.d.ts.map +1 -1
  185. package/dist/browser/operationsInterfaces/resourceSkus.js +2 -7
  186. package/dist/browser/operationsInterfaces/resourceSkus.js.map +1 -1
  187. package/dist/browser/operationsInterfaces/usages.d.ts.map +1 -1
  188. package/dist/browser/operationsInterfaces/usages.js +2 -7
  189. package/dist/browser/operationsInterfaces/usages.js.map +1 -1
  190. package/dist/browser/pagingHelper.d.ts.map +1 -1
  191. package/dist/browser/pagingHelper.js +4 -11
  192. package/dist/browser/pagingHelper.js.map +1 -1
  193. package/dist/commonjs/cognitiveServicesManagementClient.d.ts +3 -3
  194. package/dist/commonjs/cognitiveServicesManagementClient.d.ts.map +1 -1
  195. package/dist/commonjs/cognitiveServicesManagementClient.js +48 -19
  196. package/dist/commonjs/cognitiveServicesManagementClient.js.map +1 -1
  197. package/dist/commonjs/index.d.ts.map +1 -1
  198. package/dist/commonjs/index.js +4 -7
  199. package/dist/commonjs/index.js.map +1 -1
  200. package/dist/commonjs/lroImpl.d.ts.map +1 -1
  201. package/dist/commonjs/lroImpl.js +9 -10
  202. package/dist/commonjs/lroImpl.js.map +1 -1
  203. package/dist/commonjs/models/index.d.ts +38 -35
  204. package/dist/commonjs/models/index.d.ts.map +1 -1
  205. package/dist/commonjs/models/index.js +2 -7
  206. package/dist/commonjs/models/index.js.map +1 -1
  207. package/dist/commonjs/models/mappers.d.ts +1 -1
  208. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  209. package/dist/commonjs/models/mappers.js +298 -137
  210. package/dist/commonjs/models/mappers.js.map +1 -1
  211. package/dist/commonjs/models/parameters.d.ts +3 -3
  212. package/dist/commonjs/models/parameters.d.ts.map +1 -1
  213. package/dist/commonjs/models/parameters.js +10 -15
  214. package/dist/commonjs/models/parameters.js.map +1 -1
  215. package/dist/commonjs/operations/accountCapabilityHosts.d.ts +4 -4
  216. package/dist/commonjs/operations/accountCapabilityHosts.d.ts.map +1 -1
  217. package/dist/commonjs/operations/accountCapabilityHosts.js +32 -26
  218. package/dist/commonjs/operations/accountCapabilityHosts.js.map +1 -1
  219. package/dist/{browser/operations/accountConnection.d.ts → commonjs/operations/accountConnections.d.ts} +11 -11
  220. package/dist/commonjs/operations/accountConnections.d.ts.map +1 -0
  221. package/dist/commonjs/operations/{accountConnection.js → accountConnections.js} +33 -54
  222. package/dist/commonjs/operations/accountConnections.js.map +1 -0
  223. package/dist/commonjs/operations/accounts.d.ts.map +1 -1
  224. package/dist/commonjs/operations/accounts.js +103 -143
  225. package/dist/commonjs/operations/accounts.js.map +1 -1
  226. package/dist/commonjs/operations/commitmentPlans.d.ts.map +1 -1
  227. package/dist/commonjs/operations/commitmentPlans.js +157 -199
  228. package/dist/commonjs/operations/commitmentPlans.js.map +1 -1
  229. package/dist/commonjs/operations/commitmentTiers.d.ts.map +1 -1
  230. package/dist/commonjs/operations/commitmentTiers.js +25 -46
  231. package/dist/commonjs/operations/commitmentTiers.js.map +1 -1
  232. package/dist/commonjs/operations/defenderForAISettings.d.ts.map +1 -1
  233. package/dist/commonjs/operations/defenderForAISettings.js +25 -46
  234. package/dist/commonjs/operations/defenderForAISettings.js.map +1 -1
  235. package/dist/commonjs/operations/deletedAccounts.d.ts.map +1 -1
  236. package/dist/commonjs/operations/deletedAccounts.js +36 -52
  237. package/dist/commonjs/operations/deletedAccounts.js.map +1 -1
  238. package/dist/commonjs/operations/deployments.d.ts.map +1 -1
  239. package/dist/commonjs/operations/deployments.js +80 -103
  240. package/dist/commonjs/operations/deployments.js.map +1 -1
  241. package/dist/commonjs/operations/encryptionScopes.d.ts.map +1 -1
  242. package/dist/commonjs/operations/encryptionScopes.js +36 -52
  243. package/dist/commonjs/operations/encryptionScopes.js.map +1 -1
  244. package/dist/commonjs/operations/index.d.ts +2 -2
  245. package/dist/commonjs/operations/index.d.ts.map +1 -1
  246. package/dist/commonjs/operations/index.js +6 -9
  247. package/dist/commonjs/operations/index.js.map +1 -1
  248. package/dist/commonjs/operations/locationBasedModelCapacities.d.ts.map +1 -1
  249. package/dist/commonjs/operations/locationBasedModelCapacities.js +25 -46
  250. package/dist/commonjs/operations/locationBasedModelCapacities.js.map +1 -1
  251. package/dist/commonjs/operations/modelCapacities.d.ts.map +1 -1
  252. package/dist/commonjs/operations/modelCapacities.js +25 -46
  253. package/dist/commonjs/operations/modelCapacities.js.map +1 -1
  254. package/dist/commonjs/operations/models.d.ts.map +1 -1
  255. package/dist/commonjs/operations/models.js +25 -46
  256. package/dist/commonjs/operations/models.js.map +1 -1
  257. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
  258. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js +36 -52
  259. package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
  260. package/dist/commonjs/operations/operations.d.ts.map +1 -1
  261. package/dist/commonjs/operations/operations.js +25 -46
  262. package/dist/commonjs/operations/operations.js.map +1 -1
  263. package/dist/commonjs/operations/privateEndpointConnections.d.ts.map +1 -1
  264. package/dist/commonjs/operations/privateEndpointConnections.js +25 -19
  265. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
  266. package/dist/commonjs/operations/privateLinkResources.d.ts.map +1 -1
  267. package/dist/commonjs/operations/privateLinkResources.js +3 -7
  268. package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
  269. package/dist/commonjs/operations/projectCapabilityHosts.d.ts +4 -4
  270. package/dist/commonjs/operations/projectCapabilityHosts.d.ts.map +1 -1
  271. package/dist/commonjs/operations/projectCapabilityHosts.js +32 -26
  272. package/dist/commonjs/operations/projectCapabilityHosts.js.map +1 -1
  273. package/dist/commonjs/operations/{projectConnection.d.ts → projectConnections.d.ts} +11 -11
  274. package/dist/commonjs/operations/projectConnections.d.ts.map +1 -0
  275. package/dist/commonjs/operations/{projectConnection.js → projectConnections.js} +33 -54
  276. package/dist/commonjs/operations/projectConnections.js.map +1 -0
  277. package/dist/commonjs/operations/projects.d.ts.map +1 -1
  278. package/dist/commonjs/operations/projects.js +58 -64
  279. package/dist/commonjs/operations/projects.js.map +1 -1
  280. package/dist/commonjs/operations/raiBlocklistItems.d.ts.map +1 -1
  281. package/dist/commonjs/operations/raiBlocklistItems.js +36 -52
  282. package/dist/commonjs/operations/raiBlocklistItems.js.map +1 -1
  283. package/dist/commonjs/operations/raiBlocklists.d.ts.map +1 -1
  284. package/dist/commonjs/operations/raiBlocklists.js +36 -52
  285. package/dist/commonjs/operations/raiBlocklists.js.map +1 -1
  286. package/dist/commonjs/operations/raiContentFilters.d.ts.map +1 -1
  287. package/dist/commonjs/operations/raiContentFilters.js +25 -46
  288. package/dist/commonjs/operations/raiContentFilters.js.map +1 -1
  289. package/dist/commonjs/operations/raiPolicies.d.ts.map +1 -1
  290. package/dist/commonjs/operations/raiPolicies.js +36 -52
  291. package/dist/commonjs/operations/raiPolicies.js.map +1 -1
  292. package/dist/commonjs/operations/resourceSkus.d.ts.map +1 -1
  293. package/dist/commonjs/operations/resourceSkus.js +25 -46
  294. package/dist/commonjs/operations/resourceSkus.js.map +1 -1
  295. package/dist/commonjs/operations/usages.d.ts.map +1 -1
  296. package/dist/commonjs/operations/usages.js +25 -46
  297. package/dist/commonjs/operations/usages.js.map +1 -1
  298. package/dist/commonjs/operationsInterfaces/accountCapabilityHosts.d.ts +4 -4
  299. package/dist/commonjs/operationsInterfaces/accountCapabilityHosts.d.ts.map +1 -1
  300. package/dist/commonjs/operationsInterfaces/accountCapabilityHosts.js +2 -7
  301. package/dist/commonjs/operationsInterfaces/accountCapabilityHosts.js.map +1 -1
  302. package/dist/{react-native/operationsInterfaces/accountConnection.d.ts → commonjs/operationsInterfaces/accountConnections.d.ts} +9 -9
  303. package/dist/commonjs/operationsInterfaces/accountConnections.d.ts.map +1 -0
  304. package/dist/commonjs/operationsInterfaces/accountConnections.js +5 -0
  305. package/dist/commonjs/operationsInterfaces/accountConnections.js.map +1 -0
  306. package/dist/commonjs/operationsInterfaces/accounts.d.ts.map +1 -1
  307. package/dist/commonjs/operationsInterfaces/accounts.js +2 -7
  308. package/dist/commonjs/operationsInterfaces/accounts.js.map +1 -1
  309. package/dist/commonjs/operationsInterfaces/commitmentPlans.d.ts.map +1 -1
  310. package/dist/commonjs/operationsInterfaces/commitmentPlans.js +2 -7
  311. package/dist/commonjs/operationsInterfaces/commitmentPlans.js.map +1 -1
  312. package/dist/commonjs/operationsInterfaces/commitmentTiers.d.ts.map +1 -1
  313. package/dist/commonjs/operationsInterfaces/commitmentTiers.js +2 -7
  314. package/dist/commonjs/operationsInterfaces/commitmentTiers.js.map +1 -1
  315. package/dist/commonjs/operationsInterfaces/defenderForAISettings.d.ts.map +1 -1
  316. package/dist/commonjs/operationsInterfaces/defenderForAISettings.js +2 -7
  317. package/dist/commonjs/operationsInterfaces/defenderForAISettings.js.map +1 -1
  318. package/dist/commonjs/operationsInterfaces/deletedAccounts.d.ts.map +1 -1
  319. package/dist/commonjs/operationsInterfaces/deletedAccounts.js +2 -7
  320. package/dist/commonjs/operationsInterfaces/deletedAccounts.js.map +1 -1
  321. package/dist/commonjs/operationsInterfaces/deployments.d.ts.map +1 -1
  322. package/dist/commonjs/operationsInterfaces/deployments.js +2 -7
  323. package/dist/commonjs/operationsInterfaces/deployments.js.map +1 -1
  324. package/dist/commonjs/operationsInterfaces/encryptionScopes.d.ts.map +1 -1
  325. package/dist/commonjs/operationsInterfaces/encryptionScopes.js +2 -7
  326. package/dist/commonjs/operationsInterfaces/encryptionScopes.js.map +1 -1
  327. package/dist/commonjs/operationsInterfaces/index.d.ts +2 -2
  328. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
  329. package/dist/commonjs/operationsInterfaces/index.js +6 -9
  330. package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
  331. package/dist/commonjs/operationsInterfaces/locationBasedModelCapacities.d.ts.map +1 -1
  332. package/dist/commonjs/operationsInterfaces/locationBasedModelCapacities.js +2 -7
  333. package/dist/commonjs/operationsInterfaces/locationBasedModelCapacities.js.map +1 -1
  334. package/dist/commonjs/operationsInterfaces/modelCapacities.d.ts.map +1 -1
  335. package/dist/commonjs/operationsInterfaces/modelCapacities.js +2 -7
  336. package/dist/commonjs/operationsInterfaces/modelCapacities.js.map +1 -1
  337. package/dist/commonjs/operationsInterfaces/models.d.ts.map +1 -1
  338. package/dist/commonjs/operationsInterfaces/models.js +2 -7
  339. package/dist/commonjs/operationsInterfaces/models.js.map +1 -1
  340. package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
  341. package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.js +2 -7
  342. package/dist/commonjs/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -1
  343. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -1
  344. package/dist/commonjs/operationsInterfaces/operations.js +2 -7
  345. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -1
  346. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
  347. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js +2 -7
  348. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js.map +1 -1
  349. package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts.map +1 -1
  350. package/dist/commonjs/operationsInterfaces/privateLinkResources.js +2 -7
  351. package/dist/commonjs/operationsInterfaces/privateLinkResources.js.map +1 -1
  352. package/dist/commonjs/operationsInterfaces/projectCapabilityHosts.d.ts +4 -4
  353. package/dist/commonjs/operationsInterfaces/projectCapabilityHosts.d.ts.map +1 -1
  354. package/dist/commonjs/operationsInterfaces/projectCapabilityHosts.js +2 -7
  355. package/dist/commonjs/operationsInterfaces/projectCapabilityHosts.js.map +1 -1
  356. package/dist/{react-native/operationsInterfaces/projectConnection.d.ts → commonjs/operationsInterfaces/projectConnections.d.ts} +9 -9
  357. package/dist/commonjs/operationsInterfaces/projectConnections.d.ts.map +1 -0
  358. package/dist/commonjs/operationsInterfaces/projectConnections.js +5 -0
  359. package/dist/commonjs/operationsInterfaces/projectConnections.js.map +1 -0
  360. package/dist/commonjs/operationsInterfaces/projects.d.ts.map +1 -1
  361. package/dist/commonjs/operationsInterfaces/projects.js +2 -7
  362. package/dist/commonjs/operationsInterfaces/projects.js.map +1 -1
  363. package/dist/commonjs/operationsInterfaces/raiBlocklistItems.d.ts.map +1 -1
  364. package/dist/commonjs/operationsInterfaces/raiBlocklistItems.js +2 -7
  365. package/dist/commonjs/operationsInterfaces/raiBlocklistItems.js.map +1 -1
  366. package/dist/commonjs/operationsInterfaces/raiBlocklists.d.ts.map +1 -1
  367. package/dist/commonjs/operationsInterfaces/raiBlocklists.js +2 -7
  368. package/dist/commonjs/operationsInterfaces/raiBlocklists.js.map +1 -1
  369. package/dist/commonjs/operationsInterfaces/raiContentFilters.d.ts.map +1 -1
  370. package/dist/commonjs/operationsInterfaces/raiContentFilters.js +2 -7
  371. package/dist/commonjs/operationsInterfaces/raiContentFilters.js.map +1 -1
  372. package/dist/commonjs/operationsInterfaces/raiPolicies.d.ts.map +1 -1
  373. package/dist/commonjs/operationsInterfaces/raiPolicies.js +2 -7
  374. package/dist/commonjs/operationsInterfaces/raiPolicies.js.map +1 -1
  375. package/dist/commonjs/operationsInterfaces/resourceSkus.d.ts.map +1 -1
  376. package/dist/commonjs/operationsInterfaces/resourceSkus.js +2 -7
  377. package/dist/commonjs/operationsInterfaces/resourceSkus.js.map +1 -1
  378. package/dist/commonjs/operationsInterfaces/usages.d.ts.map +1 -1
  379. package/dist/commonjs/operationsInterfaces/usages.js +2 -7
  380. package/dist/commonjs/operationsInterfaces/usages.js.map +1 -1
  381. package/dist/commonjs/pagingHelper.d.ts.map +1 -1
  382. package/dist/commonjs/pagingHelper.js +4 -11
  383. package/dist/commonjs/pagingHelper.js.map +1 -1
  384. package/dist/commonjs/tsdoc-metadata.json +11 -11
  385. package/dist/esm/cognitiveServicesManagementClient.d.ts +3 -3
  386. package/dist/esm/cognitiveServicesManagementClient.d.ts.map +1 -1
  387. package/dist/esm/cognitiveServicesManagementClient.js +49 -20
  388. package/dist/esm/cognitiveServicesManagementClient.js.map +1 -1
  389. package/dist/esm/index.d.ts.map +1 -1
  390. package/dist/esm/index.js +4 -7
  391. package/dist/esm/index.js.map +1 -1
  392. package/dist/esm/lroImpl.d.ts.map +1 -1
  393. package/dist/esm/lroImpl.js +9 -10
  394. package/dist/esm/lroImpl.js.map +1 -1
  395. package/dist/esm/models/index.d.ts +38 -35
  396. package/dist/esm/models/index.d.ts.map +1 -1
  397. package/dist/esm/models/index.js +2 -7
  398. package/dist/esm/models/index.js.map +1 -1
  399. package/dist/esm/models/mappers.d.ts +1 -1
  400. package/dist/esm/models/mappers.d.ts.map +1 -1
  401. package/dist/esm/models/mappers.js +297 -136
  402. package/dist/esm/models/mappers.js.map +1 -1
  403. package/dist/esm/models/parameters.d.ts +3 -3
  404. package/dist/esm/models/parameters.d.ts.map +1 -1
  405. package/dist/esm/models/parameters.js +9 -14
  406. package/dist/esm/models/parameters.js.map +1 -1
  407. package/dist/esm/operations/accountCapabilityHosts.d.ts +4 -4
  408. package/dist/esm/operations/accountCapabilityHosts.d.ts.map +1 -1
  409. package/dist/esm/operations/accountCapabilityHosts.js +32 -26
  410. package/dist/esm/operations/accountCapabilityHosts.js.map +1 -1
  411. package/dist/{react-native/operations/accountConnection.d.ts → esm/operations/accountConnections.d.ts} +11 -11
  412. package/dist/esm/operations/accountConnections.d.ts.map +1 -0
  413. package/dist/esm/operations/{accountConnection.js → accountConnections.js} +31 -53
  414. package/dist/esm/operations/accountConnections.js.map +1 -0
  415. package/dist/esm/operations/accounts.d.ts.map +1 -1
  416. package/dist/esm/operations/accounts.js +103 -144
  417. package/dist/esm/operations/accounts.js.map +1 -1
  418. package/dist/esm/operations/commitmentPlans.d.ts.map +1 -1
  419. package/dist/esm/operations/commitmentPlans.js +157 -200
  420. package/dist/esm/operations/commitmentPlans.js.map +1 -1
  421. package/dist/esm/operations/commitmentTiers.d.ts.map +1 -1
  422. package/dist/esm/operations/commitmentTiers.js +25 -47
  423. package/dist/esm/operations/commitmentTiers.js.map +1 -1
  424. package/dist/esm/operations/defenderForAISettings.d.ts.map +1 -1
  425. package/dist/esm/operations/defenderForAISettings.js +25 -47
  426. package/dist/esm/operations/defenderForAISettings.js.map +1 -1
  427. package/dist/esm/operations/deletedAccounts.d.ts.map +1 -1
  428. package/dist/esm/operations/deletedAccounts.js +36 -53
  429. package/dist/esm/operations/deletedAccounts.js.map +1 -1
  430. package/dist/esm/operations/deployments.d.ts.map +1 -1
  431. package/dist/esm/operations/deployments.js +80 -104
  432. package/dist/esm/operations/deployments.js.map +1 -1
  433. package/dist/esm/operations/encryptionScopes.d.ts.map +1 -1
  434. package/dist/esm/operations/encryptionScopes.js +36 -53
  435. package/dist/esm/operations/encryptionScopes.js.map +1 -1
  436. package/dist/esm/operations/index.d.ts +2 -2
  437. package/dist/esm/operations/index.d.ts.map +1 -1
  438. package/dist/esm/operations/index.js +6 -9
  439. package/dist/esm/operations/index.js.map +1 -1
  440. package/dist/esm/operations/locationBasedModelCapacities.d.ts.map +1 -1
  441. package/dist/esm/operations/locationBasedModelCapacities.js +25 -47
  442. package/dist/esm/operations/locationBasedModelCapacities.js.map +1 -1
  443. package/dist/esm/operations/modelCapacities.d.ts.map +1 -1
  444. package/dist/esm/operations/modelCapacities.js +25 -47
  445. package/dist/esm/operations/modelCapacities.js.map +1 -1
  446. package/dist/esm/operations/models.d.ts.map +1 -1
  447. package/dist/esm/operations/models.js +25 -47
  448. package/dist/esm/operations/models.js.map +1 -1
  449. package/dist/esm/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
  450. package/dist/esm/operations/networkSecurityPerimeterConfigurations.js +36 -53
  451. package/dist/esm/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
  452. package/dist/esm/operations/operations.d.ts.map +1 -1
  453. package/dist/esm/operations/operations.js +25 -47
  454. package/dist/esm/operations/operations.js.map +1 -1
  455. package/dist/esm/operations/privateEndpointConnections.d.ts.map +1 -1
  456. package/dist/esm/operations/privateEndpointConnections.js +25 -19
  457. package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
  458. package/dist/esm/operations/privateLinkResources.d.ts.map +1 -1
  459. package/dist/esm/operations/privateLinkResources.js +3 -7
  460. package/dist/esm/operations/privateLinkResources.js.map +1 -1
  461. package/dist/esm/operations/projectCapabilityHosts.d.ts +4 -4
  462. package/dist/esm/operations/projectCapabilityHosts.d.ts.map +1 -1
  463. package/dist/esm/operations/projectCapabilityHosts.js +32 -26
  464. package/dist/esm/operations/projectCapabilityHosts.js.map +1 -1
  465. package/dist/esm/operations/{projectConnection.d.ts → projectConnections.d.ts} +11 -11
  466. package/dist/esm/operations/projectConnections.d.ts.map +1 -0
  467. package/dist/esm/operations/{projectConnection.js → projectConnections.js} +31 -53
  468. package/dist/esm/operations/projectConnections.js.map +1 -0
  469. package/dist/esm/operations/projects.d.ts.map +1 -1
  470. package/dist/esm/operations/projects.js +58 -65
  471. package/dist/esm/operations/projects.js.map +1 -1
  472. package/dist/esm/operations/raiBlocklistItems.d.ts.map +1 -1
  473. package/dist/esm/operations/raiBlocklistItems.js +36 -53
  474. package/dist/esm/operations/raiBlocklistItems.js.map +1 -1
  475. package/dist/esm/operations/raiBlocklists.d.ts.map +1 -1
  476. package/dist/esm/operations/raiBlocklists.js +36 -53
  477. package/dist/esm/operations/raiBlocklists.js.map +1 -1
  478. package/dist/esm/operations/raiContentFilters.d.ts.map +1 -1
  479. package/dist/esm/operations/raiContentFilters.js +25 -47
  480. package/dist/esm/operations/raiContentFilters.js.map +1 -1
  481. package/dist/esm/operations/raiPolicies.d.ts.map +1 -1
  482. package/dist/esm/operations/raiPolicies.js +36 -53
  483. package/dist/esm/operations/raiPolicies.js.map +1 -1
  484. package/dist/esm/operations/resourceSkus.d.ts.map +1 -1
  485. package/dist/esm/operations/resourceSkus.js +25 -47
  486. package/dist/esm/operations/resourceSkus.js.map +1 -1
  487. package/dist/esm/operations/usages.d.ts.map +1 -1
  488. package/dist/esm/operations/usages.js +25 -47
  489. package/dist/esm/operations/usages.js.map +1 -1
  490. package/dist/esm/operationsInterfaces/accountCapabilityHosts.d.ts +4 -4
  491. package/dist/esm/operationsInterfaces/accountCapabilityHosts.d.ts.map +1 -1
  492. package/dist/esm/operationsInterfaces/accountCapabilityHosts.js +2 -7
  493. package/dist/esm/operationsInterfaces/accountCapabilityHosts.js.map +1 -1
  494. package/dist/{browser/operationsInterfaces/accountConnection.d.ts → esm/operationsInterfaces/accountConnections.d.ts} +9 -9
  495. package/dist/esm/operationsInterfaces/accountConnections.d.ts.map +1 -0
  496. package/dist/esm/operationsInterfaces/accountConnections.js +4 -0
  497. package/dist/esm/operationsInterfaces/accountConnections.js.map +1 -0
  498. package/dist/esm/operationsInterfaces/accounts.d.ts.map +1 -1
  499. package/dist/esm/operationsInterfaces/accounts.js +2 -7
  500. package/dist/esm/operationsInterfaces/accounts.js.map +1 -1
  501. package/dist/esm/operationsInterfaces/commitmentPlans.d.ts.map +1 -1
  502. package/dist/esm/operationsInterfaces/commitmentPlans.js +2 -7
  503. package/dist/esm/operationsInterfaces/commitmentPlans.js.map +1 -1
  504. package/dist/esm/operationsInterfaces/commitmentTiers.d.ts.map +1 -1
  505. package/dist/esm/operationsInterfaces/commitmentTiers.js +2 -7
  506. package/dist/esm/operationsInterfaces/commitmentTiers.js.map +1 -1
  507. package/dist/esm/operationsInterfaces/defenderForAISettings.d.ts.map +1 -1
  508. package/dist/esm/operationsInterfaces/defenderForAISettings.js +2 -7
  509. package/dist/esm/operationsInterfaces/defenderForAISettings.js.map +1 -1
  510. package/dist/esm/operationsInterfaces/deletedAccounts.d.ts.map +1 -1
  511. package/dist/esm/operationsInterfaces/deletedAccounts.js +2 -7
  512. package/dist/esm/operationsInterfaces/deletedAccounts.js.map +1 -1
  513. package/dist/esm/operationsInterfaces/deployments.d.ts.map +1 -1
  514. package/dist/esm/operationsInterfaces/deployments.js +2 -7
  515. package/dist/esm/operationsInterfaces/deployments.js.map +1 -1
  516. package/dist/esm/operationsInterfaces/encryptionScopes.d.ts.map +1 -1
  517. package/dist/esm/operationsInterfaces/encryptionScopes.js +2 -7
  518. package/dist/esm/operationsInterfaces/encryptionScopes.js.map +1 -1
  519. package/dist/esm/operationsInterfaces/index.d.ts +2 -2
  520. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
  521. package/dist/esm/operationsInterfaces/index.js +6 -9
  522. package/dist/esm/operationsInterfaces/index.js.map +1 -1
  523. package/dist/esm/operationsInterfaces/locationBasedModelCapacities.d.ts.map +1 -1
  524. package/dist/esm/operationsInterfaces/locationBasedModelCapacities.js +2 -7
  525. package/dist/esm/operationsInterfaces/locationBasedModelCapacities.js.map +1 -1
  526. package/dist/esm/operationsInterfaces/modelCapacities.d.ts.map +1 -1
  527. package/dist/esm/operationsInterfaces/modelCapacities.js +2 -7
  528. package/dist/esm/operationsInterfaces/modelCapacities.js.map +1 -1
  529. package/dist/esm/operationsInterfaces/models.d.ts.map +1 -1
  530. package/dist/esm/operationsInterfaces/models.js +2 -7
  531. package/dist/esm/operationsInterfaces/models.js.map +1 -1
  532. package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
  533. package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.js +2 -7
  534. package/dist/esm/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -1
  535. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -1
  536. package/dist/esm/operationsInterfaces/operations.js +2 -7
  537. package/dist/esm/operationsInterfaces/operations.js.map +1 -1
  538. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
  539. package/dist/esm/operationsInterfaces/privateEndpointConnections.js +2 -7
  540. package/dist/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -1
  541. package/dist/esm/operationsInterfaces/privateLinkResources.d.ts.map +1 -1
  542. package/dist/esm/operationsInterfaces/privateLinkResources.js +2 -7
  543. package/dist/esm/operationsInterfaces/privateLinkResources.js.map +1 -1
  544. package/dist/esm/operationsInterfaces/projectCapabilityHosts.d.ts +4 -4
  545. package/dist/esm/operationsInterfaces/projectCapabilityHosts.d.ts.map +1 -1
  546. package/dist/esm/operationsInterfaces/projectCapabilityHosts.js +2 -7
  547. package/dist/esm/operationsInterfaces/projectCapabilityHosts.js.map +1 -1
  548. package/dist/{commonjs/operationsInterfaces/projectConnection.d.ts → esm/operationsInterfaces/projectConnections.d.ts} +9 -9
  549. package/dist/esm/operationsInterfaces/projectConnections.d.ts.map +1 -0
  550. package/dist/esm/operationsInterfaces/projectConnections.js +4 -0
  551. package/dist/esm/operationsInterfaces/projectConnections.js.map +1 -0
  552. package/dist/esm/operationsInterfaces/projects.d.ts.map +1 -1
  553. package/dist/esm/operationsInterfaces/projects.js +2 -7
  554. package/dist/esm/operationsInterfaces/projects.js.map +1 -1
  555. package/dist/esm/operationsInterfaces/raiBlocklistItems.d.ts.map +1 -1
  556. package/dist/esm/operationsInterfaces/raiBlocklistItems.js +2 -7
  557. package/dist/esm/operationsInterfaces/raiBlocklistItems.js.map +1 -1
  558. package/dist/esm/operationsInterfaces/raiBlocklists.d.ts.map +1 -1
  559. package/dist/esm/operationsInterfaces/raiBlocklists.js +2 -7
  560. package/dist/esm/operationsInterfaces/raiBlocklists.js.map +1 -1
  561. package/dist/esm/operationsInterfaces/raiContentFilters.d.ts.map +1 -1
  562. package/dist/esm/operationsInterfaces/raiContentFilters.js +2 -7
  563. package/dist/esm/operationsInterfaces/raiContentFilters.js.map +1 -1
  564. package/dist/esm/operationsInterfaces/raiPolicies.d.ts.map +1 -1
  565. package/dist/esm/operationsInterfaces/raiPolicies.js +2 -7
  566. package/dist/esm/operationsInterfaces/raiPolicies.js.map +1 -1
  567. package/dist/esm/operationsInterfaces/resourceSkus.d.ts.map +1 -1
  568. package/dist/esm/operationsInterfaces/resourceSkus.js +2 -7
  569. package/dist/esm/operationsInterfaces/resourceSkus.js.map +1 -1
  570. package/dist/esm/operationsInterfaces/usages.d.ts.map +1 -1
  571. package/dist/esm/operationsInterfaces/usages.js +2 -7
  572. package/dist/esm/operationsInterfaces/usages.js.map +1 -1
  573. package/dist/esm/pagingHelper.d.ts.map +1 -1
  574. package/dist/esm/pagingHelper.js +4 -11
  575. package/dist/esm/pagingHelper.js.map +1 -1
  576. package/dist/react-native/cognitiveServicesManagementClient.d.ts +3 -3
  577. package/dist/react-native/cognitiveServicesManagementClient.d.ts.map +1 -1
  578. package/dist/react-native/cognitiveServicesManagementClient.js +49 -20
  579. package/dist/react-native/cognitiveServicesManagementClient.js.map +1 -1
  580. package/dist/react-native/index.d.ts.map +1 -1
  581. package/dist/react-native/index.js +4 -7
  582. package/dist/react-native/index.js.map +1 -1
  583. package/dist/react-native/lroImpl.d.ts.map +1 -1
  584. package/dist/react-native/lroImpl.js +9 -10
  585. package/dist/react-native/lroImpl.js.map +1 -1
  586. package/dist/react-native/models/index.d.ts +38 -35
  587. package/dist/react-native/models/index.d.ts.map +1 -1
  588. package/dist/react-native/models/index.js +2 -7
  589. package/dist/react-native/models/index.js.map +1 -1
  590. package/dist/react-native/models/mappers.d.ts +1 -1
  591. package/dist/react-native/models/mappers.d.ts.map +1 -1
  592. package/dist/react-native/models/mappers.js +297 -136
  593. package/dist/react-native/models/mappers.js.map +1 -1
  594. package/dist/react-native/models/parameters.d.ts +3 -3
  595. package/dist/react-native/models/parameters.d.ts.map +1 -1
  596. package/dist/react-native/models/parameters.js +9 -14
  597. package/dist/react-native/models/parameters.js.map +1 -1
  598. package/dist/react-native/operations/accountCapabilityHosts.d.ts +4 -4
  599. package/dist/react-native/operations/accountCapabilityHosts.d.ts.map +1 -1
  600. package/dist/react-native/operations/accountCapabilityHosts.js +32 -26
  601. package/dist/react-native/operations/accountCapabilityHosts.js.map +1 -1
  602. package/dist/{commonjs/operations/accountConnection.d.ts → react-native/operations/accountConnections.d.ts} +11 -11
  603. package/dist/react-native/operations/accountConnections.d.ts.map +1 -0
  604. package/dist/{browser/operations/accountConnection.js → react-native/operations/accountConnections.js} +31 -53
  605. package/dist/react-native/operations/accountConnections.js.map +1 -0
  606. package/dist/react-native/operations/accounts.d.ts.map +1 -1
  607. package/dist/react-native/operations/accounts.js +103 -144
  608. package/dist/react-native/operations/accounts.js.map +1 -1
  609. package/dist/react-native/operations/commitmentPlans.d.ts.map +1 -1
  610. package/dist/react-native/operations/commitmentPlans.js +157 -200
  611. package/dist/react-native/operations/commitmentPlans.js.map +1 -1
  612. package/dist/react-native/operations/commitmentTiers.d.ts.map +1 -1
  613. package/dist/react-native/operations/commitmentTiers.js +25 -47
  614. package/dist/react-native/operations/commitmentTiers.js.map +1 -1
  615. package/dist/react-native/operations/defenderForAISettings.d.ts.map +1 -1
  616. package/dist/react-native/operations/defenderForAISettings.js +25 -47
  617. package/dist/react-native/operations/defenderForAISettings.js.map +1 -1
  618. package/dist/react-native/operations/deletedAccounts.d.ts.map +1 -1
  619. package/dist/react-native/operations/deletedAccounts.js +36 -53
  620. package/dist/react-native/operations/deletedAccounts.js.map +1 -1
  621. package/dist/react-native/operations/deployments.d.ts.map +1 -1
  622. package/dist/react-native/operations/deployments.js +80 -104
  623. package/dist/react-native/operations/deployments.js.map +1 -1
  624. package/dist/react-native/operations/encryptionScopes.d.ts.map +1 -1
  625. package/dist/react-native/operations/encryptionScopes.js +36 -53
  626. package/dist/react-native/operations/encryptionScopes.js.map +1 -1
  627. package/dist/react-native/operations/index.d.ts +2 -2
  628. package/dist/react-native/operations/index.d.ts.map +1 -1
  629. package/dist/react-native/operations/index.js +6 -9
  630. package/dist/react-native/operations/index.js.map +1 -1
  631. package/dist/react-native/operations/locationBasedModelCapacities.d.ts.map +1 -1
  632. package/dist/react-native/operations/locationBasedModelCapacities.js +25 -47
  633. package/dist/react-native/operations/locationBasedModelCapacities.js.map +1 -1
  634. package/dist/react-native/operations/modelCapacities.d.ts.map +1 -1
  635. package/dist/react-native/operations/modelCapacities.js +25 -47
  636. package/dist/react-native/operations/modelCapacities.js.map +1 -1
  637. package/dist/react-native/operations/models.d.ts.map +1 -1
  638. package/dist/react-native/operations/models.js +25 -47
  639. package/dist/react-native/operations/models.js.map +1 -1
  640. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
  641. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js +36 -53
  642. package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
  643. package/dist/react-native/operations/operations.d.ts.map +1 -1
  644. package/dist/react-native/operations/operations.js +25 -47
  645. package/dist/react-native/operations/operations.js.map +1 -1
  646. package/dist/react-native/operations/privateEndpointConnections.d.ts.map +1 -1
  647. package/dist/react-native/operations/privateEndpointConnections.js +25 -19
  648. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
  649. package/dist/react-native/operations/privateLinkResources.d.ts.map +1 -1
  650. package/dist/react-native/operations/privateLinkResources.js +3 -7
  651. package/dist/react-native/operations/privateLinkResources.js.map +1 -1
  652. package/dist/react-native/operations/projectCapabilityHosts.d.ts +4 -4
  653. package/dist/react-native/operations/projectCapabilityHosts.d.ts.map +1 -1
  654. package/dist/react-native/operations/projectCapabilityHosts.js +32 -26
  655. package/dist/react-native/operations/projectCapabilityHosts.js.map +1 -1
  656. package/dist/react-native/operations/{projectConnection.d.ts → projectConnections.d.ts} +11 -11
  657. package/dist/react-native/operations/projectConnections.d.ts.map +1 -0
  658. package/dist/react-native/operations/{projectConnection.js → projectConnections.js} +31 -53
  659. package/dist/react-native/operations/projectConnections.js.map +1 -0
  660. package/dist/react-native/operations/projects.d.ts.map +1 -1
  661. package/dist/react-native/operations/projects.js +58 -65
  662. package/dist/react-native/operations/projects.js.map +1 -1
  663. package/dist/react-native/operations/raiBlocklistItems.d.ts.map +1 -1
  664. package/dist/react-native/operations/raiBlocklistItems.js +36 -53
  665. package/dist/react-native/operations/raiBlocklistItems.js.map +1 -1
  666. package/dist/react-native/operations/raiBlocklists.d.ts.map +1 -1
  667. package/dist/react-native/operations/raiBlocklists.js +36 -53
  668. package/dist/react-native/operations/raiBlocklists.js.map +1 -1
  669. package/dist/react-native/operations/raiContentFilters.d.ts.map +1 -1
  670. package/dist/react-native/operations/raiContentFilters.js +25 -47
  671. package/dist/react-native/operations/raiContentFilters.js.map +1 -1
  672. package/dist/react-native/operations/raiPolicies.d.ts.map +1 -1
  673. package/dist/react-native/operations/raiPolicies.js +36 -53
  674. package/dist/react-native/operations/raiPolicies.js.map +1 -1
  675. package/dist/react-native/operations/resourceSkus.d.ts.map +1 -1
  676. package/dist/react-native/operations/resourceSkus.js +25 -47
  677. package/dist/react-native/operations/resourceSkus.js.map +1 -1
  678. package/dist/react-native/operations/usages.d.ts.map +1 -1
  679. package/dist/react-native/operations/usages.js +25 -47
  680. package/dist/react-native/operations/usages.js.map +1 -1
  681. package/dist/react-native/operationsInterfaces/accountCapabilityHosts.d.ts +4 -4
  682. package/dist/react-native/operationsInterfaces/accountCapabilityHosts.d.ts.map +1 -1
  683. package/dist/react-native/operationsInterfaces/accountCapabilityHosts.js +2 -7
  684. package/dist/react-native/operationsInterfaces/accountCapabilityHosts.js.map +1 -1
  685. package/dist/{commonjs/operationsInterfaces/accountConnection.d.ts → react-native/operationsInterfaces/accountConnections.d.ts} +9 -9
  686. package/dist/react-native/operationsInterfaces/accountConnections.d.ts.map +1 -0
  687. package/dist/react-native/operationsInterfaces/accountConnections.js +4 -0
  688. package/dist/react-native/operationsInterfaces/accountConnections.js.map +1 -0
  689. package/dist/react-native/operationsInterfaces/accounts.d.ts.map +1 -1
  690. package/dist/react-native/operationsInterfaces/accounts.js +2 -7
  691. package/dist/react-native/operationsInterfaces/accounts.js.map +1 -1
  692. package/dist/react-native/operationsInterfaces/commitmentPlans.d.ts.map +1 -1
  693. package/dist/react-native/operationsInterfaces/commitmentPlans.js +2 -7
  694. package/dist/react-native/operationsInterfaces/commitmentPlans.js.map +1 -1
  695. package/dist/react-native/operationsInterfaces/commitmentTiers.d.ts.map +1 -1
  696. package/dist/react-native/operationsInterfaces/commitmentTiers.js +2 -7
  697. package/dist/react-native/operationsInterfaces/commitmentTiers.js.map +1 -1
  698. package/dist/react-native/operationsInterfaces/defenderForAISettings.d.ts.map +1 -1
  699. package/dist/react-native/operationsInterfaces/defenderForAISettings.js +2 -7
  700. package/dist/react-native/operationsInterfaces/defenderForAISettings.js.map +1 -1
  701. package/dist/react-native/operationsInterfaces/deletedAccounts.d.ts.map +1 -1
  702. package/dist/react-native/operationsInterfaces/deletedAccounts.js +2 -7
  703. package/dist/react-native/operationsInterfaces/deletedAccounts.js.map +1 -1
  704. package/dist/react-native/operationsInterfaces/deployments.d.ts.map +1 -1
  705. package/dist/react-native/operationsInterfaces/deployments.js +2 -7
  706. package/dist/react-native/operationsInterfaces/deployments.js.map +1 -1
  707. package/dist/react-native/operationsInterfaces/encryptionScopes.d.ts.map +1 -1
  708. package/dist/react-native/operationsInterfaces/encryptionScopes.js +2 -7
  709. package/dist/react-native/operationsInterfaces/encryptionScopes.js.map +1 -1
  710. package/dist/react-native/operationsInterfaces/index.d.ts +2 -2
  711. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
  712. package/dist/react-native/operationsInterfaces/index.js +6 -9
  713. package/dist/react-native/operationsInterfaces/index.js.map +1 -1
  714. package/dist/react-native/operationsInterfaces/locationBasedModelCapacities.d.ts.map +1 -1
  715. package/dist/react-native/operationsInterfaces/locationBasedModelCapacities.js +2 -7
  716. package/dist/react-native/operationsInterfaces/locationBasedModelCapacities.js.map +1 -1
  717. package/dist/react-native/operationsInterfaces/modelCapacities.d.ts.map +1 -1
  718. package/dist/react-native/operationsInterfaces/modelCapacities.js +2 -7
  719. package/dist/react-native/operationsInterfaces/modelCapacities.js.map +1 -1
  720. package/dist/react-native/operationsInterfaces/models.d.ts.map +1 -1
  721. package/dist/react-native/operationsInterfaces/models.js +2 -7
  722. package/dist/react-native/operationsInterfaces/models.js.map +1 -1
  723. package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -1
  724. package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.js +2 -7
  725. package/dist/react-native/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -1
  726. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -1
  727. package/dist/react-native/operationsInterfaces/operations.js +2 -7
  728. package/dist/react-native/operationsInterfaces/operations.js.map +1 -1
  729. package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
  730. package/dist/react-native/operationsInterfaces/privateEndpointConnections.js +2 -7
  731. package/dist/react-native/operationsInterfaces/privateEndpointConnections.js.map +1 -1
  732. package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts.map +1 -1
  733. package/dist/react-native/operationsInterfaces/privateLinkResources.js +2 -7
  734. package/dist/react-native/operationsInterfaces/privateLinkResources.js.map +1 -1
  735. package/dist/react-native/operationsInterfaces/projectCapabilityHosts.d.ts +4 -4
  736. package/dist/react-native/operationsInterfaces/projectCapabilityHosts.d.ts.map +1 -1
  737. package/dist/react-native/operationsInterfaces/projectCapabilityHosts.js +2 -7
  738. package/dist/react-native/operationsInterfaces/projectCapabilityHosts.js.map +1 -1
  739. package/dist/{browser/operationsInterfaces/projectConnection.d.ts → react-native/operationsInterfaces/projectConnections.d.ts} +9 -9
  740. package/dist/react-native/operationsInterfaces/projectConnections.d.ts.map +1 -0
  741. package/dist/react-native/operationsInterfaces/projectConnections.js +4 -0
  742. package/dist/react-native/operationsInterfaces/projectConnections.js.map +1 -0
  743. package/dist/react-native/operationsInterfaces/projects.d.ts.map +1 -1
  744. package/dist/react-native/operationsInterfaces/projects.js +2 -7
  745. package/dist/react-native/operationsInterfaces/projects.js.map +1 -1
  746. package/dist/react-native/operationsInterfaces/raiBlocklistItems.d.ts.map +1 -1
  747. package/dist/react-native/operationsInterfaces/raiBlocklistItems.js +2 -7
  748. package/dist/react-native/operationsInterfaces/raiBlocklistItems.js.map +1 -1
  749. package/dist/react-native/operationsInterfaces/raiBlocklists.d.ts.map +1 -1
  750. package/dist/react-native/operationsInterfaces/raiBlocklists.js +2 -7
  751. package/dist/react-native/operationsInterfaces/raiBlocklists.js.map +1 -1
  752. package/dist/react-native/operationsInterfaces/raiContentFilters.d.ts.map +1 -1
  753. package/dist/react-native/operationsInterfaces/raiContentFilters.js +2 -7
  754. package/dist/react-native/operationsInterfaces/raiContentFilters.js.map +1 -1
  755. package/dist/react-native/operationsInterfaces/raiPolicies.d.ts.map +1 -1
  756. package/dist/react-native/operationsInterfaces/raiPolicies.js +2 -7
  757. package/dist/react-native/operationsInterfaces/raiPolicies.js.map +1 -1
  758. package/dist/react-native/operationsInterfaces/resourceSkus.d.ts.map +1 -1
  759. package/dist/react-native/operationsInterfaces/resourceSkus.js +2 -7
  760. package/dist/react-native/operationsInterfaces/resourceSkus.js.map +1 -1
  761. package/dist/react-native/operationsInterfaces/usages.d.ts.map +1 -1
  762. package/dist/react-native/operationsInterfaces/usages.js +2 -7
  763. package/dist/react-native/operationsInterfaces/usages.js.map +1 -1
  764. package/dist/react-native/pagingHelper.d.ts.map +1 -1
  765. package/dist/react-native/pagingHelper.js +4 -11
  766. package/dist/react-native/pagingHelper.js.map +1 -1
  767. package/package.json +29 -32
  768. package/CHANGELOG.md +0 -477
  769. package/dist/browser/operations/accountConnection.d.ts.map +0 -1
  770. package/dist/browser/operations/accountConnection.js.map +0 -1
  771. package/dist/browser/operations/projectConnection.d.ts.map +0 -1
  772. package/dist/browser/operations/projectConnection.js.map +0 -1
  773. package/dist/browser/operationsInterfaces/accountConnection.d.ts.map +0 -1
  774. package/dist/browser/operationsInterfaces/accountConnection.js +0 -9
  775. package/dist/browser/operationsInterfaces/accountConnection.js.map +0 -1
  776. package/dist/browser/operationsInterfaces/projectConnection.d.ts.map +0 -1
  777. package/dist/browser/operationsInterfaces/projectConnection.js +0 -9
  778. package/dist/browser/operationsInterfaces/projectConnection.js.map +0 -1
  779. package/dist/commonjs/operations/accountConnection.d.ts.map +0 -1
  780. package/dist/commonjs/operations/accountConnection.js.map +0 -1
  781. package/dist/commonjs/operations/projectConnection.d.ts.map +0 -1
  782. package/dist/commonjs/operations/projectConnection.js.map +0 -1
  783. package/dist/commonjs/operationsInterfaces/accountConnection.d.ts.map +0 -1
  784. package/dist/commonjs/operationsInterfaces/accountConnection.js +0 -10
  785. package/dist/commonjs/operationsInterfaces/accountConnection.js.map +0 -1
  786. package/dist/commonjs/operationsInterfaces/projectConnection.d.ts.map +0 -1
  787. package/dist/commonjs/operationsInterfaces/projectConnection.js +0 -10
  788. package/dist/commonjs/operationsInterfaces/projectConnection.js.map +0 -1
  789. package/dist/esm/operations/accountConnection.d.ts.map +0 -1
  790. package/dist/esm/operations/accountConnection.js.map +0 -1
  791. package/dist/esm/operations/projectConnection.d.ts.map +0 -1
  792. package/dist/esm/operations/projectConnection.js.map +0 -1
  793. package/dist/esm/operationsInterfaces/accountConnection.d.ts.map +0 -1
  794. package/dist/esm/operationsInterfaces/accountConnection.js +0 -9
  795. package/dist/esm/operationsInterfaces/accountConnection.js.map +0 -1
  796. package/dist/esm/operationsInterfaces/projectConnection.d.ts.map +0 -1
  797. package/dist/esm/operationsInterfaces/projectConnection.js +0 -9
  798. package/dist/esm/operationsInterfaces/projectConnection.js.map +0 -1
  799. package/dist/react-native/operations/accountConnection.d.ts.map +0 -1
  800. package/dist/react-native/operations/accountConnection.js.map +0 -1
  801. package/dist/react-native/operations/projectConnection.d.ts.map +0 -1
  802. package/dist/react-native/operations/projectConnection.js.map +0 -1
  803. package/dist/react-native/operationsInterfaces/accountConnection.d.ts.map +0 -1
  804. package/dist/react-native/operationsInterfaces/accountConnection.js +0 -9
  805. package/dist/react-native/operationsInterfaces/accountConnection.js.map +0 -1
  806. package/dist/react-native/operationsInterfaces/projectConnection.d.ts.map +0 -1
  807. package/dist/react-native/operationsInterfaces/projectConnection.js +0 -9
  808. package/dist/react-native/operationsInterfaces/projectConnection.js.map +0 -1
  809. package/review/arm-cognitiveservices.api.md +0 -3079
@@ -1 +1 @@
1
- {"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAoC,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAY9C,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAGzC;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,iBAAyB,EACzB,WAAmB,EACnB,OAAsD;QAEtD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,EAC3C,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CACD,iBAAyB,EACzB,WAAmB,EACnB,6BAAqC,EACrC,OAAqD;QAErD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,WAAW;YACX,6BAA6B;YAC7B,OAAO;SACR,EACD,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,mBAAmB,CACvB,iBAAyB,EACzB,WAAmB,EACnB,6BAAqC,EACrC,UAAqC,EACrC,OAAgE;QAOhE,MAAM,mBAAmB,GAAG,KAAK,EAC/B,IAAmC,EACnC,IAA8B,EAC6B,EAAE;YAC7D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACtD,CAAC,CAAC;QACF,MAAM,eAAe,GAAG,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,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,4LAA4L;IAClM,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,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,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,6BAA6B;KACzC;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 { PrivateEndpointConnections } 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 PrivateEndpointConnectionsListOptionalParams,\n PrivateEndpointConnectionsListResponse,\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsGetResponse,\n PrivateEndpointConnection,\n PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n PrivateEndpointConnectionsCreateOrUpdateResponse,\n PrivateEndpointConnectionsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing PrivateEndpointConnections operations. */\nexport class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnections class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the private endpoint connections 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 options The options parameters.\n */\n list(\n resourceGroupName: string,\n accountName: string,\n options?: PrivateEndpointConnectionsListOptionalParams,\n ): Promise<PrivateEndpointConnectionsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the specified private endpoint connection 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 privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Cognitive Services Account\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams,\n ): Promise<PrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n privateEndpointConnectionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Update the state of specified private endpoint connection associated with the Cognitive Services\n * 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 privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Cognitive Services Account\n * @param properties The private endpoint connection properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,\n PrivateEndpointConnectionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> => {\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: {\n resourceGroupName,\n accountName,\n privateEndpointConnectionName,\n properties,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n PrivateEndpointConnectionsCreateOrUpdateResponse,\n OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update the state of specified private endpoint connection associated with the Cognitive Services\n * 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 privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Cognitive Services Account\n * @param properties The private endpoint connection properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n accountName,\n privateEndpointConnectionName,\n properties,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the specified private endpoint connection 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 privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Cognitive Services Account\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\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: {\n resourceGroupName,\n accountName,\n privateEndpointConnectionName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the specified private endpoint connection 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 privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Cognitive Services Account\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n accountName,\n privateEndpointConnectionName,\n options,\n );\n return poller.pollUntilDone();\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}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResult,\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}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\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.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 201: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 202: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 204: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.privateEndpointConnectionName,\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}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\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.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAoC,gBAAgB,EAAE,MAAM,iB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AClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["// 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\nimport { PrivateEndpointConnections } 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 PrivateEndpointConnectionsListOptionalParams,\n PrivateEndpointConnectionsListResponse,\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsGetResponse,\n PrivateEndpointConnection,\n PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n PrivateEndpointConnectionsCreateOrUpdateResponse,\n PrivateEndpointConnectionsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing PrivateEndpointConnections operations. */\nexport class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnections class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the private endpoint connections 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 options The options parameters.\n */\n list(\n resourceGroupName: string,\n accountName: string,\n options?: PrivateEndpointConnectionsListOptionalParams,\n ): Promise<PrivateEndpointConnectionsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the specified private endpoint connection 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 privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Cognitive Services Account\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams,\n ): Promise<PrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n privateEndpointConnectionName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Update the state of specified private endpoint connection associated with the Cognitive Services\n * 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 privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Cognitive Services Account\n * @param properties The private endpoint connection properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,\n PrivateEndpointConnectionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> => {\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: {\n resourceGroupName,\n accountName,\n privateEndpointConnectionName,\n properties,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n PrivateEndpointConnectionsCreateOrUpdateResponse,\n OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update the state of specified private endpoint connection associated with the Cognitive Services\n * 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 privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Cognitive Services Account\n * @param properties The private endpoint connection properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n accountName,\n privateEndpointConnectionName,\n properties,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the specified private endpoint connection 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 privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Cognitive Services Account\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\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: {\n resourceGroupName,\n accountName,\n privateEndpointConnectionName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the specified private endpoint connection 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 privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Cognitive Services Account\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n accountName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n accountName,\n privateEndpointConnectionName,\n options,\n );\n return poller.pollUntilDone();\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}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResult,\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}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\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.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 201: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 202: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n 204: {\n bodyMapper: Mappers.PrivateEndpointConnection,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.privateEndpointConnectionName,\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}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\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.privateEndpointConnectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"privateLinkResources.d.ts","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAIxE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EACL,sCAAsC,EACtC,gCAAgC,EACjC,MAAM,oBAAoB,CAAC;AAE5B,wDAAwD;AACxD,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;;;OAKG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC;CAM7C"}
1
+ {"version":3,"file":"privateLinkResources.d.ts","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAIxE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EACL,sCAAsC,EACtC,gCAAgC,EACjC,MAAM,oBAAoB,CAAC;AAE5B,wDAAwD;AACxD,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;;;OAKG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC;CAM7C"}
@@ -1,15 +1,11 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
8
3
  import * as coreClient from "@azure/core-client";
9
4
  import * as Mappers from "../models/mappers.js";
10
5
  import * as Parameters from "../models/parameters.js";
11
6
  /** Class containing PrivateLinkResources operations. */
12
7
  export class PrivateLinkResourcesImpl {
8
+ client;
13
9
  /**
14
10
  * Initialize a new instance of the class PrivateLinkResources class.
15
11
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,iBAAyB,EACzB,WAAmB,EACnB,OAAgD;QAEhD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,EAC3C,iBAAiB,CAClB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,sJAAsJ;IAC5J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;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,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;KAC1B;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 { PrivateLinkResources } 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 PrivateLinkResourcesListOptionalParams,\n PrivateLinkResourcesListResponse,\n} from \"../models/index.js\";\n\n/** Class containing PrivateLinkResources operations. */\nexport class PrivateLinkResourcesImpl implements PrivateLinkResources {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateLinkResources class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the private link resources that need to be created for a 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 options The options parameters.\n */\n list(\n resourceGroupName: string,\n accountName: string,\n options?: PrivateLinkResourcesListOptionalParams,\n ): Promise<PrivateLinkResourcesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\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}/privateLinkResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResourceListResult,\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};\n"]}
1
+ {"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAClB,MAAM,CAAoC;IAE3D;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,iBAAyB,EACzB,WAAmB,EACnB,OAAgD;QAEhD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,EAAE,EAC3C,iBAAiB,CAClB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,sJAAsJ;IAC5J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;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,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["// 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\nimport { PrivateLinkResources } 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 PrivateLinkResourcesListOptionalParams,\n PrivateLinkResourcesListResponse,\n} from \"../models/index.js\";\n\n/** Class containing PrivateLinkResources operations. */\nexport class PrivateLinkResourcesImpl implements PrivateLinkResources {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateLinkResources class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the private link resources that need to be created for a 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 options The options parameters.\n */\n list(\n resourceGroupName: string,\n accountName: string,\n options?: PrivateLinkResourcesListOptionalParams,\n ): Promise<PrivateLinkResourcesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\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}/privateLinkResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResourceListResult,\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};\n"]}
@@ -47,10 +47,10 @@ export declare class ProjectCapabilityHostsImpl implements ProjectCapabilityHost
47
47
  * @param projectName The name of Cognitive Services account's project.
48
48
  * @param capabilityHostName The name of the capability host associated with the Cognitive Services
49
49
  * Resource
50
- * @param body CapabilityHost definition.
50
+ * @param capabilityHost CapabilityHost definition.
51
51
  * @param options The options parameters.
52
52
  */
53
- beginCreateOrUpdate(resourceGroupName: string, accountName: string, projectName: string, capabilityHostName: string, body: CapabilityHost, options?: ProjectCapabilityHostsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ProjectCapabilityHostsCreateOrUpdateResponse>, ProjectCapabilityHostsCreateOrUpdateResponse>>;
53
+ beginCreateOrUpdate(resourceGroupName: string, accountName: string, projectName: string, capabilityHostName: string, capabilityHost: CapabilityHost, options?: ProjectCapabilityHostsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ProjectCapabilityHostsCreateOrUpdateResponse>, ProjectCapabilityHostsCreateOrUpdateResponse>>;
54
54
  /**
55
55
  * Create or update project capabilityHost.
56
56
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -58,9 +58,9 @@ export declare class ProjectCapabilityHostsImpl implements ProjectCapabilityHost
58
58
  * @param projectName The name of Cognitive Services account's project.
59
59
  * @param capabilityHostName The name of the capability host associated with the Cognitive Services
60
60
  * Resource
61
- * @param body CapabilityHost definition.
61
+ * @param capabilityHost CapabilityHost definition.
62
62
  * @param options The options parameters.
63
63
  */
64
- beginCreateOrUpdateAndWait(resourceGroupName: string, accountName: string, projectName: string, capabilityHostName: string, body: CapabilityHost, options?: ProjectCapabilityHostsCreateOrUpdateOptionalParams): Promise<ProjectCapabilityHostsCreateOrUpdateResponse>;
64
+ beginCreateOrUpdateAndWait(resourceGroupName: string, accountName: string, projectName: string, capabilityHostName: string, capabilityHost: CapabilityHost, options?: ProjectCapabilityHostsCreateOrUpdateOptionalParams): Promise<ProjectCapabilityHostsCreateOrUpdateResponse>;
65
65
  }
66
66
  //# sourceMappingURL=projectCapabilityHosts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"projectCapabilityHosts.d.ts","sourceRoot":"","sources":["../../../src/operations/projectCapabilityHosts.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAI1E,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAoB,MAAM,iBAAiB,CAAC;AAErF,OAAO,EACL,0CAA0C,EAC1C,oCAAoC,EACpC,uCAAuC,EACvC,iCAAiC,EACjC,cAAc,EACd,kDAAkD,EAClD,4CAA4C,EAC7C,MAAM,oBAAoB,CAAC;AAE5B,0DAA0D;AAC1D,qBAAa,0BAA2B,YAAW,sBAAsB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AA4C,CAAC;CAWzD"}
1
+ {"version":3,"file":"projectCapabilityHosts.d.ts","sourceRoot":"","sources":["../../../src/operations/projectCapabilityHosts.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAI1E,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAoB,MAAM,iBAAiB,CAAC;AAErF,OAAO,EACL,0CAA0C,EAC1C,oCAAoC,EACpC,uCAAuC,EACvC,iCAAiC,EACjC,cAAc,EACd,kDAAkD,EAClD,4CAA4C,EAC7C,MAAM,oBAAoB,CAAC;AAE5B,0DAA0D;AAC1D,qBAAa,0BAA2B,YAAW,sBAAsB;IACvE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;;;;;;OAQG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,0CAA0C,GACnD,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,oCAAoC,CAAC,EACpD,oCAAoC,CACrC,CACF;IA6DD;;;;;;;;OAQG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,0CAA0C,GACnD,OAAO,CAAC,oCAAoC,CAAC;IAWhD;;;;;;;;OAQG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,iCAAiC,CAAC;IAa7C;;;;;;;;;OASG;IACG,mBAAmB,CACvB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,kBAAkB,EAAE,MAAM,EAC1B,cAAc,EAAE,cAAc,EAC9B,OAAO,CAAC,EAAE,kDAAkD,GAC3D,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,4CAA4C,CAAC,EAC5D,4CAA4C,CAC7C,CACF;IA8DD;;;;;;;;;OASG;IACG,0BAA0B,CAC9B,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,kBAAkB,EAAE,MAAM,EAC1B,cAAc,EAAE,cAAc,EAC9B,OAAO,CAAC,EAAE,kDAAkD,GAC3D,OAAO,CAAC,4CAA4C,CAAC;CAWzD"}
@@ -1,10 +1,5 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
8
3
  import * as coreClient from "@azure/core-client";
9
4
  import * as Mappers from "../models/mappers.js";
10
5
  import * as Parameters from "../models/parameters.js";
@@ -12,6 +7,7 @@ import { createHttpPoller } from "@azure/core-lro";
12
7
  import { createLroSpec } from "../lroImpl.js";
13
8
  /** Class containing ProjectCapabilityHosts operations. */
14
9
  export class ProjectCapabilityHostsImpl {
10
+ client;
15
11
  /**
16
12
  * Initialize a new instance of the class ProjectCapabilityHosts class.
17
13
  * @param client Reference to the service client
@@ -33,14 +29,19 @@ export class ProjectCapabilityHostsImpl {
33
29
  return this.client.sendOperationRequest(args, spec);
34
30
  };
35
31
  const sendOperationFn = async (args, spec) => {
36
- var _a;
37
32
  let currentRawResponse = undefined;
38
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
33
+ const providedCallback = args.options?.onResponse;
39
34
  const callback = (rawResponse, flatResponse) => {
40
35
  currentRawResponse = rawResponse;
41
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
36
+ providedCallback?.(rawResponse, flatResponse);
37
+ };
38
+ const updatedArgs = {
39
+ ...args,
40
+ options: {
41
+ ...args.options,
42
+ onResponse: callback,
43
+ },
42
44
  };
43
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
44
45
  const flatResponse = await directSendOperation(updatedArgs, spec);
45
46
  return {
46
47
  flatResponse,
@@ -63,8 +64,8 @@ export class ProjectCapabilityHostsImpl {
63
64
  spec: deleteOperationSpec,
64
65
  });
65
66
  const poller = await createHttpPoller(lro, {
66
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
67
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
67
+ restoreFrom: options?.resumeFrom,
68
+ intervalInMs: options?.updateIntervalInMs,
68
69
  resourceLocationConfig: "location",
69
70
  });
70
71
  await poller.poll();
@@ -108,22 +109,27 @@ export class ProjectCapabilityHostsImpl {
108
109
  * @param projectName The name of Cognitive Services account's project.
109
110
  * @param capabilityHostName The name of the capability host associated with the Cognitive Services
110
111
  * Resource
111
- * @param body CapabilityHost definition.
112
+ * @param capabilityHost CapabilityHost definition.
112
113
  * @param options The options parameters.
113
114
  */
114
- async beginCreateOrUpdate(resourceGroupName, accountName, projectName, capabilityHostName, body, options) {
115
+ async beginCreateOrUpdate(resourceGroupName, accountName, projectName, capabilityHostName, capabilityHost, options) {
115
116
  const directSendOperation = async (args, spec) => {
116
117
  return this.client.sendOperationRequest(args, spec);
117
118
  };
118
119
  const sendOperationFn = async (args, spec) => {
119
- var _a;
120
120
  let currentRawResponse = undefined;
121
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
121
+ const providedCallback = args.options?.onResponse;
122
122
  const callback = (rawResponse, flatResponse) => {
123
123
  currentRawResponse = rawResponse;
124
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
124
+ providedCallback?.(rawResponse, flatResponse);
125
+ };
126
+ const updatedArgs = {
127
+ ...args,
128
+ options: {
129
+ ...args.options,
130
+ onResponse: callback,
131
+ },
125
132
  };
126
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
127
133
  const flatResponse = await directSendOperation(updatedArgs, spec);
128
134
  return {
129
135
  flatResponse,
@@ -141,14 +147,14 @@ export class ProjectCapabilityHostsImpl {
141
147
  accountName,
142
148
  projectName,
143
149
  capabilityHostName,
144
- body,
150
+ capabilityHost,
145
151
  options,
146
152
  },
147
153
  spec: createOrUpdateOperationSpec,
148
154
  });
149
155
  const poller = await createHttpPoller(lro, {
150
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
151
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
156
+ restoreFrom: options?.resumeFrom,
157
+ intervalInMs: options?.updateIntervalInMs,
152
158
  resourceLocationConfig: "original-uri",
153
159
  });
154
160
  await poller.poll();
@@ -161,11 +167,11 @@ export class ProjectCapabilityHostsImpl {
161
167
  * @param projectName The name of Cognitive Services account's project.
162
168
  * @param capabilityHostName The name of the capability host associated with the Cognitive Services
163
169
  * Resource
164
- * @param body CapabilityHost definition.
170
+ * @param capabilityHost CapabilityHost definition.
165
171
  * @param options The options parameters.
166
172
  */
167
- async beginCreateOrUpdateAndWait(resourceGroupName, accountName, projectName, capabilityHostName, body, options) {
168
- const poller = await this.beginCreateOrUpdate(resourceGroupName, accountName, projectName, capabilityHostName, body, options);
173
+ async beginCreateOrUpdateAndWait(resourceGroupName, accountName, projectName, capabilityHostName, capabilityHost, options) {
174
+ const poller = await this.beginCreateOrUpdate(resourceGroupName, accountName, projectName, capabilityHostName, capabilityHost, options);
169
175
  return poller.pollUntilDone();
170
176
  }
171
177
  }
@@ -246,7 +252,7 @@ const createOrUpdateOperationSpec = {
246
252
  bodyMapper: Mappers.ErrorResponse,
247
253
  },
248
254
  },
249
- requestBody: Parameters.body2,
255
+ requestBody: Parameters.capabilityHost,
250
256
  queryParameters: [Parameters.apiVersion],
251
257
  urlParameters: [
252
258
  Parameters.$host,
@@ -1 +1 @@
1
- {"version":3,"file":"projectCapabilityHosts.js","sourceRoot":"","sources":["../../../src/operations/projectCapabilityHosts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAoC,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAW9C,0DAA0D;AAC1D,MAAM,OAAO,0BAA0B;IAGrC;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,WAAW,CACf,iBAAyB,EACzB,WAAmB,EACnB,WAAmB,EACnB,kBAA0B,EAC1B,OAAoD;QAOpD,MAAM,mBAAmB,GAAG,KAAK,EAC/B,IAAmC,EACnC,IAA8B,EACiB,EAAE;YACjD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACtD,CAAC,CAAC;QACF,MAAM,eAAe,GAAG,KAAK,EAC3B,IAAmC,EACnC,IAA8B,EAC9B,EAAE;;YACF,IAAI,kBAAkB,GAAiD,SAAS,CAAC;YACjF,MAAM,gBAAgB,GAAG,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,CAAC;YAClD,MAAM,QAAQ,GAAmC,CAC/C,WAA6C,EAC7C,YAAqB,EACrB,EAAE;gBACF,kBAAkB,GAAG,WAAW,CAAC;gBACjC,gBA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;SACnC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;SACnC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;SACnC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,KAAK;IAC7B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,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 { ProjectCapabilityHosts } 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 ProjectCapabilityHostsDeleteOptionalParams,\n ProjectCapabilityHostsDeleteResponse,\n ProjectCapabilityHostsGetOptionalParams,\n ProjectCapabilityHostsGetResponse,\n CapabilityHost,\n ProjectCapabilityHostsCreateOrUpdateOptionalParams,\n ProjectCapabilityHostsCreateOrUpdateResponse,\n} from \"../models/index.js\";\n\n/** Class containing ProjectCapabilityHosts operations. */\nexport class ProjectCapabilityHostsImpl implements ProjectCapabilityHosts {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class ProjectCapabilityHosts class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * Delete project capabilityHost.\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 projectName The name of Cognitive Services account's project.\n * @param capabilityHostName The name of the capability host associated with the Cognitive Services\n * Resource\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n accountName: string,\n projectName: string,\n capabilityHostName: string,\n options?: ProjectCapabilityHostsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ProjectCapabilityHostsDeleteResponse>,\n ProjectCapabilityHostsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ProjectCapabilityHostsDeleteResponse> => {\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: {\n resourceGroupName,\n accountName,\n projectName,\n capabilityHostName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n ProjectCapabilityHostsDeleteResponse,\n OperationState<ProjectCapabilityHostsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete project capabilityHost.\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 projectName The name of Cognitive Services account's project.\n * @param capabilityHostName The name of the capability host associated with the Cognitive Services\n * Resource\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n accountName: string,\n projectName: string,\n capabilityHostName: string,\n options?: ProjectCapabilityHostsDeleteOptionalParams,\n ): Promise<ProjectCapabilityHostsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n accountName,\n projectName,\n capabilityHostName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get project capabilityHost.\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 projectName The name of Cognitive Services account's project.\n * @param capabilityHostName The name of the capability host associated with the Cognitive Services\n * Resource\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n projectName: string,\n capabilityHostName: string,\n options?: ProjectCapabilityHostsGetOptionalParams,\n ): Promise<ProjectCapabilityHostsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n projectName,\n capabilityHostName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Create or update project capabilityHost.\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 projectName The name of Cognitive Services account's project.\n * @param capabilityHostName The name of the capability host associated with the Cognitive Services\n * Resource\n * @param body CapabilityHost definition.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n accountName: string,\n projectName: string,\n capabilityHostName: string,\n body: CapabilityHost,\n options?: ProjectCapabilityHostsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ProjectCapabilityHostsCreateOrUpdateResponse>,\n ProjectCapabilityHostsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ProjectCapabilityHostsCreateOrUpdateResponse> => {\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: {\n resourceGroupName,\n accountName,\n projectName,\n capabilityHostName,\n body,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n ProjectCapabilityHostsCreateOrUpdateResponse,\n OperationState<ProjectCapabilityHostsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"original-uri\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or update project capabilityHost.\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 projectName The name of Cognitive Services account's project.\n * @param capabilityHostName The name of the capability host associated with the Cognitive Services\n * Resource\n * @param body CapabilityHost definition.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n accountName: string,\n projectName: string,\n capabilityHostName: string,\n body: CapabilityHost,\n options?: ProjectCapabilityHostsCreateOrUpdateOptionalParams,\n ): Promise<ProjectCapabilityHostsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n accountName,\n projectName,\n capabilityHostName,\n body,\n options,\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/capabilityHosts/{capabilityHostName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.ProjectCapabilityHostsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.ProjectCapabilityHostsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.ProjectCapabilityHostsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.ProjectCapabilityHostsDeleteHeaders,\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.projectName,\n Parameters.capabilityHostName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/capabilityHosts/{capabilityHostName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CapabilityHost,\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.projectName,\n Parameters.capabilityHostName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/capabilityHosts/{capabilityHostName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CapabilityHost,\n },\n 201: {\n bodyMapper: Mappers.CapabilityHost,\n },\n 202: {\n bodyMapper: Mappers.CapabilityHost,\n },\n 204: {\n bodyMapper: Mappers.CapabilityHost,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.body2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.projectName,\n Parameters.capabilityHostName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\n"]}
1
+ {"version":3,"file":"projectCapabilityHosts.js","sourceRoot":"","sources":["../../../src/operations/projectCapabilityHosts.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAoC,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAW9C,0DAA0D;AAC1D,MAAM,OAAO,0BAA0B;IACpB,MAAM,CAAoC;IAE3D;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,WAAW,CACf,iBAAyB,EACzB,WAAmB,EACnB,WAAmB,EACnB,kBAA0B,EAC1B,OAAoD;QAOpD,MAAM,mBAAmB,GAAG,KAAK,EAC/B,IAAmC,EACnC,IAA8B,EACiB,EAAE;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9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,2BAA2B,GAA6B;IAC5D,IAAI,EAAE,6LAA6L;IACnM,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;SACnC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;SACnC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;SACnC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,cAAc;SACnC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,cAAc;IACtC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["// 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\nimport { ProjectCapabilityHosts } 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 ProjectCapabilityHostsDeleteOptionalParams,\n ProjectCapabilityHostsDeleteResponse,\n ProjectCapabilityHostsGetOptionalParams,\n ProjectCapabilityHostsGetResponse,\n CapabilityHost,\n ProjectCapabilityHostsCreateOrUpdateOptionalParams,\n ProjectCapabilityHostsCreateOrUpdateResponse,\n} from \"../models/index.js\";\n\n/** Class containing ProjectCapabilityHosts operations. */\nexport class ProjectCapabilityHostsImpl implements ProjectCapabilityHosts {\n private readonly client: CognitiveServicesManagementClient;\n\n /**\n * Initialize a new instance of the class ProjectCapabilityHosts class.\n * @param client Reference to the service client\n */\n constructor(client: CognitiveServicesManagementClient) {\n this.client = client;\n }\n\n /**\n * Delete project capabilityHost.\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 projectName The name of Cognitive Services account's project.\n * @param capabilityHostName The name of the capability host associated with the Cognitive Services\n * Resource\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n accountName: string,\n projectName: string,\n capabilityHostName: string,\n options?: ProjectCapabilityHostsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ProjectCapabilityHostsDeleteResponse>,\n ProjectCapabilityHostsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ProjectCapabilityHostsDeleteResponse> => {\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: {\n resourceGroupName,\n accountName,\n projectName,\n capabilityHostName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n ProjectCapabilityHostsDeleteResponse,\n OperationState<ProjectCapabilityHostsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete project capabilityHost.\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 projectName The name of Cognitive Services account's project.\n * @param capabilityHostName The name of the capability host associated with the Cognitive Services\n * Resource\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n accountName: string,\n projectName: string,\n capabilityHostName: string,\n options?: ProjectCapabilityHostsDeleteOptionalParams,\n ): Promise<ProjectCapabilityHostsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n accountName,\n projectName,\n capabilityHostName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get project capabilityHost.\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 projectName The name of Cognitive Services account's project.\n * @param capabilityHostName The name of the capability host associated with the Cognitive Services\n * Resource\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n projectName: string,\n capabilityHostName: string,\n options?: ProjectCapabilityHostsGetOptionalParams,\n ): Promise<ProjectCapabilityHostsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n projectName,\n capabilityHostName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Create or update project capabilityHost.\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 projectName The name of Cognitive Services account's project.\n * @param capabilityHostName The name of the capability host associated with the Cognitive Services\n * Resource\n * @param capabilityHost CapabilityHost definition.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n accountName: string,\n projectName: string,\n capabilityHostName: string,\n capabilityHost: CapabilityHost,\n options?: ProjectCapabilityHostsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ProjectCapabilityHostsCreateOrUpdateResponse>,\n ProjectCapabilityHostsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ProjectCapabilityHostsCreateOrUpdateResponse> => {\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: {\n resourceGroupName,\n accountName,\n projectName,\n capabilityHostName,\n capabilityHost,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n ProjectCapabilityHostsCreateOrUpdateResponse,\n OperationState<ProjectCapabilityHostsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"original-uri\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or update project capabilityHost.\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 projectName The name of Cognitive Services account's project.\n * @param capabilityHostName The name of the capability host associated with the Cognitive Services\n * Resource\n * @param capabilityHost CapabilityHost definition.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n accountName: string,\n projectName: string,\n capabilityHostName: string,\n capabilityHost: CapabilityHost,\n options?: ProjectCapabilityHostsCreateOrUpdateOptionalParams,\n ): Promise<ProjectCapabilityHostsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n accountName,\n projectName,\n capabilityHostName,\n capabilityHost,\n options,\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/capabilityHosts/{capabilityHostName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.ProjectCapabilityHostsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.ProjectCapabilityHostsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.ProjectCapabilityHostsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.ProjectCapabilityHostsDeleteHeaders,\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.projectName,\n Parameters.capabilityHostName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/capabilityHosts/{capabilityHostName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CapabilityHost,\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.projectName,\n Parameters.capabilityHostName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/capabilityHosts/{capabilityHostName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CapabilityHost,\n },\n 201: {\n bodyMapper: Mappers.CapabilityHost,\n },\n 202: {\n bodyMapper: Mappers.CapabilityHost,\n },\n 204: {\n bodyMapper: Mappers.CapabilityHost,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.capabilityHost,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.projectName,\n Parameters.capabilityHostName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\n"]}
@@ -1,12 +1,12 @@
1
1
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { ProjectConnection } from "../operationsInterfaces/index.js";
2
+ import { ProjectConnections } from "../operationsInterfaces/index.js";
3
3
  import { CognitiveServicesManagementClient } from "../cognitiveServicesManagementClient.js";
4
- import { ConnectionPropertiesV2BasicResource, ProjectConnectionListOptionalParams, ProjectConnectionDeleteOptionalParams, ProjectConnectionGetOptionalParams, ProjectConnectionGetResponse, ProjectConnectionUpdateOptionalParams, ProjectConnectionUpdateResponse, ProjectConnectionCreateOptionalParams, ProjectConnectionCreateResponse } from "../models/index.js";
5
- /** Class containing ProjectConnection operations. */
6
- export declare class ProjectConnectionImpl implements ProjectConnection {
4
+ import { ConnectionPropertiesV2BasicResource, ProjectConnectionsListOptionalParams, ProjectConnectionsDeleteOptionalParams, ProjectConnectionsGetOptionalParams, ProjectConnectionsGetResponse, ProjectConnectionsUpdateOptionalParams, ProjectConnectionsUpdateResponse, ProjectConnectionsCreateOptionalParams, ProjectConnectionsCreateResponse } from "../models/index.js";
5
+ /** Class containing ProjectConnections operations. */
6
+ export declare class ProjectConnectionsImpl implements ProjectConnections {
7
7
  private readonly client;
8
8
  /**
9
- * Initialize a new instance of the class ProjectConnection class.
9
+ * Initialize a new instance of the class ProjectConnections class.
10
10
  * @param client Reference to the service client
11
11
  */
12
12
  constructor(client: CognitiveServicesManagementClient);
@@ -17,7 +17,7 @@ export declare class ProjectConnectionImpl implements ProjectConnection {
17
17
  * @param projectName The name of Cognitive Services account's project.
18
18
  * @param options The options parameters.
19
19
  */
20
- list(resourceGroupName: string, accountName: string, projectName: string, options?: ProjectConnectionListOptionalParams): PagedAsyncIterableIterator<ConnectionPropertiesV2BasicResource>;
20
+ list(resourceGroupName: string, accountName: string, projectName: string, options?: ProjectConnectionsListOptionalParams): PagedAsyncIterableIterator<ConnectionPropertiesV2BasicResource>;
21
21
  private listPagingPage;
22
22
  private listPagingAll;
23
23
  /**
@@ -28,7 +28,7 @@ export declare class ProjectConnectionImpl implements ProjectConnection {
28
28
  * @param connectionName Friendly name of the connection
29
29
  * @param options The options parameters.
30
30
  */
31
- delete(resourceGroupName: string, accountName: string, projectName: string, connectionName: string, options?: ProjectConnectionDeleteOptionalParams): Promise<void>;
31
+ delete(resourceGroupName: string, accountName: string, projectName: string, connectionName: string, options?: ProjectConnectionsDeleteOptionalParams): Promise<void>;
32
32
  /**
33
33
  * Lists Cognitive Services project connection by name.
34
34
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -37,7 +37,7 @@ export declare class ProjectConnectionImpl implements ProjectConnection {
37
37
  * @param connectionName Friendly name of the connection
38
38
  * @param options The options parameters.
39
39
  */
40
- get(resourceGroupName: string, accountName: string, projectName: string, connectionName: string, options?: ProjectConnectionGetOptionalParams): Promise<ProjectConnectionGetResponse>;
40
+ get(resourceGroupName: string, accountName: string, projectName: string, connectionName: string, options?: ProjectConnectionsGetOptionalParams): Promise<ProjectConnectionsGetResponse>;
41
41
  /**
42
42
  * Update Cognitive Services project connection under the specified project.
43
43
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -46,7 +46,7 @@ export declare class ProjectConnectionImpl implements ProjectConnection {
46
46
  * @param connectionName Friendly name of the connection
47
47
  * @param options The options parameters.
48
48
  */
49
- update(resourceGroupName: string, accountName: string, projectName: string, connectionName: string, options?: ProjectConnectionUpdateOptionalParams): Promise<ProjectConnectionUpdateResponse>;
49
+ update(resourceGroupName: string, accountName: string, projectName: string, connectionName: string, options?: ProjectConnectionsUpdateOptionalParams): Promise<ProjectConnectionsUpdateResponse>;
50
50
  /**
51
51
  * Create or update Cognitive Services project connection under the specified project.
52
52
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -55,7 +55,7 @@ export declare class ProjectConnectionImpl implements ProjectConnection {
55
55
  * @param connectionName Friendly name of the connection
56
56
  * @param options The options parameters.
57
57
  */
58
- create(resourceGroupName: string, accountName: string, projectName: string, connectionName: string, options?: ProjectConnectionCreateOptionalParams): Promise<ProjectConnectionCreateResponse>;
58
+ create(resourceGroupName: string, accountName: string, projectName: string, connectionName: string, options?: ProjectConnectionsCreateOptionalParams): Promise<ProjectConnectionsCreateResponse>;
59
59
  /**
60
60
  * Lists all the available Cognitive Services project connections under the specified project.
61
61
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -74,4 +74,4 @@ export declare class ProjectConnectionImpl implements ProjectConnection {
74
74
  */
75
75
  private _listNext;
76
76
  }
77
- //# sourceMappingURL=projectConnection.d.ts.map
77
+ //# sourceMappingURL=projectConnections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version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AAE,MAAM,EACnB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC;IAO5C;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC;IAO5C;;;;;;OAMG;IACH,OAAO,CAAC,KAAK;IAYb;;;;;;;OAOG;IACH,OAAO,CAAC,SAAS;CAYlB"}
@@ -1,20 +1,15 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
9
3
  import { setContinuationToken } from "../pagingHelper.js";
10
4
  import * as coreClient from "@azure/core-client";
11
5
  import * as Mappers from "../models/mappers.js";
12
6
  import * as Parameters from "../models/parameters.js";
13
7
  /// <reference lib="esnext.asynciterable" />
14
- /** Class containing ProjectConnection operations. */
15
- export class ProjectConnectionImpl {
8
+ /** Class containing ProjectConnections operations. */
9
+ export class ProjectConnectionsImpl {
10
+ client;
16
11
  /**
17
- * Initialize a new instance of the class ProjectConnection class.
12
+ * Initialize a new instance of the class ProjectConnections class.
18
13
  * @param client Reference to the service client
19
14
  */
20
15
  constructor(client) {
@@ -37,52 +32,35 @@ export class ProjectConnectionImpl {
37
32
  return this;
38
33
  },
39
34
  byPage: (settings) => {
40
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
35
+ if (settings?.maxPageSize) {
41
36
  throw new Error("maxPageSize is not supported by this operation.");
42
37
  }
43
38
  return this.listPagingPage(resourceGroupName, accountName, projectName, options, settings);
44
39
  },
45
40
  };
46
41
  }
47
- listPagingPage(resourceGroupName, accountName, projectName, options, settings) {
48
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
49
- let result;
50
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
- if (!continuationToken) {
52
- result = yield __await(this._list(resourceGroupName, accountName, projectName, options));
53
- let page = result.value || [];
54
- continuationToken = result.nextLink;
55
- setContinuationToken(page, continuationToken);
56
- yield yield __await(page);
57
- }
58
- while (continuationToken) {
59
- result = yield __await(this._listNext(resourceGroupName, accountName, projectName, continuationToken, options));
60
- continuationToken = result.nextLink;
61
- let page = result.value || [];
62
- setContinuationToken(page, continuationToken);
63
- yield yield __await(page);
64
- }
65
- });
42
+ async *listPagingPage(resourceGroupName, accountName, projectName, options, settings) {
43
+ let result;
44
+ let continuationToken = settings?.continuationToken;
45
+ if (!continuationToken) {
46
+ result = await this._list(resourceGroupName, accountName, projectName, options);
47
+ let page = result.value || [];
48
+ continuationToken = result.nextLink;
49
+ setContinuationToken(page, continuationToken);
50
+ yield page;
51
+ }
52
+ while (continuationToken) {
53
+ result = await this._listNext(resourceGroupName, accountName, projectName, continuationToken, options);
54
+ continuationToken = result.nextLink;
55
+ let page = result.value || [];
56
+ setContinuationToken(page, continuationToken);
57
+ yield page;
58
+ }
66
59
  }
67
- listPagingAll(resourceGroupName, accountName, projectName, options) {
68
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
69
- var _a, e_1, _b, _c;
70
- try {
71
- for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, accountName, projectName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
72
- _c = _f.value;
73
- _d = false;
74
- const page = _c;
75
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
76
- }
77
- }
78
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
79
- finally {
80
- try {
81
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
82
- }
83
- finally { if (e_1) throw e_1.error; }
84
- }
85
- });
60
+ async *listPagingAll(resourceGroupName, accountName, projectName, options) {
61
+ for await (const page of this.listPagingPage(resourceGroupName, accountName, projectName, options)) {
62
+ yield* page;
63
+ }
86
64
  }
87
65
  /**
88
66
  * Delete Cognitive Services project connection by name.
@@ -208,7 +186,7 @@ const updateOperationSpec = {
208
186
  bodyMapper: Mappers.ErrorResponse,
209
187
  },
210
188
  },
211
- requestBody: Parameters.body,
189
+ requestBody: Parameters.connection,
212
190
  queryParameters: [Parameters.apiVersion],
213
191
  urlParameters: [
214
192
  Parameters.$host,
@@ -233,7 +211,7 @@ const createOperationSpec = {
233
211
  bodyMapper: Mappers.ErrorResponse,
234
212
  },
235
213
  },
236
- requestBody: Parameters.body1,
214
+ requestBody: Parameters.connection1,
237
215
  queryParameters: [Parameters.apiVersion],
238
216
  urlParameters: [
239
217
  Parameters.$host,
@@ -296,4 +274,4 @@ const listNextOperationSpec = {
296
274
  headerParameters: [Parameters.accept],
297
275
  serializer,
298
276
  };
299
- //# sourceMappingURL=projectConnection.js.map
277
+ //# sourceMappingURL=projectConnections.js.map