Class: Fog::Ecloud::MockDataClasses::MockVdc
- Inherits:
-
Base
- Object
- Hash
- Base
- Fog::Ecloud::MockDataClasses::MockVdc
show all
- Defined in:
- lib/rackspace-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!
Instance Method Details
#catalog ⇒ Object
253
254
255
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 253
def catalog
@catalog ||= MockCatalog.new({}, self)
end
|
#cpu_allocated ⇒ Object
245
246
247
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 245
def cpu_allocated
self[:cpu_allocated] || 10000
end
|
#firewall_acls ⇒ Object
278
279
280
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 278
def firewall_acls
@firewall_acls ||= MockFirewallAcls.new({}, self)
end
|
#internet_service_collection ⇒ Object
274
275
276
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 274
def internet_service_collection
@internet_service_collection ||= MockVdcInternetServices.new({}, self)
end
|
#memory_allocated ⇒ Object
249
250
251
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 249
def memory_allocated
self[:memory_allocated] || 20480
end
|
#name ⇒ Object
233
234
235
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 233
def name
self[:name]
end
|
#networks ⇒ Object
257
258
259
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 257
def networks
@networks ||= []
end
|
#public_ip_collection ⇒ Object
for TM eCloud, should probably be subclassed
270
271
272
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 270
def public_ip_collection
@public_ip_collection ||= MockPublicIps.new({}, self)
end
|
#storage_allocated ⇒ Object
237
238
239
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 237
def storage_allocated
self[:storage_allocated] || 200
end
|
#storage_used ⇒ Object
241
242
243
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 241
def storage_used
self[:storage_used] || 105
end
|
#task_list ⇒ Object
265
266
267
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 265
def task_list
@task_list ||= MockTaskList.new({}, self)
end
|
#virtual_machines ⇒ Object
261
262
263
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 261
def virtual_machines
@virtual_machines ||= []
end
|