class VCloudSdk::Xml::Media

Public Instance Methods

files() click to toggle source
# File lib/ruby_vcloud_sdk/xml/wrapper_classes/media.rb, line 24
def files
  get_nodes("File")
end
image_type() click to toggle source
# File lib/ruby_vcloud_sdk/xml/wrapper_classes/media.rb, line 12
def image_type
  @root["imageType"]
end
image_type=(image_type) click to toggle source
# File lib/ruby_vcloud_sdk/xml/wrapper_classes/media.rb, line 16
def image_type=(image_type)
  @root["imageType"] = image_type.to_s
end
incomplete_files() click to toggle source

Files that haven“t finished transferring

# File lib/ruby_vcloud_sdk/xml/wrapper_classes/media.rb, line 29
def incomplete_files
  files.select do |f|
    f["size"].to_i < 0 ||
    (f["size"].to_i > f["bytesTransferred"].to_i)
  end
end
size() click to toggle source
# File lib/ruby_vcloud_sdk/xml/wrapper_classes/media.rb, line 4
def size
  @root["size"]
end
size=(size) click to toggle source
# File lib/ruby_vcloud_sdk/xml/wrapper_classes/media.rb, line 8
def size=(size)
  @root["size"] = size.to_s
end
storage_profile=(storage_profile) click to toggle source
# File lib/ruby_vcloud_sdk/xml/wrapper_classes/media.rb, line 20
def storage_profile=(storage_profile)
  add_child(storage_profile) unless storage_profile.nil?
end