Class: Occi::Infrastructure::Compute
Defined Under Namespace
Classes: Restart, Start, Stop, Suspend
Instance Attribute Summary
#links
Attributes inherited from Core::Entity
#actions, #attributes, #id, #kind, #mixins, #model
Class Method Summary
collapse
Instance Method Summary
collapse
#as_json, #initialize, #link, #model=, #summary, #summary=, #to_header, #to_text
#as_json, check, #check, #initialize, #inspect, #location, new, #title, #title=, #to_header, #to_s, #to_text, type_identifier
Instance Method Details
#architecture ⇒ Object
93
94
95
|
# File 'lib/occi/infrastructure/compute.rb', line 93
def architecture
@attributes.occi.compute.architecture if @attributes.occi.compute if @attributes.occi
end
|
#architecture=(architecture) ⇒ Object
97
98
99
|
# File 'lib/occi/infrastructure/compute.rb', line 97
def architecture=(architecture)
@attributes.occi!.compute!.architecture = architecture
end
|
#cores ⇒ Object
101
102
103
|
# File 'lib/occi/infrastructure/compute.rb', line 101
def cores
@attributes.occi.compute.cores if @attributes.occi.compute if @attributes.occi
end
|
#cores=(cores) ⇒ Object
105
106
107
|
# File 'lib/occi/infrastructure/compute.rb', line 105
def cores=(cores)
@attributes.occi!.compute!.cores = cores
end
|
#hostname ⇒ Object
109
110
111
|
# File 'lib/occi/infrastructure/compute.rb', line 109
def hostname
@attributes.occi.compute.hostname if @attributes.occi.compute if @attributes.occi
end
|
#hostname=(hostname) ⇒ Object
113
114
115
|
# File 'lib/occi/infrastructure/compute.rb', line 113
def hostname=(hostname)
@attributes.occi!.compute!.hostname = hostname
end
|
#memory ⇒ Object
125
126
127
|
# File 'lib/occi/infrastructure/compute.rb', line 125
def memory
@attributes.occi.compute.memory if @attributes.occi.compute if @attributes.occi
end
|
#memory=(memory) ⇒ Object
129
130
131
|
# File 'lib/occi/infrastructure/compute.rb', line 129
def memory=(memory)
@attributes.occi!.compute!.memory = memory
end
|
#networkinterface(target, mixins = [], attributes = Occi::Core::Attributes.new) ⇒ Object
145
146
147
|
# File 'lib/occi/infrastructure/compute.rb', line 145
def networkinterface(target, mixins=[], attributes=Occi::Core::Attributes.new)
link(target, Occi::Infrastructure::Networkinterface.kind, mixins, attributes)
end
|
#networkinterfaces ⇒ Object
#speed ⇒ Object
117
118
119
|
# File 'lib/occi/infrastructure/compute.rb', line 117
def speed
@attributes.occi.compute.speed if @attributes.occi.compute if @attributes.occi
end
|
#speed=(speed) ⇒ Object
121
122
123
|
# File 'lib/occi/infrastructure/compute.rb', line 121
def speed=(speed)
@attributes.occi!.compute!.speed = speed
end
|
#state ⇒ Object
133
134
135
|
# File 'lib/occi/infrastructure/compute.rb', line 133
def state
@attributes.occi.compute.state if @attributes.occi.compute if @attributes.occi
end
|
#state=(state) ⇒ Object
137
138
139
|
# File 'lib/occi/infrastructure/compute.rb', line 137
def state=(state)
@attributes.occi!.compute!.state = state
end
|
#storagelink(target, mixins = [], attributes = Occi::Core::Attributes.new) ⇒ Object
141
142
143
|
# File 'lib/occi/infrastructure/compute.rb', line 141
def storagelink(target, mixins=[], attributes=Occi::Core::Attributes.new)
link(target, Occi::Infrastructure::Storagelink.kind, mixins, attributes, rel=Occi::Infrastructure::Storage.type_identifier)
end
|