azure-cli
Version:
Microsoft Azure Cross Platform Command Line tool
70 lines (64 loc) • 1.75 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.
*/
;
const models = require('./index');
/**
* Profile for Linux VMs in the container service cluster.
*
*/
class ContainerServiceLinuxProfile {
/**
* Create a ContainerServiceLinuxProfile.
* @member {string} adminUsername The administrator username to use for Linux
* VMs.
* @member {object} ssh The ssh key configuration for Linux VMs.
* @member {array} [ssh.publicKeys] the list of SSH public keys used to
* authenticate with Linux-based VMs.
*/
constructor() {
}
/**
* Defines the metadata of ContainerServiceLinuxProfile
*
* @returns {object} metadata of ContainerServiceLinuxProfile
*
*/
mapper() {
return {
required: false,
serializedName: 'ContainerServiceLinuxProfile',
type: {
name: 'Composite',
className: 'ContainerServiceLinuxProfile',
modelProperties: {
adminUsername: {
required: true,
serializedName: 'adminUsername',
constraints: {
Pattern: '^[a-z][a-z0-9_-]*$'
},
type: {
name: 'String'
}
},
ssh: {
required: true,
serializedName: 'ssh',
type: {
name: 'Composite',
className: 'ContainerServiceSshConfiguration'
}
}
}
}
};
}
}
module.exports = ContainerServiceLinuxProfile;