@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 @@
|
|
|
1
|
+
{"version":3,"file":"encryptionScopesListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/encryptionScopesListSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { CognitiveServicesManagementClient } from "@azure/arm-cognitiveservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Gets the content filters associated with the Azure OpenAI account.
|
|
17
|
+
*
|
|
18
|
+
* @summary Gets the content filters associated with the Azure OpenAI account.
|
|
19
|
+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ListEncryptionScopes.json
|
|
20
|
+
*/
|
|
21
|
+
function listEncryptionScopes() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
var _a, e_1, _b, _c;
|
|
24
|
+
const subscriptionId = process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] ||
|
|
25
|
+
"00000000-0000-0000-0000-000000000000";
|
|
26
|
+
const resourceGroupName = process.env["COGNITIVESERVICES_RESOURCE_GROUP"] || "resourceGroupName";
|
|
27
|
+
const accountName = "accountName";
|
|
28
|
+
const credential = new DefaultAzureCredential();
|
|
29
|
+
const client = new CognitiveServicesManagementClient(credential, subscriptionId);
|
|
30
|
+
const resArray = new Array();
|
|
31
|
+
try {
|
|
32
|
+
for (var _d = true, _e = __asyncValues(client.encryptionScopes.list(resourceGroupName, accountName)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
33
|
+
_c = _f.value;
|
|
34
|
+
_d = false;
|
|
35
|
+
let item = _c;
|
|
36
|
+
resArray.push(item);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
40
|
+
finally {
|
|
41
|
+
try {
|
|
42
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
43
|
+
}
|
|
44
|
+
finally { if (e_1) throw e_1.error; }
|
|
45
|
+
}
|
|
46
|
+
console.log(resArray);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function main() {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
listEncryptionScopes();
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
main().catch(console.error);
|
|
55
|
+
//# sourceMappingURL=encryptionScopesListSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encryptionScopesListSample.js","sourceRoot":"","sources":["../../samples-dev/encryptionScopesListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,oBAAoB;;;QACjC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,mBAAmB,CAAC;QACzE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,gBAAgB,CAAC,IAAI,CACjD,iBAAiB,EACjB,WAAW,CACZ,CAAA,IAAA,sDAAE,CAAC;gBAHmB,cAGtB;gBAHsB,WAGtB;gBAHU,IAAI,IAAI,KAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,oBAAoB,EAAE,CAAC;IACzB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locationBasedModelCapacitiesListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/locationBasedModelCapacitiesListSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { CognitiveServicesManagementClient } from "@azure/arm-cognitiveservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to List Location Based ModelCapacities.
|
|
17
|
+
*
|
|
18
|
+
* @summary List Location Based ModelCapacities.
|
|
19
|
+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ListLocationBasedModelCapacities.json
|
|
20
|
+
*/
|
|
21
|
+
function listLocationBasedModelCapacities() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
var _a, e_1, _b, _c;
|
|
24
|
+
const subscriptionId = process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] ||
|
|
25
|
+
"00000000-0000-0000-0000-000000000000";
|
|
26
|
+
const location = "WestUS";
|
|
27
|
+
const modelFormat = "OpenAI";
|
|
28
|
+
const modelName = "ada";
|
|
29
|
+
const modelVersion = "1";
|
|
30
|
+
const credential = new DefaultAzureCredential();
|
|
31
|
+
const client = new CognitiveServicesManagementClient(credential, subscriptionId);
|
|
32
|
+
const resArray = new Array();
|
|
33
|
+
try {
|
|
34
|
+
for (var _d = true, _e = __asyncValues(client.locationBasedModelCapacities.list(location, modelFormat, modelName, modelVersion)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
35
|
+
_c = _f.value;
|
|
36
|
+
_d = false;
|
|
37
|
+
let item = _c;
|
|
38
|
+
resArray.push(item);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
42
|
+
finally {
|
|
43
|
+
try {
|
|
44
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
45
|
+
}
|
|
46
|
+
finally { if (e_1) throw e_1.error; }
|
|
47
|
+
}
|
|
48
|
+
console.log(resArray);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function main() {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
listLocationBasedModelCapacities();
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
main().catch(console.error);
|
|
57
|
+
//# sourceMappingURL=locationBasedModelCapacitiesListSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locationBasedModelCapacitiesListSample.js","sourceRoot":"","sources":["../../samples-dev/locationBasedModelCapacitiesListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,gCAAgC;;;QAC7C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,QAAQ,GAAG,QAAQ,CAAC;QAC1B,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,SAAS,GAAG,KAAK,CAAC;QACxB,MAAM,YAAY,GAAG,GAAG,CAAC;QACzB,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,4BAA4B,CAAC,IAAI,CAC7D,QAAQ,EACR,WAAW,EACX,SAAS,EACT,YAAY,CACb,CAAA,IAAA,sDAAE,CAAC;gBALmB,cAKtB;gBALsB,WAKtB;gBALU,IAAI,IAAI,KAAA,CAAA;gBAMjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,gCAAgC,EAAE,CAAC;IACrC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modelCapacitiesListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/modelCapacitiesListSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { CognitiveServicesManagementClient } from "@azure/arm-cognitiveservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to List ModelCapacities.
|
|
17
|
+
*
|
|
18
|
+
* @summary List ModelCapacities.
|
|
19
|
+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ListModelCapacities.json
|
|
20
|
+
*/
|
|
21
|
+
function listModelCapacities() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
var _a, e_1, _b, _c;
|
|
24
|
+
const subscriptionId = process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] ||
|
|
25
|
+
"00000000-0000-0000-0000-000000000000";
|
|
26
|
+
const modelFormat = "OpenAI";
|
|
27
|
+
const modelName = "ada";
|
|
28
|
+
const modelVersion = "1";
|
|
29
|
+
const credential = new DefaultAzureCredential();
|
|
30
|
+
const client = new CognitiveServicesManagementClient(credential, subscriptionId);
|
|
31
|
+
const resArray = new Array();
|
|
32
|
+
try {
|
|
33
|
+
for (var _d = true, _e = __asyncValues(client.modelCapacities.list(modelFormat, modelName, modelVersion)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
34
|
+
_c = _f.value;
|
|
35
|
+
_d = false;
|
|
36
|
+
let item = _c;
|
|
37
|
+
resArray.push(item);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
41
|
+
finally {
|
|
42
|
+
try {
|
|
43
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
44
|
+
}
|
|
45
|
+
finally { if (e_1) throw e_1.error; }
|
|
46
|
+
}
|
|
47
|
+
console.log(resArray);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function main() {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
listModelCapacities();
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
main().catch(console.error);
|
|
56
|
+
//# sourceMappingURL=modelCapacitiesListSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modelCapacitiesListSample.js","sourceRoot":"","sources":["../../samples-dev/modelCapacitiesListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,mBAAmB;;;QAChC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,WAAW,GAAG,QAAQ,CAAC;QAC7B,MAAM,SAAS,GAAG,KAAK,CAAC;QACxB,MAAM,YAAY,GAAG,GAAG,CAAC;QACzB,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,IAAI,CAChD,WAAW,EACX,SAAS,EACT,YAAY,CACb,CAAA,IAAA,sDAAE,CAAC;gBAJmB,cAItB;gBAJsB,WAItB;gBAJU,IAAI,IAAI,KAAA,CAAA;gBAKjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,mBAAmB,EAAE,CAAC;IACxB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,9 +16,9 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to List Models.
|
|
17
17
|
*
|
|
18
18
|
* @summary List Models.
|
|
19
|
-
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/
|
|
19
|
+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ListLocationModels.json
|
|
20
20
|
*/
|
|
21
|
-
function
|
|
21
|
+
function listLocationModels() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
23
|
var _a, e_1, _b, _c;
|
|
24
24
|
const subscriptionId = process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] ||
|
|
@@ -47,7 +47,7 @@ function listModels() {
|
|
|
47
47
|
}
|
|
48
48
|
function main() {
|
|
49
49
|
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
-
|
|
50
|
+
listLocationModels();
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
main().catch(console.error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modelsListSample.js","sourceRoot":"","sources":["../../samples-dev/modelsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,
|
|
1
|
+
{"version":3,"file":"modelsListSample.js","sourceRoot":"","sources":["../../samples-dev/modelsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,kBAAkB;;;QAC/B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,QAAQ,GAAG,QAAQ,CAAC;QAC1B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA,IAAA,sDAAE,CAAC;gBAA/B,cAA4B;gBAA5B,WAA4B;gBAAxC,IAAI,IAAI,KAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,kBAAkB,EAAE,CAAC;IACvB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networkSecurityPerimeterConfigurationsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/networkSecurityPerimeterConfigurationsGetSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { CognitiveServicesManagementClient } from "@azure/arm-cognitiveservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Gets the specified NSP configurations for an account.
|
|
17
|
+
*
|
|
18
|
+
* @summary Gets the specified NSP configurations for an account.
|
|
19
|
+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/GetNetworkSecurityPerimeterConfigurations.json
|
|
20
|
+
*/
|
|
21
|
+
function getNetworkSecurityPerimeterConfigurations() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const subscriptionId = process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"00000000-0000-0000-0000-000000000000";
|
|
25
|
+
const resourceGroupName = process.env["COGNITIVESERVICES_RESOURCE_GROUP"] || "resourceGroupName";
|
|
26
|
+
const accountName = "accountName";
|
|
27
|
+
const nspConfigurationName = "NSPConfigurationName";
|
|
28
|
+
const credential = new DefaultAzureCredential();
|
|
29
|
+
const client = new CognitiveServicesManagementClient(credential, subscriptionId);
|
|
30
|
+
const result = yield client.networkSecurityPerimeterConfigurations.get(resourceGroupName, accountName, nspConfigurationName);
|
|
31
|
+
console.log(result);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function main() {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
getNetworkSecurityPerimeterConfigurations();
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
main().catch(console.error);
|
|
40
|
+
//# sourceMappingURL=networkSecurityPerimeterConfigurationsGetSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networkSecurityPerimeterConfigurationsGetSample.js","sourceRoot":"","sources":["../../samples-dev/networkSecurityPerimeterConfigurationsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,yCAAyC;;QACtD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,mBAAmB,CAAC;QACzE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;QACpD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sCAAsC,CAAC,GAAG,CACpE,iBAAiB,EACjB,WAAW,EACX,oBAAoB,CACrB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,yCAAyC,EAAE,CAAC;IAC9C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networkSecurityPerimeterConfigurationsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/networkSecurityPerimeterConfigurationsListSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { CognitiveServicesManagementClient } from "@azure/arm-cognitiveservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Gets a list of NSP configurations for an account.
|
|
17
|
+
*
|
|
18
|
+
* @summary Gets a list of NSP configurations for an account.
|
|
19
|
+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ListNetworkSecurityPerimeterConfigurations.json
|
|
20
|
+
*/
|
|
21
|
+
function listNetworkSecurityPerimeterConfigurations() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
var _a, e_1, _b, _c;
|
|
24
|
+
const subscriptionId = process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] ||
|
|
25
|
+
"00000000-0000-0000-0000-000000000000";
|
|
26
|
+
const resourceGroupName = process.env["COGNITIVESERVICES_RESOURCE_GROUP"] || "resourceGroupName";
|
|
27
|
+
const accountName = "accountName";
|
|
28
|
+
const credential = new DefaultAzureCredential();
|
|
29
|
+
const client = new CognitiveServicesManagementClient(credential, subscriptionId);
|
|
30
|
+
const resArray = new Array();
|
|
31
|
+
try {
|
|
32
|
+
for (var _d = true, _e = __asyncValues(client.networkSecurityPerimeterConfigurations.list(resourceGroupName, accountName)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
33
|
+
_c = _f.value;
|
|
34
|
+
_d = false;
|
|
35
|
+
let item = _c;
|
|
36
|
+
resArray.push(item);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
40
|
+
finally {
|
|
41
|
+
try {
|
|
42
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
43
|
+
}
|
|
44
|
+
finally { if (e_1) throw e_1.error; }
|
|
45
|
+
}
|
|
46
|
+
console.log(resArray);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function main() {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
listNetworkSecurityPerimeterConfigurations();
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
main().catch(console.error);
|
|
55
|
+
//# sourceMappingURL=networkSecurityPerimeterConfigurationsListSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networkSecurityPerimeterConfigurationsListSample.js","sourceRoot":"","sources":["../../samples-dev/networkSecurityPerimeterConfigurationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,0CAA0C;;;QACvD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,mBAAmB,CAAC;QACzE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,sCAAsC,CAAC,IAAI,CACvE,iBAAiB,EACjB,WAAW,CACZ,CAAA,IAAA,sDAAE,CAAC;gBAHmB,cAGtB;gBAHsB,WAGtB;gBAHU,IAAI,IAAI,KAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,0CAA0C,EAAE,CAAC;IAC/C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networkSecurityPerimeterConfigurationsReconcileSample.d.ts","sourceRoot":"","sources":["../../samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { CognitiveServicesManagementClient } from "@azure/arm-cognitiveservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Reconcile the NSP configuration for an account.
|
|
17
|
+
*
|
|
18
|
+
* @summary Reconcile the NSP configuration for an account.
|
|
19
|
+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ReconcileNetworkSecurityPerimeterConfigurations.json
|
|
20
|
+
*/
|
|
21
|
+
function reconcileNetworkSecurityPerimeterConfigurations() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const subscriptionId = process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"00000000-0000-0000-0000-000000000000";
|
|
25
|
+
const resourceGroupName = process.env["COGNITIVESERVICES_RESOURCE_GROUP"] || "resourceGroupName";
|
|
26
|
+
const accountName = "accountName";
|
|
27
|
+
const nspConfigurationName = "NSPConfigurationName";
|
|
28
|
+
const credential = new DefaultAzureCredential();
|
|
29
|
+
const client = new CognitiveServicesManagementClient(credential, subscriptionId);
|
|
30
|
+
const result = yield client.networkSecurityPerimeterConfigurations.beginReconcileAndWait(resourceGroupName, accountName, nspConfigurationName);
|
|
31
|
+
console.log(result);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function main() {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
reconcileNetworkSecurityPerimeterConfigurations();
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
main().catch(console.error);
|
|
40
|
+
//# sourceMappingURL=networkSecurityPerimeterConfigurationsReconcileSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networkSecurityPerimeterConfigurationsReconcileSample.js","sourceRoot":"","sources":["../../samples-dev/networkSecurityPerimeterConfigurationsReconcileSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,+CAA+C;;QAC5D,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,mBAAmB,CAAC;QACzE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;QACpD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GACV,MAAM,MAAM,CAAC,sCAAsC,CAAC,qBAAqB,CACvE,iBAAiB,EACjB,WAAW,EACX,oBAAoB,CACrB,CAAC;QACJ,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,+CAA+C,EAAE,CAAC;IACpD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Lists all the available Cognitive Services account operations.
|
|
17
17
|
*
|
|
18
18
|
* @summary Lists all the available Cognitive Services account operations.
|
|
19
|
-
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/
|
|
19
|
+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/GetOperations.json
|
|
20
20
|
*/
|
|
21
21
|
function getOperations() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { __awaiter } from "tslib";
|
|
9
9
|
// Copyright (c) Microsoft Corporation.
|
|
10
10
|
// Licensed under the MIT License.
|
|
11
|
-
import { CognitiveServicesManagementClient } from "@azure/arm-cognitiveservices";
|
|
11
|
+
import { CognitiveServicesManagementClient, } from "@azure/arm-cognitiveservices";
|
|
12
12
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
13
|
import * as dotenv from "dotenv";
|
|
14
14
|
dotenv.config();
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Update the state of specified private endpoint connection associated with the Cognitive Services account.
|
|
17
17
|
*
|
|
18
18
|
* @summary Update the state of specified private endpoint connection associated with the Cognitive Services account.
|
|
19
|
-
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/
|
|
19
|
+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/PutPrivateEndpointConnection.json
|
|
20
20
|
*/
|
|
21
21
|
function putPrivateEndpointConnection() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -28,9 +28,9 @@ function putPrivateEndpointConnection() {
|
|
|
28
28
|
properties: {
|
|
29
29
|
privateLinkServiceConnectionState: {
|
|
30
30
|
description: "Auto-Approved",
|
|
31
|
-
status: "Approved"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
31
|
+
status: "Approved",
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
34
|
};
|
|
35
35
|
const credential = new DefaultAzureCredential();
|
|
36
36
|
const client = new CognitiveServicesManagementClient(credential, subscriptionId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privateEndpointConnectionsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,iCAAiC,
|
|
1
|
+
{"version":3,"file":"privateEndpointConnectionsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,iCAAiC,GAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,4BAA4B;;QACzC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,IAAI,mBAAmB,CAAC;QAC1E,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,SAAS,CAAC;QAC/D,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,6BAA6B,GAAG,iCAAiC,CAAC;QACxE,MAAM,UAAU,GAA8B;YAC5C,UAAU,EAAE;gBACV,iCAAiC,EAAE;oBACjC,WAAW,EAAE,eAAe;oBAC5B,MAAM,EAAE,UAAU;iBACnB;aACF;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GACV,MAAM,MAAM,CAAC,0BAA0B,CAAC,0BAA0B,CAChE,iBAAiB,EACjB,WAAW,EACX,6BAA6B,EAC7B,UAAU,CACX,CAAC;QACJ,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,4BAA4B,EAAE,CAAC;IACjC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Deletes the specified private endpoint connection associated with the Cognitive Services account.
|
|
17
17
|
*
|
|
18
18
|
* @summary Deletes the specified private endpoint connection associated with the Cognitive Services account.
|
|
19
|
-
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/
|
|
19
|
+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/DeletePrivateEndpointConnection.json
|
|
20
20
|
*/
|
|
21
21
|
function deletePrivateEndpointConnection() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets the specified private endpoint connection associated with the Cognitive Services account.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets the specified private endpoint connection associated with the Cognitive Services account.
|
|
19
|
-
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/
|
|
19
|
+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/GetPrivateEndpointConnection.json
|
|
20
20
|
*/
|
|
21
21
|
function getPrivateEndpointConnection() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets the private endpoint connections associated with the Cognitive Services account.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets the private endpoint connections associated with the Cognitive Services account.
|
|
19
|
-
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/
|
|
19
|
+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ListPrivateEndpointConnections.json
|
|
20
20
|
*/
|
|
21
21
|
function getPrivateEndpointConnection() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Gets the private link resources that need to be created for a Cognitive Services account.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets the private link resources that need to be created for a Cognitive Services account.
|
|
19
|
-
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/
|
|
19
|
+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ListPrivateLinkResources.json
|
|
20
20
|
*/
|
|
21
21
|
function listPrivateLinkResources() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raiBlocklistItemsBatchAddSample.d.ts","sourceRoot":"","sources":["../../samples-dev/raiBlocklistItemsBatchAddSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { CognitiveServicesManagementClient, } from "@azure/arm-cognitiveservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Batch operation to add blocklist items.
|
|
17
|
+
*
|
|
18
|
+
* @summary Batch operation to add blocklist items.
|
|
19
|
+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/AddRaiBlocklistItems.json
|
|
20
|
+
*/
|
|
21
|
+
function addRaiBlocklistItems() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const subscriptionId = process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"00000000-0000-0000-0000-000000000000";
|
|
25
|
+
const resourceGroupName = process.env["COGNITIVESERVICES_RESOURCE_GROUP"] || "resourceGroupName";
|
|
26
|
+
const accountName = "accountName";
|
|
27
|
+
const raiBlocklistName = "myblocklist";
|
|
28
|
+
const raiBlocklistItems = [
|
|
29
|
+
{
|
|
30
|
+
name: "myblocklistitem1",
|
|
31
|
+
properties: { isRegex: true, pattern: "^[a-z0-9_-]{2,16}$" },
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "myblocklistitem2",
|
|
35
|
+
properties: { isRegex: false, pattern: "blockwords" },
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
const credential = new DefaultAzureCredential();
|
|
39
|
+
const client = new CognitiveServicesManagementClient(credential, subscriptionId);
|
|
40
|
+
const result = yield client.raiBlocklistItems.batchAdd(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItems);
|
|
41
|
+
console.log(result);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function main() {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
addRaiBlocklistItems();
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
main().catch(console.error);
|
|
50
|
+
//# sourceMappingURL=raiBlocklistItemsBatchAddSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raiBlocklistItemsBatchAddSample.js","sourceRoot":"","sources":["../../samples-dev/raiBlocklistItemsBatchAddSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,iCAAiC,GAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,oBAAoB;;QACjC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,mBAAmB,CAAC;QACzE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,gBAAgB,GAAG,aAAa,CAAC;QACvC,MAAM,iBAAiB,GAAkC;YACvD;gBACE,IAAI,EAAE,kBAAkB;gBACxB,UAAU,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,oBAAoB,EAAE;aAC7D;YACD;gBACE,IAAI,EAAE,kBAAkB;gBACxB,UAAU,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE;aACtD;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,QAAQ,CACpD,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,iBAAiB,CAClB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,oBAAoB,EAAE,CAAC;IACzB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raiBlocklistItemsBatchDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/raiBlocklistItemsBatchDeleteSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { CognitiveServicesManagementClient, } from "@azure/arm-cognitiveservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Batch operation to delete blocklist items.
|
|
17
|
+
*
|
|
18
|
+
* @summary Batch operation to delete blocklist items.
|
|
19
|
+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/DeleteRaiBlocklistItems.json
|
|
20
|
+
*/
|
|
21
|
+
function deleteRaiBlocklistItems() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const subscriptionId = process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"00000000-0000-0000-0000-000000000000";
|
|
25
|
+
const resourceGroupName = process.env["COGNITIVESERVICES_RESOURCE_GROUP"] || "resourceGroupName";
|
|
26
|
+
const accountName = "accountName";
|
|
27
|
+
const raiBlocklistName = "raiBlocklistName";
|
|
28
|
+
const raiBlocklistItemsNames = [
|
|
29
|
+
"myblocklistitem1",
|
|
30
|
+
"myblocklistitem2",
|
|
31
|
+
];
|
|
32
|
+
const credential = new DefaultAzureCredential();
|
|
33
|
+
const client = new CognitiveServicesManagementClient(credential, subscriptionId);
|
|
34
|
+
const result = yield client.raiBlocklistItems.batchDelete(resourceGroupName, accountName, raiBlocklistName, raiBlocklistItemsNames);
|
|
35
|
+
console.log(result);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function main() {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
deleteRaiBlocklistItems();
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
main().catch(console.error);
|
|
44
|
+
//# sourceMappingURL=raiBlocklistItemsBatchDeleteSample.js.map
|