@azure/arm-cognitiveservices 7.5.0 → 7.6.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 (392) hide show
  1. package/CHANGELOG.md +196 -8
  2. package/LICENSE +1 -1
  3. package/README.md +4 -5
  4. package/dist/index.js +8300 -4017
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/accountsCreateSample.js +10 -10
  9. package/dist-esm/samples-dev/accountsCreateSample.js.map +1 -1
  10. package/dist-esm/samples-dev/accountsDeleteSample.js +1 -1
  11. package/dist-esm/samples-dev/accountsGetSample.js +1 -1
  12. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +5 -10
  13. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +1 -1
  14. package/dist-esm/samples-dev/accountsListKeysSample.js +1 -1
  15. package/dist-esm/samples-dev/accountsListModelsSample.js +5 -10
  16. package/dist-esm/samples-dev/accountsListModelsSample.js.map +1 -1
  17. package/dist-esm/samples-dev/accountsListSample.js +5 -10
  18. package/dist-esm/samples-dev/accountsListSample.js.map +1 -1
  19. package/dist-esm/samples-dev/accountsListSkusSample.js +1 -1
  20. package/dist-esm/samples-dev/accountsListUsagesSample.js +1 -1
  21. package/dist-esm/samples-dev/accountsRegenerateKeySample.js +1 -1
  22. package/dist-esm/samples-dev/accountsUpdateSample.js +2 -2
  23. package/dist-esm/samples-dev/accountsUpdateSample.js.map +1 -1
  24. package/dist-esm/samples-dev/calculateModelCapacitySample.d.ts +2 -0
  25. package/dist-esm/samples-dev/calculateModelCapacitySample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/calculateModelCapacitySample.js +54 -0
  27. package/dist-esm/samples-dev/calculateModelCapacitySample.js.map +1 -0
  28. package/dist-esm/samples-dev/checkDomainAvailabilitySample.js +5 -3
  29. package/dist-esm/samples-dev/checkDomainAvailabilitySample.js.map +1 -1
  30. package/dist-esm/samples-dev/checkSkuAvailabilitySample.js +1 -1
  31. package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateAssociationSample.js +3 -3
  32. package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateAssociationSample.js.map +1 -1
  33. package/dist-esm/samples-dev/commitmentPlansCreateOrUpdatePlanSample.js +4 -4
  34. package/dist-esm/samples-dev/commitmentPlansCreateOrUpdatePlanSample.js.map +1 -1
  35. package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateSample.js +4 -4
  36. package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateSample.js.map +1 -1
  37. package/dist-esm/samples-dev/commitmentPlansDeleteAssociationSample.js +1 -1
  38. package/dist-esm/samples-dev/commitmentPlansDeletePlanSample.js +1 -1
  39. package/dist-esm/samples-dev/commitmentPlansDeleteSample.js +1 -1
  40. package/dist-esm/samples-dev/commitmentPlansGetAssociationSample.js +1 -1
  41. package/dist-esm/samples-dev/commitmentPlansGetPlanSample.js +1 -1
  42. package/dist-esm/samples-dev/commitmentPlansGetSample.js +1 -1
  43. package/dist-esm/samples-dev/commitmentPlansListAssociationsSample.js +5 -10
  44. package/dist-esm/samples-dev/commitmentPlansListAssociationsSample.js.map +1 -1
  45. package/dist-esm/samples-dev/commitmentPlansListPlansByResourceGroupSample.js +5 -10
  46. package/dist-esm/samples-dev/commitmentPlansListPlansByResourceGroupSample.js.map +1 -1
  47. package/dist-esm/samples-dev/commitmentPlansListPlansBySubscriptionSample.js +5 -10
  48. package/dist-esm/samples-dev/commitmentPlansListPlansBySubscriptionSample.js.map +1 -1
  49. package/dist-esm/samples-dev/commitmentPlansListSample.js +5 -10
  50. package/dist-esm/samples-dev/commitmentPlansListSample.js.map +1 -1
  51. package/dist-esm/samples-dev/commitmentPlansUpdatePlanSample.js +2 -2
  52. package/dist-esm/samples-dev/commitmentPlansUpdatePlanSample.js.map +1 -1
  53. package/dist-esm/samples-dev/commitmentTiersListSample.js +5 -10
  54. package/dist-esm/samples-dev/commitmentTiersListSample.js.map +1 -1
  55. package/dist-esm/samples-dev/defenderForAiSettingsCreateOrUpdateSample.d.ts +2 -0
  56. package/dist-esm/samples-dev/defenderForAiSettingsCreateOrUpdateSample.d.ts.map +1 -0
  57. package/dist-esm/samples-dev/defenderForAiSettingsCreateOrUpdateSample.js +41 -0
  58. package/dist-esm/samples-dev/defenderForAiSettingsCreateOrUpdateSample.js.map +1 -0
  59. package/dist-esm/samples-dev/defenderForAiSettingsGetSample.d.ts +2 -0
  60. package/dist-esm/samples-dev/defenderForAiSettingsGetSample.d.ts.map +1 -0
  61. package/dist-esm/samples-dev/defenderForAiSettingsGetSample.js +40 -0
  62. package/dist-esm/samples-dev/defenderForAiSettingsGetSample.js.map +1 -0
  63. package/dist-esm/samples-dev/defenderForAiSettingsListSample.d.ts +2 -0
  64. package/dist-esm/samples-dev/defenderForAiSettingsListSample.d.ts.map +1 -0
  65. package/dist-esm/samples-dev/defenderForAiSettingsListSample.js +55 -0
  66. package/dist-esm/samples-dev/defenderForAiSettingsListSample.js.map +1 -0
  67. package/dist-esm/samples-dev/defenderForAiSettingsUpdateSample.d.ts +2 -0
  68. package/dist-esm/samples-dev/defenderForAiSettingsUpdateSample.d.ts.map +1 -0
  69. package/dist-esm/samples-dev/defenderForAiSettingsUpdateSample.js +41 -0
  70. package/dist-esm/samples-dev/defenderForAiSettingsUpdateSample.js.map +1 -0
  71. package/dist-esm/samples-dev/deletedAccountsGetSample.js +1 -1
  72. package/dist-esm/samples-dev/deletedAccountsListSample.js +5 -10
  73. package/dist-esm/samples-dev/deletedAccountsListSample.js.map +1 -1
  74. package/dist-esm/samples-dev/deletedAccountsPurgeSample.js +1 -1
  75. package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js +3 -3
  76. package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js.map +1 -1
  77. package/dist-esm/samples-dev/deploymentsDeleteSample.js +1 -1
  78. package/dist-esm/samples-dev/deploymentsGetSample.js +1 -1
  79. package/dist-esm/samples-dev/deploymentsListSample.js +5 -10
  80. package/dist-esm/samples-dev/deploymentsListSample.js.map +1 -1
  81. package/dist-esm/samples-dev/deploymentsListSkusSample.d.ts +2 -0
  82. package/dist-esm/samples-dev/deploymentsListSkusSample.d.ts.map +1 -0
  83. package/dist-esm/samples-dev/deploymentsListSkusSample.js +56 -0
  84. package/dist-esm/samples-dev/deploymentsListSkusSample.js.map +1 -0
  85. package/dist-esm/samples-dev/deploymentsUpdateSample.d.ts +2 -0
  86. package/dist-esm/samples-dev/deploymentsUpdateSample.d.ts.map +1 -0
  87. package/dist-esm/samples-dev/deploymentsUpdateSample.js +43 -0
  88. package/dist-esm/samples-dev/deploymentsUpdateSample.js.map +1 -0
  89. package/dist-esm/samples-dev/encryptionScopesCreateOrUpdateSample.d.ts +2 -0
  90. package/dist-esm/samples-dev/encryptionScopesCreateOrUpdateSample.d.ts.map +1 -0
  91. package/dist-esm/samples-dev/encryptionScopesCreateOrUpdateSample.js +52 -0
  92. package/dist-esm/samples-dev/encryptionScopesCreateOrUpdateSample.js.map +1 -0
  93. package/dist-esm/samples-dev/encryptionScopesDeleteSample.d.ts +2 -0
  94. package/dist-esm/samples-dev/encryptionScopesDeleteSample.d.ts.map +1 -0
  95. package/dist-esm/samples-dev/encryptionScopesDeleteSample.js +40 -0
  96. package/dist-esm/samples-dev/encryptionScopesDeleteSample.js.map +1 -0
  97. package/dist-esm/samples-dev/encryptionScopesGetSample.d.ts +2 -0
  98. package/dist-esm/samples-dev/encryptionScopesGetSample.d.ts.map +1 -0
  99. package/dist-esm/samples-dev/encryptionScopesGetSample.js +40 -0
  100. package/dist-esm/samples-dev/encryptionScopesGetSample.js.map +1 -0
  101. package/dist-esm/samples-dev/encryptionScopesListSample.d.ts +2 -0
  102. package/dist-esm/samples-dev/encryptionScopesListSample.d.ts.map +1 -0
  103. package/dist-esm/samples-dev/encryptionScopesListSample.js +55 -0
  104. package/dist-esm/samples-dev/encryptionScopesListSample.js.map +1 -0
  105. package/dist-esm/samples-dev/locationBasedModelCapacitiesListSample.d.ts +2 -0
  106. package/dist-esm/samples-dev/locationBasedModelCapacitiesListSample.d.ts.map +1 -0
  107. package/dist-esm/samples-dev/locationBasedModelCapacitiesListSample.js +57 -0
  108. package/dist-esm/samples-dev/locationBasedModelCapacitiesListSample.js.map +1 -0
  109. package/dist-esm/samples-dev/modelCapacitiesListSample.d.ts +2 -0
  110. package/dist-esm/samples-dev/modelCapacitiesListSample.d.ts.map +1 -0
  111. package/dist-esm/samples-dev/modelCapacitiesListSample.js +56 -0
  112. package/dist-esm/samples-dev/modelCapacitiesListSample.js.map +1 -0
  113. package/dist-esm/samples-dev/modelsListSample.js +7 -12
  114. package/dist-esm/samples-dev/modelsListSample.js.map +1 -1
  115. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.d.ts +2 -0
  116. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.d.ts.map +1 -0
  117. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.js +40 -0
  118. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.js.map +1 -0
  119. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListSample.d.ts +2 -0
  120. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListSample.d.ts.map +1 -0
  121. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListSample.js +55 -0
  122. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListSample.js.map +1 -0
  123. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.d.ts +2 -0
  124. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.d.ts.map +1 -0
  125. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.js +40 -0
  126. package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.js.map +1 -0
  127. package/dist-esm/samples-dev/operationsListSample.js +5 -10
  128. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  129. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +5 -5
  130. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -1
  131. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  132. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  133. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
  134. package/dist-esm/samples-dev/privateLinkResourcesListSample.js +1 -1
  135. package/dist-esm/samples-dev/raiBlocklistItemsBatchAddSample.d.ts +2 -0
  136. package/dist-esm/samples-dev/raiBlocklistItemsBatchAddSample.d.ts.map +1 -0
  137. package/dist-esm/samples-dev/raiBlocklistItemsBatchAddSample.js +50 -0
  138. package/dist-esm/samples-dev/raiBlocklistItemsBatchAddSample.js.map +1 -0
  139. package/dist-esm/samples-dev/raiBlocklistItemsBatchDeleteSample.d.ts +2 -0
  140. package/dist-esm/samples-dev/raiBlocklistItemsBatchDeleteSample.d.ts.map +1 -0
  141. package/dist-esm/samples-dev/raiBlocklistItemsBatchDeleteSample.js +44 -0
  142. package/dist-esm/samples-dev/raiBlocklistItemsBatchDeleteSample.js.map +1 -0
  143. package/dist-esm/samples-dev/raiBlocklistItemsCreateOrUpdateSample.d.ts +2 -0
  144. package/dist-esm/samples-dev/raiBlocklistItemsCreateOrUpdateSample.d.ts.map +1 -0
  145. package/dist-esm/samples-dev/raiBlocklistItemsCreateOrUpdateSample.js +44 -0
  146. package/dist-esm/samples-dev/raiBlocklistItemsCreateOrUpdateSample.js.map +1 -0
  147. package/dist-esm/samples-dev/raiBlocklistItemsDeleteSample.d.ts +2 -0
  148. package/dist-esm/samples-dev/raiBlocklistItemsDeleteSample.d.ts.map +1 -0
  149. package/dist-esm/samples-dev/raiBlocklistItemsDeleteSample.js +41 -0
  150. package/dist-esm/samples-dev/raiBlocklistItemsDeleteSample.js.map +1 -0
  151. package/dist-esm/samples-dev/raiBlocklistItemsGetSample.d.ts +2 -0
  152. package/dist-esm/samples-dev/raiBlocklistItemsGetSample.d.ts.map +1 -0
  153. package/dist-esm/samples-dev/raiBlocklistItemsGetSample.js +41 -0
  154. package/dist-esm/samples-dev/raiBlocklistItemsGetSample.js.map +1 -0
  155. package/dist-esm/samples-dev/raiBlocklistItemsListSample.d.ts +2 -0
  156. package/dist-esm/samples-dev/raiBlocklistItemsListSample.d.ts.map +1 -0
  157. package/dist-esm/samples-dev/raiBlocklistItemsListSample.js +56 -0
  158. package/dist-esm/samples-dev/raiBlocklistItemsListSample.js.map +1 -0
  159. package/dist-esm/samples-dev/raiBlocklistsCreateOrUpdateSample.d.ts +2 -0
  160. package/dist-esm/samples-dev/raiBlocklistsCreateOrUpdateSample.d.ts.map +1 -0
  161. package/dist-esm/samples-dev/raiBlocklistsCreateOrUpdateSample.js +43 -0
  162. package/dist-esm/samples-dev/raiBlocklistsCreateOrUpdateSample.js.map +1 -0
  163. package/dist-esm/samples-dev/raiBlocklistsDeleteSample.d.ts +2 -0
  164. package/dist-esm/samples-dev/raiBlocklistsDeleteSample.d.ts.map +1 -0
  165. package/dist-esm/samples-dev/raiBlocklistsDeleteSample.js +40 -0
  166. package/dist-esm/samples-dev/raiBlocklistsDeleteSample.js.map +1 -0
  167. package/dist-esm/samples-dev/raiBlocklistsGetSample.d.ts +2 -0
  168. package/dist-esm/samples-dev/raiBlocklistsGetSample.d.ts.map +1 -0
  169. package/dist-esm/samples-dev/raiBlocklistsGetSample.js +40 -0
  170. package/dist-esm/samples-dev/raiBlocklistsGetSample.js.map +1 -0
  171. package/dist-esm/samples-dev/raiBlocklistsListSample.d.ts +2 -0
  172. package/dist-esm/samples-dev/raiBlocklistsListSample.d.ts.map +1 -0
  173. package/dist-esm/samples-dev/raiBlocklistsListSample.js +55 -0
  174. package/dist-esm/samples-dev/raiBlocklistsListSample.js.map +1 -0
  175. package/dist-esm/samples-dev/raiContentFiltersGetSample.d.ts +2 -0
  176. package/dist-esm/samples-dev/raiContentFiltersGetSample.d.ts.map +1 -0
  177. package/dist-esm/samples-dev/raiContentFiltersGetSample.js +39 -0
  178. package/dist-esm/samples-dev/raiContentFiltersGetSample.js.map +1 -0
  179. package/dist-esm/samples-dev/raiContentFiltersListSample.d.ts +2 -0
  180. package/dist-esm/samples-dev/raiContentFiltersListSample.d.ts.map +1 -0
  181. package/dist-esm/samples-dev/raiContentFiltersListSample.js +54 -0
  182. package/dist-esm/samples-dev/raiContentFiltersListSample.js.map +1 -0
  183. package/dist-esm/samples-dev/raiPoliciesCreateOrUpdateSample.d.ts +2 -0
  184. package/dist-esm/samples-dev/raiPoliciesCreateOrUpdateSample.d.ts.map +1 -0
  185. package/dist-esm/samples-dev/raiPoliciesCreateOrUpdateSample.js +118 -0
  186. package/dist-esm/samples-dev/raiPoliciesCreateOrUpdateSample.js.map +1 -0
  187. package/dist-esm/samples-dev/raiPoliciesDeleteSample.d.ts +2 -0
  188. package/dist-esm/samples-dev/raiPoliciesDeleteSample.d.ts.map +1 -0
  189. package/dist-esm/samples-dev/raiPoliciesDeleteSample.js +40 -0
  190. package/dist-esm/samples-dev/raiPoliciesDeleteSample.js.map +1 -0
  191. package/dist-esm/samples-dev/raiPoliciesGetSample.d.ts +2 -0
  192. package/dist-esm/samples-dev/raiPoliciesGetSample.d.ts.map +1 -0
  193. package/dist-esm/samples-dev/raiPoliciesGetSample.js +40 -0
  194. package/dist-esm/samples-dev/raiPoliciesGetSample.js.map +1 -0
  195. package/dist-esm/samples-dev/raiPoliciesListSample.d.ts +2 -0
  196. package/dist-esm/samples-dev/raiPoliciesListSample.d.ts.map +1 -0
  197. package/dist-esm/samples-dev/raiPoliciesListSample.js +55 -0
  198. package/dist-esm/samples-dev/raiPoliciesListSample.js.map +1 -0
  199. package/dist-esm/samples-dev/resourceSkusListSample.js +5 -10
  200. package/dist-esm/samples-dev/resourceSkusListSample.js.map +1 -1
  201. package/dist-esm/samples-dev/usagesListSample.js +5 -10
  202. package/dist-esm/samples-dev/usagesListSample.js.map +1 -1
  203. package/dist-esm/src/cognitiveServicesManagementClient.d.ts +17 -3
  204. package/dist-esm/src/cognitiveServicesManagementClient.d.ts.map +1 -1
  205. package/dist-esm/src/cognitiveServicesManagementClient.js +64 -22
  206. package/dist-esm/src/cognitiveServicesManagementClient.js.map +1 -1
  207. package/dist-esm/src/index.d.ts +0 -1
  208. package/dist-esm/src/index.d.ts.map +1 -1
  209. package/dist-esm/src/lroImpl.js +1 -1
  210. package/dist-esm/src/models/index.d.ts +917 -19
  211. package/dist-esm/src/models/index.d.ts.map +1 -1
  212. package/dist-esm/src/models/index.js +96 -2
  213. package/dist-esm/src/models/index.js.map +1 -1
  214. package/dist-esm/src/models/mappers.d.ts +54 -2
  215. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  216. package/dist-esm/src/models/mappers.js +2369 -950
  217. package/dist-esm/src/models/mappers.js.map +1 -1
  218. package/dist-esm/src/models/parameters.d.ts +21 -0
  219. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  220. package/dist-esm/src/models/parameters.js +262 -65
  221. package/dist-esm/src/models/parameters.js.map +1 -1
  222. package/dist-esm/src/operations/accounts.d.ts.map +1 -1
  223. package/dist-esm/src/operations/accounts.js +100 -115
  224. package/dist-esm/src/operations/accounts.js.map +1 -1
  225. package/dist-esm/src/operations/commitmentPlans.d.ts.map +1 -1
  226. package/dist-esm/src/operations/commitmentPlans.js +141 -161
  227. package/dist-esm/src/operations/commitmentPlans.js.map +1 -1
  228. package/dist-esm/src/operations/commitmentTiers.js +14 -19
  229. package/dist-esm/src/operations/commitmentTiers.js.map +1 -1
  230. package/dist-esm/src/operations/defenderForAISettings.d.ts +64 -0
  231. package/dist-esm/src/operations/defenderForAISettings.d.ts.map +1 -0
  232. package/dist-esm/src/operations/defenderForAISettings.js +267 -0
  233. package/dist-esm/src/operations/defenderForAISettings.js.map +1 -0
  234. package/dist-esm/src/operations/deletedAccounts.d.ts.map +1 -1
  235. package/dist-esm/src/operations/deletedAccounts.js +27 -32
  236. package/dist-esm/src/operations/deletedAccounts.js.map +1 -1
  237. package/dist-esm/src/operations/deployments.d.ts +46 -1
  238. package/dist-esm/src/operations/deployments.d.ts.map +1 -1
  239. package/dist-esm/src/operations/deployments.js +269 -46
  240. package/dist-esm/src/operations/deployments.js.map +1 -1
  241. package/dist-esm/src/operations/encryptionScopes.d.ts +76 -0
  242. package/dist-esm/src/operations/encryptionScopes.d.ts.map +1 -0
  243. package/dist-esm/src/operations/encryptionScopes.js +320 -0
  244. package/dist-esm/src/operations/encryptionScopes.js.map +1 -0
  245. package/dist-esm/src/operations/index.d.ts +9 -0
  246. package/dist-esm/src/operations/index.d.ts.map +1 -1
  247. package/dist-esm/src/operations/index.js +9 -0
  248. package/dist-esm/src/operations/index.js.map +1 -1
  249. package/dist-esm/src/operations/locationBasedModelCapacities.d.ts +41 -0
  250. package/dist-esm/src/operations/locationBasedModelCapacities.d.ts.map +1 -0
  251. package/dist-esm/src/operations/locationBasedModelCapacities.js +156 -0
  252. package/dist-esm/src/operations/locationBasedModelCapacities.js.map +1 -0
  253. package/dist-esm/src/operations/modelCapacities.d.ts +38 -0
  254. package/dist-esm/src/operations/modelCapacities.d.ts.map +1 -0
  255. package/dist-esm/src/operations/modelCapacities.js +148 -0
  256. package/dist-esm/src/operations/modelCapacities.js.map +1 -0
  257. package/dist-esm/src/operations/models.js +14 -19
  258. package/dist-esm/src/operations/models.js.map +1 -1
  259. package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.d.ts +63 -0
  260. package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
  261. package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.js +273 -0
  262. package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
  263. package/dist-esm/src/operations/operations.js +12 -17
  264. package/dist-esm/src/operations/operations.js.map +1 -1
  265. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  266. package/dist-esm/src/operations/privateEndpointConnections.js +34 -34
  267. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  268. package/dist-esm/src/operations/privateLinkResources.js +5 -5
  269. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  270. package/dist-esm/src/operations/raiBlocklistItems.d.ts +97 -0
  271. package/dist-esm/src/operations/raiBlocklistItems.d.ts.map +1 -0
  272. package/dist-esm/src/operations/raiBlocklistItems.js +422 -0
  273. package/dist-esm/src/operations/raiBlocklistItems.js.map +1 -0
  274. package/dist-esm/src/operations/raiBlocklists.d.ts +72 -0
  275. package/dist-esm/src/operations/raiBlocklists.d.ts.map +1 -0
  276. package/dist-esm/src/operations/raiBlocklists.js +317 -0
  277. package/dist-esm/src/operations/raiBlocklists.js.map +1 -0
  278. package/dist-esm/src/operations/raiContentFilters.d.ts +42 -0
  279. package/dist-esm/src/operations/raiContentFilters.d.ts.map +1 -0
  280. package/dist-esm/src/operations/raiContentFilters.js +175 -0
  281. package/dist-esm/src/operations/raiContentFilters.js.map +1 -0
  282. package/dist-esm/src/operations/raiPolicies.d.ts +72 -0
  283. package/dist-esm/src/operations/raiPolicies.d.ts.map +1 -0
  284. package/dist-esm/src/operations/raiPolicies.js +311 -0
  285. package/dist-esm/src/operations/raiPolicies.js.map +1 -0
  286. package/dist-esm/src/operations/resourceSkus.js +13 -18
  287. package/dist-esm/src/operations/resourceSkus.js.map +1 -1
  288. package/dist-esm/src/operations/usages.js +14 -19
  289. package/dist-esm/src/operations/usages.js.map +1 -1
  290. package/dist-esm/src/operationsInterfaces/defenderForAISettings.d.ts +39 -0
  291. package/dist-esm/src/operationsInterfaces/defenderForAISettings.d.ts.map +1 -0
  292. package/dist-esm/src/operationsInterfaces/defenderForAISettings.js +9 -0
  293. package/dist-esm/src/operationsInterfaces/defenderForAISettings.js.map +1 -0
  294. package/dist-esm/src/operationsInterfaces/deployments.d.ts +27 -1
  295. package/dist-esm/src/operationsInterfaces/deployments.d.ts.map +1 -1
  296. package/dist-esm/src/operationsInterfaces/encryptionScopes.d.ts +51 -0
  297. package/dist-esm/src/operationsInterfaces/encryptionScopes.d.ts.map +1 -0
  298. package/dist-esm/src/operationsInterfaces/encryptionScopes.js +9 -0
  299. package/dist-esm/src/operationsInterfaces/encryptionScopes.js.map +1 -0
  300. package/dist-esm/src/operationsInterfaces/index.d.ts +9 -0
  301. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  302. package/dist-esm/src/operationsInterfaces/index.js +9 -0
  303. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  304. package/dist-esm/src/operationsInterfaces/locationBasedModelCapacities.d.ts +15 -0
  305. package/dist-esm/src/operationsInterfaces/locationBasedModelCapacities.d.ts.map +1 -0
  306. package/dist-esm/src/operationsInterfaces/locationBasedModelCapacities.js +9 -0
  307. package/dist-esm/src/operationsInterfaces/locationBasedModelCapacities.js.map +1 -0
  308. package/dist-esm/src/operationsInterfaces/modelCapacities.d.ts +14 -0
  309. package/dist-esm/src/operationsInterfaces/modelCapacities.d.ts.map +1 -0
  310. package/dist-esm/src/operationsInterfaces/modelCapacities.js +9 -0
  311. package/dist-esm/src/operationsInterfaces/modelCapacities.js.map +1 -0
  312. package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +38 -0
  313. package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
  314. package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.js +9 -0
  315. package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
  316. package/dist-esm/src/operationsInterfaces/raiBlocklistItems.d.ts +70 -0
  317. package/dist-esm/src/operationsInterfaces/raiBlocklistItems.d.ts.map +1 -0
  318. package/dist-esm/src/operationsInterfaces/raiBlocklistItems.js +9 -0
  319. package/dist-esm/src/operationsInterfaces/raiBlocklistItems.js.map +1 -0
  320. package/dist-esm/src/operationsInterfaces/raiBlocklists.d.ts +47 -0
  321. package/dist-esm/src/operationsInterfaces/raiBlocklists.d.ts.map +1 -0
  322. package/dist-esm/src/operationsInterfaces/raiBlocklists.js +9 -0
  323. package/dist-esm/src/operationsInterfaces/raiBlocklists.js.map +1 -0
  324. package/dist-esm/src/operationsInterfaces/raiContentFilters.d.ts +19 -0
  325. package/dist-esm/src/operationsInterfaces/raiContentFilters.d.ts.map +1 -0
  326. package/dist-esm/src/operationsInterfaces/raiContentFilters.js +9 -0
  327. package/dist-esm/src/operationsInterfaces/raiContentFilters.js.map +1 -0
  328. package/dist-esm/src/operationsInterfaces/raiPolicies.d.ts +47 -0
  329. package/dist-esm/src/operationsInterfaces/raiPolicies.d.ts.map +1 -0
  330. package/dist-esm/src/operationsInterfaces/raiPolicies.js +9 -0
  331. package/dist-esm/src/operationsInterfaces/raiPolicies.js.map +1 -0
  332. package/dist-esm/src/pagingHelper.js.map +1 -1
  333. package/dist-esm/test/cognitiveservices_congitiveservice.spec.d.ts.map +1 -1
  334. package/dist-esm/test/cognitiveservices_congitiveservice.spec.js +20 -31
  335. package/dist-esm/test/cognitiveservices_congitiveservice.spec.js.map +1 -1
  336. package/dist-esm/test/cognitiveservices_openai.spec.d.ts.map +1 -1
  337. package/dist-esm/test/cognitiveservices_openai.spec.js +25 -41
  338. package/dist-esm/test/cognitiveservices_openai.spec.js.map +1 -1
  339. package/package.json +23 -32
  340. package/review/arm-cognitiveservices.api.md +893 -23
  341. package/src/cognitiveServicesManagementClient.ts +117 -39
  342. package/src/lroImpl.ts +4 -4
  343. package/src/models/index.ts +1110 -51
  344. package/src/models/mappers.ts +2579 -1046
  345. package/src/models/parameters.ts +291 -67
  346. package/src/operations/accounts.ts +170 -184
  347. package/src/operations/commitmentPlans.ts +253 -273
  348. package/src/operations/commitmentTiers.ts +20 -21
  349. package/src/operations/defenderForAISettings.ts +345 -0
  350. package/src/operations/deletedAccounts.ts +46 -50
  351. package/src/operations/deployments.ts +399 -81
  352. package/src/operations/encryptionScopes.ts +429 -0
  353. package/src/operations/index.ts +9 -0
  354. package/src/operations/locationBasedModelCapacities.ts +219 -0
  355. package/src/operations/modelCapacities.ts +195 -0
  356. package/src/operations/models.ts +20 -21
  357. package/src/operations/networkSecurityPerimeterConfigurations.ts +372 -0
  358. package/src/operations/operations.ts +16 -16
  359. package/src/operations/privateEndpointConnections.ts +65 -70
  360. package/src/operations/privateLinkResources.ts +9 -10
  361. package/src/operations/raiBlocklistItems.ts +578 -0
  362. package/src/operations/raiBlocklists.ts +426 -0
  363. package/src/operations/raiContentFilters.ts +209 -0
  364. package/src/operations/raiPolicies.ts +420 -0
  365. package/src/operations/resourceSkus.ts +18 -19
  366. package/src/operations/usages.ts +20 -21
  367. package/src/operationsInterfaces/accounts.ts +15 -15
  368. package/src/operationsInterfaces/commitmentPlans.ts +21 -21
  369. package/src/operationsInterfaces/commitmentTiers.ts +1 -1
  370. package/src/operationsInterfaces/defenderForAISettings.ts +78 -0
  371. package/src/operationsInterfaces/deletedAccounts.ts +5 -5
  372. package/src/operationsInterfaces/deployments.ts +60 -7
  373. package/src/operationsInterfaces/encryptionScopes.ts +99 -0
  374. package/src/operationsInterfaces/index.ts +9 -0
  375. package/src/operationsInterfaces/locationBasedModelCapacities.ts +33 -0
  376. package/src/operationsInterfaces/modelCapacities.ts +31 -0
  377. package/src/operationsInterfaces/models.ts +1 -1
  378. package/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts +78 -0
  379. package/src/operationsInterfaces/operations.ts +1 -1
  380. package/src/operationsInterfaces/privateEndpointConnections.ts +7 -7
  381. package/src/operationsInterfaces/privateLinkResources.ts +2 -2
  382. package/src/operationsInterfaces/raiBlocklistItems.ts +139 -0
  383. package/src/operationsInterfaces/raiBlocklists.ts +95 -0
  384. package/src/operationsInterfaces/raiContentFilters.ts +40 -0
  385. package/src/operationsInterfaces/raiPolicies.ts +95 -0
  386. package/src/operationsInterfaces/resourceSkus.ts +1 -1
  387. package/src/operationsInterfaces/usages.ts +1 -1
  388. package/src/pagingHelper.ts +1 -1
  389. package/tsconfig.json +2 -2
  390. package/types/arm-cognitiveservices.d.ts +1499 -91
  391. package/types/tsdoc-metadata.json +1 -1
  392. package/rollup.config.js +0 -122
@@ -0,0 +1,40 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { CognitiveServicesManagementClient } from "@azure/arm-cognitiveservices";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Gets the specified NSP configurations for an account.
17
+ *
18
+ * @summary Gets the specified NSP configurations for an account.
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/GetNetworkSecurityPerimeterConfigurations.json
20
+ */
21
+ function getNetworkSecurityPerimeterConfigurations() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] ||
24
+ "00000000-0000-0000-0000-000000000000";
25
+ const resourceGroupName = process.env["COGNITIVESERVICES_RESOURCE_GROUP"] || "resourceGroupName";
26
+ const accountName = "accountName";
27
+ const nspConfigurationName = "NSPConfigurationName";
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new CognitiveServicesManagementClient(credential, subscriptionId);
30
+ const result = yield client.networkSecurityPerimeterConfigurations.get(resourceGroupName, accountName, nspConfigurationName);
31
+ console.log(result);
32
+ });
33
+ }
34
+ function main() {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ getNetworkSecurityPerimeterConfigurations();
37
+ });
38
+ }
39
+ main().catch(console.error);
40
+ //# sourceMappingURL=networkSecurityPerimeterConfigurationsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"networkSecurityPerimeterConfigurationsGetSample.js","sourceRoot":"","sources":["../../samples-dev/networkSecurityPerimeterConfigurationsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,yCAAyC;;QACtD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,mBAAmB,CAAC;QACzE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;QACpD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sCAAsC,CAAC,GAAG,CACpE,iBAAiB,EACjB,WAAW,EACX,oBAAoB,CACrB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,yCAAyC,EAAE,CAAC;IAC9C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=networkSecurityPerimeterConfigurationsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"networkSecurityPerimeterConfigurationsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/networkSecurityPerimeterConfigurationsListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,55 @@
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 { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { CognitiveServicesManagementClient } from "@azure/arm-cognitiveservices";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Gets a list of NSP configurations for an account.
17
+ *
18
+ * @summary Gets a list of NSP configurations for an account.
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ListNetworkSecurityPerimeterConfigurations.json
20
+ */
21
+ function listNetworkSecurityPerimeterConfigurations() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ var _a, e_1, _b, _c;
24
+ const subscriptionId = process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] ||
25
+ "00000000-0000-0000-0000-000000000000";
26
+ const resourceGroupName = process.env["COGNITIVESERVICES_RESOURCE_GROUP"] || "resourceGroupName";
27
+ const accountName = "accountName";
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new CognitiveServicesManagementClient(credential, subscriptionId);
30
+ const resArray = new Array();
31
+ try {
32
+ for (var _d = true, _e = __asyncValues(client.networkSecurityPerimeterConfigurations.list(resourceGroupName, accountName)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
33
+ _c = _f.value;
34
+ _d = false;
35
+ let item = _c;
36
+ resArray.push(item);
37
+ }
38
+ }
39
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
40
+ finally {
41
+ try {
42
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
43
+ }
44
+ finally { if (e_1) throw e_1.error; }
45
+ }
46
+ console.log(resArray);
47
+ });
48
+ }
49
+ function main() {
50
+ return __awaiter(this, void 0, void 0, function* () {
51
+ listNetworkSecurityPerimeterConfigurations();
52
+ });
53
+ }
54
+ main().catch(console.error);
55
+ //# sourceMappingURL=networkSecurityPerimeterConfigurationsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"networkSecurityPerimeterConfigurationsListSample.js","sourceRoot":"","sources":["../../samples-dev/networkSecurityPerimeterConfigurationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,0CAA0C;;;QACvD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,mBAAmB,CAAC;QACzE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,sCAAsC,CAAC,IAAI,CACvE,iBAAiB,EACjB,WAAW,CACZ,CAAA,IAAA,sDAAE,CAAC;gBAHmB,cAGtB;gBAHsB,WAGtB;gBAHU,IAAI,IAAI,KAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,0CAA0C,EAAE,CAAC;IAC/C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=networkSecurityPerimeterConfigurationsReconcileSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"networkSecurityPerimeterConfigurationsReconcileSample.d.ts","sourceRoot":"","sources":["../../samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,40 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { CognitiveServicesManagementClient } from "@azure/arm-cognitiveservices";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Reconcile the NSP configuration for an account.
17
+ *
18
+ * @summary Reconcile the NSP configuration for an account.
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ReconcileNetworkSecurityPerimeterConfigurations.json
20
+ */
21
+ function reconcileNetworkSecurityPerimeterConfigurations() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] ||
24
+ "00000000-0000-0000-0000-000000000000";
25
+ const resourceGroupName = process.env["COGNITIVESERVICES_RESOURCE_GROUP"] || "resourceGroupName";
26
+ const accountName = "accountName";
27
+ const nspConfigurationName = "NSPConfigurationName";
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new CognitiveServicesManagementClient(credential, subscriptionId);
30
+ const result = yield client.networkSecurityPerimeterConfigurations.beginReconcileAndWait(resourceGroupName, accountName, nspConfigurationName);
31
+ console.log(result);
32
+ });
33
+ }
34
+ function main() {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ reconcileNetworkSecurityPerimeterConfigurations();
37
+ });
38
+ }
39
+ main().catch(console.error);
40
+ //# sourceMappingURL=networkSecurityPerimeterConfigurationsReconcileSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"networkSecurityPerimeterConfigurationsReconcileSample.js","sourceRoot":"","sources":["../../samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,+CAA+C;;QAC5D,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,mBAAmB,CAAC;QACzE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;QACpD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GACV,MAAM,MAAM,CAAC,sCAAsC,CAAC,qBAAqB,CACvE,iBAAiB,EACjB,WAAW,EACX,oBAAoB,CACrB,CAAC;QACJ,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,+CAA+C,EAAE,CAAC;IACpD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -16,27 +16,22 @@ dotenv.config();
16
16
  * This sample demonstrates how to Lists all the available Cognitive Services account operations.
17
17
  *
18
18
  * @summary Lists all the available Cognitive Services account operations.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/GetOperations.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/GetOperations.json
20
20
  */
21
21
  function getOperations() {
22
- var _a, e_1, _b, _c;
23
22
  return __awaiter(this, void 0, void 0, function* () {
23
+ var _a, e_1, _b, _c;
24
24
  const subscriptionId = process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] ||
25
25
  "00000000-0000-0000-0000-000000000000";
26
26
  const credential = new DefaultAzureCredential();
27
27
  const client = new CognitiveServicesManagementClient(credential, subscriptionId);
28
28
  const resArray = new Array();
29
29
  try {
30
- for (var _d = true, _e = __asyncValues(client.operations.list()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
30
+ for (var _d = true, _e = __asyncValues(client.operations.list()), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
31
31
  _c = _f.value;
32
32
  _d = false;
33
- try {
34
- let item = _c;
35
- resArray.push(item);
36
- }
37
- finally {
38
- _d = true;
39
- }
33
+ let item = _c;
34
+ resArray.push(item);
40
35
  }
41
36
  }
42
37
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -1 +1 @@
1
- {"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,aAAa;;;QAC1B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;gBAAxB,cAAwB;gBAAxB,WAAwB;;oBAApC,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,aAAa,EAAE,CAAC;IAClB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,aAAa;;;QAC1B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA,sDAAE,CAAC;gBAA3B,cAAwB;gBAAxB,WAAwB;gBAApC,IAAI,IAAI,KAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,aAAa,EAAE,CAAC;IAClB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -8,7 +8,7 @@
8
8
  import { __awaiter } from "tslib";
9
9
  // Copyright (c) Microsoft Corporation.
10
10
  // Licensed under the MIT License.
11
- import { CognitiveServicesManagementClient } from "@azure/arm-cognitiveservices";
11
+ import { CognitiveServicesManagementClient, } from "@azure/arm-cognitiveservices";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
13
  import * as dotenv from "dotenv";
14
14
  dotenv.config();
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Update the state of specified private endpoint connection associated with the Cognitive Services account.
17
17
  *
18
18
  * @summary Update the state of specified private endpoint connection associated with the Cognitive Services account.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/PutPrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/PutPrivateEndpointConnection.json
20
20
  */
21
21
  function putPrivateEndpointConnection() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -28,9 +28,9 @@ function putPrivateEndpointConnection() {
28
28
  properties: {
29
29
  privateLinkServiceConnectionState: {
30
30
  description: "Auto-Approved",
31
- status: "Approved"
32
- }
33
- }
31
+ status: "Approved",
32
+ },
33
+ },
34
34
  };
35
35
  const credential = new DefaultAzureCredential();
36
36
  const client = new CognitiveServicesManagementClient(credential, subscriptionId);
@@ -1 +1 @@
1
- {"version":3,"file":"privateEndpointConnectionsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,iCAAiC,EAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,4BAA4B;;QACzC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,IAAI,mBAAmB,CAAC;QAC1E,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,SAAS,CAAC;QAC/D,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,6BAA6B,GAAG,iCAAiC,CAAC;QACxE,MAAM,UAAU,GAA8B;YAC5C,UAAU,EAAE;gBACV,iCAAiC,EAAE;oBACjC,WAAW,EAAE,eAAe;oBAC5B,MAAM,EAAE,UAAU;iBACnB;aACF;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,0BAA0B,CAC/E,iBAAiB,EACjB,WAAW,EACX,6BAA6B,EAC7B,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,4BAA4B,EAAE,CAAC;IACjC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"privateEndpointConnectionsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,iCAAiC,GAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,4BAA4B;;QACzC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,IAAI,mBAAmB,CAAC;QAC1E,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,SAAS,CAAC;QAC/D,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,6BAA6B,GAAG,iCAAiC,CAAC;QACxE,MAAM,UAAU,GAA8B;YAC5C,UAAU,EAAE;gBACV,iCAAiC,EAAE;oBACjC,WAAW,EAAE,eAAe;oBAC5B,MAAM,EAAE,UAAU;iBACnB;aACF;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GACV,MAAM,MAAM,CAAC,0BAA0B,CAAC,0BAA0B,CAChE,iBAAiB,EACjB,WAAW,EACX,6BAA6B,EAC7B,UAAU,CACX,CAAC;QACJ,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,4BAA4B,EAAE,CAAC;IACjC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Deletes the specified private endpoint connection associated with the Cognitive Services account.
17
17
  *
18
18
  * @summary Deletes the specified private endpoint connection associated with the Cognitive Services account.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/DeletePrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/DeletePrivateEndpointConnection.json
20
20
  */
21
21
  function deletePrivateEndpointConnection() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the specified private endpoint connection associated with the Cognitive Services account.
17
17
  *
18
18
  * @summary Gets the specified private endpoint connection associated with the Cognitive Services account.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/GetPrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/GetPrivateEndpointConnection.json
20
20
  */
21
21
  function getPrivateEndpointConnection() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the private endpoint connections associated with the Cognitive Services account.
17
17
  *
18
18
  * @summary Gets the private endpoint connections associated with the Cognitive Services account.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ListPrivateEndpointConnections.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ListPrivateEndpointConnections.json
20
20
  */
21
21
  function getPrivateEndpointConnection() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the private link resources that need to be created for a Cognitive Services account.
17
17
  *
18
18
  * @summary Gets the private link resources that need to be created for a Cognitive Services account.
19
- * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2023-05-01/examples/ListPrivateLinkResources.json
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ListPrivateLinkResources.json
20
20
  */
21
21
  function listPrivateLinkResources() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=raiBlocklistItemsBatchAddSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiBlocklistItemsBatchAddSample.d.ts","sourceRoot":"","sources":["../../samples-dev/raiBlocklistItemsBatchAddSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,50 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { CognitiveServicesManagementClient, } from "@azure/arm-cognitiveservices";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Batch operation to add blocklist items.
17
+ *
18
+ * @summary Batch operation to add blocklist items.
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/AddRaiBlocklistItems.json
20
+ */
21
+ function addRaiBlocklistItems() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] ||
24
+ "00000000-0000-0000-0000-000000000000";
25
+ const resourceGroupName = process.env["COGNITIVESERVICES_RESOURCE_GROUP"] || "resourceGroupName";
26
+ const accountName = "accountName";
27
+ const raiBlocklistName = "myblocklist";
28
+ const raiBlocklistItems = [
29
+ {
30
+ name: "myblocklistitem1",
31
+ properties: { isRegex: true, pattern: "^[a-z0-9_-]{2,16}$" },
32
+ },
33
+ {
34
+ name: "myblocklistitem2",
35
+ properties: { isRegex: false, pattern: "blockwords" },
36
+ },
37
+ ];
38
+ const credential = new DefaultAzureCredential();
39
+ const client = new CognitiveServicesManagementClient(credential, subscriptionId);
40
+ const result = yield client.raiBlocklistItems.batchAdd(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItems);
41
+ console.log(result);
42
+ });
43
+ }
44
+ function main() {
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ addRaiBlocklistItems();
47
+ });
48
+ }
49
+ main().catch(console.error);
50
+ //# sourceMappingURL=raiBlocklistItemsBatchAddSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiBlocklistItemsBatchAddSample.js","sourceRoot":"","sources":["../../samples-dev/raiBlocklistItemsBatchAddSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,iCAAiC,GAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,oBAAoB;;QACjC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,mBAAmB,CAAC;QACzE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,gBAAgB,GAAG,aAAa,CAAC;QACvC,MAAM,iBAAiB,GAAkC;YACvD;gBACE,IAAI,EAAE,kBAAkB;gBACxB,UAAU,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,oBAAoB,EAAE;aAC7D;YACD;gBACE,IAAI,EAAE,kBAAkB;gBACxB,UAAU,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE;aACtD;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,QAAQ,CACpD,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,iBAAiB,CAClB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,oBAAoB,EAAE,CAAC;IACzB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=raiBlocklistItemsBatchDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiBlocklistItemsBatchDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/raiBlocklistItemsBatchDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,44 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { CognitiveServicesManagementClient, } from "@azure/arm-cognitiveservices";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Batch operation to delete blocklist items.
17
+ *
18
+ * @summary Batch operation to delete blocklist items.
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/DeleteRaiBlocklistItems.json
20
+ */
21
+ function deleteRaiBlocklistItems() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] ||
24
+ "00000000-0000-0000-0000-000000000000";
25
+ const resourceGroupName = process.env["COGNITIVESERVICES_RESOURCE_GROUP"] || "resourceGroupName";
26
+ const accountName = "accountName";
27
+ const raiBlocklistName = "raiBlocklistName";
28
+ const raiBlocklistItemsNames = [
29
+ "myblocklistitem1",
30
+ "myblocklistitem2",
31
+ ];
32
+ const credential = new DefaultAzureCredential();
33
+ const client = new CognitiveServicesManagementClient(credential, subscriptionId);
34
+ const result = yield client.raiBlocklistItems.batchDelete(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemsNames);
35
+ console.log(result);
36
+ });
37
+ }
38
+ function main() {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ deleteRaiBlocklistItems();
41
+ });
42
+ }
43
+ main().catch(console.error);
44
+ //# sourceMappingURL=raiBlocklistItemsBatchDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiBlocklistItemsBatchDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/raiBlocklistItemsBatchDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EACL,iCAAiC,GAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,uBAAuB;;QACpC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,mBAAmB,CAAC;QACzE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;QAC5C,MAAM,sBAAsB,GAAa;YACvC,kBAAkB;YAClB,kBAAkB;SACnB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,WAAW,CACvD,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,sBAAsB,CACvB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,uBAAuB,EAAE,CAAC;IAC5B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=raiBlocklistItemsCreateOrUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiBlocklistItemsCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/raiBlocklistItemsCreateOrUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,44 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { CognitiveServicesManagementClient, } from "@azure/arm-cognitiveservices";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Update the state of specified blocklist item associated with the Azure OpenAI account.
17
+ *
18
+ * @summary Update the state of specified blocklist item associated with the Azure OpenAI account.
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/PutRaiBlocklistItem.json
20
+ */
21
+ function putRaiBlocklistItem() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] ||
24
+ "00000000-0000-0000-0000-000000000000";
25
+ const resourceGroupName = process.env["COGNITIVESERVICES_RESOURCE_GROUP"] || "resourceGroupName";
26
+ const accountName = "accountName";
27
+ const raiBlocklistName = "raiBlocklistName";
28
+ const raiBlocklistItemName = "raiBlocklistItemName";
29
+ const raiBlocklistItem = {
30
+ properties: { isRegex: false, pattern: "Pattern To Block" },
31
+ };
32
+ const credential = new DefaultAzureCredential();
33
+ const client = new CognitiveServicesManagementClient(credential, subscriptionId);
34
+ const result = yield client.raiBlocklistItems.createOrUpdate(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, raiBlocklistItem);
35
+ console.log(result);
36
+ });
37
+ }
38
+ function main() {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ putRaiBlocklistItem();
41
+ });
42
+ }
43
+ main().catch(console.error);
44
+ //# sourceMappingURL=raiBlocklistItemsCreateOrUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiBlocklistItemsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/raiBlocklistItemsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,iCAAiC,GAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,mBAAmB,CAAC;QACzE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;QAC5C,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;QACpD,MAAM,gBAAgB,GAAqB;YACzC,UAAU,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE;SAC5D,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,cAAc,CAC1D,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,CACjB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,mBAAmB,EAAE,CAAC;IACxB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=raiBlocklistItemsDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiBlocklistItemsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/raiBlocklistItemsDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,41 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { CognitiveServicesManagementClient } from "@azure/arm-cognitiveservices";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Deletes the specified blocklist Item associated with the custom blocklist.
17
+ *
18
+ * @summary Deletes the specified blocklist Item associated with the custom blocklist.
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/DeleteRaiBlocklistItem.json
20
+ */
21
+ function deleteRaiBlocklistItem() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] ||
24
+ "00000000-0000-0000-0000-000000000000";
25
+ const resourceGroupName = process.env["COGNITIVESERVICES_RESOURCE_GROUP"] || "resourceGroupName";
26
+ const accountName = "accountName";
27
+ const raiBlocklistName = "raiBlocklistName";
28
+ const raiBlocklistItemName = "raiBlocklistItemName";
29
+ const credential = new DefaultAzureCredential();
30
+ const client = new CognitiveServicesManagementClient(credential, subscriptionId);
31
+ const result = yield client.raiBlocklistItems.beginDeleteAndWait(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName);
32
+ console.log(result);
33
+ });
34
+ }
35
+ function main() {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ deleteRaiBlocklistItem();
38
+ });
39
+ }
40
+ main().catch(console.error);
41
+ //# sourceMappingURL=raiBlocklistItemsDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiBlocklistItemsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/raiBlocklistItemsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,mBAAmB,CAAC;QACzE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;QAC5C,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;QACpD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,kBAAkB,CAC9D,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,oBAAoB,CACrB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,sBAAsB,EAAE,CAAC;IAC3B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=raiBlocklistItemsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiBlocklistItemsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/raiBlocklistItemsGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,41 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { CognitiveServicesManagementClient } from "@azure/arm-cognitiveservices";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Gets the specified custom blocklist Item associated with the custom blocklist.
17
+ *
18
+ * @summary Gets the specified custom blocklist Item associated with the custom blocklist.
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/GetRaiBlocklistItem.json
20
+ */
21
+ function getRaiBlocklistItem() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] ||
24
+ "00000000-0000-0000-0000-000000000000";
25
+ const resourceGroupName = process.env["COGNITIVESERVICES_RESOURCE_GROUP"] || "resourceGroupName";
26
+ const accountName = "accountName";
27
+ const raiBlocklistName = "raiBlocklistName";
28
+ const raiBlocklistItemName = "raiBlocklistItemName";
29
+ const credential = new DefaultAzureCredential();
30
+ const client = new CognitiveServicesManagementClient(credential, subscriptionId);
31
+ const result = yield client.raiBlocklistItems.get(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName);
32
+ console.log(result);
33
+ });
34
+ }
35
+ function main() {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ getRaiBlocklistItem();
38
+ });
39
+ }
40
+ main().catch(console.error);
41
+ //# sourceMappingURL=raiBlocklistItemsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiBlocklistItemsGetSample.js","sourceRoot":"","sources":["../../samples-dev/raiBlocklistItemsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,mBAAmB,CAAC;QACzE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;QAC5C,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;QACpD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAC/C,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,oBAAoB,CACrB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,mBAAmB,EAAE,CAAC;IACxB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=raiBlocklistItemsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiBlocklistItemsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/raiBlocklistItemsListSample.ts"],"names":[],"mappings":""}