Class: OCI::Database::Models::MaintenanceRun
- Inherits:
-
Object
- Object
- OCI::Database::Models::MaintenanceRun
- Defined in:
- lib/oci/database/models/maintenance_run.rb
Overview
Details of a maintenance run.
Constant Summary collapse
- LIFECYCLE_STATE_ENUM =
[ LIFECYCLE_STATE_SCHEDULED = 'SCHEDULED'.freeze, LIFECYCLE_STATE_IN_PROGRESS = 'IN_PROGRESS'.freeze, LIFECYCLE_STATE_SUCCEEDED = 'SUCCEEDED'.freeze, LIFECYCLE_STATE_SKIPPED = 'SKIPPED'.freeze, LIFECYCLE_STATE_FAILED = 'FAILED'.freeze, LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze, LIFECYCLE_STATE_DELETING = 'DELETING'.freeze, LIFECYCLE_STATE_DELETED = 'DELETED'.freeze, LIFECYCLE_STATE_CANCELED = 'CANCELED'.freeze, LIFECYCLE_STATE_PARTIAL_SUCCESS = 'PARTIAL_SUCCESS'.freeze, LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- TARGET_RESOURCE_TYPE_ENUM =
[ TARGET_RESOURCE_TYPE_AUTONOMOUS_EXADATA_INFRASTRUCTURE = 'AUTONOMOUS_EXADATA_INFRASTRUCTURE'.freeze, TARGET_RESOURCE_TYPE_AUTONOMOUS_CONTAINER_DATABASE = 'AUTONOMOUS_CONTAINER_DATABASE'.freeze, TARGET_RESOURCE_TYPE_EXADATA_DB_SYSTEM = 'EXADATA_DB_SYSTEM'.freeze, TARGET_RESOURCE_TYPE_CLOUD_EXADATA_INFRASTRUCTURE = 'CLOUD_EXADATA_INFRASTRUCTURE'.freeze, TARGET_RESOURCE_TYPE_EXACC_INFRASTRUCTURE = 'EXACC_INFRASTRUCTURE'.freeze, TARGET_RESOURCE_TYPE_AUTONOMOUS_VM_CLUSTER = 'AUTONOMOUS_VM_CLUSTER'.freeze, TARGET_RESOURCE_TYPE_AUTONOMOUS_DATABASE = 'AUTONOMOUS_DATABASE'.freeze, TARGET_RESOURCE_TYPE_CLOUD_AUTONOMOUS_VM_CLUSTER = 'CLOUD_AUTONOMOUS_VM_CLUSTER'.freeze, TARGET_RESOURCE_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- MAINTENANCE_TYPE_ENUM =
[ MAINTENANCE_TYPE_PLANNED = 'PLANNED'.freeze, MAINTENANCE_TYPE_UNPLANNED = 'UNPLANNED'.freeze, MAINTENANCE_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- MAINTENANCE_SUBTYPE_ENUM =
[ MAINTENANCE_SUBTYPE_QUARTERLY = 'QUARTERLY'.freeze, MAINTENANCE_SUBTYPE_HARDWARE = 'HARDWARE'.freeze, MAINTENANCE_SUBTYPE_CRITICAL = 'CRITICAL'.freeze, MAINTENANCE_SUBTYPE_INFRASTRUCTURE = 'INFRASTRUCTURE'.freeze, MAINTENANCE_SUBTYPE_DATABASE = 'DATABASE'.freeze, MAINTENANCE_SUBTYPE_ONEOFF = 'ONEOFF'.freeze, MAINTENANCE_SUBTYPE_SECURITY_MONTHLY = 'SECURITY_MONTHLY'.freeze, MAINTENANCE_SUBTYPE_TIMEZONE = 'TIMEZONE'.freeze, MAINTENANCE_SUBTYPE_CUSTOM_DATABASE_SOFTWARE_IMAGE = 'CUSTOM_DATABASE_SOFTWARE_IMAGE'.freeze, MAINTENANCE_SUBTYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- PATCHING_MODE_ENUM =
[ PATCHING_MODE_ROLLING = 'ROLLING'.freeze, PATCHING_MODE_NONROLLING = 'NONROLLING'.freeze, PATCHING_MODE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- PATCHING_STATUS_ENUM =
[ PATCHING_STATUS_PATCHING = 'PATCHING'.freeze, PATCHING_STATUS_WAITING = 'WAITING'.freeze, PATCHING_STATUS_SCHEDULED = 'SCHEDULED'.freeze, PATCHING_STATUS_COMPLETE = 'COMPLETE'.freeze, PATCHING_STATUS_FAILED = 'FAILED'.freeze, PATCHING_STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#compartment_id ⇒ String
[Required] The OCID of the compartment.
-
#current_custom_action_timeout_in_mins ⇒ Integer
Extend current custom action timeout between the current database servers during waiting state, from 0 (zero) to 30 minutes.
-
#current_patching_component ⇒ String
The name of the current infrastruture component that is getting patched.
-
#custom_action_timeout_in_mins ⇒ Integer
Determines the amount of time the system will wait before the start of each database server patching operation.
-
#database_software_image_id ⇒ String
The Autonomous AI Database Software Image OCID.
-
#description ⇒ String
Description of the maintenance run.
-
#display_name ⇒ String
[Required] The user-friendly name for the maintenance run.
-
#estimated_component_patching_start_time ⇒ DateTime
The estimated start time of the next infrastruture component patching operation.
- #estimated_patching_time ⇒ OCI::Database::Models::EstimatedPatchingTime
-
#id ⇒ String
[Required] The OCID of the maintenance run.
-
#is_custom_action_timeout_enabled ⇒ BOOLEAN
If true, enables the configuration of a custom action timeout (waiting period) between database servers patching operations.
-
#is_dst_file_update_enabled ⇒ BOOLEAN
Indicates if an automatic DST Time Zone file update is enabled for the Autonomous Container Database.
-
#is_maintenance_run_granular ⇒ BOOLEAN
If
FALSE, the maintenance run doesn't support granular maintenance. -
#lifecycle_details ⇒ String
Additional information about the current lifecycle state.
-
#lifecycle_state ⇒ String
[Required] The current state of the maintenance run.
-
#maintenance_subtype ⇒ String
Maintenance sub-type.
-
#maintenance_type ⇒ String
Maintenance type.
-
#patch_failure_count ⇒ Integer
Contain the patch failure count.
-
#patch_id ⇒ String
The unique identifier of the patch.
-
#patching_end_time ⇒ DateTime
The time when the patching operation ended.
-
#patching_mode ⇒ String
Cloud Exadata infrastructure node patching method, either "ROLLING" or "NONROLLING".
-
#patching_start_time ⇒ DateTime
The time when the patching operation started.
-
#patching_status ⇒ String
The status of the patching operation.
-
#peer_maintenance_run_id ⇒ String
The OCID of the maintenance run for the Autonomous Data Guard association's peer container database.
-
#peer_maintenance_run_ids ⇒ Array<String>
The list of OCIDs for the maintenance runs associated with their Autonomous Data Guard peer container databases.
-
#reference_resource_id_for_image_updates ⇒ String
The OCID of the resource the maintenance run will refer to when trying to fetch target versions.
-
#system_tags ⇒ Hash<String, Hash<String, Object>>
System tags for this resource.
-
#target_db_server_version ⇒ String
The target software version for the database server patching operation.
-
#target_resource_id ⇒ String
The ID of the target resource on which the maintenance run occurs.
-
#target_resource_type ⇒ String
The type of the target resource on which the maintenance run occurs.
-
#target_storage_server_version ⇒ String
The target Cell version that is to be patched to.
-
#time_ended ⇒ DateTime
The date and time the maintenance run was completed.
-
#time_scheduled ⇒ DateTime
[Required] The date and time the maintenance run is scheduled to occur.
-
#time_started ⇒ DateTime
The date and time the maintenance run starts.
-
#total_time_taken_in_mins ⇒ Integer
The total time taken by corresponding resource activity in minutes.
-
#window_type_descriptions ⇒ Array<OCI::Database::Models::WindowTypeDescription>
A list of key-value pairs where the key will contain the window type and value contains all the windowDetails of that window type.
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 = {}) ⇒ MaintenanceRun
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 = {}) ⇒ MaintenanceRun
Initializes the object
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 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 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 567 568 |
# File 'lib/oci/database/models/maintenance_run.rb', line 358 def initialize(attributes = {}) return unless attributes.is_a?(Hash) self.id = attributes[:'id'] if attributes[:'id'] 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.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.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_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.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.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_ended = attributes[:'timeEnded'] if attributes[:'timeEnded'] raise 'You cannot provide both :timeEnded and :time_ended' if attributes.key?(:'timeEnded') && attributes.key?(:'time_ended') self.time_ended = attributes[:'time_ended'] if attributes[:'time_ended'] self.target_resource_type = attributes[:'targetResourceType'] if attributes[:'targetResourceType'] raise 'You cannot provide both :targetResourceType and :target_resource_type' if attributes.key?(:'targetResourceType') && attributes.key?(:'target_resource_type') self.target_resource_type = attributes[:'target_resource_type'] if attributes[:'target_resource_type'] self.target_resource_id = attributes[:'targetResourceId'] if attributes[:'targetResourceId'] raise 'You cannot provide both :targetResourceId and :target_resource_id' if attributes.key?(:'targetResourceId') && attributes.key?(:'target_resource_id') self.target_resource_id = attributes[:'target_resource_id'] if attributes[:'target_resource_id'] self.maintenance_type = attributes[:'maintenanceType'] if attributes[:'maintenanceType'] raise 'You cannot provide both :maintenanceType and :maintenance_type' if attributes.key?(:'maintenanceType') && attributes.key?(:'maintenance_type') self.maintenance_type = attributes[:'maintenance_type'] if attributes[:'maintenance_type'] self.patch_id = attributes[:'patchId'] if attributes[:'patchId'] raise 'You cannot provide both :patchId and :patch_id' if attributes.key?(:'patchId') && attributes.key?(:'patch_id') self.patch_id = attributes[:'patch_id'] if attributes[:'patch_id'] self.maintenance_subtype = attributes[:'maintenanceSubtype'] if attributes[:'maintenanceSubtype'] raise 'You cannot provide both :maintenanceSubtype and :maintenance_subtype' if attributes.key?(:'maintenanceSubtype') && attributes.key?(:'maintenance_subtype') self.maintenance_subtype = attributes[:'maintenance_subtype'] if attributes[:'maintenance_subtype'] self.is_dst_file_update_enabled = attributes[:'isDstFileUpdateEnabled'] unless attributes[:'isDstFileUpdateEnabled'].nil? raise 'You cannot provide both :isDstFileUpdateEnabled and :is_dst_file_update_enabled' if attributes.key?(:'isDstFileUpdateEnabled') && attributes.key?(:'is_dst_file_update_enabled') self.is_dst_file_update_enabled = attributes[:'is_dst_file_update_enabled'] unless attributes[:'is_dst_file_update_enabled'].nil? self.peer_maintenance_run_id = attributes[:'peerMaintenanceRunId'] if attributes[:'peerMaintenanceRunId'] raise 'You cannot provide both :peerMaintenanceRunId and :peer_maintenance_run_id' if attributes.key?(:'peerMaintenanceRunId') && attributes.key?(:'peer_maintenance_run_id') self.peer_maintenance_run_id = attributes[:'peer_maintenance_run_id'] if attributes[:'peer_maintenance_run_id'] self.peer_maintenance_run_ids = attributes[:'peerMaintenanceRunIds'] if attributes[:'peerMaintenanceRunIds'] raise 'You cannot provide both :peerMaintenanceRunIds and :peer_maintenance_run_ids' if attributes.key?(:'peerMaintenanceRunIds') && attributes.key?(:'peer_maintenance_run_ids') self.peer_maintenance_run_ids = attributes[:'peer_maintenance_run_ids'] if attributes[:'peer_maintenance_run_ids'] self.patching_mode = attributes[:'patchingMode'] if attributes[:'patchingMode'] raise 'You cannot provide both :patchingMode and :patching_mode' if attributes.key?(:'patchingMode') && attributes.key?(:'patching_mode') self.patching_mode = attributes[:'patching_mode'] if attributes[:'patching_mode'] self.patch_failure_count = attributes[:'patchFailureCount'] if attributes[:'patchFailureCount'] raise 'You cannot provide both :patchFailureCount and :patch_failure_count' if attributes.key?(:'patchFailureCount') && attributes.key?(:'patch_failure_count') self.patch_failure_count = attributes[:'patch_failure_count'] if attributes[:'patch_failure_count'] self.target_db_server_version = attributes[:'targetDbServerVersion'] if attributes[:'targetDbServerVersion'] raise 'You cannot provide both :targetDbServerVersion and :target_db_server_version' if attributes.key?(:'targetDbServerVersion') && attributes.key?(:'target_db_server_version') self.target_db_server_version = attributes[:'target_db_server_version'] if attributes[:'target_db_server_version'] self.target_storage_server_version = attributes[:'targetStorageServerVersion'] if attributes[:'targetStorageServerVersion'] raise 'You cannot provide both :targetStorageServerVersion and :target_storage_server_version' if attributes.key?(:'targetStorageServerVersion') && attributes.key?(:'target_storage_server_version') self.target_storage_server_version = attributes[:'target_storage_server_version'] if attributes[:'target_storage_server_version'] self.is_custom_action_timeout_enabled = attributes[:'isCustomActionTimeoutEnabled'] unless attributes[:'isCustomActionTimeoutEnabled'].nil? raise 'You cannot provide both :isCustomActionTimeoutEnabled and :is_custom_action_timeout_enabled' if attributes.key?(:'isCustomActionTimeoutEnabled') && attributes.key?(:'is_custom_action_timeout_enabled') self.is_custom_action_timeout_enabled = attributes[:'is_custom_action_timeout_enabled'] unless attributes[:'is_custom_action_timeout_enabled'].nil? self.custom_action_timeout_in_mins = attributes[:'customActionTimeoutInMins'] if attributes[:'customActionTimeoutInMins'] raise 'You cannot provide both :customActionTimeoutInMins and :custom_action_timeout_in_mins' if attributes.key?(:'customActionTimeoutInMins') && attributes.key?(:'custom_action_timeout_in_mins') self.custom_action_timeout_in_mins = attributes[:'custom_action_timeout_in_mins'] if attributes[:'custom_action_timeout_in_mins'] self.current_custom_action_timeout_in_mins = attributes[:'currentCustomActionTimeoutInMins'] if attributes[:'currentCustomActionTimeoutInMins'] raise 'You cannot provide both :currentCustomActionTimeoutInMins and :current_custom_action_timeout_in_mins' if attributes.key?(:'currentCustomActionTimeoutInMins') && attributes.key?(:'current_custom_action_timeout_in_mins') self.current_custom_action_timeout_in_mins = attributes[:'current_custom_action_timeout_in_mins'] if attributes[:'current_custom_action_timeout_in_mins'] self.patching_status = attributes[:'patchingStatus'] if attributes[:'patchingStatus'] raise 'You cannot provide both :patchingStatus and :patching_status' if attributes.key?(:'patchingStatus') && attributes.key?(:'patching_status') self.patching_status = attributes[:'patching_status'] if attributes[:'patching_status'] self.patching_start_time = attributes[:'patchingStartTime'] if attributes[:'patchingStartTime'] raise 'You cannot provide both :patchingStartTime and :patching_start_time' if attributes.key?(:'patchingStartTime') && attributes.key?(:'patching_start_time') self.patching_start_time = attributes[:'patching_start_time'] if attributes[:'patching_start_time'] self.patching_end_time = attributes[:'patchingEndTime'] if attributes[:'patchingEndTime'] raise 'You cannot provide both :patchingEndTime and :patching_end_time' if attributes.key?(:'patchingEndTime') && attributes.key?(:'patching_end_time') self.patching_end_time = attributes[:'patching_end_time'] if attributes[:'patching_end_time'] self.estimated_patching_time = attributes[:'estimatedPatchingTime'] if attributes[:'estimatedPatchingTime'] raise 'You cannot provide both :estimatedPatchingTime and :estimated_patching_time' if attributes.key?(:'estimatedPatchingTime') && attributes.key?(:'estimated_patching_time') self.estimated_patching_time = attributes[:'estimated_patching_time'] if attributes[:'estimated_patching_time'] self.current_patching_component = attributes[:'currentPatchingComponent'] if attributes[:'currentPatchingComponent'] raise 'You cannot provide both :currentPatchingComponent and :current_patching_component' if attributes.key?(:'currentPatchingComponent') && attributes.key?(:'current_patching_component') self.current_patching_component = attributes[:'current_patching_component'] if attributes[:'current_patching_component'] self.estimated_component_patching_start_time = attributes[:'estimatedComponentPatchingStartTime'] if attributes[:'estimatedComponentPatchingStartTime'] raise 'You cannot provide both :estimatedComponentPatchingStartTime and :estimated_component_patching_start_time' if attributes.key?(:'estimatedComponentPatchingStartTime') && attributes.key?(:'estimated_component_patching_start_time') self.estimated_component_patching_start_time = attributes[:'estimated_component_patching_start_time'] if attributes[:'estimated_component_patching_start_time'] 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.is_maintenance_run_granular = attributes[:'isMaintenanceRunGranular'] unless attributes[:'isMaintenanceRunGranular'].nil? raise 'You cannot provide both :isMaintenanceRunGranular and :is_maintenance_run_granular' if attributes.key?(:'isMaintenanceRunGranular') && attributes.key?(:'is_maintenance_run_granular') self.is_maintenance_run_granular = attributes[:'is_maintenance_run_granular'] unless attributes[:'is_maintenance_run_granular'].nil? self.total_time_taken_in_mins = attributes[:'totalTimeTakenInMins'] if attributes[:'totalTimeTakenInMins'] raise 'You cannot provide both :totalTimeTakenInMins and :total_time_taken_in_mins' if attributes.key?(:'totalTimeTakenInMins') && attributes.key?(:'total_time_taken_in_mins') self.total_time_taken_in_mins = attributes[:'total_time_taken_in_mins'] if attributes[:'total_time_taken_in_mins'] self.reference_resource_id_for_image_updates = attributes[:'referenceResourceIdForImageUpdates'] if attributes[:'referenceResourceIdForImageUpdates'] raise 'You cannot provide both :referenceResourceIdForImageUpdates and :reference_resource_id_for_image_updates' if attributes.key?(:'referenceResourceIdForImageUpdates') && attributes.key?(:'reference_resource_id_for_image_updates') self.reference_resource_id_for_image_updates = attributes[:'reference_resource_id_for_image_updates'] if attributes[:'reference_resource_id_for_image_updates'] self.database_software_image_id = attributes[:'databaseSoftwareImageId'] if attributes[:'databaseSoftwareImageId'] raise 'You cannot provide both :databaseSoftwareImageId and :database_software_image_id' if attributes.key?(:'databaseSoftwareImageId') && attributes.key?(:'database_software_image_id') self.database_software_image_id = attributes[:'database_software_image_id'] if attributes[:'database_software_image_id'] self.window_type_descriptions = attributes[:'windowTypeDescriptions'] if attributes[:'windowTypeDescriptions'] raise 'You cannot provide both :windowTypeDescriptions and :window_type_descriptions' if attributes.key?(:'windowTypeDescriptions') && attributes.key?(:'window_type_descriptions') self.window_type_descriptions = attributes[:'window_type_descriptions'] if attributes[:'window_type_descriptions'] end |
Instance Attribute Details
#compartment_id ⇒ String
[Required] The OCID of the compartment.
79 80 81 |
# File 'lib/oci/database/models/maintenance_run.rb', line 79 def compartment_id @compartment_id end |
#current_custom_action_timeout_in_mins ⇒ Integer
Extend current custom action timeout between the current database servers during waiting state, from 0 (zero) to 30 minutes.
173 174 175 |
# File 'lib/oci/database/models/maintenance_run.rb', line 173 def current_custom_action_timeout_in_mins @current_custom_action_timeout_in_mins end |
#current_patching_component ⇒ String
The name of the current infrastruture component that is getting patched.
192 193 194 |
# File 'lib/oci/database/models/maintenance_run.rb', line 192 def current_patching_component @current_patching_component end |
#custom_action_timeout_in_mins ⇒ Integer
Determines the amount of time the system will wait before the start of each database server patching operation. Specify a number of minutes, from 15 to 120.
169 170 171 |
# File 'lib/oci/database/models/maintenance_run.rb', line 169 def custom_action_timeout_in_mins @custom_action_timeout_in_mins end |
#database_software_image_id ⇒ String
The Autonomous AI Database Software Image OCID
221 222 223 |
# File 'lib/oci/database/models/maintenance_run.rb', line 221 def database_software_image_id @database_software_image_id end |
#description ⇒ String
Description of the maintenance run.
87 88 89 |
# File 'lib/oci/database/models/maintenance_run.rb', line 87 def description @description end |
#display_name ⇒ String
[Required] The user-friendly name for the maintenance run.
83 84 85 |
# File 'lib/oci/database/models/maintenance_run.rb', line 83 def display_name @display_name end |
#estimated_component_patching_start_time ⇒ DateTime
The estimated start time of the next infrastruture component patching operation.
196 197 198 |
# File 'lib/oci/database/models/maintenance_run.rb', line 196 def estimated_component_patching_start_time @estimated_component_patching_start_time end |
#estimated_patching_time ⇒ OCI::Database::Models::EstimatedPatchingTime
188 189 190 |
# File 'lib/oci/database/models/maintenance_run.rb', line 188 def estimated_patching_time @estimated_patching_time end |
#id ⇒ String
[Required] The OCID of the maintenance run.
75 76 77 |
# File 'lib/oci/database/models/maintenance_run.rb', line 75 def id @id end |
#is_custom_action_timeout_enabled ⇒ BOOLEAN
If true, enables the configuration of a custom action timeout (waiting period) between database servers patching operations.
163 164 165 |
# File 'lib/oci/database/models/maintenance_run.rb', line 163 def is_custom_action_timeout_enabled @is_custom_action_timeout_enabled end |
#is_dst_file_update_enabled ⇒ BOOLEAN
Indicates if an automatic DST Time Zone file update is enabled for the Autonomous Container Database. If enabled along with Release Update, patching will be done in a Non-Rolling manner.
132 133 134 |
# File 'lib/oci/database/models/maintenance_run.rb', line 132 def is_dst_file_update_enabled @is_dst_file_update_enabled end |
#is_maintenance_run_granular ⇒ BOOLEAN
If FALSE, the maintenance run doesn't support granular maintenance.
206 207 208 |
# File 'lib/oci/database/models/maintenance_run.rb', line 206 def is_maintenance_run_granular @is_maintenance_run_granular end |
#lifecycle_details ⇒ String
Additional information about the current lifecycle state.
96 97 98 |
# File 'lib/oci/database/models/maintenance_run.rb', line 96 def lifecycle_details @lifecycle_details end |
#lifecycle_state ⇒ String
[Required] The current state of the maintenance run. For Autonomous AI Database Serverless instances, valid states are IN_PROGRESS, SUCCEEDED, and FAILED.
92 93 94 |
# File 'lib/oci/database/models/maintenance_run.rb', line 92 def lifecycle_state @lifecycle_state end |
#maintenance_subtype ⇒ String
Maintenance sub-type.
128 129 130 |
# File 'lib/oci/database/models/maintenance_run.rb', line 128 def maintenance_subtype @maintenance_subtype end |
#maintenance_type ⇒ String
Maintenance type.
120 121 122 |
# File 'lib/oci/database/models/maintenance_run.rb', line 120 def maintenance_type @maintenance_type end |
#patch_failure_count ⇒ Integer
Contain the patch failure count.
151 152 153 |
# File 'lib/oci/database/models/maintenance_run.rb', line 151 def patch_failure_count @patch_failure_count end |
#patch_id ⇒ String
The unique identifier of the patch. The identifier string includes the patch type, the Oracle AI Database version, and the patch creation date (using the format YYMMDD). For example, the identifier ru_patch_19.9.0.0_201030 is used for an RU patch for Oracle AI Database 19.9.0.0 that was released October 30, 2020.
124 125 126 |
# File 'lib/oci/database/models/maintenance_run.rb', line 124 def patch_id @patch_id end |
#patching_end_time ⇒ DateTime
The time when the patching operation ended.
185 186 187 |
# File 'lib/oci/database/models/maintenance_run.rb', line 185 def patching_end_time @patching_end_time end |
#patching_mode ⇒ String
Cloud Exadata infrastructure node patching method, either "ROLLING" or "NONROLLING". Default value is ROLLING.
IMPORTANT: Non-rolling infrastructure patching involves system down time. See Oracle-Managed Infrastructure Maintenance Updates for more information.
147 148 149 |
# File 'lib/oci/database/models/maintenance_run.rb', line 147 def patching_mode @patching_mode end |
#patching_start_time ⇒ DateTime
The time when the patching operation started.
181 182 183 |
# File 'lib/oci/database/models/maintenance_run.rb', line 181 def patching_start_time @patching_start_time end |
#patching_status ⇒ String
The status of the patching operation.
177 178 179 |
# File 'lib/oci/database/models/maintenance_run.rb', line 177 def patching_status @patching_status end |
#peer_maintenance_run_id ⇒ String
The OCID of the maintenance run for the Autonomous Data Guard association's peer container database.
136 137 138 |
# File 'lib/oci/database/models/maintenance_run.rb', line 136 def peer_maintenance_run_id @peer_maintenance_run_id end |
#peer_maintenance_run_ids ⇒ Array<String>
The list of OCIDs for the maintenance runs associated with their Autonomous Data Guard peer container databases.
140 141 142 |
# File 'lib/oci/database/models/maintenance_run.rb', line 140 def peer_maintenance_run_ids @peer_maintenance_run_ids end |
#reference_resource_id_for_image_updates ⇒ String
The OCID of the resource the maintenance run will refer to when trying to fetch target versions. This field is set during maintenance run creation based on infrastructure's maintenance run version preferences. Currently this is only be supported for monthly maintenance runs created via scheduling plans.
217 218 219 |
# File 'lib/oci/database/models/maintenance_run.rb', line 217 def reference_resource_id_for_image_updates @reference_resource_id_for_image_updates end |
#system_tags ⇒ Hash<String, Hash<String, Object>>
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
202 203 204 |
# File 'lib/oci/database/models/maintenance_run.rb', line 202 def @system_tags end |
#target_db_server_version ⇒ String
The target software version for the database server patching operation.
155 156 157 |
# File 'lib/oci/database/models/maintenance_run.rb', line 155 def target_db_server_version @target_db_server_version end |
#target_resource_id ⇒ String
The ID of the target resource on which the maintenance run occurs.
116 117 118 |
# File 'lib/oci/database/models/maintenance_run.rb', line 116 def target_resource_id @target_resource_id end |
#target_resource_type ⇒ String
The type of the target resource on which the maintenance run occurs.
112 113 114 |
# File 'lib/oci/database/models/maintenance_run.rb', line 112 def target_resource_type @target_resource_type end |
#target_storage_server_version ⇒ String
The target Cell version that is to be patched to.
159 160 161 |
# File 'lib/oci/database/models/maintenance_run.rb', line 159 def target_storage_server_version @target_storage_server_version end |
#time_ended ⇒ DateTime
The date and time the maintenance run was completed.
108 109 110 |
# File 'lib/oci/database/models/maintenance_run.rb', line 108 def time_ended @time_ended end |
#time_scheduled ⇒ DateTime
[Required] The date and time the maintenance run is scheduled to occur.
100 101 102 |
# File 'lib/oci/database/models/maintenance_run.rb', line 100 def time_scheduled @time_scheduled end |
#time_started ⇒ DateTime
The date and time the maintenance run starts.
104 105 106 |
# File 'lib/oci/database/models/maintenance_run.rb', line 104 def time_started @time_started end |
#total_time_taken_in_mins ⇒ Integer
The total time taken by corresponding resource activity in minutes.
210 211 212 |
# File 'lib/oci/database/models/maintenance_run.rb', line 210 def total_time_taken_in_mins @total_time_taken_in_mins end |
#window_type_descriptions ⇒ Array<OCI::Database::Models::WindowTypeDescription>
A list of key-value pairs where the key will contain the window type and value contains all the windowDetails of that window type.
226 227 228 |
# File 'lib/oci/database/models/maintenance_run.rb', line 226 def window_type_descriptions @window_type_descriptions end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 258 259 260 261 262 263 264 265 266 267 268 269 270 |
# File 'lib/oci/database/models/maintenance_run.rb', line 229 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'id': :'id', 'compartment_id': :'compartmentId', 'display_name': :'displayName', 'description': :'description', 'lifecycle_state': :'lifecycleState', 'lifecycle_details': :'lifecycleDetails', 'time_scheduled': :'timeScheduled', 'time_started': :'timeStarted', 'time_ended': :'timeEnded', 'target_resource_type': :'targetResourceType', 'target_resource_id': :'targetResourceId', 'maintenance_type': :'maintenanceType', 'patch_id': :'patchId', 'maintenance_subtype': :'maintenanceSubtype', 'is_dst_file_update_enabled': :'isDstFileUpdateEnabled', 'peer_maintenance_run_id': :'peerMaintenanceRunId', 'peer_maintenance_run_ids': :'peerMaintenanceRunIds', 'patching_mode': :'patchingMode', 'patch_failure_count': :'patchFailureCount', 'target_db_server_version': :'targetDbServerVersion', 'target_storage_server_version': :'targetStorageServerVersion', 'is_custom_action_timeout_enabled': :'isCustomActionTimeoutEnabled', 'custom_action_timeout_in_mins': :'customActionTimeoutInMins', 'current_custom_action_timeout_in_mins': :'currentCustomActionTimeoutInMins', 'patching_status': :'patchingStatus', 'patching_start_time': :'patchingStartTime', 'patching_end_time': :'patchingEndTime', 'estimated_patching_time': :'estimatedPatchingTime', 'current_patching_component': :'currentPatchingComponent', 'estimated_component_patching_start_time': :'estimatedComponentPatchingStartTime', 'system_tags': :'systemTags', 'is_maintenance_run_granular': :'isMaintenanceRunGranular', 'total_time_taken_in_mins': :'totalTimeTakenInMins', 'reference_resource_id_for_image_updates': :'referenceResourceIdForImageUpdates', 'database_software_image_id': :'databaseSoftwareImageId', 'window_type_descriptions': :'windowTypeDescriptions' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 |
# File 'lib/oci/database/models/maintenance_run.rb', line 273 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'id': :'String', 'compartment_id': :'String', 'display_name': :'String', 'description': :'String', 'lifecycle_state': :'String', 'lifecycle_details': :'String', 'time_scheduled': :'DateTime', 'time_started': :'DateTime', 'time_ended': :'DateTime', 'target_resource_type': :'String', 'target_resource_id': :'String', 'maintenance_type': :'String', 'patch_id': :'String', 'maintenance_subtype': :'String', 'is_dst_file_update_enabled': :'BOOLEAN', 'peer_maintenance_run_id': :'String', 'peer_maintenance_run_ids': :'Array<String>', 'patching_mode': :'String', 'patch_failure_count': :'Integer', 'target_db_server_version': :'String', 'target_storage_server_version': :'String', 'is_custom_action_timeout_enabled': :'BOOLEAN', 'custom_action_timeout_in_mins': :'Integer', 'current_custom_action_timeout_in_mins': :'Integer', 'patching_status': :'String', 'patching_start_time': :'DateTime', 'patching_end_time': :'DateTime', 'estimated_patching_time': :'OCI::Database::Models::EstimatedPatchingTime', 'current_patching_component': :'String', 'estimated_component_patching_start_time': :'DateTime', 'system_tags': :'Hash<String, Hash<String, Object>>', 'is_maintenance_run_granular': :'BOOLEAN', 'total_time_taken_in_mins': :'Integer', 'reference_resource_id_for_image_updates': :'String', 'database_software_image_id': :'String', 'window_type_descriptions': :'Array<OCI::Database::Models::WindowTypeDescription>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 |
# File 'lib/oci/database/models/maintenance_run.rb', line 655 def ==(other) return true if equal?(other) self.class == other.class && id == other.id && compartment_id == other.compartment_id && display_name == other.display_name && description == other.description && lifecycle_state == other.lifecycle_state && lifecycle_details == other.lifecycle_details && time_scheduled == other.time_scheduled && time_started == other.time_started && time_ended == other.time_ended && target_resource_type == other.target_resource_type && target_resource_id == other.target_resource_id && maintenance_type == other.maintenance_type && patch_id == other.patch_id && maintenance_subtype == other.maintenance_subtype && is_dst_file_update_enabled == other.is_dst_file_update_enabled && peer_maintenance_run_id == other.peer_maintenance_run_id && peer_maintenance_run_ids == other.peer_maintenance_run_ids && patching_mode == other.patching_mode && patch_failure_count == other.patch_failure_count && target_db_server_version == other.target_db_server_version && target_storage_server_version == other.target_storage_server_version && is_custom_action_timeout_enabled == other.is_custom_action_timeout_enabled && custom_action_timeout_in_mins == other.custom_action_timeout_in_mins && current_custom_action_timeout_in_mins == other.current_custom_action_timeout_in_mins && patching_status == other.patching_status && patching_start_time == other.patching_start_time && patching_end_time == other.patching_end_time && estimated_patching_time == other.estimated_patching_time && current_patching_component == other.current_patching_component && estimated_component_patching_start_time == other.estimated_component_patching_start_time && == other. && is_maintenance_run_granular == other.is_maintenance_run_granular && total_time_taken_in_mins == other.total_time_taken_in_mins && reference_resource_id_for_image_updates == other.reference_resource_id_for_image_updates && database_software_image_id == other.database_software_image_id && window_type_descriptions == other.window_type_descriptions end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 |
# File 'lib/oci/database/models/maintenance_run.rb', line 720 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
700 701 702 |
# File 'lib/oci/database/models/maintenance_run.rb', line 700 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
709 710 711 |
# File 'lib/oci/database/models/maintenance_run.rb', line 709 def hash [id, compartment_id, display_name, description, lifecycle_state, lifecycle_details, time_scheduled, time_started, time_ended, target_resource_type, target_resource_id, maintenance_type, patch_id, maintenance_subtype, is_dst_file_update_enabled, peer_maintenance_run_id, peer_maintenance_run_ids, patching_mode, patch_failure_count, target_db_server_version, target_storage_server_version, is_custom_action_timeout_enabled, custom_action_timeout_in_mins, current_custom_action_timeout_in_mins, patching_status, patching_start_time, patching_end_time, estimated_patching_time, current_patching_component, estimated_component_patching_start_time, , is_maintenance_run_granular, total_time_taken_in_mins, reference_resource_id_for_image_updates, database_software_image_id, window_type_descriptions].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
753 754 755 756 757 758 759 760 761 762 |
# File 'lib/oci/database/models/maintenance_run.rb', line 753 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
747 748 749 |
# File 'lib/oci/database/models/maintenance_run.rb', line 747 def to_s to_hash.to_s end |