From c8b9c912a212c7a5aec897ebd307a1fbc60ea215 Mon Sep 17 00:00:00 2001 From: f4exb Date: Tue, 10 Mar 2020 15:28:57 +0100 Subject: [PATCH] REST API device and channel actions: generate swagger code --- sdrbase/resources/webapi/doc/html2/index.html | 2136 ++++++++--------- .../doc/swagger/include/ChannelActions.yaml | 40 +- .../resources/webapi/doc/swagger/swagger.yaml | 4 +- swagger/sdrangel/code/html2/index.html | 2136 ++++++++--------- .../code/qt5/client/SWGDeviceSetApi.cpp | 116 + .../code/qt5/client/SWGDeviceSetApi.h | 12 + 6 files changed, 2282 insertions(+), 2162 deletions(-) diff --git a/sdrbase/resources/webapi/doc/html2/index.html b/sdrbase/resources/webapi/doc/html2/index.html index 6386fbc7d..3f7829eb1 100644 --- a/sdrbase/resources/webapi/doc/html2/index.html +++ b/sdrbase/resources/webapi/doc/html2/index.html @@ -7201,6 +7201,9 @@ margin-bottom: 20px; +
  • + devicesetChannelActionsPost +
  • devicesetChannelDelete
  • @@ -7222,6 +7225,9 @@ margin-bottom: 20px;
  • devicesetChannelsReportGet
  • +
  • + devicesetDeviceActionsPost +
  • devicesetDevicePut
  • @@ -7267,13 +7273,6 @@ margin-bottom: 20px;
  • instanceDeviceSetPost
  • - -
  • - devicesetChannelActionsPost -
  • -
  • - devicesetDeviceActionsPost -
  • instanceAMBEDevicesDelete @@ -7416,6 +7415,552 @@ margin-bottom: 20px;

    DeviceSet

    +
    +
    +
    +

    devicesetChannelActionsPost

    +

    +
    +
    +
    +

    +

    post an action or actions on a channel

    +

    +
    +
    /sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/actions
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X POST "http://localhost/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/actions"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.DeviceSetApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DeviceSetApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
    +        ChannelActions body = ; // ChannelActions | Action(s) to apply to the channel
    +        try {
    +            SuccessResponse result = apiInstance.devicesetChannelActionsPost(deviceSetIndex, channelIndex, body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DeviceSetApi#devicesetChannelActionsPost");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.DeviceSetApi;
    +
    +public class DeviceSetApiExample {
    +
    +    public static void main(String[] args) {
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
    +        ChannelActions body = ; // ChannelActions | Action(s) to apply to the channel
    +        try {
    +            SuccessResponse result = apiInstance.devicesetChannelActionsPost(deviceSetIndex, channelIndex, body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DeviceSetApi#devicesetChannelActionsPost");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +Integer *channelIndex = 56; // Index of the channel in the channels list for this device set
    +ChannelActions *body = ; // Action(s) to apply to the channel
    +
    +DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
    +
    +[apiInstance devicesetChannelActionsPostWith:deviceSetIndex
    +    channelIndex:channelIndex
    +    body:body
    +              completionHandler: ^(SuccessResponse output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.DeviceSetApi()
    +
    +var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
    +
    +var channelIndex = 56; // {Integer} Index of the channel in the channels list for this device set
    +
    +var body = ; // {ChannelActions} Action(s) to apply to the channel
    +
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.devicesetChannelActionsPost(deviceSetIndex, channelIndex, body, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class devicesetChannelActionsPostExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new DeviceSetApi();
    +            var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    +            var channelIndex = 56;  // Integer | Index of the channel in the channels list for this device set
    +            var body = new ChannelActions(); // ChannelActions | Action(s) to apply to the channel
    +
    +            try
    +            {
    +                SuccessResponse result = apiInstance.devicesetChannelActionsPost(deviceSetIndex, channelIndex, body);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetChannelActionsPost: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\DeviceSetApi();
    +$deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
    +$body = ; // ChannelActions | Action(s) to apply to the channel
    +
    +try {
    +    $result = $api_instance->devicesetChannelActionsPost($deviceSetIndex, $channelIndex, $body);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DeviceSetApi->devicesetChannelActionsPost: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::DeviceSetApi;
    +
    +my $api_instance = SWGSDRangel::DeviceSetApi->new();
    +my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $channelIndex = 56; # Integer | Index of the channel in the channels list for this device set
    +my $body = SWGSDRangel::Object::ChannelActions->new(); # ChannelActions | Action(s) to apply to the channel
    +
    +eval { 
    +    my $result = $api_instance->devicesetChannelActionsPost(deviceSetIndex => $deviceSetIndex, channelIndex => $channelIndex, body => $body);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling DeviceSetApi->devicesetChannelActionsPost: $@\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.DeviceSetApi()
    +deviceSetIndex = 56 # Integer | Index of device set in the device set list
    +channelIndex = 56 # Integer | Index of the channel in the channels list for this device set
    +body =  # ChannelActions | Action(s) to apply to the channel
    +
    +try: 
    +    api_response = api_instance.deviceset_channel_actions_post(deviceSetIndex, channelIndex, body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling DeviceSetApi->devicesetChannelActionsPost: %s\n" % e)
    +
    +
    + +

    Parameters

    + +
    Path parameters
    + + + + + + + + + + + + + +
    NameDescription
    deviceSetIndex* + + +
    +
    +
    + + Integer + + +
    + Index of device set in the device set list +
    +
    +
    + Required +
    +
    +
    +
    channelIndex* + + +
    +
    +
    + + Integer + + +
    + Index of the channel in the channels list for this device set +
    +
    +
    + Required +
    +
    +
    +
    + + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    + + + +

    Responses

    +

    Status: 202 - Message to perform action was sent successfully

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

    Status: 400 - Invalid device set or channel index

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

    Status: 404 - Device or channel not found

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

    Status: 500 - Error

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

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    @@ -10964,6 +11509,519 @@ except ApiException as e:

    +
    +
    +
    +

    devicesetDeviceActionsPost

    +

    +
    +
    +
    +

    +

    post an action on a device

    +

    +
    +
    /sdrangel/deviceset/{deviceSetIndex}/device/actions
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X POST "http://localhost/sdrangel/deviceset/{deviceSetIndex}/device/actions"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.DeviceSetApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DeviceSetApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        DeviceActions body = ; // DeviceActions | Action(s) to apply to the device
    +        try {
    +            SuccessResponse result = apiInstance.devicesetDeviceActionsPost(deviceSetIndex, body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DeviceSetApi#devicesetDeviceActionsPost");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.DeviceSetApi;
    +
    +public class DeviceSetApiExample {
    +
    +    public static void main(String[] args) {
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        DeviceActions body = ; // DeviceActions | Action(s) to apply to the device
    +        try {
    +            SuccessResponse result = apiInstance.devicesetDeviceActionsPost(deviceSetIndex, body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DeviceSetApi#devicesetDeviceActionsPost");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +DeviceActions *body = ; // Action(s) to apply to the device
    +
    +DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
    +
    +[apiInstance devicesetDeviceActionsPostWith:deviceSetIndex
    +    body:body
    +              completionHandler: ^(SuccessResponse output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.DeviceSetApi()
    +
    +var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
    +
    +var body = ; // {DeviceActions} Action(s) to apply to the device
    +
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.devicesetDeviceActionsPost(deviceSetIndex, body, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class devicesetDeviceActionsPostExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new DeviceSetApi();
    +            var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    +            var body = new DeviceActions(); // DeviceActions | Action(s) to apply to the device
    +
    +            try
    +            {
    +                SuccessResponse result = apiInstance.devicesetDeviceActionsPost(deviceSetIndex, body);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetDeviceActionsPost: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\DeviceSetApi();
    +$deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$body = ; // DeviceActions | Action(s) to apply to the device
    +
    +try {
    +    $result = $api_instance->devicesetDeviceActionsPost($deviceSetIndex, $body);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DeviceSetApi->devicesetDeviceActionsPost: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::DeviceSetApi;
    +
    +my $api_instance = SWGSDRangel::DeviceSetApi->new();
    +my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $body = SWGSDRangel::Object::DeviceActions->new(); # DeviceActions | Action(s) to apply to the device
    +
    +eval { 
    +    my $result = $api_instance->devicesetDeviceActionsPost(deviceSetIndex => $deviceSetIndex, body => $body);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling DeviceSetApi->devicesetDeviceActionsPost: $@\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.DeviceSetApi()
    +deviceSetIndex = 56 # Integer | Index of device set in the device set list
    +body =  # DeviceActions | Action(s) to apply to the device
    +
    +try: 
    +    api_response = api_instance.deviceset_device_actions_post(deviceSetIndex, body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling DeviceSetApi->devicesetDeviceActionsPost: %s\n" % e)
    +
    +
    + +

    Parameters

    + +
    Path parameters
    + + + + + + + + + +
    NameDescription
    deviceSetIndex* + + +
    +
    +
    + + Integer + + +
    + Index of device set in the device set list +
    +
    +
    + Required +
    +
    +
    +
    + + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    + + + +

    Responses

    +

    Status: 202 - Message to perform action was sent successfully

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

    Status: 400 - Invalid device set index

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

    Status: 404 - Device not found

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

    Status: 500 - Error

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

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    @@ -18004,1068 +19062,6 @@ except ApiException as e:

    -
    -

    Deviceset

    -
    -
    -
    -

    devicesetChannelActionsPost

    -

    -
    -
    -
    -

    -

    post an action or actions on a channel

    -

    -
    -
    /sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/actions
    -

    -

    Usage and SDK Samples

    -

    - - -
    -
    -
    curl -X POST "http://localhost/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/actions"
    -
    -
    -
    import SWGSDRangel.*;
    -import SWGSDRangel.auth.*;
    -import SWGSDRangel.model.*;
    -import SWGSDRangel.api.DevicesetApi;
    -
    -import java.io.File;
    -import java.util.*;
    -
    -public class DevicesetApiExample {
    -
    -    public static void main(String[] args) {
    -        
    -        DevicesetApi apiInstance = new DevicesetApi();
    -        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -        Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
    -        ChannelActions body = ; // ChannelActions | Action(s) to apply to the channel
    -        try {
    -            SuccessResponse result = apiInstance.devicesetChannelActionsPost(deviceSetIndex, channelIndex, body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DevicesetApi#devicesetChannelActionsPost");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    - -
    -
    import SWGSDRangel.api.DevicesetApi;
    -
    -public class DevicesetApiExample {
    -
    -    public static void main(String[] args) {
    -        DevicesetApi apiInstance = new DevicesetApi();
    -        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -        Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
    -        ChannelActions body = ; // ChannelActions | Action(s) to apply to the channel
    -        try {
    -            SuccessResponse result = apiInstance.devicesetChannelActionsPost(deviceSetIndex, channelIndex, body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DevicesetApi#devicesetChannelActionsPost");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    - -
    -
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    -Integer *channelIndex = 56; // Index of the channel in the channels list for this device set
    -ChannelActions *body = ; // Action(s) to apply to the channel
    -
    -DevicesetApi *apiInstance = [[DevicesetApi alloc] init];
    -
    -[apiInstance devicesetChannelActionsPostWith:deviceSetIndex
    -    channelIndex:channelIndex
    -    body:body
    -              completionHandler: ^(SuccessResponse output, NSError* error) {
    -                            if (output) {
    -                                NSLog(@"%@", output);
    -                            }
    -                            if (error) {
    -                                NSLog(@"Error: %@", error);
    -                            }
    -                        }];
    -
    -
    - -
    -
    var SdRangel = require('sd_rangel');
    -
    -var api = new SdRangel.DevicesetApi()
    -
    -var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
    -
    -var channelIndex = 56; // {Integer} Index of the channel in the channels list for this device set
    -
    -var body = ; // {ChannelActions} Action(s) to apply to the channel
    -
    -
    -var callback = function(error, data, response) {
    -  if (error) {
    -    console.error(error);
    -  } else {
    -    console.log('API called successfully. Returned data: ' + data);
    -  }
    -};
    -api.devicesetChannelActionsPost(deviceSetIndex, channelIndex, body, callback);
    -
    -
    - - -
    -
    using System;
    -using System.Diagnostics;
    -using SWGSDRangel.Api;
    -using SWGSDRangel.Client;
    -using SWGSDRangel.Model;
    -
    -namespace Example
    -{
    -    public class devicesetChannelActionsPostExample
    -    {
    -        public void main()
    -        {
    -            
    -            var apiInstance = new DevicesetApi();
    -            var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    -            var channelIndex = 56;  // Integer | Index of the channel in the channels list for this device set
    -            var body = new ChannelActions(); // ChannelActions | Action(s) to apply to the channel
    -
    -            try
    -            {
    -                SuccessResponse result = apiInstance.devicesetChannelActionsPost(deviceSetIndex, channelIndex, body);
    -                Debug.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Debug.Print("Exception when calling DevicesetApi.devicesetChannelActionsPost: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -
    - -
    -
    <?php
    -require_once(__DIR__ . '/vendor/autoload.php');
    -
    -$api_instance = new Swagger\Client\Api\DevicesetApi();
    -$deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -$channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
    -$body = ; // ChannelActions | Action(s) to apply to the channel
    -
    -try {
    -    $result = $api_instance->devicesetChannelActionsPost($deviceSetIndex, $channelIndex, $body);
    -    print_r($result);
    -} catch (Exception $e) {
    -    echo 'Exception when calling DevicesetApi->devicesetChannelActionsPost: ', $e->getMessage(), PHP_EOL;
    -}
    -?>
    -
    - -
    -
    use Data::Dumper;
    -use SWGSDRangel::Configuration;
    -use SWGSDRangel::DevicesetApi;
    -
    -my $api_instance = SWGSDRangel::DevicesetApi->new();
    -my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    -my $channelIndex = 56; # Integer | Index of the channel in the channels list for this device set
    -my $body = SWGSDRangel::Object::ChannelActions->new(); # ChannelActions | Action(s) to apply to the channel
    -
    -eval { 
    -    my $result = $api_instance->devicesetChannelActionsPost(deviceSetIndex => $deviceSetIndex, channelIndex => $channelIndex, body => $body);
    -    print Dumper($result);
    -};
    -if ($@) {
    -    warn "Exception when calling DevicesetApi->devicesetChannelActionsPost: $@\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.DevicesetApi()
    -deviceSetIndex = 56 # Integer | Index of device set in the device set list
    -channelIndex = 56 # Integer | Index of the channel in the channels list for this device set
    -body =  # ChannelActions | Action(s) to apply to the channel
    -
    -try: 
    -    api_response = api_instance.deviceset_channel_actions_post(deviceSetIndex, channelIndex, body)
    -    pprint(api_response)
    -except ApiException as e:
    -    print("Exception when calling DevicesetApi->devicesetChannelActionsPost: %s\n" % e)
    -
    -
    - -

    Parameters

    - -
    Path parameters
    - - - - - - - - - - - - - -
    NameDescription
    deviceSetIndex* - - -
    -
    -
    - - Integer - - -
    - Index of device set in the device set list -
    -
    -
    - Required -
    -
    -
    -
    channelIndex* - - -
    -
    -
    - - Integer - - -
    - Index of the channel in the channels list for this device set -
    -
    -
    - Required -
    -
    -
    -
    - - -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -
    - - - -

    Responses

    -

    Status: 202 - Message to perform action was sent successfully

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 400 - Invalid device set or channel index

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 404 - Device or channel not found

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 500 - Error

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 501 - Function not implemented

    - - - -
    -
    -
    - -
    - -
    -
    - -
    -
    -
    -
    -
    -
    -

    devicesetDeviceActionsPost

    -

    -
    -
    -
    -

    -

    post an action on a device

    -

    -
    -
    /sdrangel/deviceset/{deviceSetIndex}/device/actions
    -

    -

    Usage and SDK Samples

    -

    - - -
    -
    -
    curl -X POST "http://localhost/sdrangel/deviceset/{deviceSetIndex}/device/actions"
    -
    -
    -
    import SWGSDRangel.*;
    -import SWGSDRangel.auth.*;
    -import SWGSDRangel.model.*;
    -import SWGSDRangel.api.DevicesetApi;
    -
    -import java.io.File;
    -import java.util.*;
    -
    -public class DevicesetApiExample {
    -
    -    public static void main(String[] args) {
    -        
    -        DevicesetApi apiInstance = new DevicesetApi();
    -        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -        DeviceActions body = ; // DeviceActions | Action(s) to apply to the device
    -        try {
    -            SuccessResponse result = apiInstance.devicesetDeviceActionsPost(deviceSetIndex, body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DevicesetApi#devicesetDeviceActionsPost");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    - -
    -
    import SWGSDRangel.api.DevicesetApi;
    -
    -public class DevicesetApiExample {
    -
    -    public static void main(String[] args) {
    -        DevicesetApi apiInstance = new DevicesetApi();
    -        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -        DeviceActions body = ; // DeviceActions | Action(s) to apply to the device
    -        try {
    -            SuccessResponse result = apiInstance.devicesetDeviceActionsPost(deviceSetIndex, body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DevicesetApi#devicesetDeviceActionsPost");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    - -
    -
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    -DeviceActions *body = ; // Action(s) to apply to the device
    -
    -DevicesetApi *apiInstance = [[DevicesetApi alloc] init];
    -
    -[apiInstance devicesetDeviceActionsPostWith:deviceSetIndex
    -    body:body
    -              completionHandler: ^(SuccessResponse output, NSError* error) {
    -                            if (output) {
    -                                NSLog(@"%@", output);
    -                            }
    -                            if (error) {
    -                                NSLog(@"Error: %@", error);
    -                            }
    -                        }];
    -
    -
    - -
    -
    var SdRangel = require('sd_rangel');
    -
    -var api = new SdRangel.DevicesetApi()
    -
    -var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
    -
    -var body = ; // {DeviceActions} Action(s) to apply to the device
    -
    -
    -var callback = function(error, data, response) {
    -  if (error) {
    -    console.error(error);
    -  } else {
    -    console.log('API called successfully. Returned data: ' + data);
    -  }
    -};
    -api.devicesetDeviceActionsPost(deviceSetIndex, body, callback);
    -
    -
    - - -
    -
    using System;
    -using System.Diagnostics;
    -using SWGSDRangel.Api;
    -using SWGSDRangel.Client;
    -using SWGSDRangel.Model;
    -
    -namespace Example
    -{
    -    public class devicesetDeviceActionsPostExample
    -    {
    -        public void main()
    -        {
    -            
    -            var apiInstance = new DevicesetApi();
    -            var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    -            var body = new DeviceActions(); // DeviceActions | Action(s) to apply to the device
    -
    -            try
    -            {
    -                SuccessResponse result = apiInstance.devicesetDeviceActionsPost(deviceSetIndex, body);
    -                Debug.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Debug.Print("Exception when calling DevicesetApi.devicesetDeviceActionsPost: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -
    - -
    -
    <?php
    -require_once(__DIR__ . '/vendor/autoload.php');
    -
    -$api_instance = new Swagger\Client\Api\DevicesetApi();
    -$deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -$body = ; // DeviceActions | Action(s) to apply to the device
    -
    -try {
    -    $result = $api_instance->devicesetDeviceActionsPost($deviceSetIndex, $body);
    -    print_r($result);
    -} catch (Exception $e) {
    -    echo 'Exception when calling DevicesetApi->devicesetDeviceActionsPost: ', $e->getMessage(), PHP_EOL;
    -}
    -?>
    -
    - -
    -
    use Data::Dumper;
    -use SWGSDRangel::Configuration;
    -use SWGSDRangel::DevicesetApi;
    -
    -my $api_instance = SWGSDRangel::DevicesetApi->new();
    -my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    -my $body = SWGSDRangel::Object::DeviceActions->new(); # DeviceActions | Action(s) to apply to the device
    -
    -eval { 
    -    my $result = $api_instance->devicesetDeviceActionsPost(deviceSetIndex => $deviceSetIndex, body => $body);
    -    print Dumper($result);
    -};
    -if ($@) {
    -    warn "Exception when calling DevicesetApi->devicesetDeviceActionsPost: $@\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.DevicesetApi()
    -deviceSetIndex = 56 # Integer | Index of device set in the device set list
    -body =  # DeviceActions | Action(s) to apply to the device
    -
    -try: 
    -    api_response = api_instance.deviceset_device_actions_post(deviceSetIndex, body)
    -    pprint(api_response)
    -except ApiException as e:
    -    print("Exception when calling DevicesetApi->devicesetDeviceActionsPost: %s\n" % e)
    -
    -
    - -

    Parameters

    - -
    Path parameters
    - - - - - - - - - -
    NameDescription
    deviceSetIndex* - - -
    -
    -
    - - Integer - - -
    - Index of device set in the device set list -
    -
    -
    - Required -
    -
    -
    -
    - - -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -
    - - - -

    Responses

    -

    Status: 202 - Message to perform action was sent successfully

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 400 - Invalid device set index

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 404 - Device not found

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 500 - Error

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 501 - Function not implemented

    - - - -
    -
    -
    - -
    - -
    -
    - -
    -
    -
    -

    Instance

    @@ -33188,7 +33184,7 @@ except ApiException as e:
    - Generated 2020-03-10T08:19:16.942+01:00 + Generated 2020-03-10T15:10:25.920+01:00
    diff --git a/sdrbase/resources/webapi/doc/swagger/include/ChannelActions.yaml b/sdrbase/resources/webapi/doc/swagger/include/ChannelActions.yaml index 1c384737a..8aab2576b 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/ChannelActions.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/ChannelActions.yaml @@ -1,21 +1,21 @@ ChannelActions: - description: Base channel actions. Only the channel actions corresponding to the channel specified in the channelType field is or should be present. - discriminator: channelType - required: - - channelType - - direction - properties: - channelType: - description: Channel type code - type: string - direction: - description: 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) - type: integer - originatorDeviceSetIndex: - description: Optional for reverse API. This is the device set index from where the message comes from. - type: integer - originatorChannelIndex: - description: Optional for reverse API. This is the channel index from where the message comes from. - type: integer - FileSourceActions: - $ref: "/doc/swagger/include/FileSource.yaml#/FileSourceActions" + description: Base channel actions. Only the channel actions corresponding to the channel specified in the channelType field is or should be present. + discriminator: channelType + required: + - channelType + - direction + properties: + channelType: + description: Channel type code + type: string + direction: + description: 0 for Rx only, 1 for Tx only or 2 for any number and direction (default 0) + type: integer + originatorDeviceSetIndex: + description: Optional for reverse API. This is the device set index from where the message comes from. + type: integer + originatorChannelIndex: + description: Optional for reverse API. This is the channel index from where the message comes from. + type: integer + FileSourceActions: + $ref: "/doc/swagger/include/FileSource.yaml#/FileSourceActions" diff --git a/sdrbase/resources/webapi/doc/swagger/swagger.yaml b/sdrbase/resources/webapi/doc/swagger/swagger.yaml index 7f1dd0ad9..5a1d0631b 100644 --- a/sdrbase/resources/webapi/doc/swagger/swagger.yaml +++ b/sdrbase/resources/webapi/doc/swagger/swagger.yaml @@ -1388,7 +1388,7 @@ paths: description: post an action on a device operationId: devicesetDeviceActionsPost tags: - - Deviceset + - DeviceSet parameters: - in: path name: deviceSetIndex @@ -1647,7 +1647,7 @@ paths: description: post an action or actions on a channel operationId: devicesetChannelActionsPost tags: - - Deviceset + - DeviceSet parameters: - in: path name: deviceSetIndex diff --git a/swagger/sdrangel/code/html2/index.html b/swagger/sdrangel/code/html2/index.html index 6386fbc7d..3f7829eb1 100644 --- a/swagger/sdrangel/code/html2/index.html +++ b/swagger/sdrangel/code/html2/index.html @@ -7201,6 +7201,9 @@ margin-bottom: 20px;
  • +
  • + devicesetChannelActionsPost +
  • devicesetChannelDelete
  • @@ -7222,6 +7225,9 @@ margin-bottom: 20px;
  • devicesetChannelsReportGet
  • +
  • + devicesetDeviceActionsPost +
  • devicesetDevicePut
  • @@ -7267,13 +7273,6 @@ margin-bottom: 20px;
  • instanceDeviceSetPost
  • - -
  • - devicesetChannelActionsPost -
  • -
  • - devicesetDeviceActionsPost -
  • instanceAMBEDevicesDelete @@ -7416,6 +7415,552 @@ margin-bottom: 20px;

    DeviceSet

    +
    +
    +
    +

    devicesetChannelActionsPost

    +

    +
    +
    +
    +

    +

    post an action or actions on a channel

    +

    +
    +
    /sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/actions
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X POST "http://localhost/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/actions"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.DeviceSetApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DeviceSetApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
    +        ChannelActions body = ; // ChannelActions | Action(s) to apply to the channel
    +        try {
    +            SuccessResponse result = apiInstance.devicesetChannelActionsPost(deviceSetIndex, channelIndex, body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DeviceSetApi#devicesetChannelActionsPost");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.DeviceSetApi;
    +
    +public class DeviceSetApiExample {
    +
    +    public static void main(String[] args) {
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
    +        ChannelActions body = ; // ChannelActions | Action(s) to apply to the channel
    +        try {
    +            SuccessResponse result = apiInstance.devicesetChannelActionsPost(deviceSetIndex, channelIndex, body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DeviceSetApi#devicesetChannelActionsPost");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +Integer *channelIndex = 56; // Index of the channel in the channels list for this device set
    +ChannelActions *body = ; // Action(s) to apply to the channel
    +
    +DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
    +
    +[apiInstance devicesetChannelActionsPostWith:deviceSetIndex
    +    channelIndex:channelIndex
    +    body:body
    +              completionHandler: ^(SuccessResponse output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.DeviceSetApi()
    +
    +var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
    +
    +var channelIndex = 56; // {Integer} Index of the channel in the channels list for this device set
    +
    +var body = ; // {ChannelActions} Action(s) to apply to the channel
    +
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.devicesetChannelActionsPost(deviceSetIndex, channelIndex, body, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class devicesetChannelActionsPostExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new DeviceSetApi();
    +            var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    +            var channelIndex = 56;  // Integer | Index of the channel in the channels list for this device set
    +            var body = new ChannelActions(); // ChannelActions | Action(s) to apply to the channel
    +
    +            try
    +            {
    +                SuccessResponse result = apiInstance.devicesetChannelActionsPost(deviceSetIndex, channelIndex, body);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetChannelActionsPost: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\DeviceSetApi();
    +$deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
    +$body = ; // ChannelActions | Action(s) to apply to the channel
    +
    +try {
    +    $result = $api_instance->devicesetChannelActionsPost($deviceSetIndex, $channelIndex, $body);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DeviceSetApi->devicesetChannelActionsPost: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::DeviceSetApi;
    +
    +my $api_instance = SWGSDRangel::DeviceSetApi->new();
    +my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $channelIndex = 56; # Integer | Index of the channel in the channels list for this device set
    +my $body = SWGSDRangel::Object::ChannelActions->new(); # ChannelActions | Action(s) to apply to the channel
    +
    +eval { 
    +    my $result = $api_instance->devicesetChannelActionsPost(deviceSetIndex => $deviceSetIndex, channelIndex => $channelIndex, body => $body);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling DeviceSetApi->devicesetChannelActionsPost: $@\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.DeviceSetApi()
    +deviceSetIndex = 56 # Integer | Index of device set in the device set list
    +channelIndex = 56 # Integer | Index of the channel in the channels list for this device set
    +body =  # ChannelActions | Action(s) to apply to the channel
    +
    +try: 
    +    api_response = api_instance.deviceset_channel_actions_post(deviceSetIndex, channelIndex, body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling DeviceSetApi->devicesetChannelActionsPost: %s\n" % e)
    +
    +
    + +

    Parameters

    + +
    Path parameters
    + + + + + + + + + + + + + +
    NameDescription
    deviceSetIndex* + + +
    +
    +
    + + Integer + + +
    + Index of device set in the device set list +
    +
    +
    + Required +
    +
    +
    +
    channelIndex* + + +
    +
    +
    + + Integer + + +
    + Index of the channel in the channels list for this device set +
    +
    +
    + Required +
    +
    +
    +
    + + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    + + + +

    Responses

    +

    Status: 202 - Message to perform action was sent successfully

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

    Status: 400 - Invalid device set or channel index

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

    Status: 404 - Device or channel not found

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

    Status: 500 - Error

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

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    @@ -10964,6 +11509,519 @@ except ApiException as e:

    +
    +
    +
    +

    devicesetDeviceActionsPost

    +

    +
    +
    +
    +

    +

    post an action on a device

    +

    +
    +
    /sdrangel/deviceset/{deviceSetIndex}/device/actions
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X POST "http://localhost/sdrangel/deviceset/{deviceSetIndex}/device/actions"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.DeviceSetApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DeviceSetApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        DeviceActions body = ; // DeviceActions | Action(s) to apply to the device
    +        try {
    +            SuccessResponse result = apiInstance.devicesetDeviceActionsPost(deviceSetIndex, body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DeviceSetApi#devicesetDeviceActionsPost");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.DeviceSetApi;
    +
    +public class DeviceSetApiExample {
    +
    +    public static void main(String[] args) {
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        DeviceActions body = ; // DeviceActions | Action(s) to apply to the device
    +        try {
    +            SuccessResponse result = apiInstance.devicesetDeviceActionsPost(deviceSetIndex, body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DeviceSetApi#devicesetDeviceActionsPost");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +DeviceActions *body = ; // Action(s) to apply to the device
    +
    +DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
    +
    +[apiInstance devicesetDeviceActionsPostWith:deviceSetIndex
    +    body:body
    +              completionHandler: ^(SuccessResponse output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.DeviceSetApi()
    +
    +var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
    +
    +var body = ; // {DeviceActions} Action(s) to apply to the device
    +
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.devicesetDeviceActionsPost(deviceSetIndex, body, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class devicesetDeviceActionsPostExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new DeviceSetApi();
    +            var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    +            var body = new DeviceActions(); // DeviceActions | Action(s) to apply to the device
    +
    +            try
    +            {
    +                SuccessResponse result = apiInstance.devicesetDeviceActionsPost(deviceSetIndex, body);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetDeviceActionsPost: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\DeviceSetApi();
    +$deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$body = ; // DeviceActions | Action(s) to apply to the device
    +
    +try {
    +    $result = $api_instance->devicesetDeviceActionsPost($deviceSetIndex, $body);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DeviceSetApi->devicesetDeviceActionsPost: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::DeviceSetApi;
    +
    +my $api_instance = SWGSDRangel::DeviceSetApi->new();
    +my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $body = SWGSDRangel::Object::DeviceActions->new(); # DeviceActions | Action(s) to apply to the device
    +
    +eval { 
    +    my $result = $api_instance->devicesetDeviceActionsPost(deviceSetIndex => $deviceSetIndex, body => $body);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling DeviceSetApi->devicesetDeviceActionsPost: $@\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.DeviceSetApi()
    +deviceSetIndex = 56 # Integer | Index of device set in the device set list
    +body =  # DeviceActions | Action(s) to apply to the device
    +
    +try: 
    +    api_response = api_instance.deviceset_device_actions_post(deviceSetIndex, body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling DeviceSetApi->devicesetDeviceActionsPost: %s\n" % e)
    +
    +
    + +

    Parameters

    + +
    Path parameters
    + + + + + + + + + +
    NameDescription
    deviceSetIndex* + + +
    +
    +
    + + Integer + + +
    + Index of device set in the device set list +
    +
    +
    + Required +
    +
    +
    +
    + + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    + + + +

    Responses

    +

    Status: 202 - Message to perform action was sent successfully

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

    Status: 400 - Invalid device set index

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

    Status: 404 - Device not found

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

    Status: 500 - Error

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

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    @@ -18004,1068 +19062,6 @@ except ApiException as e:

    -
    -

    Deviceset

    -
    -
    -
    -

    devicesetChannelActionsPost

    -

    -
    -
    -
    -

    -

    post an action or actions on a channel

    -

    -
    -
    /sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/actions
    -

    -

    Usage and SDK Samples

    -

    - - -
    -
    -
    curl -X POST "http://localhost/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/actions"
    -
    -
    -
    import SWGSDRangel.*;
    -import SWGSDRangel.auth.*;
    -import SWGSDRangel.model.*;
    -import SWGSDRangel.api.DevicesetApi;
    -
    -import java.io.File;
    -import java.util.*;
    -
    -public class DevicesetApiExample {
    -
    -    public static void main(String[] args) {
    -        
    -        DevicesetApi apiInstance = new DevicesetApi();
    -        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -        Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
    -        ChannelActions body = ; // ChannelActions | Action(s) to apply to the channel
    -        try {
    -            SuccessResponse result = apiInstance.devicesetChannelActionsPost(deviceSetIndex, channelIndex, body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DevicesetApi#devicesetChannelActionsPost");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    - -
    -
    import SWGSDRangel.api.DevicesetApi;
    -
    -public class DevicesetApiExample {
    -
    -    public static void main(String[] args) {
    -        DevicesetApi apiInstance = new DevicesetApi();
    -        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -        Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
    -        ChannelActions body = ; // ChannelActions | Action(s) to apply to the channel
    -        try {
    -            SuccessResponse result = apiInstance.devicesetChannelActionsPost(deviceSetIndex, channelIndex, body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DevicesetApi#devicesetChannelActionsPost");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    - -
    -
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    -Integer *channelIndex = 56; // Index of the channel in the channels list for this device set
    -ChannelActions *body = ; // Action(s) to apply to the channel
    -
    -DevicesetApi *apiInstance = [[DevicesetApi alloc] init];
    -
    -[apiInstance devicesetChannelActionsPostWith:deviceSetIndex
    -    channelIndex:channelIndex
    -    body:body
    -              completionHandler: ^(SuccessResponse output, NSError* error) {
    -                            if (output) {
    -                                NSLog(@"%@", output);
    -                            }
    -                            if (error) {
    -                                NSLog(@"Error: %@", error);
    -                            }
    -                        }];
    -
    -
    - -
    -
    var SdRangel = require('sd_rangel');
    -
    -var api = new SdRangel.DevicesetApi()
    -
    -var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
    -
    -var channelIndex = 56; // {Integer} Index of the channel in the channels list for this device set
    -
    -var body = ; // {ChannelActions} Action(s) to apply to the channel
    -
    -
    -var callback = function(error, data, response) {
    -  if (error) {
    -    console.error(error);
    -  } else {
    -    console.log('API called successfully. Returned data: ' + data);
    -  }
    -};
    -api.devicesetChannelActionsPost(deviceSetIndex, channelIndex, body, callback);
    -
    -
    - - -
    -
    using System;
    -using System.Diagnostics;
    -using SWGSDRangel.Api;
    -using SWGSDRangel.Client;
    -using SWGSDRangel.Model;
    -
    -namespace Example
    -{
    -    public class devicesetChannelActionsPostExample
    -    {
    -        public void main()
    -        {
    -            
    -            var apiInstance = new DevicesetApi();
    -            var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    -            var channelIndex = 56;  // Integer | Index of the channel in the channels list for this device set
    -            var body = new ChannelActions(); // ChannelActions | Action(s) to apply to the channel
    -
    -            try
    -            {
    -                SuccessResponse result = apiInstance.devicesetChannelActionsPost(deviceSetIndex, channelIndex, body);
    -                Debug.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Debug.Print("Exception when calling DevicesetApi.devicesetChannelActionsPost: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -
    - -
    -
    <?php
    -require_once(__DIR__ . '/vendor/autoload.php');
    -
    -$api_instance = new Swagger\Client\Api\DevicesetApi();
    -$deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -$channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
    -$body = ; // ChannelActions | Action(s) to apply to the channel
    -
    -try {
    -    $result = $api_instance->devicesetChannelActionsPost($deviceSetIndex, $channelIndex, $body);
    -    print_r($result);
    -} catch (Exception $e) {
    -    echo 'Exception when calling DevicesetApi->devicesetChannelActionsPost: ', $e->getMessage(), PHP_EOL;
    -}
    -?>
    -
    - -
    -
    use Data::Dumper;
    -use SWGSDRangel::Configuration;
    -use SWGSDRangel::DevicesetApi;
    -
    -my $api_instance = SWGSDRangel::DevicesetApi->new();
    -my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    -my $channelIndex = 56; # Integer | Index of the channel in the channels list for this device set
    -my $body = SWGSDRangel::Object::ChannelActions->new(); # ChannelActions | Action(s) to apply to the channel
    -
    -eval { 
    -    my $result = $api_instance->devicesetChannelActionsPost(deviceSetIndex => $deviceSetIndex, channelIndex => $channelIndex, body => $body);
    -    print Dumper($result);
    -};
    -if ($@) {
    -    warn "Exception when calling DevicesetApi->devicesetChannelActionsPost: $@\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.DevicesetApi()
    -deviceSetIndex = 56 # Integer | Index of device set in the device set list
    -channelIndex = 56 # Integer | Index of the channel in the channels list for this device set
    -body =  # ChannelActions | Action(s) to apply to the channel
    -
    -try: 
    -    api_response = api_instance.deviceset_channel_actions_post(deviceSetIndex, channelIndex, body)
    -    pprint(api_response)
    -except ApiException as e:
    -    print("Exception when calling DevicesetApi->devicesetChannelActionsPost: %s\n" % e)
    -
    -
    - -

    Parameters

    - -
    Path parameters
    - - - - - - - - - - - - - -
    NameDescription
    deviceSetIndex* - - -
    -
    -
    - - Integer - - -
    - Index of device set in the device set list -
    -
    -
    - Required -
    -
    -
    -
    channelIndex* - - -
    -
    -
    - - Integer - - -
    - Index of the channel in the channels list for this device set -
    -
    -
    - Required -
    -
    -
    -
    - - -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -
    - - - -

    Responses

    -

    Status: 202 - Message to perform action was sent successfully

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 400 - Invalid device set or channel index

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 404 - Device or channel not found

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 500 - Error

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 501 - Function not implemented

    - - - -
    -
    -
    - -
    - -
    -
    - -
    -
    -
    -
    -
    -
    -

    devicesetDeviceActionsPost

    -

    -
    -
    -
    -

    -

    post an action on a device

    -

    -
    -
    /sdrangel/deviceset/{deviceSetIndex}/device/actions
    -

    -

    Usage and SDK Samples

    -

    - - -
    -
    -
    curl -X POST "http://localhost/sdrangel/deviceset/{deviceSetIndex}/device/actions"
    -
    -
    -
    import SWGSDRangel.*;
    -import SWGSDRangel.auth.*;
    -import SWGSDRangel.model.*;
    -import SWGSDRangel.api.DevicesetApi;
    -
    -import java.io.File;
    -import java.util.*;
    -
    -public class DevicesetApiExample {
    -
    -    public static void main(String[] args) {
    -        
    -        DevicesetApi apiInstance = new DevicesetApi();
    -        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -        DeviceActions body = ; // DeviceActions | Action(s) to apply to the device
    -        try {
    -            SuccessResponse result = apiInstance.devicesetDeviceActionsPost(deviceSetIndex, body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DevicesetApi#devicesetDeviceActionsPost");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    - -
    -
    import SWGSDRangel.api.DevicesetApi;
    -
    -public class DevicesetApiExample {
    -
    -    public static void main(String[] args) {
    -        DevicesetApi apiInstance = new DevicesetApi();
    -        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -        DeviceActions body = ; // DeviceActions | Action(s) to apply to the device
    -        try {
    -            SuccessResponse result = apiInstance.devicesetDeviceActionsPost(deviceSetIndex, body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DevicesetApi#devicesetDeviceActionsPost");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    - -
    -
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    -DeviceActions *body = ; // Action(s) to apply to the device
    -
    -DevicesetApi *apiInstance = [[DevicesetApi alloc] init];
    -
    -[apiInstance devicesetDeviceActionsPostWith:deviceSetIndex
    -    body:body
    -              completionHandler: ^(SuccessResponse output, NSError* error) {
    -                            if (output) {
    -                                NSLog(@"%@", output);
    -                            }
    -                            if (error) {
    -                                NSLog(@"Error: %@", error);
    -                            }
    -                        }];
    -
    -
    - -
    -
    var SdRangel = require('sd_rangel');
    -
    -var api = new SdRangel.DevicesetApi()
    -
    -var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
    -
    -var body = ; // {DeviceActions} Action(s) to apply to the device
    -
    -
    -var callback = function(error, data, response) {
    -  if (error) {
    -    console.error(error);
    -  } else {
    -    console.log('API called successfully. Returned data: ' + data);
    -  }
    -};
    -api.devicesetDeviceActionsPost(deviceSetIndex, body, callback);
    -
    -
    - - -
    -
    using System;
    -using System.Diagnostics;
    -using SWGSDRangel.Api;
    -using SWGSDRangel.Client;
    -using SWGSDRangel.Model;
    -
    -namespace Example
    -{
    -    public class devicesetDeviceActionsPostExample
    -    {
    -        public void main()
    -        {
    -            
    -            var apiInstance = new DevicesetApi();
    -            var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    -            var body = new DeviceActions(); // DeviceActions | Action(s) to apply to the device
    -
    -            try
    -            {
    -                SuccessResponse result = apiInstance.devicesetDeviceActionsPost(deviceSetIndex, body);
    -                Debug.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Debug.Print("Exception when calling DevicesetApi.devicesetDeviceActionsPost: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -
    - -
    -
    <?php
    -require_once(__DIR__ . '/vendor/autoload.php');
    -
    -$api_instance = new Swagger\Client\Api\DevicesetApi();
    -$deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -$body = ; // DeviceActions | Action(s) to apply to the device
    -
    -try {
    -    $result = $api_instance->devicesetDeviceActionsPost($deviceSetIndex, $body);
    -    print_r($result);
    -} catch (Exception $e) {
    -    echo 'Exception when calling DevicesetApi->devicesetDeviceActionsPost: ', $e->getMessage(), PHP_EOL;
    -}
    -?>
    -
    - -
    -
    use Data::Dumper;
    -use SWGSDRangel::Configuration;
    -use SWGSDRangel::DevicesetApi;
    -
    -my $api_instance = SWGSDRangel::DevicesetApi->new();
    -my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    -my $body = SWGSDRangel::Object::DeviceActions->new(); # DeviceActions | Action(s) to apply to the device
    -
    -eval { 
    -    my $result = $api_instance->devicesetDeviceActionsPost(deviceSetIndex => $deviceSetIndex, body => $body);
    -    print Dumper($result);
    -};
    -if ($@) {
    -    warn "Exception when calling DevicesetApi->devicesetDeviceActionsPost: $@\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.DevicesetApi()
    -deviceSetIndex = 56 # Integer | Index of device set in the device set list
    -body =  # DeviceActions | Action(s) to apply to the device
    -
    -try: 
    -    api_response = api_instance.deviceset_device_actions_post(deviceSetIndex, body)
    -    pprint(api_response)
    -except ApiException as e:
    -    print("Exception when calling DevicesetApi->devicesetDeviceActionsPost: %s\n" % e)
    -
    -
    - -

    Parameters

    - -
    Path parameters
    - - - - - - - - - -
    NameDescription
    deviceSetIndex* - - -
    -
    -
    - - Integer - - -
    - Index of device set in the device set list -
    -
    -
    - Required -
    -
    -
    -
    - - -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -
    - - - -

    Responses

    -

    Status: 202 - Message to perform action was sent successfully

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 400 - Invalid device set index

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 404 - Device not found

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 500 - Error

    - - - -
    -
    -
    - -
    - -
    -
    - -

    Status: 501 - Function not implemented

    - - - -
    -
    -
    - -
    - -
    -
    - -
    -
    -
    -

    Instance

    @@ -33188,7 +33184,7 @@ except ApiException as e:
    - Generated 2020-03-10T08:19:16.942+01:00 + Generated 2020-03-10T15:10:25.920+01:00
    diff --git a/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.cpp b/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.cpp index 641cee939..1db5fb7bd 100644 --- a/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.cpp @@ -28,6 +28,65 @@ SWGDeviceSetApi::SWGDeviceSetApi(QString host, QString basePath) { this->basePath = basePath; } +void +SWGDeviceSetApi::devicesetChannelActionsPost(qint32 device_set_index, qint32 channel_index, SWGChannelActions& body) { + QString fullPath; + fullPath.append(this->host).append(this->basePath).append("/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/actions"); + + QString device_set_indexPathParam("{"); device_set_indexPathParam.append("deviceSetIndex").append("}"); + fullPath.replace(device_set_indexPathParam, stringValue(device_set_index)); + QString channel_indexPathParam("{"); channel_indexPathParam.append("channelIndex").append("}"); + fullPath.replace(channel_indexPathParam, stringValue(channel_index)); + + + SWGHttpRequestWorker *worker = new SWGHttpRequestWorker(); + SWGHttpRequestInput input(fullPath, "POST"); + + + + 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, + &SWGDeviceSetApi::devicesetChannelActionsPostCallback); + + worker->execute(&input); +} + +void +SWGDeviceSetApi::devicesetChannelActionsPostCallback(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); + SWGSuccessResponse* output = static_cast(create(json, QString("SWGSuccessResponse"))); + worker->deleteLater(); + + if (worker->error_type == QNetworkReply::NoError) { + emit devicesetChannelActionsPostSignal(output); + } else { + emit devicesetChannelActionsPostSignalE(output, error_type, error_str); + emit devicesetChannelActionsPostSignalEFull(worker, error_type, error_str); + } +} + void SWGDeviceSetApi::devicesetChannelDelete(qint32 device_set_index, qint32 channel_index) { QString fullPath; @@ -425,6 +484,63 @@ SWGDeviceSetApi::devicesetChannelsReportGetCallback(SWGHttpRequestWorker * worke } } +void +SWGDeviceSetApi::devicesetDeviceActionsPost(qint32 device_set_index, SWGDeviceActions& body) { + QString fullPath; + fullPath.append(this->host).append(this->basePath).append("/sdrangel/deviceset/{deviceSetIndex}/device/actions"); + + QString device_set_indexPathParam("{"); device_set_indexPathParam.append("deviceSetIndex").append("}"); + fullPath.replace(device_set_indexPathParam, stringValue(device_set_index)); + + + SWGHttpRequestWorker *worker = new SWGHttpRequestWorker(); + SWGHttpRequestInput input(fullPath, "POST"); + + + + 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, + &SWGDeviceSetApi::devicesetDeviceActionsPostCallback); + + worker->execute(&input); +} + +void +SWGDeviceSetApi::devicesetDeviceActionsPostCallback(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); + SWGSuccessResponse* output = static_cast(create(json, QString("SWGSuccessResponse"))); + worker->deleteLater(); + + if (worker->error_type == QNetworkReply::NoError) { + emit devicesetDeviceActionsPostSignal(output); + } else { + emit devicesetDeviceActionsPostSignalE(output, error_type, error_str); + emit devicesetDeviceActionsPostSignalEFull(worker, error_type, error_str); + } +} + void SWGDeviceSetApi::devicesetDevicePut(qint32 device_set_index, SWGDeviceListItem& body) { QString fullPath; diff --git a/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.h b/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.h index 2a7520687..c6a3179b6 100644 --- a/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.h +++ b/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.h @@ -15,9 +15,11 @@ #include "SWGHttpRequest.h" +#include "SWGChannelActions.h" #include "SWGChannelReport.h" #include "SWGChannelSettings.h" #include "SWGChannelsDetail.h" +#include "SWGDeviceActions.h" #include "SWGDeviceListItem.h" #include "SWGDeviceReport.h" #include "SWGDeviceSet.h" @@ -42,6 +44,7 @@ public: QString basePath; QMap defaultHeaders; + void devicesetChannelActionsPost(qint32 device_set_index, qint32 channel_index, SWGChannelActions& body); void devicesetChannelDelete(qint32 device_set_index, qint32 channel_index); void devicesetChannelPost(qint32 device_set_index, SWGChannelSettings& body); void devicesetChannelReportGet(qint32 device_set_index, qint32 channel_index); @@ -49,6 +52,7 @@ public: void devicesetChannelSettingsPatch(qint32 device_set_index, qint32 channel_index, SWGChannelSettings& body); void devicesetChannelSettingsPut(qint32 device_set_index, qint32 channel_index, SWGChannelSettings& body); void devicesetChannelsReportGet(qint32 device_set_index); + void devicesetDeviceActionsPost(qint32 device_set_index, SWGDeviceActions& body); void devicesetDevicePut(qint32 device_set_index, SWGDeviceListItem& body); void devicesetDeviceReportGet(qint32 device_set_index); void devicesetDeviceRunDelete(qint32 device_set_index, SWGDeviceSettings& body); @@ -66,6 +70,7 @@ public: void instanceDeviceSetPost(qint32 direction); private: + void devicesetChannelActionsPostCallback (SWGHttpRequestWorker * worker); void devicesetChannelDeleteCallback (SWGHttpRequestWorker * worker); void devicesetChannelPostCallback (SWGHttpRequestWorker * worker); void devicesetChannelReportGetCallback (SWGHttpRequestWorker * worker); @@ -73,6 +78,7 @@ private: void devicesetChannelSettingsPatchCallback (SWGHttpRequestWorker * worker); void devicesetChannelSettingsPutCallback (SWGHttpRequestWorker * worker); void devicesetChannelsReportGetCallback (SWGHttpRequestWorker * worker); + void devicesetDeviceActionsPostCallback (SWGHttpRequestWorker * worker); void devicesetDevicePutCallback (SWGHttpRequestWorker * worker); void devicesetDeviceReportGetCallback (SWGHttpRequestWorker * worker); void devicesetDeviceRunDeleteCallback (SWGHttpRequestWorker * worker); @@ -90,6 +96,7 @@ private: void instanceDeviceSetPostCallback (SWGHttpRequestWorker * worker); signals: + void devicesetChannelActionsPostSignal(SWGSuccessResponse* summary); void devicesetChannelDeleteSignal(SWGChannelSettings* summary); void devicesetChannelPostSignal(SWGSuccessResponse* summary); void devicesetChannelReportGetSignal(SWGChannelReport* summary); @@ -97,6 +104,7 @@ signals: void devicesetChannelSettingsPatchSignal(SWGChannelSettings* summary); void devicesetChannelSettingsPutSignal(SWGChannelSettings* summary); void devicesetChannelsReportGetSignal(SWGChannelsDetail* summary); + void devicesetDeviceActionsPostSignal(SWGSuccessResponse* summary); void devicesetDevicePutSignal(SWGDeviceListItem* summary); void devicesetDeviceReportGetSignal(SWGDeviceReport* summary); void devicesetDeviceRunDeleteSignal(SWGDeviceState* summary); @@ -113,6 +121,7 @@ signals: void instanceDeviceSetDeleteSignal(SWGSuccessResponse* summary); void instanceDeviceSetPostSignal(SWGSuccessResponse* summary); + void devicesetChannelActionsPostSignalE(SWGSuccessResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetChannelDeleteSignalE(SWGChannelSettings* summary, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetChannelPostSignalE(SWGSuccessResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetChannelReportGetSignalE(SWGChannelReport* summary, QNetworkReply::NetworkError error_type, QString& error_str); @@ -120,6 +129,7 @@ signals: void devicesetChannelSettingsPatchSignalE(SWGChannelSettings* summary, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetChannelSettingsPutSignalE(SWGChannelSettings* summary, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetChannelsReportGetSignalE(SWGChannelsDetail* summary, QNetworkReply::NetworkError error_type, QString& error_str); + void devicesetDeviceActionsPostSignalE(SWGSuccessResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetDevicePutSignalE(SWGDeviceListItem* summary, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetDeviceReportGetSignalE(SWGDeviceReport* summary, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetDeviceRunDeleteSignalE(SWGDeviceState* summary, QNetworkReply::NetworkError error_type, QString& error_str); @@ -136,6 +146,7 @@ signals: void instanceDeviceSetDeleteSignalE(SWGSuccessResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str); void instanceDeviceSetPostSignalE(SWGSuccessResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str); + void devicesetChannelActionsPostSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetChannelDeleteSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetChannelPostSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetChannelReportGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); @@ -143,6 +154,7 @@ signals: void devicesetChannelSettingsPatchSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetChannelSettingsPutSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetChannelsReportGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); + void devicesetDeviceActionsPostSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetDevicePutSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetDeviceReportGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetDeviceRunDeleteSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);