Sha256: 06288db6b145a17bbf7c7bbd91cbd179b275a395a898d583df864970fedafa36

Contents?: true

Size: 843 Bytes

Versions: 25

Compression:

Stored size: 843 Bytes

Contents

module Fog
  module Baremetal
    class OpenStack
      class Real
        def unset_node_maintenance(node_uuid, parameters = nil)
          request(
            :expects => [200, 202, 204],
            :method  => 'DELETE',
            :path    => "nodes/#{node_uuid}/maintenance",
            :query   => parameters
          )
        end
      end

      class Mock
        def unset_node_maintenance(_node_uuid, _parameters = nil)
          response = Excon::Response.new
          response.status = 202
          response.headers = {
            "X-Compute-Request-Id" => "req-fdc6f99e-55a2-4ab1-8904-0892753828cf",
            "Content-Type"         => "application/json",
            "Content-Length"       => "356",
            "Date"                 => Date.new
          }
          response
        end
      end
    end
  end
end

Version data entries

25 entries across 23 versions & 3 rubygems

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