Class: OvirtSDK4::Struct

Inherits:
Object
  • Object
show all
Includes:
Type
Defined in:
lib/ovirtsdk4/type.rb

Overview

This is the base class for all the struct types.

Direct Known Subclasses

AffinityRule, AgentConfiguration, Api, ApiSummary, ApiSummaryItem, Bios, BlockStatistic, Bonding, Boot, BootMenu, CloudInit, Configuration, Console, Core, Cpu, CpuTopology, CpuTune, CpuType, CustomProperty, Display, Dns, DnsResolverConfiguration, DynamicCpu, EntityProfileDetail, ErrorHandling, ExternalTemplateImport, ExternalVmImport, Fault, FencingPolicy, FopStatistic, GlusterBrickMemoryInfo, GlusterClient, GracePeriod, GuestOperatingSystem, HardwareInformation, HighAvailability, HostDevicePassthrough, HostNicVirtualFunctionsConfiguration, HostedEngine, Identified, Initialization, Io, Ip, IpAddressAssignment, IscsiDetails, Kernel, Ksm, LogicalUnit, MDevType, Mac, MemoryOverCommit, MemoryPolicy, Method, MigrationBandwidth, MigrationOptions, NetworkConfiguration, NicConfiguration, NumaNodePin, OperatingSystem, Option, Package, Payload, PmProxy, PortMirroring, PowerManagement, ProductInfo, ProfileDetail, Property, ProxyTicket, Range, Rate, RegistrationAffinityGroupMapping, RegistrationAffinityLabelMapping, RegistrationClusterMapping, RegistrationConfiguration, RegistrationDomainMapping, RegistrationLunMapping, RegistrationRoleMapping, RegistrationVnicProfileMapping, ReportedConfiguration, RngDevice, SeLinux, SerialNumber, SkipIfConnectivityBroken, SkipIfSdActive, SpecialObjects, Spm, Sso, StorageDomainLease, SystemOptionValue, TemplateVersion, Ticket, TimeZone, TransparentHugePages, Usb, Value, VcpuPin, VirtioScsi, Vlan, VmPlacementPolicy, VmSummary, VnicPassThrough, VnicProfileMapping, VolumeGroup

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ Struct

Empty constructor.



104
105
106
# File 'lib/ovirtsdk4/type.rb', line 104

def initialize(opts = {})
  self.href = opts[:href]
end

Instance Method Details

#==(other) ⇒ Object Also known as: eql?

Returns true if self and other have the same attributes and values.



111
112
113
# File 'lib/ovirtsdk4/type.rb', line 111

def ==(other)
  !other.nil? && self.class == other.class
end

#hashObject

Generates a hash value for this object.



123
124
125
# File 'lib/ovirtsdk4/type.rb', line 123

def hash
  0
end