Class: OCI::IdentityDomains::Models::AppBundlePoolConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/identity_domains/models/app_bundle_pool_configuration.rb

Overview

Configurable options maintaining a pool of ICF connector instances. Values for sub attributes can be set only if the ConnectorBundle referenced in the App has connectorPoolingSupported set to true

SCIM++ Properties: - idcsSearchable: false - multiValued: false - mutability: readWrite - required: false - returned: default - type: complex - uniqueness: none

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ AppBundlePoolConfiguration

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):

  • :max_idle (Integer)

    The value to assign to the #max_idle property

  • :max_objects (Integer)

    The value to assign to the #max_objects property

  • :max_wait (Integer)

    The value to assign to the #max_wait property

  • :min_evictable_idle_time_millis (Integer)

    The value to assign to the #min_evictable_idle_time_millis property

  • :min_idle (Integer)

    The value to assign to the #min_idle property



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
# File 'lib/oci/identity_domains/models/app_bundle_pool_configuration.rb', line 127

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.max_idle = attributes[:'maxIdle'] if attributes[:'maxIdle']

  raise 'You cannot provide both :maxIdle and :max_idle' if attributes.key?(:'maxIdle') && attributes.key?(:'max_idle')

  self.max_idle = attributes[:'max_idle'] if attributes[:'max_idle']

  self.max_objects = attributes[:'maxObjects'] if attributes[:'maxObjects']

  raise 'You cannot provide both :maxObjects and :max_objects' if attributes.key?(:'maxObjects') && attributes.key?(:'max_objects')

  self.max_objects = attributes[:'max_objects'] if attributes[:'max_objects']

  self.max_wait = attributes[:'maxWait'] if attributes[:'maxWait']

  raise 'You cannot provide both :maxWait and :max_wait' if attributes.key?(:'maxWait') && attributes.key?(:'max_wait')

  self.max_wait = attributes[:'max_wait'] if attributes[:'max_wait']

  self.min_evictable_idle_time_millis = attributes[:'minEvictableIdleTimeMillis'] if attributes[:'minEvictableIdleTimeMillis']

  raise 'You cannot provide both :minEvictableIdleTimeMillis and :min_evictable_idle_time_millis' if attributes.key?(:'minEvictableIdleTimeMillis') && attributes.key?(:'min_evictable_idle_time_millis')

  self.min_evictable_idle_time_millis = attributes[:'min_evictable_idle_time_millis'] if attributes[:'min_evictable_idle_time_millis']

  self.min_idle = attributes[:'minIdle'] if attributes[:'minIdle']

  raise 'You cannot provide both :minIdle and :min_idle' if attributes.key?(:'minIdle') && attributes.key?(:'min_idle')

  self.min_idle = attributes[:'min_idle'] if attributes[:'min_idle']
end

Instance Attribute Details

#max_idleInteger

Maximum number of connector instances in the pool that are idle and active.

SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readWrite - required: false - returned: default - type: integer - uniqueness: none

Returns:

  • (Integer)


32
33
34
# File 'lib/oci/identity_domains/models/app_bundle_pool_configuration.rb', line 32

def max_idle
  @max_idle
end

#max_objectsInteger

Maximum number of connector instances in the pool that are idle and active.

SCIM++ Properties: - caseExact: false - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: integer - uniqueness: none

Returns:

  • (Integer)


46
47
48
# File 'lib/oci/identity_domains/models/app_bundle_pool_configuration.rb', line 46

def max_objects
  @max_objects
end

#max_waitInteger

Maximum time (in milliseconds) to wait for a free connector instance to become available before failing.

SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readWrite - required: false - returned: default - type: integer - uniqueness: none

Returns:

  • (Integer)


60
61
62
# File 'lib/oci/identity_domains/models/app_bundle_pool_configuration.rb', line 60

def max_wait
  @max_wait
end

#min_evictable_idle_time_millisInteger

Minimum time (in milliseconds) to wait before evicting an idle conenctor instance from the pool.

SCIM++ Properties: - caseExact: false - idcsSearchable: false - multiValued: false - mutability: readWrite - required: false - returned: default - type: integer - uniqueness: none

Returns:

  • (Integer)


74
75
76
# File 'lib/oci/identity_domains/models/app_bundle_pool_configuration.rb', line 74

def min_evictable_idle_time_millis
  @min_evictable_idle_time_millis
end

#min_idleInteger

Minimum number of idle connector instances in the pool.

SCIM++ Properties: - caseExact: false - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: integer - uniqueness: none

Returns:

  • (Integer)


88
89
90
# File 'lib/oci/identity_domains/models/app_bundle_pool_configuration.rb', line 88

def min_idle
  @min_idle
end

Class Method Details

.attribute_mapObject

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



91
92
93
94
95
96
97
98
99
100
101
# File 'lib/oci/identity_domains/models/app_bundle_pool_configuration.rb', line 91

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'max_idle': :'maxIdle',
    'max_objects': :'maxObjects',
    'max_wait': :'maxWait',
    'min_evictable_idle_time_millis': :'minEvictableIdleTimeMillis',
    'min_idle': :'minIdle'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



104
105
106
107
108
109
110
111
112
113
114
# File 'lib/oci/identity_domains/models/app_bundle_pool_configuration.rb', line 104

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'max_idle': :'Integer',
    'max_objects': :'Integer',
    'max_wait': :'Integer',
    'min_evictable_idle_time_millis': :'Integer',
    'min_idle': :'Integer'
    # 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



171
172
173
174
175
176
177
178
179
180
# File 'lib/oci/identity_domains/models/app_bundle_pool_configuration.rb', line 171

def ==(other)
  return true if equal?(other)

  self.class == other.class &&
    max_idle == other.max_idle &&
    max_objects == other.max_objects &&
    max_wait == other.max_wait &&
    min_evictable_idle_time_millis == other.min_evictable_idle_time_millis &&
    min_idle == other.min_idle
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



205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
# File 'lib/oci/identity_domains/models/app_bundle_pool_configuration.rb', line 205

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


185
186
187
# File 'lib/oci/identity_domains/models/app_bundle_pool_configuration.rb', line 185

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



194
195
196
# File 'lib/oci/identity_domains/models/app_bundle_pool_configuration.rb', line 194

def hash
  [max_idle, max_objects, max_wait, min_evictable_idle_time_millis, min_idle].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



238
239
240
241
242
243
244
245
246
247
# File 'lib/oci/identity_domains/models/app_bundle_pool_configuration.rb', line 238

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



232
233
234
# File 'lib/oci/identity_domains/models/app_bundle_pool_configuration.rb', line 232

def to_s
  to_hash.to_s
end