Module: Lunanode::APIActions::Email

Included in:
Lunanode::APIActions
Defined in:
lib/lunanode/api_actions/email.rb,
lib/lunanode/api_actions/default/email.rb

Instance Method Summary collapse

Instance Method Details

#email_alias_add(domain_id:, name:, target:) ⇒ Object


50
51
52
# File 'lib/lunanode/api_actions/default/email.rb', line 50

def email_alias_add(domain_id:, name:, target:)
  action(:email, :"alias-add", domain_id: domain_id, name: name, target: target)
end

#email_alias_list(domain_id:) ⇒ Object


46
47
48
# File 'lib/lunanode/api_actions/default/email.rb', line 46

def email_alias_list(domain_id:)
  action(:email, :"alias-list", domain_id: domain_id)
end

#email_alias_remove(domain_id:, alias_id:) ⇒ Object


54
55
56
# File 'lib/lunanode/api_actions/default/email.rb', line 54

def email_alias_remove(domain_id:, alias_id:)
  action(:email, :"alias-remove", domain_id: domain_id, alias_id: alias_id)
end

#email_domain_add(name:) ⇒ Object


14
15
16
# File 'lib/lunanode/api_actions/default/email.rb', line 14

def email_domain_add(name:)
  action(:email, :"domain-add", name: name)
end

#email_domain_dkim_set(domain_id:, selector:, private_key:) ⇒ Object


22
23
24
# File 'lib/lunanode/api_actions/default/email.rb', line 22

def email_domain_dkim_set(domain_id:, selector:, private_key:)
  action(:email, :"domain-dkim-set", domain_id: domain_id, selector: selector, private_key: private_key)
end

#email_domain_dkim_unset(domain_id:) ⇒ Object


26
27
28
# File 'lib/lunanode/api_actions/default/email.rb', line 26

def email_domain_dkim_unset(domain_id:)
  action(:email, :"domain-dkim-unset", domain_id: domain_id)
end

#email_domain_listObject


10
11
12
# File 'lib/lunanode/api_actions/default/email.rb', line 10

def email_domain_list
  action(:email, :"domain-list")
end

#email_domain_remove(domain_id:) ⇒ Object


18
19
20
# File 'lib/lunanode/api_actions/default/email.rb', line 18

def email_domain_remove(domain_id:)
  action(:email, :"domain-remove", domain_id: domain_id)
end

#email_usageObject


6
7
8
# File 'lib/lunanode/api_actions/default/email.rb', line 6

def email_usage
  action(:email, :usage)
end

#email_user_add(domain_id:, username:, password:) ⇒ Object


34
35
36
# File 'lib/lunanode/api_actions/default/email.rb', line 34

def email_user_add(domain_id:, username:, password:)
  action(:email, :"user-add", domain_id: domain_id, username: username, password: password)
end

#email_user_list(domain_id:) ⇒ Object


30
31
32
# File 'lib/lunanode/api_actions/default/email.rb', line 30

def email_user_list(domain_id:)
  action(:email, :"user-list", domain_id: domain_id)
end

#email_user_remove(domain_id:, user_id:) ⇒ Object


42
43
44
# File 'lib/lunanode/api_actions/default/email.rb', line 42

def email_user_remove(domain_id:, user_id:)
  action(:email, :"user-remove", domain_id: domain_id, user_id: user_id)
end

#email_user_set_password(domain_id:, user_id:, password:) ⇒ Object


38
39
40
# File 'lib/lunanode/api_actions/default/email.rb', line 38

def email_user_set_password(domain_id:, user_id:, password:)
  action(:email, :"user-set-password", domain_id: domain_id, user_id: user_id, password: password)
end