다음을 통해 공유


TfvcRestClient class

VSS REST api에 대한 요청을 만드는 데 사용해야 하는 기본 클래스(파생)입니다.

Extends

생성자

TfvcRestClient(IVssRestClientOptions)

속성

RESOURCE_AREA_ID

메서드

createChangeset(TfvcChangeset, string)

새 변경 집합을 만듭니다.

getBatchedChangesets(TfvcChangesetsRequestData)

지정된 변경 집합 ID 목록에 대한 변경 집합을 반환합니다.

getBranch(string, string, boolean, boolean)

지정된 경로에서 지정된 부모 또는 자식이 있는 단일 분기 계층 구조를 가져옵니다.

getBranches(string, boolean, boolean, boolean, boolean)

분기 루트 컬렉션(첫 번째 수준 자식, 부모가 없는 분기)을 가져옵니다.

getBranchRefs(string, string, boolean, boolean)

지정된 scopePath 아래의 분기 계층 가져오기

getChangeset(number, string, number, boolean, boolean, number, boolean, number, number, string, TfvcChangesetSearchCriteria)

Tfvc 변경 집합 검색

getChangesetChanges(number, number, number)

지정된 변경 집합에 대한 Tfvc 변경 내용을 검색합니다.

getChangesets(string, number, number, number, string, TfvcChangesetSearchCriteria)

Tfvc 변경 집합 검색

getChangesetWorkItems(number)

특정 변경 집합과 연결된 작업 항목을 검색합니다.

getItem(string, string, string, boolean, string, VersionControlRecursionType, TfvcVersionDescriptor, boolean)

단일 항목에 대한 항목 메타데이터 및/또는 콘텐츠를 가져옵니다. 다운로드 매개 변수는 콘텐츠를 다운로드로 사용할 수 있는지 아니면 응답에서 스트림으로 전송해야 하는지를 나타내는 것입니다. 항상 다운로드로 반환되는 압축된 콘텐츠에는 적용되지 않습니다.

getItemContent(string, string, string, boolean, string, VersionControlRecursionType, TfvcVersionDescriptor, boolean)

단일 항목에 대한 항목 메타데이터 및/또는 콘텐츠를 가져옵니다. 다운로드 매개 변수는 콘텐츠를 다운로드로 사용할 수 있는지 아니면 응답에서 스트림으로 전송해야 하는지를 나타내는 것입니다. 항상 다운로드로 반환되는 압축된 콘텐츠에는 적용되지 않습니다.

getItems(string, string, VersionControlRecursionType, boolean, TfvcVersionDescriptor)

Tfvc 항목 목록 가져오기

getItemsBatch(TfvcItemRequestData, string)

경로 목록 또는 긴 경로가 주어진 항목 집합을 검색하기 위한 Post입니다. 각 경로에 대한 recursionLevel 및 버전 설명자를 지정할 수 있습니다.

getItemsBatchZip(TfvcItemRequestData, string)

경로 목록 또는 긴 경로가 주어진 항목 집합을 검색하기 위한 Post입니다. 각 경로에 대한 recursionLevel 및 버전 설명자를 지정할 수 있습니다.

getItemText(string, string, string, boolean, string, VersionControlRecursionType, TfvcVersionDescriptor, boolean)

단일 항목에 대한 항목 메타데이터 및/또는 콘텐츠를 가져옵니다. 다운로드 매개 변수는 콘텐츠를 다운로드로 사용할 수 있는지 아니면 응답에서 스트림으로 전송해야 하는지를 나타내는 것입니다. 항상 다운로드로 반환되는 압축된 콘텐츠에는 적용되지 않습니다.

getItemZip(string, string, string, boolean, string, VersionControlRecursionType, TfvcVersionDescriptor, boolean)

단일 항목에 대한 항목 메타데이터 및/또는 콘텐츠를 가져옵니다. 다운로드 매개 변수는 콘텐츠를 다운로드로 사용할 수 있는지 아니면 응답에서 스트림으로 전송해야 하는지를 나타내는 것입니다. 항상 다운로드로 반환되는 압축된 콘텐츠에는 적용되지 않습니다.

getLabel(string, TfvcLabelRequestData, string)

하나의 딥 라벨을 얻으십시오.

getLabelItems(string, number, number)

레이블 아래의 항목을 가져옵니다.

getLabels(TfvcLabelRequestData, string, number, number)

얕은 레이블 참조 모음을 가져옵니다.

getShelveset(string, TfvcShelvesetRequestData)

하나의 깊은 선반 세트를 얻으십시오.

getShelvesetChanges(string, number, number)

보류 집합에 포함된 변경 내용을 가져옵니다.

getShelvesets(TfvcShelvesetRequestData, number, number)

얕은 보류 집합 참조의 컬렉션을 반환합니다.

getShelvesetWorkItems(string)

보류 집합과 연결된 작업 항목을 가져옵니다.

getTfvcStatistics(string, string)

TFVC의 특정 범위에서 컬렉션/프로젝트에 대한 파일 수 및 압축되지 않은 바이트를 제공합니다.

생성자 세부 정보

TfvcRestClient(IVssRestClientOptions)

new TfvcRestClient(options: IVssRestClientOptions)

매개 변수

속성 세부 정보

RESOURCE_AREA_ID

static RESOURCE_AREA_ID: string

속성 값

string

메서드 세부 정보

createChangeset(TfvcChangeset, string)

새 변경 집합을 만듭니다.

function createChangeset(changeset: TfvcChangeset, project?: string): Promise<TfvcChangesetRef>

매개 변수

changeset
TfvcChangeset
project

string

프로젝트 ID 또는 프로젝트 이름

반환

Promise<TfvcChangesetRef>

getBatchedChangesets(TfvcChangesetsRequestData)

지정된 변경 집합 ID 목록에 대한 변경 집합을 반환합니다.

function getBatchedChangesets(changesetsRequestData: TfvcChangesetsRequestData): Promise<TfvcChangesetRef[]>

매개 변수

changesetsRequestData
TfvcChangesetsRequestData

변경 집합 ID 목록입니다.

반환

Promise<TfvcChangesetRef[]>

getBranch(string, string, boolean, boolean)

지정된 경로에서 지정된 부모 또는 자식이 있는 단일 분기 계층 구조를 가져옵니다.

function getBranch(path: string, project?: string, includeParent?: boolean, includeChildren?: boolean): Promise<TfvcBranch>

매개 변수

path

string

분기에 대한 전체 경로입니다. 기본값: $/ 예: $/, $/MyProject, $/MyProject/SomeFolder.

project

string

프로젝트 ID 또는 프로젝트 이름

includeParent

boolean

부모 분기가 있는 경우 반환합니다. 기본값: False

includeChildren

boolean

자식 분기가 있는 경우 반환합니다. 기본값: False

반환

Promise<TfvcBranch>

getBranches(string, boolean, boolean, boolean, boolean)

분기 루트 컬렉션(첫 번째 수준 자식, 부모가 없는 분기)을 가져옵니다.

function getBranches(project?: string, includeParent?: boolean, includeChildren?: boolean, includeDeleted?: boolean, includeLinks?: boolean): Promise<TfvcBranch[]>

매개 변수

project

string

프로젝트 ID 또는 프로젝트 이름

includeParent

boolean

부모 분기가 있는 경우 반환합니다. 기본값: False

includeChildren

boolean

각 루트 분기에 대한 자식 분기를 반환합니다. 기본값: False

includeDeleted

boolean

삭제된 분기를 반환합니다. 기본값: False

includeLinks

boolean

링크를 반환합니다. 기본값: False

반환

Promise<TfvcBranch[]>

getBranchRefs(string, string, boolean, boolean)

지정된 scopePath 아래의 분기 계층 가져오기

function getBranchRefs(scopePath: string, project?: string, includeDeleted?: boolean, includeLinks?: boolean): Promise<TfvcBranchRef[]>

매개 변수

scopePath

string

분기에 대한 전체 경로입니다. 기본값: $/ 예: $/, $/MyProject, $/MyProject/SomeFolder.

project

string

프로젝트 ID 또는 프로젝트 이름

includeDeleted

boolean

삭제된 분기를 반환합니다. 기본값: False

includeLinks

boolean

링크를 반환합니다. 기본값: False

반환

Promise<TfvcBranchRef[]>

getChangeset(number, string, number, boolean, boolean, number, boolean, number, number, string, TfvcChangesetSearchCriteria)

Tfvc 변경 집합 검색

function getChangeset(id: number, project?: string, maxChangeCount?: number, includeDetails?: boolean, includeWorkItems?: boolean, maxCommentLength?: number, includeSourceRename?: boolean, skip?: number, top?: number, orderby?: string, searchCriteria?: TfvcChangesetSearchCriteria): Promise<TfvcChangeset>

매개 변수

id

number

검색할 변경 집합 ID입니다.

project

string

프로젝트 ID 또는 프로젝트 이름

maxChangeCount

number

반환할 변경 사항 수(최대 100개 변경) 기본값: 0

includeDetails

boolean

응답에 정책 세부 정보 및 체크인 메모를 포함합니다. 기본값: false

includeWorkItems

boolean

작업 항목을 포함합니다. 기본값: false

maxCommentLength

number

응답에 연결된 작업 항목에 대한 세부 정보를 포함합니다. 기본값: null

includeSourceRename

boolean

이름 바꾸기를 포함합니다. 기본값: false

skip

number

건너뛸 결과 수 기본값: null

top

number

반환할 최대 결과 수입니다. 기본값: null

orderby

string

결과는 기본적으로 ID를 기준으로 내림차순으로 정렬됩니다. id asc를 사용하여 ID를 기준으로 오름차순으로 정렬합니다.

searchCriteria
TfvcChangesetSearchCriteria

사용 가능한 기준(.itemPath, .version, .versionType, .versionOption, .author, .fromId, .toId, .fromDate, .toDate) 기본값: null

반환

Promise<TfvcChangeset>

getChangesetChanges(number, number, number)

지정된 변경 집합에 대한 Tfvc 변경 내용을 검색합니다.

function getChangesetChanges(id?: number, skip?: number, top?: number): Promise<PagedList<TfvcChange>>

매개 변수

id

number

변경 집합의 ID입니다. 기본값: null

skip

number

건너뛸 결과 수 기본값: null

top

number

반환할 최대 결과 수입니다. 기본값: null

반환

Promise<PagedList<TfvcChange>>

getChangesets(string, number, number, number, string, TfvcChangesetSearchCriteria)

Tfvc 변경 집합 검색

function getChangesets(project?: string, maxCommentLength?: number, skip?: number, top?: number, orderby?: string, searchCriteria?: TfvcChangesetSearchCriteria): Promise<TfvcChangesetRef[]>

매개 변수

project

string

프로젝트 ID 또는 프로젝트 이름

maxCommentLength

number

응답에 연결된 작업 항목에 대한 세부 정보를 포함합니다. 기본값: null

skip

number

건너뛸 결과 수 기본값: null

top

number

반환할 최대 결과 수입니다. 기본값: null

orderby

string

결과는 기본적으로 ID를 기준으로 내림차순으로 정렬됩니다. id asc를 사용하여 ID를 기준으로 오름차순으로 정렬합니다.

searchCriteria
TfvcChangesetSearchCriteria

사용 가능한 기준(.itemPath, .version, .versionType, .versionOption, .author, .fromId, .toId, .fromDate, .toDate) 기본값: null

반환

Promise<TfvcChangesetRef[]>

getChangesetWorkItems(number)

특정 변경 집합과 연결된 작업 항목을 검색합니다.

function getChangesetWorkItems(id?: number): Promise<AssociatedWorkItem[]>

매개 변수

id

number

변경 집합의 ID입니다.

반환

Promise<AssociatedWorkItem[]>

getItem(string, string, string, boolean, string, VersionControlRecursionType, TfvcVersionDescriptor, boolean)

단일 항목에 대한 항목 메타데이터 및/또는 콘텐츠를 가져옵니다. 다운로드 매개 변수는 콘텐츠를 다운로드로 사용할 수 있는지 아니면 응답에서 스트림으로 전송해야 하는지를 나타내는 것입니다. 항상 다운로드로 반환되는 압축된 콘텐츠에는 적용되지 않습니다.

function getItem(path: string, project?: string, fileName?: string, download?: boolean, scopePath?: string, recursionLevel?: VersionControlRecursionType, versionDescriptor?: TfvcVersionDescriptor, includeContent?: boolean): Promise<TfvcItem>

매개 변수

path

string

반환할 개별 항목의 버전 제어 경로입니다.

project

string

프로젝트 ID 또는 프로젝트 이름

fileName

string

반환된 항목의 파일 이름입니다.

download

boolean

true인 경우 다운로드 가능한 첨부 파일을 만듭니다.

scopePath

string

여러 항목을 반환하는 폴더의 버전 제어 경로입니다.

recursionLevel
VersionControlRecursionType

없음(항목만) 또는 OneLevel(폴더의 내용).

versionDescriptor
TfvcVersionDescriptor

버전 설명자입니다. 기본값은 null입니다.

includeContent

boolean

json을 요청할 때 항목 콘텐츠를 포함하도록 true로 설정합니다. 기본값은 false입니다.

반환

Promise<TfvcItem>

getItemContent(string, string, string, boolean, string, VersionControlRecursionType, TfvcVersionDescriptor, boolean)

단일 항목에 대한 항목 메타데이터 및/또는 콘텐츠를 가져옵니다. 다운로드 매개 변수는 콘텐츠를 다운로드로 사용할 수 있는지 아니면 응답에서 스트림으로 전송해야 하는지를 나타내는 것입니다. 항상 다운로드로 반환되는 압축된 콘텐츠에는 적용되지 않습니다.

function getItemContent(path: string, project?: string, fileName?: string, download?: boolean, scopePath?: string, recursionLevel?: VersionControlRecursionType, versionDescriptor?: TfvcVersionDescriptor, includeContent?: boolean): Promise<ArrayBuffer>

매개 변수

path

string

반환할 개별 항목의 버전 제어 경로입니다.

project

string

프로젝트 ID 또는 프로젝트 이름

fileName

string

반환된 항목의 파일 이름입니다.

download

boolean

true인 경우 다운로드 가능한 첨부 파일을 만듭니다.

scopePath

string

여러 항목을 반환하는 폴더의 버전 제어 경로입니다.

recursionLevel
VersionControlRecursionType

없음(항목만) 또는 OneLevel(폴더의 내용).

versionDescriptor
TfvcVersionDescriptor

버전 설명자입니다. 기본값은 null입니다.

includeContent

boolean

json을 요청할 때 항목 콘텐츠를 포함하도록 true로 설정합니다. 기본값은 false입니다.

반환

Promise<ArrayBuffer>

getItems(string, string, VersionControlRecursionType, boolean, TfvcVersionDescriptor)

Tfvc 항목 목록 가져오기

function getItems(project?: string, scopePath?: string, recursionLevel?: VersionControlRecursionType, includeLinks?: boolean, versionDescriptor?: TfvcVersionDescriptor): Promise<TfvcItem[]>

매개 변수

project

string

프로젝트 ID 또는 프로젝트 이름

scopePath

string

여러 항목을 반환하는 폴더의 버전 제어 경로입니다.

recursionLevel
VersionControlRecursionType

없음(항목만) 또는 OneLevel(폴더의 내용).

includeLinks

boolean

링크를 포함하려면 True입니다.

versionDescriptor
TfvcVersionDescriptor

반환

Promise<TfvcItem[]>

getItemsBatch(TfvcItemRequestData, string)

경로 목록 또는 긴 경로가 주어진 항목 집합을 검색하기 위한 Post입니다. 각 경로에 대한 recursionLevel 및 버전 설명자를 지정할 수 있습니다.

function getItemsBatch(itemRequestData: TfvcItemRequestData, project?: string): Promise<TfvcItem[][]>

매개 변수

itemRequestData
TfvcItemRequestData
project

string

프로젝트 ID 또는 프로젝트 이름

반환

Promise<TfvcItem[][]>

getItemsBatchZip(TfvcItemRequestData, string)

경로 목록 또는 긴 경로가 주어진 항목 집합을 검색하기 위한 Post입니다. 각 경로에 대한 recursionLevel 및 버전 설명자를 지정할 수 있습니다.

function getItemsBatchZip(itemRequestData: TfvcItemRequestData, project?: string): Promise<ArrayBuffer>

매개 변수

itemRequestData
TfvcItemRequestData
project

string

프로젝트 ID 또는 프로젝트 이름

반환

Promise<ArrayBuffer>

getItemText(string, string, string, boolean, string, VersionControlRecursionType, TfvcVersionDescriptor, boolean)

단일 항목에 대한 항목 메타데이터 및/또는 콘텐츠를 가져옵니다. 다운로드 매개 변수는 콘텐츠를 다운로드로 사용할 수 있는지 아니면 응답에서 스트림으로 전송해야 하는지를 나타내는 것입니다. 항상 다운로드로 반환되는 압축된 콘텐츠에는 적용되지 않습니다.

function getItemText(path: string, project?: string, fileName?: string, download?: boolean, scopePath?: string, recursionLevel?: VersionControlRecursionType, versionDescriptor?: TfvcVersionDescriptor, includeContent?: boolean): Promise<string>

매개 변수

path

string

반환할 개별 항목의 버전 제어 경로입니다.

project

string

프로젝트 ID 또는 프로젝트 이름

fileName

string

반환된 항목의 파일 이름입니다.

download

boolean

true인 경우 다운로드 가능한 첨부 파일을 만듭니다.

scopePath

string

여러 항목을 반환하는 폴더의 버전 제어 경로입니다.

recursionLevel
VersionControlRecursionType

없음(항목만) 또는 OneLevel(폴더의 내용).

versionDescriptor
TfvcVersionDescriptor

버전 설명자입니다. 기본값은 null입니다.

includeContent

boolean

json을 요청할 때 항목 콘텐츠를 포함하도록 true로 설정합니다. 기본값은 false입니다.

반환

Promise<string>

getItemZip(string, string, string, boolean, string, VersionControlRecursionType, TfvcVersionDescriptor, boolean)

단일 항목에 대한 항목 메타데이터 및/또는 콘텐츠를 가져옵니다. 다운로드 매개 변수는 콘텐츠를 다운로드로 사용할 수 있는지 아니면 응답에서 스트림으로 전송해야 하는지를 나타내는 것입니다. 항상 다운로드로 반환되는 압축된 콘텐츠에는 적용되지 않습니다.

function getItemZip(path: string, project?: string, fileName?: string, download?: boolean, scopePath?: string, recursionLevel?: VersionControlRecursionType, versionDescriptor?: TfvcVersionDescriptor, includeContent?: boolean): Promise<ArrayBuffer>

매개 변수

path

string

반환할 개별 항목의 버전 제어 경로입니다.

project

string

프로젝트 ID 또는 프로젝트 이름

fileName

string

반환된 항목의 파일 이름입니다.

download

boolean

true인 경우 다운로드 가능한 첨부 파일을 만듭니다.

scopePath

string

여러 항목을 반환하는 폴더의 버전 제어 경로입니다.

recursionLevel
VersionControlRecursionType

없음(항목만) 또는 OneLevel(폴더의 내용).

versionDescriptor
TfvcVersionDescriptor

버전 설명자입니다. 기본값은 null입니다.

includeContent

boolean

json을 요청할 때 항목 콘텐츠를 포함하도록 true로 설정합니다. 기본값은 false입니다.

반환

Promise<ArrayBuffer>

getLabel(string, TfvcLabelRequestData, string)

하나의 딥 라벨을 얻으십시오.

function getLabel(labelId: string, requestData: TfvcLabelRequestData, project?: string): Promise<TfvcLabel>

매개 변수

labelId

string

레이블의 고유 식별자

requestData
TfvcLabelRequestData

최대 항목 수

project

string

프로젝트 ID 또는 프로젝트 이름

반환

Promise<TfvcLabel>

getLabelItems(string, number, number)

레이블 아래의 항목을 가져옵니다.

function getLabelItems(labelId: string, top?: number, skip?: number): Promise<TfvcItem[]>

매개 변수

labelId

string

레이블의 고유 식별자

top

number

반품할 최대 품목 수

skip

number

건너뛸 항목 수

반환

Promise<TfvcItem[]>

getLabels(TfvcLabelRequestData, string, number, number)

얕은 레이블 참조 모음을 가져옵니다.

function getLabels(requestData: TfvcLabelRequestData, project?: string, top?: number, skip?: number): Promise<TfvcLabelRef[]>

매개 변수

requestData
TfvcLabelRequestData

labelScope, name, owner 및 itemLabelFilter

project

string

프로젝트 ID 또는 프로젝트 이름

top

number

반환할 최대 레이블 수, 정의되지 않은 경우 기본값은 100입니다.

skip

number

건너뛸 레이블 수

반환

Promise<TfvcLabelRef[]>

getShelveset(string, TfvcShelvesetRequestData)

하나의 깊은 선반 세트를 얻으십시오.

function getShelveset(shelvesetId: string, requestData?: TfvcShelvesetRequestData): Promise<TfvcShelveset>

매개 변수

shelvesetId

string

보류 집합의 고유 ID

requestData
TfvcShelvesetRequestData

includeDetails, includeWorkItems, maxChangeCount 및 maxCommentLength

반환

Promise<TfvcShelveset>

getShelvesetChanges(string, number, number)

보류 집합에 포함된 변경 내용을 가져옵니다.

function getShelvesetChanges(shelvesetId: string, top?: number, skip?: number): Promise<TfvcChange[]>

매개 변수

shelvesetId

string

보류 집합의 고유 ID

top

number

반환할 최대 변경 사항 수

skip

number

건너뛸 변경 내용 수

반환

Promise<TfvcChange[]>

getShelvesets(TfvcShelvesetRequestData, number, number)

얕은 보류 집합 참조의 컬렉션을 반환합니다.

function getShelvesets(requestData?: TfvcShelvesetRequestData, top?: number, skip?: number): Promise<TfvcShelvesetRef[]>

매개 변수

requestData
TfvcShelvesetRequestData

name, owner 및 maxCommentLength

top

number

반환할 최대 보류 집합 수

skip

number

건너뛸 보류 집합 수

반환

Promise<TfvcShelvesetRef[]>

getShelvesetWorkItems(string)

보류 집합과 연결된 작업 항목을 가져옵니다.

function getShelvesetWorkItems(shelvesetId: string): Promise<AssociatedWorkItem[]>

매개 변수

shelvesetId

string

보류 집합의 고유 ID

반환

Promise<AssociatedWorkItem[]>

getTfvcStatistics(string, string)

TFVC의 특정 범위에서 컬렉션/프로젝트에 대한 파일 수 및 압축되지 않은 바이트를 제공합니다.

function getTfvcStatistics(project?: string, scopePath?: string): Promise<TfvcStatistics>

매개 변수

project

string

프로젝트 ID 또는 프로젝트 이름

scopePath

string

컬렉션의 경우 '$/', 특정 프로젝트의 경우 '$/프로젝트'

반환

Promise<TfvcStatistics>