/// <summary> /// Write node attributes /// </summary> /// <remarks> /// Write any attribute of a node. 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 batch write request /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <WriteResponseApiModel> WriteAttributesAsync(this IAzureOpcTwinClient operations, string endpointId, WriteRequestApiModel body, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.WriteAttributesWithHttpMessagesAsync(endpointId, body, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Call a method /// </summary> /// <remarks> /// Invoke method node with specified input arguments. /// 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 method call request /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <MethodCallResponseApiModel> CallMethodAsync(this IAzureOpcTwinClient operations, string endpointId, MethodCallRequestApiModel request, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CallMethodWithHttpMessagesAsync(endpointId, request, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get variable value /// </summary> /// <remarks> /// Get a variable node's value using its node id. 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='nodeId'> /// The node to read /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ValueReadResponseApiModel> GetValueAsync(this IAzureOpcTwinClient operations, string endpointId, string nodeId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetValueWithHttpMessagesAsync(endpointId, nodeId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <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 IAzureOpcTwinClient operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetStatusWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Browse node references /// </summary> /// <remarks> /// Browse a node on the specified endpoint. 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 browse request /// </param> public static BrowseResponseApiModel Browse(this IAzureOpcTwinClient operations, string endpointId, BrowseRequestApiModel body) { return(operations.BrowseAsync(endpointId, body).GetAwaiter().GetResult()); }
/// <summary> /// Call a method /// </summary> /// <remarks> /// Invoke method node with specified input arguments. 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 method call request /// </param> public static MethodCallResponseApiModel CallMethod(this IAzureOpcTwinClient operations, string endpointId, MethodCallRequestApiModel body) { return(operations.CallMethodAsync(endpointId, body).GetAwaiter().GetResult()); }
/// <summary> /// Browse next set of unique target nodes /// </summary> /// <remarks> /// Browse the next set of unique hierarchically referenced target nodes on the /// endpoint. The endpoint must be activated and connected and the module /// client and server must trust each other. Note that this is the same as the /// POST method with the model containing the continuation token and the /// targetNodesOnly flag set to true. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='endpointId'> /// The identifier of the activated endpoint. /// </param> /// <param name='continuationToken'> /// Continuation token from GetSetOfUniqueNodes operation /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <BrowseNextResponseApiModel> GetNextSetOfUniqueNodesAsync(this IAzureOpcTwinClient operations, string endpointId, string continuationToken, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetNextSetOfUniqueNodesWithHttpMessagesAsync(endpointId, continuationToken, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Browse next set of unique target nodes /// </summary> /// <remarks> /// Browse the next set of unique hierarchically referenced target nodes on the /// endpoint. The endpoint must be activated and connected and the module /// client and server must trust each other. Note that this is the same as the /// POST method with the model containing the continuation token and the /// targetNodesOnly flag set to true. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='endpointId'> /// The identifier of the activated endpoint. /// </param> /// <param name='continuationToken'> /// Continuation token from GetSetOfUniqueNodes operation /// </param> public static BrowseNextResponseApiModel GetNextSetOfUniqueNodes(this IAzureOpcTwinClient operations, string endpointId, string continuationToken) { return(operations.GetNextSetOfUniqueNodesAsync(endpointId, continuationToken).GetAwaiter().GetResult()); }
/// <summary> /// Get method meta data /// </summary> /// <remarks> /// Return method meta data to support a user interface displaying forms to /// input and output arguments. /// 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 method metadata request /// </param> public static MethodMetadataResponseApiModel GetCallMetadata(this IAzureOpcTwinClient operations, string endpointId, MethodMetadataRequestApiModel request) { return(operations.GetCallMetadataAsync(endpointId, request).GetAwaiter().GetResult()); }
/// <summary> /// Read node attributes /// </summary> /// <remarks> /// Read attributes of a node. /// 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 read request /// </param> public static ReadResponseApiModel ReadAttributes(this IAzureOpcTwinClient operations, string endpointId, ReadRequestApiModel request) { return(operations.ReadAttributesAsync(endpointId, request).GetAwaiter().GetResult()); }
/// <summary> /// Get currently published nodes /// </summary> /// <remarks> /// Returns currently published node ids for an endpoint. /// 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 list request /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <PublishedItemListResponseApiModel> GetFirstListOfPublishedNodesAsync(this IAzureOpcTwinClient operations, string endpointId, PublishedItemListRequestApiModel request, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetFirstListOfPublishedNodesWithHttpMessagesAsync(endpointId, request, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get currently published nodes /// </summary> /// <remarks> /// Returns currently published node ids for an endpoint. /// 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 list request /// </param> public static PublishedItemListResponseApiModel GetFirstListOfPublishedNodes(this IAzureOpcTwinClient operations, string endpointId, PublishedItemListRequestApiModel request) { return(operations.GetFirstListOfPublishedNodesAsync(endpointId, request).GetAwaiter().GetResult()); }
/// <summary> /// Get next set of published nodes /// </summary> /// <remarks> /// Returns next set of currently published node ids for an endpoint. /// 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='continuationToken'> /// The continuation token to continue with /// </param> public static PublishedItemListResponseApiModel GetNextListOfPublishedNodes(this IAzureOpcTwinClient operations, string endpointId, string continuationToken) { return(operations.GetNextListOfPublishedNodesAsync(endpointId, continuationToken).GetAwaiter().GetResult()); }
/// <summary> /// Stop publishing node values /// </summary> /// <remarks> /// Stop publishing variable node values to IoT Hub. /// 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 unpublish request /// </param> public static PublishStopResponseApiModel StopPublishingValues(this IAzureOpcTwinClient operations, string endpointId, PublishStopRequestApiModel request) { return(operations.StopPublishingValuesAsync(endpointId, request).GetAwaiter().GetResult()); }
/// <summary> /// Read variable value /// </summary> /// <remarks> /// Read a variable node's value. 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 read value request /// </param> public static ValueReadResponseApiModel ReadValue(this IAzureOpcTwinClient operations, string endpointId, ValueReadRequestApiModel body) { return(operations.ReadValueAsync(endpointId, body).GetAwaiter().GetResult()); }
/// <summary> /// Get variable value /// </summary> /// <remarks> /// Get a variable node's value using its node id. 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='nodeId'> /// The node to read /// </param> public static ValueReadResponseApiModel GetValue(this IAzureOpcTwinClient operations, string endpointId, string nodeId) { return(operations.GetValueAsync(endpointId, nodeId).GetAwaiter().GetResult()); }
/// <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 IAzureOpcTwinClient operations) { return(operations.GetStatusAsync().GetAwaiter().GetResult()); }
/// <summary> /// Write node attributes /// </summary> /// <remarks> /// Write any attribute of a node. 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 batch write request /// </param> public static WriteResponseApiModel WriteAttributes(this IAzureOpcTwinClient operations, string endpointId, WriteRequestApiModel body) { return(operations.WriteAttributesAsync(endpointId, body).GetAwaiter().GetResult()); }
/// <summary> /// Write variable value /// </summary> /// <remarks> /// Write variable node's value. /// 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 write value request /// </param> public static ValueWriteResponseApiModel WriteValue(this IAzureOpcTwinClient operations, string endpointId, ValueWriteRequestApiModel request) { return(operations.WriteValueAsync(endpointId, request).GetAwaiter().GetResult()); }
/// <summary> /// Browse set of unique target nodes /// </summary> /// <remarks> /// Browse the set of unique hierarchically referenced target nodes on the /// endpoint. The endpoint must be activated and connected and the module /// client and server must trust each other. The root node id to browse from /// can be provided as part of the query parameters. If it is not provided, the /// RootFolder node is browsed. Note that this is the same as the POST method /// with the model containing the node id and the targetNodesOnly flag set to /// true. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='endpointId'> /// The identifier of the activated endpoint. /// </param> /// <param name='nodeId'> /// The node to browse or omit to browse the root node (i=84) /// </param> public static BrowseResponseApiModel GetSetOfUniqueNodes(this IAzureOpcTwinClient operations, string endpointId, string nodeId = default(string)) { return(operations.GetSetOfUniqueNodesAsync(endpointId, nodeId).GetAwaiter().GetResult()); }
/// <summary> /// Browse using a browse path /// </summary> /// <remarks> /// Browse using a path from the specified node id. /// This call uses TranslateBrowsePathsToNodeIds service under the hood. /// 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 browse path request /// </param> public static BrowsePathResponseApiModel BrowseUsingPath(this IAzureOpcTwinClient operations, string endpointId, BrowsePathRequestApiModel request) { return(operations.BrowseUsingPathAsync(endpointId, request).GetAwaiter().GetResult()); }