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

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

Instance Method Summary collapse

Methods inherited from Base

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

Methods inherited from Hash

#symbolize_keys!

Constructor Details

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

Instance Method Details

#catalogObject



253
254
255
# File 'lib/fog/ecloud/mock_data_classes.rb', line 253

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

#cpu_allocatedObject



245
246
247
# File 'lib/fog/ecloud/mock_data_classes.rb', line 245

def cpu_allocated
  self[:cpu_allocated] || 10000
end

#firewall_aclsObject



278
279
280
# File 'lib/fog/ecloud/mock_data_classes.rb', line 278

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

#internet_service_collectionObject



274
275
276
# File 'lib/fog/ecloud/mock_data_classes.rb', line 274

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

#memory_allocatedObject



249
250
251
# File 'lib/fog/ecloud/mock_data_classes.rb', line 249

def memory_allocated
  self[:memory_allocated] || 20480
end

#nameObject



233
234
235
# File 'lib/fog/ecloud/mock_data_classes.rb', line 233

def name
  self[:name]
end

#networksObject



257
258
259
# File 'lib/fog/ecloud/mock_data_classes.rb', line 257

def networks
  @networks ||= []
end

#public_ip_collectionObject

for TM eCloud, should probably be subclassed



270
271
272
# File 'lib/fog/ecloud/mock_data_classes.rb', line 270

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

#storage_allocatedObject



237
238
239
# File 'lib/fog/ecloud/mock_data_classes.rb', line 237

def storage_allocated
  self[:storage_allocated] || 200
end

#storage_usedObject



241
242
243
# File 'lib/fog/ecloud/mock_data_classes.rb', line 241

def storage_used
  self[:storage_used] || 105
end

#task_listObject



265
266
267
# File 'lib/fog/ecloud/mock_data_classes.rb', line 265

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

#virtual_machinesObject



261
262
263
# File 'lib/fog/ecloud/mock_data_classes.rb', line 261

def virtual_machines
  @virtual_machines ||= []
end