Class: OCI::DataSafe::Models::SensitiveColumnAnalyticsDimensions
- Inherits:
-
Object
- Object
- OCI::DataSafe::Models::SensitiveColumnAnalyticsDimensions
- Defined in:
- lib/oci/data_safe/models/sensitive_column_analytics_dimensions.rb
Overview
The dimensions available for sensitive column analytics.
Instance Attribute Summary collapse
-
#column_name ⇒ String
The name of the sensitive column.
-
#object_name ⇒ String
The database object that contains the sensitive column.
-
#schema_name ⇒ String
The database schema that contains the sensitive column.
-
#sensitive_data_model_id ⇒ String
The OCID of the sensitive data model which contains the sensitive column.
-
#sensitive_type_id ⇒ String
The OCID of the sensitive type associated with the sensitive column.
-
#target_id ⇒ String
The OCID of the target database associated with 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 = {}) ⇒ SensitiveColumnAnalyticsDimensions
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 = {}) ⇒ SensitiveColumnAnalyticsDimensions
Initializes the object
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 112 113 114 115 116 |
# File 'lib/oci/data_safe/models/sensitive_column_analytics_dimensions.rb', line 75 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.target_id = attributes[:'targetId'] if attributes[:'targetId'] raise 'You cannot provide both :targetId and :target_id' if attributes.key?(:'targetId') && attributes.key?(:'target_id') self.target_id = attributes[:'target_id'] if attributes[:'target_id'] 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_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.column_name = attributes[:'columnName'] if attributes[:'columnName'] raise 'You cannot provide both :columnName and :column_name' if attributes.key?(:'columnName') && attributes.key?(:'column_name') self.column_name = attributes[:'column_name'] if attributes[:'column_name'] 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.sensitive_data_model_id = attributes[:'sensitiveDataModelId'] if attributes[:'sensitiveDataModelId'] raise 'You cannot provide both :sensitiveDataModelId and :sensitive_data_model_id' if attributes.key?(:'sensitiveDataModelId') && attributes.key?(:'sensitive_data_model_id') self.sensitive_data_model_id = attributes[:'sensitive_data_model_id'] if attributes[:'sensitive_data_model_id'] end |
Instance Attribute Details
#column_name ⇒ String
The name of the sensitive column.
25 26 27 |
# File 'lib/oci/data_safe/models/sensitive_column_analytics_dimensions.rb', line 25 def column_name @column_name end |
#object_name ⇒ String
The database object that contains the sensitive column.
21 22 23 |
# File 'lib/oci/data_safe/models/sensitive_column_analytics_dimensions.rb', line 21 def object_name @object_name end |
#schema_name ⇒ String
The database schema that contains the sensitive column.
17 18 19 |
# File 'lib/oci/data_safe/models/sensitive_column_analytics_dimensions.rb', line 17 def schema_name @schema_name end |
#sensitive_data_model_id ⇒ String
The OCID of the sensitive data model which contains the sensitive column.
33 34 35 |
# File 'lib/oci/data_safe/models/sensitive_column_analytics_dimensions.rb', line 33 def sensitive_data_model_id @sensitive_data_model_id end |
#sensitive_type_id ⇒ String
The OCID of the sensitive type associated with the sensitive column.
29 30 31 |
# File 'lib/oci/data_safe/models/sensitive_column_analytics_dimensions.rb', line 29 def sensitive_type_id @sensitive_type_id end |
#target_id ⇒ String
The OCID of the target database associated with the sensitive column.
13 14 15 |
# File 'lib/oci/data_safe/models/sensitive_column_analytics_dimensions.rb', line 13 def target_id @target_id end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/oci/data_safe/models/sensitive_column_analytics_dimensions.rb', line 36 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'target_id': :'targetId', 'schema_name': :'schemaName', 'object_name': :'objectName', 'column_name': :'columnName', 'sensitive_type_id': :'sensitiveTypeId', 'sensitive_data_model_id': :'sensitiveDataModelId' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/oci/data_safe/models/sensitive_column_analytics_dimensions.rb', line 50 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'target_id': :'String', 'schema_name': :'String', 'object_name': :'String', 'column_name': :'String', 'sensitive_type_id': :'String', 'sensitive_data_model_id': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
125 126 127 128 129 130 131 132 133 134 135 |
# File 'lib/oci/data_safe/models/sensitive_column_analytics_dimensions.rb', line 125 def ==(other) return true if equal?(other) self.class == other.class && target_id == other.target_id && schema_name == other.schema_name && object_name == other.object_name && column_name == other.column_name && sensitive_type_id == other.sensitive_type_id && sensitive_data_model_id == other.sensitive_data_model_id end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 |
# File 'lib/oci/data_safe/models/sensitive_column_analytics_dimensions.rb', line 160 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
140 141 142 |
# File 'lib/oci/data_safe/models/sensitive_column_analytics_dimensions.rb', line 140 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
149 150 151 |
# File 'lib/oci/data_safe/models/sensitive_column_analytics_dimensions.rb', line 149 def hash [target_id, schema_name, object_name, column_name, sensitive_type_id, sensitive_data_model_id].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
193 194 195 196 197 198 199 200 201 202 |
# File 'lib/oci/data_safe/models/sensitive_column_analytics_dimensions.rb', line 193 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
187 188 189 |
# File 'lib/oci/data_safe/models/sensitive_column_analytics_dimensions.rb', line 187 def to_s to_hash.to_s end |