Module: Lunanode::APIActions::Securitygroup

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

Instance Method Summary collapse

Instance Method Details

#securitygroup_create(region:, name:) ⇒ Object



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

def securitygroup_create(region:, name:)
  action(:securitygroup, :create, region: region, name: name)
end

#securitygroup_delete(region:, group_id:) ⇒ Object



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

def securitygroup_delete(region:, group_id:)
  action(:securitygroup, :delete, region: region, group_id: group_id)
end

#securitygroup_listObject



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

def securitygroup_list
  action(:securitygroup, :list)
end

#securitygroup_rename(region:, group_id:, name:) ⇒ Object



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

def securitygroup_rename(region:, group_id:, name:)
  action(:securitygroup, :rename, region: region, group_id: group_id, name: name)
end

#securitygroup_rule_delete(region:, group_id:, rule_id:) ⇒ Object



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

def securitygroup_rule_delete(region:, group_id:, rule_id:)
  action(:securitygroup, :"rule-delete", region: region, group_id: group_id, rule_id: rule_id)
end

#securitygroup_rule_insert(region:, group_id:, direction:, type:, protocol:, remote_type:, remote_value:, port_min: nil, port_max: nil, label: nil) ⇒ Object



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

def securitygroup_rule_insert(region:, group_id:, direction:, type:, protocol:, remote_type:, remote_value:, port_min: nil, port_max: nil, label: nil)
  action(:securitygroup, :"rule-insert", region: region, group_id: group_id, direction: direction, type: type, protocol: protocol, remote_type: remote_type, remote_value: remote_value, port_min: port_min, port_max: port_max, label: label)
end

#securitygroup_rule_list(region:, group_id:) ⇒ Object



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

def securitygroup_rule_list(region:, group_id:)
  action(:securitygroup, :"rule-list", region: region, group_id: group_id)
end