UNPKG

appcenter-cli

Version:

Command line tool for Visual Studio App Center

130 lines (125 loc) 4.86 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 InvitationDetailResponse. */ class InvitationDetailResponse { /** * Create a InvitationDetailResponse. * @property {uuid} invitationId The id of the invitation * @property {object} invitedBy * @property {uuid} [invitedBy.id] The unique id (UUID) of the user * @property {string} [invitedBy.avatarUrl] The avatar URL of the user * @property {boolean} [invitedBy.canChangePassword] User is required to send * an old password in order to change the password. * @property {string} [invitedBy.displayName] The full name of the user. * Might for example be first and last name * @property {string} [invitedBy.email] The email address of the user * @property {string} [invitedBy.name] The unique name that is used to * identify the user. * @property {array} [invitedBy.permissions] The permissions the user has for * the app * @property {string} [invitedBy.origin] The creation origin of this user. * Possible values include: 'appcenter', 'hockeyapp', 'codepush' * @property {object} [organization] * @property {uuid} [organization.id] The internal unique id (UUID) of the * organization. * @property {string} [organization.displayName] The display name of the * organization * @property {string} [organization.name] The slug name of the organization * @property {string} [organization.avatarUrl] The URL to a user-uploaded * Avatar image * @property {string} [organization.origin] The creation origin of this * organization. Possible values include: 'appcenter', 'hockeyapp' * @property {string} [organization.createdAt] The creation date of this * organization * @property {string} [organization.updatedAt] The date the organization was * last updated at * @property {object} [app] * @property {string} [app.appSecret] A unique and secret key used to * identify the app in communication with the ingestion endpoint for crash * reporting and analytics * @property {object} [app.azureSubscription] * @property {uuid} [app.azureSubscription.subscriptionId] The azure * subscription id * @property {uuid} [app.azureSubscription.tenantId] The tenant id of the * azure subscription belongs to * @property {string} [app.azureSubscription.subscriptionName] The name of * the azure subscription * @property {boolean} [app.azureSubscription.isBilling] If the subscription * is used for billing * @property {boolean} [app.azureSubscription.isBillable] If the subscription * can be used for billing * @property {boolean} [app.azureSubscription.isMicrosoftInternal] If the * subscription is internal Microsoft subscription * @property {string} [app.platform] The platform of the app. Possible values * include: 'Java', 'Objective-C-Swift', 'UWP', 'Cordova', 'React-Native', * 'Unity', 'Electron', 'Xamarin', 'Unknown' * @property {string} [app.origin] The creation origin of this app. Possible * values include: 'appcenter', 'hockeyapp', 'codepush' * @property {string} [app.createdAt] The created date of this app * @property {string} [app.updatedAt] The last updated date of this app * @property {array} [app.memberPermissions] The permissions of the calling * user */ constructor() { } /** * Defines the metadata of InvitationDetailResponse * * @returns {object} metadata of InvitationDetailResponse * */ mapper() { return { required: false, serializedName: 'InvitationDetailResponse', type: { name: 'Composite', className: 'InvitationDetailResponse', modelProperties: { invitationId: { required: true, serializedName: 'invitation_id', type: { name: 'String' } }, invitedBy: { required: true, serializedName: 'invited_by', type: { name: 'Composite', className: 'UserProfileResponse' } }, organization: { required: false, serializedName: 'organization', type: { name: 'Composite', className: 'OrganizationResponse' } }, app: { required: false, serializedName: 'app', type: { name: 'Composite', className: 'AppResponse' } } } } }; } } module.exports = InvitationDetailResponse;