module Fog
  module Ovirt
    class Compute
      class V4
        class Real
          def get_cluster(id)
            ovirt_attrs client.system_service.clusters_service.cluster_service(id).get
          end
        end

        class Mock
          def get_cluster(_id)
            xml = read_xml("cluster.xml")
            ovirt_attrs OvirtSDK4::Reader.read(Nokogiri::XML(xml).root.to_s)
          end
        end
      end
    end
  end
end
