Class: OCI::DisasterRecovery::Models::DrPlanStepExecution
- Inherits:
-
Object
- Object
- OCI::DisasterRecovery::Models::DrPlanStepExecution
- Defined in:
- lib/oci/disaster_recovery/models/dr_plan_step_execution.rb
Overview
The details of a step execution in a DR plan execution.
Constant Summary collapse
- TYPE_ENUM =
[ TYPE_COMPUTE_INSTANCE_STOP_PRECHECK = 'COMPUTE_INSTANCE_STOP_PRECHECK'.freeze, TYPE_COMPUTE_INSTANCE_LAUNCH_PRECHECK = 'COMPUTE_INSTANCE_LAUNCH_PRECHECK'.freeze, TYPE_COMPUTE_INSTANCE_TERMINATE_PRECHECK = 'COMPUTE_INSTANCE_TERMINATE_PRECHECK'.freeze, TYPE_COMPUTE_INSTANCE_REMOVE_PRECHECK = 'COMPUTE_INSTANCE_REMOVE_PRECHECK'.freeze, TYPE_VOLUME_GROUP_RESTORE_SWITCHOVER_PRECHECK = 'VOLUME_GROUP_RESTORE_SWITCHOVER_PRECHECK'.freeze, TYPE_VOLUME_GROUP_RESTORE_FAILOVER_PRECHECK = 'VOLUME_GROUP_RESTORE_FAILOVER_PRECHECK'.freeze, TYPE_DATABASE_SWITCHOVER_PRECHECK = 'DATABASE_SWITCHOVER_PRECHECK'.freeze, TYPE_DATABASE_FAILOVER_PRECHECK = 'DATABASE_FAILOVER_PRECHECK'.freeze, TYPE_AUTONOMOUS_DATABASE_SWITCHOVER_PRECHECK = 'AUTONOMOUS_DATABASE_SWITCHOVER_PRECHECK'.freeze, TYPE_AUTONOMOUS_DATABASE_FAILOVER_PRECHECK = 'AUTONOMOUS_DATABASE_FAILOVER_PRECHECK'.freeze, TYPE_AUTONOMOUS_CONTAINER_DATABASE_SWITCHOVER_PRECHECK = 'AUTONOMOUS_CONTAINER_DATABASE_SWITCHOVER_PRECHECK'.freeze, TYPE_AUTONOMOUS_CONTAINER_DATABASE_FAILOVER_PRECHECK = 'AUTONOMOUS_CONTAINER_DATABASE_FAILOVER_PRECHECK'.freeze, TYPE_AUTONOMOUS_CONTAINER_DATABASE_START_DRILL_CONVERT_TO_SNAPSHOT_STANDBY_PRECHECK = 'AUTONOMOUS_CONTAINER_DATABASE_START_DRILL_CONVERT_TO_SNAPSHOT_STANDBY_PRECHECK'.freeze, TYPE_AUTONOMOUS_CONTAINER_DATABASE_STOP_DRILL_CONVERT_TO_PHYSICAL_STANDBY_PRECHECK = 'AUTONOMOUS_CONTAINER_DATABASE_STOP_DRILL_CONVERT_TO_PHYSICAL_STANDBY_PRECHECK'.freeze, TYPE_AUTONOMOUS_CONTAINER_DATABASE_SWITCHOVER = 'AUTONOMOUS_CONTAINER_DATABASE_SWITCHOVER'.freeze, TYPE_AUTONOMOUS_CONTAINER_DATABASE_FAILOVER = 'AUTONOMOUS_CONTAINER_DATABASE_FAILOVER'.freeze, TYPE_AUTONOMOUS_CONTAINER_DATABASE_START_DRILL_CONVERT_TO_SNAPSHOT_STANDBY = 'AUTONOMOUS_CONTAINER_DATABASE_START_DRILL_CONVERT_TO_SNAPSHOT_STANDBY'.freeze, TYPE_AUTONOMOUS_CONTAINER_DATABASE_STOP_DRILL_CONVERT_TO_PHYSICAL_STANDBY = 'AUTONOMOUS_CONTAINER_DATABASE_STOP_DRILL_CONVERT_TO_PHYSICAL_STANDBY'.freeze, TYPE_AUTONOMOUS_DATABASE_START_DRILL_CREATE_CLONE_STANDBY_PRECHECK = 'AUTONOMOUS_DATABASE_START_DRILL_CREATE_CLONE_STANDBY_PRECHECK'.freeze, TYPE_AUTONOMOUS_DATABASE_STOP_DRILL_DELETE_CLONE_STANDBY_PRECHECK = 'AUTONOMOUS_DATABASE_STOP_DRILL_DELETE_CLONE_STANDBY_PRECHECK'.freeze, TYPE_AUTONOMOUS_DATABASE_START_DRILL_CONVERT_TO_SNAPSHOT_STANDBY_PRECHECK = 'AUTONOMOUS_DATABASE_START_DRILL_CONVERT_TO_SNAPSHOT_STANDBY_PRECHECK'.freeze, TYPE_AUTONOMOUS_DATABASE_STOP_DRILL_CONVERT_TO_PHYSICAL_STANDBY_PRECHECK = 'AUTONOMOUS_DATABASE_STOP_DRILL_CONVERT_TO_PHYSICAL_STANDBY_PRECHECK'.freeze, TYPE_AUTONOMOUS_DATABASE_START_DRILL_CREATE_CLONE_STANDBY = 'AUTONOMOUS_DATABASE_START_DRILL_CREATE_CLONE_STANDBY'.freeze, TYPE_AUTONOMOUS_DATABASE_STOP_DRILL_DELETE_CLONE_STANDBY = 'AUTONOMOUS_DATABASE_STOP_DRILL_DELETE_CLONE_STANDBY'.freeze, TYPE_AUTONOMOUS_DATABASE_START_DRILL_CONVERT_TO_SNAPSHOT_STANDBY = 'AUTONOMOUS_DATABASE_START_DRILL_CONVERT_TO_SNAPSHOT_STANDBY'.freeze, TYPE_AUTONOMOUS_DATABASE_STOP_DRILL_CONVERT_TO_PHYSICAL_STANDBY = 'AUTONOMOUS_DATABASE_STOP_DRILL_CONVERT_TO_PHYSICAL_STANDBY'.freeze, TYPE_DATABASE_START_DRILL_CONVERT_TO_SNAPSHOT_STANDBY_PRECHECK = 'DATABASE_START_DRILL_CONVERT_TO_SNAPSHOT_STANDBY_PRECHECK'.freeze, TYPE_DATABASE_STOP_DRILL_CONVERT_TO_PHYSICAL_STANDBY_PRECHECK = 'DATABASE_STOP_DRILL_CONVERT_TO_PHYSICAL_STANDBY_PRECHECK'.freeze, TYPE_DATABASE_START_DRILL_CONVERT_TO_SNAPSHOT_STANDBY = 'DATABASE_START_DRILL_CONVERT_TO_SNAPSHOT_STANDBY'.freeze, TYPE_DATABASE_STOP_DRILL_CONVERT_TO_PHYSICAL_STANDBY = 'DATABASE_STOP_DRILL_CONVERT_TO_PHYSICAL_STANDBY'.freeze, TYPE_USER_DEFINED_PRECHECK = 'USER_DEFINED_PRECHECK'.freeze, TYPE_COMPUTE_INSTANCE_LAUNCH = 'COMPUTE_INSTANCE_LAUNCH'.freeze, TYPE_COMPUTE_INSTANCE_STOP = 'COMPUTE_INSTANCE_STOP'.freeze, TYPE_COMPUTE_INSTANCE_TERMINATE = 'COMPUTE_INSTANCE_TERMINATE'.freeze, TYPE_COMPUTE_INSTANCE_REMOVE = 'COMPUTE_INSTANCE_REMOVE'.freeze, TYPE_DATABASE_SWITCHOVER = 'DATABASE_SWITCHOVER'.freeze, TYPE_DATABASE_FAILOVER = 'DATABASE_FAILOVER'.freeze, TYPE_AUTONOMOUS_DATABASE_SWITCHOVER = 'AUTONOMOUS_DATABASE_SWITCHOVER'.freeze, TYPE_AUTONOMOUS_DATABASE_FAILOVER = 'AUTONOMOUS_DATABASE_FAILOVER'.freeze, TYPE_VOLUME_GROUP_RESTORE_SWITCHOVER = 'VOLUME_GROUP_RESTORE_SWITCHOVER'.freeze, TYPE_VOLUME_GROUP_RESTORE_FAILOVER = 'VOLUME_GROUP_RESTORE_FAILOVER'.freeze, TYPE_VOLUME_GROUP_REVERSE = 'VOLUME_GROUP_REVERSE'.freeze, TYPE_VOLUME_GROUP_DELETE = 'VOLUME_GROUP_DELETE'.freeze, TYPE_VOLUME_GROUP_REMOVE = 'VOLUME_GROUP_REMOVE'.freeze, TYPE_VOLUME_GROUP_TERMINATE = 'VOLUME_GROUP_TERMINATE'.freeze, TYPE_USER_DEFINED = 'USER_DEFINED'.freeze, TYPE_USER_DEFINED_CUSTOM_PRECHECK = 'USER_DEFINED_CUSTOM_PRECHECK'.freeze, TYPE_VOLUME_GROUP_RESTORE_START_DRILL_PRECHECK = 'VOLUME_GROUP_RESTORE_START_DRILL_PRECHECK'.freeze, TYPE_VOLUME_GROUP_REMOVE_PRECHECK = 'VOLUME_GROUP_REMOVE_PRECHECK'.freeze, TYPE_VOLUME_GROUP_TERMINATE_PRECHECK = 'VOLUME_GROUP_TERMINATE_PRECHECK'.freeze, TYPE_VOLUME_GROUP_RESTORE_START_DRILL = 'VOLUME_GROUP_RESTORE_START_DRILL'.freeze, TYPE_AUTONOMOUS_DATABASE_CREATE_CLONE_PRECHECK = 'AUTONOMOUS_DATABASE_CREATE_CLONE_PRECHECK'.freeze, TYPE_AUTONOMOUS_DATABASE_DELETE_CLONE_PRECHECK = 'AUTONOMOUS_DATABASE_DELETE_CLONE_PRECHECK'.freeze, TYPE_LOAD_BALANCER_UPDATE_PRIMARY_BACKEND_SET_PRECHECK = 'LOAD_BALANCER_UPDATE_PRIMARY_BACKEND_SET_PRECHECK'.freeze, TYPE_LOAD_BALANCER_UPDATE_STANDBY_BACKEND_SET_PRECHECK = 'LOAD_BALANCER_UPDATE_STANDBY_BACKEND_SET_PRECHECK'.freeze, TYPE_FILE_SYSTEM_SWITCHOVER_PRECHECK = 'FILE_SYSTEM_SWITCHOVER_PRECHECK'.freeze, TYPE_FILE_SYSTEM_FAILOVER_PRECHECK = 'FILE_SYSTEM_FAILOVER_PRECHECK'.freeze, TYPE_FILE_SYSTEM_START_DRILL_PRECHECK = 'FILE_SYSTEM_START_DRILL_PRECHECK'.freeze, TYPE_FILE_SYSTEM_STOP_DRILL_PRECHECK = 'FILE_SYSTEM_STOP_DRILL_PRECHECK'.freeze, TYPE_FILE_SYSTEM_REMOVE_PRECHECK = 'FILE_SYSTEM_REMOVE_PRECHECK'.freeze, TYPE_FILE_SYSTEM_TERMINATE_PRECHECK = 'FILE_SYSTEM_TERMINATE_PRECHECK'.freeze, TYPE_FILE_SYSTEM_MOUNT_PRECHECK = 'FILE_SYSTEM_MOUNT_PRECHECK'.freeze, TYPE_FILE_SYSTEM_UNMOUNT_PRECHECK = 'FILE_SYSTEM_UNMOUNT_PRECHECK'.freeze, TYPE_COMPUTE_INSTANCE_START_PRECHECK = 'COMPUTE_INSTANCE_START_PRECHECK'.freeze, TYPE_COMPUTE_INSTANCE_ATTACH_BLOCK_VOLUMES_PRECHECK = 'COMPUTE_INSTANCE_ATTACH_BLOCK_VOLUMES_PRECHECK'.freeze, TYPE_COMPUTE_INSTANCE_DETACH_BLOCK_VOLUMES_PRECHECK = 'COMPUTE_INSTANCE_DETACH_BLOCK_VOLUMES_PRECHECK'.freeze, TYPE_COMPUTE_INSTANCE_MOUNT_BLOCK_VOLUMES_PRECHECK = 'COMPUTE_INSTANCE_MOUNT_BLOCK_VOLUMES_PRECHECK'.freeze, TYPE_COMPUTE_INSTANCE_UNMOUNT_BLOCK_VOLUMES_PRECHECK = 'COMPUTE_INSTANCE_UNMOUNT_BLOCK_VOLUMES_PRECHECK'.freeze, TYPE_COMPUTE_CAPACITY_RESERVATION_START_DRILL_PRECHECK = 'COMPUTE_CAPACITY_RESERVATION_START_DRILL_PRECHECK'.freeze, TYPE_COMPUTE_CAPACITY_AVAILABILITY_START_DRILL_PRECHECK = 'COMPUTE_CAPACITY_AVAILABILITY_START_DRILL_PRECHECK'.freeze, TYPE_AUTONOMOUS_DATABASE_CREATE_CLONE = 'AUTONOMOUS_DATABASE_CREATE_CLONE'.freeze, TYPE_AUTONOMOUS_DATABASE_DELETE_CLONE = 'AUTONOMOUS_DATABASE_DELETE_CLONE'.freeze, TYPE_LOAD_BALANCER_UPDATE_PRIMARY_BACKEND_SET = 'LOAD_BALANCER_UPDATE_PRIMARY_BACKEND_SET'.freeze, TYPE_LOAD_BALANCER_UPDATE_STANDBY_BACKEND_SET = 'LOAD_BALANCER_UPDATE_STANDBY_BACKEND_SET'.freeze, TYPE_FILE_SYSTEM_SWITCHOVER = 'FILE_SYSTEM_SWITCHOVER'.freeze, TYPE_FILE_SYSTEM_FAILOVER = 'FILE_SYSTEM_FAILOVER'.freeze, TYPE_FILE_SYSTEM_REMOVE = 'FILE_SYSTEM_REMOVE'.freeze, TYPE_FILE_SYSTEM_REVERSE = 'FILE_SYSTEM_REVERSE'.freeze, TYPE_FILE_SYSTEM_TERMINATE = 'FILE_SYSTEM_TERMINATE'.freeze, TYPE_FILE_SYSTEM_START_DRILL = 'FILE_SYSTEM_START_DRILL'.freeze, TYPE_FILE_SYSTEM_STOP_DRILL = 'FILE_SYSTEM_STOP_DRILL'.freeze, TYPE_COMPUTE_INSTANCE_START = 'COMPUTE_INSTANCE_START'.freeze, TYPE_COMPUTE_INSTANCE_ATTACH_BLOCK_VOLUMES = 'COMPUTE_INSTANCE_ATTACH_BLOCK_VOLUMES'.freeze, TYPE_COMPUTE_INSTANCE_DETACH_BLOCK_VOLUMES = 'COMPUTE_INSTANCE_DETACH_BLOCK_VOLUMES'.freeze, TYPE_FILE_SYSTEM_MOUNT = 'FILE_SYSTEM_MOUNT'.freeze, TYPE_FILE_SYSTEM_UNMOUNT = 'FILE_SYSTEM_UNMOUNT'.freeze, TYPE_COMPUTE_CAPACITY_RESERVATION_SWITCHOVER_PRECHECK = 'COMPUTE_CAPACITY_RESERVATION_SWITCHOVER_PRECHECK'.freeze, TYPE_COMPUTE_CAPACITY_RESERVATION_FAILOVER_PRECHECK = 'COMPUTE_CAPACITY_RESERVATION_FAILOVER_PRECHECK'.freeze, TYPE_COMPUTE_CAPACITY_AVAILABILITY_SWITCHOVER_PRECHECK = 'COMPUTE_CAPACITY_AVAILABILITY_SWITCHOVER_PRECHECK'.freeze, TYPE_COMPUTE_CAPACITY_AVAILABILITY_FAILOVER_PRECHECK = 'COMPUTE_CAPACITY_AVAILABILITY_FAILOVER_PRECHECK'.freeze, TYPE_OKE_CLUSTER_SWITCHOVER_CLEANUP_PRIMARY_PRECHECK = 'OKE_CLUSTER_SWITCHOVER_CLEANUP_PRIMARY_PRECHECK'.freeze, TYPE_OKE_CLUSTER_SWITCHOVER_RESTORE_STANDBY_PRECHECK = 'OKE_CLUSTER_SWITCHOVER_RESTORE_STANDBY_PRECHECK'.freeze, TYPE_OKE_CLUSTER_FAILOVER_RESTORE_STANDBY_PRECHECK = 'OKE_CLUSTER_FAILOVER_RESTORE_STANDBY_PRECHECK'.freeze, TYPE_OKE_CLUSTER_STOP_DRILL_CLEANUP_STANDBY_PRECHECK = 'OKE_CLUSTER_STOP_DRILL_CLEANUP_STANDBY_PRECHECK'.freeze, TYPE_OKE_CLUSTER_START_DRILL_RESTORE_STANDBY_PRECHECK = 'OKE_CLUSTER_START_DRILL_RESTORE_STANDBY_PRECHECK'.freeze, TYPE_OKE_CLUSTER_SWITCHOVER_CLEANUP_PRIMARY = 'OKE_CLUSTER_SWITCHOVER_CLEANUP_PRIMARY'.freeze, TYPE_OKE_CLUSTER_SWITCHOVER_SCALE_UP_STANDBY = 'OKE_CLUSTER_SWITCHOVER_SCALE_UP_STANDBY'.freeze, TYPE_OKE_CLUSTER_SWITCHOVER_RESTORE_STANDBY = 'OKE_CLUSTER_SWITCHOVER_RESTORE_STANDBY'.freeze, TYPE_OKE_CLUSTER_SWITCHOVER_REVERSE_BACKUP_STANDBY = 'OKE_CLUSTER_SWITCHOVER_REVERSE_BACKUP_STANDBY'.freeze, TYPE_OKE_CLUSTER_SWITCHOVER_SCALE_DOWN_PRIMARY = 'OKE_CLUSTER_SWITCHOVER_SCALE_DOWN_PRIMARY'.freeze, TYPE_OKE_CLUSTER_FAILOVER_RESTORE_STANDBY = 'OKE_CLUSTER_FAILOVER_RESTORE_STANDBY'.freeze, TYPE_OKE_CLUSTER_FAILOVER_SCALE_UP_STANDBY = 'OKE_CLUSTER_FAILOVER_SCALE_UP_STANDBY'.freeze, TYPE_OKE_CLUSTER_START_DRILL_RESTORE_STANDBY = 'OKE_CLUSTER_START_DRILL_RESTORE_STANDBY'.freeze, TYPE_OKE_CLUSTER_START_DRILL_SCALE_UP_STANDBY = 'OKE_CLUSTER_START_DRILL_SCALE_UP_STANDBY'.freeze, TYPE_OKE_CLUSTER_STOP_DRILL_CLEANUP_STANDBY = 'OKE_CLUSTER_STOP_DRILL_CLEANUP_STANDBY'.freeze, TYPE_OKE_CLUSTER_STOP_DRILL_SCALE_DOWN_STANDBY = 'OKE_CLUSTER_STOP_DRILL_SCALE_DOWN_STANDBY'.freeze, TYPE_OBJECT_STORAGE_BUCKET_SWITCHOVER_DELETE_REPLICATION_PRIMARY_PRECHECK = 'OBJECT_STORAGE_BUCKET_SWITCHOVER_DELETE_REPLICATION_PRIMARY_PRECHECK'.freeze, TYPE_OBJECT_STORAGE_BUCKET_SWITCHOVER_SETUP_REVERSE_REPLICATION_STANDBY_PRECHECK = 'OBJECT_STORAGE_BUCKET_SWITCHOVER_SETUP_REVERSE_REPLICATION_STANDBY_PRECHECK'.freeze, TYPE_OBJECT_STORAGE_BUCKET_FAILOVER_DELETE_REPLICATION_STANDBY_PRECHECK = 'OBJECT_STORAGE_BUCKET_FAILOVER_DELETE_REPLICATION_STANDBY_PRECHECK'.freeze, TYPE_OBJECT_STORAGE_BUCKET_FAILOVER_SETUP_REVERSE_REPLICATION_STANDBY_PRECHECK = 'OBJECT_STORAGE_BUCKET_FAILOVER_SETUP_REVERSE_REPLICATION_STANDBY_PRECHECK'.freeze, TYPE_OBJECT_STORAGE_BUCKET_SWITCHOVER_DELETE_REPLICATION_PRIMARY = 'OBJECT_STORAGE_BUCKET_SWITCHOVER_DELETE_REPLICATION_PRIMARY'.freeze, TYPE_OBJECT_STORAGE_BUCKET_SWITCHOVER_SETUP_REVERSE_REPLICATION_STANDBY = 'OBJECT_STORAGE_BUCKET_SWITCHOVER_SETUP_REVERSE_REPLICATION_STANDBY'.freeze, TYPE_OBJECT_STORAGE_BUCKET_FAILOVER_DELETE_REPLICATION_STANDBY = 'OBJECT_STORAGE_BUCKET_FAILOVER_DELETE_REPLICATION_STANDBY'.freeze, TYPE_OBJECT_STORAGE_BUCKET_FAILOVER_SETUP_REVERSE_REPLICATION_STANDBY = 'OBJECT_STORAGE_BUCKET_FAILOVER_SETUP_REVERSE_REPLICATION_STANDBY'.freeze, TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- STATUS_ENUM =
[ STATUS_QUEUED = 'QUEUED'.freeze, STATUS_DISABLED = 'DISABLED'.freeze, STATUS_IN_PROGRESS = 'IN_PROGRESS'.freeze, STATUS_SUCCEEDED = 'SUCCEEDED'.freeze, STATUS_FAILED = 'FAILED'.freeze, STATUS_FAILED_IGNORED = 'FAILED_IGNORED'.freeze, STATUS_TIMED_OUT = 'TIMED_OUT'.freeze, STATUS_TIMED_OUT_IGNORED = 'TIMED_OUT_IGNORED'.freeze, STATUS_PAUSED = 'PAUSED'.freeze, STATUS_CANCELED = 'CANCELED'.freeze, STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#display_name ⇒ String
[Required] The display name of the step execution.
-
#execution_duration_in_sec ⇒ Integer
The total duration in seconds taken to complete the step execution.
-
#group_id ⇒ String
[Required] The unique id of the group to which this step belongs.
-
#log_location ⇒ OCI::DisasterRecovery::Models::ObjectStorageLogLocation
This attribute is required.
-
#status ⇒ String
[Required] The status of the step execution.
-
#status_details ⇒ String
Additional details on the step execution status.
-
#step_id ⇒ String
[Required] The unique id of the step.
-
#time_ended ⇒ DateTime
The time when execution ended.
-
#time_started ⇒ DateTime
The time when step execution began.
-
#type ⇒ String
[Required] The step type.
-
#type_display_name ⇒ String
[Required] The display name of the DR Plan step 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 = {}) ⇒ DrPlanStepExecution
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 = {}) ⇒ DrPlanStepExecution
Initializes the object
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 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 |
# File 'lib/oci/disaster_recovery/models/dr_plan_step_execution.rb', line 269 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.step_id = attributes[:'stepId'] if attributes[:'stepId'] raise 'You cannot provide both :stepId and :step_id' if attributes.key?(:'stepId') && attributes.key?(:'step_id') self.step_id = attributes[:'step_id'] if attributes[:'step_id'] self.type = attributes[:'type'] if attributes[:'type'] self.group_id = attributes[:'groupId'] if attributes[:'groupId'] raise 'You cannot provide both :groupId and :group_id' if attributes.key?(:'groupId') && attributes.key?(:'group_id') self.group_id = attributes[:'group_id'] if attributes[:'group_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.type_display_name = attributes[:'typeDisplayName'] if attributes[:'typeDisplayName'] raise 'You cannot provide both :typeDisplayName and :type_display_name' if attributes.key?(:'typeDisplayName') && attributes.key?(:'type_display_name') self.type_display_name = attributes[:'type_display_name'] if attributes[:'type_display_name'] self.log_location = attributes[:'logLocation'] if attributes[:'logLocation'] raise 'You cannot provide both :logLocation and :log_location' if attributes.key?(:'logLocation') && attributes.key?(:'log_location') self.log_location = attributes[:'log_location'] if attributes[:'log_location'] self.status = attributes[:'status'] if attributes[:'status'] self.status_details = attributes[:'statusDetails'] if attributes[:'statusDetails'] raise 'You cannot provide both :statusDetails and :status_details' if attributes.key?(:'statusDetails') && attributes.key?(:'status_details') self.status_details = attributes[:'status_details'] if attributes[:'status_details'] 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.execution_duration_in_sec = attributes[:'executionDurationInSec'] if attributes[:'executionDurationInSec'] raise 'You cannot provide both :executionDurationInSec and :execution_duration_in_sec' if attributes.key?(:'executionDurationInSec') && attributes.key?(:'execution_duration_in_sec') self.execution_duration_in_sec = attributes[:'execution_duration_in_sec'] if attributes[:'execution_duration_in_sec'] end |
Instance Attribute Details
#display_name ⇒ String
[Required] The display name of the step execution.
Example: DATABASE_SWITCHOVER
168 169 170 |
# File 'lib/oci/disaster_recovery/models/dr_plan_step_execution.rb', line 168 def display_name @display_name end |
#execution_duration_in_sec ⇒ Integer
The total duration in seconds taken to complete the step execution.
Example: 35
212 213 214 |
# File 'lib/oci/disaster_recovery/models/dr_plan_step_execution.rb', line 212 def execution_duration_in_sec @execution_duration_in_sec end |
#group_id ⇒ String
[Required] The unique id of the group to which this step belongs. Must not be modified by user.
Example: sgid1.group..uniqueID
161 162 163 |
# File 'lib/oci/disaster_recovery/models/dr_plan_step_execution.rb', line 161 def group_id @group_id end |
#log_location ⇒ OCI::DisasterRecovery::Models::ObjectStorageLogLocation
This attribute is required.
179 180 181 |
# File 'lib/oci/disaster_recovery/models/dr_plan_step_execution.rb', line 179 def log_location @log_location end |
#status ⇒ String
[Required] The status of the step execution.
184 185 186 |
# File 'lib/oci/disaster_recovery/models/dr_plan_step_execution.rb', line 184 def status @status end |
#status_details ⇒ String
Additional details on the step execution status.
Example: This step failed to complete due to a timeout
191 192 193 |
# File 'lib/oci/disaster_recovery/models/dr_plan_step_execution.rb', line 191 def status_details @status_details end |
#step_id ⇒ String
[Required] The unique id of the step. Must not be modified by user.
Example: sgid1.step..uniqueID
149 150 151 |
# File 'lib/oci/disaster_recovery/models/dr_plan_step_execution.rb', line 149 def step_id @step_id end |
#time_ended ⇒ DateTime
The time when execution ended. An RFC3339 formatted datetime string.
Example: 2019-03-29T09:36:42Z
205 206 207 |
# File 'lib/oci/disaster_recovery/models/dr_plan_step_execution.rb', line 205 def time_ended @time_ended end |
#time_started ⇒ DateTime
The time when step execution began. An RFC3339 formatted datetime string.
Example: 2019-03-29T09:36:42Z
198 199 200 |
# File 'lib/oci/disaster_recovery/models/dr_plan_step_execution.rb', line 198 def time_started @time_started end |
#type ⇒ String
[Required] The step type.
154 155 156 |
# File 'lib/oci/disaster_recovery/models/dr_plan_step_execution.rb', line 154 def type @type end |
#type_display_name ⇒ String
[Required] The display name of the DR Plan step type.
Example: Database Switchover
175 176 177 |
# File 'lib/oci/disaster_recovery/models/dr_plan_step_execution.rb', line 175 def type_display_name @type_display_name end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 |
# File 'lib/oci/disaster_recovery/models/dr_plan_step_execution.rb', line 215 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'step_id': :'stepId', 'type': :'type', 'group_id': :'groupId', 'display_name': :'displayName', 'type_display_name': :'typeDisplayName', 'log_location': :'logLocation', 'status': :'status', 'status_details': :'statusDetails', 'time_started': :'timeStarted', 'time_ended': :'timeEnded', 'execution_duration_in_sec': :'executionDurationInSec' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 |
# File 'lib/oci/disaster_recovery/models/dr_plan_step_execution.rb', line 234 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'step_id': :'String', 'type': :'String', 'group_id': :'String', 'display_name': :'String', 'type_display_name': :'String', 'log_location': :'OCI::DisasterRecovery::Models::ObjectStorageLogLocation', 'status': :'String', 'status_details': :'String', 'time_started': :'DateTime', 'time_ended': :'DateTime', 'execution_duration_in_sec': :'Integer' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 |
# File 'lib/oci/disaster_recovery/models/dr_plan_step_execution.rb', line 367 def ==(other) return true if equal?(other) self.class == other.class && step_id == other.step_id && type == other.type && group_id == other.group_id && display_name == other.display_name && type_display_name == other.type_display_name && log_location == other.log_location && status == other.status && status_details == other.status_details && time_started == other.time_started && time_ended == other.time_ended && execution_duration_in_sec == other.execution_duration_in_sec end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 |
# File 'lib/oci/disaster_recovery/models/dr_plan_step_execution.rb', line 407 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
387 388 389 |
# File 'lib/oci/disaster_recovery/models/dr_plan_step_execution.rb', line 387 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
396 397 398 |
# File 'lib/oci/disaster_recovery/models/dr_plan_step_execution.rb', line 396 def hash [step_id, type, group_id, display_name, type_display_name, log_location, status, status_details, time_started, time_ended, execution_duration_in_sec].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
440 441 442 443 444 445 446 447 448 449 |
# File 'lib/oci/disaster_recovery/models/dr_plan_step_execution.rb', line 440 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
434 435 436 |
# File 'lib/oci/disaster_recovery/models/dr_plan_step_execution.rb', line 434 def to_s to_hash.to_s end |