appcenter-cli
Version:
Command line tool for Visual Studio App Center
86 lines (81 loc) • 2.16 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 AppRepoPostRequest.
*/
class AppRepoPostRequest {
/**
* Create a AppRepoPostRequest.
* @property {string} repoUrl The absolute URL of the repository
* @property {string} [repoProvider] The provider of the repository. Possible
* values include: 'github', 'bitbucket', 'vsts'
* @property {uuid} userId The unique id (UUID) of the user who configured
* the repository
* @property {string} [installationId] Installation id from the provider
* @property {string} [repoId] Repository id from the provider
*/
constructor() {
}
/**
* Defines the metadata of AppRepoPostRequest
*
* @returns {object} metadata of AppRepoPostRequest
*
*/
mapper() {
return {
required: false,
serializedName: 'AppRepoPostRequest',
type: {
name: 'Composite',
className: 'AppRepoPostRequest',
modelProperties: {
repoUrl: {
required: true,
serializedName: 'repo_url',
type: {
name: 'String'
}
},
repoProvider: {
required: false,
serializedName: 'repo_provider',
type: {
name: 'String'
}
},
userId: {
required: true,
serializedName: 'user_id',
type: {
name: 'String'
}
},
installationId: {
required: false,
serializedName: 'installation_id',
type: {
name: 'String'
}
},
repoId: {
required: false,
serializedName: 'repo_id',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = AppRepoPostRequest;