Class: OvirtSDK4::Identified

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Direct Known Subclasses

Action, AffinityGroup, AffinityLabel, Agent, Application, AuthorizedKey, Balance, Bookmark, Certificate, Cluster, ClusterLevel, CpuProfile, DataCenter, Device, DiskAttachment, DiskProfile, Domain, Event, ExternalComputeResource, ExternalDiscoveredHost, ExternalHost, ExternalHostGroup, ExternalProvider, File, Filter, GlusterHook, GlusterMemoryPool, GlusterServerHook, GlusterVolume, GlusterVolumeProfileDetails, GraphicsConsole, Group, Hook, Host, HostDevice, HostNic, HostStorage, Icon, Image, IscsiBond, Job, KatelloErratum, MacPool, MigrationPolicy, Network, NetworkAttachment, NetworkFilter, 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, Tag, UnmanagedNetwork, User, Vendor, Version, VmBase, VmPool, VnicProfile, Weight

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (Identified) initialize(opts = {})

Creates a new instance of the OvirtSDK4::Identified class.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :id (String)

    The value of attribute id.

  • :name (String)

    The value of attribute name.



3703
3704
3705
3706
3707
3708
3709
# File 'lib/ovirtsdk4/types.rb', line 3703

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

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


3620
3621
3622
# File 'lib/ovirtsdk4/types.rb', line 3620

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


3629
3630
3631
# File 'lib/ovirtsdk4/types.rb', line 3629

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


3638
3639
3640
# File 'lib/ovirtsdk4/types.rb', line 3638

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


3647
3648
3649
# File 'lib/ovirtsdk4/types.rb', line 3647

def description=(value)
  @description = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


3656
3657
3658
# File 'lib/ovirtsdk4/types.rb', line 3656

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


3665
3666
3667
# File 'lib/ovirtsdk4/types.rb', line 3665

def id=(value)
  @id = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


3674
3675
3676
# File 'lib/ovirtsdk4/types.rb', line 3674

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


3683
3684
3685
# File 'lib/ovirtsdk4/types.rb', line 3683

def name=(value)
  @name = value
end