Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-resourcemanager-hdinsight] [Hub Generated] Review request for Microsoft.HDInsight to add version preview/2023-04-15-preview #5111

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sdk/hdinsight/azure-resourcemanager-hdinsight/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.1.0-beta.1 (Unreleased)
## 1.0.0-beta.1 (2023-04-27)

- Azure Resource Manager HDInsight client library for Java. This package contains Microsoft Azure SDK for HDInsight Management SDK. HDInsight Management Client. Package tag package-preview-2023-04. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
4 changes: 2 additions & 2 deletions sdk/hdinsight/azure-resourcemanager-hdinsight/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager HDInsight client library for Java.

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

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-hdinsight</artifactId>
<version>1.0.0</version>
<version>1.1.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
415 changes: 186 additions & 229 deletions sdk/hdinsight/azure-resourcemanager-hdinsight/SAMPLE.md

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions sdk/hdinsight/azure-resourcemanager-hdinsight/pom.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
~ Copyright (c) Microsoft Corporation. All rights reserved.
~ Licensed under the MIT License.
~ Code generated by Microsoft (R) AutoRest Code Generator.
-->
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
Expand All @@ -13,7 +18,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for HDInsight Management</name>
<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>
<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-preview-2023-04.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand All @@ -38,7 +43,8 @@
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.skip>true</jacoco.skip>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,28 +56,28 @@

/** Entry point to HDInsightManager. HDInsight Management Client. */
public final class HDInsightManager {
private Clusters clusters;

private Applications applications;

private Locations locations;
private Clusters clusters;

private Configurations configurations;

private Extensions extensions;

private ScriptActions scriptActions;

private ScriptExecutionHistories scriptExecutionHistories;
private Locations locations;

private Operations operations;

private VirtualMachines virtualMachines;

private PrivateEndpointConnections privateEndpointConnections;

private PrivateLinkResources privateLinkResources;

private ScriptActions scriptActions;

private ScriptExecutionHistories scriptExecutionHistories;

private VirtualMachines virtualMachines;

private final HDInsightManagementClient clientObject;

private HDInsightManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -243,7 +243,7 @@ public HDInsightManager authenticate(TokenCredential credential, AzureProfile pr
.append("-")
.append("com.azure.resourcemanager.hdinsight")
.append("/")
.append("1.0.0");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -300,18 +300,6 @@ public HDInsightManager authenticate(TokenCredential credential, AzureProfile pr
}
}

/**
* Gets the resource collection API of Clusters. It manages Cluster.
*
* @return Resource collection API of Clusters.
*/
public Clusters clusters() {
if (this.clusters == null) {
this.clusters = new ClustersImpl(clientObject.getClusters(), this);
}
return clusters;
}

/**
* Gets the resource collection API of Applications. It manages Application.
*
Expand All @@ -325,15 +313,15 @@ public Applications applications() {
}

/**
* Gets the resource collection API of Locations.
* Gets the resource collection API of Clusters. It manages Cluster.
*
* @return Resource collection API of Locations.
* @return Resource collection API of Clusters.
*/
public Locations locations() {
if (this.locations == null) {
this.locations = new LocationsImpl(clientObject.getLocations(), this);
public Clusters clusters() {
if (this.clusters == null) {
this.clusters = new ClustersImpl(clientObject.getClusters(), this);
}
return locations;
return clusters;
}

/**
Expand Down Expand Up @@ -361,28 +349,15 @@ public Extensions extensions() {
}

/**
* Gets the resource collection API of ScriptActions.
*
* @return Resource collection API of ScriptActions.
*/
public ScriptActions scriptActions() {
if (this.scriptActions == null) {
this.scriptActions = new ScriptActionsImpl(clientObject.getScriptActions(), this);
}
return scriptActions;
}

/**
* Gets the resource collection API of ScriptExecutionHistories.
* Gets the resource collection API of Locations.
*
* @return Resource collection API of ScriptExecutionHistories.
* @return Resource collection API of Locations.
*/
public ScriptExecutionHistories scriptExecutionHistories() {
if (this.scriptExecutionHistories == null) {
this.scriptExecutionHistories =
new ScriptExecutionHistoriesImpl(clientObject.getScriptExecutionHistories(), this);
public Locations locations() {
if (this.locations == null) {
this.locations = new LocationsImpl(clientObject.getLocations(), this);
}
return scriptExecutionHistories;
return locations;
}

/**
Expand All @@ -397,18 +372,6 @@ public Operations operations() {
return operations;
}

/**
* Gets the resource collection API of VirtualMachines.
*
* @return Resource collection API of VirtualMachines.
*/
public VirtualMachines virtualMachines() {
if (this.virtualMachines == null) {
this.virtualMachines = new VirtualMachinesImpl(clientObject.getVirtualMachines(), this);
}
return virtualMachines;
}

/**
* Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
*
Expand All @@ -434,6 +397,43 @@ public PrivateLinkResources privateLinkResources() {
return privateLinkResources;
}

/**
* Gets the resource collection API of ScriptActions.
*
* @return Resource collection API of ScriptActions.
*/
public ScriptActions scriptActions() {
if (this.scriptActions == null) {
this.scriptActions = new ScriptActionsImpl(clientObject.getScriptActions(), this);
}
return scriptActions;
}

/**
* Gets the resource collection API of ScriptExecutionHistories.
*
* @return Resource collection API of ScriptExecutionHistories.
*/
public ScriptExecutionHistories scriptExecutionHistories() {
if (this.scriptExecutionHistories == null) {
this.scriptExecutionHistories =
new ScriptExecutionHistoriesImpl(clientObject.getScriptExecutionHistories(), this);
}
return scriptExecutionHistories;
}

/**
* Gets the resource collection API of VirtualMachines.
*
* @return Resource collection API of VirtualMachines.
*/
public VirtualMachines virtualMachines() {
if (this.virtualMachines == null) {
this.virtualMachines = new VirtualMachinesImpl(clientObject.getVirtualMachines(), this);
}
return virtualMachines;
}

/**
* @return Wrapped service client HDInsightManagementClient providing direct access to the underlying auto-generated
* API implementation, based on Azure REST API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,8 @@ void updateIdentityCertificate(
* @param parameters The parameters for executing script actions.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
* status code 404.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
Expand All @@ -662,6 +664,8 @@ SyncPoller<PollResult<Void>, Void> beginExecuteScriptActions(
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
* status code 404.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
Expand All @@ -677,6 +681,8 @@ SyncPoller<PollResult<Void>, Void> beginExecuteScriptActions(
* @param parameters The parameters for executing script actions.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
* status code 404.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Expand All @@ -691,6 +697,8 @@ SyncPoller<PollResult<Void>, Void> beginExecuteScriptActions(
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
* status code 404.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@ public interface HDInsightManagementClient {
*/
Duration getDefaultPollInterval();

/**
* Gets the ClustersClient object to access its operations.
*
* @return the ClustersClient object.
*/
ClustersClient getClusters();

/**
* Gets the ApplicationsClient object to access its operations.
*
Expand All @@ -60,11 +53,11 @@ public interface HDInsightManagementClient {
ApplicationsClient getApplications();

/**
* Gets the LocationsClient object to access its operations.
* Gets the ClustersClient object to access its operations.
*
* @return the LocationsClient object.
* @return the ClustersClient object.
*/
LocationsClient getLocations();
ClustersClient getClusters();

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

/**
* Gets the ScriptActionsClient object to access its operations.
*
* @return the ScriptActionsClient object.
*/
ScriptActionsClient getScriptActions();

/**
* Gets the ScriptExecutionHistoriesClient object to access its operations.
* Gets the LocationsClient object to access its operations.
*
* @return the ScriptExecutionHistoriesClient object.
* @return the LocationsClient object.
*/
ScriptExecutionHistoriesClient getScriptExecutionHistories();
LocationsClient getLocations();

/**
* Gets the OperationsClient object to access its operations.
Expand All @@ -101,13 +87,6 @@ public interface HDInsightManagementClient {
*/
OperationsClient getOperations();

/**
* Gets the VirtualMachinesClient object to access its operations.
*
* @return the VirtualMachinesClient object.
*/
VirtualMachinesClient getVirtualMachines();

/**
* Gets the PrivateEndpointConnectionsClient object to access its operations.
*
Expand All @@ -121,4 +100,25 @@ public interface HDInsightManagementClient {
* @return the PrivateLinkResourcesClient object.
*/
PrivateLinkResourcesClient getPrivateLinkResources();

/**
* Gets the ScriptActionsClient object to access its operations.
*
* @return the ScriptActionsClient object.
*/
ScriptActionsClient getScriptActions();

/**
* Gets the ScriptExecutionHistoriesClient object to access its operations.
*
* @return the ScriptExecutionHistoriesClient object.
*/
ScriptExecutionHistoriesClient getScriptExecutionHistories();

/**
* Gets the VirtualMachinesClient object to access its operations.
*
* @return the VirtualMachinesClient object.
*/
VirtualMachinesClient getVirtualMachines();
}
Loading