Class: OCI::DataIntegration::Models::DecisionOutputPort
- Inherits:
-
TypedObject
- Object
- TypedObject
- OCI::DataIntegration::Models::DecisionOutputPort
- Defined in:
- lib/oci/data_integration/models/decision_output_port.rb
Overview
The conditional output port details, used in operators such as decision operator.
Constant Summary collapse
- PORT_TYPE_ENUM =
[ PORT_TYPE_DATA = 'DATA'.freeze, PORT_TYPE_CONTROL = 'CONTROL'.freeze, PORT_TYPE_MODEL = 'MODEL'.freeze, PORT_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- DECISION_OUTPUT_PORT_TYPE_ENUM =
[ DECISION_OUTPUT_PORT_TYPE_EVAL_ERROR = 'EVAL_ERROR'.freeze, DECISION_OUTPUT_PORT_TYPE_EVAL_TRUE = 'EVAL_TRUE'.freeze, DECISION_OUTPUT_PORT_TYPE_EVAL_FALSE = 'EVAL_FALSE'.freeze, DECISION_OUTPUT_PORT_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Constants inherited from TypedObject
Instance Attribute Summary collapse
-
#decision_output_port_type ⇒ String
[Required] The port based on what decision expression evaluates to.
-
#fields ⇒ Array<OCI::DataIntegration::Models::TypedObject>
An array of fields.
-
#port_type ⇒ String
[Required] The port details for the data asset.Type.
Attributes inherited from TypedObject
#config_values, #description, #key, #model_type, #model_version, #name, #object_status, #parent_ref
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 = {}) ⇒ DecisionOutputPort
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 TypedObject
Constructor Details
#initialize(attributes = {}) ⇒ DecisionOutputPort
Initializes the object
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/oci/data_integration/models/decision_output_port.rb', line 93 def initialize(attributes = {}) return unless attributes.is_a?(Hash) attributes['modelType'] = 'DECISION_OUTPUT_PORT' super(attributes) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.port_type = attributes[:'portType'] if attributes[:'portType'] raise 'You cannot provide both :portType and :port_type' if attributes.key?(:'portType') && attributes.key?(:'port_type') self.port_type = attributes[:'port_type'] if attributes[:'port_type'] self.fields = attributes[:'fields'] if attributes[:'fields'] self.decision_output_port_type = attributes[:'decisionOutputPortType'] if attributes[:'decisionOutputPortType'] raise 'You cannot provide both :decisionOutputPortType and :decision_output_port_type' if attributes.key?(:'decisionOutputPortType') && attributes.key?(:'decision_output_port_type') self.decision_output_port_type = attributes[:'decision_output_port_type'] if attributes[:'decision_output_port_type'] end |
Instance Attribute Details
#decision_output_port_type ⇒ String
[Required] The port based on what decision expression evaluates to.
37 38 39 |
# File 'lib/oci/data_integration/models/decision_output_port.rb', line 37 def decision_output_port_type @decision_output_port_type end |
#fields ⇒ Array<OCI::DataIntegration::Models::TypedObject>
An array of fields.
33 34 35 |
# File 'lib/oci/data_integration/models/decision_output_port.rb', line 33 def fields @fields end |
#port_type ⇒ String
[Required] The port details for the data asset.Type.
29 30 31 |
# File 'lib/oci/data_integration/models/decision_output_port.rb', line 29 def port_type @port_type end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/oci/data_integration/models/decision_output_port.rb', line 40 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'model_type': :'modelType', 'key': :'key', 'model_version': :'modelVersion', 'parent_ref': :'parentRef', 'config_values': :'configValues', 'object_status': :'objectStatus', 'name': :'name', 'description': :'description', 'port_type': :'portType', 'fields': :'fields', 'decision_output_port_type': :'decisionOutputPortType' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/oci/data_integration/models/decision_output_port.rb', line 59 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'model_type': :'String', 'key': :'String', 'model_version': :'String', 'parent_ref': :'OCI::DataIntegration::Models::ParentReference', 'config_values': :'OCI::DataIntegration::Models::ConfigValues', 'object_status': :'Integer', 'name': :'String', 'description': :'String', 'port_type': :'String', 'fields': :'Array<OCI::DataIntegration::Models::TypedObject>', 'decision_output_port_type': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
# File 'lib/oci/data_integration/models/decision_output_port.rb', line 151 def ==(other) return true if equal?(other) self.class == other.class && model_type == other.model_type && key == other.key && model_version == other.model_version && parent_ref == other.parent_ref && config_values == other.config_values && object_status == other.object_status && name == other.name && description == other.description && port_type == other.port_type && fields == other.fields && decision_output_port_type == other.decision_output_port_type end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 |
# File 'lib/oci/data_integration/models/decision_output_port.rb', line 191 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
171 172 173 |
# File 'lib/oci/data_integration/models/decision_output_port.rb', line 171 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
180 181 182 |
# File 'lib/oci/data_integration/models/decision_output_port.rb', line 180 def hash [model_type, key, model_version, parent_ref, config_values, object_status, name, description, port_type, fields, decision_output_port_type].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
224 225 226 227 228 229 230 231 232 233 |
# File 'lib/oci/data_integration/models/decision_output_port.rb', line 224 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
218 219 220 |
# File 'lib/oci/data_integration/models/decision_output_port.rb', line 218 def to_s to_hash.to_s end |