Class: OCI::Wlms::Models::WlsDomainConfiguration
- Inherits:
-
Object
- Object
- OCI::Wlms::Models::WlsDomainConfiguration
- Defined in:
- lib/oci/wlms/models/wls_domain_configuration.rb
Overview
The WebLogic domain configuration.
Constant Summary collapse
- ADMIN_SERVER_CONTROL_MODE_ENUM =
[ ADMIN_SERVER_CONTROL_MODE_USE_NODE_MANAGER = 'USE_NODE_MANAGER'.freeze, ADMIN_SERVER_CONTROL_MODE_USE_SCRIPTS = 'USE_SCRIPTS'.freeze, ADMIN_SERVER_CONTROL_MODE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- MANAGED_SERVER_CONTROL_MODE_ENUM =
[ MANAGED_SERVER_CONTROL_MODE_USE_NODE_MANAGER = 'USE_NODE_MANAGER'.freeze, MANAGED_SERVER_CONTROL_MODE_USE_SCRIPTS = 'USE_SCRIPTS'.freeze, MANAGED_SERVER_CONTROL_MODE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#admin_server_control_mode ⇒ String
Whether to manage the admin server using Node Manager or scripts.
-
#admin_server_start_script_path ⇒ String
Path to admin server start script.
-
#admin_server_stop_script_path ⇒ String
Path to admin server stop script.
-
#is_patch_enabled ⇒ BOOLEAN
[Required] Whether or not the WebLogic domain is enabled for patching.
-
#is_rollback_on_failure ⇒ BOOLEAN
Whether or not to rollback on failure during patching of WebLogic domain.
-
#managed_server_control_mode ⇒ String
Whether to manage the managed server using Node Manager or scripts.
-
#managed_server_start_script_path ⇒ String
Path to managed server start script.
-
#managed_server_stop_script_path ⇒ String
Path to managed server stop script.
-
#servers_shutdown_timeout ⇒ Integer
Servers shutdown timeout.
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 = {}) ⇒ WlsDomainConfiguration
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 = {}) ⇒ WlsDomainConfiguration
Initializes the object
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 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 |
# File 'lib/oci/wlms/models/wls_domain_configuration.rb', line 110 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.is_patch_enabled = attributes[:'isPatchEnabled'] unless attributes[:'isPatchEnabled'].nil? raise 'You cannot provide both :isPatchEnabled and :is_patch_enabled' if attributes.key?(:'isPatchEnabled') && attributes.key?(:'is_patch_enabled') self.is_patch_enabled = attributes[:'is_patch_enabled'] unless attributes[:'is_patch_enabled'].nil? self.is_rollback_on_failure = attributes[:'isRollbackOnFailure'] unless attributes[:'isRollbackOnFailure'].nil? raise 'You cannot provide both :isRollbackOnFailure and :is_rollback_on_failure' if attributes.key?(:'isRollbackOnFailure') && attributes.key?(:'is_rollback_on_failure') self.is_rollback_on_failure = attributes[:'is_rollback_on_failure'] unless attributes[:'is_rollback_on_failure'].nil? self.servers_shutdown_timeout = attributes[:'serversShutdownTimeout'] if attributes[:'serversShutdownTimeout'] raise 'You cannot provide both :serversShutdownTimeout and :servers_shutdown_timeout' if attributes.key?(:'serversShutdownTimeout') && attributes.key?(:'servers_shutdown_timeout') self.servers_shutdown_timeout = attributes[:'servers_shutdown_timeout'] if attributes[:'servers_shutdown_timeout'] self.admin_server_control_mode = attributes[:'adminServerControlMode'] if attributes[:'adminServerControlMode'] raise 'You cannot provide both :adminServerControlMode and :admin_server_control_mode' if attributes.key?(:'adminServerControlMode') && attributes.key?(:'admin_server_control_mode') self.admin_server_control_mode = attributes[:'admin_server_control_mode'] if attributes[:'admin_server_control_mode'] self.managed_server_control_mode = attributes[:'managedServerControlMode'] if attributes[:'managedServerControlMode'] raise 'You cannot provide both :managedServerControlMode and :managed_server_control_mode' if attributes.key?(:'managedServerControlMode') && attributes.key?(:'managed_server_control_mode') self.managed_server_control_mode = attributes[:'managed_server_control_mode'] if attributes[:'managed_server_control_mode'] self.admin_server_start_script_path = attributes[:'adminServerStartScriptPath'] if attributes[:'adminServerStartScriptPath'] raise 'You cannot provide both :adminServerStartScriptPath and :admin_server_start_script_path' if attributes.key?(:'adminServerStartScriptPath') && attributes.key?(:'admin_server_start_script_path') self.admin_server_start_script_path = attributes[:'admin_server_start_script_path'] if attributes[:'admin_server_start_script_path'] self.admin_server_stop_script_path = attributes[:'adminServerStopScriptPath'] if attributes[:'adminServerStopScriptPath'] raise 'You cannot provide both :adminServerStopScriptPath and :admin_server_stop_script_path' if attributes.key?(:'adminServerStopScriptPath') && attributes.key?(:'admin_server_stop_script_path') self.admin_server_stop_script_path = attributes[:'admin_server_stop_script_path'] if attributes[:'admin_server_stop_script_path'] self.managed_server_start_script_path = attributes[:'managedServerStartScriptPath'] if attributes[:'managedServerStartScriptPath'] raise 'You cannot provide both :managedServerStartScriptPath and :managed_server_start_script_path' if attributes.key?(:'managedServerStartScriptPath') && attributes.key?(:'managed_server_start_script_path') self.managed_server_start_script_path = attributes[:'managed_server_start_script_path'] if attributes[:'managed_server_start_script_path'] self.managed_server_stop_script_path = attributes[:'managedServerStopScriptPath'] if attributes[:'managedServerStopScriptPath'] raise 'You cannot provide both :managedServerStopScriptPath and :managed_server_stop_script_path' if attributes.key?(:'managedServerStopScriptPath') && attributes.key?(:'managed_server_stop_script_path') self.managed_server_stop_script_path = attributes[:'managed_server_stop_script_path'] if attributes[:'managed_server_stop_script_path'] end |
Instance Attribute Details
#admin_server_control_mode ⇒ String
Whether to manage the admin server using Node Manager or scripts.
39 40 41 |
# File 'lib/oci/wlms/models/wls_domain_configuration.rb', line 39 def admin_server_control_mode @admin_server_control_mode end |
#admin_server_start_script_path ⇒ String
Path to admin server start script.
47 48 49 |
# File 'lib/oci/wlms/models/wls_domain_configuration.rb', line 47 def admin_server_start_script_path @admin_server_start_script_path end |
#admin_server_stop_script_path ⇒ String
Path to admin server stop script.
51 52 53 |
# File 'lib/oci/wlms/models/wls_domain_configuration.rb', line 51 def admin_server_stop_script_path @admin_server_stop_script_path end |
#is_patch_enabled ⇒ BOOLEAN
[Required] Whether or not the WebLogic domain is enabled for patching.
27 28 29 |
# File 'lib/oci/wlms/models/wls_domain_configuration.rb', line 27 def is_patch_enabled @is_patch_enabled end |
#is_rollback_on_failure ⇒ BOOLEAN
Whether or not to rollback on failure during patching of WebLogic domain.
31 32 33 |
# File 'lib/oci/wlms/models/wls_domain_configuration.rb', line 31 def is_rollback_on_failure @is_rollback_on_failure end |
#managed_server_control_mode ⇒ String
Whether to manage the managed server using Node Manager or scripts.
43 44 45 |
# File 'lib/oci/wlms/models/wls_domain_configuration.rb', line 43 def managed_server_control_mode @managed_server_control_mode end |
#managed_server_start_script_path ⇒ String
Path to managed server start script.
55 56 57 |
# File 'lib/oci/wlms/models/wls_domain_configuration.rb', line 55 def managed_server_start_script_path @managed_server_start_script_path end |
#managed_server_stop_script_path ⇒ String
Path to managed server stop script.
59 60 61 |
# File 'lib/oci/wlms/models/wls_domain_configuration.rb', line 59 def managed_server_stop_script_path @managed_server_stop_script_path end |
#servers_shutdown_timeout ⇒ Integer
Servers shutdown timeout.
35 36 37 |
# File 'lib/oci/wlms/models/wls_domain_configuration.rb', line 35 def servers_shutdown_timeout @servers_shutdown_timeout end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/oci/wlms/models/wls_domain_configuration.rb', line 62 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'is_patch_enabled': :'isPatchEnabled', 'is_rollback_on_failure': :'isRollbackOnFailure', 'servers_shutdown_timeout': :'serversShutdownTimeout', 'admin_server_control_mode': :'adminServerControlMode', 'managed_server_control_mode': :'managedServerControlMode', 'admin_server_start_script_path': :'adminServerStartScriptPath', 'admin_server_stop_script_path': :'adminServerStopScriptPath', 'managed_server_start_script_path': :'managedServerStartScriptPath', 'managed_server_stop_script_path': :'managedServerStopScriptPath' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/oci/wlms/models/wls_domain_configuration.rb', line 79 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'is_patch_enabled': :'BOOLEAN', 'is_rollback_on_failure': :'BOOLEAN', 'servers_shutdown_timeout': :'Integer', 'admin_server_control_mode': :'String', 'managed_server_control_mode': :'String', 'admin_server_start_script_path': :'String', 'admin_server_stop_script_path': :'String', 'managed_server_start_script_path': :'String', 'managed_server_stop_script_path': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
204 205 206 207 208 209 210 211 212 213 214 215 216 217 |
# File 'lib/oci/wlms/models/wls_domain_configuration.rb', line 204 def ==(other) return true if equal?(other) self.class == other.class && is_patch_enabled == other.is_patch_enabled && is_rollback_on_failure == other.is_rollback_on_failure && servers_shutdown_timeout == other.servers_shutdown_timeout && admin_server_control_mode == other.admin_server_control_mode && managed_server_control_mode == other.managed_server_control_mode && admin_server_start_script_path == other.admin_server_start_script_path && admin_server_stop_script_path == other.admin_server_stop_script_path && managed_server_start_script_path == other.managed_server_start_script_path && managed_server_stop_script_path == other.managed_server_stop_script_path end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 |
# File 'lib/oci/wlms/models/wls_domain_configuration.rb', line 242 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
222 223 224 |
# File 'lib/oci/wlms/models/wls_domain_configuration.rb', line 222 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
231 232 233 |
# File 'lib/oci/wlms/models/wls_domain_configuration.rb', line 231 def hash [is_patch_enabled, is_rollback_on_failure, servers_shutdown_timeout, admin_server_control_mode, managed_server_control_mode, admin_server_start_script_path, admin_server_stop_script_path, managed_server_start_script_path, managed_server_stop_script_path].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
275 276 277 278 279 280 281 282 283 284 |
# File 'lib/oci/wlms/models/wls_domain_configuration.rb', line 275 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
269 270 271 |
# File 'lib/oci/wlms/models/wls_domain_configuration.rb', line 269 def to_s to_hash.to_s end |