Class: OCI::DataSafe::Models::MaskingPolicyHealthReportLogSummary
- Inherits:
-
Object
- Object
- OCI::DataSafe::Models::MaskingPolicyHealthReportLogSummary
- Defined in:
- lib/oci/data_safe/models/masking_policy_health_report_log_summary.rb
Overview
A log entry related to the pre-masking health check.
Constant Summary collapse
- MESSAGE_TYPE_ENUM =
[ MESSAGE_TYPE_PASS = 'PASS'.freeze, MESSAGE_TYPE_WARNING = 'WARNING'.freeze, MESSAGE_TYPE_ERROR = 'ERROR'.freeze, MESSAGE_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- HEALTH_CHECK_TYPE_ENUM =
[ HEALTH_CHECK_TYPE_INVALID_OBJECT_CHECK = 'INVALID_OBJECT_CHECK'.freeze, HEALTH_CHECK_TYPE_PRIVILEGE_CHECK = 'PRIVILEGE_CHECK'.freeze, HEALTH_CHECK_TYPE_TABLESPACE_CHECK = 'TABLESPACE_CHECK'.freeze, HEALTH_CHECK_TYPE_DATABASE_OR_SYSTEM_TRIGGERS_CHECK = 'DATABASE_OR_SYSTEM_TRIGGERS_CHECK'.freeze, HEALTH_CHECK_TYPE_UNDO_TABLESPACE_CHECK = 'UNDO_TABLESPACE_CHECK'.freeze, HEALTH_CHECK_TYPE_STATE_STATS_CHECK = 'STATE_STATS_CHECK'.freeze, HEALTH_CHECK_TYPE_OLS_POLICY_CHECK = 'OLS_POLICY_CHECK'.freeze, HEALTH_CHECK_TYPE_VPD_POLICY_CHECK = 'VPD_POLICY_CHECK'.freeze, HEALTH_CHECK_TYPE_DV_ENABLE_CHECK = 'DV_ENABLE_CHECK'.freeze, HEALTH_CHECK_TYPE_DE_COL_SIZE_CHECK = 'DE_COL_SIZE_CHECK'.freeze, HEALTH_CHECK_TYPE_REDACTION_POLICY_CHECK = 'REDACTION_POLICY_CHECK'.freeze, HEALTH_CHECK_TYPE_ACTIVE_MASK_JOB_CHECK = 'ACTIVE_MASK_JOB_CHECK'.freeze, HEALTH_CHECK_TYPE_TARGET_VALIDATION_CHECK = 'TARGET_VALIDATION_CHECK'.freeze, HEALTH_CHECK_TYPE_DETERMINISTIC_ENCRYPTION_FORMAT_CHECK = 'DETERMINISTIC_ENCRYPTION_FORMAT_CHECK'.freeze, HEALTH_CHECK_TYPE_COLUMN_EXIST_CHECK = 'COLUMN_EXIST_CHECK'.freeze, HEALTH_CHECK_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#description ⇒ String
[Required] A human-readable description for the log entry.
-
#health_check_type ⇒ String
An enum type entry for each health check in the masking policy.
-
#message ⇒ String
[Required] A human-readable log entry.
-
#message_type ⇒ String
[Required] The log entry type.
-
#remediation ⇒ String
A human-readable log entry to remedy any error or warnings in the masking policy.
-
#timestamp ⇒ DateTime
[Required] The date and time the log entry was created, in the format defined by RFC3339.
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 = {}) ⇒ MaskingPolicyHealthReportLogSummary
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 = {}) ⇒ MaskingPolicyHealthReportLogSummary
Initializes the object
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 |
# File 'lib/oci/data_safe/models/masking_policy_health_report_log_summary.rb', line 116 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. = attributes[:'messageType'] if attributes[:'messageType'] raise 'You cannot provide both :messageType and :message_type' if attributes.key?(:'messageType') && attributes.key?(:'message_type') self. = attributes[:'message_type'] if attributes[:'message_type'] self. = attributes[:'timestamp'] if attributes[:'timestamp'] self. = attributes[:'message'] if attributes[:'message'] self.remediation = attributes[:'remediation'] if attributes[:'remediation'] self.description = attributes[:'description'] if attributes[:'description'] self.health_check_type = attributes[:'healthCheckType'] if attributes[:'healthCheckType'] raise 'You cannot provide both :healthCheckType and :health_check_type' if attributes.key?(:'healthCheckType') && attributes.key?(:'health_check_type') self.health_check_type = attributes[:'health_check_type'] if attributes[:'health_check_type'] end |
Instance Attribute Details
#description ⇒ String
[Required] A human-readable description for the log entry.
57 58 59 |
# File 'lib/oci/data_safe/models/masking_policy_health_report_log_summary.rb', line 57 def description @description end |
#health_check_type ⇒ String
An enum type entry for each health check in the masking policy. Each enum describes a type of health check. INVALID_OBJECT_CHECK checks if there exist any invalid objects in the masking tables. PRIVILEGE_CHECK checks if the masking user has sufficient privilege to run masking. TABLESPACE_CHECK checks if the user has sufficient default and TEMP tablespace. DATABASE_OR_SYSTEM_TRIGGERS_CHECK checks if there exist any database/system triggers available. UNDO_TABLESPACE_CHECK checks if the AUTOEXTEND feature is enabled for the undo tablespace. If it's not enabled, it further checks if the undo tablespace has any space remaining STATE_STATS_CHECK checks if all the statistics of the masking table is upto date or not. OLS_POLICY_CHECK , VPD_POLICY_CHECK and REDACTION_POLICY_CHECK checks if the masking tables has Oracle Label Security (OLS) or Virtual Private Database (VPD) or Redaction policies enabled. DV_ENABLE_CHECK checks if database has Database Vault(DV) enabled DE_COL_SIZE_CHECK checks if any masking column with DETERMINISTIC ENCRYPTION as masking format has average column size greater than 27 or not. ACTIVE_MASK_JOB_CHECK checks if there is any active masking job running on the target database. DETERMINISTIC_ENCRYPTION_FORMAT_CHECK checks if any masking column has deterministic encryption masking format. COLUMN_EXIST_CHECK checks if the masking columns are available in the target database.
74 75 76 |
# File 'lib/oci/data_safe/models/masking_policy_health_report_log_summary.rb', line 74 def health_check_type @health_check_type end |
#message ⇒ String
[Required] A human-readable log entry.
49 50 51 |
# File 'lib/oci/data_safe/models/masking_policy_health_report_log_summary.rb', line 49 def @message end |
#message_type ⇒ String
[Required] The log entry type.
40 41 42 |
# File 'lib/oci/data_safe/models/masking_policy_health_report_log_summary.rb', line 40 def @message_type end |
#remediation ⇒ String
A human-readable log entry to remedy any error or warnings in the masking policy.
53 54 55 |
# File 'lib/oci/data_safe/models/masking_policy_health_report_log_summary.rb', line 53 def remediation @remediation end |
#timestamp ⇒ DateTime
[Required] The date and time the log entry was created, in the format defined by RFC3339.
45 46 47 |
# File 'lib/oci/data_safe/models/masking_policy_health_report_log_summary.rb', line 45 def @timestamp end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/oci/data_safe/models/masking_policy_health_report_log_summary.rb', line 77 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'message_type': :'messageType', 'timestamp': :'timestamp', 'message': :'message', 'remediation': :'remediation', 'description': :'description', 'health_check_type': :'healthCheckType' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/oci/data_safe/models/masking_policy_health_report_log_summary.rb', line 91 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'message_type': :'String', 'timestamp': :'DateTime', 'message': :'String', 'remediation': :'String', 'description': :'String', 'health_check_type': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
176 177 178 179 180 181 182 183 184 185 186 |
# File 'lib/oci/data_safe/models/masking_policy_health_report_log_summary.rb', line 176 def ==(other) return true if equal?(other) self.class == other.class && == other. && == other. && == other. && remediation == other.remediation && description == other.description && health_check_type == other.health_check_type end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 |
# File 'lib/oci/data_safe/models/masking_policy_health_report_log_summary.rb', line 211 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
191 192 193 |
# File 'lib/oci/data_safe/models/masking_policy_health_report_log_summary.rb', line 191 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
200 201 202 |
# File 'lib/oci/data_safe/models/masking_policy_health_report_log_summary.rb', line 200 def hash [, , , remediation, description, health_check_type].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
244 245 246 247 248 249 250 251 252 253 |
# File 'lib/oci/data_safe/models/masking_policy_health_report_log_summary.rb', line 244 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
238 239 240 |
# File 'lib/oci/data_safe/models/masking_policy_health_report_log_summary.rb', line 238 def to_s to_hash.to_s end |