/// <summary> /// Create a Continuous Export configuration of an Application Insights /// component. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='resourceName'> /// The name of the Application Insights component resource. /// </param> /// <param name='exportProperties'> /// Properties that need to be specified to create a Continuous Export /// configuration of a Application Insights component. /// </param> public static IList <ApplicationInsightsComponentExportConfiguration> Create(this IExportConfigurationsOperations operations, string resourceGroupName, string resourceName, ApplicationInsightsComponentExportRequest exportProperties) { return(operations.CreateAsync(resourceGroupName, resourceName, exportProperties).GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of Continuous Export configuration of an Application Insights /// component. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='resourceName'> /// The name of the Application Insights component resource. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <ApplicationInsightsComponentExportConfiguration> > ListAsync(this IExportConfigurationsOperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Update the Continuous Export configuration for this export id. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='resourceName'> /// The name of the Application Insights component resource. /// </param> /// <param name='exportId'> /// The Continuous Export configuration ID. This is unique within a Application /// Insights component. /// </param> /// <param name='exportProperties'> /// Properties that need to be specified to update the Continuous Export /// configuration. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ApplicationInsightsComponentExportConfiguration> UpdateAsync(this IExportConfigurationsOperations operations, string resourceGroupName, string resourceName, string exportId, ApplicationInsightsComponentExportRequest exportProperties, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, resourceName, exportId, exportProperties, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a list of Continuous Export configuration of an Application Insights /// component. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='resourceName'> /// The name of the Application Insights component resource. /// </param> public static IList <ApplicationInsightsComponentExportConfiguration> List(this IExportConfigurationsOperations operations, string resourceGroupName, string resourceName) { return(operations.ListAsync(resourceGroupName, resourceName).GetAwaiter().GetResult()); }
/// <summary> /// Delete a Continuous Export configuration of an Application Insights /// component. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='resourceName'> /// The name of the Application Insights component resource. /// </param> /// <param name='exportId'> /// The Continuous Export configuration ID. This is unique within a Application /// Insights component. /// </param> public static ApplicationInsightsComponentExportConfiguration Delete(this IExportConfigurationsOperations operations, string resourceGroupName, string resourceName, string exportId) { return(operations.DeleteAsync(resourceGroupName, resourceName, exportId).GetAwaiter().GetResult()); }