次の方法で共有


LocationsRestClient class

VSS REST API への要求を行うために使用する (から派生する) 基本クラス

Extends

コンストラクター

LocationsRestClient(IVssRestClientOptions)

メソッド

deleteServiceDefinition(string, string)
getConnectionData(ConnectOptions, number, number)

これは TeamFoundationConnectionService.Connect() からコピーされ、適合されました

getResourceArea(string, string, string)
getResourceAreaByHost(string, string)
getResourceAreas(string, string)
getResourceAreasByHost(string)
getServiceDefinition(string, string, boolean, boolean)

特定のサービス定義を検索します。

getServiceDefinitions(string)
updateServiceDefinitions(VssJsonCollectionWrapperV<ServiceDefinition[]>)

コンストラクターの詳細

LocationsRestClient(IVssRestClientOptions)

new LocationsRestClient(options: IVssRestClientOptions)

パラメーター

メソッドの詳細

deleteServiceDefinition(string, string)

function deleteServiceDefinition(serviceType: string, identifier: string): Promise<void>

パラメーター

serviceType

string

identifier

string

戻り値

Promise<void>

getConnectionData(ConnectOptions, number, number)

これは TeamFoundationConnectionService.Connect() からコピーされ、適合されました

function getConnectionData(connectOptions?: ConnectOptions, lastChangeId?: number, lastChangeId64?: number): Promise<ConnectionData>

パラメーター

connectOptions
ConnectOptions
lastChangeId

number

廃止された 32 ビット LastChangeId

lastChangeId64

number

切り捨てされていない 64 ビット LastChangeId

戻り値

Promise<ConnectionData>

getResourceArea(string, string, string)

function getResourceArea(areaId: string, enterpriseName?: string, organizationName?: string): Promise<ResourceAreaInfo>

パラメーター

areaId

string

enterpriseName

string

organizationName

string

戻り値

Promise<ResourceAreaInfo>

getResourceAreaByHost(string, string)

function getResourceAreaByHost(areaId: string, hostId: string): Promise<ResourceAreaInfo>

パラメーター

areaId

string

hostId

string

戻り値

Promise<ResourceAreaInfo>

getResourceAreas(string, string)

function getResourceAreas(enterpriseName?: string, organizationName?: string): Promise<ResourceAreaInfo[]>

パラメーター

enterpriseName

string

organizationName

string

戻り値

Promise<ResourceAreaInfo[]>

getResourceAreasByHost(string)

function getResourceAreasByHost(hostId: string): Promise<ResourceAreaInfo[]>

パラメーター

hostId

string

戻り値

Promise<ResourceAreaInfo[]>

getServiceDefinition(string, string, boolean, boolean)

特定のサービス定義を検索します。

function getServiceDefinition(serviceType: string, identifier: string, allowFaultIn?: boolean, previewFaultIn?: boolean): Promise<ServiceDefinition>

パラメーター

serviceType

string

identifier

string

allowFaultIn

boolean

true の場合、SPS の場合はホスト インスタンス マッピングでエラーが発生しようとします。

previewFaultIn

boolean

true の場合は、ホスト インスタンス マッピングを計算して返しますが、永続化は行いません。

戻り値

getServiceDefinitions(string)

function getServiceDefinitions(serviceType?: string): Promise<ServiceDefinition[]>

パラメーター

serviceType

string

戻り値

Promise<ServiceDefinition[]>

updateServiceDefinitions(VssJsonCollectionWrapperV<ServiceDefinition[]>)

function updateServiceDefinitions(serviceDefinitions: VssJsonCollectionWrapperV<ServiceDefinition[]>): Promise<void>

パラメーター

戻り値

Promise<void>