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

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooktemplates
@desc Get all Workbook templates defined within a specified resource group.
@returns(200) A list containing 0 or more workbook template definitions.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooktemplates/{resourceName}
@desc Get a single workbook template by its resourceName.
@required {resourceName: any # The name of the Application Insights component resource.}
@returns(200) A workbook template definition.

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooktemplates/{resourceName}
@desc Delete a workbook template.
@required {resourceName: any # The name of the Application Insights component resource.}
@returns(200) The workbook template has been successfully deleted.
@returns(204) The resource doesn't exist.

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooktemplates/{resourceName}
@desc Create a new workbook template.
@required {resourceName: any # The name of the Application Insights component resource., workbookTemplateProperties: any # Properties that need to be specified to create a new workbook.}
@returns(200) The newly created workbook template.
@returns(201) The newly created workbook template.

@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooktemplates/{resourceName}
@desc Updates a workbook template that has already been added.
@required {resourceName: any # The name of the Application Insights component resource.}
@optional {WorkbookTemplateUpdateParameters: any # Properties that need to be specified to patch a workbook template.}
@returns(200) The workbook template definition updated.

@end
