UNPKG

azure-arm-scheduler

Version:

Microsoft Azure Scheduler Management Client Library for node

77 lines (71 loc) 1.8 kB
/* * 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. */ 'use strict'; const models = require('./index'); /** * Class representing a BasicAuthentication. * @extends models['HttpAuthentication'] */ class BasicAuthentication extends models['HttpAuthentication'] { /** * Create a BasicAuthentication. * @member {string} [username] Gets or sets the username. * @member {string} [password] Gets or sets the password, return value will * always be empty. */ constructor() { super(); } /** * Defines the metadata of BasicAuthentication * * @returns {object} metadata of BasicAuthentication * */ mapper() { return { required: false, serializedName: 'Basic', type: { name: 'Composite', polymorphicDiscriminator: { serializedName: 'type', clientName: 'type' }, uberParent: 'HttpAuthentication', className: 'BasicAuthentication', modelProperties: { type: { required: true, serializedName: 'type', type: { name: 'String' } }, username: { required: false, serializedName: 'username', type: { name: 'String' } }, password: { required: false, serializedName: 'password', type: { name: 'String' } } } } }; } } module.exports = BasicAuthentication;