Class: OCI::DataSafe::Models::ColumnsInfo
- Inherits:
-
Object
- Object
- OCI::DataSafe::Models::ColumnsInfo
- Defined in:
- lib/oci/data_safe/models/columns_info.rb
Overview
columnsInfo object has details of column group with schema details.
Constant Summary collapse
- OBJECT_TYPE_ENUM =
[ OBJECT_TYPE_TABLE = 'TABLE'.freeze, OBJECT_TYPE_EDITIONING_VIEW = 'EDITIONING_VIEW'.freeze, OBJECT_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#app_name ⇒ String
[Required] The application name.
-
#column_group ⇒ Array<String>
[Required] Group of columns in referential relation.
-
#object_name ⇒ String
[Required] The database object that contains the columns.
-
#object_type ⇒ String
[Required] The type of the database object that contains the sensitive column.
-
#schema_name ⇒ String
[Required] The schema name.
-
#sensitive_type_ids ⇒ Array<String>
Sensitive type ocids of each column groups.
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 = {}) ⇒ ColumnsInfo
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.
Constructor Details
#initialize(attributes = {}) ⇒ ColumnsInfo
Initializes the object
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 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
# File 'lib/oci/data_safe/models/columns_info.rb', line 86 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.schema_name = attributes[:'schemaName'] if attributes[:'schemaName'] raise 'You cannot provide both :schemaName and :schema_name' if attributes.key?(:'schemaName') && attributes.key?(:'schema_name') self.schema_name = attributes[:'schema_name'] if attributes[:'schema_name'] self.object_type = attributes[:'objectType'] if attributes[:'objectType'] raise 'You cannot provide both :objectType and :object_type' if attributes.key?(:'objectType') && attributes.key?(:'object_type') self.object_type = attributes[:'object_type'] if attributes[:'object_type'] self.object_name = attributes[:'objectName'] if attributes[:'objectName'] raise 'You cannot provide both :objectName and :object_name' if attributes.key?(:'objectName') && attributes.key?(:'object_name') self.object_name = attributes[:'object_name'] if attributes[:'object_name'] self.app_name = attributes[:'appName'] if attributes[:'appName'] raise 'You cannot provide both :appName and :app_name' if attributes.key?(:'appName') && attributes.key?(:'app_name') self.app_name = attributes[:'app_name'] if attributes[:'app_name'] self.column_group = attributes[:'columnGroup'] if attributes[:'columnGroup'] raise 'You cannot provide both :columnGroup and :column_group' if attributes.key?(:'columnGroup') && attributes.key?(:'column_group') self.column_group = attributes[:'column_group'] if attributes[:'column_group'] self.sensitive_type_ids = attributes[:'sensitiveTypeIds'] if attributes[:'sensitiveTypeIds'] raise 'You cannot provide both :sensitiveTypeIds and :sensitive_type_ids' if attributes.key?(:'sensitiveTypeIds') && attributes.key?(:'sensitive_type_ids') self.sensitive_type_ids = attributes[:'sensitive_type_ids'] if attributes[:'sensitive_type_ids'] end |
Instance Attribute Details
#app_name ⇒ String
[Required] The application name.
32 33 34 |
# File 'lib/oci/data_safe/models/columns_info.rb', line 32 def app_name @app_name end |
#column_group ⇒ Array<String>
[Required] Group of columns in referential relation. Order needs to be maintained in the elements of the parent/child array listing.
37 38 39 |
# File 'lib/oci/data_safe/models/columns_info.rb', line 37 def column_group @column_group end |
#object_name ⇒ String
[Required] The database object that contains the columns.
28 29 30 |
# File 'lib/oci/data_safe/models/columns_info.rb', line 28 def object_name @object_name end |
#object_type ⇒ String
[Required] The type of the database object that contains the sensitive column.
24 25 26 |
# File 'lib/oci/data_safe/models/columns_info.rb', line 24 def object_type @object_type end |
#schema_name ⇒ String
[Required] The schema name.
20 21 22 |
# File 'lib/oci/data_safe/models/columns_info.rb', line 20 def schema_name @schema_name end |
#sensitive_type_ids ⇒ Array<String>
Sensitive type ocids of each column groups. Order needs to be maintained with the parent column group. For the DB defined referential relations identified during SDM creation, we cannot add sensitive types. Instead use the sensitiveColumn POST API to mark the columns sensitive.
44 45 46 |
# File 'lib/oci/data_safe/models/columns_info.rb', line 44 def sensitive_type_ids @sensitive_type_ids end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/oci/data_safe/models/columns_info.rb', line 47 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'schema_name': :'schemaName', 'object_type': :'objectType', 'object_name': :'objectName', 'app_name': :'appName', 'column_group': :'columnGroup', 'sensitive_type_ids': :'sensitiveTypeIds' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/oci/data_safe/models/columns_info.rb', line 61 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'schema_name': :'String', 'object_type': :'String', 'object_name': :'String', 'app_name': :'String', 'column_group': :'Array<String>', 'sensitive_type_ids': :'Array<String>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
149 150 151 152 153 154 155 156 157 158 159 |
# File 'lib/oci/data_safe/models/columns_info.rb', line 149 def ==(other) return true if equal?(other) self.class == other.class && schema_name == other.schema_name && object_type == other.object_type && object_name == other.object_name && app_name == other.app_name && column_group == other.column_group && sensitive_type_ids == other.sensitive_type_ids end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 |
# File 'lib/oci/data_safe/models/columns_info.rb', line 184 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
164 165 166 |
# File 'lib/oci/data_safe/models/columns_info.rb', line 164 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
173 174 175 |
# File 'lib/oci/data_safe/models/columns_info.rb', line 173 def hash [schema_name, object_type, object_name, app_name, column_group, sensitive_type_ids].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
217 218 219 220 221 222 223 224 225 226 |
# File 'lib/oci/data_safe/models/columns_info.rb', line 217 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
211 212 213 |
# File 'lib/oci/data_safe/models/columns_info.rb', line 211 def to_s to_hash.to_s end |