UNPKG

appcenter-cli

Version:

Command line tool for Visual Studio App Center

62 lines (57 loc) 1.5 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'; /** * Class representing a PasswordUpdateRequest. */ class PasswordUpdateRequest { /** * Create a PasswordUpdateRequest. * @property {string} newPassword The new password that will be set for the * user. Needs to be at least 8 characters long and contain at least one * lower- and one uppercase letter. * @property {string} [oldPassword] The old password, if needed. */ constructor() { } /** * Defines the metadata of PasswordUpdateRequest * * @returns {object} metadata of PasswordUpdateRequest * */ mapper() { return { required: false, serializedName: 'PasswordUpdateRequest', type: { name: 'Composite', className: 'PasswordUpdateRequest', modelProperties: { newPassword: { required: true, serializedName: 'new_password', type: { name: 'String' } }, oldPassword: { required: false, serializedName: 'old_password', type: { name: 'String' } } } } }; } } module.exports = PasswordUpdateRequest;