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

[AutoPR @azure/arm-containerservice] Sync from master #1243

Open
wants to merge 1 commit into
base: sdkAutomation/@azure_arm-containerservice
Choose a base branch
from
Open
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
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
67 changes: 63 additions & 4 deletions sdk/containerservice/arm-containerservice/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ export interface ManagedClusterServicePrincipalProfile {
*/
export interface ManagedClusterAgentPoolProfileProperties {
/**
* Number of agents (VMs) to host docker containers. Allowed values must be in the range of 1 to
* Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to
* 100 (inclusive). The default value is 1. Default value: 1.
*/
count: number;
Expand Down Expand Up @@ -886,6 +886,10 @@ export interface ManagedClusterAgentPoolProfileProperties {
* 'VirtualMachineScaleSets', 'AvailabilitySet'
*/
type?: AgentPoolType;
/**
* AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'User'
*/
mode?: AgentPoolMode;
/**
* Version of orchestrator specified when creating the managed cluster.
*/
Expand Down Expand Up @@ -950,7 +954,7 @@ export interface ManagedClusterAgentPoolProfile extends ManagedClusterAgentPoolP
*/
export interface AgentPool extends SubResource {
/**
* Number of agents (VMs) to host docker containers. Allowed values must be in the range of 1 to
* Number of agents (VMs) to host docker containers. Allowed values must be in the range of 0 to
* 100 (inclusive). The default value is 1. Default value: 1.
*/
count: number;
Expand Down Expand Up @@ -1031,6 +1035,10 @@ export interface AgentPool extends SubResource {
* 'VirtualMachineScaleSets', 'AvailabilitySet'
*/
agentPoolType?: AgentPoolType;
/**
* AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'User'
*/
mode?: AgentPoolMode;
/**
* Version of orchestrator specified when creating the managed cluster.
*/
Expand Down Expand Up @@ -1269,14 +1277,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 +1308,7 @@ export interface ManagedClusterAADProfile {
* Parameters to be applied to the cluster-autoscaler when enabled
*/
export interface ManagedClusterPropertiesAutoScalerProfile {
balanceSimilarNodeGroups?: string;
scanInterval?: string;
scaleDownDelayAfterAdd?: string;
scaleDownDelayAfterDelete?: string;
Expand Down Expand Up @@ -1345,6 +1362,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 +1469,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 @@ -1811,6 +1846,14 @@ export type ContainerServiceOrchestratorTypes = 'Kubernetes' | 'Swarm' | 'DCOS'
*/
export type AgentPoolType = 'VirtualMachineScaleSets' | 'AvailabilitySet';

/**
* Defines values for AgentPoolMode.
* Possible values include: 'System', 'User'
* @readonly
* @enum {string}
*/
export type AgentPoolMode = 'System' | 'User';

/**
* Defines values for ScaleSetPriority.
* Possible values include: 'Spot', 'Low', 'Regular'
Expand Down Expand Up @@ -1875,6 +1918,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
70 changes: 66 additions & 4 deletions sdk/containerservice/arm-containerservice/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,7 @@ export const ManagedClusterAgentPoolProfileProperties: msRest.CompositeMapper =
defaultValue: 1,
constraints: {
InclusiveMaximum: 100,
InclusiveMinimum: 1
InclusiveMinimum: 0
},
type: {
name: "Number"
Expand Down Expand Up @@ -1241,6 +1241,12 @@ export const ManagedClusterAgentPoolProfileProperties: msRest.CompositeMapper =
name: "String"
}
},
mode: {
serializedName: "mode",
type: {
name: "String"
}
},
orchestratorVersion: {
serializedName: "orchestratorVersion",
type: {
Expand Down Expand Up @@ -1362,7 +1368,7 @@ export const AgentPool: msRest.CompositeMapper = {
defaultValue: 1,
constraints: {
InclusiveMaximum: 100,
InclusiveMinimum: 1
InclusiveMinimum: 0
},
type: {
name: "Number"
Expand Down Expand Up @@ -1424,6 +1430,12 @@ export const AgentPool: msRest.CompositeMapper = {
name: "String"
}
},
mode: {
serializedName: "properties.mode",
type: {
name: "String"
}
},
orchestratorVersion: {
serializedName: "properties.orchestratorVersion",
type: {
Expand Down Expand Up @@ -1856,15 +1868,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 +1919,12 @@ export const ManagedClusterPropertiesAutoScalerProfile: msRest.CompositeMapper =
name: "Composite",
className: "ManagedClusterPropertiesAutoScalerProfile",
modelProperties: {
balanceSimilarNodeGroups: {
serializedName: "balance-similar-node-groups",
type: {
name: "String"
}
},
scanInterval: {
serializedName: "scan-interval",
type: {
Expand Down Expand Up @@ -2016,6 +2049,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 +2233,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