addActionDependency
Add a dependency between two actions in a compound job.
/simulation/{simid}/compoundJobs/{compound_job_name}/addActionDependency
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}/addActionDependency"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WRENCHApi;
import java.io.File;
import java.util.*;
public class WRENCHApiExample {
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
Compound_job_name_addActionDependency_body body = ; // Compound_job_name_addActionDependency_body | Input to create an action dependency.
String simid = simid_example; // String | ID of the simulation
String compoundJobName = compoundJobName_example; // String | the name of the compound job
try {
GenericResponse result = apiInstance.addActionDependency(body, simid, compoundJobName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WRENCHApi#addActionDependency");
e.printStackTrace();
}
}
}
import io.swagger.client.api.WRENCHApi;
public class WRENCHApiExample {
public static void main(String[] args) {
WRENCHApi apiInstance = new WRENCHApi();
Compound_job_name_addActionDependency_body body = ; // Compound_job_name_addActionDependency_body | Input to create an action dependency.
String simid = simid_example; // String | ID of the simulation
String compoundJobName = compoundJobName_example; // String | the name of the compound job
try {
GenericResponse result = apiInstance.addActionDependency(body, simid, compoundJobName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WRENCHApi#addActionDependency");
e.printStackTrace();
}
}
}
Compound_job_name_addActionDependency_body *body = ; // Input to create an action dependency.
String *simid = simid_example; // ID of the simulation
String *compoundJobName = compoundJobName_example; // the name of the compound job
WRENCHApi *apiInstance = [[WRENCHApi alloc] init];
// Add a dependency between two actions in a compound job.
[apiInstance addActionDependencyWith:body
simid:simid
compoundJobName:compoundJobName
completionHandler: ^(GenericResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var WrenchRestApi = require('wrench_rest_api');
var api = new WrenchRestApi.WRENCHApi()
var body = ; // {{Compound_job_name_addActionDependency_body}} Input to create an action dependency.
var simid = simid_example; // {{String}} ID of the simulation
var compoundJobName = compoundJobName_example; // {{String}} the name of the compound job
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.addActionDependency(bodysimidcompoundJobName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class addActionDependencyExample
{
public void main()
{
var apiInstance = new WRENCHApi();
var body = new Compound_job_name_addActionDependency_body(); // Compound_job_name_addActionDependency_body | Input to create an action dependency.
var simid = simid_example; // String | ID of the simulation
var compoundJobName = compoundJobName_example; // String | the name of the compound job
try
{
// Add a dependency between two actions in a compound job.
GenericResponse result = apiInstance.addActionDependency(body, simid, compoundJobName);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling WRENCHApi.addActionDependency: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiWRENCHApi();
$body = ; // Compound_job_name_addActionDependency_body | Input to create an action dependency.
$simid = simid_example; // String | ID of the simulation
$compoundJobName = compoundJobName_example; // String | the name of the compound job
try {
$result = $api_instance->addActionDependency($body, $simid, $compoundJobName);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WRENCHApi->addActionDependency: ', $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_addActionDependency_body->new(); # Compound_job_name_addActionDependency_body | Input to create an action dependency.
my $simid = simid_example; # String | ID of the simulation
my $compoundJobName = compoundJobName_example; # String | the name of the compound job
eval {
my $result = $api_instance->addActionDependency(body => $body, simid => $simid, compoundJobName => $compoundJobName);
print Dumper($result);
};
if ($@) {
warn "Exception when calling WRENCHApi->addActionDependency: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.WRENCHApi()
body = # Compound_job_name_addActionDependency_body | Input to create an action dependency.
simid = simid_example # String | ID of the simulation
compoundJobName = compoundJobName_example # String | the name of the compound job
try:
# Add a dependency between two actions in a compound job.
api_response = api_instance.add_action_dependency(body, simid, compoundJobName)
pprint(api_response)
except ApiException as e:
print("Exception when calling WRENCHApi->addActionDependency: %s\n" % e)
Parameters
Name | Description |
---|---|
simid* |
String
ID of the simulation
Required
|
compound_job_name* |
String
the name of the compound job
Required
|
Name | Description |
---|---|
body * |