Class: OCI::Jms::Models::PostInstallationActionSettings
- Inherits:
-
Object
- Object
- OCI::Jms::Models::PostInstallationActionSettings
- Defined in:
- lib/oci/jms/models/post_installation_action_settings.rb
Overview
List of available post actions you can execute after the successful Java installation.
Constant Summary collapse
- GLOBAL_LOGGING_LEVEL_ENUM =
[ GLOBAL_LOGGING_LEVEL_ALL = 'ALL'.freeze, GLOBAL_LOGGING_LEVEL_SEVERE = 'SEVERE'.freeze, GLOBAL_LOGGING_LEVEL_WARNING = 'WARNING'.freeze, GLOBAL_LOGGING_LEVEL_INFO = 'INFO'.freeze, GLOBAL_LOGGING_LEVEL_CONFIG = 'CONFIG'.freeze, GLOBAL_LOGGING_LEVEL_FINE = 'FINE'.freeze, GLOBAL_LOGGING_LEVEL_FINER = 'FINER'.freeze, GLOBAL_LOGGING_LEVEL_FINEST = 'FINEST'.freeze, GLOBAL_LOGGING_LEVEL_OFF = 'OFF'.freeze, GLOBAL_LOGGING_LEVEL_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#add_logging_handler ⇒ BOOLEAN
Sets FileHandler and ConsoleHandler as handlers in logging.properties file.
-
#disabled_tls_versions ⇒ Array<OCI::Jms::Models::TlsVersions>
The following post JRE installation actions are supported by the field: - Disable TLS 1.0 , TLS 1.1.
-
#global_logging_level ⇒ String
Sets the logging level in logging.properties file.
- #minimum_key_size_settings ⇒ OCI::Jms::Models::MinimumKeySizeSettings
- #proxies ⇒ OCI::Jms::Models::Proxies
-
#should_replace_certificates_operating_system ⇒ BOOLEAN
Restores JDK root certificates with the certificates that are available in the operating system.
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 = {}) ⇒ PostInstallationActionSettings
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 = {}) ⇒ PostInstallationActionSettings
Initializes the object
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 128 129 130 131 132 133 134 135 136 |
# File 'lib/oci/jms/models/post_installation_action_settings.rb', line 95 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.disabled_tls_versions = attributes[:'disabledTlsVersions'] if attributes[:'disabledTlsVersions'] raise 'You cannot provide both :disabledTlsVersions and :disabled_tls_versions' if attributes.key?(:'disabledTlsVersions') && attributes.key?(:'disabled_tls_versions') self.disabled_tls_versions = attributes[:'disabled_tls_versions'] if attributes[:'disabled_tls_versions'] self. = attributes[:'shouldReplaceCertificatesOperatingSystem'] unless attributes[:'shouldReplaceCertificatesOperatingSystem'].nil? self. = false if .nil? && !attributes.key?(:'shouldReplaceCertificatesOperatingSystem') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :shouldReplaceCertificatesOperatingSystem and :should_replace_certificates_operating_system' if attributes.key?(:'shouldReplaceCertificatesOperatingSystem') && attributes.key?(:'should_replace_certificates_operating_system') self. = attributes[:'should_replace_certificates_operating_system'] unless attributes[:'should_replace_certificates_operating_system'].nil? self. = false if .nil? && !attributes.key?(:'shouldReplaceCertificatesOperatingSystem') && !attributes.key?(:'should_replace_certificates_operating_system') # rubocop:disable Style/StringLiterals self.minimum_key_size_settings = attributes[:'minimumKeySizeSettings'] if attributes[:'minimumKeySizeSettings'] raise 'You cannot provide both :minimumKeySizeSettings and :minimum_key_size_settings' if attributes.key?(:'minimumKeySizeSettings') && attributes.key?(:'minimum_key_size_settings') self.minimum_key_size_settings = attributes[:'minimum_key_size_settings'] if attributes[:'minimum_key_size_settings'] self.add_logging_handler = attributes[:'addLoggingHandler'] unless attributes[:'addLoggingHandler'].nil? self.add_logging_handler = false if add_logging_handler.nil? && !attributes.key?(:'addLoggingHandler') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :addLoggingHandler and :add_logging_handler' if attributes.key?(:'addLoggingHandler') && attributes.key?(:'add_logging_handler') self.add_logging_handler = attributes[:'add_logging_handler'] unless attributes[:'add_logging_handler'].nil? self.add_logging_handler = false if add_logging_handler.nil? && !attributes.key?(:'addLoggingHandler') && !attributes.key?(:'add_logging_handler') # rubocop:disable Style/StringLiterals self.global_logging_level = attributes[:'globalLoggingLevel'] if attributes[:'globalLoggingLevel'] raise 'You cannot provide both :globalLoggingLevel and :global_logging_level' if attributes.key?(:'globalLoggingLevel') && attributes.key?(:'global_logging_level') self.global_logging_level = attributes[:'global_logging_level'] if attributes[:'global_logging_level'] self.proxies = attributes[:'proxies'] if attributes[:'proxies'] end |
Instance Attribute Details
#add_logging_handler ⇒ BOOLEAN
Sets FileHandler and ConsoleHandler as handlers in logging.properties file.
45 46 47 |
# File 'lib/oci/jms/models/post_installation_action_settings.rb', line 45 def add_logging_handler @add_logging_handler end |
#disabled_tls_versions ⇒ Array<OCI::Jms::Models::TlsVersions>
The following post JRE installation actions are supported by the field: - Disable TLS 1.0 , TLS 1.1
30 31 32 |
# File 'lib/oci/jms/models/post_installation_action_settings.rb', line 30 def disabled_tls_versions @disabled_tls_versions end |
#global_logging_level ⇒ String
Sets the logging level in logging.properties file.
50 51 52 |
# File 'lib/oci/jms/models/post_installation_action_settings.rb', line 50 def global_logging_level @global_logging_level end |
#minimum_key_size_settings ⇒ OCI::Jms::Models::MinimumKeySizeSettings
40 41 42 |
# File 'lib/oci/jms/models/post_installation_action_settings.rb', line 40 def minimum_key_size_settings @minimum_key_size_settings end |
#proxies ⇒ OCI::Jms::Models::Proxies
53 54 55 |
# File 'lib/oci/jms/models/post_installation_action_settings.rb', line 53 def proxies @proxies end |
#should_replace_certificates_operating_system ⇒ BOOLEAN
Restores JDK root certificates with the certificates that are available in the operating system. The following action is supported by the field: - Replace JDK root certificates with a list provided by the operating system.
37 38 39 |
# File 'lib/oci/jms/models/post_installation_action_settings.rb', line 37 def @should_replace_certificates_operating_system end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/oci/jms/models/post_installation_action_settings.rb', line 56 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'disabled_tls_versions': :'disabledTlsVersions', 'should_replace_certificates_operating_system': :'shouldReplaceCertificatesOperatingSystem', 'minimum_key_size_settings': :'minimumKeySizeSettings', 'add_logging_handler': :'addLoggingHandler', 'global_logging_level': :'globalLoggingLevel', 'proxies': :'proxies' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/oci/jms/models/post_installation_action_settings.rb', line 70 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'disabled_tls_versions': :'Array<OCI::Jms::Models::TlsVersions>', 'should_replace_certificates_operating_system': :'BOOLEAN', 'minimum_key_size_settings': :'OCI::Jms::Models::MinimumKeySizeSettings', 'add_logging_handler': :'BOOLEAN', 'global_logging_level': :'String', 'proxies': :'OCI::Jms::Models::Proxies' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
158 159 160 161 162 163 164 165 166 167 168 |
# File 'lib/oci/jms/models/post_installation_action_settings.rb', line 158 def ==(other) return true if equal?(other) self.class == other.class && disabled_tls_versions == other.disabled_tls_versions && == other. && minimum_key_size_settings == other.minimum_key_size_settings && add_logging_handler == other.add_logging_handler && global_logging_level == other.global_logging_level && proxies == other.proxies end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 |
# File 'lib/oci/jms/models/post_installation_action_settings.rb', line 193 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
173 174 175 |
# File 'lib/oci/jms/models/post_installation_action_settings.rb', line 173 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
182 183 184 |
# File 'lib/oci/jms/models/post_installation_action_settings.rb', line 182 def hash [disabled_tls_versions, , minimum_key_size_settings, add_logging_handler, global_logging_level, proxies].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
226 227 228 229 230 231 232 233 234 235 |
# File 'lib/oci/jms/models/post_installation_action_settings.rb', line 226 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
220 221 222 |
# File 'lib/oci/jms/models/post_installation_action_settings.rb', line 220 def to_s to_hash.to_s end |