AccountsRestClient class

应使用 (派生自) 的基类向 VSS REST API 发出请求

Extends

构造函数

AccountsRestClient(IVssRestClientOptions)

属性

RESOURCE_AREA_ID

方法

createAccount(AccountCreateInfoInternal, boolean)
getAccount(string)
getAccounts(string, string, string)

获取特定所有者或特定成员的帐户列表。 以下参数之一是必需的:ownerId、memberId。

构造函数详细信息

AccountsRestClient(IVssRestClientOptions)

new AccountsRestClient(options: IVssRestClientOptions)

参数

属性详细信息

RESOURCE_AREA_ID

static RESOURCE_AREA_ID: string

属性值

string

方法详细信息

createAccount(AccountCreateInfoInternal, boolean)

function createAccount(info: AccountCreateInfoInternal, usePrecreated?: boolean): Promise<Account>

参数

usePrecreated

boolean

返回

Promise<Account>

getAccount(string)

function getAccount(accountId: string): Promise<Account>

参数

accountId

string

返回

Promise<Account>

getAccounts(string, string, string)

获取特定所有者或特定成员的帐户列表。 以下参数之一是必需的:ownerId、memberId。

function getAccounts(ownerId?: string, memberId?: string, properties?: string): Promise<Account[]>

参数

ownerId

string

帐户所有者的 ID。

memberId

string

帐户成员的 ID。

properties

string

返回

Promise<Account[]>