Class: OvirtSDK4::Tag
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Tag
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
attribute. -
- (Group) group
Returns the value of the
group
attribute. -
- (Object) group=(value)
Sets the value of the
group
attribute. -
- (Host) host
Returns the value of the
host
attribute. -
- (Object) host=(value)
Sets the value of the
host
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (Tag) initialize(opts = {})
constructor
Creates a new instance of the Tag class.
-
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (Tag) parent
Returns the value of the
parent
attribute. -
- (Object) parent=(value)
Sets the value of the
parent
attribute. -
- (Template) template
Returns the value of the
template
attribute. -
- (Object) template=(value)
Sets the value of the
template
attribute. -
- (User) user
Returns the value of the
user
attribute. -
- (Object) user=(value)
Sets the value of the
user
attribute. -
- (Vm) vm
Returns the value of the
vm
attribute. -
- (Object) vm=(value)
Sets the value of the
vm
attribute.
Methods included from Type
Constructor Details
- (Tag) initialize(opts = {})
Creates a new instance of the OvirtSDK4::Tag class.
16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 |
# File 'lib/ovirtsdk4/types.rb', line 16848 def initialize(opts = {}) super(opts) self.comment = opts[:comment] self.description = opts[:description] self.group = opts[:group] self.host = opts[:host] self.id = opts[:id] self.name = opts[:name] self.parent = opts[:parent] self.template = opts[:template] self.user = opts[:user] self.vm = opts[:vm] end |
Instance Method Details
- (String) comment
Returns the value of the comment
attribute.
16603 16604 16605 |
# File 'lib/ovirtsdk4/types.rb', line 16603 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
16612 16613 16614 |
# File 'lib/ovirtsdk4/types.rb', line 16612 def comment=(value) @comment = value end |
- (String) description
Returns the value of the description
attribute.
16621 16622 16623 |
# File 'lib/ovirtsdk4/types.rb', line 16621 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
16630 16631 16632 |
# File 'lib/ovirtsdk4/types.rb', line 16630 def description=(value) @description = value end |
- (Group) group
Returns the value of the group
attribute.
16639 16640 16641 |
# File 'lib/ovirtsdk4/types.rb', line 16639 def group return @group end |
- (Object) group=(value)
Sets the value of the group
attribute.
The value
parameter can be an instance of Group or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
16652 16653 16654 16655 16656 16657 |
# File 'lib/ovirtsdk4/types.rb', line 16652 def group=(value) if value.is_a?(Hash) value = Group.new(value) end @group = value end |
- (Host) host
Returns the value of the host
attribute.
16664 16665 16666 |
# File 'lib/ovirtsdk4/types.rb', line 16664 def host return @host end |
- (Object) host=(value)
Sets the value of the host
attribute.
The value
parameter can be an instance of Host or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
16677 16678 16679 16680 16681 16682 |
# File 'lib/ovirtsdk4/types.rb', line 16677 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end |
- (String) id
Returns the value of the id
attribute.
16689 16690 16691 |
# File 'lib/ovirtsdk4/types.rb', line 16689 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
16698 16699 16700 |
# File 'lib/ovirtsdk4/types.rb', line 16698 def id=(value) @id = value end |
- (String) name
Returns the value of the name
attribute.
16707 16708 16709 |
# File 'lib/ovirtsdk4/types.rb', line 16707 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
16716 16717 16718 |
# File 'lib/ovirtsdk4/types.rb', line 16716 def name=(value) @name = value end |
- (Tag) parent
Returns the value of the parent
attribute.
16725 16726 16727 |
# File 'lib/ovirtsdk4/types.rb', line 16725 def parent return @parent end |
- (Object) parent=(value)
Sets the value of the parent
attribute.
The value
parameter can be an instance of OvirtSDK4::Tag or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
16738 16739 16740 16741 16742 16743 |
# File 'lib/ovirtsdk4/types.rb', line 16738 def parent=(value) if value.is_a?(Hash) value = Tag.new(value) end @parent = value end |
- (Template) template
Returns the value of the template
attribute.
16750 16751 16752 |
# File 'lib/ovirtsdk4/types.rb', line 16750 def template return @template end |
- (Object) template=(value)
Sets the value of the template
attribute.
The value
parameter can be an instance of OvirtSDK4::Template or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
16763 16764 16765 16766 16767 16768 |
# File 'lib/ovirtsdk4/types.rb', line 16763 def template=(value) if value.is_a?(Hash) value = Template.new(value) end @template = value end |
- (User) user
Returns the value of the user
attribute.
16775 16776 16777 |
# File 'lib/ovirtsdk4/types.rb', line 16775 def user return @user end |
- (Object) user=(value)
Sets the value of the user
attribute.
The value
parameter can be an instance of User or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
16788 16789 16790 16791 16792 16793 |
# File 'lib/ovirtsdk4/types.rb', line 16788 def user=(value) if value.is_a?(Hash) value = User.new(value) end @user = value end |
- (Vm) vm
Returns the value of the vm
attribute.
16800 16801 16802 |
# File 'lib/ovirtsdk4/types.rb', line 16800 def vm return @vm end |
- (Object) vm=(value)
Sets the value of the vm
attribute.
The value
parameter can be an instance of Vm or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
16813 16814 16815 16816 16817 16818 |
# File 'lib/ovirtsdk4/types.rb', line 16813 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |