@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api ApplicationInsightsManagementClient
@base https://management.azure.com
@version 2015-05-01
@auth OAuth2
@endpoints 5
@toc subscriptions(5)

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites
@desc Gets a list of favorites defined within an Application Insights component.
@required {resourceName: any # The name of the Application Insights component resource.}
@optional {favoriteType: any # The type of favorite. Value can be either shared or user., sourceType: any # Source type of favorite to return. When left out, the source type defaults to 'other' (not present in this enum)., canFetchContent: any # Flag indicating whether or not to return the full content for each applicable favorite. If false, only return summary content for favorites., tags: any # Tags that must be present on each favorite returned.}
@returns(200) A list containing 0 or more favorite definitions associated to the Application Insights component.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}
@desc Get a single favorite by its FavoriteId, defined within an Application Insights component.
@required {resourceName: any # The name of the Application Insights component resource., favoriteId: any # The Id of a specific favorite defined in the Application Insights component}
@returns(200) A favorite definition associated to the Application Insights component.

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}
@desc Adds a new favorites to an Application Insights component.
@required {resourceName: any # The name of the Application Insights component resource., favoriteId: any # The Id of a specific favorite defined in the Application Insights component, favoriteProperties: any # Properties that need to be specified to create a new favorite and add it to an Application Insights component.}
@returns(200) The newly created favorite that is associated to the Application Insights component.

@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}
@desc Updates a favorite that has already been added to an Application Insights component.
@required {resourceName: any # The name of the Application Insights component resource., favoriteId: any # The Id of a specific favorite defined in the Application Insights component, favoriteProperties: any # Properties that need to be specified to update the existing favorite.}
@returns(200) The favorite definition updated.

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}
@desc Remove a favorite that is associated to an Application Insights component.
@required {resourceName: any # The name of the Application Insights component resource., favoriteId: any # The Id of a specific favorite defined in the Application Insights component}
@returns(200) The favorite has been successfully removed from the Application Insights component.

@end
