appcenter-cli
Version:
Command line tool for Visual Studio App Center
95 lines (90 loc) • 2.33 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.
*/
;
/**
* Class representing a AccountResponse.
*/
class AccountResponse {
/**
* Create a AccountResponse.
* @property {uuid} id The internal unique id (UUID) of the account.
* @property {string} displayName The display name of the account
* @property {string} name The slug name of the account
* @property {string} [email] The account's email. For org that value might
* be empty.
* @property {string} origin The creation origin of this account. Possible
* values include: 'appcenter', 'hockeyapp'
* @property {string} type The type of this account. Possible values include:
* 'user', 'org'
*/
constructor() {
}
/**
* Defines the metadata of AccountResponse
*
* @returns {object} metadata of AccountResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'AccountResponse',
type: {
name: 'Composite',
className: 'AccountResponse',
modelProperties: {
id: {
required: true,
serializedName: 'id',
type: {
name: 'String'
}
},
displayName: {
required: true,
serializedName: 'display_name',
type: {
name: 'String'
}
},
name: {
required: true,
serializedName: 'name',
type: {
name: 'String'
}
},
email: {
required: false,
serializedName: 'email',
type: {
name: 'String'
}
},
origin: {
required: true,
serializedName: 'origin',
type: {
name: 'String'
}
},
type: {
required: true,
serializedName: 'type',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AccountResponse;