diff --git a/sdk/hdinsight/arm-hdinsight/src/models/applicationsMappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/applicationsMappers.ts index 3d44ac8aaf71..4316d47e2df7 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/applicationsMappers.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/applicationsMappers.ts @@ -33,6 +33,7 @@ export { HardwareProfile, KafkaRestProperties, LinuxOperatingSystemProfile, + NetworkSettings, OsProfile, ProxyResource, QuotaInfo, diff --git a/sdk/hdinsight/arm-hdinsight/src/models/clustersMappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/clustersMappers.ts index 6a20ca438272..388862066391 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/clustersMappers.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/clustersMappers.ts @@ -40,6 +40,7 @@ export { HardwareProfile, KafkaRestProperties, LinuxOperatingSystemProfile, + NetworkSettings, OsProfile, ProxyResource, QuotaInfo, diff --git a/sdk/hdinsight/arm-hdinsight/src/models/index.ts b/sdk/hdinsight/arm-hdinsight/src/models/index.ts index 1225bed59363..7bf3ce82133c 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/index.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/index.ts @@ -382,6 +382,22 @@ export interface StorageProfile { storageaccounts?: StorageAccount[]; } +/** + * The network settings. + */ +export interface NetworkSettings { + /** + * Specifies whether public network access is enabled for inbound and outbound, or outbound only. + * Possible values include: 'InboundAndOutbound', 'OutboundOnly' + */ + publicNetworkAccess?: PublicNetworkAccess; + /** + * The mechanism through which the cluster will have outbound access to the public network. + * Possible values include: 'PublicLoadBalancer', 'UDR' + */ + outboundOnlyPublicNetworkAccessType?: OutboundOnlyPublicNetworkAccessType; +} + /** * The disk encryption properties */ @@ -453,6 +469,10 @@ export interface ClusterCreateProperties { * The minimal supported tls version. */ minSupportedTlsVersion?: string; + /** + * The network settings. + */ + networkSettings?: NetworkSettings; } /** @@ -644,6 +664,10 @@ export interface ClusterGetProperties { * The minimal supported tls version. */ minSupportedTlsVersion?: string; + /** + * The network settings. + */ + networkSettings?: NetworkSettings; } /** @@ -1568,6 +1592,22 @@ export type DirectoryType = 'ActiveDirectory'; */ export type DaysOfWeek = 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday' | 'Sunday'; +/** + * Defines values for PublicNetworkAccess. + * Possible values include: 'InboundAndOutbound', 'OutboundOnly' + * @readonly + * @enum {string} + */ +export type PublicNetworkAccess = 'InboundAndOutbound' | 'OutboundOnly'; + +/** + * Defines values for OutboundOnlyPublicNetworkAccessType. + * Possible values include: 'PublicLoadBalancer', 'UDR' + * @readonly + * @enum {string} + */ +export type OutboundOnlyPublicNetworkAccessType = 'PublicLoadBalancer' | 'UDR'; + /** * Defines values for OSType. * Possible values include: 'Windows', 'Linux' diff --git a/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts index cf5648465ce8..36c7d8b7bcdc 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts @@ -665,6 +665,28 @@ export const StorageProfile: msRest.CompositeMapper = { } }; +export const NetworkSettings: msRest.CompositeMapper = { + serializedName: "NetworkSettings", + type: { + name: "Composite", + className: "NetworkSettings", + modelProperties: { + publicNetworkAccess: { + serializedName: "publicNetworkAccess", + type: { + name: "String" + } + }, + outboundOnlyPublicNetworkAccessType: { + serializedName: "outboundOnlyPublicNetworkAccessType", + type: { + name: "String" + } + } + } + } +}; + export const DiskEncryptionProperties: msRest.CompositeMapper = { serializedName: "DiskEncryptionProperties", type: { @@ -784,6 +806,13 @@ export const ClusterCreateProperties: msRest.CompositeMapper = { type: { name: "String" } + }, + networkSettings: { + serializedName: "networkSettings", + type: { + name: "Composite", + className: "NetworkSettings" + } } } } @@ -1125,6 +1154,13 @@ export const ClusterGetProperties: msRest.CompositeMapper = { type: { name: "String" } + }, + networkSettings: { + serializedName: "networkSettings", + type: { + name: "Composite", + className: "NetworkSettings" + } } } }