Sha256: cb711510e2e9275c8cd69d0cd52eaccc773a8c8b7f7b5cade2b34d99a98f04eb

Contents?: true

Size: 546 Bytes

Versions: 4

Compression:

Stored size: 546 Bytes

Contents

module Fog
  module Network
    class HuaweiCloud
      class Real
        def get_quota(tenant_id)
          request(
            :expects => 200,
            :method  => 'GET',
            :path    => "/quotas/#{tenant_id}"
          )
        end
      end

      class Mock
        def get_quota(_tenant_id)
          response = Excon::Response.new
          response.status = 200
          response.body = {
            'quota' => (data[:quota_updated] || data[:quota])
          }
          response
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-huaweicloud-0.0.3 lib/fog/network/huaweicloud/requests/get_quota.rb
fog-huaweicloud-0.0.2 lib/fog/network/huaweicloud/requests/get_quota.rb
fog-huaweicloud-0.1.3 lib/fog/network/huaweicloud/requests/get_quota.rb
fog-huaweicloud-0.1.2 lib/fog/network/huaweicloud/requests/get_quota.rb