diff --git a/src/ResourceManagement/HDInsight/HDInsight.Tests/ScenarioTests/CreateClusterTests.cs b/src/ResourceManagement/HDInsight/HDInsight.Tests/ScenarioTests/CreateClusterTests.cs index 1c8a14651b60..734d4b3251cc 100644 --- a/src/ResourceManagement/HDInsight/HDInsight.Tests/ScenarioTests/CreateClusterTests.cs +++ b/src/ResourceManagement/HDInsight/HDInsight.Tests/ScenarioTests/CreateClusterTests.cs @@ -13,6 +13,7 @@ // limitations under the License. // +using System; using System.Net; using HDInsight.Tests.Helpers; using Hyak.Common; @@ -188,6 +189,7 @@ public void TestCreateDuplicateCluster() } [Fact(Skip = "This test case will be skipped.")] + [Obsolete] public void TestCustomCreateEnableDisableConnectivity() { var handler = new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }; diff --git a/src/ResourceManagement/HDInsight/Microsoft.Azure.Management.HDInsight/Customizations/ClusterOperationsExtensions.Http.Customizations.cs b/src/ResourceManagement/HDInsight/Microsoft.Azure.Management.HDInsight/Customizations/ClusterOperationsExtensions.Http.Customizations.cs index e72cc852be5e..2298e3c35c3c 100644 --- a/src/ResourceManagement/HDInsight/Microsoft.Azure.Management.HDInsight/Customizations/ClusterOperationsExtensions.Http.Customizations.cs +++ b/src/ResourceManagement/HDInsight/Microsoft.Azure.Management.HDInsight/Customizations/ClusterOperationsExtensions.Http.Customizations.cs @@ -14,6 +14,7 @@ // limitations under the License. // +using System; using System.Threading; using System.Threading.Tasks; using Microsoft.Azure.Management.HDInsight.Models; @@ -26,7 +27,7 @@ namespace Microsoft.Azure.Management.HDInsight public static partial class ClusterOperationsExtensions { /// - /// Enables HTTP on the specified cluster. + /// This method has been deprecated and will stop working. Enables HTTP on the specified cluster. /// /// /// Reference to the @@ -47,6 +48,7 @@ public static partial class ClusterOperationsExtensions /// /// The cluster long running operation response. /// + [Obsolete("This method has been deprecated and will stop working.")] public static OperationResource EnableHttp(this IClusterOperations operations, string resourceGroupName, string clusterName, string username, string password) { @@ -61,7 +63,7 @@ public static OperationResource EnableHttp(this IClusterOperations operations, } /// - /// Enables HTTP on the specified cluster. + /// This method has been deprecated and will stop working. Enables HTTP on the specified cluster. /// /// /// Reference to the @@ -82,6 +84,7 @@ public static OperationResource EnableHttp(this IClusterOperations operations, /// /// The cluster long running operation response. /// + [Obsolete("This method has been deprecated and will stop working.")] public static Task EnableHttpAsync(this IClusterOperations operations, string resourceGroupName, string clusterName, string username, string password) { @@ -89,7 +92,7 @@ public static Task EnableHttpAsync(this IClusterOperations op } /// - /// Begins enabling HTTP on the specified cluster. + /// This method has been deprecated and will stop working. Begins enabling HTTP on the specified cluster. /// /// /// Reference to the @@ -110,6 +113,7 @@ public static Task EnableHttpAsync(this IClusterOperations op /// /// The cluster long running operation response. /// + [Obsolete("This method has been deprecated and will stop working.")] public static HDInsightOperationResponse BeginEnablingHttp(this IClusterOperations operations, string resourceGroupName, string clusterName, string username, string password) { @@ -122,7 +126,7 @@ public static HDInsightOperationResponse BeginEnablingHttp(this IClusterOperatio } /// - /// Begins enabling HTTP on the specified cluster. + /// This method has been deprecated and will stop working. Begins enabling HTTP on the specified cluster. /// /// /// Reference to the @@ -143,6 +147,7 @@ public static HDInsightOperationResponse BeginEnablingHttp(this IClusterOperatio /// /// The cluster long running operation response. /// + [Obsolete("This method has been deprecated and will stop working.")] public static Task BeginEnablingHttpAsync(this IClusterOperations operations, string resourceGroupName, string clusterName, string username, string password) { @@ -151,7 +156,7 @@ public static Task BeginEnablingHttpAsync(this IClus } /// - /// Disables HTTP on the specified cluster. + /// This method has been deprecated and will stop working. Disables HTTP on the specified cluster. /// /// /// Reference to the @@ -166,6 +171,7 @@ public static Task BeginEnablingHttpAsync(this IClus /// /// The cluster long running operation response. /// + [Obsolete("This method has been deprecated and will stop working.")] public static OperationResource DisableHttp(this IClusterOperations operations, string resourceGroupName, string clusterName) { @@ -179,7 +185,7 @@ public static OperationResource DisableHttp(this IClusterOperations operations, } /// - /// Disables HTTP on the specified cluster. + /// This method has been deprecated and will stop working. Disables HTTP on the specified cluster. /// /// /// Reference to the @@ -194,6 +200,7 @@ public static OperationResource DisableHttp(this IClusterOperations operations, /// /// The cluster long running operation response. /// + [Obsolete("This method has been deprecated and will stop working.")] public static Task DisableHttpAsync(this IClusterOperations operations, string resourceGroupName, string clusterName) { @@ -201,7 +208,7 @@ public static Task DisableHttpAsync(this IClusterOperations o } /// - /// Begins disabling HTTP on the specified cluster. + /// This method has been deprecated and will stop working. Begins disabling HTTP on the specified cluster. /// /// /// Reference to the @@ -216,6 +223,7 @@ public static Task DisableHttpAsync(this IClusterOperations o /// /// The cluster long running operation response. /// + [Obsolete("This method has been deprecated and will stop working.")] public static HDInsightOperationResponse BeginDisablingHttp(this IClusterOperations operations, string resourceGroupName, string clusterName) { @@ -229,7 +237,7 @@ public static HDInsightOperationResponse BeginDisablingHttp(this IClusterOperati } /// - /// Begins disabling HTTP on the specified cluster. + /// This method has been deprecated and will stop working. Begins disabling HTTP on the specified cluster. /// /// /// Reference to the @@ -244,6 +252,7 @@ public static HDInsightOperationResponse BeginDisablingHttp(this IClusterOperati /// /// The cluster long running operation response. /// + [Obsolete("This method has been deprecated and will stop working.")] public static Task BeginDisablingHttpAsync(this IClusterOperations operations, string resourceGroupName, string clusterName) { diff --git a/src/ResourceManagement/HDInsight/Microsoft.Azure.Management.HDInsight/Customizations/IClusterOperations.Customizations.cs b/src/ResourceManagement/HDInsight/Microsoft.Azure.Management.HDInsight/Customizations/IClusterOperations.Customizations.cs index 4ce32a664674..04dfc37993a4 100644 --- a/src/ResourceManagement/HDInsight/Microsoft.Azure.Management.HDInsight/Customizations/IClusterOperations.Customizations.cs +++ b/src/ResourceManagement/HDInsight/Microsoft.Azure.Management.HDInsight/Customizations/IClusterOperations.Customizations.cs @@ -68,7 +68,7 @@ public partial interface IClusterOperations Task BeginCreatingAsync(string resourceGroupName, string clusterName, ClusterCreateParameters clusterCreateParameters, CancellationToken cancellationToken); /// - /// Enables HTTP on the specified cluster. + /// This method has been deprecated and will stop working. Enables HTTP on the specified cluster. /// /// /// Required. The name of the resource group. @@ -88,11 +88,12 @@ public partial interface IClusterOperations /// /// The cluster long running operation response. /// + [Obsolete("This method has been deprecated and will stop working.")] Task EnableHttpAsync(string resourceGroupName, string clusterName, string username, string password, CancellationToken cancellationToken); /// - /// Begins enabling HTTP on the specified cluster. + /// This method has been deprecated and will stop working. Begins enabling HTTP on the specified cluster. /// /// /// Required. The name of the resource group. @@ -112,11 +113,12 @@ Task EnableHttpAsync(string resourceGroupName, string cluster /// /// The cluster long running operation response. /// + [Obsolete("This method has been deprecated and will stop working.")] Task BeginEnablingHttpAsync(string resourceGroupName, string clusterName, string username, string password, CancellationToken cancellationToken); /// - /// Disables HTTP on the specified cluster. + /// This method has been deprecated and will stop working. Disables HTTP on the specified cluster. /// /// /// Required. The name of the resource group. @@ -130,10 +132,11 @@ Task BeginEnablingHttpAsync(string resourceGroupName /// /// The cluster long running operation response. /// + [Obsolete("This method has been deprecated and will stop working.")] Task DisableHttpAsync(string resourceGroupName, string clusterName, CancellationToken cancellationToken); /// - /// Begins disabling HTTP on the specified cluster. + /// This method has been deprecated and will stop working. Begins disabling HTTP on the specified cluster. /// /// /// Required. The name of the resource group. @@ -147,6 +150,7 @@ Task BeginEnablingHttpAsync(string resourceGroupName /// /// The cluster long running operation response. /// + [Obsolete("This method has been deprecated and will stop working.")] Task BeginDisablingHttpAsync(string resourceGroupName, string clusterName, CancellationToken cancellationToken); /// diff --git a/src/ResourceManagement/HDInsight/Microsoft.Azure.Management.HDInsight/Management.HDInsight.csproj b/src/ResourceManagement/HDInsight/Microsoft.Azure.Management.HDInsight/Management.HDInsight.csproj index a95b0ce31ed1..5178e390484e 100644 --- a/src/ResourceManagement/HDInsight/Microsoft.Azure.Management.HDInsight/Management.HDInsight.csproj +++ b/src/ResourceManagement/HDInsight/Microsoft.Azure.Management.HDInsight/Management.HDInsight.csproj @@ -7,7 +7,15 @@ Microsoft Azure HDInsight Management;HDInsight;HDInsight Management true