Class: OCI::FleetSoftwareUpdate::Models::NextActionToExecuteDetails
- Inherits:
-
Object
- Object
- OCI::FleetSoftwareUpdate::Models::NextActionToExecuteDetails
- Defined in:
- lib/oci/fleet_software_update/models/next_action_to_execute_details.rb
Overview
Details of the next Exadata Fleet Update Action to execute in a Maintenance Cycle.
Constant Summary collapse
- TYPE_ENUM =
[ TYPE_STAGE = 'STAGE'.freeze, TYPE_PRECHECK_STAGE = 'PRECHECK_STAGE'.freeze, TYPE_PRECHECK_APPLY = 'PRECHECK_APPLY'.freeze, TYPE_APPLY = 'APPLY'.freeze, TYPE_ROLLBACK_AND_REMOVE_TARGET = 'ROLLBACK_AND_REMOVE_TARGET'.freeze, TYPE_CLEANUP = 'CLEANUP'.freeze, TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#time_to_start ⇒ DateTime
The date and time the Exadata Fleet Update Action is expected to start.
-
#type ⇒ String
[Required] Type of Exadata Fleet Update Action.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ NextActionToExecuteDetails
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Constructor Details
#initialize(attributes = {}) ⇒ NextActionToExecuteDetails
Initializes the object
62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/oci/fleet_software_update/models/next_action_to_execute_details.rb', line 62 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.type = attributes[:'type'] if attributes[:'type'] self.time_to_start = attributes[:'timeToStart'] if attributes[:'timeToStart'] raise 'You cannot provide both :timeToStart and :time_to_start' if attributes.key?(:'timeToStart') && attributes.key?(:'time_to_start') self.time_to_start = attributes[:'time_to_start'] if attributes[:'time_to_start'] end |
Instance Attribute Details
#time_to_start ⇒ DateTime
The date and time the Exadata Fleet Update Action is expected to start. Null if no Action has been scheduled. RFC 3339, section 14.29.
32 33 34 |
# File 'lib/oci/fleet_software_update/models/next_action_to_execute_details.rb', line 32 def time_to_start @time_to_start end |
#type ⇒ String
[Required] Type of Exadata Fleet Update Action
26 27 28 |
# File 'lib/oci/fleet_software_update/models/next_action_to_execute_details.rb', line 26 def type @type end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
35 36 37 38 39 40 41 42 |
# File 'lib/oci/fleet_software_update/models/next_action_to_execute_details.rb', line 35 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'type': :'type', 'time_to_start': :'timeToStart' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
45 46 47 48 49 50 51 52 |
# File 'lib/oci/fleet_software_update/models/next_action_to_execute_details.rb', line 45 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'type': :'String', 'time_to_start': :'DateTime' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
97 98 99 100 101 102 103 |
# File 'lib/oci/fleet_software_update/models/next_action_to_execute_details.rb', line 97 def ==(other) return true if equal?(other) self.class == other.class && type == other.type && time_to_start == other.time_to_start end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
# File 'lib/oci/fleet_software_update/models/next_action_to_execute_details.rb', line 128 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /^Array<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) public_method("#{key}=").call( attributes[self.class.attribute_map[key]] .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? public_method("#{key}=").call( OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]) ) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(other) ⇒ Boolean
108 109 110 |
# File 'lib/oci/fleet_software_update/models/next_action_to_execute_details.rb', line 108 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
117 118 119 |
# File 'lib/oci/fleet_software_update/models/next_action_to_execute_details.rb', line 117 def hash [type, time_to_start].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
161 162 163 164 165 166 167 168 169 170 |
# File 'lib/oci/fleet_software_update/models/next_action_to_execute_details.rb', line 161 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
155 156 157 |
# File 'lib/oci/fleet_software_update/models/next_action_to_execute_details.rb', line 155 def to_s to_hash.to_s end |