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
true
ifself
andother
have the same attributes and values. -
#auto_cleared ⇒ Boolean
Returns the value of the
auto_cleared
attribute. -
#auto_cleared=(value) ⇒ Object
Sets the value of the
auto_cleared
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#end_time ⇒ DateTime
Returns the value of the
end_time
attribute. -
#end_time=(value) ⇒ Object
Sets the value of the
end_time
attribute. -
#external ⇒ Boolean
Returns the value of the
external
attribute. -
#external=(value) ⇒ Object
Sets the value of the
external
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ Job
constructor
Creates a new instance of the Job class.
-
#last_updated ⇒ DateTime
Returns the value of the
last_updated
attribute. -
#last_updated=(value) ⇒ Object
Sets the value of the
last_updated
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#owner ⇒ User
Returns the value of the
owner
attribute. -
#owner=(value) ⇒ Object
Sets the value of the
owner
attribute. -
#start_time ⇒ DateTime
Returns the value of the
start_time
attribute. -
#start_time=(value) ⇒ Object
Sets the value of the
start_time
attribute. -
#status ⇒ JobStatus
Returns the value of the
status
attribute. -
#status=(value) ⇒ Object
Sets the value of the
status
attribute. -
#steps ⇒ Array<Step>
Returns the value of the
steps
attribute. -
#steps=(list) ⇒ Object
Sets the value of the
steps
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Job
Creates a new instance of the OvirtSDK4::Job class.
7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 |
# File 'lib/ovirtsdk4/types.rb', line 7997 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.
8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 |
# File 'lib/ovirtsdk4/types.rb', line 8012 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.
7739 7740 7741 |
# File 'lib/ovirtsdk4/types.rb', line 7739 def auto_cleared @auto_cleared end |
#auto_cleared=(value) ⇒ Object
Sets the value of the auto_cleared
attribute.
7748 7749 7750 |
# File 'lib/ovirtsdk4/types.rb', line 7748 def auto_cleared=(value) @auto_cleared = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
7757 7758 7759 |
# File 'lib/ovirtsdk4/types.rb', line 7757 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
7766 7767 7768 |
# File 'lib/ovirtsdk4/types.rb', line 7766 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
7775 7776 7777 |
# File 'lib/ovirtsdk4/types.rb', line 7775 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
7784 7785 7786 |
# File 'lib/ovirtsdk4/types.rb', line 7784 def description=(value) @description = value end |
#end_time ⇒ DateTime
Returns the value of the end_time
attribute.
7793 7794 7795 |
# File 'lib/ovirtsdk4/types.rb', line 7793 def end_time @end_time end |
#end_time=(value) ⇒ Object
Sets the value of the end_time
attribute.
7802 7803 7804 |
# File 'lib/ovirtsdk4/types.rb', line 7802 def end_time=(value) @end_time = value end |
#external ⇒ Boolean
Returns the value of the external
attribute.
7811 7812 7813 |
# File 'lib/ovirtsdk4/types.rb', line 7811 def external @external end |
#external=(value) ⇒ Object
Sets the value of the external
attribute.
7820 7821 7822 |
# File 'lib/ovirtsdk4/types.rb', line 7820 def external=(value) @external = value end |
#hash ⇒ Object
Generates a hash value for this object.
8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 |
# File 'lib/ovirtsdk4/types.rb', line 8027 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.
7829 7830 7831 |
# File 'lib/ovirtsdk4/types.rb', line 7829 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
7838 7839 7840 |
# File 'lib/ovirtsdk4/types.rb', line 7838 def id=(value) @id = value end |
#last_updated ⇒ DateTime
Returns the value of the last_updated
attribute.
7847 7848 7849 |
# File 'lib/ovirtsdk4/types.rb', line 7847 def last_updated @last_updated end |
#last_updated=(value) ⇒ Object
Sets the value of the last_updated
attribute.
7856 7857 7858 |
# File 'lib/ovirtsdk4/types.rb', line 7856 def last_updated=(value) @last_updated = value end |
#name ⇒ String
Returns the value of the name
attribute.
7865 7866 7867 |
# File 'lib/ovirtsdk4/types.rb', line 7865 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
7874 7875 7876 |
# File 'lib/ovirtsdk4/types.rb', line 7874 def name=(value) @name = value end |
#owner ⇒ User
Returns the value of the owner
attribute.
7883 7884 7885 |
# File 'lib/ovirtsdk4/types.rb', line 7883 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.
7896 7897 7898 7899 7900 7901 |
# File 'lib/ovirtsdk4/types.rb', line 7896 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.
7908 7909 7910 |
# File 'lib/ovirtsdk4/types.rb', line 7908 def start_time @start_time end |
#start_time=(value) ⇒ Object
Sets the value of the start_time
attribute.
7917 7918 7919 |
# File 'lib/ovirtsdk4/types.rb', line 7917 def start_time=(value) @start_time = value end |
#status ⇒ JobStatus
Returns the value of the status
attribute.
7926 7927 7928 |
# File 'lib/ovirtsdk4/types.rb', line 7926 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
7935 7936 7937 |
# File 'lib/ovirtsdk4/types.rb', line 7935 def status=(value) @status = value end |
#steps ⇒ Array<Step>
Returns the value of the steps
attribute.
7944 7945 7946 |
# File 'lib/ovirtsdk4/types.rb', line 7944 def steps @steps end |
#steps=(list) ⇒ Object
Sets the value of the steps
attribute.
7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 |
# File 'lib/ovirtsdk4/types.rb', line 7953 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 |