class Occi::Infrastructure::Compute

Public Instance Methods

architecture() click to toggle source
# File lib/occi/infrastructure/compute.rb, line 60
def architecture
  @attributes.occi_.compute_.architecture
end
architecture=(architecture) click to toggle source
# File lib/occi/infrastructure/compute.rb, line 64
def architecture=(architecture)
  @attributes.occi!.compute!.architecture = architecture
end
cores() click to toggle source
# File lib/occi/infrastructure/compute.rb, line 68
def cores
  @attributes.occi_.compute_.cores
end
cores=(cores) click to toggle source
# File lib/occi/infrastructure/compute.rb, line 72
def cores=(cores)
  @attributes.occi!.compute!.cores = cores
end
hostname() click to toggle source
# File lib/occi/infrastructure/compute.rb, line 76
def hostname
  @attributes.occi_.compute_.hostname
end
hostname=(hostname) click to toggle source
# File lib/occi/infrastructure/compute.rb, line 80
def hostname=(hostname)
  @attributes.occi!.compute!.hostname = hostname
end
memory() click to toggle source
# File lib/occi/infrastructure/compute.rb, line 92
def memory
  @attributes.occi_.compute_.memory
end
memory=(memory) click to toggle source
# File lib/occi/infrastructure/compute.rb, line 96
def memory=(memory)
  @attributes.occi!.compute!.memory = memory
end
networkinterface(target, mixins=[], attributes=Occi::Core::Attributes.new, kind=Occi::Infrastructure::Networkinterface.kind) click to toggle source
# File lib/occi/infrastructure/compute.rb, line 112
def networkinterface(target, mixins=[], attributes=Occi::Core::Attributes.new, kind=Occi::Infrastructure::Networkinterface.kind)
  link(target, kind, mixins, attributes, rel=Occi::Infrastructure::Network.type_identifier)
end
networkinterfaces() click to toggle source
# File lib/occi/infrastructure/compute.rb, line 120
def networkinterfaces
  @links.select { |link| link.kind == Occi::Infrastructure::Networkinterface.kind }
end
speed() click to toggle source
# File lib/occi/infrastructure/compute.rb, line 84
def speed
  @attributes.occi_.compute_.speed
end
speed=(speed) click to toggle source
# File lib/occi/infrastructure/compute.rb, line 88
def speed=(speed)
  @attributes.occi!.compute!.speed = speed
end
state() click to toggle source
# File lib/occi/infrastructure/compute.rb, line 100
def state
  @attributes.occi_.compute_.state
end
state=(state) click to toggle source
# File lib/occi/infrastructure/compute.rb, line 104
def state=(state)
  @attributes.occi!.compute!.state = state
end