Creates a new instance of the {Step} 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 [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 [ExternalSystemType] :external_type The value of attribute `external_type`.
@option opts [String] :id The value of attribute `id`.
@option opts [Job, Hash] :job The value of attribute `job`.
@option opts [String] :name The value of attribute `name`.
@option opts [Integer] :number The value of attribute `number`.
@option opts [Step, Hash] :parent_step The value of attribute `parent_step`.
@option opts [DateTime] :start_time The value of attribute `start_time`.
@option opts [Array<Statistic>, Array<Hash>] :statistics The values of attribute `statistics`.
@option opts [StepStatus] :status The value of attribute `status`.
@option opts [StepEnum] :type The value of attribute `type`.
# File lib/ovirtsdk4/types.rb, line 15268 def initialize(opts = {}) super(opts) self.comment = opts[:comment] self.description = opts[:description] self.end_time = opts[:end_time] self.external = opts[:external] self.external_type = opts[:external_type] self.id = opts[:id] self.job = opts[:job] self.name = opts[:name] self.number = opts[:number] self.parent_step = opts[:parent_step] self.start_time = opts[:start_time] self.statistics = opts[:statistics] self.status = opts[:status] self.type = opts[:type] end
Returns the value of the `comment` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 14964 def comment return @comment end
Sets the value of the `comment` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 14973 def comment=(value) @comment = value end
Returns the value of the `description` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 14982 def description return @description end
Sets the value of the `description` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 14991 def description=(value) @description = value end
Returns the value of the `end_time` attribute.
@return [DateTime]
# File lib/ovirtsdk4/types.rb, line 15000 def end_time return @end_time end
Sets the value of the `end_time` attribute.
@param value [DateTime]
# File lib/ovirtsdk4/types.rb, line 15009 def end_time=(value) @end_time = value end
Returns the value of the `external` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 15018 def external return @external end
Sets the value of the `external` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 15027 def external=(value) @external = value end
Returns the value of the `external_type` attribute.
@return [ExternalSystemType]
# File lib/ovirtsdk4/types.rb, line 15036 def external_type return @external_type end
Sets the value of the `external_type` attribute.
@param value [ExternalSystemType]
# File lib/ovirtsdk4/types.rb, line 15045 def external_type=(value) @external_type = value end
Returns the value of the `id` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 15054 def id return @id end
Sets the value of the `id` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 15063 def id=(value) @id = value end
Returns the value of the `job` attribute.
@return [Job]
# File lib/ovirtsdk4/types.rb, line 15072 def job return @job end
Sets the value of the `job` attribute.
@param value [Job, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Job} 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 15085 def job=(value) if value.is_a?(Hash) value = Job.new(value) end @job = value end
Returns the value of the `name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 15097 def name return @name end
Sets the value of the `name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 15106 def name=(value) @name = value end
Returns the value of the `number` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 15115 def number return @number end
Sets the value of the `number` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 15124 def number=(value) @number = value end
Returns the value of the `parent_step` attribute.
@return [Step]
# File lib/ovirtsdk4/types.rb, line 15133 def parent_step return @parent_step end
Sets the value of the `parent_step` attribute.
@param value [Step, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Step} 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 15146 def parent_step=(value) if value.is_a?(Hash) value = Step.new(value) end @parent_step = value end
Returns the value of the `start_time` attribute.
@return [DateTime]
# File lib/ovirtsdk4/types.rb, line 15158 def start_time return @start_time end
Sets the value of the `start_time` attribute.
@param value [DateTime]
# File lib/ovirtsdk4/types.rb, line 15167 def start_time=(value) @start_time = value end
Returns the value of the `statistics` attribute.
@return [Array<Statistic>]
# File lib/ovirtsdk4/types.rb, line 15176 def statistics return @statistics end
Sets the value of the `statistics` attribute.
@param list [Array<Statistic>]
# File lib/ovirtsdk4/types.rb, line 15184 def statistics=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Statistic.new(value) end end end @statistics = list end
Returns the value of the `status` attribute.
@return [StepStatus]
# File lib/ovirtsdk4/types.rb, line 15201 def status return @status end
Sets the value of the `status` attribute.
@param value [StepStatus]
# File lib/ovirtsdk4/types.rb, line 15210 def status=(value) @status = value end
Returns the value of the `type` attribute.
@return [StepEnum]
# File lib/ovirtsdk4/types.rb, line 15219 def type return @type end
Sets the value of the `type` attribute.
@param value [StepEnum]
# File lib/ovirtsdk4/types.rb, line 15228 def type=(value) @type = value end