class Evostream::Commands::Destroy
Abstract class for create element
Constants
- MANDATORY
Attributes
command[R]
Public Class Methods
new(commands = { group_name: 'null', remove_hls_hds_files: 1 })
click to toggle source
Calls superclass method
Evostream::Commands::Command::new
# File lib/evostream/event/commands/destroy.rb, line 10 def initialize(commands = { group_name: 'null', remove_hls_hds_files: 1 }) super(commands) end
Public Instance Methods
cmd()
click to toggle source
Calls superclass method
Evostream::Commands::Command#cmd
# File lib/evostream/event/commands/destroy.rb, line 14 def cmd super "removeConfig?params=#{encode64}" end
Private Instance Methods
group_name(param = 'null')
click to toggle source
The name of the group that needs to be removed (applicable to HLS, HDS and external processes). *Mandatory only if the id parameter is not specified.
# File lib/evostream/event/commands/destroy.rb, line 33 def group_name(param = 'null') "groupName=#{param}" end
id(param = 'null')
click to toggle source
The configId of the configuration that needs to be removed. ConfigIds can be obtained from the listConfig interface. Removing an inbound stream will also automatically remove all associated outbound streams.
# File lib/evostream/event/commands/destroy.rb, line 26 def id(param = 'null') "id=#{param}" end
remove_hls_hds_files(param = 0)
click to toggle source
If 1 (true) and the stream is HLS or HDS, the folder associated with it will be removed
# File lib/evostream/event/commands/destroy.rb, line 39 def remove_hls_hds_files(param = 0) "removeHlsHdsFiles=#{param}" end