appcenter-cli
Version:
Command line tool for Visual Studio App Center
93 lines (88 loc) • 2.22 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 RepoConfig.
*/
class RepoConfig {
/**
* Create a RepoConfig.
* @property {string} type Type of repository
* @property {string} state State of the configuration. Possible values
* include: 'unauthorized', 'inactive', 'active'
* @property {string} [repoUrl] URL of the repository
* @property {string} [id] Repository identifier
* @property {string} [userEmail] email of user, who linked repository
* @property {string} [installationId] The GitHub Installation id
*/
constructor() {
}
/**
* Defines the metadata of RepoConfig
*
* @returns {object} metadata of RepoConfig
*
*/
mapper() {
return {
required: false,
serializedName: 'RepoConfig',
type: {
name: 'Composite',
className: 'RepoConfig',
modelProperties: {
type: {
required: true,
serializedName: 'type',
type: {
name: 'String'
}
},
state: {
required: true,
serializedName: 'state',
type: {
name: 'String'
}
},
repoUrl: {
required: false,
serializedName: 'repo_url',
type: {
name: 'String'
}
},
id: {
required: false,
serializedName: 'id',
type: {
name: 'String'
}
},
userEmail: {
required: false,
serializedName: 'user_email',
type: {
name: 'String'
}
},
installationId: {
required: false,
serializedName: 'installation_id',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = RepoConfig;