Sha256: 47e0908847f8a271a1272f78450d22fa796860b8eaf54a789234dae374b8fc4e

Contents?: true

Size: 713 Bytes

Versions: 6

Compression:

Stored size: 713 Bytes

Contents

module Fog
  module Ovirt
    class Compute
      class V3
        class Real
          def attach_volume(id, options)
            raise ArgumentError, "instance id is a required parameter" unless id
            raise ArgumentError, "volume id is a required parameter for attach-volume" unless options.key? :id

            client.attach_volume(id, options[:id])
          end
        end

        class Mock
          def attach_volume(id, options)
            raise ArgumentError, "instance id is a required parameter" unless id
            raise ArgumentError, "volume id is a required parameter for attach-volume" unless options.key? :id
            true
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fog-ovirt-1.2.5 lib/fog/ovirt/requests/compute/v3/attach_volume.rb
fog-ovirt-1.2.4 lib/fog/ovirt/requests/compute/v3/attach_volume.rb
fog-ovirt-1.2.3 lib/fog/ovirt/requests/compute/v3/attach_volume.rb
fog-ovirt-1.2.2 lib/fog/ovirt/requests/compute/v3/attach_volume.rb
fog-ovirt-1.2.1 lib/fog/ovirt/requests/compute/v3/attach_volume.rb
fog-ovirt-1.2.0 lib/fog/ovirt/requests/compute/v3/attach_volume.rb