Sha256: 7cde7a3247872f2d0dbbd632fe06dfe100aef05777926682c8e93448a0dbabd8

Contents?: true

Size: 628 Bytes

Versions: 4

Compression:

Stored size: 628 Bytes

Contents

module Fog
  module SharedFileSystem
    class HuaweiCloud
      class Real
        def get_quota(project_id)
          request(
            :expects => 200,
            :method  => 'GET',
            :path    => "#{action_prefix}quota-sets/#{project_id}"
          )
        end
      end

      class Mock
        def get_quota(project_id)
          response = Excon::Response.new
          response.status = 200
          quota_data = data[:quota_updated] || data[:quota]
          quota_data['id'] = project_id
          response.body = {'quota_set' => quota_data}
          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/shared_file_system/huaweicloud/requests/get_quota.rb
fog-huaweicloud-0.0.2 lib/fog/shared_file_system/huaweicloud/requests/get_quota.rb
fog-huaweicloud-0.1.3 lib/fog/shared_file_system/huaweicloud/requests/get_quota.rb
fog-huaweicloud-0.1.2 lib/fog/shared_file_system/huaweicloud/requests/get_quota.rb