/// <summary> /// Gets the log profile. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Insights.ILogProfilesOperations. /// </param> /// <param name='name'> /// Required. The name of the log profile. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <LogProfileGetResponse> GetAsync(this ILogProfilesOperations operations, string name) { return(operations.GetAsync(name, CancellationToken.None)); }
/// <summary> /// Gets the log profile. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='logProfileName'> /// The name of the log profile. /// </param> public static LogProfileResource Get(this ILogProfilesOperations operations, string logProfileName) { return(operations.GetAsync(logProfileName).GetAwaiter().GetResult()); }