@@ -221,6 +221,7 @@ def add_file(self, name: str, size: int) -> File:
221221 def get_all_files (self ) -> dict [str , File ]:
222222 """
223223 Get the list of all files
224+
224225 :return: A dictionary of File objects where ta names are keys
225226 :rtype: dict[str, File]
226227 """
@@ -307,21 +308,22 @@ def create_cloud_compute_service(self, hostname: str,
307308 property_list : dict [str , str ],
308309 message_payload_list : dict [str , float ]) -> CloudComputeService :
309310 """
311+ Create a cloud compute service
310312
311- :param hostname: name of the (simulated) host on which the compute service should run
312- :type hostname: str
313- :param execution_host: compute resources as a list of hostnames
314- :param scratch_space: the compute service’s scratch space’s mount point (”” means none)
315- :type scratch_space: str
316- :param property_list: a property list ({} means “use all defaults”)
317- :type property_list: dict
318- :param message_payload_list: a message payload list ({} means “use all defaults”)
319- :type message_payload_list: dict
320- :return: the service name
321- :rtype: CloudComputeService
313+ :param hostname: name of the (simulated) host on which the compute service should run
314+ :type hostname: str
315+ :param execution_host: compute resources as a list of hostnames
316+ :param scratch_space: the compute service’s scratch space’s mount point (”” means none)
317+ :type scratch_space: str
318+ :param property_list: a property list ({} means “use all defaults”)
319+ :type property_list: dict
320+ :param message_payload_list: a message payload list ({} means “use all defaults”)
321+ :type message_payload_list: dict
322+ :return: the service name
323+ :rtype: CloudComputeService
322324
323- :raises WRENCHException: if there is any error in the response
324- """
325+ :raises WRENCHException: if there is any error in the response
326+ """
325327 data = {"head_host" : hostname , "resources" : execution_host , "scratch_space" : scratch_space ,
326328 "property_list" : json .dumps (property_list ),
327329 "message_payload_list" : json .dumps (message_payload_list )}
0 commit comments