Skip to content

Commit

Permalink
Sdk automation/@Azure arm hdinsight (Azure#11838)
Browse files Browse the repository at this point in the history
Co-authored-by: SDK Automation <sdkautomation@microsoft.com>
  • Loading branch information
colawwj and SDK Automation authored Oct 28, 2020
1 parent c3cd3f3 commit c3e2ce4
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 35 deletions.
2 changes: 1 addition & 1 deletion sdk/hdinsight/arm-hdinsight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export {
HardwareProfile,
KafkaRestProperties,
LinuxOperatingSystemProfile,
NetworkSettings,
NetworkProperties,
OsProfile,
ProxyResource,
QuotaInfo,
Expand Down
2 changes: 1 addition & 1 deletion sdk/hdinsight/arm-hdinsight/src/models/clustersMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export {
HardwareProfile,
KafkaRestProperties,
LinuxOperatingSystemProfile,
NetworkSettings,
NetworkProperties,
OsProfile,
ProxyResource,
QuotaInfo,
Expand Down
40 changes: 22 additions & 18 deletions sdk/hdinsight/arm-hdinsight/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -499,9 +499,9 @@ export interface ClusterCreateProperties {
*/
minSupportedTlsVersion?: string;
/**
* The network settings.
* The network properties.
*/
networkSettings?: NetworkSettings;
networkProperties?: NetworkProperties;
}

/**
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -698,9 +702,9 @@ export interface ClusterGetProperties {
*/
minSupportedTlsVersion?: string;
/**
* The network settings.
* The network properties.
*/
networkSettings?: NetworkSettings;
networkProperties?: NetworkProperties;
}

/**
Expand Down Expand Up @@ -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.
Expand Down
32 changes: 19 additions & 13 deletions sdk/hdinsight/arm-hdinsight/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down Expand Up @@ -855,11 +855,11 @@ export const ClusterCreateProperties: msRest.CompositeMapper = {
name: "String"
}
},
networkSettings: {
serializedName: "networkSettings",
networkProperties: {
serializedName: "networkProperties",
type: {
name: "Composite",
className: "NetworkSettings"
className: "NetworkProperties"
}
}
}
Expand Down Expand Up @@ -1105,6 +1105,12 @@ export const ClusterGetProperties: msRest.CompositeMapper = {
]
}
},
clusterId: {
serializedName: "clusterId",
type: {
name: "String"
}
},
clusterDefinition: {
required: true,
serializedName: "clusterDefinition",
Expand Down Expand Up @@ -1210,11 +1216,11 @@ export const ClusterGetProperties: msRest.CompositeMapper = {
name: "String"
}
},
networkSettings: {
serializedName: "networkSettings",
networkProperties: {
serializedName: "networkProperties",
type: {
name: "Composite",
className: "NetworkSettings"
className: "NetworkProperties"
}
}
}
Expand Down

0 comments on commit c3e2ce4

Please sign in to comment.