Class: OCI::DataIntegration::Models::TaskRun

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/data_integration/models/task_run.rb

Overview

The information about a task run.

Constant Summary collapse

STATUS_ENUM =
[
  STATUS_NOT_STARTED = 'NOT_STARTED'.freeze,
  STATUS_QUEUED = 'QUEUED'.freeze,
  STATUS_RUNNING = 'RUNNING'.freeze,
  STATUS_TERMINATING = 'TERMINATING'.freeze,
  STATUS_TERMINATED = 'TERMINATED'.freeze,
  STATUS_SUCCESS = 'SUCCESS'.freeze,
  STATUS_ERROR = 'ERROR'.freeze,
  STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
EXPECTED_DURATION_UNIT_ENUM =
[
  EXPECTED_DURATION_UNIT_SECONDS = 'SECONDS'.freeze,
  EXPECTED_DURATION_UNIT_MINUTES = 'MINUTES'.freeze,
  EXPECTED_DURATION_UNIT_HOURS = 'HOURS'.freeze,
  EXPECTED_DURATION_UNIT_DAYS = 'DAYS'.freeze,
  EXPECTED_DURATION_UNIT_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
AUTH_MODE_ENUM =
[
  AUTH_MODE_OBO = 'OBO'.freeze,
  AUTH_MODE_RESOURCE_PRINCIPAL = 'RESOURCE_PRINCIPAL'.freeze,
  AUTH_MODE_USER_CERTIFICATE = 'USER_CERTIFICATE'.freeze,
  AUTH_MODE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
TASK_TYPE_ENUM =
[
  TASK_TYPE_INTEGRATION_TASK = 'INTEGRATION_TASK'.freeze,
  TASK_TYPE_DATA_LOADER_TASK = 'DATA_LOADER_TASK'.freeze,
  TASK_TYPE_PIPELINE_TASK = 'PIPELINE_TASK'.freeze,
  TASK_TYPE_SQL_TASK = 'SQL_TASK'.freeze,
  TASK_TYPE_OCI_DATAFLOW_TASK = 'OCI_DATAFLOW_TASK'.freeze,
  TASK_TYPE_REST_TASK = 'REST_TASK'.freeze,
  TASK_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ TaskRun

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):



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
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
# File 'lib/oci/data_integration/models/task_run.rb', line 297

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

  self.model_type = attributes[:'modelType'] if attributes[:'modelType']

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

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

  self.model_version = attributes[:'modelVersion'] if attributes[:'modelVersion']

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

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

  self.parent_ref = attributes[:'parentRef'] if attributes[:'parentRef']

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

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

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

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

  self.object_version = attributes[:'objectVersion'] if attributes[:'objectVersion']

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

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

  self.config_provider = attributes[:'configProvider'] if attributes[:'configProvider']

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

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

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

  self.start_time_millis = attributes[:'startTimeMillis'] if attributes[:'startTimeMillis']

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

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

  self.end_time_millis = attributes[:'endTimeMillis'] if attributes[:'endTimeMillis']

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

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

  self.last_updated = attributes[:'lastUpdated'] if attributes[:'lastUpdated']

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

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

  self.records_written = attributes[:'recordsWritten'] if attributes[:'recordsWritten']

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

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

  self.bytes_processed = attributes[:'bytesProcessed'] if attributes[:'bytesProcessed']

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

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

  self.error_message = attributes[:'errorMessage'] if attributes[:'errorMessage']

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

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

  self.expected_duration = attributes[:'expectedDuration'] if attributes[:'expectedDuration']

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

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

  self.expected_duration_unit = attributes[:'expectedDurationUnit'] if attributes[:'expectedDurationUnit']

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

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

  self.task_key = attributes[:'taskKey'] if attributes[:'taskKey']

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

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

  self.external_id = attributes[:'externalId'] if attributes[:'externalId']

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

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

  self.retry_attempt = attributes[:'retryAttempt'] if attributes[:'retryAttempt']

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

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

  self.task_schedule = attributes[:'taskSchedule'] if attributes[:'taskSchedule']

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

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

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

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

  self.execution_errors = attributes[:'executionErrors'] if attributes[:'executionErrors']

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

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

  self.termination_errors = attributes[:'terminationErrors'] if attributes[:'terminationErrors']

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

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

  self.auth_mode = attributes[:'authMode'] if attributes[:'authMode']

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

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

  self.opc_request_id = attributes[:'opcRequestId'] if attributes[:'opcRequestId']

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

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

  self.object_status = attributes[:'objectStatus'] if attributes[:'objectStatus']

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

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

  self.task_type = attributes[:'taskType'] if attributes[:'taskType']

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

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

  self.is_log_processing_in_progress = attributes[:'isLogProcessingInProgress'] unless attributes[:'isLogProcessingInProgress'].nil?
  self.is_log_processing_in_progress = false if is_log_processing_in_progress.nil? && !attributes.key?(:'isLogProcessingInProgress') # rubocop:disable Style/StringLiterals

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

  self.is_log_processing_in_progress = attributes[:'is_log_processing_in_progress'] unless attributes[:'is_log_processing_in_progress'].nil?
  self.is_log_processing_in_progress = false if is_log_processing_in_progress.nil? && !attributes.key?(:'isLogProcessingInProgress') && !attributes.key?(:'is_log_processing_in_progress') # rubocop:disable Style/StringLiterals

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

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

  self.key_map = attributes[:'keyMap'] if attributes[:'keyMap']

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

  self.key_map = attributes[:'key_map'] if attributes[:'key_map']
end

Instance Attribute Details

#auth_modeString

The autorization mode for when the task was executed.

Returns:

  • (String)


147
148
149
# File 'lib/oci/data_integration/models/task_run.rb', line 147

def auth_mode
  @auth_mode
end

#bytes_processedInteger

The number of bytes processed in the task run.

Returns:

  • (Integer)


100
101
102
# File 'lib/oci/data_integration/models/task_run.rb', line 100

def bytes_processed
  @bytes_processed
end

#config_providerOCI::DataIntegration::Models::ConfigProvider



76
77
78
# File 'lib/oci/data_integration/models/task_run.rb', line 76

def config_provider
  @config_provider
end

#descriptionString

Detailed description for the object.

Returns:

  • (String)


69
70
71
# File 'lib/oci/data_integration/models/task_run.rb', line 69

def description
  @description
end

#end_time_millisInteger

The end time.

Returns:

  • (Integer)


88
89
90
# File 'lib/oci/data_integration/models/task_run.rb', line 88

def end_time_millis
  @end_time_millis
end

#error_messageString

Contains an error message if status is ERROR.

Returns:

  • (String)


104
105
106
# File 'lib/oci/data_integration/models/task_run.rb', line 104

def error_message
  @error_message
end

#execution_errorsArray<String>

An array of execution errors from the run.

Returns:

  • (Array<String>)


139
140
141
# File 'lib/oci/data_integration/models/task_run.rb', line 139

def execution_errors
  @execution_errors
end

#expected_durationFloat

The expected duration for the task run.

Returns:

  • (Float)


108
109
110
# File 'lib/oci/data_integration/models/task_run.rb', line 108

def expected_duration
  @expected_duration
end

#expected_duration_unitString

The expected duration unit of measure.

Returns:

  • (String)


112
113
114
# File 'lib/oci/data_integration/models/task_run.rb', line 112

def expected_duration_unit
  @expected_duration_unit
end

#external_idString

The external identifier for the task run.

Returns:

  • (String)


120
121
122
# File 'lib/oci/data_integration/models/task_run.rb', line 120

def external_id
  @external_id
end

#identifierString

Value can only contain upper case letters, underscore and numbers. It should begin with upper case letter or underscore. The value can be modified.

Returns:

  • (String)


167
168
169
# File 'lib/oci/data_integration/models/task_run.rb', line 167

def identifier
  @identifier
end

#is_log_processing_in_progressBOOLEAN

This field tells the user if there is any logs being fetched in backend for failure. Applicable only for failed pipeline tasks.

Returns:

  • (BOOLEAN)


163
164
165
# File 'lib/oci/data_integration/models/task_run.rb', line 163

def is_log_processing_in_progress
  @is_log_processing_in_progress
end

#keyString

The key of the object.

Returns:

  • (String)


50
51
52
# File 'lib/oci/data_integration/models/task_run.rb', line 50

def key
  @key
end

#key_mapHash<String, String>

A key map. If provided, key is replaced with generated key. This structure provides mapping between user provided key and generated key.

Returns:

  • (Hash<String, String>)


174
175
176
# File 'lib/oci/data_integration/models/task_run.rb', line 174

def key_map
  @key_map
end

#last_updatedInteger

The date and time the object was last updated.

Returns:

  • (Integer)


92
93
94
# File 'lib/oci/data_integration/models/task_run.rb', line 92

def last_updated
  @last_updated
end

#metadataOCI::DataIntegration::Models::ObjectMetadata



170
171
172
# File 'lib/oci/data_integration/models/task_run.rb', line 170

def 
  @metadata
end

#metricsHash<String, Float>

A map of metrics for the run.

Returns:

  • (Hash<String, Float>)


131
132
133
# File 'lib/oci/data_integration/models/task_run.rb', line 131

def metrics
  @metrics
end

#model_typeString

The type of the object.

Returns:

  • (String)


54
55
56
# File 'lib/oci/data_integration/models/task_run.rb', line 54

def model_type
  @model_type
end

#model_versionString

The model version of an object.

Returns:

  • (String)


58
59
60
# File 'lib/oci/data_integration/models/task_run.rb', line 58

def model_version
  @model_version
end

#nameString

Free form text without any restriction on permitted characters. Name can have letters, numbers, and special characters. The value is editable and is restricted to 1000 characters.

Returns:

  • (String)


65
66
67
# File 'lib/oci/data_integration/models/task_run.rb', line 65

def name
  @name
end

#object_statusInteger

The status of an object that can be set to value 1 for shallow references across objects, other values reserved.

Returns:

  • (Integer)


155
156
157
# File 'lib/oci/data_integration/models/task_run.rb', line 155

def object_status
  @object_status
end

#object_versionInteger

The version of the object that is used to track changes in the object instance.

Returns:

  • (Integer)


73
74
75
# File 'lib/oci/data_integration/models/task_run.rb', line 73

def object_version
  @object_version
end

#opc_request_idString

The OPC request ID of execution of the task run.

Returns:

  • (String)


151
152
153
# File 'lib/oci/data_integration/models/task_run.rb', line 151

def opc_request_id
  @opc_request_id
end

#outputsHash<String, OCI::DataIntegration::Models::ParameterValue>

A map of the outputs of the run.



135
136
137
# File 'lib/oci/data_integration/models/task_run.rb', line 135

def outputs
  @outputs
end

#parent_refOCI::DataIntegration::Models::ParentReference



61
62
63
# File 'lib/oci/data_integration/models/task_run.rb', line 61

def parent_ref
  @parent_ref
end

#records_writtenInteger

The number of records processed in the task run.

Returns:

  • (Integer)


96
97
98
# File 'lib/oci/data_integration/models/task_run.rb', line 96

def records_written
  @records_written
end

#retry_attemptInteger

Holds the particular attempt number.

Returns:

  • (Integer)


124
125
126
# File 'lib/oci/data_integration/models/task_run.rb', line 124

def retry_attempt
  @retry_attempt
end

#start_time_millisInteger

The start time.

Returns:

  • (Integer)


84
85
86
# File 'lib/oci/data_integration/models/task_run.rb', line 84

def start_time_millis
  @start_time_millis
end

#statusString

The status of the task run.

Returns:

  • (String)


80
81
82
# File 'lib/oci/data_integration/models/task_run.rb', line 80

def status
  @status
end

#task_keyString

Task Key of the task for which TaskRun is being created. If not specified, the AggregatorKey in RegistryMetadata will be assumed to be the TaskKey

Returns:

  • (String)


116
117
118
# File 'lib/oci/data_integration/models/task_run.rb', line 116

def task_key
  @task_key
end

#task_scheduleOCI::DataIntegration::Models::TaskSchedule



127
128
129
# File 'lib/oci/data_integration/models/task_run.rb', line 127

def task_schedule
  @task_schedule
end

#task_typeString

The type of task run.

Returns:

  • (String)


159
160
161
# File 'lib/oci/data_integration/models/task_run.rb', line 159

def task_type
  @task_type
end

#termination_errorsArray<String>

An array of termination errors from the run.

Returns:

  • (Array<String>)


143
144
145
# File 'lib/oci/data_integration/models/task_run.rb', line 143

def termination_errors
  @termination_errors
end

Class Method Details

.attribute_mapObject

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



177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
# File 'lib/oci/data_integration/models/task_run.rb', line 177

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'key': :'key',
    'model_type': :'modelType',
    'model_version': :'modelVersion',
    'parent_ref': :'parentRef',
    'name': :'name',
    'description': :'description',
    'object_version': :'objectVersion',
    'config_provider': :'configProvider',
    'status': :'status',
    'start_time_millis': :'startTimeMillis',
    'end_time_millis': :'endTimeMillis',
    'last_updated': :'lastUpdated',
    'records_written': :'recordsWritten',
    'bytes_processed': :'bytesProcessed',
    'error_message': :'errorMessage',
    'expected_duration': :'expectedDuration',
    'expected_duration_unit': :'expectedDurationUnit',
    'task_key': :'taskKey',
    'external_id': :'externalId',
    'retry_attempt': :'retryAttempt',
    'task_schedule': :'taskSchedule',
    'metrics': :'metrics',
    'outputs': :'outputs',
    'execution_errors': :'executionErrors',
    'termination_errors': :'terminationErrors',
    'auth_mode': :'authMode',
    'opc_request_id': :'opcRequestId',
    'object_status': :'objectStatus',
    'task_type': :'taskType',
    'is_log_processing_in_progress': :'isLogProcessingInProgress',
    'identifier': :'identifier',
    'metadata': :'metadata',
    'key_map': :'keyMap'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



218
219
220
221
222
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
# File 'lib/oci/data_integration/models/task_run.rb', line 218

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'key': :'String',
    'model_type': :'String',
    'model_version': :'String',
    'parent_ref': :'OCI::DataIntegration::Models::ParentReference',
    'name': :'String',
    'description': :'String',
    'object_version': :'Integer',
    'config_provider': :'OCI::DataIntegration::Models::ConfigProvider',
    'status': :'String',
    'start_time_millis': :'Integer',
    'end_time_millis': :'Integer',
    'last_updated': :'Integer',
    'records_written': :'Integer',
    'bytes_processed': :'Integer',
    'error_message': :'String',
    'expected_duration': :'Float',
    'expected_duration_unit': :'String',
    'task_key': :'String',
    'external_id': :'String',
    'retry_attempt': :'Integer',
    'task_schedule': :'OCI::DataIntegration::Models::TaskSchedule',
    'metrics': :'Hash<String, Float>',
    'outputs': :'Hash<String, OCI::DataIntegration::Models::ParameterValue>',
    'execution_errors': :'Array<String>',
    'termination_errors': :'Array<String>',
    'auth_mode': :'String',
    'opc_request_id': :'String',
    'object_status': :'Integer',
    'task_type': :'String',
    'is_log_processing_in_progress': :'BOOLEAN',
    'identifier': :'String',
    'metadata': :'OCI::DataIntegration::Models::ObjectMetadata',
    'key_map': :'Hash<String, String>'
    # 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



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/data_integration/models/task_run.rb', line 531

def ==(other)
  return true if equal?(other)

  self.class == other.class &&
    key == other.key &&
    model_type == other.model_type &&
    model_version == other.model_version &&
    parent_ref == other.parent_ref &&
    name == other.name &&
    description == other.description &&
    object_version == other.object_version &&
    config_provider == other.config_provider &&
    status == other.status &&
    start_time_millis == other.start_time_millis &&
    end_time_millis == other.end_time_millis &&
    last_updated == other.last_updated &&
    records_written == other.records_written &&
    bytes_processed == other.bytes_processed &&
    error_message == other.error_message &&
    expected_duration == other.expected_duration &&
    expected_duration_unit == other.expected_duration_unit &&
    task_key == other.task_key &&
    external_id == other.external_id &&
    retry_attempt == other.retry_attempt &&
    task_schedule == other.task_schedule &&
    metrics == other.metrics &&
    outputs == other.outputs &&
    execution_errors == other.execution_errors &&
    termination_errors == other.termination_errors &&
    auth_mode == other.auth_mode &&
    opc_request_id == other.opc_request_id &&
    object_status == other.object_status &&
    task_type == other.task_type &&
    is_log_processing_in_progress == other.is_log_processing_in_progress &&
    identifier == other.identifier &&
     == other. &&
    key_map == other.key_map
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



593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
# File 'lib/oci/data_integration/models/task_run.rb', line 593

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


573
574
575
# File 'lib/oci/data_integration/models/task_run.rb', line 573

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



582
583
584
# File 'lib/oci/data_integration/models/task_run.rb', line 582

def hash
  [key, model_type, model_version, parent_ref, name, description, object_version, config_provider, status, start_time_millis, end_time_millis, last_updated, records_written, bytes_processed, error_message, expected_duration, expected_duration_unit, task_key, external_id, retry_attempt, task_schedule, metrics, outputs, execution_errors, termination_errors, auth_mode, opc_request_id, object_status, task_type, is_log_processing_in_progress, identifier, , key_map].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



626
627
628
629
630
631
632
633
634
635
# File 'lib/oci/data_integration/models/task_run.rb', line 626

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



620
621
622
# File 'lib/oci/data_integration/models/task_run.rb', line 620

def to_s
  to_hash.to_s
end