Skip to content

Commit 02316a0

Browse files
[AutoPR azure-resourcemanager-databricks]-generated-from-SDK Generation - Java-6269544 (#49121)
* Configurations: 'specification/databricks/resource-manager/Microsoft.Databricks/Databricks/tspconfig.yaml', API Version: 2026-01-01, SDK Release Type: stable, and CommitSHA: '89ff93230e6905243555531544a94f85f48b5dac' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6269544 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * managedResourceGroupId is no longer required; change test to use serverless * revert version to 1.0.0-beta.1 * revapi false --------- Co-authored-by: Weidong Xu <weidxu@microsoft.com>
1 parent 09053b7 commit 02316a0

216 files changed

Lines changed: 5678 additions & 5418 deletions

File tree

Some content is hidden

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

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

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Azure Resource Manager AzureDatabricks client library for Java
1+
# Azure Resource Manager Azure Databricks client library for Java
22

3-
Azure Resource Manager AzureDatabricks client library for Java.
3+
Azure Resource Manager Azure Databricks client library for Java.
44

5-
This package contains Microsoft Azure SDK for AzureDatabricks Management SDK. The Microsoft Azure management APIs allow end users to operate on Azure Databricks Workspace / Access Connector resources. Package tag package-2023-05-01. 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 Azure Databricks Management SDK. ARM Databricks. Package api-version 2026-01-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
AzureDatabricksManager manager = AzureDatabricksManager
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

@@ -75,8 +75,8 @@ workspace = databricksManager.workspaces()
7575
.define(workspaceName)
7676
.withRegion(REGION)
7777
.withExistingResourceGroup(resourceGroupName)
78-
.withManagedResourceGroupId(managedResourceGroupId)
79-
.withSku(new Sku().withName("standard"))
78+
.withComputeMode(ComputeMode.SERVERLESS)
79+
.withSku(new Sku().withName("premium"))
8080
.create();
8181
```
8282
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/databricks/azure-resourcemanager-databricks/SAMPLE.md)
@@ -109,5 +109,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
109109
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
110110
[coc]: https://opensource.microsoft.com/codeofconduct/
111111
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
112-
113-

sdk/databricks/azure-resourcemanager-databricks/SAMPLE.md

Lines changed: 181 additions & 91 deletions
Large diffs are not rendered by default.

sdk/databricks/azure-resourcemanager-databricks/pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!--
22
~ Copyright (c) Microsoft Corporation. All rights reserved.
33
~ Licensed under the MIT License.
4-
~ Code generated by Microsoft (R) AutoRest Code Generator.
4+
~ Code generated by Microsoft (R) TypeSpec Code Generator.
55
-->
6-
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
6+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
77
<modelVersion>4.0.0</modelVersion>
88
<parent>
99
<groupId>com.azure</groupId>
@@ -17,8 +17,8 @@
1717
<version>1.1.0-beta.1</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-databricks;current} -->
1818
<packaging>jar</packaging>
1919

20-
<name>Microsoft Azure SDK for AzureDatabricks Management</name>
21-
<description>This package contains Microsoft Azure SDK for AzureDatabricks Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Microsoft Azure management APIs allow end users to operate on Azure Databricks Workspace / Access Connector resources. Package tag package-2023-05-01.</description>
20+
<name>Microsoft Azure SDK for Azure Databricks Management</name>
21+
<description>This package contains Microsoft Azure SDK for Azure Databricks Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. ARM Databricks. Package api-version 2026-01-01.</description>
2222
<url>https://github.com/Azure/azure-sdk-for-java</url>
2323

2424
<licenses>
@@ -45,7 +45,7 @@
4545
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4646
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
4747
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
48-
<spotless.skip>false</spotless.skip>
48+
<revapi.skip>true</revapi.skip>
4949
</properties>
5050
<dependencies>
5151
<dependency>

sdk/databricks/azure-resourcemanager-databricks/src/main/java/com/azure/resourcemanager/databricks/AzureDatabricksManager.java

Lines changed: 51 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
3-
// Code generated by Microsoft (R) AutoRest Code Generator.
3+
// Code generated by Microsoft (R) TypeSpec Code Generator.
44

55
package com.azure.resourcemanager.databricks;
66

@@ -22,6 +22,7 @@
2222
import com.azure.core.http.policy.UserAgentPolicy;
2323
import com.azure.core.management.profile.AzureProfile;
2424
import com.azure.core.util.Configuration;
25+
import com.azure.core.util.CoreUtils;
2526
import com.azure.core.util.logging.ClientLogger;
2627
import com.azure.resourcemanager.databricks.fluent.AzureDatabricksManagementClient;
2728
import com.azure.resourcemanager.databricks.implementation.AccessConnectorsImpl;
@@ -43,28 +44,28 @@
4344
import java.time.temporal.ChronoUnit;
4445
import java.util.ArrayList;
4546
import java.util.List;
47+
import java.util.Map;
4648
import java.util.Objects;
4749
import java.util.stream.Collectors;
4850

4951
/**
5052
* Entry point to AzureDatabricksManager.
51-
* The Microsoft Azure management APIs allow end users to operate on Azure Databricks Workspace / Access Connector
52-
* resources.
53+
* ARM Databricks.
5354
*/
5455
public final class AzureDatabricksManager {
55-
private Workspaces workspaces;
56-
5756
private Operations operations;
5857

59-
private PrivateLinkResources privateLinkResources;
58+
private Workspaces workspaces;
6059

6160
private PrivateEndpointConnections privateEndpointConnections;
6261

62+
private AccessConnectors accessConnectors;
63+
6364
private OutboundNetworkDependenciesEndpoints outboundNetworkDependenciesEndpoints;
6465

65-
private VNetPeerings vNetPeerings;
66+
private PrivateLinkResources privateLinkResources;
6667

67-
private AccessConnectors accessConnectors;
68+
private VNetPeerings vNetPeerings;
6869

6970
private final AzureDatabricksManagementClient clientObject;
7071

@@ -79,11 +80,11 @@ private AzureDatabricksManager(HttpPipeline httpPipeline, AzureProfile profile,
7980
}
8081

8182
/**
82-
* Creates an instance of AzureDatabricks service API entry point.
83+
* Creates an instance of Azure Databricks service API entry point.
8384
*
8485
* @param credential the credential to use.
8586
* @param profile the Azure profile for client.
86-
* @return the AzureDatabricks service API instance.
87+
* @return the Azure Databricks service API instance.
8788
*/
8889
public static AzureDatabricksManager authenticate(TokenCredential credential, AzureProfile profile) {
8990
Objects.requireNonNull(credential, "'credential' cannot be null.");
@@ -92,11 +93,11 @@ public static AzureDatabricksManager authenticate(TokenCredential credential, Az
9293
}
9394

9495
/**
95-
* Creates an instance of AzureDatabricks service API entry point.
96+
* Creates an instance of Azure Databricks service API entry point.
9697
*
9798
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
9899
* @param profile the Azure profile for client.
99-
* @return the AzureDatabricks service API instance.
100+
* @return the Azure Databricks service API instance.
100101
*/
101102
public static AzureDatabricksManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
102103
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
@@ -118,6 +119,9 @@ public static Configurable configure() {
118119
*/
119120
public static final class Configurable {
120121
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
122+
private static final String SDK_VERSION = "version";
123+
private static final Map<String, String> PROPERTIES
124+
= CoreUtils.getProperties("azure-resourcemanager-databricks.properties");
121125

122126
private HttpClient httpClient;
123127
private HttpLogOptions httpLogOptions;
@@ -215,22 +219,24 @@ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
215219
}
216220

217221
/**
218-
* Creates an instance of AzureDatabricks service API entry point.
222+
* Creates an instance of Azure Databricks service API entry point.
219223
*
220224
* @param credential the credential to use.
221225
* @param profile the Azure profile for client.
222-
* @return the AzureDatabricks service API instance.
226+
* @return the Azure Databricks service API instance.
223227
*/
224228
public AzureDatabricksManager authenticate(TokenCredential credential, AzureProfile profile) {
225229
Objects.requireNonNull(credential, "'credential' cannot be null.");
226230
Objects.requireNonNull(profile, "'profile' cannot be null.");
227231

232+
String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
233+
228234
StringBuilder userAgentBuilder = new StringBuilder();
229235
userAgentBuilder.append("azsdk-java")
230236
.append("-")
231237
.append("com.azure.resourcemanager.databricks")
232238
.append("/")
233-
.append("1.0.0");
239+
.append(clientVersion);
234240
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
235241
userAgentBuilder.append(" (")
236242
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -276,18 +282,6 @@ public AzureDatabricksManager authenticate(TokenCredential credential, AzureProf
276282
}
277283
}
278284

279-
/**
280-
* Gets the resource collection API of Workspaces. It manages Workspace.
281-
*
282-
* @return Resource collection API of Workspaces.
283-
*/
284-
public Workspaces workspaces() {
285-
if (this.workspaces == null) {
286-
this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
287-
}
288-
return workspaces;
289-
}
290-
291285
/**
292286
* Gets the resource collection API of Operations.
293287
*
@@ -301,15 +295,15 @@ public Operations operations() {
301295
}
302296

303297
/**
304-
* Gets the resource collection API of PrivateLinkResources.
298+
* Gets the resource collection API of Workspaces. It manages Workspace.
305299
*
306-
* @return Resource collection API of PrivateLinkResources.
300+
* @return Resource collection API of Workspaces.
307301
*/
308-
public PrivateLinkResources privateLinkResources() {
309-
if (this.privateLinkResources == null) {
310-
this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
302+
public Workspaces workspaces() {
303+
if (this.workspaces == null) {
304+
this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
311305
}
312-
return privateLinkResources;
306+
return workspaces;
313307
}
314308

315309
/**
@@ -325,6 +319,18 @@ public PrivateEndpointConnections privateEndpointConnections() {
325319
return privateEndpointConnections;
326320
}
327321

322+
/**
323+
* Gets the resource collection API of AccessConnectors. It manages AccessConnector.
324+
*
325+
* @return Resource collection API of AccessConnectors.
326+
*/
327+
public AccessConnectors accessConnectors() {
328+
if (this.accessConnectors == null) {
329+
this.accessConnectors = new AccessConnectorsImpl(clientObject.getAccessConnectors(), this);
330+
}
331+
return accessConnectors;
332+
}
333+
328334
/**
329335
* Gets the resource collection API of OutboundNetworkDependenciesEndpoints.
330336
*
@@ -339,27 +345,27 @@ public OutboundNetworkDependenciesEndpoints outboundNetworkDependenciesEndpoints
339345
}
340346

341347
/**
342-
* Gets the resource collection API of VNetPeerings. It manages VirtualNetworkPeering.
348+
* Gets the resource collection API of PrivateLinkResources.
343349
*
344-
* @return Resource collection API of VNetPeerings.
350+
* @return Resource collection API of PrivateLinkResources.
345351
*/
346-
public VNetPeerings vNetPeerings() {
347-
if (this.vNetPeerings == null) {
348-
this.vNetPeerings = new VNetPeeringsImpl(clientObject.getVNetPeerings(), this);
352+
public PrivateLinkResources privateLinkResources() {
353+
if (this.privateLinkResources == null) {
354+
this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
349355
}
350-
return vNetPeerings;
356+
return privateLinkResources;
351357
}
352358

353359
/**
354-
* Gets the resource collection API of AccessConnectors. It manages AccessConnector.
360+
* Gets the resource collection API of VNetPeerings. It manages VirtualNetworkPeering.
355361
*
356-
* @return Resource collection API of AccessConnectors.
362+
* @return Resource collection API of VNetPeerings.
357363
*/
358-
public AccessConnectors accessConnectors() {
359-
if (this.accessConnectors == null) {
360-
this.accessConnectors = new AccessConnectorsImpl(clientObject.getAccessConnectors(), this);
364+
public VNetPeerings vNetPeerings() {
365+
if (this.vNetPeerings == null) {
366+
this.vNetPeerings = new VNetPeeringsImpl(clientObject.getVNetPeerings(), this);
361367
}
362-
return accessConnectors;
368+
return vNetPeerings;
363369
}
364370

365371
/**

0 commit comments

Comments
 (0)