Class: OvirtSDK4::Tag

Inherits:
Identified show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (Tag) initialize(opts = {})

Creates a new instance of the OvirtSDK4::Tag 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.

  • :group (Group, Hash)

    The value of attribute group.

  • :host (Host, Hash)

    The value of attribute host.

  • :id (String)

    The value of attribute id.

  • :name (String)

    The value of attribute name.

  • :parent (Tag, Hash)

    The value of attribute parent.

  • :template (Template, Hash)

    The value of attribute template.

  • :user (User, Hash)

    The value of attribute user.

  • :vm (Vm, Hash)

    The value of attribute vm.



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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:



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.

Parameters:



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.

Returns:



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.

Parameters:

  • value (Host, Hash)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:



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.

Parameters:

  • value (Tag, Hash)


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.

Returns:



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.

Parameters:



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.

Returns:



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.

Parameters:

  • value (User, Hash)


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.

Returns:



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.

Parameters:

  • value (Vm, Hash)


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