Class: Fog::Compute::Ecloud::ComputePool
Instance Attribute Summary
#loaded
Attributes inherited from Model
#collection, #connection
Instance Method Summary
collapse
#load_unless_loaded!, #reload
Methods inherited from Model
#initialize, #inspect, #reload, #symbolize_keys, #to_json, #wait_for
#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes
#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #requires, #requires_one
Constructor Details
This class inherits a constructor from Fog::Model
Instance Method Details
permalink
#edit(options) ⇒ Object
[View source]
47
48
49
50
51
|
# File 'lib/fog/ecloud/models/compute/compute_pool.rb', line 47
def edit(options)
options[:uri] = href
data = connection.compute_pool_edit(options).body
pool = collection.from_data(data)
end
|
[View source]
53
54
55
|
# File 'lib/fog/ecloud/models/compute/compute_pool.rb', line 53
def id
href.scan(/\d+/)[0]
end
|
[View source]
21
22
23
|
# File 'lib/fog/ecloud/models/compute/compute_pool.rb', line 21
def layout
@layout ||= Fog::Compute::Ecloud::Layouts.new(:connection => connection, :href => "/cloudapi/ecloud/layout/computePools/#{id}").first
end
|
permalink
#operating_system_families ⇒ Object
[View source]
39
40
41
|
# File 'lib/fog/ecloud/models/compute/compute_pool.rb', line 39
def operating_system_families
@operating_system_families ||= Fog::Compute::Ecloud::OperatingSystemFamilies.new(:connection => connection, :href => "/cloudapi/ecloud/operatingSystemFamilies/computePools/#{id}")
end
|
[View source]
17
18
19
|
# File 'lib/fog/ecloud/models/compute/compute_pool.rb', line 17
def servers
@servers ||= Fog::Compute::Ecloud::Servers.new( :connection => connection, :href => "/cloudapi/ecloud/virtualMachines/computePools/#{id}" )
end
|
permalink
#templates ⇒ Object
[View source]
43
44
45
|
# File 'lib/fog/ecloud/models/compute/compute_pool.rb', line 43
def templates
@templates ||= Fog::Compute::Ecloud::Templates.new(:connection => connection, :href => "/cloudapi/ecloud/templates/computePools/#{id}")
end
|