From c3e2ce409cfc4ab691df6c50f6270ad1699043de Mon Sep 17 00:00:00 2001 From: colawwj <70128817+colawwj@users.noreply.github.com> Date: Wed, 28 Oct 2020 11:18:05 +0800 Subject: [PATCH] Sdk automation/@azure arm hdinsight (#11838) Co-authored-by: SDK Automation --- sdk/hdinsight/arm-hdinsight/package.json | 2 +- .../src/hDInsightManagementClientContext.ts | 2 +- .../src/models/applicationsMappers.ts | 2 +- .../src/models/clustersMappers.ts | 2 +- .../arm-hdinsight/src/models/index.ts | 40 ++++++++++--------- .../arm-hdinsight/src/models/mappers.ts | 32 +++++++++------ 6 files changed, 45 insertions(+), 35 deletions(-) diff --git a/sdk/hdinsight/arm-hdinsight/package.json b/sdk/hdinsight/arm-hdinsight/package.json index b6167da68f1d..89443ca80d18 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.19.0", + "version": "0.20.0", "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 5824e1676e8e..685ff901b801 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.19.0"; +const packageVersion = "0.20.0"; 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 a3665513f1e2..c231a43e7760 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/applicationsMappers.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/applicationsMappers.ts @@ -34,7 +34,7 @@ export { HardwareProfile, KafkaRestProperties, LinuxOperatingSystemProfile, - NetworkSettings, + NetworkProperties, OsProfile, ProxyResource, QuotaInfo, diff --git a/sdk/hdinsight/arm-hdinsight/src/models/clustersMappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/clustersMappers.ts index 4d4383de790c..d5894c7a89e8 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/clustersMappers.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/clustersMappers.ts @@ -42,7 +42,7 @@ export { HardwareProfile, KafkaRestProperties, LinuxOperatingSystemProfile, - NetworkSettings, + NetworkProperties, OsProfile, ProxyResource, QuotaInfo, diff --git a/sdk/hdinsight/arm-hdinsight/src/models/index.ts b/sdk/hdinsight/arm-hdinsight/src/models/index.ts index 945e3f3b1640..951af5e13e1b 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/index.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/index.ts @@ -393,19 +393,19 @@ export interface StorageProfile { } /** - * The network settings. + * The network properties. */ -export interface NetworkSettings { +export interface NetworkProperties { /** - * Specifies whether public network access is enabled for inbound and outbound, or outbound only. - * Possible values include: 'InboundAndOutbound', 'OutboundOnly' + * The direction for the resource provider connection. Possible values include: 'Inbound', + * 'Outbound' */ - publicNetworkAccess?: PublicNetworkAccess; + resourceProviderConnection?: ResourceProviderConnection; /** - * The mechanism through which the cluster will have outbound access to the public network. - * Possible values include: 'PublicLoadBalancer', 'UDR' + * Indicates whether or not private link is enabled. Possible values include: 'Disabled', + * 'Enabled' */ - outboundOnlyPublicNetworkAccessType?: OutboundOnlyPublicNetworkAccessType; + privateLink?: PrivateLink; } /** @@ -499,9 +499,9 @@ export interface ClusterCreateProperties { */ minSupportedTlsVersion?: string; /** - * The network settings. + * The network properties. */ - networkSettings?: NetworkSettings; + networkProperties?: NetworkProperties; } /** @@ -644,6 +644,10 @@ export interface ClusterGetProperties { * The cluster tier. Possible values include: 'Standard', 'Premium' */ tier?: Tier; + /** + * The cluster id. + */ + clusterId?: string; /** * The cluster definition. */ @@ -698,9 +702,9 @@ export interface ClusterGetProperties { */ minSupportedTlsVersion?: string; /** - * The network settings. + * The network properties. */ - networkSettings?: NetworkSettings; + networkProperties?: NetworkProperties; } /** @@ -1626,20 +1630,20 @@ export type DirectoryType = 'ActiveDirectory'; export type DaysOfWeek = 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday' | 'Sunday'; /** - * Defines values for PublicNetworkAccess. - * Possible values include: 'InboundAndOutbound', 'OutboundOnly' + * Defines values for ResourceProviderConnection. + * Possible values include: 'Inbound', 'Outbound' * @readonly * @enum {string} */ -export type PublicNetworkAccess = 'InboundAndOutbound' | 'OutboundOnly'; +export type ResourceProviderConnection = 'Inbound' | 'Outbound'; /** - * Defines values for OutboundOnlyPublicNetworkAccessType. - * Possible values include: 'PublicLoadBalancer', 'UDR' + * Defines values for PrivateLink. + * Possible values include: 'Disabled', 'Enabled' * @readonly * @enum {string} */ -export type OutboundOnlyPublicNetworkAccessType = 'PublicLoadBalancer' | 'UDR'; +export type PrivateLink = 'Disabled' | 'Enabled'; /** * Defines values for OSType. diff --git a/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts b/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts index 93acf9c5be45..0748677068ac 100644 --- a/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts +++ b/sdk/hdinsight/arm-hdinsight/src/models/mappers.ts @@ -682,20 +682,20 @@ export const StorageProfile: msRest.CompositeMapper = { } }; -export const NetworkSettings: msRest.CompositeMapper = { - serializedName: "NetworkSettings", +export const NetworkProperties: msRest.CompositeMapper = { + serializedName: "NetworkProperties", type: { name: "Composite", - className: "NetworkSettings", + className: "NetworkProperties", modelProperties: { - publicNetworkAccess: { - serializedName: "publicNetworkAccess", + resourceProviderConnection: { + serializedName: "resourceProviderConnection", type: { name: "String" } }, - outboundOnlyPublicNetworkAccessType: { - serializedName: "outboundOnlyPublicNetworkAccessType", + privateLink: { + serializedName: "privateLink", type: { name: "String" } @@ -855,11 +855,11 @@ export const ClusterCreateProperties: msRest.CompositeMapper = { name: "String" } }, - networkSettings: { - serializedName: "networkSettings", + networkProperties: { + serializedName: "networkProperties", type: { name: "Composite", - className: "NetworkSettings" + className: "NetworkProperties" } } } @@ -1105,6 +1105,12 @@ export const ClusterGetProperties: msRest.CompositeMapper = { ] } }, + clusterId: { + serializedName: "clusterId", + type: { + name: "String" + } + }, clusterDefinition: { required: true, serializedName: "clusterDefinition", @@ -1210,11 +1216,11 @@ export const ClusterGetProperties: msRest.CompositeMapper = { name: "String" } }, - networkSettings: { - serializedName: "networkSettings", + networkProperties: { + serializedName: "networkProperties", type: { name: "Composite", - className: "NetworkSettings" + className: "NetworkProperties" } } }