appcenter-cli
Version:
Command line tool for Visual Studio App Center
193 lines (187 loc) • 5.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.
*/
;
const models = require('./index');
/**
* Class representing a AppResponse.
* @extends models['BasicAppResponse']
*/
class AppResponse extends models['BasicAppResponse'] {
/**
* Create a AppResponse.
* @property {string} appSecret A unique and secret key used to identify the
* app in communication with the ingestion endpoint for crash reporting and
* analytics
* @property {object} [azureSubscription]
* @property {uuid} [azureSubscription.subscriptionId] The azure subscription
* id
* @property {uuid} [azureSubscription.tenantId] The tenant id of the azure
* subscription belongs to
* @property {string} [azureSubscription.subscriptionName] The name of the
* azure subscription
* @property {boolean} [azureSubscription.isBilling] If the subscription is
* used for billing
* @property {boolean} [azureSubscription.isBillable] If the subscription can
* be used for billing
* @property {boolean} [azureSubscription.isMicrosoftInternal] If the
* subscription is internal Microsoft subscription
* @property {string} platform The platform of the app. Possible values
* include: 'Java', 'Objective-C-Swift', 'UWP', 'Cordova', 'React-Native',
* 'Unity', 'Electron', 'Xamarin', 'Unknown'
* @property {string} origin The creation origin of this app. Possible values
* include: 'appcenter', 'hockeyapp', 'codepush'
* @property {string} [createdAt] The created date of this app
* @property {string} [updatedAt] The last updated date of this app
* @property {array} [memberPermissions] The permissions of the calling user
*/
constructor() {
super();
}
/**
* Defines the metadata of AppResponse
*
* @returns {object} metadata of AppResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'AppResponse',
type: {
name: 'Composite',
className: 'AppResponse',
modelProperties: {
id: {
required: true,
serializedName: 'id',
type: {
name: 'String'
}
},
description: {
required: false,
serializedName: 'description',
type: {
name: 'String'
}
},
displayName: {
required: true,
serializedName: 'display_name',
type: {
name: 'String'
}
},
releaseType: {
required: false,
serializedName: 'release_type',
type: {
name: 'String'
}
},
iconUrl: {
required: false,
serializedName: 'icon_url',
type: {
name: 'String'
}
},
iconSource: {
required: false,
serializedName: 'icon_source',
type: {
name: 'String'
}
},
name: {
required: true,
serializedName: 'name',
type: {
name: 'String'
}
},
os: {
required: true,
serializedName: 'os',
type: {
name: 'String'
}
},
owner: {
required: true,
serializedName: 'owner',
type: {
name: 'Composite',
className: 'Owner'
}
},
appSecret: {
required: true,
serializedName: 'app_secret',
type: {
name: 'String'
}
},
azureSubscription: {
required: false,
serializedName: 'azure_subscription',
type: {
name: 'Composite',
className: 'AzureSubscriptionResponse'
}
},
platform: {
required: true,
serializedName: 'platform',
type: {
name: 'String'
}
},
origin: {
required: true,
serializedName: 'origin',
type: {
name: 'String'
}
},
createdAt: {
required: false,
serializedName: 'created_at',
type: {
name: 'String'
}
},
updatedAt: {
required: false,
serializedName: 'updated_at',
type: {
name: 'String'
}
},
memberPermissions: {
required: false,
serializedName: 'member_permissions',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
};
}
}
module.exports = AppResponse;