Example #1
0
 /// <summary>
 /// Return the service status in the form of the service status
 /// api model.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <StatusResponseApiModel> GetStatusAsync(this IAzureOpcHistoryClient operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetStatusWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #2
0
 /// <summary>
 /// Replace historic events
 /// </summary>
 /// <remarks>
 /// Replace 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='request'>
 /// The history replace request
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <HistoryUpdateResponseApiModel> HistoryReplaceEventsAsync(this IAzureOpcHistoryClient operations, string endpointId, HistoryUpdateRequestApiModelReplaceEventsDetailsApiModel request, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.HistoryReplaceEventsWithHttpMessagesAsync(endpointId, request, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #3
0
 /// <summary>
 /// Return the service status in the form of the service status
 /// api model.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static StatusResponseApiModel GetStatus(this IAzureOpcHistoryClient operations)
 {
     return(operations.GetStatusAsync().GetAwaiter().GetResult());
 }
Example #4
0
 /// <summary>
 /// Read next batch of historic values
 /// </summary>
 /// <remarks>
 /// Read next batch of historic values of a node 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='request'>
 /// The history read next request
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <HistoryReadNextResponseApiModelHistoricValueApiModel> HistoryReadValueNextAsync(this IAzureOpcHistoryClient operations, string endpointId, HistoryReadNextRequestApiModel request, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.HistoryReadValueNextWithHttpMessagesAsync(endpointId, request, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #5
0
 /// <summary>
 /// Replace historic events
 /// </summary>
 /// <remarks>
 /// Replace 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='request'>
 /// The history replace request
 /// </param>
 public static HistoryUpdateResponseApiModel HistoryReplaceEvents(this IAzureOpcHistoryClient operations, string endpointId, HistoryUpdateRequestApiModelReplaceEventsDetailsApiModel request)
 {
     return(operations.HistoryReplaceEventsAsync(endpointId, request).GetAwaiter().GetResult());
 }
Example #6
0
 /// <summary>
 /// Read historic processed values at specified times
 /// </summary>
 /// <remarks>
 /// Read processed history values of a node if available 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='request'>
 /// The history read request
 /// </param>
 public static HistoryReadResponseApiModelHistoricValueApiModel HistoryReadProcessedValues(this IAzureOpcHistoryClient operations, string endpointId, HistoryReadRequestApiModelReadProcessedValuesDetailsApiModel request)
 {
     return(operations.HistoryReadProcessedValuesAsync(endpointId, request).GetAwaiter().GetResult());
 }
Example #7
0
 /// <summary>
 /// Read next batch of historic values
 /// </summary>
 /// <remarks>
 /// Read next batch of historic values of a node 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='request'>
 /// The history read next request
 /// </param>
 public static HistoryReadNextResponseApiModelHistoricValueApiModel HistoryReadValueNext(this IAzureOpcHistoryClient operations, string endpointId, HistoryReadNextRequestApiModel request)
 {
     return(operations.HistoryReadValueNextAsync(endpointId, request).GetAwaiter().GetResult());
 }
Example #8
0
 /// <summary>
 /// Update node history using raw json
 /// </summary>
 /// <remarks>
 /// Update node history 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='request'>
 /// The history update request
 /// </param>
 public static HistoryUpdateResponseApiModel HistoryUpdateRaw(this IAzureOpcHistoryClient operations, string endpointId, HistoryUpdateRequestApiModelJToken request)
 {
     return(operations.HistoryUpdateRawAsync(endpointId, request).GetAwaiter().GetResult());
 }
Example #9
0
 /// <summary>
 /// Delete value history at specified times
 /// </summary>
 /// <remarks>
 /// Delete value history 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='request'>
 /// The history update request
 /// </param>
 public static HistoryUpdateResponseApiModel HistoryDeleteValuesAtTimes(this IAzureOpcHistoryClient operations, string endpointId, HistoryUpdateRequestApiModelDeleteValuesAtTimesDetailsApiModel request)
 {
     return(operations.HistoryDeleteValuesAtTimesAsync(endpointId, request).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Replace historic values
 /// </summary>
 /// <remarks>
 /// Replace historic values 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 replace request
 /// </param>
 public static HistoryUpdateResponseApiModel HistoryReplaceValues(this IAzureOpcHistoryClient operations, string endpointId, ReplaceValuesDetailsApiModelHistoryUpdateRequestApiModel body)
 {
     return(operations.HistoryReplaceValuesAsync(endpointId, body).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Read next batch of historic events
 /// </summary>
 /// <remarks>
 /// Read next batch of historic events of a node 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 read next request
 /// </param>
 public static HistoricEventApiModelHistoryReadNextResponseApiModel HistoryReadEventsNext(this IAzureOpcHistoryClient operations, string endpointId, HistoryReadNextRequestApiModel body)
 {
     return(operations.HistoryReadEventsNextAsync(endpointId, body).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Read history using json details
 /// </summary>
 /// <remarks>
 /// Read node history if available 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 read request
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <JTokenHistoryReadResponseApiModel> HistoryReadRawAsync(this IAzureOpcHistoryClient operations, string endpointId, JTokenHistoryReadRequestApiModel body, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.HistoryReadRawWithHttpMessagesAsync(endpointId, body, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Read history using json details
 /// </summary>
 /// <remarks>
 /// Read node history if available 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 read request
 /// </param>
 public static JTokenHistoryReadResponseApiModel HistoryReadRaw(this IAzureOpcHistoryClient operations, string endpointId, JTokenHistoryReadRequestApiModel body)
 {
     return(operations.HistoryReadRawAsync(endpointId, body).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Delete historic values
 /// </summary>
 /// <remarks>
 /// Delete historic values 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 update request
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <HistoryUpdateResponseApiModel> HistoryDeleteModifiedValuesAsync(this IAzureOpcHistoryClient operations, string endpointId, DeleteModifiedValuesDetailsApiModelHistoryUpdateRequestApiModel body, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.HistoryDeleteModifiedValuesWithHttpMessagesAsync(endpointId, body, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }