Class: OPNsenseAPI::Core::Diagnostics::LVTemplate

Inherits:
Object
  • Object
show all
Includes:
OPNsenseAPI::Core
Defined in:
lib/opnsense_api/core/diagnostics/lv_template.rb

Constant Summary collapse

BASE_PATH =
'/diagnostics/lvtemplate'

Instance Method Summary collapse

Methods included from OPNsenseAPI::Core

#initialize

Instance Method Details

#add_item(body = {}) ⇒ Object



26
27
28
# File 'lib/opnsense_api/core/diagnostics/lv_template.rb', line 26

def add_item(body = {})
  @client.post("#{BASE_PATH}/addItem", body)
end

#del_item(uuid:) ⇒ Object



30
31
32
# File 'lib/opnsense_api/core/diagnostics/lv_template.rb', line 30

def del_item(uuid:)
  @client.post("#{BASE_PATH}/delItem/#{uuid}")
end

#get(params = {}) ⇒ Object



34
35
36
# File 'lib/opnsense_api/core/diagnostics/lv_template.rb', line 34

def get(params = {})
  @client.get("#{BASE_PATH}/get", params)
end

#get_item(uuid: nil) ⇒ Object



38
39
40
# File 'lib/opnsense_api/core/diagnostics/lv_template.rb', line 38

def get_item(uuid: nil)
  @client.get("#{BASE_PATH}/getItem/#{uuid}")
end

#search_item(body = {}) ⇒ Object



42
43
44
# File 'lib/opnsense_api/core/diagnostics/lv_template.rb', line 42

def search_item(body = {})
  @client.post("#{BASE_PATH}/searchItem", body)
end

#set(body = {}) ⇒ Object



46
47
48
# File 'lib/opnsense_api/core/diagnostics/lv_template.rb', line 46

def set(body = {})
  @client.post("#{BASE_PATH}/set", body)
end

#set_item(uuid:, body: {}) ⇒ Object



50
51
52
# File 'lib/opnsense_api/core/diagnostics/lv_template.rb', line 50

def set_item(uuid:, body: {})
  @client.post("#{BASE_PATH}/setItem/#{uuid}", body)
end