Class: OPNsenseAPI::Core::IPSec::PreSharedKeys

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

Overview

Constant Summary collapse

BASE_PATH =
'/ipsec/pre_shared_keys'

Instance Method Summary collapse

Methods included from OPNsenseAPI::Core

#initialize

Instance Method Details

#add_item(body = {}) ⇒ Object



27
28
29
# File 'lib/opnsense_api/core/ipsec/pre_shared_keys.rb', line 27

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

#del_item(uuid:) ⇒ Object



31
32
33
# File 'lib/opnsense_api/core/ipsec/pre_shared_keys.rb', line 31

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

#get(params = {}) ⇒ Object



35
36
37
# File 'lib/opnsense_api/core/ipsec/pre_shared_keys.rb', line 35

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

#get_item(uuid: nil) ⇒ Object



39
40
41
# File 'lib/opnsense_api/core/ipsec/pre_shared_keys.rb', line 39

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

#reconfigure(body = {}) ⇒ Object



43
44
45
# File 'lib/opnsense_api/core/ipsec/pre_shared_keys.rb', line 43

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

#search_item(body = {}) ⇒ Object



47
48
49
# File 'lib/opnsense_api/core/ipsec/pre_shared_keys.rb', line 47

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

#set(body = {}) ⇒ Object



51
52
53
# File 'lib/opnsense_api/core/ipsec/pre_shared_keys.rb', line 51

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

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



55
56
57
# File 'lib/opnsense_api/core/ipsec/pre_shared_keys.rb', line 55

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