/// <summary>
 /// Insert historic events
 /// </summary>
 /// <remarks>
 /// Insert historic events using historic access. The endpoint must be
 /// activated and connected and the module client and server must trust each
 /// other.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='endpointId'>
 /// The identifier of the activated endpoint.
 /// </param>
 /// <param name='body'>
 /// The history insert request
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <HistoryUpdateResponseApiModel> HistoryInsertEventsAsync(this IAzureOpcHistoryClient operations, string endpointId, InsertEventsDetailsApiModelHistoryUpdateRequestApiModel body, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.HistoryInsertEventsWithHttpMessagesAsync(endpointId, body, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Insert historic events
 /// </summary>
 /// <remarks>
 /// Insert historic events using historic access. The endpoint must be
 /// activated and connected and the module client and server must trust each
 /// other.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='endpointId'>
 /// The identifier of the activated endpoint.
 /// </param>
 /// <param name='body'>
 /// The history insert request
 /// </param>
 public static HistoryUpdateResponseApiModel HistoryInsertEvents(this IAzureOpcHistoryClient operations, string endpointId, InsertEventsDetailsApiModelHistoryUpdateRequestApiModel body)
 {
     return(operations.HistoryInsertEventsAsync(endpointId, body).GetAwaiter().GetResult());
 }