Sha256: 4b0cd214f287b938f317fd6faf7560ac32d232a3bd05c0cddd7295e285d0c066

Contents?: true

Size: 829 Bytes

Versions: 21

Compression:

Stored size: 829 Bytes

Contents

module Fog
  module OpenStack
    class SharedFileSystem
      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 a list of the export locations.
        def list_share_export_locations(share_id)
          request(
            :expects => 200,
            :method  => 'GET',
            :path    => "shares/#{share_id}/export_locations"
          )
        end
      end

      class Mock
        def list_share_export_locations(share_id)
          response = Excon::Response.new
          response.status = 200
          response.body = {'export_locations' => data[:export_locations]}
          response
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
fog-openstack-1.1.4 lib/fog/openstack/shared_file_system/requests/list_share_export_locations.rb
fog-openstack-1.1.3 lib/fog/openstack/shared_file_system/requests/list_share_export_locations.rb
fog-openstack-1.1.2 lib/fog/openstack/shared_file_system/requests/list_share_export_locations.rb
fog-openstack-fork-99 lib/fog/openstack/shared_file_system/requests/list_share_export_locations.rb
fog-openstack-1.1.0 lib/fog/openstack/shared_file_system/requests/list_share_export_locations.rb
fog-openstack-1.1.0.pre lib/fog/openstack/shared_file_system/requests/list_share_export_locations.rb
fog-openstack-apibank-1.0.102 lib/fog/openstack/shared_file_system/requests/list_share_export_locations.rb
fog-openstack-1.0.11 lib/fog/openstack/shared_file_system/requests/list_share_export_locations.rb
fog-openstack-apibank-1.0.101 lib/fog/openstack/shared_file_system/requests/list_share_export_locations.rb
fog-openstack-1.0.10 lib/fog/openstack/shared_file_system/requests/list_share_export_locations.rb
fog-openstack-1.0.9 lib/fog/openstack/shared_file_system/requests/list_share_export_locations.rb
fog-openstack-1.0.8 lib/fog/openstack/shared_file_system/requests/list_share_export_locations.rb
fog-openstack-1.0.7 lib/fog/openstack/shared_file_system/requests/list_share_export_locations.rb
fog-openstack-1.0.6 lib/fog/openstack/shared_file_system/requests/list_share_export_locations.rb
fog-openstack-1.0.5 lib/fog/openstack/shared_file_system/requests/list_share_export_locations.rb
fog-openstack-1.0.4 lib/fog/openstack/shared_file_system/requests/list_share_export_locations.rb
fog-openstack-1.0.3 lib/fog/openstack/shared_file_system/requests/list_share_export_locations.rb
fog-openstack-1.0.2 lib/fog/openstack/shared_file_system/requests/list_share_export_locations.rb
fog-openstack-1.0.1 lib/fog/openstack/shared_file_system/requests/list_share_export_locations.rb
fog-openstack-1.0.0 lib/fog/openstack/shared_file_system/requests/list_share_export_locations.rb