Sha256: 2bec6edeab23c2a0ea4ffef4918c99613a4ac4168cd0db9c75b0e7ccce5a6222

Contents?: true

Size: 896 Bytes

Versions: 15

Compression:

Stored size: 896 Bytes

Contents

module Fog
  module Compute
    class Ovirt
      class V3
        module Shared
          def check_arguments(id, options)
            raise ArgumentError, "instance id is a required parameter" unless id
            raise ArgumentError, "interface id is a required parameter for update-interface" unless options.key? :id
          end
        end

        class Real
          extend ::Fog::Compute::Ovirt::V3::Shared

          def update_interface(id, options)
            check_arguments(id, options)

            interface_id = options[:id]
            options.delete(:id)

            client.update_interface(id, interface_id, options)
          end
        end

        class Mock
          extend ::Fog::Compute::Ovirt::V3::Shared

          def update_interface(id, options)
            check_arguments(id, options)
            true
          end
        end
      end
    end
  end
end

Version data entries

15 entries across 13 versions & 2 rubygems

Version Path
fog-ovirt-1.1.6 lib/fog/ovirt/requests/compute/v3/update_interface.rb
fog-ovirt-1.1.5 lib/fog/ovirt/requests/compute/v3/update_interface.rb
fog-ovirt-1.1.4 lib/fog/ovirt/requests/compute/v3/update_interface.rb
fog-ovirt-1.1.3 lib/fog/ovirt/requests/compute/v3/update_interface.rb
fog-ovirt-1.1.2 lib/fog/ovirt/requests/compute/v3/update_interface.rb
fog-ovirt-1.1.1 lib/fog/ovirt/requests/compute/v3/update_interface.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-ovirt-1.1.0/lib/fog/ovirt/requests/compute/v3/update_interface.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-ovirt-1.1.0/lib/fog/ovirt/requests/compute/v3/update_interface.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-ovirt-1.1.0/lib/fog/ovirt/requests/compute/v3/update_interface.rb
fog-ovirt-1.1.0 lib/fog/ovirt/requests/compute/v3/update_interface.rb
fog-ovirt-1.0.4 lib/fog/ovirt/requests/compute/v3/update_interface.rb
fog-ovirt-1.0.3 lib/fog/ovirt/requests/compute/v3/update_interface.rb
fog-ovirt-1.0.2 lib/fog/ovirt/requests/compute/v3/update_interface.rb
fog-ovirt-1.0.1 lib/fog/ovirt/requests/compute/v3/update_interface.rb
fog-ovirt-1.0.0 lib/fog/ovirt/requests/compute/v3/update_interface.rb