class Fog::Compute::Aliyun::Images
Public Instance Methods
all(filters_arg = {})
click to toggle source
# File lib/fog/aliyun/models/compute/images.rb, line 12 def all(filters_arg = {}) unless filters_arg.is_a?(Hash) Fog::Logger.deprecation("all with #{filters_arg.class} param is deprecated, use all('diskIds' => []) instead [light_black](#{caller.first})[/]") filters_arg = { imageId: filters_arg } end data = Fog::JSON.decode(service.list_images(filters_arg).body)['Images']['Image'] load(data) end
get(image_id)
click to toggle source
# File lib/fog/aliyun/models/compute/images.rb, line 21 def get(image_id) self.class.new(service: service).all(imageId: image_id)[0] if image_id end