# File lib/fog/ecloud/models/compute/compute_pool.rb, line 25 def cpu_usage # time ? query = "/details?time=#{Time.parse(time).utc.strftime('%Y-%m-%dT%H:%M:%SZ')}" : query = "" @cpu_usage ||= Fog::Compute::Ecloud::CpuUsageDetailSummary.new(:service => service, :href => "/cloudapi/ecloud/computePools/#{id}/usage/cpu") end
# File lib/fog/ecloud/models/compute/compute_pool.rb, line 47 def detached_disks @detached_disks ||= self.service.detached_disks(:href => "/cloudapi/ecloud/detacheddisks/computepools/#{id}") end
# File lib/fog/ecloud/models/compute/compute_pool.rb, line 59 def edit(options) options[:uri] = href data = service.compute_pool_edit(options).body pool = collection.from_data(data) end
# File lib/fog/ecloud/models/compute/compute_pool.rb, line 51 def environment @environment ||= begin reload unless other_links environment_link = other_links.find{|l| l[:type] == "application/vnd.tmrk.cloud.environment"} self.service.environments.get(environment_link[:href]) end end
# File lib/fog/ecloud/models/compute/compute_pool.rb, line 65 def id href.scan(/\d+/)[0] end
# File lib/fog/ecloud/models/compute/compute_pool.rb, line 21 def layout @layout ||= Fog::Compute::Ecloud::Layouts.new(:service => service, :href => "/cloudapi/ecloud/layout/computePools/#{id}").first end
# File lib/fog/ecloud/models/compute/compute_pool.rb, line 30 def memory_usage # time ? query = "/details?time=#{Time.parse(time).utc.strftime('%Y-%m-%dT%H:%M:%SZ')}" : query = "" @memory_usage ||= Fog::Compute::Ecloud::MemoryUsageDetailSummary.new(:service => service, :href => "/cloudapi/ecloud/computePools/#{id}/usage/memory") end
# File lib/fog/ecloud/models/compute/compute_pool.rb, line 39 def operating_system_families @operating_system_families ||= Fog::Compute::Ecloud::OperatingSystemFamilies.new(:service => service, :href => "/cloudapi/ecloud/operatingSystemFamilies/computePools/#{id}") end
# File lib/fog/ecloud/models/compute/compute_pool.rb, line 17 def servers @servers ||= Fog::Compute::Ecloud::Servers.new( :service => service, :href => "/cloudapi/ecloud/virtualMachines/computePools/#{id}" ) end
Generated with the Darkfish Rdoc Generator 2.