Class: OvirtSDK4::Identified
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Direct Known Subclasses
Action, AffinityGroup, AffinityLabel, Agent, Application, AuthorizedKey, Backup, Balance, Bookmark, Certificate, Cluster, ClusterFeature, ClusterLevel, CpuProfile, DataCenter, Device, DiskAttachment, DiskProfile, Domain, Event, ExternalComputeResource, ExternalDiscoveredHost, ExternalHost, ExternalHostGroup, ExternalNetworkProviderConfiguration, ExternalProvider, File, Filter, GlusterHook, GlusterMemoryPool, GlusterServerHook, GlusterVolume, GlusterVolumeProfileDetails, GraphicsConsole, Group, Hook, Host, HostDevice, HostNic, HostStorage, Icon, Image, ImageTransfer, IscsiBond, Job, KatelloErratum, LinkLayerDiscoveryProtocolElement, MacPool, MigrationPolicy, Network, NetworkAttachment, NetworkFilter, NetworkFilterParameter, NetworkLabel, NumaNode, OpenStackImage, OpenStackNetwork, OpenStackSubnet, OpenStackVolumeType, OpenstackVolumeAuthenticationKey, OperatingSystemInfo, Permission, Permit, Product, Qos, Quota, QuotaClusterLimit, QuotaStorageLimit, ReportedDevice, Role, SchedulingPolicy, SchedulingPolicyUnit, Session, Ssh, SshPublicKey, Statistic, Step, StorageConnection, StorageConnectionExtension, StorageDomain, SystemOption, Tag, UnmanagedNetwork, User, Vendor, Version, VmBase, VmPool, VnicProfile, Weight
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ Identified
constructor
Creates a new instance of the Identified class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Identified
Creates a new instance of the OvirtSDK4::Identified class.
5192 5193 5194 5195 5196 5197 5198 |
# File 'lib/ovirtsdk4/types.rb', line 5192 def initialize(opts = {}) super(opts) self.comment = opts[:comment] self.description = opts[:description] self.id = opts[:id] self.name = opts[:name] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
5203 5204 5205 5206 5207 5208 5209 |
# File 'lib/ovirtsdk4/types.rb', line 5203 def ==(other) super && @comment == other.comment && @description == other.description && @id == other.id && @name == other.name end |
#comment ⇒ String
Returns the value of the comment
attribute.
5109 5110 5111 |
# File 'lib/ovirtsdk4/types.rb', line 5109 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
5118 5119 5120 |
# File 'lib/ovirtsdk4/types.rb', line 5118 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
5127 5128 5129 |
# File 'lib/ovirtsdk4/types.rb', line 5127 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
5136 5137 5138 |
# File 'lib/ovirtsdk4/types.rb', line 5136 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
5214 5215 5216 5217 5218 5219 5220 |
# File 'lib/ovirtsdk4/types.rb', line 5214 def hash super + @comment.hash + @description.hash + @id.hash + @name.hash end |
#id ⇒ String
Returns the value of the id
attribute.
5145 5146 5147 |
# File 'lib/ovirtsdk4/types.rb', line 5145 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
5154 5155 5156 |
# File 'lib/ovirtsdk4/types.rb', line 5154 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
5163 5164 5165 |
# File 'lib/ovirtsdk4/types.rb', line 5163 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
5172 5173 5174 |
# File 'lib/ovirtsdk4/types.rb', line 5172 def name=(value) @name = value end |