Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sdk automation/@azure arm hdinsight #11838

Merged
merged 2 commits into from
Oct 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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