@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Visual Studio Resource Provider Client
@base https://management.azure.com
@version 2017-11-01-preview
@auth OAuth2
@endpoints 15
@toc providers(1), subscriptions(14)

@group providers
@endpoint GET /providers/microsoft.visualstudio/operations
@desc Operations_List
@returns(200) The operation succeeded. The response contains the possible operations on the Microsoft.VisualStudio resource provider.

@endgroup

@group subscriptions
@endpoint POST /subscriptions/{subscriptionId}/providers/microsoft.visualstudio/checkNameAvailability
@desc Accounts_CheckNameAvailability
@required {subscriptionId: any # The Azure subscription identifier., api-version: any # API Version, body: map # Parameters describing the name to check availability for.}
@returns(200) The operation succeeded. The response contains the result of the name availability check.

@endpoint GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account
@desc Accounts_ListByResourceGroup
@required {resourceGroupName: any # Name of the resource group within the Azure subscription., subscriptionId: any # The Azure subscription identifier., api-version: any # API Version}
@returns(200) The operation succeeded. The response contains the details of the Visual Studio Team Services account resources linked to the Azure subscription.

@endpoint GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension
@desc Extensions_ListByAccount
@required {resourceGroupName: any # Name of the resource group within the Azure subscription., subscriptionId: any # The Azure subscription identifier., api-version: any # API Version, accountResourceName: any # The name of the Visual Studio Team Services account resource.}
@returns(200) The operation succeeded. The response contains all extension resource details for the specified account.

@endpoint PUT /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}
@desc Extensions_Create
@required {resourceGroupName: any # Name of the resource group within the Azure subscription., subscriptionId: any # The Azure subscription identifier., api-version: any # API Version, body: map # An object containing additional information related to the extension request., accountResourceName: any # The name of the Visual Studio Team Services account resource., extensionResourceName: any # The name of the extension.}
@returns(200) The operation succeeded. The extension resource was created for the specified account.

@endpoint DELETE /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}
@desc Extensions_Delete
@required {resourceGroupName: any # Name of the resource group within the Azure subscription., subscriptionId: any # The Azure subscription identifier., api-version: any # API Version, accountResourceName: any # The name of the Visual Studio Team Services account resource., extensionResourceName: any # The name of the extension.}
@returns(200) The operation succeeded. The extension resource has been deleted for the specified account.

@endpoint GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}
@desc Extensions_Get
@required {resourceGroupName: any # Name of the resource group within the Azure subscription., subscriptionId: any # The Azure subscription identifier., api-version: any # API Version, accountResourceName: any # The name of the Visual Studio Team Services account resource., extensionResourceName: any # The name of the extension.}
@returns(200) The operation succeeded. The response contains the extension resource details for the specified account.
@errors {404: The specified extension has no plans defined.}

@endpoint PATCH /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{accountResourceName}/extension/{extensionResourceName}
@desc Extensions_Update
@required {resourceGroupName: any # Name of the resource group within the Azure subscription., subscriptionId: any # The Azure subscription identifier., api-version: any # API Version, body: map # An object containing additional information related to the extension request., accountResourceName: any # The name of the Visual Studio Team Services account resource., extensionResourceName: any # The name of the extension.}
@returns(200) The operation succeeded. The extension resource was updated for the specified account.

@endpoint PUT /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}
@desc Accounts_CreateOrUpdate
@required {resourceGroupName: any # Name of the resource group within the Azure subscription., subscriptionId: any # The Azure subscription identifier., api-version: any # API Version, body: map # The request data., resourceName: any # Name of the resource.}
@returns(200) The operation succeeded. The Visual Studio Team Services account resource was created or updated.
@errors {404: The Visual Studio Team Services account does not exist.}

@endpoint DELETE /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}
@desc Accounts_Delete
@required {resourceGroupName: any # Name of the resource group within the Azure subscription., subscriptionId: any # The Azure subscription identifier., api-version: any # API Version, resourceName: any # Name of the resource.}
@returns(200) The operation succeeded. The Visual Studio Team Services account resource was deleted.

@endpoint GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{resourceName}
@desc Accounts_Get
@required {resourceGroupName: any # Name of the resource group within the Azure subscription., subscriptionId: any # The Azure subscription identifier., api-version: any # API Version, resourceName: any # Name of the resource.}
@returns(200) The operation succeeded. The response contains the details of the Visual Studio Team Services account resource.
@errors {404: The Visual Studio Team Services account does not exist.}

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project
@desc Projects_ListByAccountResource
@required {resourceGroupName: any # Name of the resource group within the Azure subscription., subscriptionId: any # The Azure subscription identifier., api-version: any # API Version, rootResourceName: any # Name of the Team Services account.}
@returns(200) The operation succeeded. The response contains the details of the Visual Studio Team Services project resources created in the specified Team Services account.

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}
@desc Projects_Create
@required {body: map # The request data., resourceGroupName: any # Name of the resource group within the Azure subscription., subscriptionId: any # The Azure subscription identifier., api-version: any # API Version, rootResourceName: any # Name of the Team Services account., resourceName: any # Name of the Team Services project.}
@optional {validating: any # This parameter is ignored and should be set to an empty string.}
@returns(200) The operation succeeded. The response contains the details of the created or updated team project resource.
@returns(202) The operation succeeded. A job to create the team project resource has been queued. The URI to monitor the status of the job is provided in the 'location' header.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}
@desc Projects_Get
@required {resourceGroupName: any # Name of the resource group within the Azure subscription., subscriptionId: any # The Azure subscription identifier., api-version: any # API Version, rootResourceName: any # Name of the Team Services account., resourceName: any # Name of the Team Services project.}
@returns(200) The operation succeeded. The response contains the details of the updated team project resource.
@errors {404: The project or Azure subscription was not found.}

@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project/{resourceName}
@desc Projects_Update
@required {resourceGroupName: any # Name of the resource group within the Azure subscription., subscriptionId: any # The Azure subscription identifier., api-version: any # API Version, body: map # The request data., rootResourceName: any # Name of the Team Services account., resourceName: any # Name of the Team Services project.}
@returns(200) The operation succeeded. The response contains the details of the updated team project resource.

@endgroup

@end
