/// <summary> /// Timeline for an entity. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='entityId'> /// entity ID /// </param> /// <param name='parameters'> /// The parameters required to execute an timeline operation on the given /// entity. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <EntityTimelineResponse> ListAsync(this IEntitiesGetTimelineOperations operations, string resourceGroupName, string workspaceName, string entityId, EntityTimelineParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, workspaceName, entityId, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Timeline for an entity. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='entityId'> /// entity ID /// </param> /// <param name='parameters'> /// The parameters required to execute an timeline operation on the given /// entity. /// </param> public static EntityTimelineResponse List(this IEntitiesGetTimelineOperations operations, string resourceGroupName, string workspaceName, string entityId, EntityTimelineParameters parameters) { return(operations.ListAsync(resourceGroupName, workspaceName, entityId, parameters).GetAwaiter().GetResult()); }