diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ClusterCreateProperties.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ClusterCreateProperties.cs index b81b136c9c32..c18112019b2b 100644 --- a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ClusterCreateProperties.cs +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ClusterCreateProperties.cs @@ -46,8 +46,8 @@ public ClusterCreateProperties() /// encryption-in-transit properties. /// The minimal supported tls /// version. - /// The network settings. - public ClusterCreateProperties(string clusterVersion = default(string), OSType? osType = default(OSType?), Tier? tier = default(Tier?), ClusterDefinition clusterDefinition = default(ClusterDefinition), KafkaRestProperties kafkaRestProperties = default(KafkaRestProperties), SecurityProfile securityProfile = default(SecurityProfile), ComputeProfile computeProfile = default(ComputeProfile), StorageProfile storageProfile = default(StorageProfile), DiskEncryptionProperties diskEncryptionProperties = default(DiskEncryptionProperties), EncryptionInTransitProperties encryptionInTransitProperties = default(EncryptionInTransitProperties), string minSupportedTlsVersion = default(string), NetworkSettings networkSettings = default(NetworkSettings)) + /// The network properties. + public ClusterCreateProperties(string clusterVersion = default(string), OSType? osType = default(OSType?), Tier? tier = default(Tier?), ClusterDefinition clusterDefinition = default(ClusterDefinition), KafkaRestProperties kafkaRestProperties = default(KafkaRestProperties), SecurityProfile securityProfile = default(SecurityProfile), ComputeProfile computeProfile = default(ComputeProfile), StorageProfile storageProfile = default(StorageProfile), DiskEncryptionProperties diskEncryptionProperties = default(DiskEncryptionProperties), EncryptionInTransitProperties encryptionInTransitProperties = default(EncryptionInTransitProperties), string minSupportedTlsVersion = default(string), NetworkProperties networkProperties = default(NetworkProperties)) { ClusterVersion = clusterVersion; OsType = osType; @@ -60,7 +60,7 @@ public ClusterCreateProperties() DiskEncryptionProperties = diskEncryptionProperties; EncryptionInTransitProperties = encryptionInTransitProperties; MinSupportedTlsVersion = minSupportedTlsVersion; - NetworkSettings = networkSettings; + NetworkProperties = networkProperties; CustomInit(); } @@ -138,10 +138,10 @@ public ClusterCreateProperties() public string MinSupportedTlsVersion { get; set; } /// - /// Gets or sets the network settings. + /// Gets or sets the network properties. /// - [JsonProperty(PropertyName = "networkSettings")] - public NetworkSettings NetworkSettings { get; set; } + [JsonProperty(PropertyName = "networkProperties")] + public NetworkProperties NetworkProperties { get; set; } } } diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ClusterGetProperties.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ClusterGetProperties.cs index b882dff14dc4..f13958bf1f70 100644 --- a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ClusterGetProperties.cs +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ClusterGetProperties.cs @@ -38,6 +38,7 @@ public ClusterGetProperties() /// include: 'Windows', 'Linux' /// The cluster tier. Possible values include: /// 'Standard', 'Premium' + /// The cluster id. /// The cluster kafka rest proxy /// configuration. /// The security profile. @@ -58,12 +59,13 @@ public ClusterGetProperties() /// encryption-in-transit properties. /// The minimal supported tls /// version. - /// The network settings. - public ClusterGetProperties(ClusterDefinition clusterDefinition, string clusterVersion = default(string), OSType? osType = default(OSType?), Tier? tier = default(Tier?), KafkaRestProperties kafkaRestProperties = default(KafkaRestProperties), SecurityProfile securityProfile = default(SecurityProfile), ComputeProfile computeProfile = default(ComputeProfile), HDInsightClusterProvisioningState? provisioningState = default(HDInsightClusterProvisioningState?), string createdDate = default(string), string clusterState = default(string), QuotaInfo quotaInfo = default(QuotaInfo), IList errors = default(IList), IList connectivityEndpoints = default(IList), DiskEncryptionProperties diskEncryptionProperties = default(DiskEncryptionProperties), EncryptionInTransitProperties encryptionInTransitProperties = default(EncryptionInTransitProperties), string minSupportedTlsVersion = default(string), NetworkSettings networkSettings = default(NetworkSettings)) + /// The network properties. + public ClusterGetProperties(ClusterDefinition clusterDefinition, string clusterVersion = default(string), OSType? osType = default(OSType?), Tier? tier = default(Tier?), string clusterId = default(string), KafkaRestProperties kafkaRestProperties = default(KafkaRestProperties), SecurityProfile securityProfile = default(SecurityProfile), ComputeProfile computeProfile = default(ComputeProfile), HDInsightClusterProvisioningState? provisioningState = default(HDInsightClusterProvisioningState?), string createdDate = default(string), string clusterState = default(string), QuotaInfo quotaInfo = default(QuotaInfo), IList errors = default(IList), IList connectivityEndpoints = default(IList), DiskEncryptionProperties diskEncryptionProperties = default(DiskEncryptionProperties), EncryptionInTransitProperties encryptionInTransitProperties = default(EncryptionInTransitProperties), string minSupportedTlsVersion = default(string), NetworkProperties networkProperties = default(NetworkProperties)) { ClusterVersion = clusterVersion; OsType = osType; Tier = tier; + ClusterId = clusterId; ClusterDefinition = clusterDefinition; KafkaRestProperties = kafkaRestProperties; SecurityProfile = securityProfile; @@ -77,7 +79,7 @@ public ClusterGetProperties() DiskEncryptionProperties = diskEncryptionProperties; EncryptionInTransitProperties = encryptionInTransitProperties; MinSupportedTlsVersion = minSupportedTlsVersion; - NetworkSettings = networkSettings; + NetworkProperties = networkProperties; CustomInit(); } @@ -106,6 +108,12 @@ public ClusterGetProperties() [JsonProperty(PropertyName = "tier")] public Tier? Tier { get; set; } + /// + /// Gets or sets the cluster id. + /// + [JsonProperty(PropertyName = "clusterId")] + public string ClusterId { get; set; } + /// /// Gets or sets the cluster definition. /// @@ -187,10 +195,10 @@ public ClusterGetProperties() public string MinSupportedTlsVersion { get; set; } /// - /// Gets or sets the network settings. + /// Gets or sets the network properties. /// - [JsonProperty(PropertyName = "networkSettings")] - public NetworkSettings NetworkSettings { get; set; } + [JsonProperty(PropertyName = "networkProperties")] + public NetworkProperties NetworkProperties { get; set; } /// /// Validate the object. diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/NetworkProperties.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/NetworkProperties.cs new file mode 100644 index 000000000000..80963dcb2eda --- /dev/null +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/NetworkProperties.cs @@ -0,0 +1,64 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.HDInsight.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The network properties. + /// + public partial class NetworkProperties + { + /// + /// Initializes a new instance of the NetworkProperties class. + /// + public NetworkProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the NetworkProperties class. + /// + /// The direction for the + /// resource provider connection. Possible values include: 'Inbound', + /// 'Outbound' + /// Indicates whether or not private link is + /// enabled. Possible values include: 'Disabled', 'Enabled' + public NetworkProperties(string resourceProviderConnection = default(string), string privateLink = default(string)) + { + ResourceProviderConnection = resourceProviderConnection; + PrivateLink = privateLink; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the direction for the resource provider connection. + /// Possible values include: 'Inbound', 'Outbound' + /// + [JsonProperty(PropertyName = "resourceProviderConnection")] + public string ResourceProviderConnection { get; set; } + + /// + /// Gets or sets indicates whether or not private link is enabled. + /// Possible values include: 'Disabled', 'Enabled' + /// + [JsonProperty(PropertyName = "privateLink")] + public string PrivateLink { get; set; } + + } +} diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/NetworkSettings.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/NetworkSettings.cs deleted file mode 100644 index c2fefa587ade..000000000000 --- a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/NetworkSettings.cs +++ /dev/null @@ -1,69 +0,0 @@ -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for -// license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is -// regenerated. -// - -namespace Microsoft.Azure.Management.HDInsight.Models -{ - using Newtonsoft.Json; - using System.Linq; - - /// - /// The network settings. - /// - public partial class NetworkSettings - { - /// - /// Initializes a new instance of the NetworkSettings class. - /// - public NetworkSettings() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the NetworkSettings class. - /// - /// Specifies whether public network - /// access is enabled for inbound and outbound, or outbound only. - /// Possible values include: 'InboundAndOutbound', - /// 'OutboundOnly' - /// The mechanism - /// through which the cluster will have outbound access to the public - /// network. Possible values include: 'PublicLoadBalancer', - /// 'UDR' - public NetworkSettings(string publicNetworkAccess = default(string), string outboundOnlyPublicNetworkAccessType = default(string)) - { - PublicNetworkAccess = publicNetworkAccess; - OutboundOnlyPublicNetworkAccessType = outboundOnlyPublicNetworkAccessType; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets or sets specifies whether public network access is enabled for - /// inbound and outbound, or outbound only. Possible values include: - /// 'InboundAndOutbound', 'OutboundOnly' - /// - [JsonProperty(PropertyName = "publicNetworkAccess")] - public string PublicNetworkAccess { get; set; } - - /// - /// Gets or sets the mechanism through which the cluster will have - /// outbound access to the public network. Possible values include: - /// 'PublicLoadBalancer', 'UDR' - /// - [JsonProperty(PropertyName = "outboundOnlyPublicNetworkAccessType")] - public string OutboundOnlyPublicNetworkAccessType { get; set; } - - } -} diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/PublicNetworkAccess.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/PrivateLink.cs similarity index 67% rename from sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/PublicNetworkAccess.cs rename to sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/PrivateLink.cs index 310812ccc836..b81434346c59 100644 --- a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/PublicNetworkAccess.cs +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/PrivateLink.cs @@ -12,11 +12,11 @@ namespace Microsoft.Azure.Management.HDInsight.Models { /// - /// Defines values for PublicNetworkAccess. + /// Defines values for PrivateLink. /// - public static class PublicNetworkAccess + public static class PrivateLink { - public const string InboundAndOutbound = "InboundAndOutbound"; - public const string OutboundOnly = "OutboundOnly"; + public const string Disabled = "Disabled"; + public const string Enabled = "Enabled"; } } diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/OutboundOnlyPublicNetworkAccessType.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ResourceProviderConnection.cs similarity index 66% rename from sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/OutboundOnlyPublicNetworkAccessType.cs rename to sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ResourceProviderConnection.cs index ffff3c30cd63..65e3234b93bc 100644 --- a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/OutboundOnlyPublicNetworkAccessType.cs +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/Models/ResourceProviderConnection.cs @@ -12,11 +12,11 @@ namespace Microsoft.Azure.Management.HDInsight.Models { /// - /// Defines values for OutboundOnlyPublicNetworkAccessType. + /// Defines values for ResourceProviderConnection. /// - public static class OutboundOnlyPublicNetworkAccessType + public static class ResourceProviderConnection { - public const string PublicLoadBalancer = "PublicLoadBalancer"; - public const string UDR = "UDR"; + public const string Inbound = "Inbound"; + public const string Outbound = "Outbound"; } } diff --git a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/SdkInfo_HDInsightManagementClient.cs b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/SdkInfo_HDInsightManagementClient.cs index 27a79f62d50e..0a7e2fcd1f2e 100644 --- a/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/SdkInfo_HDInsightManagementClient.cs +++ b/sdk/hdinsight/Microsoft.Azure.Management.HDInsight/src/Generated/SdkInfo_HDInsightManagementClient.cs @@ -31,16 +31,5 @@ public static IEnumerable> ApiInfo_HDInsightManage }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/hdinsight/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\\source\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "afbd723252e704e2763de2ec324a8263d67e8867"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -