Sha256: 5ea7fb87352fded0e53636ba62db37e8de84404f3964e7cf6770b4d3d730699f

Contents?: true

Size: 558 Bytes

Versions: 4

Compression:

Stored size: 558 Bytes

Contents

module Fog
  module SharedFileSystem
    class HuaweiCloud
      class Real
        def get_share(id)
          request(
            :expects => 200,
            :method  => 'GET',
            :path    => "shares/#{id}"
          )
        end
      end

      class Mock
        def get_share(id)
          response = Excon::Response.new
          response.status = 200
          share = data[:share_updated] || data[:shares_detail].first
          share['id'] = id
          response.body = share
          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_share.rb
fog-huaweicloud-0.0.2 lib/fog/shared_file_system/huaweicloud/requests/get_share.rb
fog-huaweicloud-0.1.3 lib/fog/shared_file_system/huaweicloud/requests/get_share.rb
fog-huaweicloud-0.1.2 lib/fog/shared_file_system/huaweicloud/requests/get_share.rb