Class: OCI::DataSafe::Models::UpdateSensitiveColumnDetails
- Inherits:
-
Object
- Object
- OCI::DataSafe::Models::UpdateSensitiveColumnDetails
- Defined in:
- lib/oci/data_safe/models/update_sensitive_column_details.rb
Overview
Details to update a sensitive column in a sensitive data model.
Constant Summary collapse
- STATUS_ENUM =
[ STATUS_VALID = 'VALID'.freeze, STATUS_INVALID = 'INVALID'.freeze ].freeze
- RELATION_TYPE_ENUM =
[ RELATION_TYPE_NONE = 'NONE'.freeze, RELATION_TYPE_APP_DEFINED = 'APP_DEFINED'.freeze, RELATION_TYPE_DB_DEFINED = 'DB_DEFINED'.freeze ].freeze
Instance Attribute Summary collapse
-
#app_defined_child_column_keys ⇒ Array<String>
Unique keys identifying the columns that are application-level (non-dictionary) children of the sensitive column.
-
#data_type ⇒ String
The data type of the sensitive column.
-
#db_defined_child_column_keys ⇒ Array<String>
Unique keys identifying the columns that are database-level (dictionary-defined) children of the sensitive column.
-
#parent_column_keys ⇒ Array<String>
Unique keys identifying the columns that are parents of the sensitive column.
-
#relation_type ⇒ String
The type of referential relationship the sensitive column has with its parent.
-
#sensitive_type_id ⇒ String
The OCID of the sensitive type to be associated with the sensitive column.
-
#status ⇒ String
The status of the sensitive column.
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 = {}) ⇒ UpdateSensitiveColumnDetails
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 = {}) ⇒ UpdateSensitiveColumnDetails
Initializes the object
112 113 114 115 116 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 145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/oci/data_safe/models/update_sensitive_column_details.rb', line 112 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.data_type = attributes[:'dataType'] if attributes[:'dataType'] raise 'You cannot provide both :dataType and :data_type' if attributes.key?(:'dataType') && attributes.key?(:'data_type') self.data_type = attributes[:'data_type'] if attributes[:'data_type'] self.status = attributes[:'status'] if attributes[:'status'] self.sensitive_type_id = attributes[:'sensitiveTypeId'] if attributes[:'sensitiveTypeId'] raise 'You cannot provide both :sensitiveTypeId and :sensitive_type_id' if attributes.key?(:'sensitiveTypeId') && attributes.key?(:'sensitive_type_id') self.sensitive_type_id = attributes[:'sensitive_type_id'] if attributes[:'sensitive_type_id'] self.parent_column_keys = attributes[:'parentColumnKeys'] if attributes[:'parentColumnKeys'] raise 'You cannot provide both :parentColumnKeys and :parent_column_keys' if attributes.key?(:'parentColumnKeys') && attributes.key?(:'parent_column_keys') self.parent_column_keys = attributes[:'parent_column_keys'] if attributes[:'parent_column_keys'] self.relation_type = attributes[:'relationType'] if attributes[:'relationType'] raise 'You cannot provide both :relationType and :relation_type' if attributes.key?(:'relationType') && attributes.key?(:'relation_type') self.relation_type = attributes[:'relation_type'] if attributes[:'relation_type'] self.app_defined_child_column_keys = attributes[:'appDefinedChildColumnKeys'] if attributes[:'appDefinedChildColumnKeys'] raise 'You cannot provide both :appDefinedChildColumnKeys and :app_defined_child_column_keys' if attributes.key?(:'appDefinedChildColumnKeys') && attributes.key?(:'app_defined_child_column_keys') self.app_defined_child_column_keys = attributes[:'app_defined_child_column_keys'] if attributes[:'app_defined_child_column_keys'] self.db_defined_child_column_keys = attributes[:'dbDefinedChildColumnKeys'] if attributes[:'dbDefinedChildColumnKeys'] raise 'You cannot provide both :dbDefinedChildColumnKeys and :db_defined_child_column_keys' if attributes.key?(:'dbDefinedChildColumnKeys') && attributes.key?(:'db_defined_child_column_keys') self.db_defined_child_column_keys = attributes[:'db_defined_child_column_keys'] if attributes[:'db_defined_child_column_keys'] end |
Instance Attribute Details
#app_defined_child_column_keys ⇒ Array<String>
Unique keys identifying the columns that are application-level (non-dictionary) children of the sensitive column. This attribute can be used to establish relationship between columns in a sensitive data model. Note that the child columns must be added to the sensitive data model before their keys can be specified here. If this attribute is provided, the parentColumnKeys and relationType attributes of the child columns are automatically updated to reflect the relationship.
59 60 61 |
# File 'lib/oci/data_safe/models/update_sensitive_column_details.rb', line 59 def app_defined_child_column_keys @app_defined_child_column_keys end |
#data_type ⇒ String
The data type of the sensitive column.
24 25 26 |
# File 'lib/oci/data_safe/models/update_sensitive_column_details.rb', line 24 def data_type @data_type end |
#db_defined_child_column_keys ⇒ Array<String>
Unique keys identifying the columns that are database-level (dictionary-defined) children of the sensitive column. This attribute can be used to establish relationship between columns in a sensitive data model. Note that the child columns must be added to the sensitive data model before their keys can be specified here. If this attribute is provided, the parentColumnKeys and relationType attributes of the child columns are automatically updated to reflect the relationship.
67 68 69 |
# File 'lib/oci/data_safe/models/update_sensitive_column_details.rb', line 67 def db_defined_child_column_keys @db_defined_child_column_keys end |
#parent_column_keys ⇒ Array<String>
Unique keys identifying the columns that are parents of the sensitive column. At present, it accepts only one parent column key. This attribute can be used to establish relationship between columns in a sensitive data model. Note that the parent column must be added to the sensitive data model before its key can be specified here. If this attribute is provided, the appDefinedChildColumnKeys or dbDefinedChildColumnKeys attribute of the parent column is automatically updated to reflect the relationship.
44 45 46 |
# File 'lib/oci/data_safe/models/update_sensitive_column_details.rb', line 44 def parent_column_keys @parent_column_keys end |
#relation_type ⇒ String
The type of referential relationship the sensitive column has with its parent. NONE indicates that the sensitive column does not have a parent. DB_DEFINED indicates that the relationship is defined in the database dictionary. APP_DEFINED indicates that the relationship is defined at the application level and not in the database dictionary.
51 52 53 |
# File 'lib/oci/data_safe/models/update_sensitive_column_details.rb', line 51 def relation_type @relation_type end |
#sensitive_type_id ⇒ String
The OCID of the sensitive type to be associated with the sensitive column.
35 36 37 |
# File 'lib/oci/data_safe/models/update_sensitive_column_details.rb', line 35 def sensitive_type_id @sensitive_type_id end |
#status ⇒ String
The status of the sensitive column. VALID means the column is considered sensitive. INVALID means the column is not considered sensitive. Tracking invalid columns in a sensitive data model helps ensure that an incremental data discovery job does not identify these columns as sensitive.
31 32 33 |
# File 'lib/oci/data_safe/models/update_sensitive_column_details.rb', line 31 def status @status end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/oci/data_safe/models/update_sensitive_column_details.rb', line 70 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'data_type': :'dataType', 'status': :'status', 'sensitive_type_id': :'sensitiveTypeId', 'parent_column_keys': :'parentColumnKeys', 'relation_type': :'relationType', 'app_defined_child_column_keys': :'appDefinedChildColumnKeys', 'db_defined_child_column_keys': :'dbDefinedChildColumnKeys' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/oci/data_safe/models/update_sensitive_column_details.rb', line 85 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'data_type': :'String', 'status': :'String', 'sensitive_type_id': :'String', 'parent_column_keys': :'Array<String>', 'relation_type': :'String', 'app_defined_child_column_keys': :'Array<String>', 'db_defined_child_column_keys': :'Array<String>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
180 181 182 183 184 185 186 187 188 189 190 191 |
# File 'lib/oci/data_safe/models/update_sensitive_column_details.rb', line 180 def ==(other) return true if equal?(other) self.class == other.class && data_type == other.data_type && status == other.status && sensitive_type_id == other.sensitive_type_id && parent_column_keys == other.parent_column_keys && relation_type == other.relation_type && app_defined_child_column_keys == other.app_defined_child_column_keys && db_defined_child_column_keys == other.db_defined_child_column_keys end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 |
# File 'lib/oci/data_safe/models/update_sensitive_column_details.rb', line 216 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
196 197 198 |
# File 'lib/oci/data_safe/models/update_sensitive_column_details.rb', line 196 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
205 206 207 |
# File 'lib/oci/data_safe/models/update_sensitive_column_details.rb', line 205 def hash [data_type, status, sensitive_type_id, parent_column_keys, relation_type, app_defined_child_column_keys, db_defined_child_column_keys].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
249 250 251 252 253 254 255 256 257 258 |
# File 'lib/oci/data_safe/models/update_sensitive_column_details.rb', line 249 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
243 244 245 |
# File 'lib/oci/data_safe/models/update_sensitive_column_details.rb', line 243 def to_s to_hash.to_s end |