class SwaggerAemOsgiClient::OrgApacheJackrabbitOakPluginsDocumentDocumentNodeStoreServiceProperties

Attributes

blob_cache_size[RW]
blob_gc_max_age_in_secs[RW]
blob_track_snapshot_interval_in_secs[RW]
bundling_disabled[RW]
cache[RW]
cache_segment_count[RW]
cache_stack_move_distance[RW]
children_cache_percentage[RW]
custom_blob_store[RW]
db[RW]
diff_cache_percentage[RW]
document_store_type[RW]
journal_cache[RW]
journal_gc_interval[RW]
journal_gc_max_age[RW]
lease_check_mode[RW]
max_replication_lag_in_secs[RW]
mongouri[RW]
node_cache_percentage[RW]
persistent_cache[RW]
persistent_cache_includes[RW]
prefetch_external_changes[RW]
prev_doc_cache_percentage[RW]
repository_home[RW]
role[RW]
socket_keep_alive[RW]
update_limit[RW]
version_gc_expression[RW]
version_gc_max_age_in_secs[RW]
version_gc_time_limit_in_secs[RW]

Public Class Methods

attribute_map() click to toggle source

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

# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb, line 78
def self.attribute_map
  {
    :'mongouri' => :'mongouri',
    :'db' => :'db',
    :'socket_keep_alive' => :'socketKeepAlive',
    :'cache' => :'cache',
    :'node_cache_percentage' => :'nodeCachePercentage',
    :'prev_doc_cache_percentage' => :'prevDocCachePercentage',
    :'children_cache_percentage' => :'childrenCachePercentage',
    :'diff_cache_percentage' => :'diffCachePercentage',
    :'cache_segment_count' => :'cacheSegmentCount',
    :'cache_stack_move_distance' => :'cacheStackMoveDistance',
    :'blob_cache_size' => :'blobCacheSize',
    :'persistent_cache' => :'persistentCache',
    :'journal_cache' => :'journalCache',
    :'custom_blob_store' => :'customBlobStore',
    :'journal_gc_interval' => :'journalGCInterval',
    :'journal_gc_max_age' => :'journalGCMaxAge',
    :'prefetch_external_changes' => :'prefetchExternalChanges',
    :'role' => :'role',
    :'version_gc_max_age_in_secs' => :'versionGcMaxAgeInSecs',
    :'version_gc_expression' => :'versionGCExpression',
    :'version_gc_time_limit_in_secs' => :'versionGCTimeLimitInSecs',
    :'blob_gc_max_age_in_secs' => :'blobGcMaxAgeInSecs',
    :'blob_track_snapshot_interval_in_secs' => :'blobTrackSnapshotIntervalInSecs',
    :'repository_home' => :'repository.home',
    :'max_replication_lag_in_secs' => :'maxReplicationLagInSecs',
    :'document_store_type' => :'documentStoreType',
    :'bundling_disabled' => :'bundlingDisabled',
    :'update_limit' => :'updateLimit',
    :'persistent_cache_includes' => :'persistentCacheIncludes',
    :'lease_check_mode' => :'leaseCheckMode'
  }
end
new(attributes = {}) click to toggle source

Initializes the object @param [Hash] attributes Model attributes in the form of hash

# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb, line 151
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 }

  if attributes.has_key?(:'mongouri')
    self.mongouri = attributes[:'mongouri']
  end

  if attributes.has_key?(:'db')
    self.db = attributes[:'db']
  end

  if attributes.has_key?(:'socketKeepAlive')
    self.socket_keep_alive = attributes[:'socketKeepAlive']
  end

  if attributes.has_key?(:'cache')
    self.cache = attributes[:'cache']
  end

  if attributes.has_key?(:'nodeCachePercentage')
    self.node_cache_percentage = attributes[:'nodeCachePercentage']
  end

  if attributes.has_key?(:'prevDocCachePercentage')
    self.prev_doc_cache_percentage = attributes[:'prevDocCachePercentage']
  end

  if attributes.has_key?(:'childrenCachePercentage')
    self.children_cache_percentage = attributes[:'childrenCachePercentage']
  end

  if attributes.has_key?(:'diffCachePercentage')
    self.diff_cache_percentage = attributes[:'diffCachePercentage']
  end

  if attributes.has_key?(:'cacheSegmentCount')
    self.cache_segment_count = attributes[:'cacheSegmentCount']
  end

  if attributes.has_key?(:'cacheStackMoveDistance')
    self.cache_stack_move_distance = attributes[:'cacheStackMoveDistance']
  end

  if attributes.has_key?(:'blobCacheSize')
    self.blob_cache_size = attributes[:'blobCacheSize']
  end

  if attributes.has_key?(:'persistentCache')
    self.persistent_cache = attributes[:'persistentCache']
  end

  if attributes.has_key?(:'journalCache')
    self.journal_cache = attributes[:'journalCache']
  end

  if attributes.has_key?(:'customBlobStore')
    self.custom_blob_store = attributes[:'customBlobStore']
  end

  if attributes.has_key?(:'journalGCInterval')
    self.journal_gc_interval = attributes[:'journalGCInterval']
  end

  if attributes.has_key?(:'journalGCMaxAge')
    self.journal_gc_max_age = attributes[:'journalGCMaxAge']
  end

  if attributes.has_key?(:'prefetchExternalChanges')
    self.prefetch_external_changes = attributes[:'prefetchExternalChanges']
  end

  if attributes.has_key?(:'role')
    self.role = attributes[:'role']
  end

  if attributes.has_key?(:'versionGcMaxAgeInSecs')
    self.version_gc_max_age_in_secs = attributes[:'versionGcMaxAgeInSecs']
  end

  if attributes.has_key?(:'versionGCExpression')
    self.version_gc_expression = attributes[:'versionGCExpression']
  end

  if attributes.has_key?(:'versionGCTimeLimitInSecs')
    self.version_gc_time_limit_in_secs = attributes[:'versionGCTimeLimitInSecs']
  end

  if attributes.has_key?(:'blobGcMaxAgeInSecs')
    self.blob_gc_max_age_in_secs = attributes[:'blobGcMaxAgeInSecs']
  end

  if attributes.has_key?(:'blobTrackSnapshotIntervalInSecs')
    self.blob_track_snapshot_interval_in_secs = attributes[:'blobTrackSnapshotIntervalInSecs']
  end

  if attributes.has_key?(:'repository.home')
    self.repository_home = attributes[:'repository.home']
  end

  if attributes.has_key?(:'maxReplicationLagInSecs')
    self.max_replication_lag_in_secs = attributes[:'maxReplicationLagInSecs']
  end

  if attributes.has_key?(:'documentStoreType')
    self.document_store_type = attributes[:'documentStoreType']
  end

  if attributes.has_key?(:'bundlingDisabled')
    self.bundling_disabled = attributes[:'bundlingDisabled']
  end

  if attributes.has_key?(:'updateLimit')
    self.update_limit = attributes[:'updateLimit']
  end

  if attributes.has_key?(:'persistentCacheIncludes')
    self.persistent_cache_includes = attributes[:'persistentCacheIncludes']
  end

  if attributes.has_key?(:'leaseCheckMode')
    self.lease_check_mode = attributes[:'leaseCheckMode']
  end
end
openapi_types() click to toggle source

Attribute type mapping.

# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb, line 114
def self.openapi_types
  {
    :'mongouri' => :'ConfigNodePropertyString',
    :'db' => :'ConfigNodePropertyString',
    :'socket_keep_alive' => :'ConfigNodePropertyBoolean',
    :'cache' => :'ConfigNodePropertyInteger',
    :'node_cache_percentage' => :'ConfigNodePropertyInteger',
    :'prev_doc_cache_percentage' => :'ConfigNodePropertyInteger',
    :'children_cache_percentage' => :'ConfigNodePropertyInteger',
    :'diff_cache_percentage' => :'ConfigNodePropertyInteger',
    :'cache_segment_count' => :'ConfigNodePropertyInteger',
    :'cache_stack_move_distance' => :'ConfigNodePropertyInteger',
    :'blob_cache_size' => :'ConfigNodePropertyInteger',
    :'persistent_cache' => :'ConfigNodePropertyString',
    :'journal_cache' => :'ConfigNodePropertyString',
    :'custom_blob_store' => :'ConfigNodePropertyBoolean',
    :'journal_gc_interval' => :'ConfigNodePropertyInteger',
    :'journal_gc_max_age' => :'ConfigNodePropertyInteger',
    :'prefetch_external_changes' => :'ConfigNodePropertyBoolean',
    :'role' => :'ConfigNodePropertyString',
    :'version_gc_max_age_in_secs' => :'ConfigNodePropertyInteger',
    :'version_gc_expression' => :'ConfigNodePropertyString',
    :'version_gc_time_limit_in_secs' => :'ConfigNodePropertyInteger',
    :'blob_gc_max_age_in_secs' => :'ConfigNodePropertyInteger',
    :'blob_track_snapshot_interval_in_secs' => :'ConfigNodePropertyInteger',
    :'repository_home' => :'ConfigNodePropertyString',
    :'max_replication_lag_in_secs' => :'ConfigNodePropertyInteger',
    :'document_store_type' => :'ConfigNodePropertyDropDown',
    :'bundling_disabled' => :'ConfigNodePropertyBoolean',
    :'update_limit' => :'ConfigNodePropertyInteger',
    :'persistent_cache_includes' => :'ConfigNodePropertyArray',
    :'lease_check_mode' => :'ConfigNodePropertyDropDown'
  }
end

Public Instance Methods

==(o) click to toggle source

Checks equality by comparing each attribute. @param [Object] Object to be compared

# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb, line 293
def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      mongouri == o.mongouri &&
      db == o.db &&
      socket_keep_alive == o.socket_keep_alive &&
      cache == o.cache &&
      node_cache_percentage == o.node_cache_percentage &&
      prev_doc_cache_percentage == o.prev_doc_cache_percentage &&
      children_cache_percentage == o.children_cache_percentage &&
      diff_cache_percentage == o.diff_cache_percentage &&
      cache_segment_count == o.cache_segment_count &&
      cache_stack_move_distance == o.cache_stack_move_distance &&
      blob_cache_size == o.blob_cache_size &&
      persistent_cache == o.persistent_cache &&
      journal_cache == o.journal_cache &&
      custom_blob_store == o.custom_blob_store &&
      journal_gc_interval == o.journal_gc_interval &&
      journal_gc_max_age == o.journal_gc_max_age &&
      prefetch_external_changes == o.prefetch_external_changes &&
      role == o.role &&
      version_gc_max_age_in_secs == o.version_gc_max_age_in_secs &&
      version_gc_expression == o.version_gc_expression &&
      version_gc_time_limit_in_secs == o.version_gc_time_limit_in_secs &&
      blob_gc_max_age_in_secs == o.blob_gc_max_age_in_secs &&
      blob_track_snapshot_interval_in_secs == o.blob_track_snapshot_interval_in_secs &&
      repository_home == o.repository_home &&
      max_replication_lag_in_secs == o.max_replication_lag_in_secs &&
      document_store_type == o.document_store_type &&
      bundling_disabled == o.bundling_disabled &&
      update_limit == o.update_limit &&
      persistent_cache_includes == o.persistent_cache_includes &&
      lease_check_mode == o.lease_check_mode
end
_deserialize(type, value) click to toggle source

Deserializes the data based on type @param string type Data type @param string value Value to be deserialized @return [Object] Deserialized data

# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb, line 364
def _deserialize(type, value)
  case type.to_sym
  when :DateTime
    DateTime.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :BOOLEAN
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    temp_model = SwaggerAemOsgiClient.const_get(type).new
    temp_model.build_from_hash(value)
  end
end
_to_hash(value) click to toggle source

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value @param [Object] value Any valid value @return [Hash] Returns the value in the form of hash

# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb, line 430
def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map { |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end
build_from_hash(attributes) click to toggle source

Builds the object from hash @param [Hash] attributes Model attributes in the form of hash @return [Object] Returns the model itself

# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb, line 343
def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.openapi_types.each_pair do |key, type|
    if type =~ /\AArray<(.*)>/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)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(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?(o) click to toggle source

@see the `==` method @param [Object] Object to be compared

# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb, line 330
def eql?(o)
  self == o
end
hash() click to toggle source

Calculates hash code according to all attributes. @return [Fixnum] Hash code

# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb, line 336
def hash
  [mongouri, db, socket_keep_alive, cache, node_cache_percentage, prev_doc_cache_percentage, children_cache_percentage, diff_cache_percentage, cache_segment_count, cache_stack_move_distance, blob_cache_size, persistent_cache, journal_cache, custom_blob_store, journal_gc_interval, journal_gc_max_age, prefetch_external_changes, role, version_gc_max_age_in_secs, version_gc_expression, version_gc_time_limit_in_secs, blob_gc_max_age_in_secs, blob_track_snapshot_interval_in_secs, repository_home, max_replication_lag_in_secs, document_store_type, bundling_disabled, update_limit, persistent_cache_includes, lease_check_mode].hash
end
list_invalid_properties() click to toggle source

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb, line 280
def list_invalid_properties
  invalid_properties = Array.new
  invalid_properties
end
to_body() click to toggle source

to_body is an alias to to_hash (backward compatibility) @return [Hash] Returns the object in the form of hash

# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb, line 410
def to_body
  to_hash
end
to_hash() click to toggle source

Returns the object in the form of hash @return [Hash] Returns the object in the form of hash

# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb, line 416
def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    next if value.nil?
    hash[param] = _to_hash(value)
  end
  hash
end
to_s() click to toggle source

Returns the string representation of the object @return [String] String presentation of the object

# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb, line 404
def to_s
  to_hash.to_s
end
valid?() click to toggle source

Check to see if the all the properties in the model are valid @return true if the model is valid

# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb, line 287
def valid?
  true
end