Class: OCI::DataIntegration::Models::BipCallAttribute

Inherits:
AbstractCallAttribute show all
Defined in:
lib/oci/data_integration/models/bip_call_attribute.rb

Overview

Properties to configure reading from a FUSION_APP BIP data asset / connection.

Constant Summary

Constants inherited from AbstractCallAttribute

AbstractCallAttribute::MODEL_TYPE_ENUM

Instance Attribute Summary collapse

Attributes inherited from AbstractCallAttribute

#fetch_size, #model_type

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AbstractCallAttribute

get_subtype

Constructor Details

#initialize(attributes = {}) ⇒ BipCallAttribute

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):



72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/oci/data_integration/models/bip_call_attribute.rb', line 72

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

  attributes['modelType'] = 'BIP_CALL_ATTRIBUTE'

  super(attributes)

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

  self.offset_parameter = attributes[:'offsetParameter'] if attributes[:'offsetParameter']

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

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

  self.fetch_next_rows_parameter = attributes[:'fetchNextRowsParameter'] if attributes[:'fetchNextRowsParameter']

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

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

  self.staging_data_asset = attributes[:'stagingDataAsset'] if attributes[:'stagingDataAsset']

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

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

  self.staging_connection = attributes[:'stagingConnection'] if attributes[:'stagingConnection']

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

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

  self.bucket_schema = attributes[:'bucketSchema'] if attributes[:'bucketSchema']

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

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

Instance Attribute Details

#bucket_schemaOCI::DataIntegration::Models::Schema



28
29
30
# File 'lib/oci/data_integration/models/bip_call_attribute.rb', line 28

def bucket_schema
  @bucket_schema
end

#fetch_next_rows_parameterString

Name of BIP report parameter to control the fetch next rows of the chunk.

Returns:

  • (String)


19
20
21
# File 'lib/oci/data_integration/models/bip_call_attribute.rb', line 19

def fetch_next_rows_parameter
  @fetch_next_rows_parameter
end

#offset_parameterString

Name of BIP report parameter to control the offset of the chunk.

Returns:

  • (String)


15
16
17
# File 'lib/oci/data_integration/models/bip_call_attribute.rb', line 15

def offset_parameter
  @offset_parameter
end

#staging_connectionOCI::DataIntegration::Models::ConnectionSummaryFromObjectStorage



25
26
27
# File 'lib/oci/data_integration/models/bip_call_attribute.rb', line 25

def staging_connection
  @staging_connection
end

#staging_data_assetOCI::DataIntegration::Models::DataAssetSummaryFromObjectStorage



22
23
24
# File 'lib/oci/data_integration/models/bip_call_attribute.rb', line 22

def staging_data_asset
  @staging_data_asset
end

Class Method Details

.attribute_mapObject

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



31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/oci/data_integration/models/bip_call_attribute.rb', line 31

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'model_type': :'modelType',
    'fetch_size': :'fetchSize',
    'offset_parameter': :'offsetParameter',
    'fetch_next_rows_parameter': :'fetchNextRowsParameter',
    'staging_data_asset': :'stagingDataAsset',
    'staging_connection': :'stagingConnection',
    'bucket_schema': :'bucketSchema'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/oci/data_integration/models/bip_call_attribute.rb', line 46

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'model_type': :'String',
    'fetch_size': :'Integer',
    'offset_parameter': :'String',
    'fetch_next_rows_parameter': :'String',
    'staging_data_asset': :'OCI::DataIntegration::Models::DataAssetSummaryFromObjectStorage',
    'staging_connection': :'OCI::DataIntegration::Models::ConnectionSummaryFromObjectStorage',
    'bucket_schema': :'OCI::DataIntegration::Models::Schema'
    # 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



120
121
122
123
124
125
126
127
128
129
130
131
# File 'lib/oci/data_integration/models/bip_call_attribute.rb', line 120

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

  self.class == other.class &&
    model_type == other.model_type &&
    fetch_size == other.fetch_size &&
    offset_parameter == other.offset_parameter &&
    fetch_next_rows_parameter == other.fetch_next_rows_parameter &&
    staging_data_asset == other.staging_data_asset &&
    staging_connection == other.staging_connection &&
    bucket_schema == other.bucket_schema
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



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/bip_call_attribute.rb', line 156

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


136
137
138
# File 'lib/oci/data_integration/models/bip_call_attribute.rb', line 136

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



145
146
147
# File 'lib/oci/data_integration/models/bip_call_attribute.rb', line 145

def hash
  [model_type, fetch_size, offset_parameter, fetch_next_rows_parameter, staging_data_asset, staging_connection, bucket_schema].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



189
190
191
192
193
194
195
196
197
198
# File 'lib/oci/data_integration/models/bip_call_attribute.rb', line 189

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



183
184
185
# File 'lib/oci/data_integration/models/bip_call_attribute.rb', line 183

def to_s
  to_hash.to_s
end