azure-cli
Version:
Microsoft Azure Cross Platform Command Line tool
69 lines (64 loc) • 1.76 kB
JavaScript
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
;
/**
* Profile for Windows VMs in the container service cluster.
*
*/
class ContainerServiceWindowsProfile {
/**
* Create a ContainerServiceWindowsProfile.
* @member {string} adminUsername The administrator username to use for
* Windows VMs.
* @member {string} adminPassword The administrator password to use for
* Windows VMs.
*/
constructor() {
}
/**
* Defines the metadata of ContainerServiceWindowsProfile
*
* @returns {object} metadata of ContainerServiceWindowsProfile
*
*/
mapper() {
return {
required: false,
serializedName: 'ContainerServiceWindowsProfile',
type: {
name: 'Composite',
className: 'ContainerServiceWindowsProfile',
modelProperties: {
adminUsername: {
required: true,
serializedName: 'adminUsername',
constraints: {
Pattern: '^[a-zA-Z0-9]+([._]?[a-zA-Z0-9]+)*$'
},
type: {
name: 'String'
}
},
adminPassword: {
required: true,
serializedName: 'adminPassword',
constraints: {
Pattern: '^(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%\^&\*\(\)])[a-zA-Z\d!@#$%\^&\*\(\)]{12,123}$'
},
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = ContainerServiceWindowsProfile;