Class: VCloudSdk::Xml::IpScope

Inherits:
Wrapper
  • Object
show all
Defined in:
lib/cloud/vcloud/xml/wrapper_classes/ip_scope.rb

Instance Method Summary collapse

Methods inherited from Wrapper

#==, #[], #[]=, #add_child, #attribute_with_ns, #content, #content=, #create_child, #create_qualified_name, #create_xpath_query, #doc_namespaces, #error, #get_nodes, #href, #href_id, #initialize, #name, #name=, #to_s, #type, #urn, #xpath

Constructor Details

This class inherits a constructor from VCloudSdk::Xml::Wrapper

Instance Method Details

#end_addressObject



41
42
43
44
45
46
47
# File 'lib/cloud/vcloud/xml/wrapper_classes/ip_scope.rb', line 41

def end_address
  nodes = get_nodes("EndAddress")
  return nil unless nodes
  node = nodes.first
  return nil unless node
  return node.content
end

#end_address=(value) ⇒ Object



49
50
51
# File 'lib/cloud/vcloud/xml/wrapper_classes/ip_scope.rb', line 49

def end_address=(value)
  get_nodes("EndAddress").first.content = value
end

#gatewayObject



13
14
15
# File 'lib/cloud/vcloud/xml/wrapper_classes/ip_scope.rb', line 13

def gateway
  get_nodes("Gateway").first.content
end

#gateway=(value) ⇒ Object



17
18
19
# File 'lib/cloud/vcloud/xml/wrapper_classes/ip_scope.rb', line 17

def gateway=(value)
  get_nodes("Gateway").first.content = value
end

#is_inherited=(value) ⇒ Object



9
10
11
# File 'lib/cloud/vcloud/xml/wrapper_classes/ip_scope.rb', line 9

def is_inherited=(value)
  get_nodes("IsInherited").first.content = value
end

#is_inherited?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/cloud/vcloud/xml/wrapper_classes/ip_scope.rb', line 5

def is_inherited?
  get_nodes("IsInherited").first.content
end

#netmaskObject



21
22
23
# File 'lib/cloud/vcloud/xml/wrapper_classes/ip_scope.rb', line 21

def netmask
  get_nodes("Netmask").first.content
end

#netmask=(value) ⇒ Object



25
26
27
# File 'lib/cloud/vcloud/xml/wrapper_classes/ip_scope.rb', line 25

def netmask=(value)
  get_nodes("Netmask").first.content = value
end

#start_addressObject



29
30
31
32
33
34
35
# File 'lib/cloud/vcloud/xml/wrapper_classes/ip_scope.rb', line 29

def start_address
  nodes = get_nodes("StartAddress")
  return nil unless nodes
  node = nodes.first
  return nil unless node
  return node.content
end

#start_address=(value) ⇒ Object



37
38
39
# File 'lib/cloud/vcloud/xml/wrapper_classes/ip_scope.rb', line 37

def start_address=(value)
  get_nodes("StartAddress").first.content = value
end