Class: OvirtSDK4::Certificate

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

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ Certificate

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

  • :content (String)

    The value of attribute content.

  • :description (String)

    The value of attribute description.

  • :id (String)

    The value of attribute id.

  • :name (String)

    The value of attribute name.

  • :organization (String)

    The value of attribute organization.

  • :subject (String)

    The value of attribute subject.


31989
31990
31991
31992
31993
31994
# File 'lib/ovirtsdk4/types.rb', line 31989

def initialize(opts = {})
  super(opts)
  self.content = opts[:content]
  self.organization = opts[:organization]
  self.subject = opts[:subject]
end

Instance Method Details

#==(other) ⇒ Object

Returns true if self and other have the same attributes and values.


31999
32000
32001
32002
32003
32004
# File 'lib/ovirtsdk4/types.rb', line 31999

def ==(other)
  super &&
  @content == other.content &&
  @organization == other.organization &&
  @subject == other.subject
end

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)

31846
31847
31848
# File 'lib/ovirtsdk4/types.rb', line 31846

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)

31855
31856
31857
# File 'lib/ovirtsdk4/types.rb', line 31855

def comment=(value)
  @comment = value
end

#contentString

Returns the value of the content attribute.

Returns:

  • (String)

31864
31865
31866
# File 'lib/ovirtsdk4/types.rb', line 31864

def content
  @content
end

#content=(value) ⇒ Object

Sets the value of the content attribute.

Parameters:

  • value (String)

31873
31874
31875
# File 'lib/ovirtsdk4/types.rb', line 31873

def content=(value)
  @content = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)

31882
31883
31884
# File 'lib/ovirtsdk4/types.rb', line 31882

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)

31891
31892
31893
# File 'lib/ovirtsdk4/types.rb', line 31891

def description=(value)
  @description = value
end

#hashObject

Generates a hash value for this object.


32009
32010
32011
32012
32013
32014
# File 'lib/ovirtsdk4/types.rb', line 32009

def hash
  super +
  @content.hash +
  @organization.hash +
  @subject.hash
end

#idString

Returns the value of the id attribute.

Returns:

  • (String)

31900
31901
31902
# File 'lib/ovirtsdk4/types.rb', line 31900

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)

31909
31910
31911
# File 'lib/ovirtsdk4/types.rb', line 31909

def id=(value)
  @id = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)

31918
31919
31920
# File 'lib/ovirtsdk4/types.rb', line 31918

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)

31927
31928
31929
# File 'lib/ovirtsdk4/types.rb', line 31927

def name=(value)
  @name = value
end

#organizationString

Returns the value of the organization attribute.

Returns:

  • (String)

31936
31937
31938
# File 'lib/ovirtsdk4/types.rb', line 31936

def organization
  @organization
end

#organization=(value) ⇒ Object

Sets the value of the organization attribute.

Parameters:

  • value (String)

31945
31946
31947
# File 'lib/ovirtsdk4/types.rb', line 31945

def organization=(value)
  @organization = value
end

#subjectString

Returns the value of the subject attribute.

Returns:

  • (String)

31954
31955
31956
# File 'lib/ovirtsdk4/types.rb', line 31954

def subject
  @subject
end

#subject=(value) ⇒ Object

Sets the value of the subject attribute.

Parameters:

  • value (String)

31963
31964
31965
# File 'lib/ovirtsdk4/types.rb', line 31963

def subject=(value)
  @subject = value
end