@azure/arm-cognitiveservices 7.5.0-alpha.20241219.1 → 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.
- package/CHANGELOG.md +189 -1
- package/LICENSE +1 -1
- package/README.md +0 -1
- package/dist/index.js +8040 -3686
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/accountsCreateSample.js +10 -10
- package/dist-esm/samples-dev/accountsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/accountsGetSample.js +1 -1
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/accountsListKeysSample.js +1 -1
- package/dist-esm/samples-dev/accountsListModelsSample.js +1 -1
- package/dist-esm/samples-dev/accountsListSample.js +1 -1
- package/dist-esm/samples-dev/accountsListSkusSample.js +1 -1
- package/dist-esm/samples-dev/accountsListUsagesSample.js +1 -1
- package/dist-esm/samples-dev/accountsRegenerateKeySample.js +1 -1
- package/dist-esm/samples-dev/accountsUpdateSample.js +2 -2
- package/dist-esm/samples-dev/accountsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/calculateModelCapacitySample.d.ts +2 -0
- package/dist-esm/samples-dev/calculateModelCapacitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/calculateModelCapacitySample.js +54 -0
- package/dist-esm/samples-dev/calculateModelCapacitySample.js.map +1 -0
- package/dist-esm/samples-dev/checkDomainAvailabilitySample.js +5 -3
- package/dist-esm/samples-dev/checkDomainAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/checkSkuAvailabilitySample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateAssociationSample.js +3 -3
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateAssociationSample.js.map +1 -1
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdatePlanSample.js +4 -4
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdatePlanSample.js.map +1 -1
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateSample.js +4 -4
- package/dist-esm/samples-dev/commitmentPlansCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/commitmentPlansDeleteAssociationSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansDeletePlanSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansDeleteSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansGetAssociationSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansGetPlanSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansGetSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansListAssociationsSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansListPlansByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansListPlansBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansListSample.js +1 -1
- package/dist-esm/samples-dev/commitmentPlansUpdatePlanSample.js +2 -2
- package/dist-esm/samples-dev/commitmentPlansUpdatePlanSample.js.map +1 -1
- package/dist-esm/samples-dev/commitmentTiersListSample.js +1 -1
- package/dist-esm/samples-dev/defenderForAiSettingsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/defenderForAiSettingsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/defenderForAiSettingsCreateOrUpdateSample.js +41 -0
- package/dist-esm/samples-dev/defenderForAiSettingsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/defenderForAiSettingsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/defenderForAiSettingsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/defenderForAiSettingsGetSample.js +40 -0
- package/dist-esm/samples-dev/defenderForAiSettingsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/defenderForAiSettingsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/defenderForAiSettingsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/defenderForAiSettingsListSample.js +55 -0
- package/dist-esm/samples-dev/defenderForAiSettingsListSample.js.map +1 -0
- package/dist-esm/samples-dev/defenderForAiSettingsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/defenderForAiSettingsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/defenderForAiSettingsUpdateSample.js +41 -0
- package/dist-esm/samples-dev/defenderForAiSettingsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/deletedAccountsGetSample.js +1 -1
- package/dist-esm/samples-dev/deletedAccountsListSample.js +1 -1
- package/dist-esm/samples-dev/deletedAccountsPurgeSample.js +1 -1
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js +3 -3
- package/dist-esm/samples-dev/deploymentsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/deploymentsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/deploymentsGetSample.js +1 -1
- package/dist-esm/samples-dev/deploymentsListSample.js +1 -1
- package/dist-esm/samples-dev/deploymentsListSkusSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentsListSkusSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentsListSkusSample.js +56 -0
- package/dist-esm/samples-dev/deploymentsListSkusSample.js.map +1 -0
- package/dist-esm/samples-dev/deploymentsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/deploymentsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deploymentsUpdateSample.js +43 -0
- package/dist-esm/samples-dev/deploymentsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/encryptionScopesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/encryptionScopesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/encryptionScopesCreateOrUpdateSample.js +52 -0
- package/dist-esm/samples-dev/encryptionScopesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/encryptionScopesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/encryptionScopesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/encryptionScopesDeleteSample.js +40 -0
- package/dist-esm/samples-dev/encryptionScopesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/encryptionScopesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/encryptionScopesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/encryptionScopesGetSample.js +40 -0
- package/dist-esm/samples-dev/encryptionScopesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/encryptionScopesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/encryptionScopesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/encryptionScopesListSample.js +55 -0
- package/dist-esm/samples-dev/encryptionScopesListSample.js.map +1 -0
- package/dist-esm/samples-dev/locationBasedModelCapacitiesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/locationBasedModelCapacitiesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/locationBasedModelCapacitiesListSample.js +57 -0
- package/dist-esm/samples-dev/locationBasedModelCapacitiesListSample.js.map +1 -0
- package/dist-esm/samples-dev/modelCapacitiesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/modelCapacitiesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/modelCapacitiesListSample.js +56 -0
- package/dist-esm/samples-dev/modelCapacitiesListSample.js.map +1 -0
- package/dist-esm/samples-dev/modelsListSample.js +3 -3
- package/dist-esm/samples-dev/modelsListSample.js.map +1 -1
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.js +40 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListSample.js +55 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.d.ts +2 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.js +40 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +5 -5
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListSample.js +1 -1
- package/dist-esm/samples-dev/raiBlocklistItemsBatchAddSample.d.ts +2 -0
- package/dist-esm/samples-dev/raiBlocklistItemsBatchAddSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/raiBlocklistItemsBatchAddSample.js +50 -0
- package/dist-esm/samples-dev/raiBlocklistItemsBatchAddSample.js.map +1 -0
- package/dist-esm/samples-dev/raiBlocklistItemsBatchDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/raiBlocklistItemsBatchDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/raiBlocklistItemsBatchDeleteSample.js +44 -0
- package/dist-esm/samples-dev/raiBlocklistItemsBatchDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/raiBlocklistItemsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/raiBlocklistItemsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/raiBlocklistItemsCreateOrUpdateSample.js +44 -0
- package/dist-esm/samples-dev/raiBlocklistItemsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/raiBlocklistItemsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/raiBlocklistItemsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/raiBlocklistItemsDeleteSample.js +41 -0
- package/dist-esm/samples-dev/raiBlocklistItemsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/raiBlocklistItemsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/raiBlocklistItemsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/raiBlocklistItemsGetSample.js +41 -0
- package/dist-esm/samples-dev/raiBlocklistItemsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/raiBlocklistItemsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/raiBlocklistItemsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/raiBlocklistItemsListSample.js +56 -0
- package/dist-esm/samples-dev/raiBlocklistItemsListSample.js.map +1 -0
- package/dist-esm/samples-dev/raiBlocklistsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/raiBlocklistsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/raiBlocklistsCreateOrUpdateSample.js +43 -0
- package/dist-esm/samples-dev/raiBlocklistsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/raiBlocklistsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/raiBlocklistsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/raiBlocklistsDeleteSample.js +40 -0
- package/dist-esm/samples-dev/raiBlocklistsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/raiBlocklistsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/raiBlocklistsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/raiBlocklistsGetSample.js +40 -0
- package/dist-esm/samples-dev/raiBlocklistsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/raiBlocklistsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/raiBlocklistsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/raiBlocklistsListSample.js +55 -0
- package/dist-esm/samples-dev/raiBlocklistsListSample.js.map +1 -0
- package/dist-esm/samples-dev/raiContentFiltersGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/raiContentFiltersGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/raiContentFiltersGetSample.js +39 -0
- package/dist-esm/samples-dev/raiContentFiltersGetSample.js.map +1 -0
- package/dist-esm/samples-dev/raiContentFiltersListSample.d.ts +2 -0
- package/dist-esm/samples-dev/raiContentFiltersListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/raiContentFiltersListSample.js +54 -0
- package/dist-esm/samples-dev/raiContentFiltersListSample.js.map +1 -0
- package/dist-esm/samples-dev/raiPoliciesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/raiPoliciesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/raiPoliciesCreateOrUpdateSample.js +118 -0
- package/dist-esm/samples-dev/raiPoliciesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/raiPoliciesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/raiPoliciesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/raiPoliciesDeleteSample.js +40 -0
- package/dist-esm/samples-dev/raiPoliciesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/raiPoliciesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/raiPoliciesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/raiPoliciesGetSample.js +40 -0
- package/dist-esm/samples-dev/raiPoliciesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/raiPoliciesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/raiPoliciesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/raiPoliciesListSample.js +55 -0
- package/dist-esm/samples-dev/raiPoliciesListSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceSkusListSample.js +1 -1
- package/dist-esm/samples-dev/usagesListSample.js +1 -1
- package/dist-esm/src/cognitiveServicesManagementClient.d.ts +17 -3
- package/dist-esm/src/cognitiveServicesManagementClient.d.ts.map +1 -1
- package/dist-esm/src/cognitiveServicesManagementClient.js +64 -22
- package/dist-esm/src/cognitiveServicesManagementClient.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +917 -19
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +96 -2
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +54 -2
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +2369 -950
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +21 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +262 -65
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/accounts.d.ts.map +1 -1
- package/dist-esm/src/operations/accounts.js +91 -91
- package/dist-esm/src/operations/accounts.js.map +1 -1
- package/dist-esm/src/operations/commitmentPlans.d.ts.map +1 -1
- package/dist-esm/src/operations/commitmentPlans.js +129 -129
- package/dist-esm/src/operations/commitmentPlans.js.map +1 -1
- package/dist-esm/src/operations/commitmentTiers.js +11 -11
- package/dist-esm/src/operations/commitmentTiers.js.map +1 -1
- package/dist-esm/src/operations/defenderForAISettings.d.ts +64 -0
- package/dist-esm/src/operations/defenderForAISettings.d.ts.map +1 -0
- package/dist-esm/src/operations/defenderForAISettings.js +267 -0
- package/dist-esm/src/operations/defenderForAISettings.js.map +1 -0
- package/dist-esm/src/operations/deletedAccounts.d.ts.map +1 -1
- package/dist-esm/src/operations/deletedAccounts.js +24 -24
- package/dist-esm/src/operations/deletedAccounts.js.map +1 -1
- package/dist-esm/src/operations/deployments.d.ts +46 -1
- package/dist-esm/src/operations/deployments.d.ts.map +1 -1
- package/dist-esm/src/operations/deployments.js +266 -38
- package/dist-esm/src/operations/deployments.js.map +1 -1
- package/dist-esm/src/operations/encryptionScopes.d.ts +76 -0
- package/dist-esm/src/operations/encryptionScopes.d.ts.map +1 -0
- package/dist-esm/src/operations/encryptionScopes.js +320 -0
- package/dist-esm/src/operations/encryptionScopes.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +9 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +9 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/locationBasedModelCapacities.d.ts +41 -0
- package/dist-esm/src/operations/locationBasedModelCapacities.d.ts.map +1 -0
- package/dist-esm/src/operations/locationBasedModelCapacities.js +156 -0
- package/dist-esm/src/operations/locationBasedModelCapacities.js.map +1 -0
- package/dist-esm/src/operations/modelCapacities.d.ts +38 -0
- package/dist-esm/src/operations/modelCapacities.d.ts.map +1 -0
- package/dist-esm/src/operations/modelCapacities.js +148 -0
- package/dist-esm/src/operations/modelCapacities.js.map +1 -0
- package/dist-esm/src/operations/models.js +11 -11
- package/dist-esm/src/operations/models.js.map +1 -1
- package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.d.ts +63 -0
- package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.js +273 -0
- package/dist-esm/src/operations/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist-esm/src/operations/operations.js +9 -9
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +34 -34
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.js +5 -5
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/raiBlocklistItems.d.ts +97 -0
- package/dist-esm/src/operations/raiBlocklistItems.d.ts.map +1 -0
- package/dist-esm/src/operations/raiBlocklistItems.js +422 -0
- package/dist-esm/src/operations/raiBlocklistItems.js.map +1 -0
- package/dist-esm/src/operations/raiBlocklists.d.ts +72 -0
- package/dist-esm/src/operations/raiBlocklists.d.ts.map +1 -0
- package/dist-esm/src/operations/raiBlocklists.js +317 -0
- package/dist-esm/src/operations/raiBlocklists.js.map +1 -0
- package/dist-esm/src/operations/raiContentFilters.d.ts +42 -0
- package/dist-esm/src/operations/raiContentFilters.d.ts.map +1 -0
- package/dist-esm/src/operations/raiContentFilters.js +175 -0
- package/dist-esm/src/operations/raiContentFilters.js.map +1 -0
- package/dist-esm/src/operations/raiPolicies.d.ts +72 -0
- package/dist-esm/src/operations/raiPolicies.d.ts.map +1 -0
- package/dist-esm/src/operations/raiPolicies.js +311 -0
- package/dist-esm/src/operations/raiPolicies.js.map +1 -0
- package/dist-esm/src/operations/resourceSkus.js +10 -10
- package/dist-esm/src/operations/resourceSkus.js.map +1 -1
- package/dist-esm/src/operations/usages.js +11 -11
- package/dist-esm/src/operations/usages.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/defenderForAISettings.d.ts +39 -0
- package/dist-esm/src/operationsInterfaces/defenderForAISettings.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/defenderForAISettings.js +9 -0
- package/dist-esm/src/operationsInterfaces/defenderForAISettings.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/deployments.d.ts +27 -1
- package/dist-esm/src/operationsInterfaces/deployments.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/encryptionScopes.d.ts +51 -0
- package/dist-esm/src/operationsInterfaces/encryptionScopes.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/encryptionScopes.js +9 -0
- package/dist-esm/src/operationsInterfaces/encryptionScopes.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +9 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +9 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/locationBasedModelCapacities.d.ts +15 -0
- package/dist-esm/src/operationsInterfaces/locationBasedModelCapacities.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/locationBasedModelCapacities.js +9 -0
- package/dist-esm/src/operationsInterfaces/locationBasedModelCapacities.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/modelCapacities.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/modelCapacities.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/modelCapacities.js +9 -0
- package/dist-esm/src/operationsInterfaces/modelCapacities.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.js +9 -0
- package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterConfigurations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/raiBlocklistItems.d.ts +70 -0
- package/dist-esm/src/operationsInterfaces/raiBlocklistItems.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/raiBlocklistItems.js +9 -0
- package/dist-esm/src/operationsInterfaces/raiBlocklistItems.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/raiBlocklists.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/raiBlocklists.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/raiBlocklists.js +9 -0
- package/dist-esm/src/operationsInterfaces/raiBlocklists.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/raiContentFilters.d.ts +19 -0
- package/dist-esm/src/operationsInterfaces/raiContentFilters.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/raiContentFilters.js +9 -0
- package/dist-esm/src/operationsInterfaces/raiContentFilters.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/raiPolicies.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/raiPolicies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/raiPolicies.js +9 -0
- package/dist-esm/src/operationsInterfaces/raiPolicies.js.map +1 -0
- package/dist-esm/test/cognitiveservices_openai.spec.js +1 -1
- package/dist-esm/test/cognitiveservices_openai.spec.js.map +1 -1
- package/package.json +29 -28
- package/review/arm-cognitiveservices.api.md +893 -23
- package/src/cognitiveServicesManagementClient.ts +117 -39
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +1110 -51
- package/src/models/mappers.ts +2579 -1046
- package/src/models/parameters.ts +291 -67
- package/src/operations/accounts.ts +170 -184
- package/src/operations/commitmentPlans.ts +253 -273
- package/src/operations/commitmentTiers.ts +20 -21
- package/src/operations/defenderForAISettings.ts +345 -0
- package/src/operations/deletedAccounts.ts +46 -50
- package/src/operations/deployments.ts +399 -81
- package/src/operations/encryptionScopes.ts +429 -0
- package/src/operations/index.ts +9 -0
- package/src/operations/locationBasedModelCapacities.ts +219 -0
- package/src/operations/modelCapacities.ts +195 -0
- package/src/operations/models.ts +20 -21
- package/src/operations/networkSecurityPerimeterConfigurations.ts +372 -0
- package/src/operations/operations.ts +16 -16
- package/src/operations/privateEndpointConnections.ts +65 -70
- package/src/operations/privateLinkResources.ts +9 -10
- package/src/operations/raiBlocklistItems.ts +578 -0
- package/src/operations/raiBlocklists.ts +426 -0
- package/src/operations/raiContentFilters.ts +209 -0
- package/src/operations/raiPolicies.ts +420 -0
- package/src/operations/resourceSkus.ts +18 -19
- package/src/operations/usages.ts +20 -21
- package/src/operationsInterfaces/accounts.ts +15 -15
- package/src/operationsInterfaces/commitmentPlans.ts +21 -21
- package/src/operationsInterfaces/commitmentTiers.ts +1 -1
- package/src/operationsInterfaces/defenderForAISettings.ts +78 -0
- package/src/operationsInterfaces/deletedAccounts.ts +5 -5
- package/src/operationsInterfaces/deployments.ts +60 -7
- package/src/operationsInterfaces/encryptionScopes.ts +99 -0
- package/src/operationsInterfaces/index.ts +9 -0
- package/src/operationsInterfaces/locationBasedModelCapacities.ts +33 -0
- package/src/operationsInterfaces/modelCapacities.ts +31 -0
- package/src/operationsInterfaces/models.ts +1 -1
- package/src/operationsInterfaces/networkSecurityPerimeterConfigurations.ts +78 -0
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/privateEndpointConnections.ts +7 -7
- package/src/operationsInterfaces/privateLinkResources.ts +2 -2
- package/src/operationsInterfaces/raiBlocklistItems.ts +139 -0
- package/src/operationsInterfaces/raiBlocklists.ts +95 -0
- package/src/operationsInterfaces/raiContentFilters.ts +40 -0
- package/src/operationsInterfaces/raiPolicies.ts +95 -0
- package/src/operationsInterfaces/resourceSkus.ts +1 -1
- package/src/operationsInterfaces/usages.ts +1 -1
- package/src/pagingHelper.ts +1 -1
- package/tsconfig.json +2 -2
- package/types/arm-cognitiveservices.d.ts +1499 -91
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
12
|
+
import * as Parameters from "../models/parameters";
|
|
13
|
+
import { createHttpPoller, } from "@azure/core-lro";
|
|
14
|
+
import { createLroSpec } from "../lroImpl";
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
|
+
/** Class containing RaiBlocklistItems operations. */
|
|
17
|
+
export class RaiBlocklistItemsImpl {
|
|
18
|
+
/**
|
|
19
|
+
* Initialize a new instance of the class RaiBlocklistItems class.
|
|
20
|
+
* @param client Reference to the service client
|
|
21
|
+
*/
|
|
22
|
+
constructor(client) {
|
|
23
|
+
this.client = client;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Gets the blocklist items associated with the custom blocklist.
|
|
27
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
28
|
+
* @param accountName The name of Cognitive Services account.
|
|
29
|
+
* @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account
|
|
30
|
+
* @param options The options parameters.
|
|
31
|
+
*/
|
|
32
|
+
list(resourceGroupName, accountName, raiBlocklistName, options) {
|
|
33
|
+
const iter = this.listPagingAll(resourceGroupName, accountName, raiBlocklistName, options);
|
|
34
|
+
return {
|
|
35
|
+
next() {
|
|
36
|
+
return iter.next();
|
|
37
|
+
},
|
|
38
|
+
[Symbol.asyncIterator]() {
|
|
39
|
+
return this;
|
|
40
|
+
},
|
|
41
|
+
byPage: (settings) => {
|
|
42
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
43
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
|
+
}
|
|
45
|
+
return this.listPagingPage(resourceGroupName, accountName, raiBlocklistName, options, settings);
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
listPagingPage(resourceGroupName, accountName, raiBlocklistName, options, settings) {
|
|
50
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = yield __await(this._list(resourceGroupName, accountName, raiBlocklistName, options));
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
setContinuationToken(page, continuationToken);
|
|
58
|
+
yield yield __await(page);
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = yield __await(this._listNext(resourceGroupName, accountName, raiBlocklistName, continuationToken, options));
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
setContinuationToken(page, continuationToken);
|
|
65
|
+
yield yield __await(page);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
listPagingAll(resourceGroupName, accountName, raiBlocklistName, options) {
|
|
70
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
71
|
+
var _a, e_1, _b, _c;
|
|
72
|
+
try {
|
|
73
|
+
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, accountName, raiBlocklistName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
+
_c = _f.value;
|
|
75
|
+
_d = false;
|
|
76
|
+
const page = _c;
|
|
77
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
+
finally {
|
|
82
|
+
try {
|
|
83
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
84
|
+
}
|
|
85
|
+
finally { if (e_1) throw e_1.error; }
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Gets the blocklist items associated with the custom blocklist.
|
|
91
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
92
|
+
* @param accountName The name of Cognitive Services account.
|
|
93
|
+
* @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account
|
|
94
|
+
* @param options The options parameters.
|
|
95
|
+
*/
|
|
96
|
+
_list(resourceGroupName, accountName, raiBlocklistName, options) {
|
|
97
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, raiBlocklistName, options }, listOperationSpec);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Gets the specified custom blocklist Item associated with the custom blocklist.
|
|
101
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
102
|
+
* @param accountName The name of Cognitive Services account.
|
|
103
|
+
* @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account
|
|
104
|
+
* @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist
|
|
105
|
+
* @param options The options parameters.
|
|
106
|
+
*/
|
|
107
|
+
get(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, options) {
|
|
108
|
+
return this.client.sendOperationRequest({
|
|
109
|
+
resourceGroupName,
|
|
110
|
+
accountName,
|
|
111
|
+
raiBlocklistName,
|
|
112
|
+
raiBlocklistItemName,
|
|
113
|
+
options,
|
|
114
|
+
}, getOperationSpec);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Update the state of specified blocklist item associated with the Azure OpenAI account.
|
|
118
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
119
|
+
* @param accountName The name of Cognitive Services account.
|
|
120
|
+
* @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account
|
|
121
|
+
* @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist
|
|
122
|
+
* @param raiBlocklistItem Properties describing the custom blocklist.
|
|
123
|
+
* @param options The options parameters.
|
|
124
|
+
*/
|
|
125
|
+
createOrUpdate(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, raiBlocklistItem, options) {
|
|
126
|
+
return this.client.sendOperationRequest({
|
|
127
|
+
resourceGroupName,
|
|
128
|
+
accountName,
|
|
129
|
+
raiBlocklistName,
|
|
130
|
+
raiBlocklistItemName,
|
|
131
|
+
raiBlocklistItem,
|
|
132
|
+
options,
|
|
133
|
+
}, createOrUpdateOperationSpec);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Deletes the specified blocklist Item associated with the custom blocklist.
|
|
137
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
138
|
+
* @param accountName The name of Cognitive Services account.
|
|
139
|
+
* @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account
|
|
140
|
+
* @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist
|
|
141
|
+
* @param options The options parameters.
|
|
142
|
+
*/
|
|
143
|
+
beginDelete(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, options) {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
146
|
+
return this.client.sendOperationRequest(args, spec);
|
|
147
|
+
});
|
|
148
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
149
|
+
var _a;
|
|
150
|
+
let currentRawResponse = undefined;
|
|
151
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
152
|
+
const callback = (rawResponse, flatResponse) => {
|
|
153
|
+
currentRawResponse = rawResponse;
|
|
154
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
155
|
+
};
|
|
156
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
157
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
158
|
+
return {
|
|
159
|
+
flatResponse,
|
|
160
|
+
rawResponse: {
|
|
161
|
+
statusCode: currentRawResponse.status,
|
|
162
|
+
body: currentRawResponse.parsedBody,
|
|
163
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
164
|
+
},
|
|
165
|
+
};
|
|
166
|
+
});
|
|
167
|
+
const lro = createLroSpec({
|
|
168
|
+
sendOperationFn,
|
|
169
|
+
args: {
|
|
170
|
+
resourceGroupName,
|
|
171
|
+
accountName,
|
|
172
|
+
raiBlocklistName,
|
|
173
|
+
raiBlocklistItemName,
|
|
174
|
+
options,
|
|
175
|
+
},
|
|
176
|
+
spec: deleteOperationSpec,
|
|
177
|
+
});
|
|
178
|
+
const poller = yield createHttpPoller(lro, {
|
|
179
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
180
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
181
|
+
resourceLocationConfig: "location",
|
|
182
|
+
});
|
|
183
|
+
yield poller.poll();
|
|
184
|
+
return poller;
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Deletes the specified blocklist Item associated with the custom blocklist.
|
|
189
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
190
|
+
* @param accountName The name of Cognitive Services account.
|
|
191
|
+
* @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account
|
|
192
|
+
* @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist
|
|
193
|
+
* @param options The options parameters.
|
|
194
|
+
*/
|
|
195
|
+
beginDeleteAndWait(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, options) {
|
|
196
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
197
|
+
const poller = yield this.beginDelete(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemName, options);
|
|
198
|
+
return poller.pollUntilDone();
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Batch operation to add blocklist items.
|
|
203
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
204
|
+
* @param accountName The name of Cognitive Services account.
|
|
205
|
+
* @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account
|
|
206
|
+
* @param raiBlocklistItems Properties describing the custom blocklist items.
|
|
207
|
+
* @param options The options parameters.
|
|
208
|
+
*/
|
|
209
|
+
batchAdd(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItems, options) {
|
|
210
|
+
return this.client.sendOperationRequest({
|
|
211
|
+
resourceGroupName,
|
|
212
|
+
accountName,
|
|
213
|
+
raiBlocklistName,
|
|
214
|
+
raiBlocklistItems,
|
|
215
|
+
options,
|
|
216
|
+
}, batchAddOperationSpec);
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Batch operation to delete blocklist items.
|
|
220
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
221
|
+
* @param accountName The name of Cognitive Services account.
|
|
222
|
+
* @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account
|
|
223
|
+
* @param raiBlocklistItemsNames List of RAI Blocklist Items Names.
|
|
224
|
+
* @param options The options parameters.
|
|
225
|
+
*/
|
|
226
|
+
batchDelete(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemsNames, options) {
|
|
227
|
+
return this.client.sendOperationRequest({
|
|
228
|
+
resourceGroupName,
|
|
229
|
+
accountName,
|
|
230
|
+
raiBlocklistName,
|
|
231
|
+
raiBlocklistItemsNames,
|
|
232
|
+
options,
|
|
233
|
+
}, batchDeleteOperationSpec);
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* ListNext
|
|
237
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
238
|
+
* @param accountName The name of Cognitive Services account.
|
|
239
|
+
* @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account
|
|
240
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
241
|
+
* @param options The options parameters.
|
|
242
|
+
*/
|
|
243
|
+
_listNext(resourceGroupName, accountName, raiBlocklistName, nextLink, options) {
|
|
244
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, raiBlocklistName, nextLink, options }, listNextOperationSpec);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
// Operation Specifications
|
|
248
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
249
|
+
const listOperationSpec = {
|
|
250
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems",
|
|
251
|
+
httpMethod: "GET",
|
|
252
|
+
responses: {
|
|
253
|
+
200: {
|
|
254
|
+
bodyMapper: Mappers.RaiBlockListItemsResult,
|
|
255
|
+
},
|
|
256
|
+
default: {
|
|
257
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
queryParameters: [Parameters.apiVersion],
|
|
261
|
+
urlParameters: [
|
|
262
|
+
Parameters.$host,
|
|
263
|
+
Parameters.resourceGroupName,
|
|
264
|
+
Parameters.accountName,
|
|
265
|
+
Parameters.subscriptionId,
|
|
266
|
+
Parameters.raiBlocklistName,
|
|
267
|
+
],
|
|
268
|
+
headerParameters: [Parameters.accept],
|
|
269
|
+
serializer,
|
|
270
|
+
};
|
|
271
|
+
const getOperationSpec = {
|
|
272
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems/{raiBlocklistItemName}",
|
|
273
|
+
httpMethod: "GET",
|
|
274
|
+
responses: {
|
|
275
|
+
200: {
|
|
276
|
+
bodyMapper: Mappers.RaiBlocklistItem,
|
|
277
|
+
},
|
|
278
|
+
default: {
|
|
279
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
280
|
+
},
|
|
281
|
+
},
|
|
282
|
+
queryParameters: [Parameters.apiVersion],
|
|
283
|
+
urlParameters: [
|
|
284
|
+
Parameters.$host,
|
|
285
|
+
Parameters.resourceGroupName,
|
|
286
|
+
Parameters.accountName,
|
|
287
|
+
Parameters.subscriptionId,
|
|
288
|
+
Parameters.raiBlocklistName,
|
|
289
|
+
Parameters.raiBlocklistItemName,
|
|
290
|
+
],
|
|
291
|
+
headerParameters: [Parameters.accept],
|
|
292
|
+
serializer,
|
|
293
|
+
};
|
|
294
|
+
const createOrUpdateOperationSpec = {
|
|
295
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems/{raiBlocklistItemName}",
|
|
296
|
+
httpMethod: "PUT",
|
|
297
|
+
responses: {
|
|
298
|
+
200: {
|
|
299
|
+
bodyMapper: Mappers.RaiBlocklistItem,
|
|
300
|
+
},
|
|
301
|
+
201: {
|
|
302
|
+
bodyMapper: Mappers.RaiBlocklistItem,
|
|
303
|
+
},
|
|
304
|
+
default: {
|
|
305
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
306
|
+
},
|
|
307
|
+
},
|
|
308
|
+
requestBody: Parameters.raiBlocklistItem,
|
|
309
|
+
queryParameters: [Parameters.apiVersion],
|
|
310
|
+
urlParameters: [
|
|
311
|
+
Parameters.$host,
|
|
312
|
+
Parameters.resourceGroupName,
|
|
313
|
+
Parameters.accountName,
|
|
314
|
+
Parameters.subscriptionId,
|
|
315
|
+
Parameters.raiBlocklistName,
|
|
316
|
+
Parameters.raiBlocklistItemName,
|
|
317
|
+
],
|
|
318
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
319
|
+
mediaType: "json",
|
|
320
|
+
serializer,
|
|
321
|
+
};
|
|
322
|
+
const deleteOperationSpec = {
|
|
323
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/raiBlocklistItems/{raiBlocklistItemName}",
|
|
324
|
+
httpMethod: "DELETE",
|
|
325
|
+
responses: {
|
|
326
|
+
200: {
|
|
327
|
+
headersMapper: Mappers.RaiBlocklistItemsDeleteHeaders,
|
|
328
|
+
},
|
|
329
|
+
201: {
|
|
330
|
+
headersMapper: Mappers.RaiBlocklistItemsDeleteHeaders,
|
|
331
|
+
},
|
|
332
|
+
202: {
|
|
333
|
+
headersMapper: Mappers.RaiBlocklistItemsDeleteHeaders,
|
|
334
|
+
},
|
|
335
|
+
204: {
|
|
336
|
+
headersMapper: Mappers.RaiBlocklistItemsDeleteHeaders,
|
|
337
|
+
},
|
|
338
|
+
default: {
|
|
339
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
340
|
+
},
|
|
341
|
+
},
|
|
342
|
+
queryParameters: [Parameters.apiVersion],
|
|
343
|
+
urlParameters: [
|
|
344
|
+
Parameters.$host,
|
|
345
|
+
Parameters.resourceGroupName,
|
|
346
|
+
Parameters.accountName,
|
|
347
|
+
Parameters.subscriptionId,
|
|
348
|
+
Parameters.raiBlocklistName,
|
|
349
|
+
Parameters.raiBlocklistItemName,
|
|
350
|
+
],
|
|
351
|
+
headerParameters: [Parameters.accept],
|
|
352
|
+
serializer,
|
|
353
|
+
};
|
|
354
|
+
const batchAddOperationSpec = {
|
|
355
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/addRaiBlocklistItems",
|
|
356
|
+
httpMethod: "POST",
|
|
357
|
+
responses: {
|
|
358
|
+
200: {
|
|
359
|
+
bodyMapper: Mappers.RaiBlocklist,
|
|
360
|
+
},
|
|
361
|
+
default: {
|
|
362
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
363
|
+
},
|
|
364
|
+
},
|
|
365
|
+
requestBody: Parameters.raiBlocklistItems,
|
|
366
|
+
queryParameters: [Parameters.apiVersion],
|
|
367
|
+
urlParameters: [
|
|
368
|
+
Parameters.$host,
|
|
369
|
+
Parameters.resourceGroupName,
|
|
370
|
+
Parameters.accountName,
|
|
371
|
+
Parameters.subscriptionId,
|
|
372
|
+
Parameters.raiBlocklistName,
|
|
373
|
+
],
|
|
374
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
375
|
+
mediaType: "json",
|
|
376
|
+
serializer,
|
|
377
|
+
};
|
|
378
|
+
const batchDeleteOperationSpec = {
|
|
379
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/raiBlocklists/{raiBlocklistName}/deleteRaiBlocklistItems",
|
|
380
|
+
httpMethod: "POST",
|
|
381
|
+
responses: {
|
|
382
|
+
204: {},
|
|
383
|
+
default: {
|
|
384
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
385
|
+
},
|
|
386
|
+
},
|
|
387
|
+
requestBody: Parameters.raiBlocklistItemsNames,
|
|
388
|
+
queryParameters: [Parameters.apiVersion],
|
|
389
|
+
urlParameters: [
|
|
390
|
+
Parameters.$host,
|
|
391
|
+
Parameters.resourceGroupName,
|
|
392
|
+
Parameters.accountName,
|
|
393
|
+
Parameters.subscriptionId,
|
|
394
|
+
Parameters.raiBlocklistName,
|
|
395
|
+
],
|
|
396
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
397
|
+
mediaType: "json",
|
|
398
|
+
serializer,
|
|
399
|
+
};
|
|
400
|
+
const listNextOperationSpec = {
|
|
401
|
+
path: "{nextLink}",
|
|
402
|
+
httpMethod: "GET",
|
|
403
|
+
responses: {
|
|
404
|
+
200: {
|
|
405
|
+
bodyMapper: Mappers.RaiBlockListItemsResult,
|
|
406
|
+
},
|
|
407
|
+
default: {
|
|
408
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
409
|
+
},
|
|
410
|
+
},
|
|
411
|
+
urlParameters: [
|
|
412
|
+
Parameters.$host,
|
|
413
|
+
Parameters.resourceGroupName,
|
|
414
|
+
Parameters.accountName,
|
|
415
|
+
Parameters.subscriptionId,
|
|
416
|
+
Parameters.nextLink,
|
|
417
|
+
Parameters.raiBlocklistName,
|
|
418
|
+
],
|
|
419
|
+
headerParameters: [Parameters.accept],
|
|
420
|
+
serializer,
|
|
421
|
+
};
|
|
422
|
+
//# sourceMappingURL=raiBlocklistItems.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raiBlocklistItems.js","source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IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { RaiBlocklists } from "../operationsInterfaces";
|
|
3
|
+
import { CognitiveServicesManagementClient } from "../cognitiveServicesManagementClient";
|
|
4
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
5
|
+
import { RaiBlocklist, RaiBlocklistsListOptionalParams, RaiBlocklistsGetOptionalParams, RaiBlocklistsGetResponse, RaiBlocklistsCreateOrUpdateOptionalParams, RaiBlocklistsCreateOrUpdateResponse, RaiBlocklistsDeleteOptionalParams, RaiBlocklistsDeleteResponse } from "../models";
|
|
6
|
+
/** Class containing RaiBlocklists operations. */
|
|
7
|
+
export declare class RaiBlocklistsImpl implements RaiBlocklists {
|
|
8
|
+
private readonly client;
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of the class RaiBlocklists class.
|
|
11
|
+
* @param client Reference to the service client
|
|
12
|
+
*/
|
|
13
|
+
constructor(client: CognitiveServicesManagementClient);
|
|
14
|
+
/**
|
|
15
|
+
* Gets the custom blocklists associated with the Azure OpenAI account.
|
|
16
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
17
|
+
* @param accountName The name of Cognitive Services account.
|
|
18
|
+
* @param options The options parameters.
|
|
19
|
+
*/
|
|
20
|
+
list(resourceGroupName: string, accountName: string, options?: RaiBlocklistsListOptionalParams): PagedAsyncIterableIterator<RaiBlocklist>;
|
|
21
|
+
private listPagingPage;
|
|
22
|
+
private listPagingAll;
|
|
23
|
+
/**
|
|
24
|
+
* Gets the custom blocklists associated with the Azure OpenAI account.
|
|
25
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
26
|
+
* @param accountName The name of Cognitive Services account.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
private _list;
|
|
30
|
+
/**
|
|
31
|
+
* Gets the specified custom blocklist associated with the Azure OpenAI account.
|
|
32
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
33
|
+
* @param accountName The name of Cognitive Services account.
|
|
34
|
+
* @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account
|
|
35
|
+
* @param options The options parameters.
|
|
36
|
+
*/
|
|
37
|
+
get(resourceGroupName: string, accountName: string, raiBlocklistName: string, options?: RaiBlocklistsGetOptionalParams): Promise<RaiBlocklistsGetResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Update the state of specified blocklist associated with the Azure OpenAI account.
|
|
40
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
41
|
+
* @param accountName The name of Cognitive Services account.
|
|
42
|
+
* @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account
|
|
43
|
+
* @param raiBlocklist Properties describing the custom blocklist.
|
|
44
|
+
* @param options The options parameters.
|
|
45
|
+
*/
|
|
46
|
+
createOrUpdate(resourceGroupName: string, accountName: string, raiBlocklistName: string, raiBlocklist: RaiBlocklist, options?: RaiBlocklistsCreateOrUpdateOptionalParams): Promise<RaiBlocklistsCreateOrUpdateResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Deletes the specified custom blocklist associated with the Azure OpenAI account.
|
|
49
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
50
|
+
* @param accountName The name of Cognitive Services account.
|
|
51
|
+
* @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account
|
|
52
|
+
* @param options The options parameters.
|
|
53
|
+
*/
|
|
54
|
+
beginDelete(resourceGroupName: string, accountName: string, raiBlocklistName: string, options?: RaiBlocklistsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<RaiBlocklistsDeleteResponse>, RaiBlocklistsDeleteResponse>>;
|
|
55
|
+
/**
|
|
56
|
+
* Deletes the specified custom blocklist associated with the Azure OpenAI account.
|
|
57
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
58
|
+
* @param accountName The name of Cognitive Services account.
|
|
59
|
+
* @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account
|
|
60
|
+
* @param options The options parameters.
|
|
61
|
+
*/
|
|
62
|
+
beginDeleteAndWait(resourceGroupName: string, accountName: string, raiBlocklistName: string, options?: RaiBlocklistsDeleteOptionalParams): Promise<RaiBlocklistsDeleteResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* ListNext
|
|
65
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
66
|
+
* @param accountName The name of Cognitive Services account.
|
|
67
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
68
|
+
* @param options The options parameters.
|
|
69
|
+
*/
|
|
70
|
+
private _listNext;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=raiBlocklists.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raiBlocklists.d.ts","sourceRoot":"","sources":["../../../src/operations/raiBlocklists.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAIxD,OAAO,EAAE,iCAAiC,EAAE,MAAM,sCAAsC,CAAC;AACzF,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,YAAY,EAEZ,+BAA+B,EAE/B,8BAA8B,EAC9B,wBAAwB,EACxB,yCAAyC,EACzC,mCAAmC,EACnC,iCAAiC,EACjC,2BAA2B,EAE5B,MAAM,WAAW,CAAC;AAGnB,iDAAiD;AACjD,qBAAa,iBAAkB,YAAW,aAAa;IACrD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;;;OAKG;IACI,IAAI,CACT,iBAAiB,EAAE,MAAM,EACzB,W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