lib/vcloud/core/vm.rb
def update_storage_profile storage_profile
        storage_profile_href = get_storage_profile_href_by_name(storage_profile, @vapp.name)
        Vcloud::Core::Fog::ServiceInterface.new.put_vm(id, name, {
          :StorageProfile => {
            name: storage_profile,
            href: storage_profile_href
          }
        })
      end
# Update the storage profile of a VM
#
# @param storage_profile [String] The name of the storage profile
# @return [Boolean] return true or throw an error
Update the storage profile of a VM
Update the storage profile of a VM
def update_storage_profile storage_profile
        storage_profile_href = get_storage_profile_href_by_name(storage_profile, @vapp.name)
        Vcloud::Core::Fog::ServiceInterface.new.put_vm(id, name, {
          :StorageProfile => {
            name: storage_profile,
            href: storage_profile_href
          }
        })
      end
def update_storage_profile storage_profile storage_profile_href = get_storage_profile_href_by_name ( storage_profile , @vapp . name ) Vcloud :: Core :: Fog :: ServiceInterface . new . put_vm ( id , name , { :StorageProfile => { name : storage_profile , href : storage_profile_href } } ) end
Update the storage profile of a VM
Update the storage profile of a VM
return true or throw an error
return true or throw an error
Boolean
storage_profile
The name of the storage profile
The name of the storage profile