Class: OCI::Datacc::Models::MaintenanceExecutionSummary

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/datacc/models/maintenance_execution_summary.rb

Overview

Summary of a maintenance executions.

Constant Summary collapse

LIFECYCLE_STATE_ENUM =
[
  LIFECYCLE_STATE_CREATING = 'CREATING'.freeze,
  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_DB_CC_INFRASTRUCTURE = 'DB_CC_INFRASTRUCTURE'.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_YEARLY = 'YEARLY'.freeze,
  MAINTENANCE_SUBTYPE_HALFYEARLY = 'HALFYEARLY'.freeze,
  MAINTENANCE_SUBTYPE_QUARTERLY = 'QUARTERLY'.freeze,
  MAINTENANCE_SUBTYPE_MONTHLY = 'MONTHLY'.freeze,
  MAINTENANCE_SUBTYPE_DAILY = 'DAILY'.freeze,
  MAINTENANCE_SUBTYPE_HARDWARE = 'HARDWARE'.freeze,
  MAINTENANCE_SUBTYPE_CRITICAL = 'CRITICAL'.freeze,
  MAINTENANCE_SUBTYPE_INFRA_UPDATE = 'INFRA_UPDATE'.freeze,
  MAINTENANCE_SUBTYPE_CPS_SERVICES_UPDATE = 'CPS_SERVICES_UPDATE'.freeze,
  MAINTENANCE_SUBTYPE_CPS_VM_UPDATE = 'CPS_VM_UPDATE'.freeze,
  MAINTENANCE_SUBTYPE_SECURITY_MONTHLY = 'SECURITY_MONTHLY'.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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ MaintenanceExecutionSummary

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):

  • :id (String)

    The value to assign to the #id property

  • :compartment_id (String)

    The value to assign to the #compartment_id property

  • :display_name (String)

    The value to assign to the #display_name property

  • :description (String)

    The value to assign to the #description property

  • :lifecycle_state (String)

    The value to assign to the #lifecycle_state property

  • :lifecycle_details (String)

    The value to assign to the #lifecycle_details property

  • :time_started (DateTime)

    The value to assign to the #time_started property

  • :time_ended (DateTime)

    The value to assign to the #time_ended property

  • :target_resource_type (String)

    The value to assign to the #target_resource_type property

  • :infrastructure_id (String)

    The value to assign to the #infrastructure_id property

  • :maintenance_run_id (String)

    The value to assign to the #maintenance_run_id property

  • :maintenance_type (String)

    The value to assign to the #maintenance_type property

  • :maintenance_subtype (String)

    The value to assign to the #maintenance_subtype property

  • :patching_mode (String)

    The value to assign to the #patching_mode property

  • :source_version (String)

    The value to assign to the #source_version property

  • :target_version (String)

    The value to assign to the #target_version property

  • :is_custom_action_timeout_enabled (BOOLEAN)

    The value to assign to the #is_custom_action_timeout_enabled property

  • :custom_action_timeout_in_mins (Integer)

    The value to assign to the #custom_action_timeout_in_mins property

  • :workflow_id (String)

    The value to assign to the #workflow_id property

  • :system_tags (Hash<String, Hash<String, Object>>)

    The value to assign to the #system_tags property

  • :defined_tags (Hash<String, Hash<String, Object>>)

    The value to assign to the #defined_tags property

  • :freeform_tags (Hash<String, String>)

    The value to assign to the #freeform_tags property

  • :total_time_taken_in_mins (Integer)

    The value to assign to the #total_time_taken_in_mins property



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
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
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
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 253

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.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_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.infrastructure_id = attributes[:'infrastructureId'] if attributes[:'infrastructureId']

  raise 'You cannot provide both :infrastructureId and :infrastructure_id' if attributes.key?(:'infrastructureId') && attributes.key?(:'infrastructure_id')

  self.infrastructure_id = attributes[:'infrastructure_id'] if attributes[:'infrastructure_id']

  self.maintenance_run_id = attributes[:'maintenanceRunId'] if attributes[:'maintenanceRunId']

  raise 'You cannot provide both :maintenanceRunId and :maintenance_run_id' if attributes.key?(:'maintenanceRunId') && attributes.key?(:'maintenance_run_id')

  self.maintenance_run_id = attributes[:'maintenance_run_id'] if attributes[:'maintenance_run_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.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.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.source_version = attributes[:'sourceVersion'] if attributes[:'sourceVersion']

  raise 'You cannot provide both :sourceVersion and :source_version' if attributes.key?(:'sourceVersion') && attributes.key?(:'source_version')

  self.source_version = attributes[:'source_version'] if attributes[:'source_version']

  self.target_version = attributes[:'targetVersion'] if attributes[:'targetVersion']

  raise 'You cannot provide both :targetVersion and :target_version' if attributes.key?(:'targetVersion') && attributes.key?(:'target_version')

  self.target_version = attributes[:'target_version'] if attributes[:'target_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.workflow_id = attributes[:'workflowId'] if attributes[:'workflowId']

  raise 'You cannot provide both :workflowId and :workflow_id' if attributes.key?(:'workflowId') && attributes.key?(:'workflow_id')

  self.workflow_id = attributes[:'workflow_id'] if attributes[:'workflow_id']

  self.system_tags = attributes[:'systemTags'] if attributes[:'systemTags']

  raise 'You cannot provide both :systemTags and :system_tags' if attributes.key?(:'systemTags') && attributes.key?(:'system_tags')

  self.system_tags = attributes[:'system_tags'] if attributes[:'system_tags']

  self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']

  raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')

  self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']

  self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']

  raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')

  self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']

  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']
end

Instance Attribute Details

#compartment_idString

The OCID of the compartment.

Returns:

  • (String)


66
67
68
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 66

def compartment_id
  @compartment_id
end

#custom_action_timeout_in_minsInteger

Determines the amount of time the system will wait before the start of each compute server patching operation. Supported values are 15 to 120 minutes.

Returns:

  • (Integer)


134
135
136
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 134

def custom_action_timeout_in_mins
  @custom_action_timeout_in_mins
end

#defined_tagsHash<String, Hash<String, Object>>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {\"foo-namespace\": {\"bar-key\": \"value\"}}

Returns:

  • (Hash<String, Hash<String, Object>>)


150
151
152
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 150

def defined_tags
  @defined_tags
end

#descriptionString

Description of the maintenance run execution.

Returns:

  • (String)


74
75
76
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 74

def description
  @description
end

#display_nameString

[Required] The user-friendly name for the maintenance run execution.

Returns:

  • (String)


70
71
72
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 70

def display_name
  @display_name
end

#freeform_tagsHash<String, String>

Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. Example: {\"bar-key\": \"value\"}

Returns:

  • (Hash<String, String>)


156
157
158
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 156

def freeform_tags
  @freeform_tags
end

#idString

[Required] The OCID of the maintenance run execution.

Returns:

  • (String)


62
63
64
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 62

def id
  @id
end

#infrastructure_idString

The OCID of the Database Infrastructure on which the maintenance run execution occurred.

Returns:

  • (String)


99
100
101
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 99

def infrastructure_id
  @infrastructure_id
end

#is_custom_action_timeout_enabledBOOLEAN

At the time of execution whether the custom action time out is enabled for the maintenance run that is being executed.

Returns:

  • (BOOLEAN)


128
129
130
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 128

def is_custom_action_timeout_enabled
  @is_custom_action_timeout_enabled
end

#lifecycle_detailsString

Additional information about the current lifecycle state.

Returns:

  • (String)


83
84
85
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 83

def lifecycle_details
  @lifecycle_details
end

#lifecycle_stateString

[Required] The state of the maintenance run execution.

Returns:

  • (String)


79
80
81
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 79

def lifecycle_state
  @lifecycle_state
end

#maintenance_run_idString

The OCID of the maintenance run to which this maintenance execution belongs.

Returns:

  • (String)


103
104
105
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 103

def maintenance_run_id
  @maintenance_run_id
end

#maintenance_subtypeString

Maintenance run execution sub-type.

Returns:

  • (String)


111
112
113
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 111

def maintenance_subtype
  @maintenance_subtype
end

#maintenance_typeString

Maintenance type.

Returns:

  • (String)


107
108
109
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 107

def maintenance_type
  @maintenance_type
end

#patching_modeString

The patching mode for the maintenance run that is being executed.

Returns:

  • (String)


116
117
118
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 116

def patching_mode
  @patching_mode
end

#source_versionString

The source software version for the Oracle infrastructure.

Returns:

  • (String)


120
121
122
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 120

def source_version
  @source_version
end

#system_tagsHash<String, Hash<String, Object>>

Usage of system tag keys. These predefined keys are scoped to namespaces. Example: { \"orcl-cloud\": { \"free-tier-retained\": \"true\" } }

Returns:

  • (Hash<String, Hash<String, Object>>)


144
145
146
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 144

def system_tags
  @system_tags
end

#target_resource_typeString

The type of the target resource on which the maintenance run execution occurred.

Returns:

  • (String)


95
96
97
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 95

def target_resource_type
  @target_resource_type
end

#target_versionString

The target software version for the Database Infrastructure patching operation.

Returns:

  • (String)


124
125
126
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 124

def target_version
  @target_version
end

#time_endedDateTime

The date and time the maintenance run was completed.

Returns:

  • (DateTime)


91
92
93
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 91

def time_ended
  @time_ended
end

#time_startedDateTime

The date and time the maintenance run execution started.

Returns:

  • (DateTime)


87
88
89
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 87

def time_started
  @time_started
end

#total_time_taken_in_minsInteger

The total time taken by this execution in minutes.

Returns:

  • (Integer)


160
161
162
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 160

def total_time_taken_in_mins
  @total_time_taken_in_mins
end

#workflow_idString

The OCID of the work request executed by this execution.

Returns:

  • (String)


138
139
140
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 138

def workflow_id
  @workflow_id
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 163

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_started': :'timeStarted',
    'time_ended': :'timeEnded',
    'target_resource_type': :'targetResourceType',
    'infrastructure_id': :'infrastructureId',
    'maintenance_run_id': :'maintenanceRunId',
    'maintenance_type': :'maintenanceType',
    'maintenance_subtype': :'maintenanceSubtype',
    'patching_mode': :'patchingMode',
    'source_version': :'sourceVersion',
    'target_version': :'targetVersion',
    'is_custom_action_timeout_enabled': :'isCustomActionTimeoutEnabled',
    'custom_action_timeout_in_mins': :'customActionTimeoutInMins',
    'workflow_id': :'workflowId',
    'system_tags': :'systemTags',
    'defined_tags': :'definedTags',
    'freeform_tags': :'freeformTags',
    'total_time_taken_in_mins': :'totalTimeTakenInMins'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 194

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_started': :'DateTime',
    'time_ended': :'DateTime',
    'target_resource_type': :'String',
    'infrastructure_id': :'String',
    'maintenance_run_id': :'String',
    'maintenance_type': :'String',
    'maintenance_subtype': :'String',
    'patching_mode': :'String',
    'source_version': :'String',
    'target_version': :'String',
    'is_custom_action_timeout_enabled': :'BOOLEAN',
    'custom_action_timeout_in_mins': :'Integer',
    'workflow_id': :'String',
    'system_tags': :'Hash<String, Hash<String, Object>>',
    'defined_tags': :'Hash<String, Hash<String, Object>>',
    'freeform_tags': :'Hash<String, String>',
    'total_time_taken_in_mins': :'Integer'
    # rubocop:enable Style/SymbolLiteral
  }
end

Instance Method Details

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • other (Object)

    the other object to be compared



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
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 462

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_started == other.time_started &&
    time_ended == other.time_ended &&
    target_resource_type == other.target_resource_type &&
    infrastructure_id == other.infrastructure_id &&
    maintenance_run_id == other.maintenance_run_id &&
    maintenance_type == other.maintenance_type &&
    maintenance_subtype == other.maintenance_subtype &&
    patching_mode == other.patching_mode &&
    source_version == other.source_version &&
    target_version == other.target_version &&
    is_custom_action_timeout_enabled == other.is_custom_action_timeout_enabled &&
    custom_action_timeout_in_mins == other.custom_action_timeout_in_mins &&
    workflow_id == other.workflow_id &&
    system_tags == other.system_tags &&
    defined_tags == other.defined_tags &&
    freeform_tags == other.freeform_tags &&
    total_time_taken_in_mins == other.total_time_taken_in_mins
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 514

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

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


494
495
496
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 494

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



503
504
505
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 503

def hash
  [id, compartment_id, display_name, description, lifecycle_state, lifecycle_details, time_started, time_ended, target_resource_type, infrastructure_id, maintenance_run_id, maintenance_type, maintenance_subtype, patching_mode, source_version, target_version, is_custom_action_timeout_enabled, custom_action_timeout_in_mins, workflow_id, system_tags, defined_tags, freeform_tags, total_time_taken_in_mins].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



547
548
549
550
551
552
553
554
555
556
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 547

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_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



541
542
543
# File 'lib/oci/datacc/models/maintenance_execution_summary.rb', line 541

def to_s
  to_hash.to_s
end