Accounts class

Class representing a Accounts.

Constructors

Accounts(VisualStudioResourceProviderClientContext)

Create a Accounts.

Methods

checkNameAvailability(CheckNameAvailabilityParameter, RequestOptionsBase)

Checks if the specified Visual Studio Team Services account name is available. Resource name can be either an account name or an account name and PUID.

checkNameAvailability(CheckNameAvailabilityParameter, RequestOptionsBase, ServiceCallback<CheckNameAvailabilityResult>)
checkNameAvailability(CheckNameAvailabilityParameter, ServiceCallback<CheckNameAvailabilityResult>)
createOrUpdate(string, AccountResourceRequest, string, RequestOptionsBase)

Creates or updates a Visual Studio Team Services account resource.

createOrUpdate(string, AccountResourceRequest, string, RequestOptionsBase, ServiceCallback<AccountResource>)
createOrUpdate(string, AccountResourceRequest, string, ServiceCallback<AccountResource>)
deleteMethod(string, string, RequestOptionsBase)

Deletes a Visual Studio Team Services account resource.

deleteMethod(string, string, RequestOptionsBase, ServiceCallback<void>)
deleteMethod(string, string, ServiceCallback<void>)
get(string, string, RequestOptionsBase)

Gets the Visual Studio Team Services account resource details.

get(string, string, RequestOptionsBase, ServiceCallback<AccountResource>)
get(string, string, ServiceCallback<AccountResource>)
listByResourceGroup(string, RequestOptionsBase)

Gets all Visual Studio Team Services account resources under the resource group linked to the specified Azure subscription.

listByResourceGroup(string, RequestOptionsBase, ServiceCallback<AccountResourceListResult>)
listByResourceGroup(string, ServiceCallback<AccountResourceListResult>)
update(string, AccountTagRequest, string, RequestOptionsBase)

Updates tags for Visual Studio Team Services account resource.

update(string, AccountTagRequest, string, RequestOptionsBase, ServiceCallback<AccountResource>)
update(string, AccountTagRequest, string, ServiceCallback<AccountResource>)

Constructor Details

Accounts(VisualStudioResourceProviderClientContext)

Create a Accounts.

new Accounts(client: VisualStudioResourceProviderClientContext)

Parameters

client
VisualStudioResourceProviderClientContext

Reference to the service client.

Method Details

checkNameAvailability(CheckNameAvailabilityParameter, RequestOptionsBase)

Checks if the specified Visual Studio Team Services account name is available. Resource name can be either an account name or an account name and PUID.

function checkNameAvailability(body: CheckNameAvailabilityParameter, options?: RequestOptionsBase): Promise<AccountsCheckNameAvailabilityResponse>

Parameters

body
CheckNameAvailabilityParameter

Parameters describing the name to check availability for.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.AccountsCheckNameAvailabilityResponse>

checkNameAvailability(CheckNameAvailabilityParameter, RequestOptionsBase, ServiceCallback<CheckNameAvailabilityResult>)

function checkNameAvailability(body: CheckNameAvailabilityParameter, options: RequestOptionsBase, callback: ServiceCallback<CheckNameAvailabilityResult>)

Parameters

body
CheckNameAvailabilityParameter

Parameters describing the name to check availability for.

options
RequestOptionsBase

The optional parameters

checkNameAvailability(CheckNameAvailabilityParameter, ServiceCallback<CheckNameAvailabilityResult>)

function checkNameAvailability(body: CheckNameAvailabilityParameter, callback: ServiceCallback<CheckNameAvailabilityResult>)

Parameters

body
CheckNameAvailabilityParameter

Parameters describing the name to check availability for.

createOrUpdate(string, AccountResourceRequest, string, RequestOptionsBase)

Creates or updates a Visual Studio Team Services account resource.

function createOrUpdate(resourceGroupName: string, body: AccountResourceRequest, resourceName: string, options?: RequestOptionsBase): Promise<AccountsCreateOrUpdateResponse>

Parameters

resourceGroupName

string

Name of the resource group within the Azure subscription.

body
AccountResourceRequest

The request data.

resourceName

string

Name of the resource.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.AccountsCreateOrUpdateResponse>

createOrUpdate(string, AccountResourceRequest, string, RequestOptionsBase, ServiceCallback<AccountResource>)

function createOrUpdate(resourceGroupName: string, body: AccountResourceRequest, resourceName: string, options: RequestOptionsBase, callback: ServiceCallback<AccountResource>)

Parameters

resourceGroupName

string

Name of the resource group within the Azure subscription.

body
AccountResourceRequest

The request data.

resourceName

string

Name of the resource.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<AccountResource>

The callback

createOrUpdate(string, AccountResourceRequest, string, ServiceCallback<AccountResource>)

function createOrUpdate(resourceGroupName: string, body: AccountResourceRequest, resourceName: string, callback: ServiceCallback<AccountResource>)

Parameters

resourceGroupName

string

Name of the resource group within the Azure subscription.

body
AccountResourceRequest

The request data.

resourceName

string

Name of the resource.

callback

ServiceCallback<AccountResource>

The callback

deleteMethod(string, string, RequestOptionsBase)

Deletes a Visual Studio Team Services account resource.

function deleteMethod(resourceGroupName: string, resourceName: string, options?: RequestOptionsBase): Promise<RestResponse>

Parameters

resourceGroupName

string

Name of the resource group within the Azure subscription.

resourceName

string

Name of the resource.

options
RequestOptionsBase

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

deleteMethod(string, string, RequestOptionsBase, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, resourceName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Name of the resource group within the Azure subscription.

resourceName

string

Name of the resource.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<void>

The callback

deleteMethod(string, string, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, resourceName: string, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Name of the resource group within the Azure subscription.

resourceName

string

Name of the resource.

callback

ServiceCallback<void>

The callback

get(string, string, RequestOptionsBase)

Gets the Visual Studio Team Services account resource details.

function get(resourceGroupName: string, resourceName: string, options?: RequestOptionsBase): Promise<AccountsGetResponse>

Parameters

resourceGroupName

string

Name of the resource group within the Azure subscription.

resourceName

string

Name of the resource.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.AccountsGetResponse>

get(string, string, RequestOptionsBase, ServiceCallback<AccountResource>)

function get(resourceGroupName: string, resourceName: string, options: RequestOptionsBase, callback: ServiceCallback<AccountResource>)

Parameters

resourceGroupName

string

Name of the resource group within the Azure subscription.

resourceName

string

Name of the resource.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<AccountResource>

The callback

get(string, string, ServiceCallback<AccountResource>)

function get(resourceGroupName: string, resourceName: string, callback: ServiceCallback<AccountResource>)

Parameters

resourceGroupName

string

Name of the resource group within the Azure subscription.

resourceName

string

Name of the resource.

callback

ServiceCallback<AccountResource>

The callback

listByResourceGroup(string, RequestOptionsBase)

Gets all Visual Studio Team Services account resources under the resource group linked to the specified Azure subscription.

function listByResourceGroup(resourceGroupName: string, options?: RequestOptionsBase): Promise<AccountsListByResourceGroupResponse>

Parameters

resourceGroupName

string

Name of the resource group within the Azure subscription.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.AccountsListByResourceGroupResponse>

listByResourceGroup(string, RequestOptionsBase, ServiceCallback<AccountResourceListResult>)

function listByResourceGroup(resourceGroupName: string, options: RequestOptionsBase, callback: ServiceCallback<AccountResourceListResult>)

Parameters

resourceGroupName

string

Name of the resource group within the Azure subscription.

options
RequestOptionsBase

The optional parameters

listByResourceGroup(string, ServiceCallback<AccountResourceListResult>)

function listByResourceGroup(resourceGroupName: string, callback: ServiceCallback<AccountResourceListResult>)

Parameters

resourceGroupName

string

Name of the resource group within the Azure subscription.

update(string, AccountTagRequest, string, RequestOptionsBase)

Updates tags for Visual Studio Team Services account resource.

function update(resourceGroupName: string, body: AccountTagRequest, resourceName: string, options?: RequestOptionsBase): Promise<AccountsUpdateResponse>

Parameters

resourceGroupName

string

Name of the resource group within the Azure subscription.

body
AccountTagRequest

The request data.

resourceName

string

Name of the resource.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.AccountsUpdateResponse>

update(string, AccountTagRequest, string, RequestOptionsBase, ServiceCallback<AccountResource>)

function update(resourceGroupName: string, body: AccountTagRequest, resourceName: string, options: RequestOptionsBase, callback: ServiceCallback<AccountResource>)

Parameters

resourceGroupName

string

Name of the resource group within the Azure subscription.

body
AccountTagRequest

The request data.

resourceName

string

Name of the resource.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<AccountResource>

The callback

update(string, AccountTagRequest, string, ServiceCallback<AccountResource>)

function update(resourceGroupName: string, body: AccountTagRequest, resourceName: string, callback: ServiceCallback<AccountResource>)

Parameters

resourceGroupName

string

Name of the resource group within the Azure subscription.

body
AccountTagRequest

The request data.

resourceName

string

Name of the resource.

callback

ServiceCallback<AccountResource>

The callback