Class: OCI::GoldenGate::Models::ZeroEtlPipelineSummary
- Inherits:
-
PipelineSummary
- Object
- PipelineSummary
- OCI::GoldenGate::Models::ZeroEtlPipelineSummary
- Defined in:
- lib/oci/golden_gate/models/zero_etl_pipeline_summary.rb
Overview
Summary of the ZeroETL pipeline.
Constant Summary
Constants inherited from PipelineSummary
PipelineSummary::LICENSE_MODEL_ENUM, PipelineSummary::LIFECYCLE_SUB_STATE_ENUM, PipelineSummary::RECIPE_TYPE_ENUM
Instance Attribute Summary collapse
-
#process_options ⇒ OCI::GoldenGate::Models::ProcessOptions
This attribute is required.
-
#time_last_recorded ⇒ DateTime
When the resource was last updated.
Attributes inherited from PipelineSummary
#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, #recipe_type, #source_connection_details, #system_tags, #target_connection_details, #time_created, #time_updated
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 = {}) ⇒ ZeroEtlPipelineSummary
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.
Methods inherited from PipelineSummary
Constructor Details
#initialize(attributes = {}) ⇒ ZeroEtlPipelineSummary
Initializes the object
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/oci/golden_gate/models/zero_etl_pipeline_summary.rb', line 107 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. = attributes[:'processOptions'] if attributes[:'processOptions'] raise 'You cannot provide both :processOptions and :process_options' if attributes.key?(:'processOptions') && attributes.key?(:'process_options') self. = 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
#process_options ⇒ OCI::GoldenGate::Models::ProcessOptions
This attribute is required.
15 16 17 |
# File 'lib/oci/golden_gate/models/zero_etl_pipeline_summary.rb', line 15 def @process_options end |
#time_last_recorded ⇒ DateTime
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
.
21 22 23 |
# File 'lib/oci/golden_gate/models/zero_etl_pipeline_summary.rb', line 21 def time_last_recorded @time_last_recorded end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/oci/golden_gate/models/zero_etl_pipeline_summary.rb', line 24 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'recipe_type': :'recipeType', 'id': :'id', 'display_name': :'displayName', 'description': :'description', 'compartment_id': :'compartmentId', 'source_connection_details': :'sourceConnectionDetails', 'target_connection_details': :'targetConnectionDetails', 'freeform_tags': :'freeformTags', 'license_model': :'licenseModel', 'cpu_core_count': :'cpuCoreCount', 'is_auto_scaling_enabled': :'isAutoScalingEnabled', 'defined_tags': :'definedTags', 'system_tags': :'systemTags', 'locks': :'locks', 'lifecycle_state': :'lifecycleState', 'lifecycle_sub_state': :'lifecycleSubState', 'lifecycle_details': :'lifecycleDetails', 'time_created': :'timeCreated', 'time_updated': :'timeUpdated', 'process_options': :'processOptions', 'time_last_recorded': :'timeLastRecorded' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/oci/golden_gate/models/zero_etl_pipeline_summary.rb', line 53 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'recipe_type': :'String', 'id': :'String', 'display_name': :'String', 'description': :'String', 'compartment_id': :'String', 'source_connection_details': :'OCI::GoldenGate::Models::SourcePipelineConnectionDetails', 'target_connection_details': :'OCI::GoldenGate::Models::TargetPipelineConnectionDetails', 'freeform_tags': :'Hash<String, String>', 'license_model': :'String', 'cpu_core_count': :'Integer', 'is_auto_scaling_enabled': :'BOOLEAN', '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', '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.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
# File 'lib/oci/golden_gate/models/zero_etl_pipeline_summary.rb', line 137 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 && source_connection_details == other.source_connection_details && target_connection_details == other.target_connection_details && == other. && license_model == other.license_model && cpu_core_count == other.cpu_core_count && is_auto_scaling_enabled == other.is_auto_scaling_enabled && == other. && == other. && 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 && == other. && time_last_recorded == other.time_last_recorded end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 |
# File 'lib/oci/golden_gate/models/zero_etl_pipeline_summary.rb', line 187 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
167 168 169 |
# File 'lib/oci/golden_gate/models/zero_etl_pipeline_summary.rb', line 167 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
176 177 178 |
# File 'lib/oci/golden_gate/models/zero_etl_pipeline_summary.rb', line 176 def hash [recipe_type, id, display_name, description, compartment_id, source_connection_details, target_connection_details, , license_model, cpu_core_count, is_auto_scaling_enabled, , , locks, lifecycle_state, lifecycle_sub_state, lifecycle_details, time_created, time_updated, , time_last_recorded].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
220 221 222 223 224 225 226 227 228 229 |
# File 'lib/oci/golden_gate/models/zero_etl_pipeline_summary.rb', line 220 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
214 215 216 |
# File 'lib/oci/golden_gate/models/zero_etl_pipeline_summary.rb', line 214 def to_s to_hash.to_s end |