@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,56 @@
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 the blocklist items associated with the custom blocklist.
17
+ *
18
+ * @summary Gets the blocklist items associated with the custom blocklist.
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ListBlocklistItems.json
20
+ */
21
+ function listBlocklistItems() {
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 raiBlocklistName = "raiBlocklistName";
29
+ const credential = new DefaultAzureCredential();
30
+ const client = new CognitiveServicesManagementClient(credential, subscriptionId);
31
+ const resArray = new Array();
32
+ try {
33
+ for (var _d = true, _e = __asyncValues(client.raiBlocklistItems.list(resourceGroupName, accountName, raiBlocklistName)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
34
+ _c = _f.value;
35
+ _d = false;
36
+ let item = _c;
37
+ resArray.push(item);
38
+ }
39
+ }
40
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
41
+ finally {
42
+ try {
43
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
44
+ }
45
+ finally { if (e_1) throw e_1.error; }
46
+ }
47
+ console.log(resArray);
48
+ });
49
+ }
50
+ function main() {
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ listBlocklistItems();
53
+ });
54
+ }
55
+ main().catch(console.error);
56
+ //# sourceMappingURL=raiBlocklistItemsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiBlocklistItemsListSample.js","sourceRoot":"","sources":["../../samples-dev/raiBlocklistItemsListSample.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,kBAAkB;;;QAC/B,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,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,iBAAiB,CAAC,IAAI,CAClD,iBAAiB,EACjB,WAAW,EACX,gBAAgB,CACjB,CAAA,IAAA,sDAAE,CAAC;gBAJmB,cAItB;gBAJsB,WAItB;gBAJU,IAAI,IAAI,KAAA,CAAA;gBAKjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,kBAAkB,EAAE,CAAC;IACvB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=raiBlocklistsCreateOrUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiBlocklistsCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/raiBlocklistsCreateOrUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
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 associated with the Azure OpenAI account.
17
+ *
18
+ * @summary Update the state of specified blocklist associated with the Azure OpenAI account.
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/PutRaiBlocklist.json
20
+ */
21
+ function putRaiBlocklist() {
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 raiBlocklist = {
29
+ properties: { description: "Basic blocklist description" },
30
+ };
31
+ const credential = new DefaultAzureCredential();
32
+ const client = new CognitiveServicesManagementClient(credential, subscriptionId);
33
+ const result = yield client.raiBlocklists.createOrUpdate(resourceGroupName, accountName, raiBlocklistName, raiBlocklist);
34
+ console.log(result);
35
+ });
36
+ }
37
+ function main() {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ putRaiBlocklist();
40
+ });
41
+ }
42
+ main().catch(console.error);
43
+ //# sourceMappingURL=raiBlocklistsCreateOrUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiBlocklistsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/raiBlocklistsCreateOrUpdateSample.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,eAAe;;QAC5B,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,YAAY,GAAiB;YACjC,UAAU,EAAE,EAAE,WAAW,EAAE,6BAA6B,EAAE;SAC3D,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,aAAa,CAAC,cAAc,CACtD,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,YAAY,CACb,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,eAAe,EAAE,CAAC;IACpB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=raiBlocklistsDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiBlocklistsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/raiBlocklistsDeleteSample.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 Deletes the specified custom blocklist associated with the Azure OpenAI account.
17
+ *
18
+ * @summary Deletes the specified custom blocklist associated with the Azure OpenAI account.
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/DeleteRaiBlocklist.json
20
+ */
21
+ function deleteRaiBlocklist() {
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 credential = new DefaultAzureCredential();
29
+ const client = new CognitiveServicesManagementClient(credential, subscriptionId);
30
+ const result = yield client.raiBlocklists.beginDeleteAndWait(resourceGroupName, accountName, raiBlocklistName);
31
+ console.log(result);
32
+ });
33
+ }
34
+ function main() {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ deleteRaiBlocklist();
37
+ });
38
+ }
39
+ main().catch(console.error);
40
+ //# sourceMappingURL=raiBlocklistsDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiBlocklistsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/raiBlocklistsDeleteSample.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,kBAAkB;;QAC/B,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,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,aAAa,CAAC,kBAAkB,CAC1D,iBAAiB,EACjB,WAAW,EACX,gBAAgB,CACjB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,kBAAkB,EAAE,CAAC;IACvB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=raiBlocklistsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiBlocklistsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/raiBlocklistsGetSample.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 Gets the specified custom blocklist associated with the Azure OpenAI account.
17
+ *
18
+ * @summary Gets the specified custom blocklist associated with the Azure OpenAI account.
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/GetRaiBlocklist.json
20
+ */
21
+ function getRaiBlocklist() {
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 credential = new DefaultAzureCredential();
29
+ const client = new CognitiveServicesManagementClient(credential, subscriptionId);
30
+ const result = yield client.raiBlocklists.get(resourceGroupName, accountName, raiBlocklistName);
31
+ console.log(result);
32
+ });
33
+ }
34
+ function main() {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ getRaiBlocklist();
37
+ });
38
+ }
39
+ main().catch(console.error);
40
+ //# sourceMappingURL=raiBlocklistsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiBlocklistsGetSample.js","sourceRoot":"","sources":["../../samples-dev/raiBlocklistsGetSample.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,eAAe;;QAC5B,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,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,aAAa,CAAC,GAAG,CAC3C,iBAAiB,EACjB,WAAW,EACX,gBAAgB,CACjB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,eAAe,EAAE,CAAC;IACpB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=raiBlocklistsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiBlocklistsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/raiBlocklistsListSample.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 the custom blocklists associated with the Azure OpenAI account.
17
+ *
18
+ * @summary Gets the custom blocklists associated with the Azure OpenAI account.
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ListBlocklists.json
20
+ */
21
+ function listBlocklists() {
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.raiBlocklists.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
+ listBlocklists();
52
+ });
53
+ }
54
+ main().catch(console.error);
55
+ //# sourceMappingURL=raiBlocklistsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiBlocklistsListSample.js","sourceRoot":"","sources":["../../samples-dev/raiBlocklistsListSample.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,cAAc;;;QAC3B,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,aAAa,CAAC,IAAI,CAC9C,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,cAAc,EAAE,CAAC;IACnB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=raiContentFiltersGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiContentFiltersGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/raiContentFiltersGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,39 @@
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 Get Content Filters by Name.
17
+ *
18
+ * @summary Get Content Filters by Name.
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/GetRaiContentFilter.json
20
+ */
21
+ function getRaiContentFilters() {
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 location = "WestUS";
26
+ const filterName = "IndirectAttack";
27
+ const credential = new DefaultAzureCredential();
28
+ const client = new CognitiveServicesManagementClient(credential, subscriptionId);
29
+ const result = yield client.raiContentFilters.get(location, filterName);
30
+ console.log(result);
31
+ });
32
+ }
33
+ function main() {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ getRaiContentFilters();
36
+ });
37
+ }
38
+ main().catch(console.error);
39
+ //# sourceMappingURL=raiContentFiltersGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiContentFiltersGetSample.js","sourceRoot":"","sources":["../../samples-dev/raiContentFiltersGetSample.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,oBAAoB;;QACjC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,QAAQ,GAAG,QAAQ,CAAC;QAC1B,MAAM,UAAU,GAAG,gBAAgB,CAAC;QACpC,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,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QACxE,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=raiContentFiltersListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiContentFiltersListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/raiContentFiltersListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,54 @@
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 List Content Filters types.
17
+ *
18
+ * @summary List Content Filters types.
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ListRaiContentFilters.json
20
+ */
21
+ function listRaiContentFilters() {
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 location = "WestUS";
27
+ const credential = new DefaultAzureCredential();
28
+ const client = new CognitiveServicesManagementClient(credential, subscriptionId);
29
+ const resArray = new Array();
30
+ try {
31
+ for (var _d = true, _e = __asyncValues(client.raiContentFilters.list(location)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
32
+ _c = _f.value;
33
+ _d = false;
34
+ let item = _c;
35
+ resArray.push(item);
36
+ }
37
+ }
38
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
39
+ finally {
40
+ try {
41
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
42
+ }
43
+ finally { if (e_1) throw e_1.error; }
44
+ }
45
+ console.log(resArray);
46
+ });
47
+ }
48
+ function main() {
49
+ return __awaiter(this, void 0, void 0, function* () {
50
+ listRaiContentFilters();
51
+ });
52
+ }
53
+ main().catch(console.error);
54
+ //# sourceMappingURL=raiContentFiltersListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiContentFiltersListSample.js","sourceRoot":"","sources":["../../samples-dev/raiContentFiltersListSample.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,qBAAqB;;;QAClC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,QAAQ,GAAG,QAAQ,CAAC;QAC1B,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,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA,IAAA,sDAAE,CAAC;gBAA1C,cAAuC;gBAAvC,WAAuC;gBAAnD,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,qBAAqB,EAAE,CAAC;IAC1B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=raiPoliciesCreateOrUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiPoliciesCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/raiPoliciesCreateOrUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,118 @@
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 Content Filters associated with the Azure OpenAI account.
17
+ *
18
+ * @summary Update the state of specified Content Filters associated with the Azure OpenAI account.
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/PutRaiPolicy.json
20
+ */
21
+ function putRaiPolicy() {
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 raiPolicyName = "raiPolicyName";
28
+ const raiPolicy = {
29
+ properties: {
30
+ basePolicyName: "Microsoft.Default",
31
+ contentFilters: [
32
+ {
33
+ name: "Hate",
34
+ blocking: false,
35
+ enabled: false,
36
+ severityThreshold: "High",
37
+ source: "Prompt",
38
+ },
39
+ {
40
+ name: "Hate",
41
+ blocking: true,
42
+ enabled: true,
43
+ severityThreshold: "Medium",
44
+ source: "Completion",
45
+ },
46
+ {
47
+ name: "Sexual",
48
+ blocking: true,
49
+ enabled: true,
50
+ severityThreshold: "High",
51
+ source: "Prompt",
52
+ },
53
+ {
54
+ name: "Sexual",
55
+ blocking: true,
56
+ enabled: true,
57
+ severityThreshold: "Medium",
58
+ source: "Completion",
59
+ },
60
+ {
61
+ name: "Selfharm",
62
+ blocking: true,
63
+ enabled: true,
64
+ severityThreshold: "High",
65
+ source: "Prompt",
66
+ },
67
+ {
68
+ name: "Selfharm",
69
+ blocking: true,
70
+ enabled: true,
71
+ severityThreshold: "Medium",
72
+ source: "Completion",
73
+ },
74
+ {
75
+ name: "Violence",
76
+ blocking: true,
77
+ enabled: true,
78
+ severityThreshold: "Medium",
79
+ source: "Prompt",
80
+ },
81
+ {
82
+ name: "Violence",
83
+ blocking: true,
84
+ enabled: true,
85
+ severityThreshold: "Medium",
86
+ source: "Completion",
87
+ },
88
+ { name: "Jailbreak", blocking: true, enabled: true, source: "Prompt" },
89
+ {
90
+ name: "Protected Material Text",
91
+ blocking: true,
92
+ enabled: true,
93
+ source: "Completion",
94
+ },
95
+ {
96
+ name: "Protected Material Code",
97
+ blocking: true,
98
+ enabled: true,
99
+ source: "Completion",
100
+ },
101
+ { name: "Profanity", blocking: true, enabled: true, source: "Prompt" },
102
+ ],
103
+ mode: "Asynchronous_filter",
104
+ },
105
+ };
106
+ const credential = new DefaultAzureCredential();
107
+ const client = new CognitiveServicesManagementClient(credential, subscriptionId);
108
+ const result = yield client.raiPolicies.createOrUpdate(resourceGroupName, accountName, raiPolicyName, raiPolicy);
109
+ console.log(result);
110
+ });
111
+ }
112
+ function main() {
113
+ return __awaiter(this, void 0, void 0, function* () {
114
+ putRaiPolicy();
115
+ });
116
+ }
117
+ main().catch(console.error);
118
+ //# sourceMappingURL=raiPoliciesCreateOrUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiPoliciesCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/raiPoliciesCreateOrUpdateSample.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,YAAY;;QACzB,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,aAAa,GAAG,eAAe,CAAC;QACtC,MAAM,SAAS,GAAc;YAC3B,UAAU,EAAE;gBACV,cAAc,EAAE,mBAAmB;gBACnC,cAAc,EAAE;oBACd;wBACE,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,KAAK;wBACf,OAAO,EAAE,KAAK;wBACd,iBAAiB,EAAE,MAAM;wBACzB,MAAM,EAAE,QAAQ;qBACjB;oBACD;wBACE,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,IAAI;wBACd,OAAO,EAAE,IAAI;wBACb,iBAAiB,EAAE,QAAQ;wBAC3B,MAAM,EAAE,YAAY;qBACrB;oBACD;wBACE,IAAI,EAAE,QAAQ;wBACd,QAAQ,EAAE,IAAI;wBACd,OAAO,EAAE,IAAI;wBACb,iBAAiB,EAAE,MAAM;wBACzB,MAAM,EAAE,QAAQ;qBACjB;oBACD;wBACE,IAAI,EAAE,QAAQ;wBACd,QAAQ,EAAE,IAAI;wBACd,OAAO,EAAE,IAAI;wBACb,iBAAiB,EAAE,QAAQ;wBAC3B,MAAM,EAAE,YAAY;qBACrB;oBACD;wBACE,IAAI,EAAE,UAAU;wBAChB,QAAQ,EAAE,IAAI;wBACd,OAAO,EAAE,IAAI;wBACb,iBAAiB,EAAE,MAAM;wBACzB,MAAM,EAAE,QAAQ;qBACjB;oBACD;wBACE,IAAI,EAAE,UAAU;wBAChB,QAAQ,EAAE,IAAI;wBACd,OAAO,EAAE,IAAI;wBACb,iBAAiB,EAAE,QAAQ;wBAC3B,MAAM,EAAE,YAAY;qBACrB;oBACD;wBACE,IAAI,EAAE,UAAU;wBAChB,QAAQ,EAAE,IAAI;wBACd,OAAO,EAAE,IAAI;wBACb,iBAAiB,EAAE,QAAQ;wBAC3B,MAAM,EAAE,QAAQ;qBACjB;oBACD;wBACE,IAAI,EAAE,UAAU;wBAChB,QAAQ,EAAE,IAAI;wBACd,OAAO,EAAE,IAAI;wBACb,iBAAiB,EAAE,QAAQ;wBAC3B,MAAM,EAAE,YAAY;qBACrB;oBACD,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE;oBACtE;wBACE,IAAI,EAAE,yBAAyB;wBAC/B,QAAQ,EAAE,IAAI;wBACd,OAAO,EAAE,IAAI;wBACb,MAAM,EAAE,YAAY;qBACrB;oBACD;wBACE,IAAI,EAAE,yBAAyB;wBAC/B,QAAQ,EAAE,IAAI;wBACd,OAAO,EAAE,IAAI;wBACb,MAAM,EAAE,YAAY;qBACrB;oBACD,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE;iBACvE;gBACD,IAAI,EAAE,qBAAqB;aAC5B;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,WAAW,CAAC,cAAc,CACpD,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,SAAS,CACV,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,YAAY,EAAE,CAAC;IACjB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=raiPoliciesDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiPoliciesDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/raiPoliciesDeleteSample.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 Deletes the specified Content Filters associated with the Azure OpenAI account.
17
+ *
18
+ * @summary Deletes the specified Content Filters associated with the Azure OpenAI account.
19
+ * x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/DeleteRaiPolicy.json
20
+ */
21
+ function deleteRaiPolicy() {
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 raiPolicyName = "raiPolicyName";
28
+ const credential = new DefaultAzureCredential();
29
+ const client = new CognitiveServicesManagementClient(credential, subscriptionId);
30
+ const result = yield client.raiPolicies.beginDeleteAndWait(resourceGroupName, accountName, raiPolicyName);
31
+ console.log(result);
32
+ });
33
+ }
34
+ function main() {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ deleteRaiPolicy();
37
+ });
38
+ }
39
+ main().catch(console.error);
40
+ //# sourceMappingURL=raiPoliciesDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiPoliciesDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/raiPoliciesDeleteSample.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,eAAe;;QAC5B,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,aAAa,GAAG,eAAe,CAAC;QACtC,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,WAAW,CAAC,kBAAkB,CACxD,iBAAiB,EACjB,WAAW,EACX,aAAa,CACd,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,eAAe,EAAE,CAAC;IACpB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=raiPoliciesGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raiPoliciesGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/raiPoliciesGetSample.ts"],"names":[],"mappings":""}