Sha256: 5070399154de16af735e5102e2ec7ef0e8f93d88d2d226ddbd06c5decf04464b

Contents?: true

Size: 830 Bytes

Versions: 32

Compression:

Stored size: 830 Bytes

Contents

module Fog
  module Vcloud
    class Compute
      class Real
        def undeploy(vapp_uri, save_state = false)
          # builder = Builder::XmlMarkup.new
          # builder.UndeployVAppParams(:xmlns => 'http://www.vmware.com/vcloud/v1',
          #                            :saveState => save_state) {}
          builder = "<UndeployVAppParams saveState=\"#{save_state.to_s}\" xmlns=\"http://www.vmware.com/vcloud/v1\"/>"

          request(
                  :body     => builder,
                  :expects  => 202,
                  :headers  => {'Content-Type' => 'application/vnd.vmware.vcloud.undeployVAppParams+xml' },
                  :method   => 'POST',
                  :uri      => vapp_uri + '/action/undeploy',
                  :parse    => true
                  )
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 8 rubygems

Version Path
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/undeploy.rb
fog-1.1.1 lib/fog/vcloud/requests/compute/undeploy.rb
fog-1.1.0 lib/fog/vcloud/requests/compute/undeploy.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/undeploy.rb
tag-fog-1.0.1 lib/fog/vcloud/requests/compute/undeploy.rb
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/undeploy.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/vcloud/requests/compute/undeploy.rb
fog-1.0.0 lib/fog/vcloud/requests/compute/undeploy.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/compute/requests/vcloud/undeploy.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/compute/requests/vcloud/undeploy.rb
fog-0.11.0 lib/fog/compute/requests/vcloud/undeploy.rb
fog-0.10.0 lib/fog/compute/requests/vcloud/undeploy.rb