Sha256: 65abc1717cf7a35b73ad76fe3ec980b70f9de2b1b39fad3c69362f63b61f5902

Contents?: true

Size: 513 Bytes

Versions: 13

Compression:

Stored size: 513 Bytes

Contents

module Fog
  module Compute
    class Ovirt
      class V4
        class Real
          def get_quota(id)
            quota = client.system_service.data_centers_service.data_center_service(datacenter).quotas_service.quota_service(id).get
            ovirt_attrs quota
          end
        end
        class Mock
          def get_quota(_id)
            xml = read_xml("quota.xml")
            ovirt_attrs OvirtSDK4::Reader.read(Nokogiri::XML(xml).root.to_s)
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 11 versions & 2 rubygems

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