### Packages impacted by this PR
@azure-rest/ai-vision-image-analysis

### Issues associated with this PR
N/A

### Describe the problem that is addressed by this PR
Stable Release

### Are there test cases added in this PR? _(If not, why?)_
No changes.
This commit is contained in:
Ryan Hurey 2024-10-17 11:29:32 -07:00 коммит произвёл GitHub
Родитель 61e98b1015
Коммит 782dc8896a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
4 изменённых файлов: 14 добавлений и 11 удалений

Просмотреть файл

@ -1,14 +1,9 @@
# Release History
## 1.0.0-beta.4 (Unreleased)
### Features Added
### Breaking Changes
### Bugs Fixed
## 1.0.0 (2024-10-18)
### Other Changes
Stable Release.
## 1.0.0-beta.3 (2024-07-18)

Просмотреть файл

@ -97,8 +97,14 @@ const client = new ImageAnalysisClient(endpoint, credential);
#### Create ImageAnalysisClient with a Microsoft Entra ID Credential
Client subscription key authentication is used in most of the examples in this getting started guide, but you can also authenticate with Microsoft Entra ID (formerly Azure Active Directory) using the [Azure Identity library][azure_identity]. To use the [DefaultAzureCredential][azure_identity_dac] provider shown below,
or other credential providers provided with the Azure SDK, please install the Azure.Identity package:
**Prerequisites for Entra ID Authentication**:
- The role `Cognitive Services User` assigned to you. Role assignment can be done via the "Access Control (IAM)" tab of your Computer Vision resource in the Azure portal.
- [Azure CLI](https://learn.microsoft.com/cli/azure/install-azure-cli) installed.
- You are logged into your Azure account by running `az login`.
Also note that if you have multiple Azure subscriptions, the subscription that contains your Computer Vision resource must be your default subscription. Run `az account list --output table` to list all your subscriptions and see which one is the default. Run `az account set --subscription "Your Subscription ID or Name"` to change your default subscription.
Client subscription key authentication is used in most of the examples in this getting started guide, but you can also authenticate with Microsoft Entra ID (formerly Azure Active Directory) using the [Azure Identity library][azure_identity]. To use the [DefaultAzureCredential][azure_identity_dac] provider shown below, or other credential providers provided with the Azure SDK, please install the @azure/identity package:
```
npm install @azure/identity
@ -221,3 +227,5 @@ If you'd like to contribute to this library, please read the [contributing guide
[image_analysis_overview]: https://learn.microsoft.com/azure/ai-services/computer-vision/overview-image-analysis?tabs=4-0
[image_analysis_concepts]: https://learn.microsoft.com/azure/ai-services/computer-vision/concept-tag-images-40
[vision_studio]: https://aka.ms/vision-studio/image-analysis
[azure_identity]: https://learn.microsoft.com/javascript/api/overview/azure/identity-readme
[azure_identity_dac]: https://learn.microsoft.com/javascript/api/@azure/identity/defaultazurecredential

Просмотреть файл

@ -2,7 +2,7 @@
"name": "@azure-rest/ai-vision-image-analysis",
"sdk-type": "client",
"author": "Microsoft Corporation",
"version": "1.0.0-beta.4",
"version": "1.0.0",
"description": "undefined",
"keywords": [
"node",

Просмотреть файл

@ -25,7 +25,7 @@ export default function createClient(
{ apiVersion = "2023-10-01", ...options }: ImageAnalysisClientOptions = {},
): ImageAnalysisClient {
const endpointUrl = options.endpoint ?? options.baseUrl ?? `${endpointParam}/computervision`;
const userAgentInfo = `azsdk-js-ai-vision-image-analysis-rest/1.0.0-beta.4`;
const userAgentInfo = `azsdk-js-ai-vision-image-analysis-rest/1.0.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`