import { Client } from ".."; import { Branch } from "../models/auth"; import { Deployment } from "../models/regional"; import { PullRequest, ReviewApp, SCMRepoLink } from "../models/regional/scm_repo_links"; import { CreateParams, UpdateParams } from "../params/regional/scm_repo_links"; /** * SCM repo links API Client */ export declare class SCMRepoLinks { /** Scalingo API Client */ _client: Client; /** * Create a new "thematic" client * @param client Scalingo API Client */ constructor(client: Client); /** * Get the repo link associated to an application. * @see https://developers.scalingo.com/scm_repo_link#get-an-integration-link * @param appID ID of the application * @return Promise that when resolved returns a SCMRepoLink */ find(appID: string): Promise; /** * Create a SCM repo link. * @see https://developers.scalingo.com/scm_repo_link#create-a-scm-integration-link * @param appID ID of the application * @param opts SCM repo link information * @return Promise that when resolved returns the SCMRepoLink created. */ create(appID: string, opts: CreateParams): Promise; /** * Update a SCM integration link. * @see https://developers.scalingo.com/scm_repo_link * @param appID ID of the application * @param opts SCM repo link information to update * @return Promise that when resolved returns the SCMRepoLink updated. */ update(appID: string, opts: UpdateParams): Promise; /** * Delete a SCM repo link * @see https://developers.scalingo.com/scm_repo_link#delete-an-integration-link * @param {String} appID ID of the application * @return {Promise} Promise that resolves when the link is deleted. */ destroy(appID: string): Promise; /** * Manually deploy an application * @see https://developers.scalingo.com/scm_repo_link#manual-deploy * @param appID ID of the application * @param branch Name of the branch to deploy. * @return Promise that when resolved returns the Deployment started. * @todo Promise */ manualDeploy(appID: string, branch: string): Promise; /** * Manually deploy a review app of the given pull/merge request * @see https://developers.scalingo.com/scm_repo_link#manual-review-app * @param appID ID of the application * @param pullRequestID ID of the pull/merge request to deploy * @return Promise that when resolved returns the App created. * @todo Promise */ manualReviewApp(appID: string, pullRequestID: string): Promise; /** * List the branches of the remote repository. * @see https://developers.scalingo.com/scm_repo_link * @param appID ID of the application * @return Promise that when resolved returns an array of branches. * @todo Promise */ branches(appID: string): Promise; /** * List the merge/pull requests of the remote repository. * @see https://developers.scalingo.com/scm_repo_link * @param appID ID of the application * @return Promise that when resolved returns an array of pull requests. * @todo Promise */ pulls(appID: string): Promise; /** * List the review apps of the supplied app. * @param appID ID of the application * @return Promise that when resolved returns an array of review apps. * @todo Promise */ reviewApps(appID: string): Promise; } export default SCMRepoLinks; //# sourceMappingURL=index.d.ts.map