@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,33 @@
|
|
|
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
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import {
|
|
11
|
+
ModelCapacityListResultValueItem,
|
|
12
|
+
LocationBasedModelCapacitiesListOptionalParams,
|
|
13
|
+
} from "../models";
|
|
14
|
+
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
|
+
/** Interface representing a LocationBasedModelCapacities. */
|
|
17
|
+
export interface LocationBasedModelCapacities {
|
|
18
|
+
/**
|
|
19
|
+
* List Location Based ModelCapacities.
|
|
20
|
+
* @param location Resource location.
|
|
21
|
+
* @param modelFormat The format of the Model
|
|
22
|
+
* @param modelName The name of the Model
|
|
23
|
+
* @param modelVersion The version of the Model
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
list(
|
|
27
|
+
location: string,
|
|
28
|
+
modelFormat: string,
|
|
29
|
+
modelName: string,
|
|
30
|
+
modelVersion: string,
|
|
31
|
+
options?: LocationBasedModelCapacitiesListOptionalParams,
|
|
32
|
+
): PagedAsyncIterableIterator<ModelCapacityListResultValueItem>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import {
|
|
11
|
+
ModelCapacityListResultValueItem,
|
|
12
|
+
ModelCapacitiesListOptionalParams,
|
|
13
|
+
} from "../models";
|
|
14
|
+
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
|
+
/** Interface representing a ModelCapacities. */
|
|
17
|
+
export interface ModelCapacities {
|
|
18
|
+
/**
|
|
19
|
+
* List ModelCapacities.
|
|
20
|
+
* @param modelFormat The format of the Model
|
|
21
|
+
* @param modelName The name of the Model
|
|
22
|
+
* @param modelVersion The version of the Model
|
|
23
|
+
* @param options The options parameters.
|
|
24
|
+
*/
|
|
25
|
+
list(
|
|
26
|
+
modelFormat: string,
|
|
27
|
+
modelName: string,
|
|
28
|
+
modelVersion: string,
|
|
29
|
+
options?: ModelCapacitiesListOptionalParams,
|
|
30
|
+
): PagedAsyncIterableIterator<ModelCapacityListResultValueItem>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
|
+
import {
|
|
12
|
+
NetworkSecurityPerimeterConfiguration,
|
|
13
|
+
NetworkSecurityPerimeterConfigurationsListOptionalParams,
|
|
14
|
+
NetworkSecurityPerimeterConfigurationsGetOptionalParams,
|
|
15
|
+
NetworkSecurityPerimeterConfigurationsGetResponse,
|
|
16
|
+
NetworkSecurityPerimeterConfigurationsReconcileOptionalParams,
|
|
17
|
+
NetworkSecurityPerimeterConfigurationsReconcileResponse,
|
|
18
|
+
} from "../models";
|
|
19
|
+
|
|
20
|
+
/// <reference lib="esnext.asynciterable" />
|
|
21
|
+
/** Interface representing a NetworkSecurityPerimeterConfigurations. */
|
|
22
|
+
export interface NetworkSecurityPerimeterConfigurations {
|
|
23
|
+
/**
|
|
24
|
+
* Gets a list of NSP configurations for an 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
|
+
list(
|
|
30
|
+
resourceGroupName: string,
|
|
31
|
+
accountName: string,
|
|
32
|
+
options?: NetworkSecurityPerimeterConfigurationsListOptionalParams,
|
|
33
|
+
): PagedAsyncIterableIterator<NetworkSecurityPerimeterConfiguration>;
|
|
34
|
+
/**
|
|
35
|
+
* Gets the specified NSP configurations for an account.
|
|
36
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
37
|
+
* @param accountName The name of Cognitive Services account.
|
|
38
|
+
* @param nspConfigurationName The name of the NSP Configuration.
|
|
39
|
+
* @param options The options parameters.
|
|
40
|
+
*/
|
|
41
|
+
get(
|
|
42
|
+
resourceGroupName: string,
|
|
43
|
+
accountName: string,
|
|
44
|
+
nspConfigurationName: string,
|
|
45
|
+
options?: NetworkSecurityPerimeterConfigurationsGetOptionalParams,
|
|
46
|
+
): Promise<NetworkSecurityPerimeterConfigurationsGetResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Reconcile the NSP configuration for an 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 nspConfigurationName The name of the NSP Configuration.
|
|
52
|
+
* @param options The options parameters.
|
|
53
|
+
*/
|
|
54
|
+
beginReconcile(
|
|
55
|
+
resourceGroupName: string,
|
|
56
|
+
accountName: string,
|
|
57
|
+
nspConfigurationName: string,
|
|
58
|
+
options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams,
|
|
59
|
+
): Promise<
|
|
60
|
+
SimplePollerLike<
|
|
61
|
+
OperationState<NetworkSecurityPerimeterConfigurationsReconcileResponse>,
|
|
62
|
+
NetworkSecurityPerimeterConfigurationsReconcileResponse
|
|
63
|
+
>
|
|
64
|
+
>;
|
|
65
|
+
/**
|
|
66
|
+
* Reconcile the NSP configuration for an account.
|
|
67
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
68
|
+
* @param accountName The name of Cognitive Services account.
|
|
69
|
+
* @param nspConfigurationName The name of the NSP Configuration.
|
|
70
|
+
* @param options The options parameters.
|
|
71
|
+
*/
|
|
72
|
+
beginReconcileAndWait(
|
|
73
|
+
resourceGroupName: string,
|
|
74
|
+
accountName: string,
|
|
75
|
+
nspConfigurationName: string,
|
|
76
|
+
options?: NetworkSecurityPerimeterConfigurationsReconcileOptionalParams,
|
|
77
|
+
): Promise<NetworkSecurityPerimeterConfigurationsReconcileResponse>;
|
|
78
|
+
}
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
PrivateEndpointConnection,
|
|
16
16
|
PrivateEndpointConnectionsCreateOrUpdateOptionalParams,
|
|
17
17
|
PrivateEndpointConnectionsCreateOrUpdateResponse,
|
|
18
|
-
PrivateEndpointConnectionsDeleteOptionalParams
|
|
18
|
+
PrivateEndpointConnectionsDeleteOptionalParams,
|
|
19
19
|
} from "../models";
|
|
20
20
|
|
|
21
21
|
/** Interface representing a PrivateEndpointConnections. */
|
|
@@ -29,7 +29,7 @@ export interface PrivateEndpointConnections {
|
|
|
29
29
|
list(
|
|
30
30
|
resourceGroupName: string,
|
|
31
31
|
accountName: string,
|
|
32
|
-
options?: PrivateEndpointConnectionsListOptionalParams
|
|
32
|
+
options?: PrivateEndpointConnectionsListOptionalParams,
|
|
33
33
|
): Promise<PrivateEndpointConnectionsListResponse>;
|
|
34
34
|
/**
|
|
35
35
|
* Gets the specified private endpoint connection associated with the Cognitive Services account.
|
|
@@ -43,7 +43,7 @@ export interface PrivateEndpointConnections {
|
|
|
43
43
|
resourceGroupName: string,
|
|
44
44
|
accountName: string,
|
|
45
45
|
privateEndpointConnectionName: string,
|
|
46
|
-
options?: PrivateEndpointConnectionsGetOptionalParams
|
|
46
|
+
options?: PrivateEndpointConnectionsGetOptionalParams,
|
|
47
47
|
): Promise<PrivateEndpointConnectionsGetResponse>;
|
|
48
48
|
/**
|
|
49
49
|
* Update the state of specified private endpoint connection associated with the Cognitive Services
|
|
@@ -60,7 +60,7 @@ export interface PrivateEndpointConnections {
|
|
|
60
60
|
accountName: string,
|
|
61
61
|
privateEndpointConnectionName: string,
|
|
62
62
|
properties: PrivateEndpointConnection,
|
|
63
|
-
options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams
|
|
63
|
+
options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams,
|
|
64
64
|
): Promise<
|
|
65
65
|
SimplePollerLike<
|
|
66
66
|
OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,
|
|
@@ -82,7 +82,7 @@ export interface PrivateEndpointConnections {
|
|
|
82
82
|
accountName: string,
|
|
83
83
|
privateEndpointConnectionName: string,
|
|
84
84
|
properties: PrivateEndpointConnection,
|
|
85
|
-
options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams
|
|
85
|
+
options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams,
|
|
86
86
|
): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse>;
|
|
87
87
|
/**
|
|
88
88
|
* Deletes the specified private endpoint connection associated with the Cognitive Services account.
|
|
@@ -96,7 +96,7 @@ export interface PrivateEndpointConnections {
|
|
|
96
96
|
resourceGroupName: string,
|
|
97
97
|
accountName: string,
|
|
98
98
|
privateEndpointConnectionName: string,
|
|
99
|
-
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
|
99
|
+
options?: PrivateEndpointConnectionsDeleteOptionalParams,
|
|
100
100
|
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
101
101
|
/**
|
|
102
102
|
* Deletes the specified private endpoint connection associated with the Cognitive Services account.
|
|
@@ -110,6 +110,6 @@ export interface PrivateEndpointConnections {
|
|
|
110
110
|
resourceGroupName: string,
|
|
111
111
|
accountName: string,
|
|
112
112
|
privateEndpointConnectionName: string,
|
|
113
|
-
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
|
113
|
+
options?: PrivateEndpointConnectionsDeleteOptionalParams,
|
|
114
114
|
): Promise<void>;
|
|
115
115
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import {
|
|
10
10
|
PrivateLinkResourcesListOptionalParams,
|
|
11
|
-
PrivateLinkResourcesListResponse
|
|
11
|
+
PrivateLinkResourcesListResponse,
|
|
12
12
|
} from "../models";
|
|
13
13
|
|
|
14
14
|
/** Interface representing a PrivateLinkResources. */
|
|
@@ -22,6 +22,6 @@ export interface PrivateLinkResources {
|
|
|
22
22
|
list(
|
|
23
23
|
resourceGroupName: string,
|
|
24
24
|
accountName: string,
|
|
25
|
-
options?: PrivateLinkResourcesListOptionalParams
|
|
25
|
+
options?: PrivateLinkResourcesListOptionalParams,
|
|
26
26
|
): Promise<PrivateLinkResourcesListResponse>;
|
|
27
27
|
}
|
|
@@ -0,0 +1,139 @@
|
|
|
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
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
|
+
import {
|
|
12
|
+
RaiBlocklistItem,
|
|
13
|
+
RaiBlocklistItemsListOptionalParams,
|
|
14
|
+
RaiBlocklistItemsGetOptionalParams,
|
|
15
|
+
RaiBlocklistItemsGetResponse,
|
|
16
|
+
RaiBlocklistItemsCreateOrUpdateOptionalParams,
|
|
17
|
+
RaiBlocklistItemsCreateOrUpdateResponse,
|
|
18
|
+
RaiBlocklistItemsDeleteOptionalParams,
|
|
19
|
+
RaiBlocklistItemsDeleteResponse,
|
|
20
|
+
RaiBlocklistItemBulkRequest,
|
|
21
|
+
RaiBlocklistItemsBatchAddOptionalParams,
|
|
22
|
+
RaiBlocklistItemsBatchAddResponse,
|
|
23
|
+
RaiBlocklistItemsBatchDeleteOptionalParams,
|
|
24
|
+
} from "../models";
|
|
25
|
+
|
|
26
|
+
/// <reference lib="esnext.asynciterable" />
|
|
27
|
+
/** Interface representing a RaiBlocklistItems. */
|
|
28
|
+
export interface RaiBlocklistItems {
|
|
29
|
+
/**
|
|
30
|
+
* Gets the blocklist items associated with the custom blocklist.
|
|
31
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
32
|
+
* @param accountName The name of Cognitive Services account.
|
|
33
|
+
* @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account
|
|
34
|
+
* @param options The options parameters.
|
|
35
|
+
*/
|
|
36
|
+
list(
|
|
37
|
+
resourceGroupName: string,
|
|
38
|
+
accountName: string,
|
|
39
|
+
raiBlocklistName: string,
|
|
40
|
+
options?: RaiBlocklistItemsListOptionalParams,
|
|
41
|
+
): PagedAsyncIterableIterator<RaiBlocklistItem>;
|
|
42
|
+
/**
|
|
43
|
+
* Gets the specified custom blocklist Item associated with the custom blocklist.
|
|
44
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
45
|
+
* @param accountName The name of Cognitive Services account.
|
|
46
|
+
* @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account
|
|
47
|
+
* @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist
|
|
48
|
+
* @param options The options parameters.
|
|
49
|
+
*/
|
|
50
|
+
get(
|
|
51
|
+
resourceGroupName: string,
|
|
52
|
+
accountName: string,
|
|
53
|
+
raiBlocklistName: string,
|
|
54
|
+
raiBlocklistItemName: string,
|
|
55
|
+
options?: RaiBlocklistItemsGetOptionalParams,
|
|
56
|
+
): Promise<RaiBlocklistItemsGetResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* Update the state of specified blocklist item associated with the Azure OpenAI account.
|
|
59
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
60
|
+
* @param accountName The name of Cognitive Services account.
|
|
61
|
+
* @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account
|
|
62
|
+
* @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist
|
|
63
|
+
* @param raiBlocklistItem Properties describing the custom blocklist.
|
|
64
|
+
* @param options The options parameters.
|
|
65
|
+
*/
|
|
66
|
+
createOrUpdate(
|
|
67
|
+
resourceGroupName: string,
|
|
68
|
+
accountName: string,
|
|
69
|
+
raiBlocklistName: string,
|
|
70
|
+
raiBlocklistItemName: string,
|
|
71
|
+
raiBlocklistItem: RaiBlocklistItem,
|
|
72
|
+
options?: RaiBlocklistItemsCreateOrUpdateOptionalParams,
|
|
73
|
+
): Promise<RaiBlocklistItemsCreateOrUpdateResponse>;
|
|
74
|
+
/**
|
|
75
|
+
* Deletes the specified blocklist Item associated with the custom blocklist.
|
|
76
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
77
|
+
* @param accountName The name of Cognitive Services account.
|
|
78
|
+
* @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account
|
|
79
|
+
* @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist
|
|
80
|
+
* @param options The options parameters.
|
|
81
|
+
*/
|
|
82
|
+
beginDelete(
|
|
83
|
+
resourceGroupName: string,
|
|
84
|
+
accountName: string,
|
|
85
|
+
raiBlocklistName: string,
|
|
86
|
+
raiBlocklistItemName: string,
|
|
87
|
+
options?: RaiBlocklistItemsDeleteOptionalParams,
|
|
88
|
+
): Promise<
|
|
89
|
+
SimplePollerLike<
|
|
90
|
+
OperationState<RaiBlocklistItemsDeleteResponse>,
|
|
91
|
+
RaiBlocklistItemsDeleteResponse
|
|
92
|
+
>
|
|
93
|
+
>;
|
|
94
|
+
/**
|
|
95
|
+
* Deletes the specified blocklist Item associated with the custom blocklist.
|
|
96
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
97
|
+
* @param accountName The name of Cognitive Services account.
|
|
98
|
+
* @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account
|
|
99
|
+
* @param raiBlocklistItemName The name of the RaiBlocklist Item associated with the custom blocklist
|
|
100
|
+
* @param options The options parameters.
|
|
101
|
+
*/
|
|
102
|
+
beginDeleteAndWait(
|
|
103
|
+
resourceGroupName: string,
|
|
104
|
+
accountName: string,
|
|
105
|
+
raiBlocklistName: string,
|
|
106
|
+
raiBlocklistItemName: string,
|
|
107
|
+
options?: RaiBlocklistItemsDeleteOptionalParams,
|
|
108
|
+
): Promise<RaiBlocklistItemsDeleteResponse>;
|
|
109
|
+
/**
|
|
110
|
+
* Batch operation to add blocklist items.
|
|
111
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
112
|
+
* @param accountName The name of Cognitive Services account.
|
|
113
|
+
* @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account
|
|
114
|
+
* @param raiBlocklistItems Properties describing the custom blocklist items.
|
|
115
|
+
* @param options The options parameters.
|
|
116
|
+
*/
|
|
117
|
+
batchAdd(
|
|
118
|
+
resourceGroupName: string,
|
|
119
|
+
accountName: string,
|
|
120
|
+
raiBlocklistName: string,
|
|
121
|
+
raiBlocklistItems: RaiBlocklistItemBulkRequest[],
|
|
122
|
+
options?: RaiBlocklistItemsBatchAddOptionalParams,
|
|
123
|
+
): Promise<RaiBlocklistItemsBatchAddResponse>;
|
|
124
|
+
/**
|
|
125
|
+
* Batch operation to delete blocklist items.
|
|
126
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
127
|
+
* @param accountName The name of Cognitive Services account.
|
|
128
|
+
* @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account
|
|
129
|
+
* @param raiBlocklistItemsNames List of RAI Blocklist Items Names.
|
|
130
|
+
* @param options The options parameters.
|
|
131
|
+
*/
|
|
132
|
+
batchDelete(
|
|
133
|
+
resourceGroupName: string,
|
|
134
|
+
accountName: string,
|
|
135
|
+
raiBlocklistName: string,
|
|
136
|
+
raiBlocklistItemsNames: string[],
|
|
137
|
+
options?: RaiBlocklistItemsBatchDeleteOptionalParams,
|
|
138
|
+
): Promise<void>;
|
|
139
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
|
+
import {
|
|
12
|
+
RaiBlocklist,
|
|
13
|
+
RaiBlocklistsListOptionalParams,
|
|
14
|
+
RaiBlocklistsGetOptionalParams,
|
|
15
|
+
RaiBlocklistsGetResponse,
|
|
16
|
+
RaiBlocklistsCreateOrUpdateOptionalParams,
|
|
17
|
+
RaiBlocklistsCreateOrUpdateResponse,
|
|
18
|
+
RaiBlocklistsDeleteOptionalParams,
|
|
19
|
+
RaiBlocklistsDeleteResponse,
|
|
20
|
+
} from "../models";
|
|
21
|
+
|
|
22
|
+
/// <reference lib="esnext.asynciterable" />
|
|
23
|
+
/** Interface representing a RaiBlocklists. */
|
|
24
|
+
export interface RaiBlocklists {
|
|
25
|
+
/**
|
|
26
|
+
* Gets the custom blocklists associated with the Azure OpenAI account.
|
|
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 options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
list(
|
|
32
|
+
resourceGroupName: string,
|
|
33
|
+
accountName: string,
|
|
34
|
+
options?: RaiBlocklistsListOptionalParams,
|
|
35
|
+
): PagedAsyncIterableIterator<RaiBlocklist>;
|
|
36
|
+
/**
|
|
37
|
+
* Gets the specified custom blocklist associated with the Azure OpenAI account.
|
|
38
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
39
|
+
* @param accountName The name of Cognitive Services account.
|
|
40
|
+
* @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account
|
|
41
|
+
* @param options The options parameters.
|
|
42
|
+
*/
|
|
43
|
+
get(
|
|
44
|
+
resourceGroupName: string,
|
|
45
|
+
accountName: string,
|
|
46
|
+
raiBlocklistName: string,
|
|
47
|
+
options?: RaiBlocklistsGetOptionalParams,
|
|
48
|
+
): Promise<RaiBlocklistsGetResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* Update the state of specified blocklist associated with the Azure OpenAI account.
|
|
51
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
52
|
+
* @param accountName The name of Cognitive Services account.
|
|
53
|
+
* @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account
|
|
54
|
+
* @param raiBlocklist Properties describing the custom blocklist.
|
|
55
|
+
* @param options The options parameters.
|
|
56
|
+
*/
|
|
57
|
+
createOrUpdate(
|
|
58
|
+
resourceGroupName: string,
|
|
59
|
+
accountName: string,
|
|
60
|
+
raiBlocklistName: string,
|
|
61
|
+
raiBlocklist: RaiBlocklist,
|
|
62
|
+
options?: RaiBlocklistsCreateOrUpdateOptionalParams,
|
|
63
|
+
): Promise<RaiBlocklistsCreateOrUpdateResponse>;
|
|
64
|
+
/**
|
|
65
|
+
* Deletes the specified custom blocklist associated with the Azure OpenAI account.
|
|
66
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
67
|
+
* @param accountName The name of Cognitive Services account.
|
|
68
|
+
* @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account
|
|
69
|
+
* @param options The options parameters.
|
|
70
|
+
*/
|
|
71
|
+
beginDelete(
|
|
72
|
+
resourceGroupName: string,
|
|
73
|
+
accountName: string,
|
|
74
|
+
raiBlocklistName: string,
|
|
75
|
+
options?: RaiBlocklistsDeleteOptionalParams,
|
|
76
|
+
): Promise<
|
|
77
|
+
SimplePollerLike<
|
|
78
|
+
OperationState<RaiBlocklistsDeleteResponse>,
|
|
79
|
+
RaiBlocklistsDeleteResponse
|
|
80
|
+
>
|
|
81
|
+
>;
|
|
82
|
+
/**
|
|
83
|
+
* Deletes the specified custom blocklist associated with the Azure OpenAI account.
|
|
84
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
85
|
+
* @param accountName The name of Cognitive Services account.
|
|
86
|
+
* @param raiBlocklistName The name of the RaiBlocklist associated with the Cognitive Services Account
|
|
87
|
+
* @param options The options parameters.
|
|
88
|
+
*/
|
|
89
|
+
beginDeleteAndWait(
|
|
90
|
+
resourceGroupName: string,
|
|
91
|
+
accountName: string,
|
|
92
|
+
raiBlocklistName: string,
|
|
93
|
+
options?: RaiBlocklistsDeleteOptionalParams,
|
|
94
|
+
): Promise<RaiBlocklistsDeleteResponse>;
|
|
95
|
+
}
|
|
@@ -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
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import {
|
|
11
|
+
RaiContentFilter,
|
|
12
|
+
RaiContentFiltersListOptionalParams,
|
|
13
|
+
RaiContentFiltersGetOptionalParams,
|
|
14
|
+
RaiContentFiltersGetResponse,
|
|
15
|
+
} from "../models";
|
|
16
|
+
|
|
17
|
+
/// <reference lib="esnext.asynciterable" />
|
|
18
|
+
/** Interface representing a RaiContentFilters. */
|
|
19
|
+
export interface RaiContentFilters {
|
|
20
|
+
/**
|
|
21
|
+
* List Content Filters types.
|
|
22
|
+
* @param location Resource location.
|
|
23
|
+
* @param options The options parameters.
|
|
24
|
+
*/
|
|
25
|
+
list(
|
|
26
|
+
location: string,
|
|
27
|
+
options?: RaiContentFiltersListOptionalParams,
|
|
28
|
+
): PagedAsyncIterableIterator<RaiContentFilter>;
|
|
29
|
+
/**
|
|
30
|
+
* Get Content Filters by Name.
|
|
31
|
+
* @param location Resource location.
|
|
32
|
+
* @param filterName The name of the RAI Content Filter.
|
|
33
|
+
* @param options The options parameters.
|
|
34
|
+
*/
|
|
35
|
+
get(
|
|
36
|
+
location: string,
|
|
37
|
+
filterName: string,
|
|
38
|
+
options?: RaiContentFiltersGetOptionalParams,
|
|
39
|
+
): Promise<RaiContentFiltersGetResponse>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
|
+
import {
|
|
12
|
+
RaiPolicy,
|
|
13
|
+
RaiPoliciesListOptionalParams,
|
|
14
|
+
RaiPoliciesGetOptionalParams,
|
|
15
|
+
RaiPoliciesGetResponse,
|
|
16
|
+
RaiPoliciesCreateOrUpdateOptionalParams,
|
|
17
|
+
RaiPoliciesCreateOrUpdateResponse,
|
|
18
|
+
RaiPoliciesDeleteOptionalParams,
|
|
19
|
+
RaiPoliciesDeleteResponse,
|
|
20
|
+
} from "../models";
|
|
21
|
+
|
|
22
|
+
/// <reference lib="esnext.asynciterable" />
|
|
23
|
+
/** Interface representing a RaiPolicies. */
|
|
24
|
+
export interface RaiPolicies {
|
|
25
|
+
/**
|
|
26
|
+
* Gets the content filters associated with the Azure OpenAI account.
|
|
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 options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
list(
|
|
32
|
+
resourceGroupName: string,
|
|
33
|
+
accountName: string,
|
|
34
|
+
options?: RaiPoliciesListOptionalParams,
|
|
35
|
+
): PagedAsyncIterableIterator<RaiPolicy>;
|
|
36
|
+
/**
|
|
37
|
+
* Gets the specified Content Filters associated with the Azure OpenAI account.
|
|
38
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
39
|
+
* @param accountName The name of Cognitive Services account.
|
|
40
|
+
* @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account
|
|
41
|
+
* @param options The options parameters.
|
|
42
|
+
*/
|
|
43
|
+
get(
|
|
44
|
+
resourceGroupName: string,
|
|
45
|
+
accountName: string,
|
|
46
|
+
raiPolicyName: string,
|
|
47
|
+
options?: RaiPoliciesGetOptionalParams,
|
|
48
|
+
): Promise<RaiPoliciesGetResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* Update the state of specified Content Filters associated with the Azure OpenAI account.
|
|
51
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
52
|
+
* @param accountName The name of Cognitive Services account.
|
|
53
|
+
* @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account
|
|
54
|
+
* @param raiPolicy Properties describing the Content Filters.
|
|
55
|
+
* @param options The options parameters.
|
|
56
|
+
*/
|
|
57
|
+
createOrUpdate(
|
|
58
|
+
resourceGroupName: string,
|
|
59
|
+
accountName: string,
|
|
60
|
+
raiPolicyName: string,
|
|
61
|
+
raiPolicy: RaiPolicy,
|
|
62
|
+
options?: RaiPoliciesCreateOrUpdateOptionalParams,
|
|
63
|
+
): Promise<RaiPoliciesCreateOrUpdateResponse>;
|
|
64
|
+
/**
|
|
65
|
+
* Deletes the specified Content Filters associated with the Azure OpenAI account.
|
|
66
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
67
|
+
* @param accountName The name of Cognitive Services account.
|
|
68
|
+
* @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account
|
|
69
|
+
* @param options The options parameters.
|
|
70
|
+
*/
|
|
71
|
+
beginDelete(
|
|
72
|
+
resourceGroupName: string,
|
|
73
|
+
accountName: string,
|
|
74
|
+
raiPolicyName: string,
|
|
75
|
+
options?: RaiPoliciesDeleteOptionalParams,
|
|
76
|
+
): Promise<
|
|
77
|
+
SimplePollerLike<
|
|
78
|
+
OperationState<RaiPoliciesDeleteResponse>,
|
|
79
|
+
RaiPoliciesDeleteResponse
|
|
80
|
+
>
|
|
81
|
+
>;
|
|
82
|
+
/**
|
|
83
|
+
* Deletes the specified Content Filters associated with the Azure OpenAI account.
|
|
84
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
85
|
+
* @param accountName The name of Cognitive Services account.
|
|
86
|
+
* @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account
|
|
87
|
+
* @param options The options parameters.
|
|
88
|
+
*/
|
|
89
|
+
beginDeleteAndWait(
|
|
90
|
+
resourceGroupName: string,
|
|
91
|
+
accountName: string,
|
|
92
|
+
raiPolicyName: string,
|
|
93
|
+
options?: RaiPoliciesDeleteOptionalParams,
|
|
94
|
+
): Promise<RaiPoliciesDeleteResponse>;
|
|
95
|
+
}
|
package/src/pagingHelper.ts
CHANGED
|
@@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined {
|
|
|
28
28
|
|
|
29
29
|
export function setContinuationToken(
|
|
30
30
|
page: unknown,
|
|
31
|
-
continuationToken: string | undefined
|
|
31
|
+
continuationToken: string | undefined,
|
|
32
32
|
): void {
|
|
33
33
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
34
34
|
return;
|