appcenter-cli
Version:
Command line tool for Visual Studio App Center
172 lines (167 loc) • 5.32 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.
*/
;
/**
* Basic information on a release
*
*/
class BasicReleaseDetailsResponse {
/**
* Create a BasicReleaseDetailsResponse.
* @property {number} [id] ID identifying this unique release.
* @property {string} [version] The release's version.<br>
* For iOS: CFBundleVersion from info.plist.<br>
* For Android: android:versionCode from AppManifest.xml.
* @property {string} [shortVersion] The release's short version.<br>
* For iOS: CFBundleShortVersionString from info.plist.<br>
* For Android: android:versionName from AppManifest.xml.
* @property {boolean} [enabled] This value determines the whether a release
* currently is enabled or disabled.
* @property {string} [uploadedAt] UTC time in ISO 8601 format of the
* uploaded time.
* @property {string} [destinationType] OBSOLETE. Will be removed in next
* version. The destination type.<br>
* <b>group</b>: The release distributed to internal groups and
* distribution_groups details will be returned.<br>
* <b>store</b>: The release distributed to external stores and
* distribution_stores details will be returned. <br>
* . Possible values include: 'group', 'store'
* @property {array} [distributionGroups] OBSOLETE. Will be removed in next
* version. A list of distribution groups that are associated with this
* release.
* @property {array} [distributionStores] OBSOLETE. Will be removed in next
* version. A list of distribution stores that are associated with this
* release.
* @property {array} [destinations] A list of distribution groups or stores.
* @property {object} [build]
* @property {string} [build.branch] The branch name of the build producing
* the release
* @property {string} [build.commitHash] The commit hash of the build
* producing the release
* @property {string} [build.commitMessage] The commit message of the build
* producing the release
*/
constructor() {
}
/**
* Defines the metadata of BasicReleaseDetailsResponse
*
* @returns {object} metadata of BasicReleaseDetailsResponse
*
*/
mapper() {
return {
required: false,
serializedName: 'BasicReleaseDetailsResponse',
type: {
name: 'Composite',
className: 'BasicReleaseDetailsResponse',
modelProperties: {
id: {
required: false,
serializedName: 'id',
type: {
name: 'Number'
}
},
version: {
required: false,
serializedName: 'version',
type: {
name: 'String'
}
},
shortVersion: {
required: false,
serializedName: 'short_version',
type: {
name: 'String'
}
},
enabled: {
required: false,
serializedName: 'enabled',
type: {
name: 'Boolean'
}
},
uploadedAt: {
required: false,
serializedName: 'uploaded_at',
type: {
name: 'String'
}
},
destinationType: {
required: false,
serializedName: 'destination_type',
type: {
name: 'String'
}
},
distributionGroups: {
required: false,
serializedName: 'distribution_groups',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'DistributionGroupElementType',
type: {
name: 'Composite',
className: 'DistributionGroup'
}
}
}
},
distributionStores: {
required: false,
serializedName: 'distribution_stores',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'DistributionStoreElementType',
type: {
name: 'Composite',
className: 'DistributionStore'
}
}
}
},
destinations: {
required: false,
serializedName: 'destinations',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'DestinationElementType',
type: {
name: 'Composite',
className: 'Destination'
}
}
}
},
build: {
required: false,
serializedName: 'build',
type: {
name: 'Composite',
className: 'BuildInfo'
}
}
}
}
};
}
}
module.exports = BasicReleaseDetailsResponse;