Class: Softlayer::Network::Firewall::Update::Request::Rule

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/network/firewall/update/request/rule.rb,
lib/softlayer/network/firewall/update/request/rule/version6.rb

Direct Known Subclasses

Version6

Defined Under Namespace

Classes: Representer, Version6

Constant Summary collapse

SERVICE =
'SoftLayer_Network_Firewall_Update_Request_Rule'

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

all, all_request_for, create, find, #init_headers, parse, process_message, #request, request, service_name, #service_name, #to_hash, #to_softlayer

Methods included from Model::Operations

extended, #filter, included, #limit, #mask, #request_headers

Instance Attribute Details

#actionObject

Returns the value of attribute action.



9
10
11
# File 'lib/softlayer/network/firewall/update/request/rule.rb', line 9

def action
  @action
end

#destination_ip_addressObject

Returns the value of attribute destination_ip_address.



10
11
12
# File 'lib/softlayer/network/firewall/update/request/rule.rb', line 10

def destination_ip_address
  @destination_ip_address
end

#destination_ip_cidrObject

Returns the value of attribute destination_ip_cidr.



11
12
13
# File 'lib/softlayer/network/firewall/update/request/rule.rb', line 11

def destination_ip_cidr
  @destination_ip_cidr
end

#destination_ip_subnet_maskObject

Returns the value of attribute destination_ip_subnet_mask.



12
13
14
# File 'lib/softlayer/network/firewall/update/request/rule.rb', line 12

def destination_ip_subnet_mask
  @destination_ip_subnet_mask
end

#destination_port_range_endObject

Returns the value of attribute destination_port_range_end.



13
14
15
# File 'lib/softlayer/network/firewall/update/request/rule.rb', line 13

def destination_port_range_end
  @destination_port_range_end
end

#destination_port_range_startObject

Returns the value of attribute destination_port_range_start.



14
15
16
# File 'lib/softlayer/network/firewall/update/request/rule.rb', line 14

def destination_port_range_start
  @destination_port_range_start
end

#firewall_update_requestObject

Returns the value of attribute firewall_update_request.



24
25
26
# File 'lib/softlayer/network/firewall/update/request/rule.rb', line 24

def firewall_update_request
  @firewall_update_request
end

#firewall_update_request_idObject

Returns the value of attribute firewall_update_request_id.



15
16
17
# File 'lib/softlayer/network/firewall/update/request/rule.rb', line 15

def firewall_update_request_id
  @firewall_update_request_id
end

#idObject

Returns the value of attribute id.



16
17
18
# File 'lib/softlayer/network/firewall/update/request/rule.rb', line 16

def id
  @id
end

#notesObject

Returns the value of attribute notes.



17
18
19
# File 'lib/softlayer/network/firewall/update/request/rule.rb', line 17

def notes
  @notes
end

#order_valueObject

Returns the value of attribute order_value.



18
19
20
# File 'lib/softlayer/network/firewall/update/request/rule.rb', line 18

def order_value
  @order_value
end

#protocolObject

Returns the value of attribute protocol.



19
20
21
# File 'lib/softlayer/network/firewall/update/request/rule.rb', line 19

def protocol
  @protocol
end

#source_ip_addressObject

Returns the value of attribute source_ip_address.



20
21
22
# File 'lib/softlayer/network/firewall/update/request/rule.rb', line 20

def source_ip_address
  @source_ip_address
end

#source_ip_cidrObject

Returns the value of attribute source_ip_cidr.



21
22
23
# File 'lib/softlayer/network/firewall/update/request/rule.rb', line 21

def source_ip_cidr
  @source_ip_cidr
end

#source_ip_subnet_maskObject

Returns the value of attribute source_ip_subnet_mask.



22
23
24
# File 'lib/softlayer/network/firewall/update/request/rule.rb', line 22

def source_ip_subnet_mask
  @source_ip_subnet_mask
end

#versionObject

Returns the value of attribute version.



23
24
25
# File 'lib/softlayer/network/firewall/update/request/rule.rb', line 23

def version
  @version
end

Class Method Details

.create_object(message) ⇒ Object

template_object



27
28
29
# File 'lib/softlayer/network/firewall/update/request/rule.rb', line 27

def self.create_object(message)
  request(:create_object, Softlayer::Network::Firewall::Update::Request::Rule, message)
end

.validate_rule(message) ⇒ Object

rule apply_to_component_id apply_to_acl_id



42
43
44
# File 'lib/softlayer/network/firewall/update/request/rule.rb', line 42

def self.validate_rule(message)
  request(:validate_rule, nil, message)
end

Instance Method Details

#get_firewall_update_requestObject



31
32
33
# File 'lib/softlayer/network/firewall/update/request/rule.rb', line 31

def get_firewall_update_request
  request(:get_firewall_update_request, Softlayer::Network::Firewall::Update::Request)
end

#get_objectObject



35
36
37
# File 'lib/softlayer/network/firewall/update/request/rule.rb', line 35

def get_object
  request(:get_object, Softlayer::Network::Firewall::Update::Request::Rule)
end