Class: Fog::Vcloud::MockDataClasses::MockVdc
- Inherits:
-
Base
- Object
- Hash
- Base
- Fog::Vcloud::MockDataClasses::MockVdc
show all
- Defined in:
- lib/fog/vcloud/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
252
253
254
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 252
def catalog
@catalog ||= MockCatalog.new({}, self)
end
|
#cpu_allocated ⇒ Object
244
245
246
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 244
def cpu_allocated
self[:cpu_allocated] || 10000
end
|
#firewall_acls ⇒ Object
277
278
279
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 277
def firewall_acls
@firewall_acls ||= MockFirewallAcls.new({}, self)
end
|
#internet_service_collection ⇒ Object
273
274
275
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 273
def internet_service_collection
@internet_service_collection ||= MockVdcInternetServices.new({}, self)
end
|
#memory_allocated ⇒ Object
248
249
250
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 248
def memory_allocated
self[:memory_allocated] || 20480
end
|
#name ⇒ Object
232
233
234
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 232
def name
self[:name]
end
|
#networks ⇒ Object
256
257
258
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 256
def networks
@networks ||= []
end
|
#public_ip_collection ⇒ Object
for TM eCloud, should probably be subclassed
269
270
271
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 269
def public_ip_collection
@public_ip_collection ||= MockPublicIps.new({}, self)
end
|
#storage_allocated ⇒ Object
236
237
238
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 236
def storage_allocated
self[:storage_allocated] || 200
end
|
#storage_used ⇒ Object
240
241
242
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 240
def storage_used
self[:storage_used] || 105
end
|
#task_list ⇒ Object
264
265
266
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 264
def task_list
@task_list ||= MockTaskList.new({}, self)
end
|
#virtual_machines ⇒ Object
260
261
262
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 260
def virtual_machines
@virtual_machines ||= []
end
|