UNPKG

@broadcom/endevor-bridge-for-git-rest-api

Version:

Endevor Bridge for Git Rest client

15 lines (14 loc) 516 B
import { MappingAction } from "./MappingAction"; import { RequestMethod } from "../../AbstractRequest"; export class MigrateRepository extends MappingAction { constructor(context, repository, newAuthProvider, newGitRepoUrl) { super(context, repository); this.customPath = "/migrate"; this.method = RequestMethod.POST; this.payload = { authProvider: newAuthProvider, cloneUrl: newGitRepoUrl }; this.params = { context, repository }; } }