Sha256: aaaf6131e4b69e77bc976bb53b9a9629dbb6b0f137c8baa128cf06812c5cc887

Contents?: true

Size: 624 Bytes

Versions: 4

Compression:

Stored size: 624 Bytes

Contents

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

      class Mock
        def get_share_network(id)
          response = Excon::Response.new
          response.status = 200
          share_net = data[:share_network_updated] || data[:share_networks].first
          share_net['id'] = id
          response.body = {'share_network' => share_net}
          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_network.rb
fog-huaweicloud-0.0.2 lib/fog/shared_file_system/huaweicloud/requests/get_share_network.rb
fog-huaweicloud-0.1.3 lib/fog/shared_file_system/huaweicloud/requests/get_share_network.rb
fog-huaweicloud-0.1.2 lib/fog/shared_file_system/huaweicloud/requests/get_share_network.rb