diff --git a/sdrbase/resources/webapi/doc/html2/index.html b/sdrbase/resources/webapi/doc/html2/index.html index 71d0f3a38..e96fb7aeb 100644 --- a/sdrbase/resources/webapi/doc/html2/index.html +++ b/sdrbase/resources/webapi/doc/html2/index.html @@ -4000,6 +4000,12 @@ margin-bottom: 20px; +
  • + daemonInstanceLoggingGet +
  • +
  • + daemonInstanceLoggingPut +
  • daemonInstanceSummary
  • @@ -4191,6 +4197,771 @@ margin-bottom: 20px;

    Daemon

    +
    +
    +
    +

    daemonInstanceLoggingGet

    +

    +
    +
    +
    +

    +

    Get logging information for this instance

    +

    +
    +
    /sdrdaemon/logging
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET "http://localhost/sdrdaemon/logging"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.DaemonApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DaemonApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        DaemonApi apiInstance = new DaemonApi();
    +        try {
    +            LoggingInfo result = apiInstance.daemonInstanceLoggingGet();
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DaemonApi#daemonInstanceLoggingGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.DaemonApi;
    +
    +public class DaemonApiExample {
    +
    +    public static void main(String[] args) {
    +        DaemonApi apiInstance = new DaemonApi();
    +        try {
    +            LoggingInfo result = apiInstance.daemonInstanceLoggingGet();
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DaemonApi#daemonInstanceLoggingGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    
    +DaemonApi *apiInstance = [[DaemonApi alloc] init];
    +
    +[apiInstance daemonInstanceLoggingGetWithCompletionHandler: 
    +              ^(LoggingInfo output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.DaemonApi()
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.daemonInstanceLoggingGet(callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class daemonInstanceLoggingGetExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new DaemonApi();
    +
    +            try
    +            {
    +                LoggingInfo result = apiInstance.daemonInstanceLoggingGet();
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DaemonApi.daemonInstanceLoggingGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\DaemonApi();
    +
    +try {
    +    $result = $api_instance->daemonInstanceLoggingGet();
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DaemonApi->daemonInstanceLoggingGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::DaemonApi;
    +
    +my $api_instance = SWGSDRangel::DaemonApi->new();
    +
    +eval { 
    +    my $result = $api_instance->daemonInstanceLoggingGet();
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling DaemonApi->daemonInstanceLoggingGet: $@\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.DaemonApi()
    +
    +try: 
    +    api_response = api_instance.daemon_instance_logging_get()
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling DaemonApi->daemonInstanceLoggingGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + + +

    Responses

    +

    Status: 200 - Success

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +

    daemonInstanceLoggingPut

    +

    +
    +
    +
    +

    +

    Change logging parmeters for this instance

    +

    +
    +
    /sdrdaemon/logging
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X PUT "http://localhost/sdrdaemon/logging"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.DaemonApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DaemonApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        DaemonApi apiInstance = new DaemonApi();
    +        LoggingInfo body = ; // LoggingInfo | Logging information
    +        try {
    +            LoggingInfo result = apiInstance.daemonInstanceLoggingPut(body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DaemonApi#daemonInstanceLoggingPut");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.DaemonApi;
    +
    +public class DaemonApiExample {
    +
    +    public static void main(String[] args) {
    +        DaemonApi apiInstance = new DaemonApi();
    +        LoggingInfo body = ; // LoggingInfo | Logging information
    +        try {
    +            LoggingInfo result = apiInstance.daemonInstanceLoggingPut(body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DaemonApi#daemonInstanceLoggingPut");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    LoggingInfo *body = ; // Logging information
    +
    +DaemonApi *apiInstance = [[DaemonApi alloc] init];
    +
    +[apiInstance daemonInstanceLoggingPutWith:body
    +              completionHandler: ^(LoggingInfo output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.DaemonApi()
    +
    +var body = ; // {LoggingInfo} Logging information
    +
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.daemonInstanceLoggingPut(body, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class daemonInstanceLoggingPutExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new DaemonApi();
    +            var body = new LoggingInfo(); // LoggingInfo | Logging information
    +
    +            try
    +            {
    +                LoggingInfo result = apiInstance.daemonInstanceLoggingPut(body);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DaemonApi.daemonInstanceLoggingPut: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\DaemonApi();
    +$body = ; // LoggingInfo | Logging information
    +
    +try {
    +    $result = $api_instance->daemonInstanceLoggingPut($body);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DaemonApi->daemonInstanceLoggingPut: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::DaemonApi;
    +
    +my $api_instance = SWGSDRangel::DaemonApi->new();
    +my $body = SWGSDRangel::Object::LoggingInfo->new(); # LoggingInfo | Logging information
    +
    +eval { 
    +    my $result = $api_instance->daemonInstanceLoggingPut(body => $body);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling DaemonApi->daemonInstanceLoggingPut: $@\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.DaemonApi()
    +body =  # LoggingInfo | Logging information
    +
    +try: 
    +    api_response = api_instance.daemon_instance_logging_put(body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling DaemonApi->daemonInstanceLoggingPut: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    + + + +

    Responses

    +

    Status: 200 - Return new data on success

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 400 - Invalid data

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    @@ -26299,7 +27070,7 @@ except ApiException as e:
    - Generated 2018-08-18T09:43:37.059+02:00 + Generated 2018-08-18T15:06:40.106+02:00
    diff --git a/sdrbase/resources/webapi/doc/swagger/swagger.yaml b/sdrbase/resources/webapi/doc/swagger/swagger.yaml index 8afb8dc8c..ab01945d8 100644 --- a/sdrbase/resources/webapi/doc/swagger/swagger.yaml +++ b/sdrbase/resources/webapi/doc/swagger/swagger.yaml @@ -1254,6 +1254,50 @@ paths: "501": $ref: "#/responses/Response_501" + /sdrdaemon/logging: + x-swagger-router-controller: daemon + get: + description: Get logging information for this instance + operationId: daemonInstanceLoggingGet + tags: + - Daemon + responses: + "200": + description: Success + schema: + $ref: "#/definitions/LoggingInfo" + "500": + $ref: "#/responses/Response_500" + "501": + $ref: "#/responses/Response_501" + put: + description: Change logging parmeters for this instance + operationId: daemonInstanceLoggingPut + tags: + - Daemon + consumes: + - application/json + parameters: + - name: body + in: body + description: Logging information + required: true + schema: + $ref: "#/definitions/LoggingInfo" + responses: + "200": + description: Return new data on success + schema: + $ref: "#/definitions/LoggingInfo" + "400": + description: Invalid data + schema: + $ref: "#/definitions/ErrorResponse" + "500": + $ref: "#/responses/Response_500" + "501": + $ref: "#/responses/Response_501" + /sdrdaemon/settings: x-swagger-router-controller: deviceset get: diff --git a/swagger/sdrangel/api/swagger/swagger.yaml b/swagger/sdrangel/api/swagger/swagger.yaml index f100f1315..56cebd75f 100644 --- a/swagger/sdrangel/api/swagger/swagger.yaml +++ b/swagger/sdrangel/api/swagger/swagger.yaml @@ -1254,6 +1254,50 @@ paths: "501": $ref: "#/responses/Response_501" + /sdrdaemon/logging: + x-swagger-router-controller: daemon + get: + description: Get logging information for this instance + operationId: daemonInstanceLoggingGet + tags: + - Daemon + responses: + "200": + description: Success + schema: + $ref: "#/definitions/LoggingInfo" + "500": + $ref: "#/responses/Response_500" + "501": + $ref: "#/responses/Response_501" + put: + description: Change logging parmeters for this instance + operationId: daemonInstanceLoggingPut + tags: + - Daemon + consumes: + - application/json + parameters: + - name: body + in: body + description: Logging information + required: true + schema: + $ref: "#/definitions/LoggingInfo" + responses: + "200": + description: Return new data on success + schema: + $ref: "#/definitions/LoggingInfo" + "400": + description: Invalid data + schema: + $ref: "#/definitions/ErrorResponse" + "500": + $ref: "#/responses/Response_500" + "501": + $ref: "#/responses/Response_501" + /sdrdaemon/settings: x-swagger-router-controller: deviceset get: diff --git a/swagger/sdrangel/code/html2/index.html b/swagger/sdrangel/code/html2/index.html index 71d0f3a38..e96fb7aeb 100644 --- a/swagger/sdrangel/code/html2/index.html +++ b/swagger/sdrangel/code/html2/index.html @@ -4000,6 +4000,12 @@ margin-bottom: 20px; +
  • + daemonInstanceLoggingGet +
  • +
  • + daemonInstanceLoggingPut +
  • daemonInstanceSummary
  • @@ -4191,6 +4197,771 @@ margin-bottom: 20px;

    Daemon

    +
    +
    +
    +

    daemonInstanceLoggingGet

    +

    +
    +
    +
    +

    +

    Get logging information for this instance

    +

    +
    +
    /sdrdaemon/logging
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET "http://localhost/sdrdaemon/logging"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.DaemonApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DaemonApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        DaemonApi apiInstance = new DaemonApi();
    +        try {
    +            LoggingInfo result = apiInstance.daemonInstanceLoggingGet();
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DaemonApi#daemonInstanceLoggingGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.DaemonApi;
    +
    +public class DaemonApiExample {
    +
    +    public static void main(String[] args) {
    +        DaemonApi apiInstance = new DaemonApi();
    +        try {
    +            LoggingInfo result = apiInstance.daemonInstanceLoggingGet();
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DaemonApi#daemonInstanceLoggingGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    
    +DaemonApi *apiInstance = [[DaemonApi alloc] init];
    +
    +[apiInstance daemonInstanceLoggingGetWithCompletionHandler: 
    +              ^(LoggingInfo output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.DaemonApi()
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.daemonInstanceLoggingGet(callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class daemonInstanceLoggingGetExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new DaemonApi();
    +
    +            try
    +            {
    +                LoggingInfo result = apiInstance.daemonInstanceLoggingGet();
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DaemonApi.daemonInstanceLoggingGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\DaemonApi();
    +
    +try {
    +    $result = $api_instance->daemonInstanceLoggingGet();
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DaemonApi->daemonInstanceLoggingGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::DaemonApi;
    +
    +my $api_instance = SWGSDRangel::DaemonApi->new();
    +
    +eval { 
    +    my $result = $api_instance->daemonInstanceLoggingGet();
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling DaemonApi->daemonInstanceLoggingGet: $@\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.DaemonApi()
    +
    +try: 
    +    api_response = api_instance.daemon_instance_logging_get()
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling DaemonApi->daemonInstanceLoggingGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + + +

    Responses

    +

    Status: 200 - Success

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +

    daemonInstanceLoggingPut

    +

    +
    +
    +
    +

    +

    Change logging parmeters for this instance

    +

    +
    +
    /sdrdaemon/logging
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X PUT "http://localhost/sdrdaemon/logging"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.DaemonApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DaemonApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        DaemonApi apiInstance = new DaemonApi();
    +        LoggingInfo body = ; // LoggingInfo | Logging information
    +        try {
    +            LoggingInfo result = apiInstance.daemonInstanceLoggingPut(body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DaemonApi#daemonInstanceLoggingPut");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.DaemonApi;
    +
    +public class DaemonApiExample {
    +
    +    public static void main(String[] args) {
    +        DaemonApi apiInstance = new DaemonApi();
    +        LoggingInfo body = ; // LoggingInfo | Logging information
    +        try {
    +            LoggingInfo result = apiInstance.daemonInstanceLoggingPut(body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DaemonApi#daemonInstanceLoggingPut");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    LoggingInfo *body = ; // Logging information
    +
    +DaemonApi *apiInstance = [[DaemonApi alloc] init];
    +
    +[apiInstance daemonInstanceLoggingPutWith:body
    +              completionHandler: ^(LoggingInfo output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.DaemonApi()
    +
    +var body = ; // {LoggingInfo} Logging information
    +
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.daemonInstanceLoggingPut(body, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class daemonInstanceLoggingPutExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new DaemonApi();
    +            var body = new LoggingInfo(); // LoggingInfo | Logging information
    +
    +            try
    +            {
    +                LoggingInfo result = apiInstance.daemonInstanceLoggingPut(body);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DaemonApi.daemonInstanceLoggingPut: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\DaemonApi();
    +$body = ; // LoggingInfo | Logging information
    +
    +try {
    +    $result = $api_instance->daemonInstanceLoggingPut($body);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DaemonApi->daemonInstanceLoggingPut: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::DaemonApi;
    +
    +my $api_instance = SWGSDRangel::DaemonApi->new();
    +my $body = SWGSDRangel::Object::LoggingInfo->new(); # LoggingInfo | Logging information
    +
    +eval { 
    +    my $result = $api_instance->daemonInstanceLoggingPut(body => $body);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling DaemonApi->daemonInstanceLoggingPut: $@\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.DaemonApi()
    +body =  # LoggingInfo | Logging information
    +
    +try: 
    +    api_response = api_instance.daemon_instance_logging_put(body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling DaemonApi->daemonInstanceLoggingPut: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    + + + +

    Responses

    +

    Status: 200 - Return new data on success

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 400 - Invalid data

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    @@ -26299,7 +27070,7 @@ except ApiException as e:
    - Generated 2018-08-18T09:43:37.059+02:00 + Generated 2018-08-18T15:06:40.106+02:00
    diff --git a/swagger/sdrangel/code/qt5/client/SWGDaemonApi.cpp b/swagger/sdrangel/code/qt5/client/SWGDaemonApi.cpp index af714947a..693082006 100644 --- a/swagger/sdrangel/code/qt5/client/SWGDaemonApi.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGDaemonApi.cpp @@ -28,6 +28,113 @@ SWGDaemonApi::SWGDaemonApi(QString host, QString basePath) { this->basePath = basePath; } +void +SWGDaemonApi::daemonInstanceLoggingGet() { + QString fullPath; + fullPath.append(this->host).append(this->basePath).append("/sdrdaemon/logging"); + + + + SWGHttpRequestWorker *worker = new SWGHttpRequestWorker(); + SWGHttpRequestInput input(fullPath, "GET"); + + + + + + foreach(QString key, this->defaultHeaders.keys()) { + input.headers.insert(key, this->defaultHeaders.value(key)); + } + + connect(worker, + &SWGHttpRequestWorker::on_execution_finished, + this, + &SWGDaemonApi::daemonInstanceLoggingGetCallback); + + worker->execute(&input); +} + +void +SWGDaemonApi::daemonInstanceLoggingGetCallback(SWGHttpRequestWorker * worker) { + QString msg; + QString error_str = worker->error_str; + QNetworkReply::NetworkError error_type = worker->error_type; + + if (worker->error_type == QNetworkReply::NoError) { + msg = QString("Success! %1 bytes").arg(worker->response.length()); + } + else { + msg = "Error: " + worker->error_str; + } + + + QString json(worker->response); + SWGLoggingInfo* output = static_cast(create(json, QString("SWGLoggingInfo"))); + worker->deleteLater(); + + if (worker->error_type == QNetworkReply::NoError) { + emit daemonInstanceLoggingGetSignal(output); + } else { + emit daemonInstanceLoggingGetSignalE(output, error_type, error_str); + emit daemonInstanceLoggingGetSignalEFull(worker, error_type, error_str); + } +} + +void +SWGDaemonApi::daemonInstanceLoggingPut(SWGLoggingInfo& body) { + QString fullPath; + fullPath.append(this->host).append(this->basePath).append("/sdrdaemon/logging"); + + + + SWGHttpRequestWorker *worker = new SWGHttpRequestWorker(); + SWGHttpRequestInput input(fullPath, "PUT"); + + + + QString output = body.asJson(); + input.request_body.append(output); + + + + foreach(QString key, this->defaultHeaders.keys()) { + input.headers.insert(key, this->defaultHeaders.value(key)); + } + + connect(worker, + &SWGHttpRequestWorker::on_execution_finished, + this, + &SWGDaemonApi::daemonInstanceLoggingPutCallback); + + worker->execute(&input); +} + +void +SWGDaemonApi::daemonInstanceLoggingPutCallback(SWGHttpRequestWorker * worker) { + QString msg; + QString error_str = worker->error_str; + QNetworkReply::NetworkError error_type = worker->error_type; + + if (worker->error_type == QNetworkReply::NoError) { + msg = QString("Success! %1 bytes").arg(worker->response.length()); + } + else { + msg = "Error: " + worker->error_str; + } + + + QString json(worker->response); + SWGLoggingInfo* output = static_cast(create(json, QString("SWGLoggingInfo"))); + worker->deleteLater(); + + if (worker->error_type == QNetworkReply::NoError) { + emit daemonInstanceLoggingPutSignal(output); + } else { + emit daemonInstanceLoggingPutSignalE(output, error_type, error_str); + emit daemonInstanceLoggingPutSignalEFull(worker, error_type, error_str); + } +} + void SWGDaemonApi::daemonInstanceSummary() { QString fullPath; diff --git a/swagger/sdrangel/code/qt5/client/SWGDaemonApi.h b/swagger/sdrangel/code/qt5/client/SWGDaemonApi.h index c3f523547..86f4a3359 100644 --- a/swagger/sdrangel/code/qt5/client/SWGDaemonApi.h +++ b/swagger/sdrangel/code/qt5/client/SWGDaemonApi.h @@ -20,6 +20,7 @@ #include "SWGDeviceSettings.h" #include "SWGDeviceState.h" #include "SWGErrorResponse.h" +#include "SWGLoggingInfo.h" #include @@ -37,6 +38,8 @@ public: QString basePath; QMap defaultHeaders; + void daemonInstanceLoggingGet(); + void daemonInstanceLoggingPut(SWGLoggingInfo& body); void daemonInstanceSummary(); void daemonReportGet(); void daemonRunDelete(); @@ -47,6 +50,8 @@ public: void daemonSettingsPut(SWGDeviceSettings& body); private: + void daemonInstanceLoggingGetCallback (SWGHttpRequestWorker * worker); + void daemonInstanceLoggingPutCallback (SWGHttpRequestWorker * worker); void daemonInstanceSummaryCallback (SWGHttpRequestWorker * worker); void daemonReportGetCallback (SWGHttpRequestWorker * worker); void daemonRunDeleteCallback (SWGHttpRequestWorker * worker); @@ -57,6 +62,8 @@ private: void daemonSettingsPutCallback (SWGHttpRequestWorker * worker); signals: + void daemonInstanceLoggingGetSignal(SWGLoggingInfo* summary); + void daemonInstanceLoggingPutSignal(SWGLoggingInfo* summary); void daemonInstanceSummarySignal(SWGDaemonSummaryResponse* summary); void daemonReportGetSignal(SWGDeviceReport* summary); void daemonRunDeleteSignal(SWGDeviceState* summary); @@ -66,6 +73,8 @@ signals: void daemonSettingsPatchSignal(SWGDeviceSettings* summary); void daemonSettingsPutSignal(SWGDeviceSettings* summary); + void daemonInstanceLoggingGetSignalE(SWGLoggingInfo* summary, QNetworkReply::NetworkError error_type, QString& error_str); + void daemonInstanceLoggingPutSignalE(SWGLoggingInfo* summary, QNetworkReply::NetworkError error_type, QString& error_str); void daemonInstanceSummarySignalE(SWGDaemonSummaryResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str); void daemonReportGetSignalE(SWGDeviceReport* summary, QNetworkReply::NetworkError error_type, QString& error_str); void daemonRunDeleteSignalE(SWGDeviceState* summary, QNetworkReply::NetworkError error_type, QString& error_str); @@ -75,6 +84,8 @@ signals: void daemonSettingsPatchSignalE(SWGDeviceSettings* summary, QNetworkReply::NetworkError error_type, QString& error_str); void daemonSettingsPutSignalE(SWGDeviceSettings* summary, QNetworkReply::NetworkError error_type, QString& error_str); + void daemonInstanceLoggingGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); + void daemonInstanceLoggingPutSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void daemonInstanceSummarySignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void daemonReportGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void daemonRunDeleteSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);