Accounts class
表示 Accounts 的类。
方法
构造函数详细信息
Accounts(VisualStudioResourceProviderClientContext)
创建帐户。
new Accounts(client: VisualStudioResourceProviderClientContext)
参数
对服务客户端的引用。
方法详细信息
checkNameAvailability(CheckNameAvailabilityParameter, RequestOptionsBase)
检查指定的 Visual Studio Team Services 帐户名称是否可用。 资源名称可以是帐户名,也可以是帐户名和 PUID。
function checkNameAvailability(body: CheckNameAvailabilityParameter, options?: RequestOptionsBase): Promise<AccountsCheckNameAvailabilityResponse>
参数
描述要检查其可用性的名称的参数。
- options
- RequestOptionsBase
可选参数
返回
Promise<Models.AccountsCheckNameAvailabilityResponse>
checkNameAvailability(CheckNameAvailabilityParameter, RequestOptionsBase, ServiceCallback<CheckNameAvailabilityResult>)
function checkNameAvailability(body: CheckNameAvailabilityParameter, options: RequestOptionsBase, callback: ServiceCallback<CheckNameAvailabilityResult>)
参数
描述要检查其可用性的名称的参数。
- options
- RequestOptionsBase
可选参数
- callback
回调
checkNameAvailability(CheckNameAvailabilityParameter, ServiceCallback<CheckNameAvailabilityResult>)
function checkNameAvailability(body: CheckNameAvailabilityParameter, callback: ServiceCallback<CheckNameAvailabilityResult>)
参数
描述要检查其可用性的名称的参数。
- callback
回调
createOrUpdate(string, AccountResourceRequest, string, RequestOptionsBase)
创建或更新 Visual Studio Team Services 帐户资源。
function createOrUpdate(resourceGroupName: string, body: AccountResourceRequest, resourceName: string, options?: RequestOptionsBase): Promise<AccountsCreateOrUpdateResponse>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
请求数据。
- resourceName
-
string
资源的名称。
- options
- RequestOptionsBase
可选参数
返回
Promise<AccountsCreateOrUpdateResponse>
承诺<Models.AccountsCreateOrUpdateResponse>
createOrUpdate(string, AccountResourceRequest, string, RequestOptionsBase, ServiceCallback<AccountResource>)
function createOrUpdate(resourceGroupName: string, body: AccountResourceRequest, resourceName: string, options: RequestOptionsBase, callback: ServiceCallback<AccountResource>)
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
请求数据。
- resourceName
-
string
资源的名称。
- options
- RequestOptionsBase
可选参数
- callback
回调
createOrUpdate(string, AccountResourceRequest, string, ServiceCallback<AccountResource>)
function createOrUpdate(resourceGroupName: string, body: AccountResourceRequest, resourceName: string, callback: ServiceCallback<AccountResource>)
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
请求数据。
- resourceName
-
string
资源的名称。
- callback
回调
deleteMethod(string, string, RequestOptionsBase)
删除 Visual Studio Team Services 帐户资源。
function deleteMethod(resourceGroupName: string, resourceName: string, options?: RequestOptionsBase): Promise<RestResponse>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- resourceName
-
string
资源的名称。
- options
- RequestOptionsBase
可选参数
返回
Promise<RestResponse>
承诺<msRest.RestResponse>
deleteMethod(string, string, RequestOptionsBase, ServiceCallback<void>)
function deleteMethod(resourceGroupName: string, resourceName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- resourceName
-
string
资源的名称。
- options
- RequestOptionsBase
可选参数
- callback
-
ServiceCallback<void>
回调
deleteMethod(string, string, ServiceCallback<void>)
function deleteMethod(resourceGroupName: string, resourceName: string, callback: ServiceCallback<void>)
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- resourceName
-
string
资源的名称。
- callback
-
ServiceCallback<void>
回调
get(string, string, RequestOptionsBase)
获取 Visual Studio Team Services 帐户资源详细信息。
function get(resourceGroupName: string, resourceName: string, options?: RequestOptionsBase): Promise<AccountsGetResponse>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- resourceName
-
string
资源的名称。
- options
- RequestOptionsBase
可选参数
返回
Promise<AccountsGetResponse>
承诺<Models.AccountsGetResponse>
get(string, string, RequestOptionsBase, ServiceCallback<AccountResource>)
function get(resourceGroupName: string, resourceName: string, options: RequestOptionsBase, callback: ServiceCallback<AccountResource>)
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- resourceName
-
string
资源的名称。
- options
- RequestOptionsBase
可选参数
- callback
回调
get(string, string, ServiceCallback<AccountResource>)
function get(resourceGroupName: string, resourceName: string, callback: ServiceCallback<AccountResource>)
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- resourceName
-
string
资源的名称。
- callback
回调
listByResourceGroup(string, RequestOptionsBase)
获取链接到指定 Azure 订阅的资源组下的所有 Visual Studio Team Services 帐户资源。
function listByResourceGroup(resourceGroupName: string, options?: RequestOptionsBase): Promise<AccountsListByResourceGroupResponse>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- options
- RequestOptionsBase
可选参数
返回
Promise<AccountsListByResourceGroupResponse>
承诺<Models.AccountsListByResourceGroupResponse>
listByResourceGroup(string, RequestOptionsBase, ServiceCallback<AccountResourceListResult>)
function listByResourceGroup(resourceGroupName: string, options: RequestOptionsBase, callback: ServiceCallback<AccountResourceListResult>)
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- options
- RequestOptionsBase
可选参数
- callback
回调
listByResourceGroup(string, ServiceCallback<AccountResourceListResult>)
function listByResourceGroup(resourceGroupName: string, callback: ServiceCallback<AccountResourceListResult>)
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- callback
回调
update(string, AccountTagRequest, string, RequestOptionsBase)
更新 Visual Studio Team Services 帐户资源的标记。
function update(resourceGroupName: string, body: AccountTagRequest, resourceName: string, options?: RequestOptionsBase): Promise<AccountsUpdateResponse>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- body
- AccountTagRequest
请求数据。
- resourceName
-
string
资源的名称。
- options
- RequestOptionsBase
可选参数
返回
Promise<AccountsUpdateResponse>
承诺<Models.AccountsUpdateResponse>
update(string, AccountTagRequest, string, RequestOptionsBase, ServiceCallback<AccountResource>)
function update(resourceGroupName: string, body: AccountTagRequest, resourceName: string, options: RequestOptionsBase, callback: ServiceCallback<AccountResource>)
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- body
- AccountTagRequest
请求数据。
- resourceName
-
string
资源的名称。
- options
- RequestOptionsBase
可选参数
- callback
回调
update(string, AccountTagRequest, string, ServiceCallback<AccountResource>)
function update(resourceGroupName: string, body: AccountTagRequest, resourceName: string, callback: ServiceCallback<AccountResource>)
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- body
- AccountTagRequest
请求数据。
- resourceName
-
string
资源的名称。
- callback
回调