Class: OCI::GoldenGate::Models::DeploymentUpgradeSummary
- Inherits:
-
Object
- Object
- OCI::GoldenGate::Models::DeploymentUpgradeSummary
- Defined in:
- lib/oci/golden_gate/models/deployment_upgrade_summary.rb
Overview
Summary of the Deployment Upgrade.
Constant Summary collapse
- DEPLOYMENT_UPGRADE_TYPE_ENUM =
[ DEPLOYMENT_UPGRADE_TYPE_MANUAL = 'MANUAL'.freeze, DEPLOYMENT_UPGRADE_TYPE_AUTOMATIC = 'AUTOMATIC'.freeze, DEPLOYMENT_UPGRADE_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- LIFECYCLE_SUB_STATE_ENUM =
[ LIFECYCLE_SUB_STATE_RECOVERING = 'RECOVERING'.freeze, LIFECYCLE_SUB_STATE_STARTING = 'STARTING'.freeze, LIFECYCLE_SUB_STATE_STOPPING = 'STOPPING'.freeze, LIFECYCLE_SUB_STATE_MOVING = 'MOVING'.freeze, LIFECYCLE_SUB_STATE_UPGRADING = 'UPGRADING'.freeze, LIFECYCLE_SUB_STATE_RESTORING = 'RESTORING'.freeze, LIFECYCLE_SUB_STATE_BACKUP_IN_PROGRESS = 'BACKUP_IN_PROGRESS'.freeze, LIFECYCLE_SUB_STATE_ROLLBACK_IN_PROGRESS = 'ROLLBACK_IN_PROGRESS'.freeze, LIFECYCLE_SUB_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- RELEASE_TYPE_ENUM =
[ RELEASE_TYPE_MAJOR = 'MAJOR'.freeze, RELEASE_TYPE_BUNDLE = 'BUNDLE'.freeze, RELEASE_TYPE_MINOR = 'MINOR'.freeze, RELEASE_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#compartment_id ⇒ String
[Required] The OCID of the compartment being referenced.
-
#defined_tags ⇒ Hash<String, Hash<String, Object>>
Tags defined for this resource.
-
#deployment_id ⇒ String
[Required] The OCID of the deployment being referenced.
-
#deployment_upgrade_type ⇒ String
[Required] The type of the deployment upgrade: MANUAL or AUTOMATIC.
-
#description ⇒ String
Metadata about this specific object.
-
#display_name ⇒ String
An object's Display Name.
-
#freeform_tags ⇒ Hash<String, String>
A simple key-value pair that is applied without any predefined name, type, or scope.
-
#id ⇒ String
[Required] The OCID of the deployment being referenced.
-
#is_cancel_allowed ⇒ BOOLEAN
Indicates if cancel is allowed.
-
#is_reschedule_allowed ⇒ BOOLEAN
Indicates if reschedule is allowed.
-
#is_rollback_allowed ⇒ BOOLEAN
Indicates if rollback is allowed.
-
#is_security_fix ⇒ BOOLEAN
Indicates if OGG release contains security fix.
-
#is_snoozed ⇒ BOOLEAN
Indicates if upgrade notifications are snoozed or not.
-
#lifecycle_details ⇒ String
Describes the object's current state in detail.
-
#lifecycle_state ⇒ String
Possible lifecycle states for a Deployment Upgrade.
-
#lifecycle_sub_state ⇒ String
Possible GGS lifecycle sub-states.
-
#ogg_version ⇒ String
Version of OGG.
-
#previous_ogg_version ⇒ String
Version of OGG.
-
#release_type ⇒ String
The type of release.
-
#system_tags ⇒ Hash<String, Hash<String, Object>>
The system tags associated with this resource, if any.
-
#time_created ⇒ DateTime
The time the resource was created.
-
#time_finished ⇒ DateTime
The date and time the request was finished.
-
#time_ogg_version_supported_until ⇒ DateTime
The time until OGG version is supported.
-
#time_released ⇒ DateTime
The time the resource was released.
-
#time_schedule ⇒ DateTime
The time of upgrade schedule.
-
#time_schedule_max ⇒ DateTime
Indicates the latest time until the deployment upgrade could be rescheduled.
-
#time_snoozed_until ⇒ DateTime
The time the upgrade notifications are snoozed until.
-
#time_started ⇒ DateTime
The date and time the request was started.
-
#time_updated ⇒ DateTime
The time the resource was last updated.
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 = {}) ⇒ DeploymentUpgradeSummary
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 = {}) ⇒ DeploymentUpgradeSummary
Initializes the object
314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 314 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.id = attributes[:'id'] if attributes[:'id'] self.display_name = attributes[:'displayName'] if attributes[:'displayName'] raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name') self.display_name = attributes[:'display_name'] if attributes[:'display_name'] self.description = attributes[:'description'] if attributes[:'description'] self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId'] raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id') self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id'] self.deployment_id = attributes[:'deploymentId'] if attributes[:'deploymentId'] raise 'You cannot provide both :deploymentId and :deployment_id' if attributes.key?(:'deploymentId') && attributes.key?(:'deployment_id') self.deployment_id = attributes[:'deployment_id'] if attributes[:'deployment_id'] self.deployment_upgrade_type = attributes[:'deploymentUpgradeType'] if attributes[:'deploymentUpgradeType'] raise 'You cannot provide both :deploymentUpgradeType and :deployment_upgrade_type' if attributes.key?(:'deploymentUpgradeType') && attributes.key?(:'deployment_upgrade_type') self.deployment_upgrade_type = attributes[:'deployment_upgrade_type'] if attributes[:'deployment_upgrade_type'] self.time_started = attributes[:'timeStarted'] if attributes[:'timeStarted'] raise 'You cannot provide both :timeStarted and :time_started' if attributes.key?(:'timeStarted') && attributes.key?(:'time_started') self.time_started = attributes[:'time_started'] if attributes[:'time_started'] self.time_finished = attributes[:'timeFinished'] if attributes[:'timeFinished'] raise 'You cannot provide both :timeFinished and :time_finished' if attributes.key?(:'timeFinished') && attributes.key?(:'time_finished') self.time_finished = attributes[:'time_finished'] if attributes[:'time_finished'] self.ogg_version = attributes[:'oggVersion'] if attributes[:'oggVersion'] raise 'You cannot provide both :oggVersion and :ogg_version' if attributes.key?(:'oggVersion') && attributes.key?(:'ogg_version') self.ogg_version = attributes[:'ogg_version'] if attributes[:'ogg_version'] self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated'] raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created') self.time_created = attributes[:'time_created'] if attributes[:'time_created'] self.time_updated = attributes[:'timeUpdated'] if attributes[:'timeUpdated'] raise 'You cannot provide both :timeUpdated and :time_updated' if attributes.key?(:'timeUpdated') && attributes.key?(:'time_updated') self.time_updated = attributes[:'time_updated'] if attributes[:'time_updated'] self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState'] raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state') self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state'] self.lifecycle_sub_state = attributes[:'lifecycleSubState'] if attributes[:'lifecycleSubState'] raise 'You cannot provide both :lifecycleSubState and :lifecycle_sub_state' if attributes.key?(:'lifecycleSubState') && attributes.key?(:'lifecycle_sub_state') self.lifecycle_sub_state = attributes[:'lifecycle_sub_state'] if attributes[:'lifecycle_sub_state'] self.lifecycle_details = attributes[:'lifecycleDetails'] if attributes[:'lifecycleDetails'] raise 'You cannot provide both :lifecycleDetails and :lifecycle_details' if attributes.key?(:'lifecycleDetails') && attributes.key?(:'lifecycle_details') self.lifecycle_details = attributes[:'lifecycle_details'] if attributes[:'lifecycle_details'] self. = attributes[:'freeformTags'] if attributes[:'freeformTags'] raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags') self. = attributes[:'freeform_tags'] if attributes[:'freeform_tags'] self. = attributes[:'definedTags'] if attributes[:'definedTags'] raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags') self. = attributes[:'defined_tags'] if attributes[:'defined_tags'] self. = attributes[:'systemTags'] if attributes[:'systemTags'] raise 'You cannot provide both :systemTags and :system_tags' if attributes.key?(:'systemTags') && attributes.key?(:'system_tags') self. = attributes[:'system_tags'] if attributes[:'system_tags'] self.previous_ogg_version = attributes[:'previousOggVersion'] if attributes[:'previousOggVersion'] raise 'You cannot provide both :previousOggVersion and :previous_ogg_version' if attributes.key?(:'previousOggVersion') && attributes.key?(:'previous_ogg_version') self.previous_ogg_version = attributes[:'previous_ogg_version'] if attributes[:'previous_ogg_version'] self.time_schedule = attributes[:'timeSchedule'] if attributes[:'timeSchedule'] raise 'You cannot provide both :timeSchedule and :time_schedule' if attributes.key?(:'timeSchedule') && attributes.key?(:'time_schedule') self.time_schedule = attributes[:'time_schedule'] if attributes[:'time_schedule'] self.is_snoozed = attributes[:'isSnoozed'] unless attributes[:'isSnoozed'].nil? raise 'You cannot provide both :isSnoozed and :is_snoozed' if attributes.key?(:'isSnoozed') && attributes.key?(:'is_snoozed') self.is_snoozed = attributes[:'is_snoozed'] unless attributes[:'is_snoozed'].nil? self.time_snoozed_until = attributes[:'timeSnoozedUntil'] if attributes[:'timeSnoozedUntil'] raise 'You cannot provide both :timeSnoozedUntil and :time_snoozed_until' if attributes.key?(:'timeSnoozedUntil') && attributes.key?(:'time_snoozed_until') self.time_snoozed_until = attributes[:'time_snoozed_until'] if attributes[:'time_snoozed_until'] self.time_released = attributes[:'timeReleased'] if attributes[:'timeReleased'] raise 'You cannot provide both :timeReleased and :time_released' if attributes.key?(:'timeReleased') && attributes.key?(:'time_released') self.time_released = attributes[:'time_released'] if attributes[:'time_released'] self.release_type = attributes[:'releaseType'] if attributes[:'releaseType'] raise 'You cannot provide both :releaseType and :release_type' if attributes.key?(:'releaseType') && attributes.key?(:'release_type') self.release_type = attributes[:'release_type'] if attributes[:'release_type'] self.is_security_fix = attributes[:'isSecurityFix'] unless attributes[:'isSecurityFix'].nil? raise 'You cannot provide both :isSecurityFix and :is_security_fix' if attributes.key?(:'isSecurityFix') && attributes.key?(:'is_security_fix') self.is_security_fix = attributes[:'is_security_fix'] unless attributes[:'is_security_fix'].nil? self.is_rollback_allowed = attributes[:'isRollbackAllowed'] unless attributes[:'isRollbackAllowed'].nil? raise 'You cannot provide both :isRollbackAllowed and :is_rollback_allowed' if attributes.key?(:'isRollbackAllowed') && attributes.key?(:'is_rollback_allowed') self.is_rollback_allowed = attributes[:'is_rollback_allowed'] unless attributes[:'is_rollback_allowed'].nil? self.time_ogg_version_supported_until = attributes[:'timeOggVersionSupportedUntil'] if attributes[:'timeOggVersionSupportedUntil'] raise 'You cannot provide both :timeOggVersionSupportedUntil and :time_ogg_version_supported_until' if attributes.key?(:'timeOggVersionSupportedUntil') && attributes.key?(:'time_ogg_version_supported_until') self.time_ogg_version_supported_until = attributes[:'time_ogg_version_supported_until'] if attributes[:'time_ogg_version_supported_until'] self.is_cancel_allowed = attributes[:'isCancelAllowed'] unless attributes[:'isCancelAllowed'].nil? raise 'You cannot provide both :isCancelAllowed and :is_cancel_allowed' if attributes.key?(:'isCancelAllowed') && attributes.key?(:'is_cancel_allowed') self.is_cancel_allowed = attributes[:'is_cancel_allowed'] unless attributes[:'is_cancel_allowed'].nil? self.is_reschedule_allowed = attributes[:'isRescheduleAllowed'] unless attributes[:'isRescheduleAllowed'].nil? raise 'You cannot provide both :isRescheduleAllowed and :is_reschedule_allowed' if attributes.key?(:'isRescheduleAllowed') && attributes.key?(:'is_reschedule_allowed') self.is_reschedule_allowed = attributes[:'is_reschedule_allowed'] unless attributes[:'is_reschedule_allowed'].nil? self.time_schedule_max = attributes[:'timeScheduleMax'] if attributes[:'timeScheduleMax'] raise 'You cannot provide both :timeScheduleMax and :time_schedule_max' if attributes.key?(:'timeScheduleMax') && attributes.key?(:'time_schedule_max') self.time_schedule_max = attributes[:'time_schedule_max'] if attributes[:'time_schedule_max'] end |
Instance Attribute Details
#compartment_id ⇒ String
[Required] The OCID of the compartment being referenced.
56 57 58 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 56 def compartment_id @compartment_id end |
#defined_tags ⇒ Hash<String, Hash<String, Object>>
Tags defined for this resource. Each key is predefined and scoped to a namespace.
Example: {\"foo-namespace\": {\"bar-key\": \"value\"}}
126 127 128 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 126 def @defined_tags end |
#deployment_id ⇒ String
[Required] The OCID of the deployment being referenced.
61 62 63 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 61 def deployment_id @deployment_id end |
#deployment_upgrade_type ⇒ String
[Required] The type of the deployment upgrade: MANUAL or AUTOMATIC
66 67 68 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 66 def deployment_upgrade_type @deployment_upgrade_type end |
#description ⇒ String
Metadata about this specific object.
51 52 53 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 51 def description @description end |
#display_name ⇒ String
An object's Display Name.
46 47 48 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 46 def display_name @display_name end |
#freeform_tags ⇒ Hash<String, String>
A simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only.
Example: {\"bar-key\": \"value\"}
119 120 121 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 119 def @freeform_tags end |
#id ⇒ String
[Required] The OCID of the deployment being referenced.
41 42 43 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 41 def id @id end |
#is_cancel_allowed ⇒ BOOLEAN
Indicates if cancel is allowed. Scheduled upgrade can be cancelled only if target version is not forced by service, otherwise only reschedule allowed.
192 193 194 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 192 def is_cancel_allowed @is_cancel_allowed end |
#is_reschedule_allowed ⇒ BOOLEAN
Indicates if reschedule is allowed. Upgrade can be rescheduled postponed until the end of the service defined auto-upgrade period.
197 198 199 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 197 def is_reschedule_allowed @is_reschedule_allowed end |
#is_rollback_allowed ⇒ BOOLEAN
Indicates if rollback is allowed. In practice only the last upgrade can be rolled back. - Manual upgrade is allowed to rollback only until the old version isn't deprecated yet. - Automatic upgrade by default is not allowed, unless a serious issue does not justify.
180 181 182 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 180 def is_rollback_allowed @is_rollback_allowed end |
#is_security_fix ⇒ BOOLEAN
Indicates if OGG release contains security fix.
173 174 175 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 173 def is_security_fix @is_security_fix end |
#is_snoozed ⇒ BOOLEAN
Indicates if upgrade notifications are snoozed or not.
151 152 153 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 151 def is_snoozed @is_snoozed end |
#lifecycle_details ⇒ String
Describes the object's current state in detail. For example, it can be used to provide actionable information for a resource in a Failed state.
111 112 113 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 111 def lifecycle_details @lifecycle_details end |
#lifecycle_state ⇒ String
Possible lifecycle states for a Deployment Upgrade.
100 101 102 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 100 def lifecycle_state @lifecycle_state end |
#lifecycle_sub_state ⇒ String
Possible GGS lifecycle sub-states.
105 106 107 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 105 def lifecycle_sub_state @lifecycle_sub_state end |
#ogg_version ⇒ String
Version of OGG
83 84 85 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 83 def ogg_version @ogg_version end |
#previous_ogg_version ⇒ String
Version of OGG
140 141 142 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 140 def previous_ogg_version @previous_ogg_version end |
#release_type ⇒ String
The type of release.
168 169 170 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 168 def release_type @release_type end |
#system_tags ⇒ Hash<String, Hash<String, Object>>
The system tags associated with this resource, if any. The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags.
Example: {orcl-cloud: {free-tier-retain: true}}
135 136 137 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 135 def @system_tags end |
#time_created ⇒ DateTime
The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
89 90 91 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 89 def time_created @time_created end |
#time_finished ⇒ DateTime
The date and time the request was finished. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
78 79 80 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 78 def time_finished @time_finished end |
#time_ogg_version_supported_until ⇒ DateTime
The time until OGG version is supported. After this date has passed OGG version will not be available anymore. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
186 187 188 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 186 def time_ogg_version_supported_until @time_ogg_version_supported_until end |
#time_released ⇒ DateTime
The time the resource was released. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
163 164 165 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 163 def time_released @time_released end |
#time_schedule ⇒ DateTime
The time of upgrade schedule. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
146 147 148 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 146 def time_schedule @time_schedule end |
#time_schedule_max ⇒ DateTime
Indicates the latest time until the deployment upgrade could be rescheduled. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
203 204 205 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 203 def time_schedule_max @time_schedule_max end |
#time_snoozed_until ⇒ DateTime
The time the upgrade notifications are snoozed until. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
157 158 159 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 157 def time_snoozed_until @time_snoozed_until end |
#time_started ⇒ DateTime
The date and time the request was started. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
72 73 74 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 72 def time_started @time_started end |
#time_updated ⇒ DateTime
The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
95 96 97 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 95 def time_updated @time_updated end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 206 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'id': :'id', 'display_name': :'displayName', 'description': :'description', 'compartment_id': :'compartmentId', 'deployment_id': :'deploymentId', 'deployment_upgrade_type': :'deploymentUpgradeType', 'time_started': :'timeStarted', 'time_finished': :'timeFinished', 'ogg_version': :'oggVersion', 'time_created': :'timeCreated', 'time_updated': :'timeUpdated', 'lifecycle_state': :'lifecycleState', 'lifecycle_sub_state': :'lifecycleSubState', 'lifecycle_details': :'lifecycleDetails', 'freeform_tags': :'freeformTags', 'defined_tags': :'definedTags', 'system_tags': :'systemTags', 'previous_ogg_version': :'previousOggVersion', 'time_schedule': :'timeSchedule', 'is_snoozed': :'isSnoozed', 'time_snoozed_until': :'timeSnoozedUntil', 'time_released': :'timeReleased', 'release_type': :'releaseType', 'is_security_fix': :'isSecurityFix', 'is_rollback_allowed': :'isRollbackAllowed', 'time_ogg_version_supported_until': :'timeOggVersionSupportedUntil', 'is_cancel_allowed': :'isCancelAllowed', 'is_reschedule_allowed': :'isRescheduleAllowed', 'time_schedule_max': :'timeScheduleMax' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 243 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'id': :'String', 'display_name': :'String', 'description': :'String', 'compartment_id': :'String', 'deployment_id': :'String', 'deployment_upgrade_type': :'String', 'time_started': :'DateTime', 'time_finished': :'DateTime', 'ogg_version': :'String', 'time_created': :'DateTime', 'time_updated': :'DateTime', 'lifecycle_state': :'String', 'lifecycle_sub_state': :'String', 'lifecycle_details': :'String', 'freeform_tags': :'Hash<String, String>', 'defined_tags': :'Hash<String, Hash<String, Object>>', 'system_tags': :'Hash<String, Hash<String, Object>>', 'previous_ogg_version': :'String', 'time_schedule': :'DateTime', 'is_snoozed': :'BOOLEAN', 'time_snoozed_until': :'DateTime', 'time_released': :'DateTime', 'release_type': :'String', 'is_security_fix': :'BOOLEAN', 'is_rollback_allowed': :'BOOLEAN', 'time_ogg_version_supported_until': :'DateTime', 'is_cancel_allowed': :'BOOLEAN', 'is_reschedule_allowed': :'BOOLEAN', 'time_schedule_max': :'DateTime' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 533 def ==(other) return true if equal?(other) self.class == other.class && id == other.id && display_name == other.display_name && description == other.description && compartment_id == other.compartment_id && deployment_id == other.deployment_id && deployment_upgrade_type == other.deployment_upgrade_type && time_started == other.time_started && time_finished == other.time_finished && ogg_version == other.ogg_version && time_created == other.time_created && time_updated == other.time_updated && lifecycle_state == other.lifecycle_state && lifecycle_sub_state == other.lifecycle_sub_state && lifecycle_details == other.lifecycle_details && == other. && == other. && == other. && previous_ogg_version == other.previous_ogg_version && time_schedule == other.time_schedule && is_snoozed == other.is_snoozed && time_snoozed_until == other.time_snoozed_until && time_released == other.time_released && release_type == other.release_type && is_security_fix == other.is_security_fix && is_rollback_allowed == other.is_rollback_allowed && time_ogg_version_supported_until == other.time_ogg_version_supported_until && is_cancel_allowed == other.is_cancel_allowed && is_reschedule_allowed == other.is_reschedule_allowed && time_schedule_max == other.time_schedule_max end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 591 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
571 572 573 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 571 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
580 581 582 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 580 def hash [id, display_name, description, compartment_id, deployment_id, deployment_upgrade_type, time_started, time_finished, ogg_version, time_created, time_updated, lifecycle_state, lifecycle_sub_state, lifecycle_details, , , , previous_ogg_version, time_schedule, is_snoozed, time_snoozed_until, time_released, release_type, is_security_fix, is_rollback_allowed, time_ogg_version_supported_until, is_cancel_allowed, is_reschedule_allowed, time_schedule_max].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
624 625 626 627 628 629 630 631 632 633 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 624 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
618 619 620 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 618 def to_s to_hash.to_s end |