Class: OCI::GoldenGate::Models::ZeroEtlPipeline

Inherits:
Pipeline
  • Object
show all
Defined in:
lib/oci/golden_gate/models/zero_etl_pipeline.rb

Overview

The details of a ZeroETL pipeline.

Constant Summary

Constants inherited from Pipeline

Pipeline::LICENSE_MODEL_ENUM, Pipeline::LIFECYCLE_STATE_ENUM, Pipeline::LIFECYCLE_SUB_STATE_ENUM, Pipeline::RECIPE_TYPE_ENUM

Instance Attribute Summary collapse

Attributes inherited from Pipeline

#compartment_id, #cpu_core_count, #defined_tags, #description, #display_name, #freeform_tags, #id, #is_auto_scaling_enabled, #license_model, #lifecycle_details, #lifecycle_state, #lifecycle_sub_state, #locks, #pipeline_diagnostic_data, #recipe_type, #source_connection_details, #system_tags, #target_connection_details, #time_created, #time_updated

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Pipeline

get_subtype

Constructor Details

#initialize(attributes = {}) ⇒ ZeroEtlPipeline

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):



117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# File 'lib/oci/golden_gate/models/zero_etl_pipeline.rb', line 117

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  attributes['recipeType'] = 'ZERO_ETL'

  super(attributes)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  self.mapping_rules = attributes[:'mappingRules'] if attributes[:'mappingRules']

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

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

  self.process_options = attributes[:'processOptions'] if attributes[:'processOptions']

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

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

  self.time_last_recorded = attributes[:'timeLastRecorded'] if attributes[:'timeLastRecorded']

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

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

Instance Attribute Details

#mapping_rulesArray<OCI::GoldenGate::Models::MappingRule>

Mapping for source/target schema/tables for the pipeline data replication.



16
17
18
# File 'lib/oci/golden_gate/models/zero_etl_pipeline.rb', line 16

def mapping_rules
  @mapping_rules
end

#process_optionsOCI::GoldenGate::Models::ProcessOptions



19
20
21
# File 'lib/oci/golden_gate/models/zero_etl_pipeline.rb', line 19

def process_options
  @process_options
end

#time_last_recordedDateTime

When the resource was last updated. This option applies when retrieving a pipeline. The format is defined by RFC3339, such as 2024-07-25T21:10:29.600Z.

Returns:

  • (DateTime)


25
26
27
# File 'lib/oci/golden_gate/models/zero_etl_pipeline.rb', line 25

def time_last_recorded
  @time_last_recorded
end

Class Method Details

.attribute_mapObject

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



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/oci/golden_gate/models/zero_etl_pipeline.rb', line 28

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'recipe_type': :'recipeType',
    'id': :'id',
    'display_name': :'displayName',
    'description': :'description',
    'compartment_id': :'compartmentId',
    'license_model': :'licenseModel',
    'cpu_core_count': :'cpuCoreCount',
    'is_auto_scaling_enabled': :'isAutoScalingEnabled',
    'source_connection_details': :'sourceConnectionDetails',
    'target_connection_details': :'targetConnectionDetails',
    'pipeline_diagnostic_data': :'pipelineDiagnosticData',
    'freeform_tags': :'freeformTags',
    'defined_tags': :'definedTags',
    'system_tags': :'systemTags',
    'locks': :'locks',
    'lifecycle_state': :'lifecycleState',
    'lifecycle_sub_state': :'lifecycleSubState',
    'lifecycle_details': :'lifecycleDetails',
    'time_created': :'timeCreated',
    'time_updated': :'timeUpdated',
    'mapping_rules': :'mappingRules',
    'process_options': :'processOptions',
    'time_last_recorded': :'timeLastRecorded'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# File 'lib/oci/golden_gate/models/zero_etl_pipeline.rb', line 59

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'recipe_type': :'String',
    'id': :'String',
    'display_name': :'String',
    'description': :'String',
    'compartment_id': :'String',
    'license_model': :'String',
    'cpu_core_count': :'Integer',
    'is_auto_scaling_enabled': :'BOOLEAN',
    'source_connection_details': :'OCI::GoldenGate::Models::SourcePipelineConnectionDetails',
    'target_connection_details': :'OCI::GoldenGate::Models::TargetPipelineConnectionDetails',
    'pipeline_diagnostic_data': :'OCI::GoldenGate::Models::PipelineDiagnosticData',
    'freeform_tags': :'Hash<String, String>',
    'defined_tags': :'Hash<String, Hash<String, Object>>',
    'system_tags': :'Hash<String, Hash<String, Object>>',
    'locks': :'Array<OCI::GoldenGate::Models::ResourceLock>',
    'lifecycle_state': :'String',
    'lifecycle_sub_state': :'String',
    'lifecycle_details': :'String',
    'time_created': :'DateTime',
    'time_updated': :'DateTime',
    'mapping_rules': :'Array<OCI::GoldenGate::Models::MappingRule>',
    'process_options': :'OCI::GoldenGate::Models::ProcessOptions',
    'time_last_recorded': :'DateTime'
    # 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



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
179
180
# File 'lib/oci/golden_gate/models/zero_etl_pipeline.rb', line 153

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

  self.class == other.class &&
    recipe_type == other.recipe_type &&
    id == other.id &&
    display_name == other.display_name &&
    description == other.description &&
    compartment_id == other.compartment_id &&
    license_model == other.license_model &&
    cpu_core_count == other.cpu_core_count &&
    is_auto_scaling_enabled == other.is_auto_scaling_enabled &&
    source_connection_details == other.source_connection_details &&
    target_connection_details == other.target_connection_details &&
    pipeline_diagnostic_data == other.pipeline_diagnostic_data &&
    freeform_tags == other.freeform_tags &&
    defined_tags == other.defined_tags &&
    system_tags == other.system_tags &&
    locks == other.locks &&
    lifecycle_state == other.lifecycle_state &&
    lifecycle_sub_state == other.lifecycle_sub_state &&
    lifecycle_details == other.lifecycle_details &&
    time_created == other.time_created &&
    time_updated == other.time_updated &&
    mapping_rules == other.mapping_rules &&
    process_options == other.process_options &&
    time_last_recorded == other.time_last_recorded
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



205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
# File 'lib/oci/golden_gate/models/zero_etl_pipeline.rb', line 205

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


185
186
187
# File 'lib/oci/golden_gate/models/zero_etl_pipeline.rb', line 185

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



194
195
196
# File 'lib/oci/golden_gate/models/zero_etl_pipeline.rb', line 194

def hash
  [recipe_type, id, display_name, description, compartment_id, license_model, cpu_core_count, is_auto_scaling_enabled, source_connection_details, target_connection_details, pipeline_diagnostic_data, freeform_tags, defined_tags, system_tags, locks, lifecycle_state, lifecycle_sub_state, lifecycle_details, time_created, time_updated, mapping_rules, process_options, time_last_recorded].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



238
239
240
241
242
243
244
245
246
247
# File 'lib/oci/golden_gate/models/zero_etl_pipeline.rb', line 238

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



232
233
234
# File 'lib/oci/golden_gate/models/zero_etl_pipeline.rb', line 232

def to_s
  to_hash.to_s
end