-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[HDInsight] Support compute isolation feature and return private ip a…
…ddress feature (#14032) * Support compute isolation feature and return private ip address feature * Fix bad code style Co-authored-by: Zhenyu Zhou <zhezhou@microsoft.com>
- Loading branch information
1 parent
e6782d3
commit 506c078
Showing
12 changed files
with
3,248 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2,969 changes: 2,969 additions & 0 deletions
2,969
...sight.Test.ScenarioTests.HDInsightClusterTests/TestCreateClusterWithComputeIsolation.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
src/HDInsight/HDInsight/Models/Management/AzureHDInsightComputeIsolationProperties.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// ---------------------------------------------------------------------------------- | ||
// | ||
// Copyright Microsoft Corporation | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// ---------------------------------------------------------------------------------- | ||
|
||
using Microsoft.Azure.Management.HDInsight.Models; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Microsoft.Azure.Commands.HDInsight.Models | ||
{ | ||
public class AzureHDInsightComputeIsolationProperties | ||
{ | ||
public AzureHDInsightComputeIsolationProperties() { } | ||
|
||
public AzureHDInsightComputeIsolationProperties(bool? enableComputeIsolation = null, string hostSku = null) | ||
{ | ||
EnableComputeIsolation = enableComputeIsolation; | ||
HostSku = hostSku; | ||
} | ||
|
||
public AzureHDInsightComputeIsolationProperties(ComputeIsolationProperties computeIsolationProperties = null) | ||
{ | ||
EnableComputeIsolation = computeIsolationProperties?.EnableComputeIsolation; | ||
HostSku = computeIsolationProperties?.HostSku; | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets the direction for the resource provider connection. Possible values include: 'Inbound', 'Outbound' | ||
/// </summary> | ||
public bool? EnableComputeIsolation { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets indicates whether or not private link is enabled. Possible values include: 'Disabled', 'Enabled' | ||
/// </summary> | ||
public string HostSku { get; set; } | ||
} | ||
} |
69 changes: 69 additions & 0 deletions
69
src/HDInsight/HDInsight/Models/Management/AzureHDInsightConnectivityEndpoint.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
// ---------------------------------------------------------------------------------- | ||
// | ||
// Copyright Microsoft Corporation | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// ---------------------------------------------------------------------------------- | ||
|
||
using Microsoft.Azure.Management.HDInsight.Models; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Microsoft.Azure.Commands.HDInsight.Models | ||
{ | ||
public class AzureHDInsightConnectivityEndpoint | ||
{ | ||
public AzureHDInsightConnectivityEndpoint() { } | ||
|
||
public AzureHDInsightConnectivityEndpoint(string name = null, string protocol = null, string location = null, int? port = null, string privateIPAddress = null) | ||
{ | ||
Name = name; | ||
Protocol = protocol; | ||
Location = location; | ||
Port = port; | ||
PrivateIPAddress = privateIPAddress; | ||
} | ||
|
||
public AzureHDInsightConnectivityEndpoint(ConnectivityEndpoint connectivityEndpoint = null) | ||
{ | ||
Name = connectivityEndpoint?.Name; | ||
Protocol = connectivityEndpoint?.Protocol; | ||
Location = connectivityEndpoint?.Location; | ||
Port = connectivityEndpoint?.Port; | ||
PrivateIPAddress = connectivityEndpoint?.PrivateIPAddress; | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets the name of connectivity endpoint. | ||
/// </summary> | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the protocol of connectivity endpoint. | ||
/// </summary> | ||
public string Protocol { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the location of connectivity endpoint. | ||
/// </summary> | ||
public string Location { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the port of connectivity endpoint. | ||
/// </summary> | ||
public int? Port { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the private ip address of connectivity endpoint. | ||
/// </summary> | ||
public string PrivateIPAddress { get; set; } | ||
} | ||
} |
Oops, something went wrong.