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] [HDInsight]Add New API Version 2023-08-15-Preview #6331

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.2 (Unreleased)
## 1.0.0-beta.1 (2023-08-21)

- 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-08-preview. 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-2023-04-preview. 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-2023-08-preview. 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.1.0-beta.1</version>
<version>1.1.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
146 changes: 75 additions & 71 deletions sdk/hdinsight/azure-resourcemanager-hdinsight/SAMPLE.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sdk/hdinsight/azure-resourcemanager-hdinsight/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,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-2023-04-preview.</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-2023-08-preview.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public HDInsightManager authenticate(TokenCredential credential, AzureProfile pr
.append("-")
.append("com.azure.resourcemanager.hdinsight")
.append("/")
.append("1.1.0-beta.1");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -435,8 +435,10 @@ public VirtualMachines virtualMachines() {
}

/**
* @return Wrapped service client HDInsightManagementClient providing direct access to the underlying auto-generated
* API implementation, based on Azure REST API.
* Gets wrapped service client HDInsightManagementClient providing direct access to the underlying auto-generated
* API implementation, based on Azure REST API.
*
* @return Wrapped service client HDInsightManagementClient.
*/
public HDInsightManagementClient serviceClient() {
return this.clientObject;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public HDInsightManagementClientImpl buildClient() {
localSerializerAdapter,
localDefaultPollInterval,
localEnvironment,
subscriptionId,
this.subscriptionId,
localEndpoint);
return client;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public VirtualMachinesClient getVirtualMachines() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
this.apiVersion = "2023-04-15-preview";
this.apiVersion = "2023-08-15-preview";
this.applications = new ApplicationsClientImpl(this);
this.clusters = new ClustersClientImpl(this);
this.configurations = new ConfigurationsClientImpl(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@
/** The network properties. */
@Fluent
public final class NetworkProperties {
/*
* A value to describe how the outbound dependencies of a HDInsight cluster are managed. 'Managed' means that the
* outbound dependencies are managed by the HDInsight service. 'External' means that the outbound dependencies are
* managed by a customer specific solution.
*/
@JsonProperty(value = "outboundDependenciesManagedType")
private OutboundDependenciesManagedType outboundDependenciesManagedType;

/*
* The direction for the resource provider connection.
*/
Expand All @@ -26,6 +34,31 @@ public final class NetworkProperties {
public NetworkProperties() {
}

/**
* Get the outboundDependenciesManagedType property: A value to describe how the outbound dependencies of a
* HDInsight cluster are managed. 'Managed' means that the outbound dependencies are managed by the HDInsight
* service. 'External' means that the outbound dependencies are managed by a customer specific solution.
*
* @return the outboundDependenciesManagedType value.
*/
public OutboundDependenciesManagedType outboundDependenciesManagedType() {
return this.outboundDependenciesManagedType;
}

/**
* Set the outboundDependenciesManagedType property: A value to describe how the outbound dependencies of a
* HDInsight cluster are managed. 'Managed' means that the outbound dependencies are managed by the HDInsight
* service. 'External' means that the outbound dependencies are managed by a customer specific solution.
*
* @param outboundDependenciesManagedType the outboundDependenciesManagedType value to set.
* @return the NetworkProperties object itself.
*/
public NetworkProperties withOutboundDependenciesManagedType(
OutboundDependenciesManagedType outboundDependenciesManagedType) {
this.outboundDependenciesManagedType = outboundDependenciesManagedType;
return this;
}

/**
* Get the resourceProviderConnection property: The direction for the resource provider connection.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.hdinsight.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/**
* A value to describe how the outbound dependencies of a HDInsight cluster are managed. 'Managed' means that the
* outbound dependencies are managed by the HDInsight service. 'External' means that the outbound dependencies are
* managed by a customer specific solution.
*/
public final class OutboundDependenciesManagedType extends ExpandableStringEnum<OutboundDependenciesManagedType> {
/** Static value Managed for OutboundDependenciesManagedType. */
public static final OutboundDependenciesManagedType MANAGED = fromString("Managed");

/** Static value External for OutboundDependenciesManagedType. */
public static final OutboundDependenciesManagedType EXTERNAL = fromString("External");

/**
* Creates a new instance of OutboundDependenciesManagedType value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public OutboundDependenciesManagedType() {
}

/**
* Creates or finds a OutboundDependenciesManagedType from its string representation.
*
* @param name a name to look for.
* @return the corresponding OutboundDependenciesManagedType.
*/
@JsonCreator
public static OutboundDependenciesManagedType fromString(String name) {
return fromString(name, OutboundDependenciesManagedType.class);
}

/**
* Gets known OutboundDependenciesManagedType values.
*
* @return known OutboundDependenciesManagedType values.
*/
public static Collection<OutboundDependenciesManagedType> values() {
return values(OutboundDependenciesManagedType.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/** Samples for Applications Create. */
public final class ApplicationsCreateSamples {
/*
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateApplication.json
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-08-15-preview/examples/CreateApplication.json
*/
/**
* Sample code: Create Application.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/** Samples for Applications Delete. */
public final class ApplicationsDeleteSamples {
/*
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeleteApplication.json
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-08-15-preview/examples/DeleteApplication.json
*/
/**
* Sample code: Delete Application from HDInsight cluster.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/** Samples for Applications GetAzureAsyncOperationStatus. */
public final class ApplicationsGetAzureAsyncOperationStatusSamples {
/*
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetApplicationCreationAsyncOperationStatus.json
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-08-15-preview/examples/GetApplicationCreationAsyncOperationStatus.json
*/
/**
* Sample code: Get the azure async operation status.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/** Samples for Applications Get. */
public final class ApplicationsGetSamples {
/*
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetApplicationInProgress.json
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-08-15-preview/examples/GetApplicationInProgress.json
*/
/**
* Sample code: Get application on HDInsight cluster creation in progress.
Expand All @@ -20,7 +20,7 @@ public static void getApplicationOnHDInsightClusterCreationInProgress(
}

/*
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetApplicationCreated.json
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-08-15-preview/examples/GetApplicationCreated.json
*/
/**
* Sample code: Get application on HDInsight cluster successfully created.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/** Samples for Applications ListByCluster. */
public final class ApplicationsListByClusterSamples {
/*
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetAllApplications.json
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-08-15-preview/examples/GetAllApplications.json
*/
/**
* Sample code: Get All Applications for an HDInsight cluster.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
/** Samples for Clusters Create. */
public final class ClustersCreateSamples {
/*
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateLinuxHadoopSshPassword.json
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-08-15-preview/examples/CreateLinuxHadoopSshPassword.json
*/
/**
* Sample code: Create Hadoop on Linux cluster with SSH password.
Expand Down Expand Up @@ -126,7 +126,7 @@ public static void createHadoopOnLinuxClusterWithSSHPassword(
}

/*
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateKafkaClusterWithKafkaRestProxy.json
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-08-15-preview/examples/CreateKafkaClusterWithKafkaRestProxy.json
*/
/**
* Sample code: Create Kafka cluster with Kafka Rest Proxy.
Expand Down Expand Up @@ -223,7 +223,7 @@ public static void createKafkaClusterWithKafkaRestProxy(
}

/*
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithAutoscaleConfig.json
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-08-15-preview/examples/CreateHDInsightClusterWithAutoscaleConfig.json
*/
/**
* Sample code: Create HDInsight cluster with Autoscale configuration.
Expand Down Expand Up @@ -341,7 +341,7 @@ public static void createHDInsightClusterWithAutoscaleConfiguration(
}

/*
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateLinuxHadoopSshPublicKey.json
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-08-15-preview/examples/CreateLinuxHadoopSshPublicKey.json
*/
/**
* Sample code: Create Hadoop on Linux cluster with SSH public key.
Expand Down Expand Up @@ -430,7 +430,7 @@ public static void createHadoopOnLinuxClusterWithSSHPublicKey(
}

/*
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithAvailabilityZones.json
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-08-15-preview/examples/CreateHDInsightClusterWithAvailabilityZones.json
*/
/**
* Sample code: Create cluster with availability zones.
Expand Down Expand Up @@ -544,7 +544,7 @@ public static void createClusterWithAvailabilityZones(com.azure.resourcemanager.
}

/*
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateLinuxHadoopAdlsGen2.json
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-08-15-preview/examples/CreateLinuxHadoopAdlsGen2.json
*/
/**
* Sample code: Create Hadoop cluster with Azure Data Lake Storage Gen 2.
Expand Down Expand Up @@ -626,7 +626,7 @@ public static void createHadoopClusterWithAzureDataLakeStorageGen2(
}

/*
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateLinuxHadoopSecureHadoop.json
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-08-15-preview/examples/CreateLinuxHadoopSecureHadoop.json
*/
/**
* Sample code: Create Secure Hadoop cluster.
Expand Down Expand Up @@ -762,7 +762,7 @@ public static void createSecureHadoopCluster(com.azure.resourcemanager.hdinsight
}

/*
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateLinuxSparkSshPassword.json
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-08-15-preview/examples/CreateLinuxSparkSshPassword.json
*/
/**
* Sample code: Create Spark on Linux Cluster with SSH password.
Expand Down Expand Up @@ -834,7 +834,7 @@ public static void createSparkOnLinuxClusterWithSSHPassword(
}

/*
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithCustomNetworkProperties.json
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-08-15-preview/examples/CreateHDInsightClusterWithCustomNetworkProperties.json
*/
/**
* Sample code: Create cluster with network properties.
Expand Down Expand Up @@ -933,7 +933,7 @@ public static void createClusterWithNetworkProperties(com.azure.resourcemanager.
}

/*
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithTLS12.json
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-08-15-preview/examples/CreateHDInsightClusterWithTLS12.json
*/
/**
* Sample code: Create cluster with TLS 1.2.
Expand Down Expand Up @@ -1012,7 +1012,7 @@ public static void createClusterWithTLS12(com.azure.resourcemanager.hdinsight.HD
}

/*
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithEncryptionAtHost.json
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-08-15-preview/examples/CreateHDInsightClusterWithEncryptionAtHost.json
*/
/**
* Sample code: Create cluster with encryption at host.
Expand Down Expand Up @@ -1091,7 +1091,7 @@ public static void createClusterWithEncryptionAtHost(com.azure.resourcemanager.h
}

/*
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithEncryptionInTransit.json
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-08-15-preview/examples/CreateHDInsightClusterWithEncryptionInTransit.json
*/
/**
* Sample code: Create cluster with encryption in transit.
Expand Down Expand Up @@ -1171,7 +1171,7 @@ public static void createClusterWithEncryptionInTransit(
}

/*
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/CreateHDInsightClusterWithComputeIsolationProperties.json
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-08-15-preview/examples/CreateHDInsightClusterWithComputeIsolationProperties.json
*/
/**
* Sample code: Create cluster with compute isolation properties.
Expand Down Expand Up @@ -1254,6 +1254,7 @@ public static void createClusterWithComputeIsolationProperties(
.create();
}

// Use "Map.of" if available
@SuppressWarnings("unchecked")
private static <T> Map<String, T> mapOf(Object... inputs) {
Map<String, T> map = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/** Samples for Clusters Delete. */
public final class ClustersDeleteSamples {
/*
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/DeleteLinuxHadoopCluster.json
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-08-15-preview/examples/DeleteLinuxHadoopCluster.json
*/
/**
* Sample code: Delete Hadoop on Linux cluster.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/** Samples for Clusters ExecuteScriptActions. */
public final class ClustersExecuteScriptActionsSamples {
/*
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/PostExecuteScriptAction.json
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-08-15-preview/examples/PostExecuteScriptAction.json
*/
/**
* Sample code: Execute script action on HDInsight cluster.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/** Samples for Clusters GetAzureAsyncOperationStatus. */
public final class ClustersGetAzureAsyncOperationStatusSamples {
/*
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-04-15-preview/examples/GetClusterCreatingAsyncOperationStatus.json
* x-ms-original-file: specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2023-08-15-preview/examples/GetClusterCreatingAsyncOperationStatus.json
*/
/**
* Sample code: Get Async Operation Status of Creating Cluster.
Expand Down
Loading