Creates a new instance of the {Job} class.
@param opts [Hash] 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.
@option opts [Boolean] :auto_cleared The value of attribute `auto_cleared`.
@option opts [String] :comment The value of attribute `comment`.
@option opts [String] :description The value of attribute `description`.
@option opts [DateTime] :end_time The value of attribute `end_time`.
@option opts [Boolean] :external The value of attribute `external`.
@option opts [String] :id The value of attribute `id`.
@option opts [DateTime] :last_updated The value of attribute `last_updated`.
@option opts [String] :name The value of attribute `name`.
@option opts [User, Hash] :owner The value of attribute `owner`.
@option opts [DateTime] :start_time The value of attribute `start_time`.
@option opts [JobStatus] :status The value of attribute `status`.
@option opts [Array<Step>, Array<Hash>] :steps The values of attribute `steps`.
# File lib/ovirtsdk4/types.rb, line 5711 def initialize(opts = {}) super(opts) self.auto_cleared = opts[:auto_cleared] self.comment = opts[:comment] self.description = opts[:description] self.end_time = opts[:end_time] self.external = opts[:external] self.id = opts[:id] self.last_updated = opts[:last_updated] self.name = opts[:name] self.owner = opts[:owner] self.start_time = opts[:start_time] self.status = opts[:status] self.steps = opts[:steps] end
Returns the value of the `auto_cleared` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 5454 def auto_cleared return @auto_cleared end
Sets the value of the `auto_cleared` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 5463 def auto_cleared=(value) @auto_cleared = value end
Returns the value of the `comment` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 5472 def comment return @comment end
Sets the value of the `comment` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 5481 def comment=(value) @comment = value end
Returns the value of the `description` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 5490 def description return @description end
Sets the value of the `description` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 5499 def description=(value) @description = value end
Returns the value of the `end_time` attribute.
@return [DateTime]
# File lib/ovirtsdk4/types.rb, line 5508 def end_time return @end_time end
Sets the value of the `end_time` attribute.
@param value [DateTime]
# File lib/ovirtsdk4/types.rb, line 5517 def end_time=(value) @end_time = value end
Returns the value of the `external` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 5526 def external return @external end
Sets the value of the `external` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 5535 def external=(value) @external = value end
Returns the value of the `id` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 5544 def id return @id end
Sets the value of the `id` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 5553 def id=(value) @id = value end
Returns the value of the `last_updated` attribute.
@return [DateTime]
# File lib/ovirtsdk4/types.rb, line 5562 def last_updated return @last_updated end
Sets the value of the `last_updated` attribute.
@param value [DateTime]
# File lib/ovirtsdk4/types.rb, line 5571 def last_updated=(value) @last_updated = value end
Returns the value of the `name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 5580 def name return @name end
Sets the value of the `name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 5589 def name=(value) @name = value end
Returns the value of the `owner` attribute.
@return [User]
# File lib/ovirtsdk4/types.rb, line 5598 def owner return @owner end
Sets the value of the `owner` attribute.
@param value [User, Hash]
The `value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 5611 def owner=(value) if value.is_a?(Hash) value = User.new(value) end @owner = value end
Returns the value of the `start_time` attribute.
@return [DateTime]
# File lib/ovirtsdk4/types.rb, line 5623 def start_time return @start_time end
Sets the value of the `start_time` attribute.
@param value [DateTime]
# File lib/ovirtsdk4/types.rb, line 5632 def start_time=(value) @start_time = value end
Returns the value of the `status` attribute.
@return [JobStatus]
# File lib/ovirtsdk4/types.rb, line 5641 def status return @status end
Sets the value of the `status` attribute.
@param value [JobStatus]
# File lib/ovirtsdk4/types.rb, line 5650 def status=(value) @status = value end
Returns the value of the `steps` attribute.
@return [Array<Step>]
# File lib/ovirtsdk4/types.rb, line 5659 def steps return @steps end
Sets the value of the `steps` attribute.
@param list [Array<Step>]
# File lib/ovirtsdk4/types.rb, line 5667 def steps=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Step.new(value) end end end @steps = list end