instanceConfig
+instanceConfigGet
Get the Preferences, Presets and Commands of the MainSettings saved by Qt
+Get the Preferences, Presets and Commands of the MainSettings saved by Qt. Supports config backup.
/sdrangel/config
@@ -20491,24 +20494,24 @@ except ApiException as e:
Usage and SDK Samples
curl -X GET "http://localhost/sdrangel/config"
import SWGSDRangel.*;
import SWGSDRangel.auth.*;
import SWGSDRangel.model.*;
@@ -20523,17 +20526,17 @@ public class InstanceApiExample {
InstanceApi apiInstance = new InstanceApi();
try {
- InstanceConfigResponse result = apiInstance.instanceConfig();
+ InstanceConfigResponse result = apiInstance.instanceConfigGet();
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling InstanceApi#instanceConfig");
+ System.err.println("Exception when calling InstanceApi#instanceConfigGet");
e.printStackTrace();
}
}
}
import SWGSDRangel.api.InstanceApi;
public class InstanceApiExample {
@@ -20541,24 +20544,24 @@ public class InstanceApiExample {
public static void main(String[] args) {
InstanceApi apiInstance = new InstanceApi();
try {
- InstanceConfigResponse result = apiInstance.instanceConfig();
+ InstanceConfigResponse result = apiInstance.instanceConfigGet();
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling InstanceApi#instanceConfig");
+ System.err.println("Exception when calling InstanceApi#instanceConfigGet");
e.printStackTrace();
}
}
}
InstanceApi *apiInstance = [[InstanceApi alloc] init];
-[apiInstance instanceConfigWithCompletionHandler:
+[apiInstance instanceConfigGetWithCompletionHandler:
^(InstanceConfigResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
@@ -20570,7 +20573,7 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
var SdRangel = require('sd_rangel');
var api = new SdRangel.InstanceApi()
@@ -20582,14 +20585,14 @@ var callback = function(error, data, response) {
console.log('API called successfully. Returned data: ' + data);
}
};
-api.instanceConfig(callback);
+api.instanceConfigGet(callback);
using System;
using System.Diagnostics;
using SWGSDRangel.Api;
@@ -20598,7 +20601,7 @@ using SWGSDRangel.Model;
namespace Example
{
- public class instanceConfigExample
+ public class instanceConfigGetExample
{
public void main()
{
@@ -20607,12 +20610,12 @@ namespace Example
try
{
- InstanceConfigResponse result = apiInstance.instanceConfig();
+ InstanceConfigResponse result = apiInstance.instanceConfigGet();
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling InstanceApi.instanceConfig: " + e.Message );
+ Debug.Print("Exception when calling InstanceApi.instanceConfigGet: " + e.Message );
}
}
}
@@ -20620,22 +20623,22 @@ namespace Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\InstanceApi();
try {
- $result = $api_instance->instanceConfig();
+ $result = $api_instance->instanceConfigGet();
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling InstanceApi->instanceConfig: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling InstanceApi->instanceConfigGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use SWGSDRangel::Configuration;
use SWGSDRangel::InstanceApi;
@@ -20643,15 +20646,15 @@ use SWGSDRangel::InstanceApi;
my $api_instance = SWGSDRangel::InstanceApi->new();
eval {
- my $result = $api_instance->instanceConfig();
+ my $result = $api_instance->instanceConfigGet();
print Dumper($result);
};
if ($@) {
- warn "Exception when calling InstanceApi->instanceConfig: $@\n";
+ warn "Exception when calling InstanceApi->instanceConfigGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_sdrangel
@@ -20662,10 +20665,10 @@ from pprint import pprint
api_instance = swagger_sdrangel.InstanceApi()
try:
- api_response = api_instance.instance_config()
+ api_response = api_instance.instance_config_get()
pprint(api_response)
except ApiException as e:
- print("Exception when calling InstanceApi->instanceConfig: %s\n" % e)
+ print("Exception when calling InstanceApi->instanceConfigGet: %s\n" % e)
+
instanceConfigPut
+ +Replace the Preferences, Presets and Commands of the MainSettings object with the contents of the payload. Supports config restore.
+ ++
/sdrangel/config
+ +
Usage and SDK Samples
+ + + +curl -X PUT "http://localhost/sdrangel/config"
+ import SWGSDRangel.*;
+import SWGSDRangel.auth.*;
+import SWGSDRangel.model.*;
+import SWGSDRangel.api.InstanceApi;
+
+import java.io.File;
+import java.util.*;
+
+public class InstanceApiExample {
+
+ public static void main(String[] args) {
+
+ InstanceApi apiInstance = new InstanceApi();
+ InstanceConfigResponse body = ; // InstanceConfigResponse | Config information
+ try {
+ SuccessResponse result = apiInstance.instanceConfigPut(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling InstanceApi#instanceConfigPut");
+ e.printStackTrace();
+ }
+ }
+}
+ import SWGSDRangel.api.InstanceApi;
+
+public class InstanceApiExample {
+
+ public static void main(String[] args) {
+ InstanceApi apiInstance = new InstanceApi();
+ InstanceConfigResponse body = ; // InstanceConfigResponse | Config information
+ try {
+ SuccessResponse result = apiInstance.instanceConfigPut(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling InstanceApi#instanceConfigPut");
+ e.printStackTrace();
+ }
+ }
+}
+ InstanceConfigResponse *body = ; // Config information
+
+InstanceApi *apiInstance = [[InstanceApi alloc] init];
+
+[apiInstance instanceConfigPutWith:body
+ completionHandler: ^(SuccessResponse output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+ var SdRangel = require('sd_rangel');
+
+var api = new SdRangel.InstanceApi()
+
+var body = ; // {InstanceConfigResponse} Config information
+
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.instanceConfigPut(body, callback);
+
+ using System;
+using System.Diagnostics;
+using SWGSDRangel.Api;
+using SWGSDRangel.Client;
+using SWGSDRangel.Model;
+
+namespace Example
+{
+ public class instanceConfigPutExample
+ {
+ public void main()
+ {
+
+ var apiInstance = new InstanceApi();
+ var body = new InstanceConfigResponse(); // InstanceConfigResponse | Config information
+
+ try
+ {
+ SuccessResponse result = apiInstance.instanceConfigPut(body);
+ Debug.WriteLine(result);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling InstanceApi.instanceConfigPut: " + e.Message );
+ }
+ }
+ }
+}
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\Api\InstanceApi();
+$body = ; // InstanceConfigResponse | Config information
+
+try {
+ $result = $api_instance->instanceConfigPut($body);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling InstanceApi->instanceConfigPut: ', $e->getMessage(), PHP_EOL;
+}
+?>
+ use Data::Dumper;
+use SWGSDRangel::Configuration;
+use SWGSDRangel::InstanceApi;
+
+my $api_instance = SWGSDRangel::InstanceApi->new();
+my $body = SWGSDRangel::Object::InstanceConfigResponse->new(); # InstanceConfigResponse | Config information
+
+eval {
+ my $result = $api_instance->instanceConfigPut(body => $body);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling InstanceApi->instanceConfigPut: $@\n";
+}
+ from __future__ import print_statement
+import time
+import swagger_sdrangel
+from swagger_sdrangel.rest import ApiException
+from pprint import pprint
+
+# create an instance of the API class
+api_instance = swagger_sdrangel.InstanceApi()
+body = # InstanceConfigResponse | Config information
+
+try:
+ api_response = api_instance.instance_config_put(body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling InstanceApi->instanceConfigPut: %s\n" % e)
+ Parameters
+ + + +Name | +Description | +
---|---|
body * | ++ + + + + | +
Responses
+Status: 200 - Success
+ + + +Status: 500 - Error
+ + + +Status: 501 - Function not implemented
+ + + +-
instanceConfig
+instanceConfigGet
Get the Preferences, Presets and Commands of the MainSettings saved by Qt
+Get the Preferences, Presets and Commands of the MainSettings saved by Qt. Supports config backup.
/sdrangel/config
@@ -20491,24 +20494,24 @@ except ApiException as e:
Usage and SDK Samples
curl -X GET "http://localhost/sdrangel/config"
import SWGSDRangel.*;
import SWGSDRangel.auth.*;
import SWGSDRangel.model.*;
@@ -20523,17 +20526,17 @@ public class InstanceApiExample {
InstanceApi apiInstance = new InstanceApi();
try {
- InstanceConfigResponse result = apiInstance.instanceConfig();
+ InstanceConfigResponse result = apiInstance.instanceConfigGet();
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling InstanceApi#instanceConfig");
+ System.err.println("Exception when calling InstanceApi#instanceConfigGet");
e.printStackTrace();
}
}
}
import SWGSDRangel.api.InstanceApi;
public class InstanceApiExample {
@@ -20541,24 +20544,24 @@ public class InstanceApiExample {
public static void main(String[] args) {
InstanceApi apiInstance = new InstanceApi();
try {
- InstanceConfigResponse result = apiInstance.instanceConfig();
+ InstanceConfigResponse result = apiInstance.instanceConfigGet();
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling InstanceApi#instanceConfig");
+ System.err.println("Exception when calling InstanceApi#instanceConfigGet");
e.printStackTrace();
}
}
}
InstanceApi *apiInstance = [[InstanceApi alloc] init];
-[apiInstance instanceConfigWithCompletionHandler:
+[apiInstance instanceConfigGetWithCompletionHandler:
^(InstanceConfigResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
@@ -20570,7 +20573,7 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
var SdRangel = require('sd_rangel');
var api = new SdRangel.InstanceApi()
@@ -20582,14 +20585,14 @@ var callback = function(error, data, response) {
console.log('API called successfully. Returned data: ' + data);
}
};
-api.instanceConfig(callback);
+api.instanceConfigGet(callback);
using System;
using System.Diagnostics;
using SWGSDRangel.Api;
@@ -20598,7 +20601,7 @@ using SWGSDRangel.Model;
namespace Example
{
- public class instanceConfigExample
+ public class instanceConfigGetExample
{
public void main()
{
@@ -20607,12 +20610,12 @@ namespace Example
try
{
- InstanceConfigResponse result = apiInstance.instanceConfig();
+ InstanceConfigResponse result = apiInstance.instanceConfigGet();
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling InstanceApi.instanceConfig: " + e.Message );
+ Debug.Print("Exception when calling InstanceApi.instanceConfigGet: " + e.Message );
}
}
}
@@ -20620,22 +20623,22 @@ namespace Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\InstanceApi();
try {
- $result = $api_instance->instanceConfig();
+ $result = $api_instance->instanceConfigGet();
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling InstanceApi->instanceConfig: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling InstanceApi->instanceConfigGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use SWGSDRangel::Configuration;
use SWGSDRangel::InstanceApi;
@@ -20643,15 +20646,15 @@ use SWGSDRangel::InstanceApi;
my $api_instance = SWGSDRangel::InstanceApi->new();
eval {
- my $result = $api_instance->instanceConfig();
+ my $result = $api_instance->instanceConfigGet();
print Dumper($result);
};
if ($@) {
- warn "Exception when calling InstanceApi->instanceConfig: $@\n";
+ warn "Exception when calling InstanceApi->instanceConfigGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_sdrangel
@@ -20662,10 +20665,10 @@ from pprint import pprint
api_instance = swagger_sdrangel.InstanceApi()
try:
- api_response = api_instance.instance_config()
+ api_response = api_instance.instance_config_get()
pprint(api_response)
except ApiException as e:
- print("Exception when calling InstanceApi->instanceConfig: %s\n" % e)
+ print("Exception when calling InstanceApi->instanceConfigGet: %s\n" % e)
+
instanceConfigPut
+ +Replace the Preferences, Presets and Commands of the MainSettings object with the contents of the payload. Supports config restore.
+ ++
/sdrangel/config
+ +
Usage and SDK Samples
+ + + +curl -X PUT "http://localhost/sdrangel/config"
+ import SWGSDRangel.*;
+import SWGSDRangel.auth.*;
+import SWGSDRangel.model.*;
+import SWGSDRangel.api.InstanceApi;
+
+import java.io.File;
+import java.util.*;
+
+public class InstanceApiExample {
+
+ public static void main(String[] args) {
+
+ InstanceApi apiInstance = new InstanceApi();
+ InstanceConfigResponse body = ; // InstanceConfigResponse | Config information
+ try {
+ SuccessResponse result = apiInstance.instanceConfigPut(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling InstanceApi#instanceConfigPut");
+ e.printStackTrace();
+ }
+ }
+}
+ import SWGSDRangel.api.InstanceApi;
+
+public class InstanceApiExample {
+
+ public static void main(String[] args) {
+ InstanceApi apiInstance = new InstanceApi();
+ InstanceConfigResponse body = ; // InstanceConfigResponse | Config information
+ try {
+ SuccessResponse result = apiInstance.instanceConfigPut(body);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling InstanceApi#instanceConfigPut");
+ e.printStackTrace();
+ }
+ }
+}
+ InstanceConfigResponse *body = ; // Config information
+
+InstanceApi *apiInstance = [[InstanceApi alloc] init];
+
+[apiInstance instanceConfigPutWith:body
+ completionHandler: ^(SuccessResponse output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+ var SdRangel = require('sd_rangel');
+
+var api = new SdRangel.InstanceApi()
+
+var body = ; // {InstanceConfigResponse} Config information
+
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.instanceConfigPut(body, callback);
+
+ using System;
+using System.Diagnostics;
+using SWGSDRangel.Api;
+using SWGSDRangel.Client;
+using SWGSDRangel.Model;
+
+namespace Example
+{
+ public class instanceConfigPutExample
+ {
+ public void main()
+ {
+
+ var apiInstance = new InstanceApi();
+ var body = new InstanceConfigResponse(); // InstanceConfigResponse | Config information
+
+ try
+ {
+ SuccessResponse result = apiInstance.instanceConfigPut(body);
+ Debug.WriteLine(result);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling InstanceApi.instanceConfigPut: " + e.Message );
+ }
+ }
+ }
+}
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\Api\InstanceApi();
+$body = ; // InstanceConfigResponse | Config information
+
+try {
+ $result = $api_instance->instanceConfigPut($body);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling InstanceApi->instanceConfigPut: ', $e->getMessage(), PHP_EOL;
+}
+?>
+ use Data::Dumper;
+use SWGSDRangel::Configuration;
+use SWGSDRangel::InstanceApi;
+
+my $api_instance = SWGSDRangel::InstanceApi->new();
+my $body = SWGSDRangel::Object::InstanceConfigResponse->new(); # InstanceConfigResponse | Config information
+
+eval {
+ my $result = $api_instance->instanceConfigPut(body => $body);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling InstanceApi->instanceConfigPut: $@\n";
+}
+ from __future__ import print_statement
+import time
+import swagger_sdrangel
+from swagger_sdrangel.rest import ApiException
+from pprint import pprint
+
+# create an instance of the API class
+api_instance = swagger_sdrangel.InstanceApi()
+body = # InstanceConfigResponse | Config information
+
+try:
+ api_response = api_instance.instance_config_put(body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling InstanceApi->instanceConfigPut: %s\n" % e)
+ Parameters
+ + + +Name | +Description | +
---|---|
body * | ++ + + + + | +