Class: OCI::DataIntegration::Models::TaskRunDetails

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

Overview

The task run object provides information on the execution of a task.

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
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
RE_RUN_TYPE_ENUM =
[
  RE_RUN_TYPE_BEGINNING = 'BEGINNING'.freeze,
  RE_RUN_TYPE_FAILED = 'FAILED'.freeze,
  RE_RUN_TYPE_STEP = 'STEP'.freeze,
  RE_RUN_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 = {}) ⇒ TaskRunDetails

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):



207
208
209
210
211
212
213
214
215
216
217
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
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
# File 'lib/oci/data_integration/models/task_run_details.rb', line 207

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

  self.ref_task_run_id = attributes[:'refTaskRunId'] if attributes[:'refTaskRunId']

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

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

  self.re_run_type = attributes[:'reRunType'] if attributes[:'reRunType']

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

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

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

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

Instance Attribute Details

#bytes_processedInteger

Number of bytes processed in task run.

Returns:

  • (Integer)


89
90
91
# File 'lib/oci/data_integration/models/task_run_details.rb', line 89

def bytes_processed
  @bytes_processed
end

#descriptionString

Detailed description for the object.

Returns:

  • (String)


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

def description
  @description
end

#end_time_millisInteger

The task run end time.

Returns:

  • (Integer)


77
78
79
# File 'lib/oci/data_integration/models/task_run_details.rb', line 77

def end_time_millis
  @end_time_millis
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)


101
102
103
# File 'lib/oci/data_integration/models/task_run_details.rb', line 101

def identifier
  @identifier
end

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

A map of the configuration provider input bindings of the run.



117
118
119
# File 'lib/oci/data_integration/models/task_run_details.rb', line 117

def inputs
  @inputs
end

#keyString

The object key.

Returns:

  • (String)


42
43
44
# File 'lib/oci/data_integration/models/task_run_details.rb', line 42

def key
  @key
end

#last_updatedInteger

The date and time the task run was last updated.

Returns:

  • (Integer)


81
82
83
# File 'lib/oci/data_integration/models/task_run_details.rb', line 81

def last_updated
  @last_updated
end

#metadataOCI::DataIntegration::Models::ObjectMetadata



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

def 
  @metadata
end

#model_typeString

The object type.

Returns:

  • (String)


46
47
48
# File 'lib/oci/data_integration/models/task_run_details.rb', line 46

def model_type
  @model_type
end

#model_versionString

The object's model version.

Returns:

  • (String)


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

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)


57
58
59
# File 'lib/oci/data_integration/models/task_run_details.rb', line 57

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)


93
94
95
# File 'lib/oci/data_integration/models/task_run_details.rb', line 93

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)


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

def object_version
  @object_version
end

#parent_refOCI::DataIntegration::Models::ParentReference



53
54
55
# File 'lib/oci/data_integration/models/task_run_details.rb', line 53

def parent_ref
  @parent_ref
end

#re_run_typeString

Supported re-run types

Returns:

  • (String)


109
110
111
# File 'lib/oci/data_integration/models/task_run_details.rb', line 109

def re_run_type
  @re_run_type
end

#records_writtenInteger

Number of records processed in task run.

Returns:

  • (Integer)


85
86
87
# File 'lib/oci/data_integration/models/task_run_details.rb', line 85

def records_written
  @records_written
end

#ref_task_run_idString

Reference Task Run Id to be used for re-run

Returns:

  • (String)


105
106
107
# File 'lib/oci/data_integration/models/task_run_details.rb', line 105

def ref_task_run_id
  @ref_task_run_id
end

#start_time_millisInteger

The task run start time.

Returns:

  • (Integer)


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

def start_time_millis
  @start_time_millis
end

#statusString

status

Returns:

  • (String)


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

def status
  @status
end

#step_idString

Step Id for running from a certain step.

Returns:

  • (String)


113
114
115
# File 'lib/oci/data_integration/models/task_run_details.rb', line 113

def step_id
  @step_id
end

#task_typeString

The type of the task for the run.

Returns:

  • (String)


97
98
99
# File 'lib/oci/data_integration/models/task_run_details.rb', line 97

def task_type
  @task_type
end

Class Method Details

.attribute_mapObject

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



123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# File 'lib/oci/data_integration/models/task_run_details.rb', line 123

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',
    'status': :'status',
    'start_time_millis': :'startTimeMillis',
    'end_time_millis': :'endTimeMillis',
    'last_updated': :'lastUpdated',
    'records_written': :'recordsWritten',
    'bytes_processed': :'bytesProcessed',
    'object_status': :'objectStatus',
    'task_type': :'taskType',
    'identifier': :'identifier',
    'ref_task_run_id': :'refTaskRunId',
    're_run_type': :'reRunType',
    'step_id': :'stepId',
    'inputs': :'inputs',
    'metadata': :'metadata'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'lib/oci/data_integration/models/task_run_details.rb', line 152

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',
    'status': :'String',
    'start_time_millis': :'Integer',
    'end_time_millis': :'Integer',
    'last_updated': :'Integer',
    'records_written': :'Integer',
    'bytes_processed': :'Integer',
    'object_status': :'Integer',
    'task_type': :'String',
    'identifier': :'String',
    'ref_task_run_id': :'String',
    're_run_type': :'String',
    'step_id': :'String',
    'inputs': :'Hash<String, OCI::DataIntegration::Models::ParameterValue>',
    'metadata': :'OCI::DataIntegration::Models::ObjectMetadata'
    # 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



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

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 &&
    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 &&
    object_status == other.object_status &&
    task_type == other.task_type &&
    identifier == other.identifier &&
    ref_task_run_id == other.ref_task_run_id &&
    re_run_type == other.re_run_type &&
    step_id == other.step_id &&
    inputs == other.inputs &&
     == other.
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



408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
# File 'lib/oci/data_integration/models/task_run_details.rb', line 408

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


388
389
390
# File 'lib/oci/data_integration/models/task_run_details.rb', line 388

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



397
398
399
# File 'lib/oci/data_integration/models/task_run_details.rb', line 397

def hash
  [key, model_type, model_version, parent_ref, name, description, object_version, status, start_time_millis, end_time_millis, last_updated, records_written, bytes_processed, object_status, task_type, identifier, ref_task_run_id, re_run_type, step_id, inputs, ].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



441
442
443
444
445
446
447
448
449
450
# File 'lib/oci/data_integration/models/task_run_details.rb', line 441

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



435
436
437
# File 'lib/oci/data_integration/models/task_run_details.rb', line 435

def to_s
  to_hash.to_s
end