Sha256: 1cd71cfd1b02ee193b066e84595728bfc94bd73f02abecce93b691b0dd7301b0

Contents?: true

Size: 810 Bytes

Versions: 3

Compression:

Stored size: 810 Bytes

Contents

# 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
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lunanode-0.2.0 lib/lunanode/api_actions/default/image.rb
lunanode-0.1.6 lib/lunanode/api_actions/default/image.rb
lunanode-0.1.5 lib/lunanode/api_actions/default/image.rb