@azure/arm-cognitiveservices 7.5.0 → 7.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +196 -8
- package/LICENSE +1 -1
- package/README.md +4 -5
- package/dist/index.js +8300 -4017
- 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 +5 -10
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsListKeysSample.js +1 -1
- package/dist-esm/samples-dev/accountsListModelsSample.js +5 -10
- package/dist-esm/samples-dev/accountsListModelsSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsListSample.js +5 -10
- package/dist-esm/samples-dev/accountsListSample.js.map +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 +5 -10
- package/dist-esm/samples-dev/commitmentPlansListAssociationsSample.js.map +1 -1
- package/dist-esm/samples-dev/commitmentPlansListPlansByResourceGroupSample.js +5 -10
- package/dist-esm/samples-dev/commitmentPlansListPlansByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/commitmentPlansListPlansBySubscriptionSample.js +5 -10
- package/dist-esm/samples-dev/commitmentPlansListPlansBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/commitmentPlansListSample.js +5 -10
- package/dist-esm/samples-dev/commitmentPlansListSample.js.map +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 +5 -10
- package/dist-esm/samples-dev/commitmentTiersListSample.js.map +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 +5 -10
- package/dist-esm/samples-dev/deletedAccountsListSample.js.map +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 +5 -10
- package/dist-esm/samples-dev/deploymentsListSample.js.map +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 +7 -12
- 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 +5 -10
- package/dist-esm/samples-dev/operationsListSample.js.map +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 +5 -10
- package/dist-esm/samples-dev/resourceSkusListSample.js.map +1 -1
- package/dist-esm/samples-dev/usagesListSample.js +5 -10
- package/dist-esm/samples-dev/usagesListSample.js.map +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/index.d.ts +0 -1
- package/dist-esm/src/index.d.ts.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 +100 -115
- 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 +141 -161
- package/dist-esm/src/operations/commitmentPlans.js.map +1 -1
- package/dist-esm/src/operations/commitmentTiers.js +14 -19
- 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 +27 -32
- 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 +269 -46
- 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 +14 -19
- 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 +12 -17
- package/dist-esm/src/operations/operations.js.map +1 -1
- 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 +13 -18
- package/dist-esm/src/operations/resourceSkus.js.map +1 -1
- package/dist-esm/src/operations/usages.js +14 -19
- 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/src/pagingHelper.js.map +1 -1
- package/dist-esm/test/cognitiveservices_congitiveservice.spec.d.ts.map +1 -1
- package/dist-esm/test/cognitiveservices_congitiveservice.spec.js +20 -31
- package/dist-esm/test/cognitiveservices_congitiveservice.spec.js.map +1 -1
- package/dist-esm/test/cognitiveservices_openai.spec.d.ts.map +1 -1
- package/dist-esm/test/cognitiveservices_openai.spec.js +25 -41
- package/dist-esm/test/cognitiveservices_openai.spec.js.map +1 -1
- package/package.json +23 -32
- package/review/arm-cognitiveservices.api.md +893 -23
- package/src/cognitiveServicesManagementClient.ts +117 -39
- package/src/lroImpl.ts +4 -4
- 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
- package/types/tsdoc-metadata.json +1 -1
- package/rollup.config.js +0 -122
|
@@ -16,11 +16,11 @@ 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
|
-
var _a, e_1, _b, _c;
|
|
23
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
var _a, e_1, _b, _c;
|
|
24
24
|
const subscriptionId = process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] || "subscriptionId";
|
|
25
25
|
const resourceGroupName = process.env["COGNITIVESERVICES_RESOURCE_GROUP"] || "resourceGroupName";
|
|
26
26
|
const accountName = "accountName";
|
|
@@ -28,16 +28,11 @@ function listDeployments() {
|
|
|
28
28
|
const client = new CognitiveServicesManagementClient(credential, subscriptionId);
|
|
29
29
|
const resArray = new Array();
|
|
30
30
|
try {
|
|
31
|
-
for (var _d = true, _e = __asyncValues(client.deployments.list(resourceGroupName, accountName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
31
|
+
for (var _d = true, _e = __asyncValues(client.deployments.list(resourceGroupName, accountName)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
32
32
|
_c = _f.value;
|
|
33
33
|
_d = false;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
resArray.push(item);
|
|
37
|
-
}
|
|
38
|
-
finally {
|
|
39
|
-
_d = true;
|
|
40
|
-
}
|
|
34
|
+
let item = _c;
|
|
35
|
+
resArray.push(item);
|
|
41
36
|
}
|
|
42
37
|
}
|
|
43
38
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploymentsListSample.js","sourceRoot":"","sources":["../../samples-dev/deploymentsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,eAAe;;;QAC5B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,IAAI,gBAAgB,CAAC;QACvE,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,WAAW,CAAC,IAAI,CAC5C,iBAAiB,EACjB,WAAW,CACZ,CAAA,IAAA;
|
|
1
|
+
{"version":3,"file":"deploymentsListSample.js","sourceRoot":"","sources":["../../samples-dev/deploymentsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,eAAe;;;QAC5B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,IAAI,gBAAgB,CAAC;QACvE,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,WAAW,CAAC,IAAI,CAC5C,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,eAAe,EAAE,CAAC;IACpB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -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"}
|
|
@@ -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,11 +16,11 @@ 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
|
|
22
|
-
var _a, e_1, _b, _c;
|
|
21
|
+
function listLocationModels() {
|
|
23
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
var _a, e_1, _b, _c;
|
|
24
24
|
const subscriptionId = process.env["COGNITIVESERVICES_SUBSCRIPTION_ID"] ||
|
|
25
25
|
"00000000-0000-0000-0000-000000000000";
|
|
26
26
|
const location = "WestUS";
|
|
@@ -28,16 +28,11 @@ function listModels() {
|
|
|
28
28
|
const client = new CognitiveServicesManagementClient(credential, subscriptionId);
|
|
29
29
|
const resArray = new Array();
|
|
30
30
|
try {
|
|
31
|
-
for (var _d = true, _e = __asyncValues(client.models.list(location)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
31
|
+
for (var _d = true, _e = __asyncValues(client.models.list(location)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
32
32
|
_c = _f.value;
|
|
33
33
|
_d = false;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
resArray.push(item);
|
|
37
|
-
}
|
|
38
|
-
finally {
|
|
39
|
-
_d = true;
|
|
40
|
-
}
|
|
34
|
+
let item = _c;
|
|
35
|
+
resArray.push(item);
|
|
41
36
|
}
|
|
42
37
|
}
|
|
43
38
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
@@ -52,7 +47,7 @@ function listModels() {
|
|
|
52
47
|
}
|
|
53
48
|
function main() {
|
|
54
49
|
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
|
|
50
|
+
listLocationModels();
|
|
56
51
|
});
|
|
57
52
|
}
|
|
58
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":""}
|