class Fog::Ecloud::MockDataClasses::MockVdc
Public Instance Methods
catalog()
click to toggle source
# File lib/fog/ecloud/mock_data_classes.rb, line 251 def catalog @catalog ||= MockCatalog.new({}, self) end
cpu_allocated()
click to toggle source
# File lib/fog/ecloud/mock_data_classes.rb, line 243 def cpu_allocated self[:cpu_allocated] || 10000 end
firewall_acls()
click to toggle source
# File lib/fog/ecloud/mock_data_classes.rb, line 276 def firewall_acls @firewall_acls ||= MockFirewallAcls.new({}, self) end
internet_service_collection()
click to toggle source
# File lib/fog/ecloud/mock_data_classes.rb, line 272 def internet_service_collection @internet_service_collection ||= MockVdcInternetServices.new({}, self) end
memory_allocated()
click to toggle source
# File lib/fog/ecloud/mock_data_classes.rb, line 247 def memory_allocated self[:memory_allocated] || 20480 end
name()
click to toggle source
# File lib/fog/ecloud/mock_data_classes.rb, line 231 def name self[:name] end
networks()
click to toggle source
# File lib/fog/ecloud/mock_data_classes.rb, line 255 def networks @networks ||= [] end
public_ip_collection()
click to toggle source
for TM eCloud, should probably be subclassed
# File lib/fog/ecloud/mock_data_classes.rb, line 268 def public_ip_collection @public_ip_collection ||= MockPublicIps.new({}, self) end
storage_allocated()
click to toggle source
# File lib/fog/ecloud/mock_data_classes.rb, line 235 def storage_allocated self[:storage_allocated] || 200 end
storage_used()
click to toggle source
# File lib/fog/ecloud/mock_data_classes.rb, line 239 def storage_used self[:storage_used] || 105 end
task_list()
click to toggle source
# File lib/fog/ecloud/mock_data_classes.rb, line 263 def task_list @task_list ||= MockTaskList.new({}, self) end
virtual_machines()
click to toggle source
# File lib/fog/ecloud/mock_data_classes.rb, line 259 def virtual_machines @virtual_machines ||= [] end