Class: OvirtSDK4::StorageConnectionExtension

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

- (StorageConnectionExtension) initialize(opts = {})

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

  • :host (Host, Hash)

    The value of attribute host.

  • :id (String)

    The value of attribute id.

  • :name (String)

    The value of attribute name.

  • :password (String)

    The value of attribute password.

  • :target (String)

    The value of attribute target.

  • :username (String)

    The value of attribute username.



15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
# File 'lib/ovirtsdk4/types.rb', line 15866

def initialize(opts = {})
  super(opts)
  self.comment = opts[:comment]
  self.description = opts[:description]
  self.host = opts[:host]
  self.id = opts[:id]
  self.name = opts[:name]
  self.password = opts[:password]
  self.target = opts[:target]
  self.username = opts[:username]
end

Instance Method Details

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


15696
15697
15698
# File 'lib/ovirtsdk4/types.rb', line 15696

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


15705
15706
15707
# File 'lib/ovirtsdk4/types.rb', line 15705

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


15714
15715
15716
# File 'lib/ovirtsdk4/types.rb', line 15714

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


15723
15724
15725
# File 'lib/ovirtsdk4/types.rb', line 15723

def description=(value)
  @description = value
end

- (Host) host

Returns the value of the host attribute.

Returns:



15732
15733
15734
# File 'lib/ovirtsdk4/types.rb', line 15732

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)


15745
15746
15747
15748
15749
15750
# File 'lib/ovirtsdk4/types.rb', line 15745

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)


15757
15758
15759
# File 'lib/ovirtsdk4/types.rb', line 15757

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


15766
15767
15768
# File 'lib/ovirtsdk4/types.rb', line 15766

def id=(value)
  @id = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


15775
15776
15777
# File 'lib/ovirtsdk4/types.rb', line 15775

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


15784
15785
15786
# File 'lib/ovirtsdk4/types.rb', line 15784

def name=(value)
  @name = value
end

- (String) password

Returns the value of the password attribute.

Returns:

  • (String)


15793
15794
15795
# File 'lib/ovirtsdk4/types.rb', line 15793

def password
  return @password
end

- (Object) password=(value)

Sets the value of the password attribute.

Parameters:

  • value (String)


15802
15803
15804
# File 'lib/ovirtsdk4/types.rb', line 15802

def password=(value)
  @password = value
end

- (String) target

Returns the value of the target attribute.

Returns:

  • (String)


15811
15812
15813
# File 'lib/ovirtsdk4/types.rb', line 15811

def target
  return @target
end

- (Object) target=(value)

Sets the value of the target attribute.

Parameters:

  • value (String)


15820
15821
15822
# File 'lib/ovirtsdk4/types.rb', line 15820

def target=(value)
  @target = value
end

- (String) username

Returns the value of the username attribute.

Returns:

  • (String)


15829
15830
15831
# File 'lib/ovirtsdk4/types.rb', line 15829

def username
  return @username
end

- (Object) username=(value)

Sets the value of the username attribute.

Parameters:

  • value (String)


15838
15839
15840
# File 'lib/ovirtsdk4/types.rb', line 15838

def username=(value)
  @username = value
end