Sha256: fcf92aebc8b1e5d44d0b37b1365abc19e56ac7dca5cd4fbcb7f8f3d78284c786

Contents?: true

Size: 943 Bytes

Versions: 30

Compression:

Stored size: 943 Bytes

Contents

module Fog
  module SharedFileSystem
    class OpenStack
      class Real
        # For older versions v1.0-2.8 the export locations are responsed as an attribute of share (export_locations). 
        # For newer API versions (>= 2.9) it is available in separate APIs.
        # This method returns the export location detail.
        def get_share_export_location(share_id,export_location_id)
          request(
            :expects => 200,
            :method  => 'GET',
            :path    => "shares/#{share_id}/export_locations/​{export_location_id}​"
          )
        end
      end

      class Mock
        def get_share_export_location(id)
          response = Excon::Response.new
          response.status = 200
          share_export_location = data[:export_locations].first
          share_export_location['id'] = id
          response.body = share_export_location
          response
        end
      end
    end
  end
end

Version data entries

30 entries across 28 versions & 3 rubygems

Version Path
fog-openstack-0.1.31 lib/fog/shared_file_system/openstack/requests/get_share_export_location.rb
fog-openstack-0.3.10 lib/fog/shared_file_system/openstack/requests/get_share_export_location.rb
fog-openstack-0.1.30 lib/fog/shared_file_system/openstack/requests/get_share_export_location.rb
fog-openstack-0.1.29 lib/fog/shared_file_system/openstack/requests/get_share_export_location.rb
fog-openstack-0.3.9 lib/fog/shared_file_system/openstack/requests/get_share_export_location.rb
fog-openstack-0.1.28 lib/fog/shared_file_system/openstack/requests/get_share_export_location.rb
fog-openstack-0.3.8 lib/fog/shared_file_system/openstack/requests/get_share_export_location.rb
fog-openstack-0.3.7 lib/fog/shared_file_system/openstack/requests/get_share_export_location.rb
fog-openstack-0.3.6 lib/fog/shared_file_system/openstack/requests/get_share_export_location.rb
fog-openstack-0.3.5 lib/fog/shared_file_system/openstack/requests/get_share_export_location.rb
fog-openstack-0.3.4 lib/fog/shared_file_system/openstack/requests/get_share_export_location.rb
fog-openstack-0.3.3 lib/fog/shared_file_system/openstack/requests/get_share_export_location.rb
fog-openstack-0.3.2 lib/fog/shared_file_system/openstack/requests/get_share_export_location.rb
fog-openstack-0.3.0 lib/fog/shared_file_system/openstack/requests/get_share_export_location.rb
fog-openstack-0.2.4 lib/fog/shared_file_system/openstack/requests/get_share_export_location.rb
fog-openstack-0.2.3 lib/fog/shared_file_system/openstack/requests/get_share_export_location.rb
fog-openstack-0.2.2 lib/fog/shared_file_system/openstack/requests/get_share_export_location.rb
fog-openstack-0.2.1 lib/fog/shared_file_system/openstack/requests/get_share_export_location.rb
fog-openstack-0.2.0 lib/fog/shared_file_system/openstack/requests/get_share_export_location.rb
fog-zj-0.1.28 lib/fog/shared_file_system/openstack/requests/get_share_export_location.rb