@@ -60,10 +60,10 @@ async def nodes_get(self, uniqueIds):
6060
6161 async def node_add (self , parentNodeId , * , name , nodeType , auth = None , ** kwargs ):
6262 # Reusing docstrings from the threaded version
63- method , url , params = self ._prepare_node_add (
63+ method , url , url_params , params = self ._prepare_node_add (
6464 parentNodeId = parentNodeId , name = name , nodeType = nodeType , ** kwargs
6565 )
66- return await self .send_request (method , url , params = params , auth = auth )
66+ return await self .send_request (method , url , url_params = url_params , params = params , auth = auth )
6767
6868 async def node_delete (self , nodeId , * , auth = None ):
6969 # Reusing docstrings from the threaded version
@@ -113,34 +113,36 @@ async def config_update(self, *, configurationNode, configurationData=None, auth
113113 # =============================================================================================
114114
115115 async def tags_get (self ):
116- """
117- Returns all existing tags.
118-
119- API: GET /tags
120- """
116+ # Reusing docstrings from the threaded version
121117 method , url = self ._prepare_tags_get ()
122118 return await self .send_request (method , url )
123119
124120 async def tags_add (self , * , uniqueNodeIds , tag , auth = None ):
125- """
126- Adds ``tag`` to nodes specified by a list of UIDs ``uniqueNodeIds``. The ``tag``
127- dictionary must contain the ``name`` key and optionally ``comment`` key.
128-
129- API: POST /tags
130- """
121+ # Reusing docstrings from the threaded version
131122 method , url , params = self ._prepare_tags_add (uniqueNodeIds = uniqueNodeIds , tag = tag )
132123 return await self .send_request (method , url , params = params , auth = auth )
133124
134125 async def tags_delete (self , * , uniqueNodeIds , tag , auth = None ):
135- """
136- Deletes ``tag`` to nodes specified by a list of UIDs ``uniqueNodeIds``. The ``tag``
137- dictionary must contain the ``name`` key and optionally ``comment`` key.
138-
139- API: DELETE /tags
140- """
126+ # Reusing docstrings from the threaded version
141127 method , url , params = self ._prepare_tags_delete (uniqueNodeIds = uniqueNodeIds , tag = tag )
142128 return await self .send_request (method , url , params = params , auth = auth )
143129
130+ # =============================================================================================
131+ # TAKE-SNAPSHOT-CONTROLLER API METHODS
132+ # =============================================================================================
133+
134+ def take_snapshot_get (self , uniqueNodeId ):
135+ # Reusing docstrings from the threaded version
136+ method , url = self ._prepare_take_snapshot_get (uniqueNodeId = uniqueNodeId )
137+ return self .send_request (method , url )
138+
139+ def take_snapshot_save (self , uniqueNodeId , * , name = None , comment = None , auth = None ):
140+ # Reusing docstrings from the threaded version
141+ method , url , url_params = self ._prepare_take_snapshot_save (
142+ uniqueNodeId = uniqueNodeId , name = name , comment = comment
143+ )
144+ return self .send_request (method , url , url_params = url_params , auth = auth )
145+
144146
145147SaveRestoreAPI .node_get .__doc__ = _SaveRestoreAPI_Threads .node_get .__doc__
146148SaveRestoreAPI .nodes_get .__doc__ = _SaveRestoreAPI_Threads .nodes_get .__doc__
@@ -155,3 +157,5 @@ async def tags_delete(self, *, uniqueNodeIds, tag, auth=None):
155157SaveRestoreAPI .tags_get .__doc__ = _SaveRestoreAPI_Threads .tags_get .__doc__
156158SaveRestoreAPI .tags_add .__doc__ = _SaveRestoreAPI_Threads .tags_add .__doc__
157159SaveRestoreAPI .tags_delete .__doc__ = _SaveRestoreAPI_Threads .tags_delete .__doc__
160+ SaveRestoreAPI .take_snapshot_get .__doc__ = _SaveRestoreAPI_Threads .take_snapshot_get .__doc__
161+ SaveRestoreAPI .take_snapshot_save .__doc__ = _SaveRestoreAPI_Threads .take_snapshot_save .__doc__
0 commit comments