addFile
-Add a file to the simulation.
+addFileRegistryService
+Create and start a file registery service.
addFile
-
/simulation/{simid}/addFile
+ /simulation/{simid}/addFileRegistryService
Usage and SDK Samples
curl -X PUT\
+
+ curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
-"https://wrench-project.org/v1/simulation/{simid}/addFile"
+"https://wrench-project.org/v1/simulation/{simid}/addFileRegistryService"
-
+
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
@@ -3442,52 +3064,52 @@ Usage and SDK Samples
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Simid_addFile_body body = ; // Simid_addFile_body | Input to add a new file.
+ Simid_addFileRegistryService_body body = ; // Simid_addFileRegistryService_body | Input to start a new service.
String simid = simid_example; // String | ID of the simulation
try {
- GenericResponse result = apiInstance.addFile(body, simid);
+ ServiceResponse result = apiInstance.addFileRegistryService(body, simid);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#addFile");
+ System.err.println("Exception when calling WRENCHApi#addFileRegistryService");
e.printStackTrace();
}
}
}
-
+
import io.swagger.client.api.WRENCHApi;
public class WRENCHApiExample {
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Simid_addFile_body body = ; // Simid_addFile_body | Input to add a new file.
+ Simid_addFileRegistryService_body body = ; // Simid_addFileRegistryService_body | Input to start a new service.
String simid = simid_example; // String | ID of the simulation
try {
- GenericResponse result = apiInstance.addFile(body, simid);
+ ServiceResponse result = apiInstance.addFileRegistryService(body, simid);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#addFile");
+ System.err.println("Exception when calling WRENCHApi#addFileRegistryService");
e.printStackTrace();
}
}
}
-
- Simid_addFile_body *body = ; // Input to add a new file.
+
+ Simid_addFileRegistryService_body *body = ; // Input to start a new service.
String *simid = simid_example; // ID of the simulation
WRENCHApi *apiInstance = [[WRENCHApi alloc] init];
-// Add a file to the simulation.
-[apiInstance addFileWith:body
+// Create and start a file registery service.
+[apiInstance addFileRegistryServiceWith:body
simid:simid
- completionHandler: ^(GenericResponse output, NSError* error) {
+ completionHandler: ^(ServiceResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -3498,11 +3120,11 @@ Usage and SDK Samples
-
+
var WrenchRestApi = require('wrench_rest_api');
var api = new WrenchRestApi.WRENCHApi()
-var body = ; // {{Simid_addFile_body}} Input to add a new file.
+var body = ; // {{Simid_addFileRegistryService_body}} Input to start a new service.
var simid = simid_example; // {{String}} ID of the simulation
var callback = function(error, data, response) {
@@ -3512,14 +3134,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.addFile(bodysimid, callback);
+api.addFileRegistryService(bodysimid, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -3528,24 +3150,24 @@ Usage and SDK Samples
namespace Example
{
- public class addFileExample
+ public class addFileRegistryServiceExample
{
public void main()
{
var apiInstance = new WRENCHApi();
- var body = new Simid_addFile_body(); // Simid_addFile_body | Input to add a new file.
+ var body = new Simid_addFileRegistryService_body(); // Simid_addFileRegistryService_body | Input to start a new service.
var simid = simid_example; // String | ID of the simulation
try
{
- // Add a file to the simulation.
- GenericResponse result = apiInstance.addFile(body, simid);
+ // Create and start a file registery service.
+ ServiceResponse result = apiInstance.addFileRegistryService(body, simid);
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling WRENCHApi.addFile: " + e.Message );
+ Debug.Print("Exception when calling WRENCHApi.addFileRegistryService: " + e.Message );
}
}
}
@@ -3553,42 +3175,42 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiWRENCHApi();
-$body = ; // Simid_addFile_body | Input to add a new file.
+$body = ; // Simid_addFileRegistryService_body | Input to start a new service.
$simid = simid_example; // String | ID of the simulation
try {
- $result = $api_instance->addFile($body, $simid);
+ $result = $api_instance->addFileRegistryService($body, $simid);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling WRENCHApi->addFile: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling WRENCHApi->addFileRegistryService: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WRENCHApi;
my $api_instance = WWW::SwaggerClient::WRENCHApi->new();
-my $body = WWW::SwaggerClient::Object::Simid_addFile_body->new(); # Simid_addFile_body | Input to add a new file.
+my $body = WWW::SwaggerClient::Object::Simid_addFileRegistryService_body->new(); # Simid_addFileRegistryService_body | Input to start a new service.
my $simid = simid_example; # String | ID of the simulation
eval {
- my $result = $api_instance->addFile(body => $body, simid => $simid);
+ my $result = $api_instance->addFileRegistryService(body => $body, simid => $simid);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling WRENCHApi->addFile: $@\n";
+ warn "Exception when calling WRENCHApi->addFileRegistryService: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
@@ -3597,15 +3219,15 @@ Usage and SDK Samples
# create an instance of the API class
api_instance = swagger_client.WRENCHApi()
-body = # Simid_addFile_body | Input to add a new file.
+body = # Simid_addFileRegistryService_body | Input to start a new service.
simid = simid_example # String | ID of the simulation
try:
- # Add a file to the simulation.
- api_response = api_instance.add_file(body, simid)
+ # Create and start a file registery service.
+ api_response = api_instance.add_file_registry_service(body, simid)
pprint(api_response)
except ApiException as e:
- print("Exception when calling WRENCHApi->addFile: %s\n" % e)
+ print("Exception when calling WRENCHApi->addFileRegistryService: %s\n" % e)
@@ -3621,7 +3243,7 @@ Parameters
-
+
@@ -3655,11 +3277,11 @@ Parameters
-
+
@@ -3694,14 +3316,14 @@ Status: 200 - OK
-
-
+
+
-
+
- Status: 404 - Task not found
-
-
-
-
-
-
Status: 405 - Invalid input
-
-
+
+
- addFileCopyAction
- Add a file copy action to compound job
+ addInputFile
+ Add an input file to a task
@@ -3769,32 +3383,32 @@ addFileCopyAction
- /simulation/{simid}/compoundJobs/{compound_job_name}/addFileCopyAction
+ /simulation/{simid}/workflows/{workflow_name}/tasks/{tid}/addInputFile
Usage and SDK Samples
-
- curl -X POST\
+
+ curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
-"https://wrench-project.org/v1/simulation/{simid}/compoundJobs/{compound_job_name}/addFileCopyAction"
+"https://wrench-project.org/v1/simulation/{simid}/workflows/{workflow_name}/tasks/{tid}/addInputFile"
-
+
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
@@ -3808,55 +3422,59 @@ Usage and SDK Samples
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Compound_job_name_addFileCopyAction_body body = ; // Compound_job_name_addFileCopyAction_body | Input to add a file copy action.
+ Tid_addInputFile_body body = ; // Tid_addInputFile_body | Input file.
String simid = simid_example; // String | ID of the simulation
- String compoundJobName = compoundJobName_example; // String | Name of the compound job
+ String workflowName = workflowName_example; // String |
+ String tid = tid_example; // String | ID of the task
try {
- GenericResponse result = apiInstance.addFileCopyAction(body, simid, compoundJobName);
+ GenericResponse result = apiInstance.addInputFile(body, simid, workflowName, tid);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#addFileCopyAction");
+ System.err.println("Exception when calling WRENCHApi#addInputFile");
e.printStackTrace();
}
}
}
-
+
import io.swagger.client.api.WRENCHApi;
public class WRENCHApiExample {
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Compound_job_name_addFileCopyAction_body body = ; // Compound_job_name_addFileCopyAction_body | Input to add a file copy action.
+ Tid_addInputFile_body body = ; // Tid_addInputFile_body | Input file.
String simid = simid_example; // String | ID of the simulation
- String compoundJobName = compoundJobName_example; // String | Name of the compound job
+ String workflowName = workflowName_example; // String |
+ String tid = tid_example; // String | ID of the task
try {
- GenericResponse result = apiInstance.addFileCopyAction(body, simid, compoundJobName);
+ GenericResponse result = apiInstance.addInputFile(body, simid, workflowName, tid);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#addFileCopyAction");
+ System.err.println("Exception when calling WRENCHApi#addInputFile");
e.printStackTrace();
}
}
}
-
- Compound_job_name_addFileCopyAction_body *body = ; // Input to add a file copy action.
+
+ Tid_addInputFile_body *body = ; // Input file.
String *simid = simid_example; // ID of the simulation
-String *compoundJobName = compoundJobName_example; // Name of the compound job
+String *workflowName = workflowName_example; //
+String *tid = tid_example; // ID of the task
WRENCHApi *apiInstance = [[WRENCHApi alloc] init];
-// Add a file copy action to compound job
-[apiInstance addFileCopyActionWith:body
+// Add an input file to a task
+[apiInstance addInputFileWith:body
simid:simid
- compoundJobName:compoundJobName
+ workflowName:workflowName
+ tid:tid
completionHandler: ^(GenericResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
@@ -3868,13 +3486,14 @@ Usage and SDK Samples
-
+
var WrenchRestApi = require('wrench_rest_api');
var api = new WrenchRestApi.WRENCHApi()
-var body = ; // {{Compound_job_name_addFileCopyAction_body}} Input to add a file copy action.
+var body = ; // {{Tid_addInputFile_body}} Input file.
var simid = simid_example; // {{String}} ID of the simulation
-var compoundJobName = compoundJobName_example; // {{String}} Name of the compound job
+var workflowName = workflowName_example; // {{String}}
+var tid = tid_example; // {{String}} ID of the task
var callback = function(error, data, response) {
if (error) {
@@ -3883,14 +3502,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.addFileCopyAction(bodysimidcompoundJobName, callback);
+api.addInputFile(bodysimidworkflowNametid, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -3899,25 +3518,26 @@ Usage and SDK Samples
namespace Example
{
- public class addFileCopyActionExample
+ public class addInputFileExample
{
public void main()
{
var apiInstance = new WRENCHApi();
- var body = new Compound_job_name_addFileCopyAction_body(); // Compound_job_name_addFileCopyAction_body | Input to add a file copy action.
+ var body = new Tid_addInputFile_body(); // Tid_addInputFile_body | Input file.
var simid = simid_example; // String | ID of the simulation
- var compoundJobName = compoundJobName_example; // String | Name of the compound job
+ var workflowName = workflowName_example; // String |
+ var tid = tid_example; // String | ID of the task
try
{
- // Add a file copy action to compound job
- GenericResponse result = apiInstance.addFileCopyAction(body, simid, compoundJobName);
+ // Add an input file to a task
+ GenericResponse result = apiInstance.addInputFile(body, simid, workflowName, tid);
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling WRENCHApi.addFileCopyAction: " + e.Message );
+ Debug.Print("Exception when calling WRENCHApi.addInputFile: " + e.Message );
}
}
}
@@ -3925,44 +3545,46 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiWRENCHApi();
-$body = ; // Compound_job_name_addFileCopyAction_body | Input to add a file copy action.
+$body = ; // Tid_addInputFile_body | Input file.
$simid = simid_example; // String | ID of the simulation
-$compoundJobName = compoundJobName_example; // String | Name of the compound job
+$workflowName = workflowName_example; // String |
+$tid = tid_example; // String | ID of the task
try {
- $result = $api_instance->addFileCopyAction($body, $simid, $compoundJobName);
+ $result = $api_instance->addInputFile($body, $simid, $workflowName, $tid);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling WRENCHApi->addFileCopyAction: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling WRENCHApi->addInputFile: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WRENCHApi;
my $api_instance = WWW::SwaggerClient::WRENCHApi->new();
-my $body = WWW::SwaggerClient::Object::Compound_job_name_addFileCopyAction_body->new(); # Compound_job_name_addFileCopyAction_body | Input to add a file copy action.
+my $body = WWW::SwaggerClient::Object::Tid_addInputFile_body->new(); # Tid_addInputFile_body | Input file.
my $simid = simid_example; # String | ID of the simulation
-my $compoundJobName = compoundJobName_example; # String | Name of the compound job
+my $workflowName = workflowName_example; # String |
+my $tid = tid_example; # String | ID of the task
eval {
- my $result = $api_instance->addFileCopyAction(body => $body, simid => $simid, compoundJobName => $compoundJobName);
+ my $result = $api_instance->addInputFile(body => $body, simid => $simid, workflowName => $workflowName, tid => $tid);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling WRENCHApi->addFileCopyAction: $@\n";
+ warn "Exception when calling WRENCHApi->addInputFile: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
@@ -3971,16 +3593,17 @@ Usage and SDK Samples
# create an instance of the API class
api_instance = swagger_client.WRENCHApi()
-body = # Compound_job_name_addFileCopyAction_body | Input to add a file copy action.
+body = # Tid_addInputFile_body | Input file.
simid = simid_example # String | ID of the simulation
-compoundJobName = compoundJobName_example # String | Name of the compound job
+workflowName = workflowName_example # String |
+tid = tid_example # String | ID of the task
try:
- # Add a file copy action to compound job
- api_response = api_instance.add_file_copy_action(body, simid, compoundJobName)
+ # Add an input file to a task
+ api_response = api_instance.add_input_file(body, simid, workflowName, tid)
pprint(api_response)
except ApiException as e:
- print("Exception when calling WRENCHApi->addFileCopyAction: %s\n" % e)
+ print("Exception when calling WRENCHApi->addInputFile: %s\n" % e)
@@ -3996,7 +3619,7 @@ Parameters
-
+
@@ -4014,11 +3637,30 @@ Parameters
- compound_job_name*
+ workflow_name*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+ tid*
-
+
@@ -4026,7 +3668,7 @@ Parameters
- Name of the compound job
+ ID of the task
@@ -4052,11 +3694,11 @@ Parameters
-
+
@@ -4091,14 +3733,14 @@ Status: 200 - OK
-
-
+
+
-
+
- Status: 404 - Job not found
+ Status: 404 - Task not found
@@ -4154,11 +3796,11 @@ Status: 405 - Invalid input
-
-
+
+
- addFileDeleteAction
- Add a file delete action to compound job
+ addOutputFile
+ Add an output file to a task
@@ -4166,32 +3808,32 @@ addFileDeleteAction
- /simulation/{simid}/compoundJobs/{compound_job_name}/addFileDeleteAction
+ /simulation/{simid}/workflows/{workflow_name}/tasks/{tid}/addOutputFile
Usage and SDK Samples
-
- curl -X POST\
+
+ curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
-"https://wrench-project.org/v1/simulation/{simid}/compoundJobs/{compound_job_name}/addFileDeleteAction"
+"https://wrench-project.org/v1/simulation/{simid}/workflows/{workflow_name}/tasks/{tid}/addOutputFile"
-
+
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
@@ -4205,55 +3847,59 @@ Usage and SDK Samples
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Compound_job_name_addFileDeleteAction_body body = ; // Compound_job_name_addFileDeleteAction_body | Input to add a file delete action.
+ Tid_addOutputFile_body body = ; // Tid_addOutputFile_body | Job characteristics.
String simid = simid_example; // String | ID of the simulation
- String compoundJobName = compoundJobName_example; // String | Name of the compound job
+ String workflowName = workflowName_example; // String |
+ String tid = tid_example; // String | ID of the task
try {
- GenericResponse result = apiInstance.addFileDeleteAction(body, simid, compoundJobName);
+ GenericResponse result = apiInstance.addOutputFile(body, simid, workflowName, tid);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#addFileDeleteAction");
+ System.err.println("Exception when calling WRENCHApi#addOutputFile");
e.printStackTrace();
}
}
}
-
+
import io.swagger.client.api.WRENCHApi;
public class WRENCHApiExample {
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Compound_job_name_addFileDeleteAction_body body = ; // Compound_job_name_addFileDeleteAction_body | Input to add a file delete action.
+ Tid_addOutputFile_body body = ; // Tid_addOutputFile_body | Job characteristics.
String simid = simid_example; // String | ID of the simulation
- String compoundJobName = compoundJobName_example; // String | Name of the compound job
+ String workflowName = workflowName_example; // String |
+ String tid = tid_example; // String | ID of the task
try {
- GenericResponse result = apiInstance.addFileDeleteAction(body, simid, compoundJobName);
+ GenericResponse result = apiInstance.addOutputFile(body, simid, workflowName, tid);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#addFileDeleteAction");
+ System.err.println("Exception when calling WRENCHApi#addOutputFile");
e.printStackTrace();
}
}
}
-
- Compound_job_name_addFileDeleteAction_body *body = ; // Input to add a file delete action.
+
+ Tid_addOutputFile_body *body = ; // Job characteristics.
String *simid = simid_example; // ID of the simulation
-String *compoundJobName = compoundJobName_example; // Name of the compound job
+String *workflowName = workflowName_example; //
+String *tid = tid_example; // ID of the task
WRENCHApi *apiInstance = [[WRENCHApi alloc] init];
-// Add a file delete action to compound job
-[apiInstance addFileDeleteActionWith:body
+// Add an output file to a task
+[apiInstance addOutputFileWith:body
simid:simid
- compoundJobName:compoundJobName
+ workflowName:workflowName
+ tid:tid
completionHandler: ^(GenericResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
@@ -4265,13 +3911,14 @@ Usage and SDK Samples
-
+
var WrenchRestApi = require('wrench_rest_api');
var api = new WrenchRestApi.WRENCHApi()
-var body = ; // {{Compound_job_name_addFileDeleteAction_body}} Input to add a file delete action.
+var body = ; // {{Tid_addOutputFile_body}} Job characteristics.
var simid = simid_example; // {{String}} ID of the simulation
-var compoundJobName = compoundJobName_example; // {{String}} Name of the compound job
+var workflowName = workflowName_example; // {{String}}
+var tid = tid_example; // {{String}} ID of the task
var callback = function(error, data, response) {
if (error) {
@@ -4280,14 +3927,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.addFileDeleteAction(bodysimidcompoundJobName, callback);
+api.addOutputFile(bodysimidworkflowNametid, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -4296,25 +3943,26 @@ Usage and SDK Samples
namespace Example
{
- public class addFileDeleteActionExample
+ public class addOutputFileExample
{
public void main()
{
var apiInstance = new WRENCHApi();
- var body = new Compound_job_name_addFileDeleteAction_body(); // Compound_job_name_addFileDeleteAction_body | Input to add a file delete action.
+ var body = new Tid_addOutputFile_body(); // Tid_addOutputFile_body | Job characteristics.
var simid = simid_example; // String | ID of the simulation
- var compoundJobName = compoundJobName_example; // String | Name of the compound job
+ var workflowName = workflowName_example; // String |
+ var tid = tid_example; // String | ID of the task
try
{
- // Add a file delete action to compound job
- GenericResponse result = apiInstance.addFileDeleteAction(body, simid, compoundJobName);
+ // Add an output file to a task
+ GenericResponse result = apiInstance.addOutputFile(body, simid, workflowName, tid);
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling WRENCHApi.addFileDeleteAction: " + e.Message );
+ Debug.Print("Exception when calling WRENCHApi.addOutputFile: " + e.Message );
}
}
}
@@ -4322,44 +3970,46 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiWRENCHApi();
-$body = ; // Compound_job_name_addFileDeleteAction_body | Input to add a file delete action.
+$body = ; // Tid_addOutputFile_body | Job characteristics.
$simid = simid_example; // String | ID of the simulation
-$compoundJobName = compoundJobName_example; // String | Name of the compound job
+$workflowName = workflowName_example; // String |
+$tid = tid_example; // String | ID of the task
try {
- $result = $api_instance->addFileDeleteAction($body, $simid, $compoundJobName);
+ $result = $api_instance->addOutputFile($body, $simid, $workflowName, $tid);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling WRENCHApi->addFileDeleteAction: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling WRENCHApi->addOutputFile: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WRENCHApi;
my $api_instance = WWW::SwaggerClient::WRENCHApi->new();
-my $body = WWW::SwaggerClient::Object::Compound_job_name_addFileDeleteAction_body->new(); # Compound_job_name_addFileDeleteAction_body | Input to add a file delete action.
+my $body = WWW::SwaggerClient::Object::Tid_addOutputFile_body->new(); # Tid_addOutputFile_body | Job characteristics.
my $simid = simid_example; # String | ID of the simulation
-my $compoundJobName = compoundJobName_example; # String | Name of the compound job
+my $workflowName = workflowName_example; # String |
+my $tid = tid_example; # String | ID of the task
eval {
- my $result = $api_instance->addFileDeleteAction(body => $body, simid => $simid, compoundJobName => $compoundJobName);
+ my $result = $api_instance->addOutputFile(body => $body, simid => $simid, workflowName => $workflowName, tid => $tid);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling WRENCHApi->addFileDeleteAction: $@\n";
+ warn "Exception when calling WRENCHApi->addOutputFile: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
@@ -4368,16 +4018,17 @@ Usage and SDK Samples
# create an instance of the API class
api_instance = swagger_client.WRENCHApi()
-body = # Compound_job_name_addFileDeleteAction_body | Input to add a file delete action.
+body = # Tid_addOutputFile_body | Job characteristics.
simid = simid_example # String | ID of the simulation
-compoundJobName = compoundJobName_example # String | Name of the compound job
+workflowName = workflowName_example # String |
+tid = tid_example # String | ID of the task
try:
- # Add a file delete action to compound job
- api_response = api_instance.add_file_delete_action(body, simid, compoundJobName)
+ # Add an output file to a task
+ api_response = api_instance.add_output_file(body, simid, workflowName, tid)
pprint(api_response)
except ApiException as e:
- print("Exception when calling WRENCHApi->addFileDeleteAction: %s\n" % e)
+ print("Exception when calling WRENCHApi->addOutputFile: %s\n" % e)
@@ -4393,7 +4044,7 @@ Parameters
-
+
@@ -4411,11 +4062,30 @@ Parameters
- compound_job_name*
+ workflow_name*
+
+
+
+
+
+
+
+ String
+
+
+
+
+ Required
+
+
+
+
+
+ tid*
-
+
@@ -4423,7 +4093,7 @@ Parameters
- Name of the compound job
+ ID of the task
@@ -4449,11 +4119,11 @@ Parameters
-
+
@@ -4488,14 +4158,14 @@ Status: 200 - OK
-
-
+
+
-
+
- Status: 404 - Job not found
+ Status: 404 - Task not found
@@ -4551,11 +4221,11 @@ Status: 405 - Invalid input
-
-
+
+
- addFileReadAction
- Add a file read action to compound job
+ addSimpleStorageService
+ Create and start a simple storage service.
@@ -4563,32 +4233,32 @@ addFileReadAction
- /simulation/{simid}/compoundJobs/{compound_job_name}/addFileReadAction
+ /simulation/{simid}/addSimpleStorageService
Usage and SDK Samples
-
+
curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
-"https://wrench-project.org/v1/simulation/{simid}/compoundJobs/{compound_job_name}/addFileReadAction"
+"https://wrench-project.org/v1/simulation/{simid}/addSimpleStorageService"
-
+
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
@@ -4602,56 +4272,52 @@ Usage and SDK Samples
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- FileReadAction body = ; // FileReadAction | Input to add a file read action.
+ Simid_addSimpleStorageService_body body = ; // Simid_addSimpleStorageService_body | Input to start a new service.
String simid = simid_example; // String | ID of the simulation
- String compoundJobName = compoundJobName_example; // String | Name of the compound job
try {
- AddActionResponse result = apiInstance.addFileReadAction(body, simid, compoundJobName);
+ ServiceResponse result = apiInstance.addSimpleStorageService(body, simid);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#addFileReadAction");
+ System.err.println("Exception when calling WRENCHApi#addSimpleStorageService");
e.printStackTrace();
}
}
}
-
+
import io.swagger.client.api.WRENCHApi;
public class WRENCHApiExample {
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- FileReadAction body = ; // FileReadAction | Input to add a file read action.
+ Simid_addSimpleStorageService_body body = ; // Simid_addSimpleStorageService_body | Input to start a new service.
String simid = simid_example; // String | ID of the simulation
- String compoundJobName = compoundJobName_example; // String | Name of the compound job
try {
- AddActionResponse result = apiInstance.addFileReadAction(body, simid, compoundJobName);
+ ServiceResponse result = apiInstance.addSimpleStorageService(body, simid);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#addFileReadAction");
+ System.err.println("Exception when calling WRENCHApi#addSimpleStorageService");
e.printStackTrace();
}
}
}
-
- FileReadAction *body = ; // Input to add a file read action.
+
+ Simid_addSimpleStorageService_body *body = ; // Input to start a new service.
String *simid = simid_example; // ID of the simulation
-String *compoundJobName = compoundJobName_example; // Name of the compound job
WRENCHApi *apiInstance = [[WRENCHApi alloc] init];
-// Add a file read action to compound job
-[apiInstance addFileReadActionWith:body
+// Create and start a simple storage service.
+[apiInstance addSimpleStorageServiceWith:body
simid:simid
- compoundJobName:compoundJobName
- completionHandler: ^(AddActionResponse output, NSError* error) {
+ completionHandler: ^(ServiceResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -4662,13 +4328,12 @@ Usage and SDK Samples
-
+
var WrenchRestApi = require('wrench_rest_api');
var api = new WrenchRestApi.WRENCHApi()
-var body = ; // {{FileReadAction}} Input to add a file read action.
+var body = ; // {{Simid_addSimpleStorageService_body}} Input to start a new service.
var simid = simid_example; // {{String}} ID of the simulation
-var compoundJobName = compoundJobName_example; // {{String}} Name of the compound job
var callback = function(error, data, response) {
if (error) {
@@ -4677,14 +4342,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.addFileReadAction(bodysimidcompoundJobName, callback);
+api.addSimpleStorageService(bodysimid, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -4693,25 +4358,24 @@ Usage and SDK Samples
namespace Example
{
- public class addFileReadActionExample
+ public class addSimpleStorageServiceExample
{
public void main()
{
var apiInstance = new WRENCHApi();
- var body = new FileReadAction(); // FileReadAction | Input to add a file read action.
+ var body = new Simid_addSimpleStorageService_body(); // Simid_addSimpleStorageService_body | Input to start a new service.
var simid = simid_example; // String | ID of the simulation
- var compoundJobName = compoundJobName_example; // String | Name of the compound job
try
{
- // Add a file read action to compound job
- AddActionResponse result = apiInstance.addFileReadAction(body, simid, compoundJobName);
+ // Create and start a simple storage service.
+ ServiceResponse result = apiInstance.addSimpleStorageService(body, simid);
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling WRENCHApi.addFileReadAction: " + e.Message );
+ Debug.Print("Exception when calling WRENCHApi.addSimpleStorageService: " + e.Message );
}
}
}
@@ -4719,44 +4383,42 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiWRENCHApi();
-$body = ; // FileReadAction | Input to add a file read action.
+$body = ; // Simid_addSimpleStorageService_body | Input to start a new service.
$simid = simid_example; // String | ID of the simulation
-$compoundJobName = compoundJobName_example; // String | Name of the compound job
try {
- $result = $api_instance->addFileReadAction($body, $simid, $compoundJobName);
+ $result = $api_instance->addSimpleStorageService($body, $simid);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling WRENCHApi->addFileReadAction: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling WRENCHApi->addSimpleStorageService: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WRENCHApi;
my $api_instance = WWW::SwaggerClient::WRENCHApi->new();
-my $body = WWW::SwaggerClient::Object::FileReadAction->new(); # FileReadAction | Input to add a file read action.
+my $body = WWW::SwaggerClient::Object::Simid_addSimpleStorageService_body->new(); # Simid_addSimpleStorageService_body | Input to start a new service.
my $simid = simid_example; # String | ID of the simulation
-my $compoundJobName = compoundJobName_example; # String | Name of the compound job
eval {
- my $result = $api_instance->addFileReadAction(body => $body, simid => $simid, compoundJobName => $compoundJobName);
+ my $result = $api_instance->addSimpleStorageService(body => $body, simid => $simid);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling WRENCHApi->addFileReadAction: $@\n";
+ warn "Exception when calling WRENCHApi->addSimpleStorageService: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
@@ -4765,16 +4427,15 @@ Usage and SDK Samples
# create an instance of the API class
api_instance = swagger_client.WRENCHApi()
-body = # FileReadAction | Input to add a file read action.
+body = # Simid_addSimpleStorageService_body | Input to start a new service.
simid = simid_example # String | ID of the simulation
-compoundJobName = compoundJobName_example # String | Name of the compound job
try:
- # Add a file read action to compound job
- api_response = api_instance.add_file_read_action(body, simid, compoundJobName)
+ # Create and start a simple storage service.
+ api_response = api_instance.add_simple_storage_service(body, simid)
pprint(api_response)
except ApiException as e:
- print("Exception when calling WRENCHApi->addFileReadAction: %s\n" % e)
+ print("Exception when calling WRENCHApi->addSimpleStorageService: %s\n" % e)
@@ -4790,7 +4451,7 @@ Parameters
-
+
@@ -4808,28 +4469,6 @@ Parameters
- compound_job_name*
-
-
-
-
-
-
-
- String
-
-
-
- Name of the compound job
-
-
-
- Required
-
-
-
-
-
@@ -4846,11 +4485,11 @@ Parameters
-
+
@@ -4885,14 +4524,14 @@ Status: 200 - OK
-
-
+
+
-
+
- Status: 404 - Compound job not found
-
-
-
-
-
-
Status: 405 - Invalid input
-
-
+
+
- addFileRegistryService
- Create and start a file registry service.
+ advanceTime
+ Retrieve the current simulated time.
@@ -4960,32 +4591,32 @@ addFileRegistryService
- /simulation/{simid}/addFileRegistryService
+ /simulation/{simid}/advanceTime
Usage and SDK Samples
-
- curl -X POST\
+
+ curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
-"https://wrench-project.org/v1/simulation/{simid}/addFileRegistryService"
+"https://wrench-project.org/v1/simulation/{simid}/advanceTime"
-
+
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
@@ -4999,52 +4630,52 @@ Usage and SDK Samples
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Simid_addFileRegistryService_body body = ; // Simid_addFileRegistryService_body | Input to start a new service.
+ Simid_advanceTime_body body = ; // Simid_advanceTime_body | Input to start a new service.
String simid = simid_example; // String | ID of the simulation
try {
- ServiceResponse result = apiInstance.addFileRegistryService(body, simid);
+ GenericResponse result = apiInstance.advanceTime(body, simid);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#addFileRegistryService");
+ System.err.println("Exception when calling WRENCHApi#advanceTime");
e.printStackTrace();
}
}
}
-
+
import io.swagger.client.api.WRENCHApi;
public class WRENCHApiExample {
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Simid_addFileRegistryService_body body = ; // Simid_addFileRegistryService_body | Input to start a new service.
+ Simid_advanceTime_body body = ; // Simid_advanceTime_body | Input to start a new service.
String simid = simid_example; // String | ID of the simulation
try {
- ServiceResponse result = apiInstance.addFileRegistryService(body, simid);
+ GenericResponse result = apiInstance.advanceTime(body, simid);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#addFileRegistryService");
+ System.err.println("Exception when calling WRENCHApi#advanceTime");
e.printStackTrace();
}
}
}
-
- Simid_addFileRegistryService_body *body = ; // Input to start a new service.
+
+ Simid_advanceTime_body *body = ; // Input to start a new service.
String *simid = simid_example; // ID of the simulation
WRENCHApi *apiInstance = [[WRENCHApi alloc] init];
-// Create and start a file registry service.
-[apiInstance addFileRegistryServiceWith:body
+// Retrieve the current simulated time.
+[apiInstance advanceTimeWith:body
simid:simid
- completionHandler: ^(ServiceResponse output, NSError* error) {
+ completionHandler: ^(GenericResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -5055,11 +4686,11 @@ Usage and SDK Samples
-
+
var WrenchRestApi = require('wrench_rest_api');
var api = new WrenchRestApi.WRENCHApi()
-var body = ; // {{Simid_addFileRegistryService_body}} Input to start a new service.
+var body = ; // {{Simid_advanceTime_body}} Input to start a new service.
var simid = simid_example; // {{String}} ID of the simulation
var callback = function(error, data, response) {
@@ -5069,14 +4700,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.addFileRegistryService(bodysimid, callback);
+api.advanceTime(bodysimid, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -5085,24 +4716,24 @@ Usage and SDK Samples
namespace Example
{
- public class addFileRegistryServiceExample
+ public class advanceTimeExample
{
public void main()
{
var apiInstance = new WRENCHApi();
- var body = new Simid_addFileRegistryService_body(); // Simid_addFileRegistryService_body | Input to start a new service.
+ var body = new Simid_advanceTime_body(); // Simid_advanceTime_body | Input to start a new service.
var simid = simid_example; // String | ID of the simulation
try
{
- // Create and start a file registry service.
- ServiceResponse result = apiInstance.addFileRegistryService(body, simid);
+ // Retrieve the current simulated time.
+ GenericResponse result = apiInstance.advanceTime(body, simid);
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling WRENCHApi.addFileRegistryService: " + e.Message );
+ Debug.Print("Exception when calling WRENCHApi.advanceTime: " + e.Message );
}
}
}
@@ -5110,42 +4741,42 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiWRENCHApi();
-$body = ; // Simid_addFileRegistryService_body | Input to start a new service.
+$body = ; // Simid_advanceTime_body | Input to start a new service.
$simid = simid_example; // String | ID of the simulation
try {
- $result = $api_instance->addFileRegistryService($body, $simid);
+ $result = $api_instance->advanceTime($body, $simid);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling WRENCHApi->addFileRegistryService: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling WRENCHApi->advanceTime: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WRENCHApi;
my $api_instance = WWW::SwaggerClient::WRENCHApi->new();
-my $body = WWW::SwaggerClient::Object::Simid_addFileRegistryService_body->new(); # Simid_addFileRegistryService_body | Input to start a new service.
+my $body = WWW::SwaggerClient::Object::Simid_advanceTime_body->new(); # Simid_advanceTime_body | Input to start a new service.
my $simid = simid_example; # String | ID of the simulation
eval {
- my $result = $api_instance->addFileRegistryService(body => $body, simid => $simid);
+ my $result = $api_instance->advanceTime(body => $body, simid => $simid);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling WRENCHApi->addFileRegistryService: $@\n";
+ warn "Exception when calling WRENCHApi->advanceTime: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
@@ -5154,15 +4785,15 @@ Usage and SDK Samples
# create an instance of the API class
api_instance = swagger_client.WRENCHApi()
-body = # Simid_addFileRegistryService_body | Input to start a new service.
+body = # Simid_advanceTime_body | Input to start a new service.
simid = simid_example # String | ID of the simulation
try:
- # Create and start a file registry service.
- api_response = api_instance.add_file_registry_service(body, simid)
+ # Retrieve the current simulated time.
+ api_response = api_instance.advance_time(body, simid)
pprint(api_response)
except ApiException as e:
- print("Exception when calling WRENCHApi->addFileRegistryService: %s\n" % e)
+ print("Exception when calling WRENCHApi->advanceTime: %s\n" % e)
@@ -5178,7 +4809,7 @@ Parameters
-
+
@@ -5216,7 +4847,7 @@ Parameters
"content" : {
"application/json" : {
"schema" : {
- "$ref" : "#/components/schemas/simid_addFileRegistryService_body"
+ "$ref" : "#/components/schemas/simid_advanceTime_body"
}
}
},
@@ -5234,12 +4865,12 @@ Parameters
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
- var result = $('#d2e199_addFileRegistryService_body');
+ var result = $('#d2e199_advanceTime_body');
result.empty();
result.append(view.render());
});
-
+
@@ -5251,14 +4882,14 @@ Status: 200 - OK
-
-
+
+
-
+
@@ -5306,11 +4937,11 @@ Status: 405 - Invalid input
-
-
+
+
- addFileWriteAction
- Add a file write action to compound job.
+ createFileCopyAtStorageService
+ Create, ex nihilo, a copy of a file copy at a storage service.
@@ -5318,32 +4949,32 @@ addFileWriteAction
- /simulation/{simid}/compoundJobs/{compound_job_name}/addFileWriteAction
+ /simulation/{simid}/storage_services/{service_name}/createFileCopy
Usage and SDK Samples
-
+
curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
-"https://wrench-project.org/v1/simulation/{simid}/compoundJobs/{compound_job_name}/addFileWriteAction"
+"https://wrench-project.org/v1/simulation/{simid}/storage_services/{service_name}/createFileCopy"
-
+
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
@@ -5357,55 +4988,55 @@ Usage and SDK Samples
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Compound_job_name_addFileWriteAction_body body = ; // Compound_job_name_addFileWriteAction_body | Input to add a file write action.
+ Service_name_createFileCopy_body body = ; // Service_name_createFileCopy_body | Input to start a new service.
String simid = simid_example; // String | ID of the simulation
- String compoundJobName = compoundJobName_example; // String | Name of the compound job
+ String serviceName = serviceName_example; // String | The storage service name
try {
- GenericResponse result = apiInstance.addFileWriteAction(body, simid, compoundJobName);
+ GenericResponse result = apiInstance.createFileCopyAtStorageService(body, simid, serviceName);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#addFileWriteAction");
+ System.err.println("Exception when calling WRENCHApi#createFileCopyAtStorageService");
e.printStackTrace();
}
}
}
-
+
import io.swagger.client.api.WRENCHApi;
public class WRENCHApiExample {
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Compound_job_name_addFileWriteAction_body body = ; // Compound_job_name_addFileWriteAction_body | Input to add a file write action.
+ Service_name_createFileCopy_body body = ; // Service_name_createFileCopy_body | Input to start a new service.
String simid = simid_example; // String | ID of the simulation
- String compoundJobName = compoundJobName_example; // String | Name of the compound job
+ String serviceName = serviceName_example; // String | The storage service name
try {
- GenericResponse result = apiInstance.addFileWriteAction(body, simid, compoundJobName);
+ GenericResponse result = apiInstance.createFileCopyAtStorageService(body, simid, serviceName);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#addFileWriteAction");
+ System.err.println("Exception when calling WRENCHApi#createFileCopyAtStorageService");
e.printStackTrace();
}
}
}
-
- Compound_job_name_addFileWriteAction_body *body = ; // Input to add a file write action.
+
+ Service_name_createFileCopy_body *body = ; // Input to start a new service.
String *simid = simid_example; // ID of the simulation
-String *compoundJobName = compoundJobName_example; // Name of the compound job
+String *serviceName = serviceName_example; // The storage service name
WRENCHApi *apiInstance = [[WRENCHApi alloc] init];
-// Add a file write action to compound job.
-[apiInstance addFileWriteActionWith:body
+// Create, ex nihilo, a copy of a file copy at a storage service.
+[apiInstance createFileCopyAtStorageServiceWith:body
simid:simid
- compoundJobName:compoundJobName
+ serviceName:serviceName
completionHandler: ^(GenericResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
@@ -5417,13 +5048,13 @@ Usage and SDK Samples
-
+
var WrenchRestApi = require('wrench_rest_api');
var api = new WrenchRestApi.WRENCHApi()
-var body = ; // {{Compound_job_name_addFileWriteAction_body}} Input to add a file write action.
+var body = ; // {{Service_name_createFileCopy_body}} Input to start a new service.
var simid = simid_example; // {{String}} ID of the simulation
-var compoundJobName = compoundJobName_example; // {{String}} Name of the compound job
+var serviceName = serviceName_example; // {{String}} The storage service name
var callback = function(error, data, response) {
if (error) {
@@ -5432,14 +5063,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.addFileWriteAction(bodysimidcompoundJobName, callback);
+api.createFileCopyAtStorageService(bodysimidserviceName, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -5448,25 +5079,25 @@ Usage and SDK Samples
namespace Example
{
- public class addFileWriteActionExample
+ public class createFileCopyAtStorageServiceExample
{
public void main()
{
var apiInstance = new WRENCHApi();
- var body = new Compound_job_name_addFileWriteAction_body(); // Compound_job_name_addFileWriteAction_body | Input to add a file write action.
+ var body = new Service_name_createFileCopy_body(); // Service_name_createFileCopy_body | Input to start a new service.
var simid = simid_example; // String | ID of the simulation
- var compoundJobName = compoundJobName_example; // String | Name of the compound job
+ var serviceName = serviceName_example; // String | The storage service name
try
{
- // Add a file write action to compound job.
- GenericResponse result = apiInstance.addFileWriteAction(body, simid, compoundJobName);
+ // Create, ex nihilo, a copy of a file copy at a storage service.
+ GenericResponse result = apiInstance.createFileCopyAtStorageService(body, simid, serviceName);
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling WRENCHApi.addFileWriteAction: " + e.Message );
+ Debug.Print("Exception when calling WRENCHApi.createFileCopyAtStorageService: " + e.Message );
}
}
}
@@ -5474,44 +5105,44 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiWRENCHApi();
-$body = ; // Compound_job_name_addFileWriteAction_body | Input to add a file write action.
+$body = ; // Service_name_createFileCopy_body | Input to start a new service.
$simid = simid_example; // String | ID of the simulation
-$compoundJobName = compoundJobName_example; // String | Name of the compound job
+$serviceName = serviceName_example; // String | The storage service name
try {
- $result = $api_instance->addFileWriteAction($body, $simid, $compoundJobName);
+ $result = $api_instance->createFileCopyAtStorageService($body, $simid, $serviceName);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling WRENCHApi->addFileWriteAction: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling WRENCHApi->createFileCopyAtStorageService: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WRENCHApi;
my $api_instance = WWW::SwaggerClient::WRENCHApi->new();
-my $body = WWW::SwaggerClient::Object::Compound_job_name_addFileWriteAction_body->new(); # Compound_job_name_addFileWriteAction_body | Input to add a file write action.
+my $body = WWW::SwaggerClient::Object::Service_name_createFileCopy_body->new(); # Service_name_createFileCopy_body | Input to start a new service.
my $simid = simid_example; # String | ID of the simulation
-my $compoundJobName = compoundJobName_example; # String | Name of the compound job
+my $serviceName = serviceName_example; # String | The storage service name
eval {
- my $result = $api_instance->addFileWriteAction(body => $body, simid => $simid, compoundJobName => $compoundJobName);
+ my $result = $api_instance->createFileCopyAtStorageService(body => $body, simid => $simid, serviceName => $serviceName);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling WRENCHApi->addFileWriteAction: $@\n";
+ warn "Exception when calling WRENCHApi->createFileCopyAtStorageService: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
@@ -5520,16 +5151,16 @@ Usage and SDK Samples
# create an instance of the API class
api_instance = swagger_client.WRENCHApi()
-body = # Compound_job_name_addFileWriteAction_body | Input to add a file write action.
+body = # Service_name_createFileCopy_body | Input to start a new service.
simid = simid_example # String | ID of the simulation
-compoundJobName = compoundJobName_example # String | Name of the compound job
+serviceName = serviceName_example # String | The storage service name
try:
- # Add a file write action to compound job.
- api_response = api_instance.add_file_write_action(body, simid, compoundJobName)
+ # Create, ex nihilo, a copy of a file copy at a storage service.
+ api_response = api_instance.create_file_copy_at_storage_service(body, simid, serviceName)
pprint(api_response)
except ApiException as e:
- print("Exception when calling WRENCHApi->addFileWriteAction: %s\n" % e)
+ print("Exception when calling WRENCHApi->createFileCopyAtStorageService: %s\n" % e)
@@ -5545,7 +5176,7 @@ Parameters
-
+
@@ -5563,11 +5194,11 @@ Parameters
- compound_job_name*
+ service_name*
-
+
@@ -5575,7 +5206,7 @@ Parameters
- Name of the compound job
+ The storage service name
@@ -5601,11 +5232,11 @@ Parameters
-
+
@@ -5640,14 +5271,14 @@ Status: 200 - OK
-
-
+
+
-
+
- Status: 404 - Job not found
+ Status: 404 - Simulation or storage service not found
@@ -5703,11 +5334,11 @@ Status: 405 - Invalid input
-
-
+
+
- addInputFile
- Add an input file to a task
+ createStandardJob
+ Create a new standard job.
@@ -5715,32 +5346,32 @@ addInputFile
- /simulation/{simid}/workflows/{workflow_name}/tasks/{tid}/addInputFile
+ /simulation/{simid}/workflows/{workflow_name}/createStandardJob
Usage and SDK Samples
-
+
curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
-"https://wrench-project.org/v1/simulation/{simid}/workflows/{workflow_name}/tasks/{tid}/addInputFile"
+"https://wrench-project.org/v1/simulation/{simid}/workflows/{workflow_name}/createStandardJob"
-
+
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
@@ -5754,60 +5385,56 @@ Usage and SDK Samples
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Tid_addInputFile_body body = ; // Tid_addInputFile_body | Input file.
+ StandardJob body = ; // StandardJob | Job specification.
String simid = simid_example; // String | ID of the simulation
String workflowName = workflowName_example; // String |
- String tid = tid_example; // String | ID of the task
try {
- GenericResponse result = apiInstance.addInputFile(body, simid, workflowName, tid);
+ JobResponse result = apiInstance.createStandardJob(body, simid, workflowName);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#addInputFile");
+ System.err.println("Exception when calling WRENCHApi#createStandardJob");
e.printStackTrace();
}
}
}
-
+
import io.swagger.client.api.WRENCHApi;
public class WRENCHApiExample {
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Tid_addInputFile_body body = ; // Tid_addInputFile_body | Input file.
+ StandardJob body = ; // StandardJob | Job specification.
String simid = simid_example; // String | ID of the simulation
String workflowName = workflowName_example; // String |
- String tid = tid_example; // String | ID of the task
try {
- GenericResponse result = apiInstance.addInputFile(body, simid, workflowName, tid);
+ JobResponse result = apiInstance.createStandardJob(body, simid, workflowName);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#addInputFile");
+ System.err.println("Exception when calling WRENCHApi#createStandardJob");
e.printStackTrace();
}
}
}
-
- Tid_addInputFile_body *body = ; // Input file.
+
+ StandardJob *body = ; // Job specification.
String *simid = simid_example; // ID of the simulation
String *workflowName = workflowName_example; //
-String *tid = tid_example; // ID of the task
WRENCHApi *apiInstance = [[WRENCHApi alloc] init];
-// Add an input file to a task
-[apiInstance addInputFileWith:body
+// Create a new standard job.
+[apiInstance createStandardJobWith:body
simid:simid
workflowName:workflowName
- tid:tid
- completionHandler: ^(GenericResponse output, NSError* error) {
+ completionHandler: ^(JobResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -5818,14 +5445,13 @@ Usage and SDK Samples
-
+
var WrenchRestApi = require('wrench_rest_api');
var api = new WrenchRestApi.WRENCHApi()
-var body = ; // {{Tid_addInputFile_body}} Input file.
+var body = ; // {{StandardJob}} Job specification.
var simid = simid_example; // {{String}} ID of the simulation
var workflowName = workflowName_example; // {{String}}
-var tid = tid_example; // {{String}} ID of the task
var callback = function(error, data, response) {
if (error) {
@@ -5834,14 +5460,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.addInputFile(bodysimidworkflowNametid, callback);
+api.createStandardJob(bodysimidworkflowName, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -5850,26 +5476,25 @@ Usage and SDK Samples
namespace Example
{
- public class addInputFileExample
+ public class createStandardJobExample
{
public void main()
{
var apiInstance = new WRENCHApi();
- var body = new Tid_addInputFile_body(); // Tid_addInputFile_body | Input file.
+ var body = new StandardJob(); // StandardJob | Job specification.
var simid = simid_example; // String | ID of the simulation
var workflowName = workflowName_example; // String |
- var tid = tid_example; // String | ID of the task
try
{
- // Add an input file to a task
- GenericResponse result = apiInstance.addInputFile(body, simid, workflowName, tid);
+ // Create a new standard job.
+ JobResponse result = apiInstance.createStandardJob(body, simid, workflowName);
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling WRENCHApi.addInputFile: " + e.Message );
+ Debug.Print("Exception when calling WRENCHApi.createStandardJob: " + e.Message );
}
}
}
@@ -5877,46 +5502,44 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiWRENCHApi();
-$body = ; // Tid_addInputFile_body | Input file.
+$body = ; // StandardJob | Job specification.
$simid = simid_example; // String | ID of the simulation
$workflowName = workflowName_example; // String |
-$tid = tid_example; // String | ID of the task
try {
- $result = $api_instance->addInputFile($body, $simid, $workflowName, $tid);
+ $result = $api_instance->createStandardJob($body, $simid, $workflowName);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling WRENCHApi->addInputFile: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling WRENCHApi->createStandardJob: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WRENCHApi;
my $api_instance = WWW::SwaggerClient::WRENCHApi->new();
-my $body = WWW::SwaggerClient::Object::Tid_addInputFile_body->new(); # Tid_addInputFile_body | Input file.
+my $body = WWW::SwaggerClient::Object::StandardJob->new(); # StandardJob | Job specification.
my $simid = simid_example; # String | ID of the simulation
my $workflowName = workflowName_example; # String |
-my $tid = tid_example; # String | ID of the task
eval {
- my $result = $api_instance->addInputFile(body => $body, simid => $simid, workflowName => $workflowName, tid => $tid);
+ my $result = $api_instance->createStandardJob(body => $body, simid => $simid, workflowName => $workflowName);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling WRENCHApi->addInputFile: $@\n";
+ warn "Exception when calling WRENCHApi->createStandardJob: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
@@ -5925,17 +5548,16 @@ Usage and SDK Samples
# create an instance of the API class
api_instance = swagger_client.WRENCHApi()
-body = # Tid_addInputFile_body | Input file.
+body = # StandardJob | Job specification.
simid = simid_example # String | ID of the simulation
workflowName = workflowName_example # String |
-tid = tid_example # String | ID of the task
try:
- # Add an input file to a task
- api_response = api_instance.add_input_file(body, simid, workflowName, tid)
+ # Create a new standard job.
+ api_response = api_instance.create_standard_job(body, simid, workflowName)
pprint(api_response)
except ApiException as e:
- print("Exception when calling WRENCHApi->addInputFile: %s\n" % e)
+ print("Exception when calling WRENCHApi->createStandardJob: %s\n" % e)
@@ -5951,7 +5573,7 @@ Parameters
-
+
@@ -5973,35 +5595,13 @@ Parameters
-
-
-
-
- String
-
-
-
-
- Required
-
-
-
-
-
- tid*
-
-
-
-
+
String
-
- ID of the task
-
Required
@@ -6026,11 +5626,11 @@ Parameters
-
+
@@ -6065,14 +5665,14 @@ Status: 200 - OK
-
-
+
+
-
+
- Status: 404 - Task not found
-
-
-
-
-
-
Status: 405 - Invalid input
-
-
+
+
- addOutputFile
- Add an output file to a task
+ createTask
+ Create a new task.
@@ -6140,32 +5732,32 @@ addOutputFile
- /simulation/{simid}/workflows/{workflow_name}/tasks/{tid}/addOutputFile
+ /simulation/{simid}/workflows/{workflow_name}/createTask
Usage and SDK Samples
-
+
curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
-"https://wrench-project.org/v1/simulation/{simid}/workflows/{workflow_name}/tasks/{tid}/addOutputFile"
+"https://wrench-project.org/v1/simulation/{simid}/workflows/{workflow_name}/createTask"
-
+
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
@@ -6179,59 +5771,55 @@ Usage and SDK Samples
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Tid_addOutputFile_body body = ; // Tid_addOutputFile_body | Job characteristics.
+ Task body = ; // Task | Task characteristics.
String simid = simid_example; // String | ID of the simulation
String workflowName = workflowName_example; // String |
- String tid = tid_example; // String | ID of the task
try {
- GenericResponse result = apiInstance.addOutputFile(body, simid, workflowName, tid);
+ GenericResponse result = apiInstance.createTask(body, simid, workflowName);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#addOutputFile");
+ System.err.println("Exception when calling WRENCHApi#createTask");
e.printStackTrace();
}
}
}
-
+
import io.swagger.client.api.WRENCHApi;
public class WRENCHApiExample {
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Tid_addOutputFile_body body = ; // Tid_addOutputFile_body | Job characteristics.
+ Task body = ; // Task | Task characteristics.
String simid = simid_example; // String | ID of the simulation
String workflowName = workflowName_example; // String |
- String tid = tid_example; // String | ID of the task
try {
- GenericResponse result = apiInstance.addOutputFile(body, simid, workflowName, tid);
+ GenericResponse result = apiInstance.createTask(body, simid, workflowName);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#addOutputFile");
+ System.err.println("Exception when calling WRENCHApi#createTask");
e.printStackTrace();
}
}
}
-
- Tid_addOutputFile_body *body = ; // Job characteristics.
+
+ Task *body = ; // Task characteristics.
String *simid = simid_example; // ID of the simulation
String *workflowName = workflowName_example; //
-String *tid = tid_example; // ID of the task
WRENCHApi *apiInstance = [[WRENCHApi alloc] init];
-// Add an output file to a task
-[apiInstance addOutputFileWith:body
+// Create a new task.
+[apiInstance createTaskWith:body
simid:simid
workflowName:workflowName
- tid:tid
completionHandler: ^(GenericResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
@@ -6243,14 +5831,13 @@ Usage and SDK Samples
-
+
var WrenchRestApi = require('wrench_rest_api');
var api = new WrenchRestApi.WRENCHApi()
-var body = ; // {{Tid_addOutputFile_body}} Job characteristics.
+var body = ; // {{Task}} Task characteristics.
var simid = simid_example; // {{String}} ID of the simulation
var workflowName = workflowName_example; // {{String}}
-var tid = tid_example; // {{String}} ID of the task
var callback = function(error, data, response) {
if (error) {
@@ -6259,14 +5846,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.addOutputFile(bodysimidworkflowNametid, callback);
+api.createTask(bodysimidworkflowName, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -6275,26 +5862,25 @@ Usage and SDK Samples
namespace Example
{
- public class addOutputFileExample
+ public class createTaskExample
{
public void main()
{
var apiInstance = new WRENCHApi();
- var body = new Tid_addOutputFile_body(); // Tid_addOutputFile_body | Job characteristics.
+ var body = new Task(); // Task | Task characteristics.
var simid = simid_example; // String | ID of the simulation
var workflowName = workflowName_example; // String |
- var tid = tid_example; // String | ID of the task
try
{
- // Add an output file to a task
- GenericResponse result = apiInstance.addOutputFile(body, simid, workflowName, tid);
+ // Create a new task.
+ GenericResponse result = apiInstance.createTask(body, simid, workflowName);
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling WRENCHApi.addOutputFile: " + e.Message );
+ Debug.Print("Exception when calling WRENCHApi.createTask: " + e.Message );
}
}
}
@@ -6302,46 +5888,44 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiWRENCHApi();
-$body = ; // Tid_addOutputFile_body | Job characteristics.
+$body = ; // Task | Task characteristics.
$simid = simid_example; // String | ID of the simulation
$workflowName = workflowName_example; // String |
-$tid = tid_example; // String | ID of the task
try {
- $result = $api_instance->addOutputFile($body, $simid, $workflowName, $tid);
+ $result = $api_instance->createTask($body, $simid, $workflowName);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling WRENCHApi->addOutputFile: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling WRENCHApi->createTask: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WRENCHApi;
my $api_instance = WWW::SwaggerClient::WRENCHApi->new();
-my $body = WWW::SwaggerClient::Object::Tid_addOutputFile_body->new(); # Tid_addOutputFile_body | Job characteristics.
+my $body = WWW::SwaggerClient::Object::Task->new(); # Task | Task characteristics.
my $simid = simid_example; # String | ID of the simulation
my $workflowName = workflowName_example; # String |
-my $tid = tid_example; # String | ID of the task
eval {
- my $result = $api_instance->addOutputFile(body => $body, simid => $simid, workflowName => $workflowName, tid => $tid);
+ my $result = $api_instance->createTask(body => $body, simid => $simid, workflowName => $workflowName);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling WRENCHApi->addOutputFile: $@\n";
+ warn "Exception when calling WRENCHApi->createTask: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
@@ -6350,17 +5934,16 @@ Usage and SDK Samples
# create an instance of the API class
api_instance = swagger_client.WRENCHApi()
-body = # Tid_addOutputFile_body | Job characteristics.
+body = # Task | Task characteristics.
simid = simid_example # String | ID of the simulation
workflowName = workflowName_example # String |
-tid = tid_example # String | ID of the task
try:
- # Add an output file to a task
- api_response = api_instance.add_output_file(body, simid, workflowName, tid)
+ # Create a new task.
+ api_response = api_instance.create_task(body, simid, workflowName)
pprint(api_response)
except ApiException as e:
- print("Exception when calling WRENCHApi->addOutputFile: %s\n" % e)
+ print("Exception when calling WRENCHApi->createTask: %s\n" % e)
@@ -6376,7 +5959,7 @@ Parameters
-
+
@@ -6398,35 +5981,13 @@ Parameters
-
-
-
-
- String
-
-
-
-
- Required
-
-
-
-
-
- tid*
-
-
-
-
+
String
-
- ID of the task
-
Required
@@ -6451,11 +6012,11 @@ Parameters
-
+
@@ -6490,14 +6051,14 @@ Status: 200 - OK
-
-
+
+
-
+
- Status: 404 - Task not found
-
-
-
-
-
-
Status: 405 - Invalid input
-
-
+
+
- addParentJob
- Add parent compound job to compound job
+ createVM
+ Create a VM on a cloud compute service.
@@ -6565,32 +6118,32 @@ addParentJob
- /simulation/{simid}/compoundJobs/{compound_job_name}/addParentJob
+ /simulation/{simid}/cloud_compute_services/{service_name}/createVM
Usage and SDK Samples
-
-
-
- curl -X POST\
+ - Curl
+ - Java
+ - Android
+
+ - Obj-C
+ - JavaScript
+
+ - C#
+ - PHP
+ - Perl
+ - Python
+
+
+
+
+ curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
-"https://wrench-project.org/v1/simulation/{simid}/compoundJobs/{compound_job_name}/addParentJob"
+"https://wrench-project.org/v1/simulation/{simid}/cloud_compute_services/{service_name}/createVM"
-
+
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
@@ -6604,56 +6157,56 @@ Usage and SDK Samples
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Compound_job_name_addParentJob_body body = ; // Compound_job_name_addParentJob_body | Input to add a parent compound job.
+ Service_name_createVM_body body = ; // Service_name_createVM_body | Input to start create a VM.
String simid = simid_example; // String | ID of the simulation
- String compoundJobName = compoundJobName_example; // String | Name of the compound job
+ String serviceName = serviceName_example; // String | The cloud compute service name
try {
- GenericResponse result = apiInstance.addParentJob(body, simid, compoundJobName);
+ VMCreationResponse result = apiInstance.createVM(body, simid, serviceName);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#addParentJob");
+ System.err.println("Exception when calling WRENCHApi#createVM");
e.printStackTrace();
}
}
}
-
+
import io.swagger.client.api.WRENCHApi;
public class WRENCHApiExample {
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Compound_job_name_addParentJob_body body = ; // Compound_job_name_addParentJob_body | Input to add a parent compound job.
+ Service_name_createVM_body body = ; // Service_name_createVM_body | Input to start create a VM.
String simid = simid_example; // String | ID of the simulation
- String compoundJobName = compoundJobName_example; // String | Name of the compound job
+ String serviceName = serviceName_example; // String | The cloud compute service name
try {
- GenericResponse result = apiInstance.addParentJob(body, simid, compoundJobName);
+ VMCreationResponse result = apiInstance.createVM(body, simid, serviceName);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#addParentJob");
+ System.err.println("Exception when calling WRENCHApi#createVM");
e.printStackTrace();
}
}
}
-
- Compound_job_name_addParentJob_body *body = ; // Input to add a parent compound job.
+
+ Service_name_createVM_body *body = ; // Input to start create a VM.
String *simid = simid_example; // ID of the simulation
-String *compoundJobName = compoundJobName_example; // Name of the compound job
+String *serviceName = serviceName_example; // The cloud compute service name
WRENCHApi *apiInstance = [[WRENCHApi alloc] init];
-// Add parent compound job to compound job
-[apiInstance addParentJobWith:body
+// Create a VM on a cloud compute service.
+[apiInstance createVMWith:body
simid:simid
- compoundJobName:compoundJobName
- completionHandler: ^(GenericResponse output, NSError* error) {
+ serviceName:serviceName
+ completionHandler: ^(VMCreationResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -6664,13 +6217,13 @@ Usage and SDK Samples
-
+
var WrenchRestApi = require('wrench_rest_api');
var api = new WrenchRestApi.WRENCHApi()
-var body = ; // {{Compound_job_name_addParentJob_body}} Input to add a parent compound job.
+var body = ; // {{Service_name_createVM_body}} Input to start create a VM.
var simid = simid_example; // {{String}} ID of the simulation
-var compoundJobName = compoundJobName_example; // {{String}} Name of the compound job
+var serviceName = serviceName_example; // {{String}} The cloud compute service name
var callback = function(error, data, response) {
if (error) {
@@ -6679,14 +6232,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.addParentJob(bodysimidcompoundJobName, callback);
+api.createVM(bodysimidserviceName, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -6695,25 +6248,25 @@ Usage and SDK Samples
namespace Example
{
- public class addParentJobExample
+ public class createVMExample
{
public void main()
{
var apiInstance = new WRENCHApi();
- var body = new Compound_job_name_addParentJob_body(); // Compound_job_name_addParentJob_body | Input to add a parent compound job.
+ var body = new Service_name_createVM_body(); // Service_name_createVM_body | Input to start create a VM.
var simid = simid_example; // String | ID of the simulation
- var compoundJobName = compoundJobName_example; // String | Name of the compound job
+ var serviceName = serviceName_example; // String | The cloud compute service name
try
{
- // Add parent compound job to compound job
- GenericResponse result = apiInstance.addParentJob(body, simid, compoundJobName);
+ // Create a VM on a cloud compute service.
+ VMCreationResponse result = apiInstance.createVM(body, simid, serviceName);
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling WRENCHApi.addParentJob: " + e.Message );
+ Debug.Print("Exception when calling WRENCHApi.createVM: " + e.Message );
}
}
}
@@ -6721,44 +6274,44 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiWRENCHApi();
-$body = ; // Compound_job_name_addParentJob_body | Input to add a parent compound job.
+$body = ; // Service_name_createVM_body | Input to start create a VM.
$simid = simid_example; // String | ID of the simulation
-$compoundJobName = compoundJobName_example; // String | Name of the compound job
+$serviceName = serviceName_example; // String | The cloud compute service name
try {
- $result = $api_instance->addParentJob($body, $simid, $compoundJobName);
+ $result = $api_instance->createVM($body, $simid, $serviceName);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling WRENCHApi->addParentJob: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling WRENCHApi->createVM: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WRENCHApi;
my $api_instance = WWW::SwaggerClient::WRENCHApi->new();
-my $body = WWW::SwaggerClient::Object::Compound_job_name_addParentJob_body->new(); # Compound_job_name_addParentJob_body | Input to add a parent compound job.
+my $body = WWW::SwaggerClient::Object::Service_name_createVM_body->new(); # Service_name_createVM_body | Input to start create a VM.
my $simid = simid_example; # String | ID of the simulation
-my $compoundJobName = compoundJobName_example; # String | Name of the compound job
+my $serviceName = serviceName_example; # String | The cloud compute service name
eval {
- my $result = $api_instance->addParentJob(body => $body, simid => $simid, compoundJobName => $compoundJobName);
+ my $result = $api_instance->createVM(body => $body, simid => $simid, serviceName => $serviceName);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling WRENCHApi->addParentJob: $@\n";
+ warn "Exception when calling WRENCHApi->createVM: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
@@ -6767,16 +6320,16 @@ Usage and SDK Samples
# create an instance of the API class
api_instance = swagger_client.WRENCHApi()
-body = # Compound_job_name_addParentJob_body | Input to add a parent compound job.
+body = # Service_name_createVM_body | Input to start create a VM.
simid = simid_example # String | ID of the simulation
-compoundJobName = compoundJobName_example # String | Name of the compound job
+serviceName = serviceName_example # String | The cloud compute service name
try:
- # Add parent compound job to compound job
- api_response = api_instance.add_parent_job(body, simid, compoundJobName)
+ # Create a VM on a cloud compute service.
+ api_response = api_instance.create_vm(body, simid, serviceName)
pprint(api_response)
except ApiException as e:
- print("Exception when calling WRENCHApi->addParentJob: %s\n" % e)
+ print("Exception when calling WRENCHApi->createVM: %s\n" % e)
@@ -6792,7 +6345,7 @@ Parameters
-
+
@@ -6810,11 +6363,11 @@ Parameters
- compound_job_name*
+ service_name*
-
+
@@ -6822,7 +6375,7 @@ Parameters
- Name of the compound job
+ The cloud compute service name
@@ -6848,11 +6401,11 @@ Parameters
-
+
@@ -6887,14 +6440,14 @@ Status: 200 - OK
-
-
+
+
-
+
- Status: 404 - Job not found
-
-
-
-
-
-
Status: 405 - Invalid input
-
-
+
+
- addSimpleStorageService
- Create and start a simple storage service.
+ createWorkflow
+ Create a blank workflow.
@@ -6962,32 +6507,31 @@ addSimpleStorageService
- /simulation/{simid}/addSimpleStorageService
+ /simulation/{simid}/createWorkflow
Usage and SDK Samples
-
+
curl -X POST\
-H "Accept: application/json"\
--H "Content-Type: application/json"\
-"https://wrench-project.org/v1/simulation/{simid}/addSimpleStorageService"
+"https://wrench-project.org/v1/simulation/{simid}/createWorkflow"
-
+
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
@@ -7001,52 +6545,48 @@ Usage and SDK Samples
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Simid_addSimpleStorageService_body body = ; // Simid_addSimpleStorageService_body | Input to start a new service.
String simid = simid_example; // String | ID of the simulation
try {
- ServiceResponse result = apiInstance.addSimpleStorageService(body, simid);
+ WorkflowResponse result = apiInstance.createWorkflow(simid);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#addSimpleStorageService");
+ System.err.println("Exception when calling WRENCHApi#createWorkflow");
e.printStackTrace();
}
}
}
-
+
import io.swagger.client.api.WRENCHApi;
public class WRENCHApiExample {
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Simid_addSimpleStorageService_body body = ; // Simid_addSimpleStorageService_body | Input to start a new service.
String simid = simid_example; // String | ID of the simulation
try {
- ServiceResponse result = apiInstance.addSimpleStorageService(body, simid);
+ WorkflowResponse result = apiInstance.createWorkflow(simid);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#addSimpleStorageService");
+ System.err.println("Exception when calling WRENCHApi#createWorkflow");
e.printStackTrace();
}
}
}
-
- Simid_addSimpleStorageService_body *body = ; // Input to start a new service.
-String *simid = simid_example; // ID of the simulation
+
+ String *simid = simid_example; // ID of the simulation
WRENCHApi *apiInstance = [[WRENCHApi alloc] init];
-// Create and start a simple storage service.
-[apiInstance addSimpleStorageServiceWith:body
- simid:simid
- completionHandler: ^(ServiceResponse output, NSError* error) {
+// Create a blank workflow.
+[apiInstance createWorkflowWith:simid
+ completionHandler: ^(WorkflowResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -7057,11 +6597,10 @@ Usage and SDK Samples
-
+
var WrenchRestApi = require('wrench_rest_api');
var api = new WrenchRestApi.WRENCHApi()
-var body = ; // {{Simid_addSimpleStorageService_body}} Input to start a new service.
var simid = simid_example; // {{String}} ID of the simulation
var callback = function(error, data, response) {
@@ -7071,14 +6610,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.addSimpleStorageService(bodysimid, callback);
+api.createWorkflow(simid, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -7087,24 +6626,23 @@ Usage and SDK Samples
namespace Example
{
- public class addSimpleStorageServiceExample
+ public class createWorkflowExample
{
public void main()
{
var apiInstance = new WRENCHApi();
- var body = new Simid_addSimpleStorageService_body(); // Simid_addSimpleStorageService_body | Input to start a new service.
var simid = simid_example; // String | ID of the simulation
try
{
- // Create and start a simple storage service.
- ServiceResponse result = apiInstance.addSimpleStorageService(body, simid);
+ // Create a blank workflow.
+ WorkflowResponse result = apiInstance.createWorkflow(simid);
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling WRENCHApi.addSimpleStorageService: " + e.Message );
+ Debug.Print("Exception when calling WRENCHApi.createWorkflow: " + e.Message );
}
}
}
@@ -7112,42 +6650,40 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiWRENCHApi();
-$body = ; // Simid_addSimpleStorageService_body | Input to start a new service.
$simid = simid_example; // String | ID of the simulation
try {
- $result = $api_instance->addSimpleStorageService($body, $simid);
+ $result = $api_instance->createWorkflow($simid);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling WRENCHApi->addSimpleStorageService: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling WRENCHApi->createWorkflow: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WRENCHApi;
my $api_instance = WWW::SwaggerClient::WRENCHApi->new();
-my $body = WWW::SwaggerClient::Object::Simid_addSimpleStorageService_body->new(); # Simid_addSimpleStorageService_body | Input to start a new service.
my $simid = simid_example; # String | ID of the simulation
eval {
- my $result = $api_instance->addSimpleStorageService(body => $body, simid => $simid);
+ my $result = $api_instance->createWorkflow(simid => $simid);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling WRENCHApi->addSimpleStorageService: $@\n";
+ warn "Exception when calling WRENCHApi->createWorkflow: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
@@ -7156,15 +6692,14 @@ Usage and SDK Samples
# create an instance of the API class
api_instance = swagger_client.WRENCHApi()
-body = # Simid_addSimpleStorageService_body | Input to start a new service.
simid = simid_example # String | ID of the simulation
try:
- # Create and start a simple storage service.
- api_response = api_instance.add_simple_storage_service(body, simid)
+ # Create a blank workflow.
+ api_response = api_instance.create_workflow(simid)
pprint(api_response)
except ApiException as e:
- print("Exception when calling WRENCHApi->addSimpleStorageService: %s\n" % e)
+ print("Exception when calling WRENCHApi->createWorkflow: %s\n" % e)
@@ -7180,7 +6715,7 @@ Parameters
-
+
@@ -7201,50 +6736,6 @@ Parameters
- Body parameters
-
-
- Name
- Description
-
- body *
-
-
-
-
-
-
-
-
@@ -7253,14 +6744,14 @@ Status: 200 - OK
-
-
+
+
-
+
@@ -7308,11 +6799,11 @@ Status: 405 - Invalid input
-
-
+
+
- addSleepAction
- Add a sleep action to compound job
+ createWorkflowFromJSON
+ Create a workflow from a WfCommons JSON object.
@@ -7320,32 +6811,32 @@ addSleepAction
- /simulation/{simid}/compoundJobs/{compound_job_name}/addSleepAction
+ /simulation/{simid}/createWorkflowFromJSON
Usage and SDK Samples
-
+
curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
-"https://wrench-project.org/v1/simulation/{simid}/compoundJobs/{compound_job_name}/addSleepAction"
+"https://wrench-project.org/v1/simulation/{simid}/createWorkflowFromJSON"
-
+
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
@@ -7359,56 +6850,52 @@ Usage and SDK Samples
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Compound_job_name_addSleepAction_body body = ; // Compound_job_name_addSleepAction_body | Input to add a sleep action.
+ Simid_createWorkflowFromJSON_body body = ; // Simid_createWorkflowFromJSON_body | Input to create workflow from JSON.
String simid = simid_example; // String | ID of the simulation
- String compoundJobName = compoundJobName_example; // String | Name of the compound job
try {
- GenericResponse result = apiInstance.addSleepAction(body, simid, compoundJobName);
+ WorkflowResponseWithTaskAndFileList result = apiInstance.createWorkflowFromJSON(body, simid);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#addSleepAction");
+ System.err.println("Exception when calling WRENCHApi#createWorkflowFromJSON");
e.printStackTrace();
}
}
}
-
+
import io.swagger.client.api.WRENCHApi;
public class WRENCHApiExample {
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Compound_job_name_addSleepAction_body body = ; // Compound_job_name_addSleepAction_body | Input to add a sleep action.
+ Simid_createWorkflowFromJSON_body body = ; // Simid_createWorkflowFromJSON_body | Input to create workflow from JSON.
String simid = simid_example; // String | ID of the simulation
- String compoundJobName = compoundJobName_example; // String | Name of the compound job
try {
- GenericResponse result = apiInstance.addSleepAction(body, simid, compoundJobName);
+ WorkflowResponseWithTaskAndFileList result = apiInstance.createWorkflowFromJSON(body, simid);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#addSleepAction");
+ System.err.println("Exception when calling WRENCHApi#createWorkflowFromJSON");
e.printStackTrace();
}
}
}
-
- Compound_job_name_addSleepAction_body *body = ; // Input to add a sleep action.
+
+ Simid_createWorkflowFromJSON_body *body = ; // Input to create workflow from JSON.
String *simid = simid_example; // ID of the simulation
-String *compoundJobName = compoundJobName_example; // Name of the compound job
WRENCHApi *apiInstance = [[WRENCHApi alloc] init];
-// Add a sleep action to compound job
-[apiInstance addSleepActionWith:body
+// Create a workflow from a WfCommons JSON object.
+[apiInstance createWorkflowFromJSONWith:body
simid:simid
- compoundJobName:compoundJobName
- completionHandler: ^(GenericResponse output, NSError* error) {
+ completionHandler: ^(WorkflowResponseWithTaskAndFileList output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -7419,13 +6906,12 @@ Usage and SDK Samples
-
+
var WrenchRestApi = require('wrench_rest_api');
var api = new WrenchRestApi.WRENCHApi()
-var body = ; // {{Compound_job_name_addSleepAction_body}} Input to add a sleep action.
+var body = ; // {{Simid_createWorkflowFromJSON_body}} Input to create workflow from JSON.
var simid = simid_example; // {{String}} ID of the simulation
-var compoundJobName = compoundJobName_example; // {{String}} Name of the compound job
var callback = function(error, data, response) {
if (error) {
@@ -7434,14 +6920,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.addSleepAction(bodysimidcompoundJobName, callback);
+api.createWorkflowFromJSON(bodysimid, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -7450,25 +6936,24 @@ Usage and SDK Samples
namespace Example
{
- public class addSleepActionExample
+ public class createWorkflowFromJSONExample
{
public void main()
{
var apiInstance = new WRENCHApi();
- var body = new Compound_job_name_addSleepAction_body(); // Compound_job_name_addSleepAction_body | Input to add a sleep action.
+ var body = new Simid_createWorkflowFromJSON_body(); // Simid_createWorkflowFromJSON_body | Input to create workflow from JSON.
var simid = simid_example; // String | ID of the simulation
- var compoundJobName = compoundJobName_example; // String | Name of the compound job
try
{
- // Add a sleep action to compound job
- GenericResponse result = apiInstance.addSleepAction(body, simid, compoundJobName);
+ // Create a workflow from a WfCommons JSON object.
+ WorkflowResponseWithTaskAndFileList result = apiInstance.createWorkflowFromJSON(body, simid);
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling WRENCHApi.addSleepAction: " + e.Message );
+ Debug.Print("Exception when calling WRENCHApi.createWorkflowFromJSON: " + e.Message );
}
}
}
@@ -7476,44 +6961,42 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiWRENCHApi();
-$body = ; // Compound_job_name_addSleepAction_body | Input to add a sleep action.
+$body = ; // Simid_createWorkflowFromJSON_body | Input to create workflow from JSON.
$simid = simid_example; // String | ID of the simulation
-$compoundJobName = compoundJobName_example; // String | Name of the compound job
try {
- $result = $api_instance->addSleepAction($body, $simid, $compoundJobName);
+ $result = $api_instance->createWorkflowFromJSON($body, $simid);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling WRENCHApi->addSleepAction: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling WRENCHApi->createWorkflowFromJSON: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WRENCHApi;
my $api_instance = WWW::SwaggerClient::WRENCHApi->new();
-my $body = WWW::SwaggerClient::Object::Compound_job_name_addSleepAction_body->new(); # Compound_job_name_addSleepAction_body | Input to add a sleep action.
+my $body = WWW::SwaggerClient::Object::Simid_createWorkflowFromJSON_body->new(); # Simid_createWorkflowFromJSON_body | Input to create workflow from JSON.
my $simid = simid_example; # String | ID of the simulation
-my $compoundJobName = compoundJobName_example; # String | Name of the compound job
eval {
- my $result = $api_instance->addSleepAction(body => $body, simid => $simid, compoundJobName => $compoundJobName);
+ my $result = $api_instance->createWorkflowFromJSON(body => $body, simid => $simid);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling WRENCHApi->addSleepAction: $@\n";
+ warn "Exception when calling WRENCHApi->createWorkflowFromJSON: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
@@ -7522,16 +7005,15 @@ Usage and SDK Samples
# create an instance of the API class
api_instance = swagger_client.WRENCHApi()
-body = # Compound_job_name_addSleepAction_body | Input to add a sleep action.
+body = # Simid_createWorkflowFromJSON_body | Input to create workflow from JSON.
simid = simid_example # String | ID of the simulation
-compoundJobName = compoundJobName_example # String | Name of the compound job
try:
- # Add a sleep action to compound job
- api_response = api_instance.add_sleep_action(body, simid, compoundJobName)
+ # Create a workflow from a WfCommons JSON object.
+ api_response = api_instance.create_workflow_from_json(body, simid)
pprint(api_response)
except ApiException as e:
- print("Exception when calling WRENCHApi->addSleepAction: %s\n" % e)
+ print("Exception when calling WRENCHApi->createWorkflowFromJSON: %s\n" % e)
@@ -7547,7 +7029,7 @@ Parameters
-
+
@@ -7565,28 +7047,6 @@ Parameters
- compound_job_name*
-
-
-
-
-
-
-
- String
-
-
-
- Name of the compound job
-
-
-
- Required
-
-
-
-
-
@@ -7603,11 +7063,11 @@ Parameters
-
+
@@ -7642,14 +7102,14 @@ Status: 200 - OK
-
-
+
+
-
+
- Status: 404 - Job not found
-
-
-
-
-
-
Status: 405 - Invalid input
-
-
+
+
- advanceTime
- Retrieve the current simulated time.
+ destroyVM
+ Destroy a VM.
@@ -7717,32 +7169,31 @@ advanceTime
- /simulation/{simid}/advanceTime
+ /simulation/{simid}/cloud_compute_services/{service_name}/vms/{vm_name}/destroyVM
Usage and SDK Samples
-
- curl -X PUT\
+
+ curl -X POST\
-H "Accept: application/json"\
--H "Content-Type: application/json"\
-"https://wrench-project.org/v1/simulation/{simid}/advanceTime"
+"https://wrench-project.org/v1/simulation/{simid}/cloud_compute_services/{service_name}/vms/{vm_name}/destroyVM"
-
+
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
@@ -7756,51 +7207,55 @@ Usage and SDK Samples
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Simid_advanceTime_body body = ; // Simid_advanceTime_body | Input to start a new service.
String simid = simid_example; // String | ID of the simulation
+ String serviceName = serviceName_example; // String | The cloud compute service name
+ String vmName = vmName_example; // String | The VM name
try {
- GenericResponse result = apiInstance.advanceTime(body, simid);
+ GenericResponse result = apiInstance.destroyVM(simid, serviceName, vmName);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#advanceTime");
+ System.err.println("Exception when calling WRENCHApi#destroyVM");
e.printStackTrace();
}
}
}
-
+
import io.swagger.client.api.WRENCHApi;
public class WRENCHApiExample {
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Simid_advanceTime_body body = ; // Simid_advanceTime_body | Input to start a new service.
String simid = simid_example; // String | ID of the simulation
+ String serviceName = serviceName_example; // String | The cloud compute service name
+ String vmName = vmName_example; // String | The VM name
try {
- GenericResponse result = apiInstance.advanceTime(body, simid);
+ GenericResponse result = apiInstance.destroyVM(simid, serviceName, vmName);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#advanceTime");
+ System.err.println("Exception when calling WRENCHApi#destroyVM");
e.printStackTrace();
}
}
}
-
- Simid_advanceTime_body *body = ; // Input to start a new service.
-String *simid = simid_example; // ID of the simulation
+
+ String *simid = simid_example; // ID of the simulation
+String *serviceName = serviceName_example; // The cloud compute service name
+String *vmName = vmName_example; // The VM name
WRENCHApi *apiInstance = [[WRENCHApi alloc] init];
-// Retrieve the current simulated time.
-[apiInstance advanceTimeWith:body
- simid:simid
+// Destroy a VM.
+[apiInstance destroyVMWith:simid
+ serviceName:serviceName
+ vmName:vmName
completionHandler: ^(GenericResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
@@ -7812,12 +7267,13 @@ Usage and SDK Samples
-
+
var WrenchRestApi = require('wrench_rest_api');
var api = new WrenchRestApi.WRENCHApi()
-var body = ; // {{Simid_advanceTime_body}} Input to start a new service.
var simid = simid_example; // {{String}} ID of the simulation
+var serviceName = serviceName_example; // {{String}} The cloud compute service name
+var vmName = vmName_example; // {{String}} The VM name
var callback = function(error, data, response) {
if (error) {
@@ -7826,14 +7282,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.advanceTime(bodysimid, callback);
+api.destroyVM(simid, serviceName, vmName, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -7842,24 +7298,25 @@ Usage and SDK Samples
namespace Example
{
- public class advanceTimeExample
+ public class destroyVMExample
{
public void main()
{
var apiInstance = new WRENCHApi();
- var body = new Simid_advanceTime_body(); // Simid_advanceTime_body | Input to start a new service.
var simid = simid_example; // String | ID of the simulation
+ var serviceName = serviceName_example; // String | The cloud compute service name
+ var vmName = vmName_example; // String | The VM name
try
{
- // Retrieve the current simulated time.
- GenericResponse result = apiInstance.advanceTime(body, simid);
+ // Destroy a VM.
+ GenericResponse result = apiInstance.destroyVM(simid, serviceName, vmName);
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling WRENCHApi.advanceTime: " + e.Message );
+ Debug.Print("Exception when calling WRENCHApi.destroyVM: " + e.Message );
}
}
}
@@ -7867,42 +7324,44 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiWRENCHApi();
-$body = ; // Simid_advanceTime_body | Input to start a new service.
$simid = simid_example; // String | ID of the simulation
+$serviceName = serviceName_example; // String | The cloud compute service name
+$vmName = vmName_example; // String | The VM name
try {
- $result = $api_instance->advanceTime($body, $simid);
+ $result = $api_instance->destroyVM($simid, $serviceName, $vmName);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling WRENCHApi->advanceTime: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling WRENCHApi->destroyVM: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WRENCHApi;
my $api_instance = WWW::SwaggerClient::WRENCHApi->new();
-my $body = WWW::SwaggerClient::Object::Simid_advanceTime_body->new(); # Simid_advanceTime_body | Input to start a new service.
my $simid = simid_example; # String | ID of the simulation
+my $serviceName = serviceName_example; # String | The cloud compute service name
+my $vmName = vmName_example; # String | The VM name
eval {
- my $result = $api_instance->advanceTime(body => $body, simid => $simid);
+ my $result = $api_instance->destroyVM(simid => $simid, serviceName => $serviceName, vmName => $vmName);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling WRENCHApi->advanceTime: $@\n";
+ warn "Exception when calling WRENCHApi->destroyVM: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
@@ -7911,15 +7370,16 @@ Usage and SDK Samples
# create an instance of the API class
api_instance = swagger_client.WRENCHApi()
-body = # Simid_advanceTime_body | Input to start a new service.
simid = simid_example # String | ID of the simulation
+serviceName = serviceName_example # String | The cloud compute service name
+vmName = vmName_example # String | The VM name
try:
- # Retrieve the current simulated time.
- api_response = api_instance.advance_time(body, simid)
+ # Destroy a VM.
+ api_response = api_instance.destroy_vm(simid, serviceName, vmName)
pprint(api_response)
except ApiException as e:
- print("Exception when calling WRENCHApi->advanceTime: %s\n" % e)
+ print("Exception when calling WRENCHApi->destroyVM: %s\n" % e)
@@ -7935,7 +7395,7 @@ Parameters
-
+
@@ -7953,53 +7413,53 @@ Parameters
+ service_name*
+
+
+
+
+
+
+
+ String
+
+
+
+ The cloud compute service name
+
+
+
+ Required
+
+
+
+
+
+ vm_name*
+
+
+
+
+
+
+
+ String
+
+
+
+ The VM name
+
+
+
+ Required
+
+
+
+
+
-
-
- Body parameters
-
-
- Name
- Description
-
- body *
-
-
-
-
-
-
-
-
+
+
@@ -8008,14 +7468,14 @@ Status: 200 - OK
-
-
+
+
-
+
@@ -8063,11 +7523,11 @@ Status: 405 - Invalid input
-
-
+
+
- createCompoundJob
- Create a new compound job.
+ getAllHostnames
+ Retrieve the names of all hosts in the simulated platform.
@@ -8075,32 +7535,31 @@ createCompoundJob
- /simulation/{simid}/createCompoundJob
+ /simulation/{simid}/hostnames
Usage and SDK Samples
-
- curl -X POST\
+
+ curl -X GET\
-H "Accept: application/json"\
--H "Content-Type: application/json"\
-"https://wrench-project.org/v1/simulation/{simid}/createCompoundJob"
+"https://wrench-project.org/v1/simulation/{simid}/hostnames"
-
+
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
@@ -8114,52 +7573,48 @@ Usage and SDK Samples
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Simid_createCompoundJob_body body = ; // Simid_createCompoundJob_body | Input to create a new compound job
- String simid = simid_example; // String | ID of the simulation
+ String simid = simid_example; // String | ID of simulation
try {
- GenericResponse result = apiInstance.createCompoundJob(body, simid);
+ HostnameList result = apiInstance.getAllHostnames(simid);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#createCompoundJob");
+ System.err.println("Exception when calling WRENCHApi#getAllHostnames");
e.printStackTrace();
}
}
}
-
+
import io.swagger.client.api.WRENCHApi;
public class WRENCHApiExample {
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Simid_createCompoundJob_body body = ; // Simid_createCompoundJob_body | Input to create a new compound job
- String simid = simid_example; // String | ID of the simulation
+ String simid = simid_example; // String | ID of simulation
try {
- GenericResponse result = apiInstance.createCompoundJob(body, simid);
+ HostnameList result = apiInstance.getAllHostnames(simid);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#createCompoundJob");
+ System.err.println("Exception when calling WRENCHApi#getAllHostnames");
e.printStackTrace();
}
}
}
-
- Simid_createCompoundJob_body *body = ; // Input to create a new compound job
-String *simid = simid_example; // ID of the simulation
+
+ String *simid = simid_example; // ID of simulation
WRENCHApi *apiInstance = [[WRENCHApi alloc] init];
-// Create a new compound job.
-[apiInstance createCompoundJobWith:body
- simid:simid
- completionHandler: ^(GenericResponse output, NSError* error) {
+// Retrieve the names of all hosts in the simulated platform.
+[apiInstance getAllHostnamesWith:simid
+ completionHandler: ^(HostnameList output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -8170,12 +7625,11 @@ Usage and SDK Samples
-
+
var WrenchRestApi = require('wrench_rest_api');
var api = new WrenchRestApi.WRENCHApi()
-var body = ; // {{Simid_createCompoundJob_body}} Input to create a new compound job
-var simid = simid_example; // {{String}} ID of the simulation
+var simid = simid_example; // {{String}} ID of simulation
var callback = function(error, data, response) {
if (error) {
@@ -8184,14 +7638,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.createCompoundJob(bodysimid, callback);
+api.getAllHostnames(simid, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -8200,24 +7654,23 @@ Usage and SDK Samples
namespace Example
{
- public class createCompoundJobExample
+ public class getAllHostnamesExample
{
public void main()
{
var apiInstance = new WRENCHApi();
- var body = new Simid_createCompoundJob_body(); // Simid_createCompoundJob_body | Input to create a new compound job
- var simid = simid_example; // String | ID of the simulation
+ var simid = simid_example; // String | ID of simulation
try
{
- // Create a new compound job.
- GenericResponse result = apiInstance.createCompoundJob(body, simid);
+ // Retrieve the names of all hosts in the simulated platform.
+ HostnameList result = apiInstance.getAllHostnames(simid);
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling WRENCHApi.createCompoundJob: " + e.Message );
+ Debug.Print("Exception when calling WRENCHApi.getAllHostnames: " + e.Message );
}
}
}
@@ -8225,42 +7678,40 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiWRENCHApi();
-$body = ; // Simid_createCompoundJob_body | Input to create a new compound job
-$simid = simid_example; // String | ID of the simulation
+$simid = simid_example; // String | ID of simulation
try {
- $result = $api_instance->createCompoundJob($body, $simid);
+ $result = $api_instance->getAllHostnames($simid);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling WRENCHApi->createCompoundJob: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling WRENCHApi->getAllHostnames: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WRENCHApi;
my $api_instance = WWW::SwaggerClient::WRENCHApi->new();
-my $body = WWW::SwaggerClient::Object::Simid_createCompoundJob_body->new(); # Simid_createCompoundJob_body | Input to create a new compound job
-my $simid = simid_example; # String | ID of the simulation
+my $simid = simid_example; # String | ID of simulation
eval {
- my $result = $api_instance->createCompoundJob(body => $body, simid => $simid);
+ my $result = $api_instance->getAllHostnames(simid => $simid);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling WRENCHApi->createCompoundJob: $@\n";
+ warn "Exception when calling WRENCHApi->getAllHostnames: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
@@ -8269,15 +7720,14 @@ Usage and SDK Samples
# create an instance of the API class
api_instance = swagger_client.WRENCHApi()
-body = # Simid_createCompoundJob_body | Input to create a new compound job
-simid = simid_example # String | ID of the simulation
+simid = simid_example # String | ID of simulation
try:
- # Create a new compound job.
- api_response = api_instance.create_compound_job(body, simid)
+ # Retrieve the names of all hosts in the simulated platform.
+ api_response = api_instance.get_all_hostnames(simid)
pprint(api_response)
except ApiException as e:
- print("Exception when calling WRENCHApi->createCompoundJob: %s\n" % e)
+ print("Exception when calling WRENCHApi->getAllHostnames: %s\n" % e)
@@ -8293,7 +7743,7 @@ Parameters
-
+
@@ -8301,7 +7751,7 @@ Parameters
- ID of the simulation
+ ID of simulation
@@ -8314,50 +7764,6 @@ Parameters
- Body parameters
-
-
- Name
- Description
-
- body *
-
-
-
-
-
-
-
-
@@ -8366,14 +7772,14 @@ Status: 200 - OK
-
-
+
+
-
+
@@ -8421,11 +7827,11 @@ Status: 405 - Invalid input
-
-
+
+
- createFileCopyAtStorageService
- Create, ex nihilo, a copy of a file copy at a storage service.
+ getCoreCounts
+ Returns the core counts for each host managed by the compute service.
@@ -8433,32 +7839,31 @@ createFileCopyAtStorageService
- /simulation/{simid}/storage_services/{service_name}/createFileCopy
+ /simulation/{simid}/compute_services/{service_name}/coreCounts
Usage and SDK Samples
-
- curl -X POST\
+
+ curl -X GET\
-H "Accept: application/json"\
--H "Content-Type: application/json"\
-"https://wrench-project.org/v1/simulation/{simid}/storage_services/{service_name}/createFileCopy"
+"https://wrench-project.org/v1/simulation/{simid}/compute_services/{service_name}/coreCounts"
-
+
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
@@ -8472,56 +7877,52 @@ Usage and SDK Samples
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Service_name_createFileCopy_body body = ; // Service_name_createFileCopy_body | Input to start a new service.
String simid = simid_example; // String | ID of the simulation
- String serviceName = serviceName_example; // String | The storage service name
+ String serviceName = serviceName_example; // String | The compute service name
try {
- GenericResponse result = apiInstance.createFileCopyAtStorageService(body, simid, serviceName);
+ inline_response_200_1 result = apiInstance.getCoreCounts(simid, serviceName);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#createFileCopyAtStorageService");
+ System.err.println("Exception when calling WRENCHApi#getCoreCounts");
e.printStackTrace();
}
}
}
-
+
import io.swagger.client.api.WRENCHApi;
public class WRENCHApiExample {
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
- Service_name_createFileCopy_body body = ; // Service_name_createFileCopy_body | Input to start a new service.
String simid = simid_example; // String | ID of the simulation
- String serviceName = serviceName_example; // String | The storage service name
+ String serviceName = serviceName_example; // String | The compute service name
try {
- GenericResponse result = apiInstance.createFileCopyAtStorageService(body, simid, serviceName);
+ inline_response_200_1 result = apiInstance.getCoreCounts(simid, serviceName);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling WRENCHApi#createFileCopyAtStorageService");
+ System.err.println("Exception when calling WRENCHApi#getCoreCounts");
e.printStackTrace();
}
}
}
-
- Service_name_createFileCopy_body *body = ; // Input to start a new service.
-String *simid = simid_example; // ID of the simulation
-String *serviceName = serviceName_example; // The storage service name
+
+ String *simid = simid_example; // ID of the simulation
+String *serviceName = serviceName_example; // The compute service name
WRENCHApi *apiInstance = [[WRENCHApi alloc] init];
-// Create, ex nihilo, a copy of a file copy at a storage service.
-[apiInstance createFileCopyAtStorageServiceWith:body
- simid:simid
+// Returns the core counts for each host managed by the compute service.
+[apiInstance getCoreCountsWith:simid
serviceName:serviceName
- completionHandler: ^(GenericResponse output, NSError* error) {
+ completionHandler: ^(inline_response_200_1 output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
@@ -8532,13 +7933,12 @@ Usage and SDK Samples
-
+
var WrenchRestApi = require('wrench_rest_api');
var api = new WrenchRestApi.WRENCHApi()
-var body = ; // {{Service_name_createFileCopy_body}} Input to start a new service.
var simid = simid_example; // {{String}} ID of the simulation
-var serviceName = serviceName_example; // {{String}} The storage service name
+var serviceName = serviceName_example; // {{String}} The compute service name
var callback = function(error, data, response) {
if (error) {
@@ -8547,14 +7947,14 @@ Usage and SDK Samples
console.log('API called successfully. Returned data: ' + data);
}
};
-api.createFileCopyAtStorageService(bodysimidserviceName, callback);
+api.getCoreCounts(simid, serviceName, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -8563,25 +7963,24 @@ Usage and SDK Samples
namespace Example
{
- public class createFileCopyAtStorageServiceExample
+ public class getCoreCountsExample
{
public void main()
{
var apiInstance = new WRENCHApi();
- var body = new Service_name_createFileCopy_body(); // Service_name_createFileCopy_body | Input to start a new service.
var simid = simid_example; // String | ID of the simulation
- var serviceName = serviceName_example; // String | The storage service name
+ var serviceName = serviceName_example; // String | The compute service name
try
{
- // Create, ex nihilo, a copy of a file copy at a storage service.
- GenericResponse result = apiInstance.createFileCopyAtStorageService(body, simid, serviceName);
+ // Returns the core counts for each host managed by the compute service.
+ inline_response_200_1 result = apiInstance.getCoreCounts(simid, serviceName);
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling WRENCHApi.createFileCopyAtStorageService: " + e.Message );
+ Debug.Print("Exception when calling WRENCHApi.getCoreCounts: " + e.Message );
}
}
}
@@ -8589,44 +7988,42 @@ Usage and SDK Samples
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiWRENCHApi();
-$body = ; // Service_name_createFileCopy_body | Input to start a new service.
$simid = simid_example; // String | ID of the simulation
-$serviceName = serviceName_example; // String | The storage service name
+$serviceName = serviceName_example; // String | The compute service name
try {
- $result = $api_instance->createFileCopyAtStorageService($body, $simid, $serviceName);
+ $result = $api_instance->getCoreCounts($simid, $serviceName);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling WRENCHApi->createFileCopyAtStorageService: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling WRENCHApi->getCoreCounts: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WRENCHApi;
my $api_instance = WWW::SwaggerClient::WRENCHApi->new();
-my $body = WWW::SwaggerClient::Object::Service_name_createFileCopy_body->new(); # Service_name_createFileCopy_body | Input to start a new service.
my $simid = simid_example; # String | ID of the simulation
-my $serviceName = serviceName_example; # String | The storage service name
+my $serviceName = serviceName_example; # String | The compute service name
eval {
- my $result = $api_instance->createFileCopyAtStorageService(body => $body, simid => $simid, serviceName => $serviceName);
+ my $result = $api_instance->getCoreCounts(simid => $simid, serviceName => $serviceName);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling WRENCHApi->createFileCopyAtStorageService: $@\n";
+ warn "Exception when calling WRENCHApi->getCoreCounts: $@\n";
}
-
+