Sha256: 504fb3187f38802aae7487626b3cedd386447756f0df7c700b6b48305dc47bb8

Contents?: true

Size: 616 Bytes

Versions: 4

Compression:

Stored size: 616 Bytes

Contents

module Fog
  module Compute
    class OracleCloud
      class Real
      	def list_storage_attachments
          response = request(
            :expects  => 200,
            :method   => 'GET',
            :path     => "/storage/attachment/Compute-#{@identity_domain}/#{@username}/"
          )
          response
        end
      end

      class Mock
        def list_storage_attachments
          response = Excon::Response.new

          sas = self.data[:storage_attachments].values
          response.body = {
            'result' => sas
          }
          response
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.17 lib/fog/oraclecloud/requests/compute/list_storage_attachments.rb
fog-oraclecloud-0.1.16 lib/fog/oraclecloud/requests/compute/list_storage_attachments.rb
fog-oraclecloud-0.1.15 lib/fog/oraclecloud/requests/compute/list_storage_attachments.rb
fog-oraclecloud-0.1.14 lib/fog/oraclecloud/requests/compute/list_storage_attachments.rb