appcenter-cli
Version:
Command line tool for Visual Studio App Center
85 lines (80 loc) • 2.14 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 OrganizationUserResponse.
*/
class OrganizationUserResponse {
/**
* Create a OrganizationUserResponse.
* @property {string} email The email address of the user
* @property {string} displayName The full name of the user. Might for
* example be first and last name
* @property {string} joinedAt The date when the user joined the organization
* @property {string} name The unique name that is used to identify the user.
* @property {string} role The role the user has within the organization
*/
constructor() {
}
/**
* Defines the metadata of OrganizationUserResponse
*
* @returns {object} metadata of OrganizationUserResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'OrganizationUserResponse',
type: {
name: 'Composite',
className: 'OrganizationUserResponse',
modelProperties: {
email: {
required: true,
serializedName: 'email',
type: {
name: 'String'
}
},
displayName: {
required: true,
serializedName: 'display_name',
type: {
name: 'String'
}
},
joinedAt: {
required: true,
serializedName: 'joined_at',
type: {
name: 'String'
}
},
name: {
required: true,
serializedName: 'name',
type: {
name: 'String'
}
},
role: {
required: true,
serializedName: 'role',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = OrganizationUserResponse;