Skip to content

Commit 32db187

Browse files
author
SDKAuto
committed
CodeGen from PR 24270 in Azure/azure-rest-api-specs
Merge de37c47a625de64c0ac5bf76cf531527ba2feb77 into 0d41e635294dce73dfa99b07f3da4b68a9c9e29c
1 parent 4096d8d commit 32db187

File tree

205 files changed

+832
-6840
lines changed

Some content is hidden

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

205 files changed

+832
-6840
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.1.0-beta.1 (Unreleased)
3+
## 1.0.0-beta.1 (2023-06-05)
4+
5+
- Azure Resource Manager HDInsight client library for Java. This package contains Microsoft Azure SDK for HDInsight Management SDK. HDInsight Management Client. Package tag package-2023-04-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
46

57
### Features Added
68

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

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

33
Azure Resource Manager HDInsight client library for Java.
44

5-
This package contains Microsoft Azure SDK for HDInsight Management SDK. HDInsight Management Client. Package tag package-2021-06. 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 HDInsight Management SDK. HDInsight Management Client. Package tag package-2023-04-preview. 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

@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-hdinsight</artifactId>
35-
<version>1.0.0</version>
35+
<version>1.1.0-beta.1</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

Lines changed: 186 additions & 229 deletions
Large diffs are not rendered by default.

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!--
2+
~ Copyright (c) Microsoft Corporation. All rights reserved.
3+
~ Licensed under the MIT License.
4+
~ Code generated by Microsoft (R) AutoRest Code Generator.
5+
-->
16
<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">
27
<modelVersion>4.0.0</modelVersion>
38
<parent>
@@ -13,7 +18,7 @@
1318
<packaging>jar</packaging>
1419

1520
<name>Microsoft Azure SDK for HDInsight Management</name>
16-
<description>This package contains Microsoft Azure SDK for HDInsight Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. HDInsight Management Client. Package tag package-2021-06.</description>
21+
<description>This package contains Microsoft Azure SDK for HDInsight Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. HDInsight Management Client. Package tag package-2023-04-preview.</description>
1722
<url>https://github.com/Azure/azure-sdk-for-java</url>
1823

1924
<licenses>
@@ -38,7 +43,8 @@
3843
</developers>
3944
<properties>
4045
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41-
<jacoco.skip>true</jacoco.skip>
46+
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
47+
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
4248
</properties>
4349
<dependencies>
4450
<dependency>

sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/HDInsightManager.java

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -56,28 +56,28 @@
5656

5757
/** Entry point to HDInsightManager. HDInsight Management Client. */
5858
public final class HDInsightManager {
59-
private Clusters clusters;
60-
6159
private Applications applications;
6260

63-
private Locations locations;
61+
private Clusters clusters;
6462

6563
private Configurations configurations;
6664

6765
private Extensions extensions;
6866

69-
private ScriptActions scriptActions;
70-
71-
private ScriptExecutionHistories scriptExecutionHistories;
67+
private Locations locations;
7268

7369
private Operations operations;
7470

75-
private VirtualMachines virtualMachines;
76-
7771
private PrivateEndpointConnections privateEndpointConnections;
7872

7973
private PrivateLinkResources privateLinkResources;
8074

75+
private ScriptActions scriptActions;
76+
77+
private ScriptExecutionHistories scriptExecutionHistories;
78+
79+
private VirtualMachines virtualMachines;
80+
8181
private final HDInsightManagementClient clientObject;
8282

8383
private HDInsightManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -243,7 +243,7 @@ public HDInsightManager authenticate(TokenCredential credential, AzureProfile pr
243243
.append("-")
244244
.append("com.azure.resourcemanager.hdinsight")
245245
.append("/")
246-
.append("1.0.0");
246+
.append("1.0.0-beta.1");
247247
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
248248
userAgentBuilder
249249
.append(" (")
@@ -300,18 +300,6 @@ public HDInsightManager authenticate(TokenCredential credential, AzureProfile pr
300300
}
301301
}
302302

303-
/**
304-
* Gets the resource collection API of Clusters. It manages Cluster.
305-
*
306-
* @return Resource collection API of Clusters.
307-
*/
308-
public Clusters clusters() {
309-
if (this.clusters == null) {
310-
this.clusters = new ClustersImpl(clientObject.getClusters(), this);
311-
}
312-
return clusters;
313-
}
314-
315303
/**
316304
* Gets the resource collection API of Applications. It manages Application.
317305
*
@@ -325,15 +313,15 @@ public Applications applications() {
325313
}
326314

327315
/**
328-
* Gets the resource collection API of Locations.
316+
* Gets the resource collection API of Clusters. It manages Cluster.
329317
*
330-
* @return Resource collection API of Locations.
318+
* @return Resource collection API of Clusters.
331319
*/
332-
public Locations locations() {
333-
if (this.locations == null) {
334-
this.locations = new LocationsImpl(clientObject.getLocations(), this);
320+
public Clusters clusters() {
321+
if (this.clusters == null) {
322+
this.clusters = new ClustersImpl(clientObject.getClusters(), this);
335323
}
336-
return locations;
324+
return clusters;
337325
}
338326

339327
/**
@@ -361,28 +349,15 @@ public Extensions extensions() {
361349
}
362350

363351
/**
364-
* Gets the resource collection API of ScriptActions.
365-
*
366-
* @return Resource collection API of ScriptActions.
367-
*/
368-
public ScriptActions scriptActions() {
369-
if (this.scriptActions == null) {
370-
this.scriptActions = new ScriptActionsImpl(clientObject.getScriptActions(), this);
371-
}
372-
return scriptActions;
373-
}
374-
375-
/**
376-
* Gets the resource collection API of ScriptExecutionHistories.
352+
* Gets the resource collection API of Locations.
377353
*
378-
* @return Resource collection API of ScriptExecutionHistories.
354+
* @return Resource collection API of Locations.
379355
*/
380-
public ScriptExecutionHistories scriptExecutionHistories() {
381-
if (this.scriptExecutionHistories == null) {
382-
this.scriptExecutionHistories =
383-
new ScriptExecutionHistoriesImpl(clientObject.getScriptExecutionHistories(), this);
356+
public Locations locations() {
357+
if (this.locations == null) {
358+
this.locations = new LocationsImpl(clientObject.getLocations(), this);
384359
}
385-
return scriptExecutionHistories;
360+
return locations;
386361
}
387362

388363
/**
@@ -397,18 +372,6 @@ public Operations operations() {
397372
return operations;
398373
}
399374

400-
/**
401-
* Gets the resource collection API of VirtualMachines.
402-
*
403-
* @return Resource collection API of VirtualMachines.
404-
*/
405-
public VirtualMachines virtualMachines() {
406-
if (this.virtualMachines == null) {
407-
this.virtualMachines = new VirtualMachinesImpl(clientObject.getVirtualMachines(), this);
408-
}
409-
return virtualMachines;
410-
}
411-
412375
/**
413376
* Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
414377
*
@@ -434,6 +397,43 @@ public PrivateLinkResources privateLinkResources() {
434397
return privateLinkResources;
435398
}
436399

400+
/**
401+
* Gets the resource collection API of ScriptActions.
402+
*
403+
* @return Resource collection API of ScriptActions.
404+
*/
405+
public ScriptActions scriptActions() {
406+
if (this.scriptActions == null) {
407+
this.scriptActions = new ScriptActionsImpl(clientObject.getScriptActions(), this);
408+
}
409+
return scriptActions;
410+
}
411+
412+
/**
413+
* Gets the resource collection API of ScriptExecutionHistories.
414+
*
415+
* @return Resource collection API of ScriptExecutionHistories.
416+
*/
417+
public ScriptExecutionHistories scriptExecutionHistories() {
418+
if (this.scriptExecutionHistories == null) {
419+
this.scriptExecutionHistories =
420+
new ScriptExecutionHistoriesImpl(clientObject.getScriptExecutionHistories(), this);
421+
}
422+
return scriptExecutionHistories;
423+
}
424+
425+
/**
426+
* Gets the resource collection API of VirtualMachines.
427+
*
428+
* @return Resource collection API of VirtualMachines.
429+
*/
430+
public VirtualMachines virtualMachines() {
431+
if (this.virtualMachines == null) {
432+
this.virtualMachines = new VirtualMachinesImpl(clientObject.getVirtualMachines(), this);
433+
}
434+
return virtualMachines;
435+
}
436+
437437
/**
438438
* @return Wrapped service client HDInsightManagementClient providing direct access to the underlying auto-generated
439439
* API implementation, based on Azure REST API.

sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/fluent/ClustersClient.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,8 @@ void updateIdentityCertificate(
646646
* @param parameters The parameters for executing script actions.
647647
* @throws IllegalArgumentException thrown if parameters fail the validation.
648648
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
649+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
650+
* status code 404.
649651
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
650652
* @return the {@link SyncPoller} for polling of long-running operation.
651653
*/
@@ -662,6 +664,8 @@ SyncPoller<PollResult<Void>, Void> beginExecuteScriptActions(
662664
* @param context The context to associate with this operation.
663665
* @throws IllegalArgumentException thrown if parameters fail the validation.
664666
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
667+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
668+
* status code 404.
665669
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
666670
* @return the {@link SyncPoller} for polling of long-running operation.
667671
*/
@@ -677,6 +681,8 @@ SyncPoller<PollResult<Void>, Void> beginExecuteScriptActions(
677681
* @param parameters The parameters for executing script actions.
678682
* @throws IllegalArgumentException thrown if parameters fail the validation.
679683
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
684+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
685+
* status code 404.
680686
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
681687
*/
682688
@ServiceMethod(returns = ReturnType.SINGLE)
@@ -691,6 +697,8 @@ SyncPoller<PollResult<Void>, Void> beginExecuteScriptActions(
691697
* @param context The context to associate with this operation.
692698
* @throws IllegalArgumentException thrown if parameters fail the validation.
693699
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
700+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
701+
* status code 404.
694702
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
695703
*/
696704
@ServiceMethod(returns = ReturnType.SINGLE)

sdk/hdinsight/azure-resourcemanager-hdinsight/src/main/java/com/azure/resourcemanager/hdinsight/fluent/HDInsightManagementClient.java

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,6 @@ public interface HDInsightManagementClient {
4545
*/
4646
Duration getDefaultPollInterval();
4747

48-
/**
49-
* Gets the ClustersClient object to access its operations.
50-
*
51-
* @return the ClustersClient object.
52-
*/
53-
ClustersClient getClusters();
54-
5548
/**
5649
* Gets the ApplicationsClient object to access its operations.
5750
*
@@ -60,11 +53,11 @@ public interface HDInsightManagementClient {
6053
ApplicationsClient getApplications();
6154

6255
/**
63-
* Gets the LocationsClient object to access its operations.
56+
* Gets the ClustersClient object to access its operations.
6457
*
65-
* @return the LocationsClient object.
58+
* @return the ClustersClient object.
6659
*/
67-
LocationsClient getLocations();
60+
ClustersClient getClusters();
6861

6962
/**
7063
* Gets the ConfigurationsClient object to access its operations.
@@ -81,18 +74,11 @@ public interface HDInsightManagementClient {
8174
ExtensionsClient getExtensions();
8275

8376
/**
84-
* Gets the ScriptActionsClient object to access its operations.
85-
*
86-
* @return the ScriptActionsClient object.
87-
*/
88-
ScriptActionsClient getScriptActions();
89-
90-
/**
91-
* Gets the ScriptExecutionHistoriesClient object to access its operations.
77+
* Gets the LocationsClient object to access its operations.
9278
*
93-
* @return the ScriptExecutionHistoriesClient object.
79+
* @return the LocationsClient object.
9480
*/
95-
ScriptExecutionHistoriesClient getScriptExecutionHistories();
81+
LocationsClient getLocations();
9682

9783
/**
9884
* Gets the OperationsClient object to access its operations.
@@ -101,13 +87,6 @@ public interface HDInsightManagementClient {
10187
*/
10288
OperationsClient getOperations();
10389

104-
/**
105-
* Gets the VirtualMachinesClient object to access its operations.
106-
*
107-
* @return the VirtualMachinesClient object.
108-
*/
109-
VirtualMachinesClient getVirtualMachines();
110-
11190
/**
11291
* Gets the PrivateEndpointConnectionsClient object to access its operations.
11392
*
@@ -121,4 +100,25 @@ public interface HDInsightManagementClient {
121100
* @return the PrivateLinkResourcesClient object.
122101
*/
123102
PrivateLinkResourcesClient getPrivateLinkResources();
103+
104+
/**
105+
* Gets the ScriptActionsClient object to access its operations.
106+
*
107+
* @return the ScriptActionsClient object.
108+
*/
109+
ScriptActionsClient getScriptActions();
110+
111+
/**
112+
* Gets the ScriptExecutionHistoriesClient object to access its operations.
113+
*
114+
* @return the ScriptExecutionHistoriesClient object.
115+
*/
116+
ScriptExecutionHistoriesClient getScriptExecutionHistories();
117+
118+
/**
119+
* Gets the VirtualMachinesClient object to access its operations.
120+
*
121+
* @return the VirtualMachinesClient object.
122+
*/
123+
VirtualMachinesClient getVirtualMachines();
124124
}

0 commit comments

Comments
 (0)