Class: OvirtSDK4::Job
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Job
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#auto_cleared ⇒ Boolean
Returns the value of the
auto_clearedattribute. -
#auto_cleared=(value) ⇒ Object
Sets the value of the
auto_clearedattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#end_time ⇒ DateTime
Returns the value of the
end_timeattribute. -
#end_time=(value) ⇒ Object
Sets the value of the
end_timeattribute. -
#external ⇒ Boolean
Returns the value of the
externalattribute. -
#external=(value) ⇒ Object
Sets the value of the
externalattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ Job
constructor
Creates a new instance of the Job class.
-
#last_updated ⇒ DateTime
Returns the value of the
last_updatedattribute. -
#last_updated=(value) ⇒ Object
Sets the value of the
last_updatedattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#owner ⇒ User
Returns the value of the
ownerattribute. -
#owner=(value) ⇒ Object
Sets the value of the
ownerattribute. -
#start_time ⇒ DateTime
Returns the value of the
start_timeattribute. -
#start_time=(value) ⇒ Object
Sets the value of the
start_timeattribute. -
#status ⇒ JobStatus
Returns the value of the
statusattribute. -
#status=(value) ⇒ Object
Sets the value of the
statusattribute. -
#steps ⇒ Array<Step>
Returns the value of the
stepsattribute. -
#steps=(list) ⇒ Object
Sets the value of the
stepsattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Job
Creates a new instance of the OvirtSDK4::Job class.
8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 |
# File 'lib/ovirtsdk4/types.rb', line 8221 def initialize(opts = {}) super(opts) self.auto_cleared = opts[:auto_cleared] self.end_time = opts[:end_time] self.external = opts[:external] self.last_updated = opts[:last_updated] self.owner = opts[:owner] self.start_time = opts[:start_time] self.status = opts[:status] self.steps = opts[:steps] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 |
# File 'lib/ovirtsdk4/types.rb', line 8236 def ==(other) super && @auto_cleared == other.auto_cleared && @end_time == other.end_time && @external == other.external && @last_updated == other.last_updated && @owner == other.owner && @start_time == other.start_time && @status == other.status && @steps == other.steps end |
#auto_cleared ⇒ Boolean
Returns the value of the auto_cleared attribute.
7963 7964 7965 |
# File 'lib/ovirtsdk4/types.rb', line 7963 def auto_cleared @auto_cleared end |
#auto_cleared=(value) ⇒ Object
Sets the value of the auto_cleared attribute.
7972 7973 7974 |
# File 'lib/ovirtsdk4/types.rb', line 7972 def auto_cleared=(value) @auto_cleared = value end |
#comment ⇒ String
Returns the value of the comment attribute.
7981 7982 7983 |
# File 'lib/ovirtsdk4/types.rb', line 7981 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
7990 7991 7992 |
# File 'lib/ovirtsdk4/types.rb', line 7990 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
7999 8000 8001 |
# File 'lib/ovirtsdk4/types.rb', line 7999 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
8008 8009 8010 |
# File 'lib/ovirtsdk4/types.rb', line 8008 def description=(value) @description = value end |
#end_time ⇒ DateTime
Returns the value of the end_time attribute.
8017 8018 8019 |
# File 'lib/ovirtsdk4/types.rb', line 8017 def end_time @end_time end |
#end_time=(value) ⇒ Object
Sets the value of the end_time attribute.
8026 8027 8028 |
# File 'lib/ovirtsdk4/types.rb', line 8026 def end_time=(value) @end_time = value end |
#external ⇒ Boolean
Returns the value of the external attribute.
8035 8036 8037 |
# File 'lib/ovirtsdk4/types.rb', line 8035 def external @external end |
#external=(value) ⇒ Object
Sets the value of the external attribute.
8044 8045 8046 |
# File 'lib/ovirtsdk4/types.rb', line 8044 def external=(value) @external = value end |
#hash ⇒ Object
Generates a hash value for this object.
8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 |
# File 'lib/ovirtsdk4/types.rb', line 8251 def hash super + @auto_cleared.hash + @end_time.hash + @external.hash + @last_updated.hash + @owner.hash + @start_time.hash + @status.hash + @steps.hash end |
#id ⇒ String
Returns the value of the id attribute.
8053 8054 8055 |
# File 'lib/ovirtsdk4/types.rb', line 8053 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
8062 8063 8064 |
# File 'lib/ovirtsdk4/types.rb', line 8062 def id=(value) @id = value end |
#last_updated ⇒ DateTime
Returns the value of the last_updated attribute.
8071 8072 8073 |
# File 'lib/ovirtsdk4/types.rb', line 8071 def last_updated @last_updated end |
#last_updated=(value) ⇒ Object
Sets the value of the last_updated attribute.
8080 8081 8082 |
# File 'lib/ovirtsdk4/types.rb', line 8080 def last_updated=(value) @last_updated = value end |
#name ⇒ String
Returns the value of the name attribute.
8089 8090 8091 |
# File 'lib/ovirtsdk4/types.rb', line 8089 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
8098 8099 8100 |
# File 'lib/ovirtsdk4/types.rb', line 8098 def name=(value) @name = value end |
#owner ⇒ User
Returns the value of the owner attribute.
8107 8108 8109 |
# File 'lib/ovirtsdk4/types.rb', line 8107 def owner @owner end |
#owner=(value) ⇒ Object
Sets the value of the owner 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.
8120 8121 8122 8123 8124 8125 |
# File 'lib/ovirtsdk4/types.rb', line 8120 def owner=(value) if value.is_a?(Hash) value = User.new(value) end @owner = value end |
#start_time ⇒ DateTime
Returns the value of the start_time attribute.
8132 8133 8134 |
# File 'lib/ovirtsdk4/types.rb', line 8132 def start_time @start_time end |
#start_time=(value) ⇒ Object
Sets the value of the start_time attribute.
8141 8142 8143 |
# File 'lib/ovirtsdk4/types.rb', line 8141 def start_time=(value) @start_time = value end |
#status ⇒ JobStatus
Returns the value of the status attribute.
8150 8151 8152 |
# File 'lib/ovirtsdk4/types.rb', line 8150 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status attribute.
8159 8160 8161 |
# File 'lib/ovirtsdk4/types.rb', line 8159 def status=(value) @status = value end |
#steps ⇒ Array<Step>
Returns the value of the steps attribute.
8168 8169 8170 |
# File 'lib/ovirtsdk4/types.rb', line 8168 def steps @steps end |
#steps=(list) ⇒ Object
Sets the value of the steps attribute.
8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 |
# File 'lib/ovirtsdk4/types.rb', line 8177 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 |