Sha256: 49b39eeb17e897a0f6e652ede892480d8c5b128a008d76fb51f65d31a5d7bd35

Contents?: true

Size: 680 Bytes

Versions: 12

Compression:

Stored size: 680 Bytes

Contents

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

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

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

Version data entries

12 entries across 10 versions & 3 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/lib/fog/ovirt/requests/compute/deactivate_volume.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/lib/fog/ovirt/requests/compute/deactivate_volume.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/lib/fog/ovirt/requests/compute/deactivate_volume.rb
fog-1.42.1 lib/fog/ovirt/requests/compute/deactivate_volume.rb
fog-2.0.0 lib/fog/ovirt/requests/compute/deactivate_volume.rb
fog-ovirt-0.1.3 lib/fog/ovirt/requests/compute/deactivate_volume.rb
fog-ovirt-0.1.2 lib/fog/ovirt/requests/compute/deactivate_volume.rb
fog-ovirt-0.1.1 lib/fog/ovirt/requests/compute/deactivate_volume.rb
fog-1.42.0 lib/fog/ovirt/requests/compute/deactivate_volume.rb
fog-ovirt-0.1.0 lib/fog/ovirt/requests/compute/deactivate_volume.rb
fog-ovirt-0.0.1 lib/fog/ovirt/requests/compute/deactivate_volume.rb
fog-1.41.0 lib/fog/ovirt/requests/compute/deactivate_volume.rb