Sha256: 696be4cb1475599b301ee9f39bf91863c78d691878f3df5ab7e9b71f98ea6d71

Contents?: true

Size: 860 Bytes

Versions: 1

Compression:

Stored size: 860 Bytes

Contents

module Fog
  module VcloudDirector
    class Compute
      class Real
        # Delete the specified key and its value from media object metadata.
        #
        # @param [String] id Object identifier of the media object.
        # @param [String] key Key of the metadata item.
        # @return [Excon::Response]
        #   * body<~Hash>:
        #
        # @see http://pubs.vmware.com/vcd-51/topic/com.vmware.vcloud.api.reference.doc_51/doc/operations/DELETE-MediaMetadataItem-metadata.html
        # @since vCloud API version 1.5
        def delete_media_metadata_item_metadata(id, key)
          request(
            :expects => 202,
            :method  => 'DELETE',
            :parser  => Fog::ToHashDocument.new,
            :path    => "media/#{id}/metadata/#{URI::DEFAULT_PARSER.escape(key)}"
          )
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-vcloud-director-0.3.1 lib/fog/vcloud_director/requests/compute/delete_media_metadata_item_metadata.rb