Sha256: 671fb7f126fc4b052a8ec54c20084ad9edbc72a5636208bc2aae7e31b91c29c8

Contents?: true

Size: 833 Bytes

Versions: 12

Compression:

Stored size: 833 Bytes

Contents

module Fog
  module Compute
    class XenServer
      class Real
        def get_record(ref, provider_class, options = {})
          get_record_by_ref(ref, provider_class, options)
        end

        def get_record_by_ref(ref, provider_class, options = {})
          @connection.request({:parser => Fog::Parsers::XenServer::Base.new, :method => "#{provider_class}.get_record"}, ref).merge(:reference => ref)
        end

        def get_by_name(name, provider_class)
          @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "#{provider_class}.get_by_name_label" }, name)
        end

        def get_by_uuid(uuid, provider_class)
          @connection.request({ :parser => Fog::Parsers::XenServer::Base.new, :method => "#{provider_class}.get_by_uuid" }, uuid)
        end
      end
    end
  end
end

Version data entries

12 entries across 10 versions & 2 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-xenserver-0.3.0/lib/fog/compute/xen_server/requests/get_record.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-xenserver-0.3.0/lib/fog/compute/xen_server/requests/get_record.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-xenserver-0.3.0/lib/fog/compute/xen_server/requests/get_record.rb
fog-xenserver-0.3.0 lib/fog/compute/xen_server/requests/get_record.rb
fog-xenserver-0.2.3 lib/fog/compute/xen_server/requests/get_record.rb
fog-xenserver-0.2.2 lib/fog/compute/xen_server/requests/get_record.rb
fog-xenserver-0.2.1 lib/fog/compute/xen_server/requests/get_record.rb
fog-xenserver-0.2.0 lib/fog/compute/xen_server/requests/get_record.rb
fog-xenserver-0.1.2 lib/fog/compute/xen_server/requests/get_record.rb
fog-xenserver-0.1.1 lib/fog/compute/xen_server/requests/get_record.rb
fog-xenserver-0.1.0 lib/fog/compute/xen_server/requests/get_record.rb
fog-xenserver-0.0.1.beta2 lib/fog/compute/xen_server/requests/get_record.rb