Sha256: 81d4d0271b0d2da3874a7e71259d4922450eb7999b3004453f18fb559f67e39a

Contents?: true

Size: 1.27 KB

Versions: 19

Compression:

Stored size: 1.27 KB

Contents

module Fog
  module Compute
    class VcloudDirector
      class Real

        require 'fog/vcloud_director/generators/compute/vapp'

        # Modify the name or description of a vApp.
        #
        # This operation is asynchronous and returns a task that you can monitor
        # to track the progress of the request.
        #
        #
        # @param [String] id Object identifier of the vApp.
        # @param [String] name of the vApp.
        # @param [Hash] options
        #   * :Description<~String>: - description to be assigned (optional)
        # @return [Excon::Response]
        #   * body<~Hash>:
        #
        # @see http://pubs.vmware.com/vcd-55/topic/com.vmware.vcloud.api.reference.doc_55/doc/operations/PUT-VAppNameAndDescription.html
        # @since vCloud API version 0.9
        def put_vapp_name_and_description(id, name, options={})
          body = Fog::Generators::Compute::VcloudDirector::Vapp.new(name, options).generate_xml
          request(
            :body    => body,
            :expects => 202,
            :headers => {'Content-Type' => 'application/vnd.vmware.vcloud.vApp+xml'},
            :method  => 'PUT',
            :parser  => Fog::ToHashDocument.new,
            :path    => "vApp/#{id}"
          )
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
fog-1.22.0 lib/fog/vcloud_director/requests/compute/put_vapp_name_and_description.rb
fog-1.21.0 lib/fog/vcloud_director/requests/compute/put_vapp_name_and_description.rb
fog-maestrodev-1.20.0.20140305101839 lib/fog/vcloud_director/requests/compute/put_vapp_name_and_description.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/vcloud_director/requests/compute/put_vapp_name_and_description.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/vcloud_director/requests/compute/put_vapp_name_and_description.rb
fog-1.20.0 lib/fog/vcloud_director/requests/compute/put_vapp_name_and_description.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/vcloud_director/requests/compute/put_vapp_name_and_description.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/vcloud_director/requests/compute/put_vapp_name_and_description.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/vcloud_director/requests/compute/put_vapp_name_and_description.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/vcloud_director/requests/compute/put_vapp_name_and_description.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/vcloud_director/requests/compute/put_vapp_name_and_description.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/vcloud_director/requests/compute/put_vapp_name_and_description.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/vcloud_director/requests/compute/put_vapp_name_and_description.rb
fog-1.19.0 lib/fog/vcloud_director/requests/compute/put_vapp_name_and_description.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/vcloud_director/requests/compute/put_vapp_name_and_description.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/vcloud_director/requests/compute/put_vapp_name_and_description.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/vcloud_director/requests/compute/put_vapp_name_and_description.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/vcloud_director/requests/compute/put_vapp_name_and_description.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/vcloud_director/requests/compute/put_vapp_name_and_description.rb