# frozen_string_literal: true module Lunanode module APIActions module Image def image_list(region: nil) action(:image, :list, region: region) end def image_delete(image_id:) action(:image, :delete, image_id: image_id) end def image_details(image_id:) action(:image, :details, image_id: image_id) end def image_replicate(image_id:, region:) action(:image, :replicate, image_id: image_id, region: region) end def image_fetch(region:, name:, location:, format:, virtio: nil) action(:image, :fetch, region: region, name: name, location: location, format: format, virtio: virtio) end def image_retrieve(image_id:) action(:image, :retrieve, image_id: image_id) end def image_rename(image_id:, name:) action(:image, :rename, image_id: image_id, name: name) end end end end