diff --git a/sdk/hdinsight/arm-hdinsight/package.json b/sdk/hdinsight/arm-hdinsight/package.json index 0eae85c76c65..2faa1f83caf7 100644 --- a/sdk/hdinsight/arm-hdinsight/package.json +++ b/sdk/hdinsight/arm-hdinsight/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-hdinsight", "author": "Microsoft Corporation", "description": "HDInsightManagementClient Library with typescript type definitions for node.js and browser.", - "version": "0.17.0", + "version": "0.17.1", "dependencies": { "@azure/ms-rest-azure-js": "^2.0.1", "@azure/ms-rest-js": "^2.0.4", diff --git a/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClientContext.ts b/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClientContext.ts index 9fa654755d0c..154452e29474 100644 --- a/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClientContext.ts +++ b/sdk/hdinsight/arm-hdinsight/src/hDInsightManagementClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-hdinsight"; -const packageVersion = "0.17.0"; +const packageVersion = "0.17.1"; export class HDInsightManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; 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" + } } } }