compareModelwithTargetVersion
Find added and deleted resources of target model for the e2eserviceInstance on a given serviceId
/onap/so/infra/e2eServiceInstances/{version}/{serviceId}/modeldifferences
Usage and SDK Samples
curl -X POST "https://localhost/onap/so/infra/e2eServiceInstances/{version}/{serviceId}/modeldifferences"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.E2eServiceInstancesApi;
import java.io.File;
import java.util.*;
public class E2eServiceInstancesApiExample {
public static void main(String[] args) {
E2eServiceInstancesApi apiInstance = new E2eServiceInstancesApi();
String serviceId = serviceId_example; // String |
String version = version_example; // String |
String body = body_example; // String |
try {
apiInstance.compareModelwithTargetVersion(serviceId, version, body);
} catch (ApiException e) {
System.err.println("Exception when calling E2eServiceInstancesApi#compareModelwithTargetVersion");
e.printStackTrace();
}
}
}
import io.swagger.client.api.E2eServiceInstancesApi;
public class E2eServiceInstancesApiExample {
public static void main(String[] args) {
E2eServiceInstancesApi apiInstance = new E2eServiceInstancesApi();
String serviceId = serviceId_example; // String |
String version = version_example; // String |
String body = body_example; // String |
try {
apiInstance.compareModelwithTargetVersion(serviceId, version, body);
} catch (ApiException e) {
System.err.println("Exception when calling E2eServiceInstancesApi#compareModelwithTargetVersion");
e.printStackTrace();
}
}
}
String *serviceId = serviceId_example; //
String *version = version_example; //
String *body = body_example; // (optional)
E2eServiceInstancesApi *apiInstance = [[E2eServiceInstancesApi alloc] init];
// Find added and deleted resources of target model for the e2eserviceInstance on a given serviceId
[apiInstance compareModelwithTargetVersionWith:serviceId
version:version
body:body
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var SoCasablancaApIs = require('so_casablanca_ap_is');
var api = new SoCasablancaApIs.E2eServiceInstancesApi()
var serviceId = serviceId_example; // {String}
var version = version_example; // {String}
var opts = {
'body': body_example // {String}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.compareModelwithTargetVersion(serviceId, version, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class compareModelwithTargetVersionExample
{
public void main()
{
var apiInstance = new E2eServiceInstancesApi();
var serviceId = serviceId_example; // String |
var version = version_example; // String |
var body = body_example; // String | (optional)
try
{
// Find added and deleted resources of target model for the e2eserviceInstance on a given serviceId
apiInstance.compareModelwithTargetVersion(serviceId, version, body);
}
catch (Exception e)
{
Debug.Print("Exception when calling E2eServiceInstancesApi.compareModelwithTargetVersion: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\E2eServiceInstancesApi();
$serviceId = serviceId_example; // String |
$version = version_example; // String |
$body = body_example; // String |
try {
$api_instance->compareModelwithTargetVersion($serviceId, $version, $body);
} catch (Exception $e) {
echo 'Exception when calling E2eServiceInstancesApi->compareModelwithTargetVersion: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::E2eServiceInstancesApi;
my $api_instance = WWW::SwaggerClient::E2eServiceInstancesApi->new();
my $serviceId = serviceId_example; # String |
my $version = version_example; # String |
my $body = WWW::SwaggerClient::Object::String->new(); # String |
eval {
$api_instance->compareModelwithTargetVersion(serviceId => $serviceId, version => $version, body => $body);
};
if ($@) {
warn "Exception when calling E2eServiceInstancesApi->compareModelwithTargetVersion: $@\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.E2eServiceInstancesApi()
serviceId = serviceId_example # String |
version = version_example # String |
body = body_example # String | (optional)
try:
# Find added and deleted resources of target model for the e2eserviceInstance on a given serviceId
api_instance.compare_modelwith_target_version(serviceId, version, body=body)
except ApiException as e:
print("Exception when calling E2eServiceInstancesApi->compareModelwithTargetVersion: %s\n" % e)
Parameters
Name | Description |
---|---|
serviceId* |
String
Required
|
version* |
String
Required
|
Name | Description |
---|---|
body |