Class: Fog::Ecloud::MockDataClasses::MockVdc
- Inherits:
-
Base
- Object
- Hash
- Base
- Fog::Ecloud::MockDataClasses::MockVdc
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
Instance Method Details
#catalog ⇒ Object
251
252
253
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 251
def catalog
@catalog ||= MockCatalog.new({}, self)
end
|
#cpu_allocated ⇒ Object
243
244
245
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 243
def cpu_allocated
self[:cpu_allocated] || 10000
end
|
#firewall_acls ⇒ Object
276
277
278
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 276
def firewall_acls
@firewall_acls ||= MockFirewallAcls.new({}, self)
end
|
#internet_service_collection ⇒ Object
272
273
274
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 272
def internet_service_collection
@internet_service_collection ||= MockVdcInternetServices.new({}, self)
end
|
#memory_allocated ⇒ Object
247
248
249
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 247
def memory_allocated
self[:memory_allocated] || 20480
end
|
#name ⇒ Object
231
232
233
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 231
def name
self[:name]
end
|
#networks ⇒ Object
255
256
257
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 255
def networks
@networks ||= []
end
|
#public_ip_collection ⇒ Object
for TM eCloud, should probably be subclassed
268
269
270
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 268
def public_ip_collection
@public_ip_collection ||= MockPublicIps.new({}, self)
end
|
#storage_allocated ⇒ Object
235
236
237
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 235
def storage_allocated
self[:storage_allocated] || 200
end
|
#storage_used ⇒ Object
239
240
241
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 239
def storage_used
self[:storage_used] || 105
end
|
#task_list ⇒ Object
263
264
265
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 263
def task_list
@task_list ||= MockTaskList.new({}, self)
end
|
#virtual_machines ⇒ Object
259
260
261
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 259
def virtual_machines
@virtual_machines ||= []
end
|