Class: Fog::Ecloud::MockDataClasses::MockVdc

Inherits:
Base
  • Object
show all
Defined in:
lib/fog/compute/ecloud.rb

Instance Method Summary collapse

Methods inherited from Base

#_parent, base_url, #base_url, base_url=, #first, #href, #initialize, #inspect, #last

Constructor Details

This class inherits a constructor from Fog::Ecloud::MockDataClasses::Base

Instance Method Details

#catalogObject



284
285
286
# File 'lib/fog/compute/ecloud.rb', line 284

def catalog
  @catalog ||= MockCatalog.new({}, self)
end

#cpu_allocatedObject



276
277
278
# File 'lib/fog/compute/ecloud.rb', line 276

def cpu_allocated
  self[:cpu_allocated] || 10000
end

#firewall_aclsObject



309
310
311
# File 'lib/fog/compute/ecloud.rb', line 309

def firewall_acls
  @firewall_acls ||= MockFirewallAcls.new({}, self)
end

#internet_service_collectionObject



305
306
307
# File 'lib/fog/compute/ecloud.rb', line 305

def internet_service_collection
  @internet_service_collection ||= MockVdcInternetServices.new({}, self)
end

#memory_allocatedObject



280
281
282
# File 'lib/fog/compute/ecloud.rb', line 280

def memory_allocated
  self[:memory_allocated] || 20480
end

#nameObject



264
265
266
# File 'lib/fog/compute/ecloud.rb', line 264

def name
  self[:name]
end

#networksObject



288
289
290
# File 'lib/fog/compute/ecloud.rb', line 288

def networks
  @networks ||= []
end

#public_ip_collectionObject

for TM eCloud, should probably be subclassed



301
302
303
# File 'lib/fog/compute/ecloud.rb', line 301

def public_ip_collection
  @public_ip_collection ||= MockPublicIps.new({}, self)
end

#storage_allocatedObject



268
269
270
# File 'lib/fog/compute/ecloud.rb', line 268

def storage_allocated
  self[:storage_allocated] || 200
end

#storage_usedObject



272
273
274
# File 'lib/fog/compute/ecloud.rb', line 272

def storage_used
  self[:storage_used] || 105
end

#task_listObject



296
297
298
# File 'lib/fog/compute/ecloud.rb', line 296

def task_list
  @task_list ||= MockTaskList.new({}, self)
end

#virtual_machinesObject



292
293
294
# File 'lib/fog/compute/ecloud.rb', line 292

def virtual_machines
  @virtual_machines ||= []
end