class VCloudSdk::Xml::HardDiskItemWrapper

Public Class Methods

new(item) click to toggle source
Calls superclass method
# File lib/ruby_vcloud_sdk/xml/wrapper_classes/hard_disk_item_wrapper.rb, line 13
def initialize(item)
  super(item.node, item.namespace, item.namespace_definitions)
end

Public Instance Methods

bus_sub_type() click to toggle source
# File lib/ruby_vcloud_sdk/xml/wrapper_classes/hard_disk_item_wrapper.rb, line 29
def bus_sub_type
  host_resource[HOST_RESOURCE_ATTRIBUTE[:BUS_SUB_TYPE]]
end
bus_type() click to toggle source
# File lib/ruby_vcloud_sdk/xml/wrapper_classes/hard_disk_item_wrapper.rb, line 33
def bus_type
  host_resource[HOST_RESOURCE_ATTRIBUTE[:BUS_TYPE]]
end
capacity_mb() click to toggle source
# File lib/ruby_vcloud_sdk/xml/wrapper_classes/hard_disk_item_wrapper.rb, line 17
def capacity_mb
  host_resource[HOST_RESOURCE_ATTRIBUTE[:CAPACITY]]
end
disk_id() click to toggle source
# File lib/ruby_vcloud_sdk/xml/wrapper_classes/hard_disk_item_wrapper.rb, line 21
def disk_id
  get_rasd_content(RASD_TYPES[:ADDRESS_ON_PARENT])
end
element_name() click to toggle source
# File lib/ruby_vcloud_sdk/xml/wrapper_classes/hard_disk_item_wrapper.rb, line 41
def element_name
  get_rasd_content(RASD_TYPES[:ELEMENT_NAME])
end
eql?(other) click to toggle source
# File lib/ruby_vcloud_sdk/xml/wrapper_classes/hard_disk_item_wrapper.rb, line 8
def eql?(other)
  disk_id == other.disk_id && instance_id == other.instance_id &&
    bus_type == other.bus_type && bus_sub_type == other.bus_sub_type
end
hash() click to toggle source
# File lib/ruby_vcloud_sdk/xml/wrapper_classes/hard_disk_item_wrapper.rb, line 4
def hash
  [disk_id, instance_id, bus_type, bus_sub_type].hash
end
host_resource() click to toggle source
# File lib/ruby_vcloud_sdk/xml/wrapper_classes/hard_disk_item_wrapper.rb, line 45
def host_resource
  get_rasd(RASD_TYPES[:HOST_RESOURCE])
end
instance_id() click to toggle source
# File lib/ruby_vcloud_sdk/xml/wrapper_classes/hard_disk_item_wrapper.rb, line 25
def instance_id
  get_rasd_content(RASD_TYPES[:INSTANCE_ID])
end
parent_instance_id() click to toggle source
# File lib/ruby_vcloud_sdk/xml/wrapper_classes/hard_disk_item_wrapper.rb, line 37
def parent_instance_id
  get_rasd_content(RASD_TYPES[:PARENT])
end