Class: OCI::Database::Models::ManagedSoftwareUpdateMaintenanceDetails
- Inherits:
-
Object
- Object
- OCI::Database::Models::ManagedSoftwareUpdateMaintenanceDetails
- Defined in:
- lib/oci/database/models/managed_software_update_maintenance_details.rb
Overview
Provides details about actual Oracle Managed Database Software Updates scheduled time and version.
Constant Summary collapse
- UPDATE_READINESS_STATUS_ENUM =
[ UPDATE_READINESS_STATUS_SCHEDULED = 'SCHEDULED'.freeze, UPDATE_READINESS_STATUS_SUCCEEDED = 'SUCCEEDED'.freeze, UPDATE_READINESS_STATUS_READY_FOR_MANAGED_UPDATE = 'READY_FOR_MANAGED_UPDATE'.freeze, UPDATE_READINESS_STATUS_NOT_READY_FOR_MANAGED_UPDATE = 'NOT_READY_FOR_MANAGED_UPDATE'.freeze, UPDATE_READINESS_STATUS_IN_PROGRESS = 'IN_PROGRESS'.freeze, UPDATE_READINESS_STATUS_NEEDS_ATTENTION = 'NEEDS_ATTENTION'.freeze, UPDATE_READINESS_STATUS_AWAITING_RESOLUTION = 'AWAITING_RESOLUTION'.freeze, UPDATE_READINESS_STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- UPDATE_MODE_ENUM =
[ UPDATE_MODE_ROLLING = 'ROLLING'.freeze, UPDATE_MODE_NONROLLING = 'NONROLLING'.freeze, UPDATE_MODE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#time_of_last_readiness_check ⇒ DateTime
The date and time of the last readiness check.
-
#time_of_status_update ⇒ DateTime
The date and time of when the status was updated.
-
#time_scheduled ⇒ DateTime
[Required] The date and time of the database was scheduled for update.
-
#update_mode ⇒ String
Oracle Managed Database Software update method, either "ROLLING" or "NONROLLING".
-
#update_readiness_status ⇒ String
The managed software update readiness status.
-
#update_readiness_status_details ⇒ String
This field will contain actual cause of update readiness state.
-
#version ⇒ String
[Required] The version of the database was scheduled for update.
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 = {}) ⇒ ManagedSoftwareUpdateMaintenanceDetails
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 = {}) ⇒ ManagedSoftwareUpdateMaintenanceDetails
Initializes the object
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
# File 'lib/oci/database/models/managed_software_update_maintenance_details.rb', line 102 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.time_scheduled = attributes[:'timeScheduled'] if attributes[:'timeScheduled'] raise 'You cannot provide both :timeScheduled and :time_scheduled' if attributes.key?(:'timeScheduled') && attributes.key?(:'time_scheduled') self.time_scheduled = attributes[:'time_scheduled'] if attributes[:'time_scheduled'] self.update_readiness_status = attributes[:'updateReadinessStatus'] if attributes[:'updateReadinessStatus'] raise 'You cannot provide both :updateReadinessStatus and :update_readiness_status' if attributes.key?(:'updateReadinessStatus') && attributes.key?(:'update_readiness_status') self.update_readiness_status = attributes[:'update_readiness_status'] if attributes[:'update_readiness_status'] self.update_readiness_status_details = attributes[:'updateReadinessStatusDetails'] if attributes[:'updateReadinessStatusDetails'] raise 'You cannot provide both :updateReadinessStatusDetails and :update_readiness_status_details' if attributes.key?(:'updateReadinessStatusDetails') && attributes.key?(:'update_readiness_status_details') self.update_readiness_status_details = attributes[:'update_readiness_status_details'] if attributes[:'update_readiness_status_details'] self.time_of_status_update = attributes[:'timeOfStatusUpdate'] if attributes[:'timeOfStatusUpdate'] raise 'You cannot provide both :timeOfStatusUpdate and :time_of_status_update' if attributes.key?(:'timeOfStatusUpdate') && attributes.key?(:'time_of_status_update') self.time_of_status_update = attributes[:'time_of_status_update'] if attributes[:'time_of_status_update'] self.update_mode = attributes[:'updateMode'] if attributes[:'updateMode'] raise 'You cannot provide both :updateMode and :update_mode' if attributes.key?(:'updateMode') && attributes.key?(:'update_mode') self.update_mode = attributes[:'update_mode'] if attributes[:'update_mode'] self.version = attributes[:'version'] if attributes[:'version'] self.time_of_last_readiness_check = attributes[:'timeOfLastReadinessCheck'] if attributes[:'timeOfLastReadinessCheck'] raise 'You cannot provide both :timeOfLastReadinessCheck and :time_of_last_readiness_check' if attributes.key?(:'timeOfLastReadinessCheck') && attributes.key?(:'time_of_last_readiness_check') self.time_of_last_readiness_check = attributes[:'time_of_last_readiness_check'] if attributes[:'time_of_last_readiness_check'] end |
Instance Attribute Details
#time_of_last_readiness_check ⇒ DateTime
The date and time of the last readiness check.
57 58 59 |
# File 'lib/oci/database/models/managed_software_update_maintenance_details.rb', line 57 def time_of_last_readiness_check @time_of_last_readiness_check end |
#time_of_status_update ⇒ DateTime
The date and time of when the status was updated.
44 45 46 |
# File 'lib/oci/database/models/managed_software_update_maintenance_details.rb', line 44 def time_of_status_update @time_of_status_update end |
#time_scheduled ⇒ DateTime
[Required] The date and time of the database was scheduled for update.
32 33 34 |
# File 'lib/oci/database/models/managed_software_update_maintenance_details.rb', line 32 def time_scheduled @time_scheduled end |
#update_mode ⇒ String
Oracle Managed Database Software update method, either "ROLLING" or "NONROLLING"
49 50 51 |
# File 'lib/oci/database/models/managed_software_update_maintenance_details.rb', line 49 def update_mode @update_mode end |
#update_readiness_status ⇒ String
The managed software update readiness status
36 37 38 |
# File 'lib/oci/database/models/managed_software_update_maintenance_details.rb', line 36 def update_readiness_status @update_readiness_status end |
#update_readiness_status_details ⇒ String
This field will contain actual cause of update readiness state.
40 41 42 |
# File 'lib/oci/database/models/managed_software_update_maintenance_details.rb', line 40 def update_readiness_status_details @update_readiness_status_details end |
#version ⇒ String
[Required] The version of the database was scheduled for update.
53 54 55 |
# File 'lib/oci/database/models/managed_software_update_maintenance_details.rb', line 53 def version @version end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/oci/database/models/managed_software_update_maintenance_details.rb', line 60 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'time_scheduled': :'timeScheduled', 'update_readiness_status': :'updateReadinessStatus', 'update_readiness_status_details': :'updateReadinessStatusDetails', 'time_of_status_update': :'timeOfStatusUpdate', 'update_mode': :'updateMode', 'version': :'version', 'time_of_last_readiness_check': :'timeOfLastReadinessCheck' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/oci/database/models/managed_software_update_maintenance_details.rb', line 75 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'time_scheduled': :'DateTime', 'update_readiness_status': :'String', 'update_readiness_status_details': :'String', 'time_of_status_update': :'DateTime', 'update_mode': :'String', 'version': :'String', 'time_of_last_readiness_check': :'DateTime' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
180 181 182 183 184 185 186 187 188 189 190 191 |
# File 'lib/oci/database/models/managed_software_update_maintenance_details.rb', line 180 def ==(other) return true if equal?(other) self.class == other.class && time_scheduled == other.time_scheduled && update_readiness_status == other.update_readiness_status && update_readiness_status_details == other.update_readiness_status_details && time_of_status_update == other.time_of_status_update && update_mode == other.update_mode && version == other.version && time_of_last_readiness_check == other.time_of_last_readiness_check end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 |
# File 'lib/oci/database/models/managed_software_update_maintenance_details.rb', line 216 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
196 197 198 |
# File 'lib/oci/database/models/managed_software_update_maintenance_details.rb', line 196 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
205 206 207 |
# File 'lib/oci/database/models/managed_software_update_maintenance_details.rb', line 205 def hash [time_scheduled, update_readiness_status, update_readiness_status_details, time_of_status_update, update_mode, version, time_of_last_readiness_check].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
249 250 251 252 253 254 255 256 257 258 |
# File 'lib/oci/database/models/managed_software_update_maintenance_details.rb', line 249 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
243 244 245 |
# File 'lib/oci/database/models/managed_software_update_maintenance_details.rb', line 243 def to_s to_hash.to_s end |