@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,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { CognitiveServicesManagementClient, } from "@azure/arm-cognitiveservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Creates or Updates the specified Defender for AI setting.
|
|
17
|
+
*
|
|
18
|
+
* @summary Creates or Updates the specified Defender for AI setting.
|
|
19
|
+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/PutDefenderForAISetting.json
|
|
20
|
+
*/
|
|
21
|
+
function putDefenderForAiSetting() {
|
|
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 defenderForAISettingName = "Default";
|
|
28
|
+
const defenderForAISettings = { state: "Enabled" };
|
|
29
|
+
const credential = new DefaultAzureCredential();
|
|
30
|
+
const client = new CognitiveServicesManagementClient(credential, subscriptionId);
|
|
31
|
+
const result = yield client.defenderForAISettings.createOrUpdate(resourceGroupName, accountName, defenderForAISettingName, defenderForAISettings);
|
|
32
|
+
console.log(result);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function main() {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
putDefenderForAiSetting();
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
main().catch(console.error);
|
|
41
|
+
//# sourceMappingURL=defenderForAiSettingsCreateOrUpdateSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defenderForAiSettingsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/defenderForAiSettingsCreateOrUpdateSample.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,uBAAuB;;QACpC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,mBAAmB,CAAC;QACzE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,wBAAwB,GAAG,SAAS,CAAC;QAC3C,MAAM,qBAAqB,GAAyB,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;QACzE,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,qBAAqB,CAAC,cAAc,CAC9D,iBAAiB,EACjB,WAAW,EACX,wBAAwB,EACxB,qBAAqB,CACtB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,uBAAuB,EAAE,CAAC;IAC5B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defenderForAiSettingsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/defenderForAiSettingsGetSample.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 Defender for AI setting by name.
|
|
17
|
+
*
|
|
18
|
+
* @summary Gets the specified Defender for AI setting by name.
|
|
19
|
+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/GetDefenderForAISetting.json
|
|
20
|
+
*/
|
|
21
|
+
function getDefenderForAiSetting() {
|
|
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 defenderForAISettingName = "Default";
|
|
28
|
+
const credential = new DefaultAzureCredential();
|
|
29
|
+
const client = new CognitiveServicesManagementClient(credential, subscriptionId);
|
|
30
|
+
const result = yield client.defenderForAISettings.get(resourceGroupName, accountName, defenderForAISettingName);
|
|
31
|
+
console.log(result);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function main() {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
getDefenderForAiSetting();
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
main().catch(console.error);
|
|
40
|
+
//# sourceMappingURL=defenderForAiSettingsGetSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defenderForAiSettingsGetSample.js","sourceRoot":"","sources":["../../samples-dev/defenderForAiSettingsGetSample.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,uBAAuB;;QACpC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,mBAAmB,CAAC;QACzE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,wBAAwB,GAAG,SAAS,CAAC;QAC3C,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,qBAAqB,CAAC,GAAG,CACnD,iBAAiB,EACjB,WAAW,EACX,wBAAwB,CACzB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,uBAAuB,EAAE,CAAC;IAC5B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defenderForAiSettingsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/defenderForAiSettingsListSample.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 Lists the Defender for AI settings.
|
|
17
|
+
*
|
|
18
|
+
* @summary Lists the Defender for AI settings.
|
|
19
|
+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ListDefenderForAISetting.json
|
|
20
|
+
*/
|
|
21
|
+
function listDefenderForAiSetting() {
|
|
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.defenderForAISettings.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
|
+
listDefenderForAiSetting();
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
main().catch(console.error);
|
|
55
|
+
//# sourceMappingURL=defenderForAiSettingsListSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defenderForAiSettingsListSample.js","sourceRoot":"","sources":["../../samples-dev/defenderForAiSettingsListSample.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,wBAAwB;;;QACrC,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,qBAAqB,CAAC,IAAI,CACtD,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,wBAAwB,EAAE,CAAC;IAC7B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defenderForAiSettingsUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/defenderForAiSettingsUpdateSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { CognitiveServicesManagementClient, } from "@azure/arm-cognitiveservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Updates the specified Defender for AI setting.
|
|
17
|
+
*
|
|
18
|
+
* @summary Updates the specified Defender for AI setting.
|
|
19
|
+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/UpdateDefenderForAISetting.json
|
|
20
|
+
*/
|
|
21
|
+
function updateDefenderForAiSetting() {
|
|
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 defenderForAISettingName = "Default";
|
|
28
|
+
const defenderForAISettings = { state: "Enabled" };
|
|
29
|
+
const credential = new DefaultAzureCredential();
|
|
30
|
+
const client = new CognitiveServicesManagementClient(credential, subscriptionId);
|
|
31
|
+
const result = yield client.defenderForAISettings.update(resourceGroupName, accountName, defenderForAISettingName, defenderForAISettings);
|
|
32
|
+
console.log(result);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function main() {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
updateDefenderForAiSetting();
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
main().catch(console.error);
|
|
41
|
+
//# sourceMappingURL=defenderForAiSettingsUpdateSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defenderForAiSettingsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/defenderForAiSettingsUpdateSample.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,0BAA0B;;QACvC,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,wBAAwB,GAAG,SAAS,CAAC;QAC3C,MAAM,qBAAqB,GAAyB,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;QACzE,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,qBAAqB,CAAC,MAAM,CACtD,iBAAiB,EACjB,WAAW,EACX,wBAAwB,EACxB,qBAAqB,CACtB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,0BAA0B,EAAE,CAAC;IAC/B,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 Returns a Cognitive Services account specified by the parameters.
|
|
17
17
|
*
|
|
18
18
|
* @summary Returns a Cognitive Services account specified by the parameters.
|
|
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/GetDeletedAccount.json
|
|
20
20
|
*/
|
|
21
21
|
function getAccount() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Returns all the resources of a particular type belonging to a subscription.
|
|
17
17
|
*
|
|
18
18
|
* @summary Returns all the resources of a particular type belonging to a subscription.
|
|
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/ListDeletedAccountsBySubscription.json
|
|
20
20
|
*/
|
|
21
21
|
function listDeletedAccountsBySubscription() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -16,7 +16,7 @@ dotenv.config();
|
|
|
16
16
|
* This sample demonstrates how to Deletes a Cognitive Services account from the resource group.
|
|
17
17
|
*
|
|
18
18
|
* @summary Deletes a Cognitive Services account from the resource group.
|
|
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/PurgeDeletedAccount.json
|
|
20
20
|
*/
|
|
21
21
|
function deleteAccount() {
|
|
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 deployments associated with the Cognitive Services account.
|
|
17
17
|
*
|
|
18
18
|
* @summary Update the state of specified deployments 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/PutDeployment.json
|
|
20
20
|
*/
|
|
21
21
|
function putDeployment() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -26,7 +26,7 @@ function putDeployment() {
|
|
|
26
26
|
const deploymentName = "deploymentName";
|
|
27
27
|
const deployment = {
|
|
28
28
|
properties: { model: { name: "ada", format: "OpenAI", version: "1" } },
|
|
29
|
-
sku: { name: "Standard", capacity: 1 }
|
|
29
|
+
sku: { name: "Standard", capacity: 1 },
|
|
30
30
|
};
|
|
31
31
|
const credential = new DefaultAzureCredential();
|
|
32
32
|
const client = new CognitiveServicesManagementClient(credential, subscriptionId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploymentsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/deploymentsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,iCAAiC,
|
|
1
|
+
{"version":3,"file":"deploymentsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/deploymentsCreateOrUpdateSample.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,aAAa;;QAC1B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,IAAI,gBAAgB,CAAC;QACvE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,mBAAmB,CAAC;QACzE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,cAAc,GAAG,gBAAgB,CAAC;QACxC,MAAM,UAAU,GAAe;YAC7B,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE;YACtE,GAAG,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,EAAE;SACvC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,0BAA0B,CAChE,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,aAAa,EAAE,CAAC;IAClB,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 deployment associated with the Cognitive Services account.
|
|
17
17
|
*
|
|
18
18
|
* @summary Deletes the specified deployment 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/DeleteDeployment.json
|
|
20
20
|
*/
|
|
21
21
|
function deleteDeployment() {
|
|
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 deployments associated with the Cognitive Services account.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets the specified deployments 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/GetDeployment.json
|
|
20
20
|
*/
|
|
21
21
|
function getDeployment() {
|
|
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 deployments associated with the Cognitive Services account.
|
|
17
17
|
*
|
|
18
18
|
* @summary Gets the deployments 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/ListDeployments.json
|
|
20
20
|
*/
|
|
21
21
|
function listDeployments() {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploymentsListSkusSample.d.ts","sourceRoot":"","sources":["../../samples-dev/deploymentsListSkusSample.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 Lists the specified deployments skus associated with the Cognitive Services account.
|
|
17
|
+
*
|
|
18
|
+
* @summary Lists the specified deployments skus associated with the Cognitive Services account.
|
|
19
|
+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/ListDeploymentSkus.json
|
|
20
|
+
*/
|
|
21
|
+
function listDeploymentSkus() {
|
|
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 deploymentName = "deploymentName";
|
|
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.deployments.listSkus(resourceGroupName, accountName, deploymentName)), _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
|
+
listDeploymentSkus();
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
main().catch(console.error);
|
|
56
|
+
//# sourceMappingURL=deploymentsListSkusSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploymentsListSkusSample.js","sourceRoot":"","sources":["../../samples-dev/deploymentsListSkusSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,kBAAkB;;;QAC/B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,mBAAmB,CAAC;QACzE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,cAAc,GAAG,gBAAgB,CAAC;QACxC,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,WAAW,CAAC,QAAQ,CAChD,iBAAiB,EACjB,WAAW,EACX,cAAc,CACf,CAAA,IAAA,sDAAE,CAAC;gBAJmB,cAItB;gBAJsB,WAItB;gBAJU,IAAI,IAAI,KAAA,CAAA;gBAKjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,kBAAkB,EAAE,CAAC;IACvB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploymentsUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/deploymentsUpdateSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { CognitiveServicesManagementClient, } from "@azure/arm-cognitiveservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Update specified deployments associated with the Cognitive Services account.
|
|
17
|
+
*
|
|
18
|
+
* @summary Update specified deployments associated with the Cognitive Services account.
|
|
19
|
+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/UpdateDeployment.json
|
|
20
|
+
*/
|
|
21
|
+
function updateDeployment() {
|
|
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 deploymentName = "deploymentName";
|
|
28
|
+
const deployment = {
|
|
29
|
+
sku: { name: "Standard", capacity: 1 },
|
|
30
|
+
};
|
|
31
|
+
const credential = new DefaultAzureCredential();
|
|
32
|
+
const client = new CognitiveServicesManagementClient(credential, subscriptionId);
|
|
33
|
+
const result = yield client.deployments.beginUpdateAndWait(resourceGroupName, accountName, deploymentName, deployment);
|
|
34
|
+
console.log(result);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
function main() {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
updateDeployment();
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
main().catch(console.error);
|
|
43
|
+
//# sourceMappingURL=deploymentsUpdateSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploymentsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/deploymentsUpdateSample.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,gBAAgB;;QAC7B,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,cAAc,GAAG,gBAAgB,CAAC;QACxC,MAAM,UAAU,GAA4B;YAC1C,GAAG,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAC,EAAE;SACvC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,kBAAkB,CACxD,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,gBAAgB,EAAE,CAAC;IACrB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encryptionScopesCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/encryptionScopesCreateOrUpdateSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { CognitiveServicesManagementClient, } from "@azure/arm-cognitiveservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Update the state of specified encryptionScope associated with the Cognitive Services account.
|
|
17
|
+
*
|
|
18
|
+
* @summary Update the state of specified encryptionScope associated with the Cognitive Services account.
|
|
19
|
+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/PutEncryptionScope.json
|
|
20
|
+
*/
|
|
21
|
+
function putEncryptionScope() {
|
|
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 encryptionScopeName = "encryptionScopeName";
|
|
28
|
+
const encryptionScope = {
|
|
29
|
+
properties: {
|
|
30
|
+
keySource: "Microsoft.KeyVault",
|
|
31
|
+
keyVaultProperties: {
|
|
32
|
+
identityClientId: "00000000-0000-0000-0000-000000000000",
|
|
33
|
+
keyName: "DevKeyWestUS2",
|
|
34
|
+
keyVaultUri: "https://devkvwestus2.vault.azure.net/",
|
|
35
|
+
keyVersion: "9f85549d7bf14ff4bf178c10d3bdca95",
|
|
36
|
+
},
|
|
37
|
+
state: "Enabled",
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
const credential = new DefaultAzureCredential();
|
|
41
|
+
const client = new CognitiveServicesManagementClient(credential, subscriptionId);
|
|
42
|
+
const result = yield client.encryptionScopes.createOrUpdate(resourceGroupName, accountName, encryptionScopeName, encryptionScope);
|
|
43
|
+
console.log(result);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function main() {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
putEncryptionScope();
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
main().catch(console.error);
|
|
52
|
+
//# sourceMappingURL=encryptionScopesCreateOrUpdateSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encryptionScopesCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/encryptionScopesCreateOrUpdateSample.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,kBAAkB;;QAC/B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,mBAAmB,CAAC;QACzE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;QAClD,MAAM,eAAe,GAAoB;YACvC,UAAU,EAAE;gBACV,SAAS,EAAE,oBAAoB;gBAC/B,kBAAkB,EAAE;oBAClB,gBAAgB,EAAE,sCAAsC;oBACxD,OAAO,EAAE,eAAe;oBACxB,WAAW,EAAE,uCAAuC;oBACpD,UAAU,EAAE,kCAAkC;iBAC/C;gBACD,KAAK,EAAE,SAAS;aACjB;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,gBAAgB,CAAC,cAAc,CACzD,iBAAiB,EACjB,WAAW,EACX,mBAAmB,EACnB,eAAe,CAChB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,kBAAkB,EAAE,CAAC;IACvB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encryptionScopesDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/encryptionScopesDeleteSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { CognitiveServicesManagementClient } from "@azure/arm-cognitiveservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Deletes the specified encryptionScope associated with the Cognitive Services account.
|
|
17
|
+
*
|
|
18
|
+
* @summary Deletes the specified encryptionScope associated with the Cognitive Services account.
|
|
19
|
+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/DeleteEncryptionScope.json
|
|
20
|
+
*/
|
|
21
|
+
function deleteEncryptionScope() {
|
|
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 encryptionScopeName = "encryptionScopeName";
|
|
28
|
+
const credential = new DefaultAzureCredential();
|
|
29
|
+
const client = new CognitiveServicesManagementClient(credential, subscriptionId);
|
|
30
|
+
const result = yield client.encryptionScopes.beginDeleteAndWait(resourceGroupName, accountName, encryptionScopeName);
|
|
31
|
+
console.log(result);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function main() {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
deleteEncryptionScope();
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
main().catch(console.error);
|
|
40
|
+
//# sourceMappingURL=encryptionScopesDeleteSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encryptionScopesDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/encryptionScopesDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,mBAAmB,CAAC;QACzE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;QAClD,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,gBAAgB,CAAC,kBAAkB,CAC7D,iBAAiB,EACjB,WAAW,EACX,mBAAmB,CACpB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,qBAAqB,EAAE,CAAC;IAC1B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encryptionScopesGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/encryptionScopesGetSample.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 EncryptionScope associated with the Cognitive Services account.
|
|
17
|
+
*
|
|
18
|
+
* @summary Gets the specified EncryptionScope associated with the Cognitive Services account.
|
|
19
|
+
* x-ms-original-file: specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2024-10-01/examples/GetEncryptionScope.json
|
|
20
|
+
*/
|
|
21
|
+
function getEncryptionScope() {
|
|
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 encryptionScopeName = "encryptionScopeName";
|
|
28
|
+
const credential = new DefaultAzureCredential();
|
|
29
|
+
const client = new CognitiveServicesManagementClient(credential, subscriptionId);
|
|
30
|
+
const result = yield client.encryptionScopes.get(resourceGroupName, accountName, encryptionScopeName);
|
|
31
|
+
console.log(result);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function main() {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
getEncryptionScope();
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
main().catch(console.error);
|
|
40
|
+
//# sourceMappingURL=encryptionScopesGetSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encryptionScopesGetSample.js","sourceRoot":"","sources":["../../samples-dev/encryptionScopesGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,kBAAkB;;QAC/B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC;YAChD,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,IAAI,mBAAmB,CAAC;QACzE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;QAClD,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,gBAAgB,CAAC,GAAG,CAC9C,iBAAiB,EACjB,WAAW,EACX,mBAAmB,CACpB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,kBAAkB,EAAE,CAAC;IACvB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|