Skip to content

Commit adc4397

Browse files
author
SDKAuto
committed
CodeGen from PR 33032 in Azure/azure-rest-api-specs
Merge 5d85ff3a296710ac56f67e62649c2830a67716e0 into 28b8d4de96e279451fa1542f584991b3a2fe27d5
1 parent f816d55 commit adc4397

File tree

1,505 files changed

+76603
-45086
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,505 files changed

+76603
-45086
lines changed

sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md

Lines changed: 1184 additions & 4 deletions
Large diffs are not rendered by default.

sdk/machinelearning/azure-resourcemanager-machinelearning/README.md

Lines changed: 34 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager Machine Learning client library for Java.
44

5-
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).
5+
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-preview-2025-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
## We'd love to hear your feedback
88

@@ -52,15 +52,15 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
5252
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
5353

5454
```java
55-
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
55+
AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
5656
TokenCredential credential = new DefaultAzureCredentialBuilder()
5757
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
5858
.build();
5959
MachineLearningManager manager = MachineLearningManager
6060
.authenticate(credential, profile);
6161
```
6262

63-
The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
63+
The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.
6464

6565
See [Authentication][authenticate] for more options.
6666

@@ -78,39 +78,37 @@ workspace = machineLearningManager.workspaces()
7878
.withSku(new Sku().withName("Basic").withTier(SkuTier.BASIC))
7979
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED))
8080
.withFriendlyName(workspaceName)
81-
.withStorageAccount(
82-
storageManager.storageAccounts()
83-
.define(storageName)
84-
.withRegion(REGION)
85-
.withExistingResourceGroup(resourceGroupName)
86-
.withSku(StorageAccountSkuType.STANDARD_LRS)
87-
.withMinimumTlsVersion(MinimumTlsVersion.TLS1_0)
88-
.withHnsEnabled(false)
89-
.withAccessFromAzureServices()
90-
.withOnlyHttpsTraffic()
91-
.withBlobStorageAccountKind().withAccessTier(AccessTier.HOT)
92-
.create()
93-
.id())
94-
.withKeyVault(
95-
keyVaultManager.vaults()
96-
.define(keyVaultName)
97-
.withRegion(REGION)
98-
.withExistingResourceGroup(resourceGroupName)
99-
.withEmptyAccessPolicy()
100-
.withSku(SkuName.STANDARD)
101-
.withDeploymentDisabled()
102-
.withAccessFromAllNetworks()
103-
.create()
104-
.id())
105-
.withApplicationInsights(
106-
applicationInsightsManager.components()
107-
.define(insightName)
108-
.withRegion(REGION)
109-
.withExistingResourceGroup(resourceGroupName)
110-
.withKind("web")
111-
.withApplicationType(ApplicationType.WEB)
112-
.create()
113-
.id())
81+
.withStorageAccount(storageManager.storageAccounts()
82+
.define(storageName)
83+
.withRegion(REGION)
84+
.withExistingResourceGroup(resourceGroupName)
85+
.withSku(StorageAccountSkuType.STANDARD_LRS)
86+
.withMinimumTlsVersion(MinimumTlsVersion.TLS1_0)
87+
.withHnsEnabled(false)
88+
.withAccessFromAzureServices()
89+
.withOnlyHttpsTraffic()
90+
.withBlobStorageAccountKind()
91+
.withAccessTier(AccessTier.HOT)
92+
.create()
93+
.id())
94+
.withKeyVault(keyVaultManager.vaults()
95+
.define(keyVaultName)
96+
.withRegion(REGION)
97+
.withExistingResourceGroup(resourceGroupName)
98+
.withEmptyAccessPolicy()
99+
.withSku(SkuName.STANDARD)
100+
.withDeploymentDisabled()
101+
.withAccessFromAllNetworks()
102+
.create()
103+
.id())
104+
.withApplicationInsights(applicationInsightsManager.components()
105+
.define(insightName)
106+
.withRegion(REGION)
107+
.withExistingResourceGroup(resourceGroupName)
108+
.withKind("web")
109+
.withApplicationType(ApplicationType.WEB)
110+
.create()
111+
.id())
114112
.create();
115113
```
116114
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md)
@@ -143,5 +141,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
143141
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
144142
[coc]: https://opensource.microsoft.com/codeofconduct/
145143
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
146-
147-

0 commit comments

Comments
 (0)