Class: OCI::Wlms::Models::UpdateWlsDomainConfigurationDetails

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/wlms/models/update_wls_domain_configuration_details.rb

Overview

The WebLogic domain configuration for update operation.

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
].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
].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ UpdateWlsDomainConfigurationDetails

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):



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
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
# File 'lib/oci/wlms/models/update_wls_domain_configuration_details.rb', line 107

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_modeString

Whether to manage the admin server using Node Manager or scripts.

Returns:

  • (String)


36
37
38
# File 'lib/oci/wlms/models/update_wls_domain_configuration_details.rb', line 36

def admin_server_control_mode
  @admin_server_control_mode
end

#admin_server_start_script_pathString

Path to admin server start script.

Returns:

  • (String)


44
45
46
# File 'lib/oci/wlms/models/update_wls_domain_configuration_details.rb', line 44

def admin_server_start_script_path
  @admin_server_start_script_path
end

#admin_server_stop_script_pathString

Path to admin server stop script.

Returns:

  • (String)


48
49
50
# File 'lib/oci/wlms/models/update_wls_domain_configuration_details.rb', line 48

def admin_server_stop_script_path
  @admin_server_stop_script_path
end

#is_patch_enabledBOOLEAN

Whether or not the WebLogic domain is enabled for patching.

Returns:

  • (BOOLEAN)


24
25
26
# File 'lib/oci/wlms/models/update_wls_domain_configuration_details.rb', line 24

def is_patch_enabled
  @is_patch_enabled
end

#is_rollback_on_failureBOOLEAN

Whether or not to rollback on failure during patching of WebLogic domain.

Returns:

  • (BOOLEAN)


28
29
30
# File 'lib/oci/wlms/models/update_wls_domain_configuration_details.rb', line 28

def is_rollback_on_failure
  @is_rollback_on_failure
end

#managed_server_control_modeString

Whether to manage the managed server using Node Manager or scripts.

Returns:

  • (String)


40
41
42
# File 'lib/oci/wlms/models/update_wls_domain_configuration_details.rb', line 40

def managed_server_control_mode
  @managed_server_control_mode
end

#managed_server_start_script_pathString

Path to managed server start script.

Returns:

  • (String)


52
53
54
# File 'lib/oci/wlms/models/update_wls_domain_configuration_details.rb', line 52

def managed_server_start_script_path
  @managed_server_start_script_path
end

#managed_server_stop_script_pathString

Path to managed server stop script.

Returns:

  • (String)


56
57
58
# File 'lib/oci/wlms/models/update_wls_domain_configuration_details.rb', line 56

def managed_server_stop_script_path
  @managed_server_stop_script_path
end

#servers_shutdown_timeoutInteger

Servers shutdown timeout in seconds. If set to 0 seconds, it means there is no timeout.

Returns:

  • (Integer)


32
33
34
# File 'lib/oci/wlms/models/update_wls_domain_configuration_details.rb', line 32

def servers_shutdown_timeout
  @servers_shutdown_timeout
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/oci/wlms/models/update_wls_domain_configuration_details.rb', line 59

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_typesObject

Attribute type mapping.



76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# File 'lib/oci/wlms/models/update_wls_domain_configuration_details.rb', line 76

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.

Parameters:

  • other (Object)

    the other object to be compared



191
192
193
194
195
196
197
198
199
200
201
202
203
204
# File 'lib/oci/wlms/models/update_wls_domain_configuration_details.rb', line 191

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

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
# File 'lib/oci/wlms/models/update_wls_domain_configuration_details.rb', line 229

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

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


209
210
211
# File 'lib/oci/wlms/models/update_wls_domain_configuration_details.rb', line 209

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



218
219
220
# File 'lib/oci/wlms/models/update_wls_domain_configuration_details.rb', line 218

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_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



262
263
264
265
266
267
268
269
270
271
# File 'lib/oci/wlms/models/update_wls_domain_configuration_details.rb', line 262

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_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



256
257
258
# File 'lib/oci/wlms/models/update_wls_domain_configuration_details.rb', line 256

def to_s
  to_hash.to_s
end