Sha256: 5cfdbe57d42d29d62b12b577c08b90c5607924d958ca7dcd2df8ccf2db73173a

Contents?: true

Size: 505 Bytes

Versions: 31

Compression:

Stored size: 505 Bytes

Contents

module Fog
  module SharedFileSystem
    class OpenStack
      class Real
        def shrink_share(share_id, new_size)
          action = {
            "#{action_prefix}shrink" => {
              'new_size' => new_size
            }
          }
          share_action(share_id, action)
        end
      end

      class Mock
        def shrink_share(_share_id, _new_size)
          response = Excon::Response.new
          response.status = 202
          response
        end
      end
    end
  end
end

Version data entries

31 entries across 29 versions & 3 rubygems

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