This commit is contained in:
azure-sdk 2024-08-22 10:51:31 +00:00
Родитель a213c2196c
Коммит 4cb80dba4c
2 изменённых файлов: 63 добавлений и 20 удалений

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

@ -1,17 +1,17 @@
---
title: Azure Resource Manager Machine Learning client library for Java
keywords: Azure, java, SDK, API, azure-resourcemanager-machinelearning, machinelearning
ms.date: 01/11/2023
ms.date: 08/22/2024
ms.topic: reference
ms.devlang: java
ms.service: machinelearning
---
# Azure Resource Manager Machine Learning client library for Java - version 1.0.0
# Azure Resource Manager Machine Learning client library for Java - version 1.1.0
Azure Resource Manager Machine Learning client library for Java.
This package contains Microsoft Azure SDK for Machine Learning Management SDK. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-2022-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
This package contains Microsoft Azure SDK for Machine Learning Management SDK. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-2024-04. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@ -41,7 +41,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-machinelearning</artifactId>
<version>1.0.0</version>
<version>1.1.0</version>
</dependency>
```
[//]: # ({x-version-update-end})
@ -54,15 +54,11 @@ Azure Management Libraries require a `TokenCredential` implementation for authen
### Authentication
By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables.
Microsoft Entra ID token authentication relies on the [credential class][azure_identity_credentials] from [Azure Identity][azure_identity] package.
- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable.
With above configuration, `azure` client can be authenticated using the following code:
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
```java
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
@ -83,7 +79,50 @@ See [API design][design] for general introduction on design and key concepts on
## Examples
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-machinelearning_1.0.0/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md)
```java
workspace = machineLearningManager.workspaces()
.define(workspaceName)
.withExistingResourceGroup(resourceGroupName)
.withRegion(REGION)
.withSku(new Sku().withName("Basic").withTier(SkuTier.BASIC))
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED))
.withFriendlyName(workspaceName)
.withStorageAccount(
storageManager.storageAccounts()
.define(storageName)
.withRegion(REGION)
.withExistingResourceGroup(resourceGroupName)
.withSku(StorageAccountSkuType.STANDARD_LRS)
.withMinimumTlsVersion(MinimumTlsVersion.TLS1_0)
.withHnsEnabled(false)
.withAccessFromAzureServices()
.withOnlyHttpsTraffic()
.withBlobStorageAccountKind().withAccessTier(AccessTier.HOT)
.create()
.id())
.withKeyVault(
keyVaultManager.vaults()
.define(keyVaultName)
.withRegion(REGION)
.withExistingResourceGroup(resourceGroupName)
.withEmptyAccessPolicy()
.withSku(SkuName.STANDARD)
.withDeploymentDisabled()
.withAccessFromAllNetworks()
.create()
.id())
.withApplicationInsights(
applicationInsightsManager.components()
.define(insightName)
.withRegion(REGION)
.withExistingResourceGroup(resourceGroupName)
.withKind("web")
.withApplicationType(ApplicationType.WEB)
.create()
.id())
.create();
```
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-machinelearning_1.1.0/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md)
## Troubleshooting
@ -103,13 +142,16 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
<!-- LINKS -->
[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
[docs]: https://azure.github.io/azure-sdk-for-java/
[jdk]: /java/azure/jdk/
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
[azure_subscription]: https://azure.microsoft.com/free/
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-machinelearning_1.0.0/sdk/identity/azure-identity
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-machinelearning_1.0.0/sdk/core/azure-core-http-netty
[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-machinelearning_1.0.0/sdk/resourcemanager/docs/AUTH.md
[design]: https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-machinelearning_1.0.0/sdk/resourcemanager/docs/DESIGN.md
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-machinelearning_1.0.0/CONTRIBUTING.md
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-machinelearning_1.1.0/sdk/identity/azure-identity
[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-java/tree/azure-resourcemanager-machinelearning_1.1.0/sdk/identity/azure-identity#credentials
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-machinelearning_1.1.0/sdk/core/azure-core-http-netty
[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-machinelearning_1.1.0/sdk/resourcemanager/docs/AUTH.md
[design]: https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-machinelearning_1.1.0/sdk/resourcemanager/docs/DESIGN.md
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager-machinelearning_1.1.0/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Fmachinelearning%2Fazure-resourcemanager-machinelearning%2FREADME.png)

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

@ -1,6 +1,6 @@
{
"Name": "azure-resourcemanager-machinelearning",
"Version": "1.0.0",
"Version": "1.1.0",
"DevVersion": null,
"DirectoryPath": "sdk/machinelearning/azure-resourcemanager-machinelearning",
"ServiceDirectory": "machinelearning",
@ -10,7 +10,8 @@
"SdkType": "mgmt",
"IsNewSdk": true,
"ArtifactName": "azure-resourcemanager-machinelearning",
"ReleaseStatus": "2023-01-11",
"ReleaseStatus": "2024-08-22",
"DependentPackages": null,
"Namespaces": [
"com.azure.resourcemanager.machinelearning",
"com.azure.resourcemanager.machinelearning.fluent",