Sha256: 7c1be301ac4537910119a4e34b6f60d54cde35a0ea29f9450082b729f81faac3

Contents?: true

Size: 597 Bytes

Versions: 25

Compression:

Stored size: 597 Bytes

Contents

module Fog
  module Compute
    class OpenStack
      class Real
        # Shelve Off load the server. Data and resource associations are deleted.
        #
        # === Parameters
        # * server_id <~String> - The ID of the server to be shelve off loaded
        # === Returns
        # * success <~Boolean>
        def shelve_offload_server(server_id)
          body = {'shelveOffload' => nil}
          server_action(server_id, body).status == 202
        end
      end

      class Mock
        def shelve_offload_server(_server_id)
          true
        end
      end
    end
  end
end

Version data entries

25 entries across 23 versions & 3 rubygems

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