Skip to content

Commit

Permalink
Generated from 301e7eff72983dd481105c3f158352b5563c12e0
Browse files Browse the repository at this point in the history
add balance nodegroups flag
  • Loading branch information
SDK Automation committed Mar 2, 2020
1 parent 2180d75 commit 8fc4b9b
Show file tree
Hide file tree
Showing 8 changed files with 105 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class ContainerServiceClientContext extends msRestAzure.AzureServiceClien
if (!options) {
options = {};
}
if (!options.userAgent) {
if(!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}
Expand All @@ -51,10 +51,10 @@ export class ContainerServiceClientContext extends msRestAzure.AzureServiceClien
this.credentials = credentials;
this.subscriptionId = subscriptionId;

if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export {
ManagedClusterPropertiesAutoScalerProfile,
ManagedClusterPropertiesIdentityProfileValue,
ManagedClusterServicePrincipalProfile,
ManagedClusterSKU,
ManagedClusterWindowsProfile,
NetworkProfile,
OpenShiftManagedCluster,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export {
ManagedClusterPropertiesAutoScalerProfile,
ManagedClusterPropertiesIdentityProfileValue,
ManagedClusterServicePrincipalProfile,
ManagedClusterSKU,
ManagedClusterWindowsProfile,
NetworkProfile,
OpenShiftManagedCluster,
Expand Down
47 changes: 45 additions & 2 deletions sdk/containerservice/arm-containerservice/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1269,14 +1269,22 @@ export interface ManagedClusterAddonProfile {
* AADProfile specifies attributes for Azure Active Directory integration.
*/
export interface ManagedClusterAADProfile {
/**
* Whether to enable managed AAD.
*/
managed?: boolean;
/**
* AAD group object IDs that will have admin role of the cluster.
*/
adminGroupObjectIDs?: string[];
/**
* The client AAD application ID.
*/
clientAppID: string;
clientAppID?: string;
/**
* The server AAD application ID.
*/
serverAppID: string;
serverAppID?: string;
/**
* The server AAD application secret.
*/
Expand All @@ -1292,6 +1300,7 @@ export interface ManagedClusterAADProfile {
* Parameters to be applied to the cluster-autoscaler when enabled
*/
export interface ManagedClusterPropertiesAutoScalerProfile {
balanceSimilarNodeGroups?: boolean;
scanInterval?: string;
scaleDownDelayAfterAdd?: string;
scaleDownDelayAfterDelete?: string;
Expand Down Expand Up @@ -1345,6 +1354,20 @@ export interface ManagedClusterIdentity {
type?: ResourceIdentityType;
}

/**
* An interface representing ManagedClusterSKU.
*/
export interface ManagedClusterSKU {
/**
* Name of a managed cluster SKU. Possible values include: 'Basic'
*/
name?: ManagedClusterSKUName;
/**
* Tier of a managed cluster SKU. Possible values include: 'Paid', 'Free'
*/
tier?: ManagedClusterSKUTier;
}

/**
* Managed cluster.
*/
Expand Down Expand Up @@ -1438,6 +1461,10 @@ export interface ManagedCluster extends Resource {
* The identity of the managed cluster, if configured.
*/
identity?: ManagedClusterIdentity;
/**
* The managed cluster SKU.
*/
sku?: ManagedClusterSKU;
}

/**
Expand Down Expand Up @@ -1875,6 +1902,22 @@ export type LoadBalancerSku = 'standard' | 'basic';
*/
export type ResourceIdentityType = 'SystemAssigned' | 'None';

/**
* Defines values for ManagedClusterSKUName.
* Possible values include: 'Basic'
* @readonly
* @enum {string}
*/
export type ManagedClusterSKUName = 'Basic';

/**
* Defines values for ManagedClusterSKUTier.
* Possible values include: 'Paid', 'Free'
* @readonly
* @enum {string}
*/
export type ManagedClusterSKUTier = 'Paid' | 'Free';

/**
* Contains response data for the list operation.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export {
ManagedClusterPropertiesAutoScalerProfile,
ManagedClusterPropertiesIdentityProfileValue,
ManagedClusterServicePrincipalProfile,
ManagedClusterSKU,
ManagedClusterUpgradeProfile,
ManagedClusterWindowsProfile,
NetworkProfile,
Expand Down
54 changes: 52 additions & 2 deletions sdk/containerservice/arm-containerservice/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1856,15 +1856,30 @@ export const ManagedClusterAADProfile: msRest.CompositeMapper = {
name: "Composite",
className: "ManagedClusterAADProfile",
modelProperties: {
managed: {
serializedName: "managed",
type: {
name: "Boolean"
}
},
adminGroupObjectIDs: {
serializedName: "adminGroupObjectIDs",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
},
clientAppID: {
required: true,
serializedName: "clientAppID",
type: {
name: "String"
}
},
serverAppID: {
required: true,
serializedName: "serverAppID",
type: {
name: "String"
Expand Down Expand Up @@ -1892,6 +1907,12 @@ export const ManagedClusterPropertiesAutoScalerProfile: msRest.CompositeMapper =
name: "Composite",
className: "ManagedClusterPropertiesAutoScalerProfile",
modelProperties: {
balanceSimilarNodeGroups: {
serializedName: "balance-similar-node-groups",
type: {
name: "Boolean"
}
},
scanInterval: {
serializedName: "scan-interval",
type: {
Expand Down Expand Up @@ -2016,6 +2037,28 @@ export const ManagedClusterIdentity: msRest.CompositeMapper = {
}
};

export const ManagedClusterSKU: msRest.CompositeMapper = {
serializedName: "ManagedClusterSKU",
type: {
name: "Composite",
className: "ManagedClusterSKU",
modelProperties: {
name: {
serializedName: "name",
type: {
name: "String"
}
},
tier: {
serializedName: "tier",
type: {
name: "String"
}
}
}
}
};

export const ManagedCluster: msRest.CompositeMapper = {
serializedName: "ManagedCluster",
type: {
Expand Down Expand Up @@ -2178,6 +2221,13 @@ export const ManagedCluster: msRest.CompositeMapper = {
name: "Composite",
className: "ManagedClusterIdentity"
}
},
sku: {
serializedName: "sku",
type: {
name: "Composite",
className: "ManagedClusterSKU"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export {
ManagedClusterPropertiesAutoScalerProfile,
ManagedClusterPropertiesIdentityProfileValue,
ManagedClusterServicePrincipalProfile,
ManagedClusterSKU,
ManagedClusterWindowsProfile,
NetworkProfile,
OpenShiftManagedCluster,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const apiVersion3: msRest.OperationQueryParameter = {
required: true,
isConstant: true,
serializedName: "api-version",
defaultValue: '2020-02-01',
defaultValue: '2020-03-01',
type: {
name: "String"
}
Expand Down

0 comments on commit 8fc4b9b

Please sign in to comment.