class SwaggerAemOsgiClient::OrgApacheJackrabbitOakSegmentSegmentNodeStoreServiceProperties

Attributes

blob_gc_max_age_in_secs[RW]
blob_track_snapshot_interval_in_secs[RW]
compaction_disable_estimation[RW]
compaction_force_timeout[RW]
compaction_memory_threshold[RW]
compaction_progress_log[RW]
compaction_retained_generations[RW]
compaction_retry_count[RW]
compaction_size_delta_estimation[RW]
custom_blob_store[RW]
custom_segment_store[RW]
node_deduplication_cache_size[RW]
pause_compaction[RW]
repository_backup_dir[RW]
repository_home[RW]
segment_cache_size[RW]
split_persistence[RW]
standby[RW]
string_cache_size[RW]
string_deduplication_cache_size[RW]
tarmk_mode[RW]
tarmk_size[RW]
template_cache_size[RW]
template_deduplication_cache_size[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_segment_segment_node_store_service_properties.rb, line 66
def self.attribute_map
  {
    :'repository_home' => :'repository.home',
    :'tarmk_mode' => :'tarmk.mode',
    :'tarmk_size' => :'tarmk.size',
    :'segment_cache_size' => :'segmentCache.size',
    :'string_cache_size' => :'stringCache.size',
    :'template_cache_size' => :'templateCache.size',
    :'string_deduplication_cache_size' => :'stringDeduplicationCache.size',
    :'template_deduplication_cache_size' => :'templateDeduplicationCache.size',
    :'node_deduplication_cache_size' => :'nodeDeduplicationCache.size',
    :'pause_compaction' => :'pauseCompaction',
    :'compaction_retry_count' => :'compaction.retryCount',
    :'compaction_force_timeout' => :'compaction.force.timeout',
    :'compaction_size_delta_estimation' => :'compaction.sizeDeltaEstimation',
    :'compaction_disable_estimation' => :'compaction.disableEstimation',
    :'compaction_retained_generations' => :'compaction.retainedGenerations',
    :'compaction_memory_threshold' => :'compaction.memoryThreshold',
    :'compaction_progress_log' => :'compaction.progressLog',
    :'standby' => :'standby',
    :'custom_blob_store' => :'customBlobStore',
    :'custom_segment_store' => :'customSegmentStore',
    :'split_persistence' => :'splitPersistence',
    :'repository_backup_dir' => :'repository.backup.dir',
    :'blob_gc_max_age_in_secs' => :'blobGcMaxAgeInSecs',
    :'blob_track_snapshot_interval_in_secs' => :'blobTrackSnapshotIntervalInSecs'
  }
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_segment_segment_node_store_service_properties.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 }

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

  if attributes.has_key?(:'tarmk.mode')
    self.tarmk_mode = attributes[:'tarmk.mode']
  end

  if attributes.has_key?(:'tarmk.size')
    self.tarmk_size = attributes[:'tarmk.size']
  end

  if attributes.has_key?(:'segmentCache.size')
    self.segment_cache_size = attributes[:'segmentCache.size']
  end

  if attributes.has_key?(:'stringCache.size')
    self.string_cache_size = attributes[:'stringCache.size']
  end

  if attributes.has_key?(:'templateCache.size')
    self.template_cache_size = attributes[:'templateCache.size']
  end

  if attributes.has_key?(:'stringDeduplicationCache.size')
    self.string_deduplication_cache_size = attributes[:'stringDeduplicationCache.size']
  end

  if attributes.has_key?(:'templateDeduplicationCache.size')
    self.template_deduplication_cache_size = attributes[:'templateDeduplicationCache.size']
  end

  if attributes.has_key?(:'nodeDeduplicationCache.size')
    self.node_deduplication_cache_size = attributes[:'nodeDeduplicationCache.size']
  end

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

  if attributes.has_key?(:'compaction.retryCount')
    self.compaction_retry_count = attributes[:'compaction.retryCount']
  end

  if attributes.has_key?(:'compaction.force.timeout')
    self.compaction_force_timeout = attributes[:'compaction.force.timeout']
  end

  if attributes.has_key?(:'compaction.sizeDeltaEstimation')
    self.compaction_size_delta_estimation = attributes[:'compaction.sizeDeltaEstimation']
  end

  if attributes.has_key?(:'compaction.disableEstimation')
    self.compaction_disable_estimation = attributes[:'compaction.disableEstimation']
  end

  if attributes.has_key?(:'compaction.retainedGenerations')
    self.compaction_retained_generations = attributes[:'compaction.retainedGenerations']
  end

  if attributes.has_key?(:'compaction.memoryThreshold')
    self.compaction_memory_threshold = attributes[:'compaction.memoryThreshold']
  end

  if attributes.has_key?(:'compaction.progressLog')
    self.compaction_progress_log = attributes[:'compaction.progressLog']
  end

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

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

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

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

  if attributes.has_key?(:'repository.backup.dir')
    self.repository_backup_dir = attributes[:'repository.backup.dir']
  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
end
openapi_types() click to toggle source

Attribute type mapping.

# File lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb, line 96
def self.openapi_types
  {
    :'repository_home' => :'ConfigNodePropertyString',
    :'tarmk_mode' => :'ConfigNodePropertyString',
    :'tarmk_size' => :'ConfigNodePropertyInteger',
    :'segment_cache_size' => :'ConfigNodePropertyInteger',
    :'string_cache_size' => :'ConfigNodePropertyInteger',
    :'template_cache_size' => :'ConfigNodePropertyInteger',
    :'string_deduplication_cache_size' => :'ConfigNodePropertyInteger',
    :'template_deduplication_cache_size' => :'ConfigNodePropertyInteger',
    :'node_deduplication_cache_size' => :'ConfigNodePropertyInteger',
    :'pause_compaction' => :'ConfigNodePropertyBoolean',
    :'compaction_retry_count' => :'ConfigNodePropertyInteger',
    :'compaction_force_timeout' => :'ConfigNodePropertyInteger',
    :'compaction_size_delta_estimation' => :'ConfigNodePropertyInteger',
    :'compaction_disable_estimation' => :'ConfigNodePropertyBoolean',
    :'compaction_retained_generations' => :'ConfigNodePropertyInteger',
    :'compaction_memory_threshold' => :'ConfigNodePropertyInteger',
    :'compaction_progress_log' => :'ConfigNodePropertyInteger',
    :'standby' => :'ConfigNodePropertyBoolean',
    :'custom_blob_store' => :'ConfigNodePropertyBoolean',
    :'custom_segment_store' => :'ConfigNodePropertyBoolean',
    :'split_persistence' => :'ConfigNodePropertyBoolean',
    :'repository_backup_dir' => :'ConfigNodePropertyString',
    :'blob_gc_max_age_in_secs' => :'ConfigNodePropertyInteger',
    :'blob_track_snapshot_interval_in_secs' => :'ConfigNodePropertyInteger'
  }
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_segment_segment_node_store_service_properties.rb, line 245
def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      repository_home == o.repository_home &&
      tarmk_mode == o.tarmk_mode &&
      tarmk_size == o.tarmk_size &&
      segment_cache_size == o.segment_cache_size &&
      string_cache_size == o.string_cache_size &&
      template_cache_size == o.template_cache_size &&
      string_deduplication_cache_size == o.string_deduplication_cache_size &&
      template_deduplication_cache_size == o.template_deduplication_cache_size &&
      node_deduplication_cache_size == o.node_deduplication_cache_size &&
      pause_compaction == o.pause_compaction &&
      compaction_retry_count == o.compaction_retry_count &&
      compaction_force_timeout == o.compaction_force_timeout &&
      compaction_size_delta_estimation == o.compaction_size_delta_estimation &&
      compaction_disable_estimation == o.compaction_disable_estimation &&
      compaction_retained_generations == o.compaction_retained_generations &&
      compaction_memory_threshold == o.compaction_memory_threshold &&
      compaction_progress_log == o.compaction_progress_log &&
      standby == o.standby &&
      custom_blob_store == o.custom_blob_store &&
      custom_segment_store == o.custom_segment_store &&
      split_persistence == o.split_persistence &&
      repository_backup_dir == o.repository_backup_dir &&
      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
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_segment_segment_node_store_service_properties.rb, line 310
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_segment_segment_node_store_service_properties.rb, line 376
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_segment_segment_node_store_service_properties.rb, line 289
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_segment_segment_node_store_service_properties.rb, line 276
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_segment_segment_node_store_service_properties.rb, line 282
def hash
  [repository_home, tarmk_mode, tarmk_size, segment_cache_size, string_cache_size, template_cache_size, string_deduplication_cache_size, template_deduplication_cache_size, node_deduplication_cache_size, pause_compaction, compaction_retry_count, compaction_force_timeout, compaction_size_delta_estimation, compaction_disable_estimation, compaction_retained_generations, compaction_memory_threshold, compaction_progress_log, standby, custom_blob_store, custom_segment_store, split_persistence, repository_backup_dir, blob_gc_max_age_in_secs, blob_track_snapshot_interval_in_secs].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_segment_segment_node_store_service_properties.rb, line 232
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_segment_segment_node_store_service_properties.rb, line 356
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_segment_segment_node_store_service_properties.rb, line 362
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_segment_segment_node_store_service_properties.rb, line 350
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_segment_segment_node_store_service_properties.rb, line 239
def valid?
  true
end