class Fog::Compute::Ecloud::ComputePools

Public Instance Methods

all() click to toggle source

get_request :get_compute_pool vcloud_type "application/vnd.tmrk.ecloud.publicIp+xml" all_request lambda { |compute_pools| public_ips.connection.get_public_ips(public_ips.href) }

# File lib/fog/ecloud/models/compute/compute_pools.rb, line 18
def all
  check_href!(:message => "the Compute Pool href of the Vdc you want to enumerate")
  if data = connection.get_compute_pools(href).body[:ComputePool]
    load(data)
  end
end
get(uri) click to toggle source
# File lib/fog/ecloud/models/compute/compute_pools.rb, line 25
def get(uri)
  if data = connection.get_compute_pool(uri)
    new(data.body)
  end
rescue Fog::Errors::NotFound
  nil
end