Sha256: 3c31591c3bbd5b8e861f9014d71d90357f7a0b4c6ff7f0984b6762d5583ae74f

Contents?: true

Size: 632 Bytes

Versions: 9

Compression:

Stored size: 632 Bytes

Contents

module Fog
  module Ovirt
    class Compute
      class V4
        class Real
          def list_quotas(filters = {})
            data_center = client.system_service.data_centers_service.data_center_service(datacenter)
            data_center.quotas_service.list(filters).map { |ovirt_obj| ovirt_attrs ovirt_obj }
          end
        end
        class Mock
          def list_quotas(_filters = {})
            xml = read_xml "quotas.xml"
            Nokogiri::XML(xml).xpath("/quotas/quota").map do |q|
              ovirt_attrs OvirtSDK4::Reader.read(q.to_s)
            end
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fog-ovirt-2.0.2 lib/fog/ovirt/requests/compute/v4/list_quotas.rb
fog-ovirt-2.0.1 lib/fog/ovirt/requests/compute/v4/list_quotas.rb
fog-ovirt-2.0.0 lib/fog/ovirt/requests/compute/v4/list_quotas.rb
fog-ovirt-1.2.5 lib/fog/ovirt/requests/compute/v4/list_quotas.rb
fog-ovirt-1.2.4 lib/fog/ovirt/requests/compute/v4/list_quotas.rb
fog-ovirt-1.2.3 lib/fog/ovirt/requests/compute/v4/list_quotas.rb
fog-ovirt-1.2.2 lib/fog/ovirt/requests/compute/v4/list_quotas.rb
fog-ovirt-1.2.1 lib/fog/ovirt/requests/compute/v4/list_quotas.rb
fog-ovirt-1.2.0 lib/fog/ovirt/requests/compute/v4/list_quotas.rb