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_STATE_ENUM =
[ LIFECYCLE_STATE_CREATING = 'CREATING'.freeze, LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze, LIFECYCLE_STATE_ACTIVE = 'ACTIVE'.freeze, LIFECYCLE_STATE_INACTIVE = 'INACTIVE'.freeze, LIFECYCLE_STATE_DELETING = 'DELETING'.freeze, LIFECYCLE_STATE_DELETED = 'DELETED'.freeze, LIFECYCLE_STATE_FAILED = 'FAILED'.freeze, LIFECYCLE_STATE_NEEDS_ATTENTION = 'NEEDS_ATTENTION'.freeze, LIFECYCLE_STATE_IN_PROGRESS = 'IN_PROGRESS'.freeze, LIFECYCLE_STATE_CANCELING = 'CANCELING'.freeze, LIFECYCLE_STATE_CANCELED = 'CANCELED'.freeze, LIFECYCLE_STATE_SUCCEEDED = 'SUCCEEDED'.freeze, LIFECYCLE_STATE_WAITING = 'WAITING'.freeze, LIFECYCLE_STATE_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.
-
#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
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 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 331 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.
73 74 75 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 73 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\"}}
143 144 145 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 143 def @defined_tags end |
#deployment_id ⇒ String
[Required] The OCID of the deployment being referenced.
78 79 80 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 78 def deployment_id @deployment_id end |
#deployment_upgrade_type ⇒ String
[Required] The type of the deployment upgrade: MANUAL or AUTOMATIC
83 84 85 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 83 def deployment_upgrade_type @deployment_upgrade_type end |
#description ⇒ String
Metadata about this specific object.
68 69 70 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 68 def description @description end |
#display_name ⇒ String
An object's Display Name.
63 64 65 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 63 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\"}
136 137 138 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 136 def @freeform_tags end |
#id ⇒ String
[Required] The OCID of the deployment being referenced.
58 59 60 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 58 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.
209 210 211 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 209 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.
214 215 216 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 214 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.
197 198 199 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 197 def is_rollback_allowed @is_rollback_allowed end |
#is_security_fix ⇒ BOOLEAN
Indicates if OGG release contains security fix.
190 191 192 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 190 def is_security_fix @is_security_fix end |
#is_snoozed ⇒ BOOLEAN
Indicates if upgrade notifications are snoozed or not.
168 169 170 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 168 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.
128 129 130 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 128 def lifecycle_details @lifecycle_details end |
#lifecycle_state ⇒ String
Possible lifecycle states.
117 118 119 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 117 def lifecycle_state @lifecycle_state end |
#lifecycle_sub_state ⇒ String
Possible GGS lifecycle sub-states.
122 123 124 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 122 def lifecycle_sub_state @lifecycle_sub_state end |
#ogg_version ⇒ String
Version of OGG
100 101 102 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 100 def ogg_version @ogg_version end |
#previous_ogg_version ⇒ String
Version of OGG
157 158 159 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 157 def previous_ogg_version @previous_ogg_version end |
#release_type ⇒ String
The type of release.
185 186 187 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 185 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}}
152 153 154 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 152 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
.
106 107 108 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 106 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
.
95 96 97 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 95 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
.
203 204 205 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 203 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
.
180 181 182 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 180 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
.
163 164 165 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 163 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
.
220 221 222 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 220 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
.
174 175 176 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 174 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
.
89 90 91 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 89 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
.
112 113 114 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 112 def time_updated @time_updated end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 223 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.
260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 260 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.
563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 563 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
621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 621 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
601 602 603 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 601 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
610 611 612 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 610 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
654 655 656 657 658 659 660 661 662 663 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 654 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
648 649 650 |
# File 'lib/oci/golden_gate/models/deployment_upgrade_summary.rb', line 648 def to_s to_hash.to_s end |