appcenter-cli
Version:
Command line tool for Visual Studio App Center
101 lines (96 loc) • 2.6 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.
*/
;
/**
* The repository which is accessiable by GitHub App Installation
*
*/
class GitHubInstallationRepository {
/**
* Create a GitHubInstallationRepository.
* @property {string} [name] The repository name
* @property {string} [description] The discription of repository
* @property {string} [cloneUrl] URL used to clone the repository
* @property {string} [defaultBranch] The default branch for the repo
* @property {string} [language] The language in the repository
* @property {string} [updatedAt] The repository updated time
* @property {boolean} [fork] Whether the repository is a fork
*/
constructor() {
}
/**
* Defines the metadata of GitHubInstallationRepository
*
* @returns {object} metadata of GitHubInstallationRepository
*
*/
mapper() {
return {
required: false,
serializedName: 'GitHubInstallationRepository',
type: {
name: 'Composite',
className: 'GitHubInstallationRepository',
modelProperties: {
name: {
required: false,
serializedName: 'name',
type: {
name: 'String'
}
},
description: {
required: false,
serializedName: 'description',
type: {
name: 'String'
}
},
cloneUrl: {
required: false,
serializedName: 'clone_url',
type: {
name: 'String'
}
},
defaultBranch: {
required: false,
serializedName: 'default_branch',
type: {
name: 'String'
}
},
language: {
required: false,
serializedName: 'language',
type: {
name: 'String'
}
},
updatedAt: {
required: false,
serializedName: 'updated_at',
type: {
name: 'String'
}
},
fork: {
required: false,
serializedName: 'fork',
type: {
name: 'Boolean'
}
}
}
}
};
}
}
module.exports = GitHubInstallationRepository;