Sha256: 597d2f9cc1fffab6c5255c23cc973685a5cbd5007e7564e6af42c577b530a7c0

Contents?: true

Size: 536 Bytes

Versions: 4

Compression:

Stored size: 536 Bytes

Contents

module Fog
  module SharedFileSystem
    class HuaweiCloud
      class Real
        def list_shares(options = {})
          request(
            :expects => 200,
            :method  => 'GET',
            :path    => 'shares',
            :query   => options
          )
        end
      end

      class Mock
        def list_shares(_options = {})
          response = Excon::Response.new
          response.status = 200
          response.body = {'shares' => data[:shares]}
          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/list_shares.rb
fog-huaweicloud-0.0.2 lib/fog/shared_file_system/huaweicloud/requests/list_shares.rb
fog-huaweicloud-0.1.3 lib/fog/shared_file_system/huaweicloud/requests/list_shares.rb
fog-huaweicloud-0.1.2 lib/fog/shared_file_system/huaweicloud/requests/list_shares.rb