@@ -241,7 +241,7 @@ def __repr__(self):
241241
242242 @classmethod
243243 def from_resource_group (cls , uri , resource_group_name , resource_name , vlm_sizes ,
244- timeout = 300 , keep_alive = False ):
244+ timeout = 300 , keep_alive = False , definitions_only = False ):
245245 """
246246 Spawns a new resource definition from the given resource group.
247247
@@ -250,6 +250,9 @@ def from_resource_group(cls, uri, resource_group_name, resource_name, vlm_sizes,
250250 :param str resource_group_name: Name of the resource group
251251 :param str resource_name: Name of the new resource definition
252252 :param list[str] vlm_sizes: String list of volume sizes e.g. ['128Mib', '1G']
253+ :param int timeout: client library timeout
254+ :param bool keep_alive: keep client connection alive
255+ :param bool definitions_only: only spawn definitions
253256 :return: Resource object of the newly created resource definition
254257 :rtype: Resource
255258 """
@@ -258,7 +261,8 @@ def from_resource_group(cls, uri, resource_group_name, resource_name, vlm_sizes,
258261 result = lin .resource_group_spawn (
259262 resource_group_name ,
260263 resource_name ,
261- vlm_sizes
264+ vlm_sizes ,
265+ definitions_only = definitions_only
262266 )
263267 if not linstor .Linstor .all_api_responses_no_error (result ):
264268 raise linstor .LinstorError (
0 commit comments