Class: SwaggerAemOsgiClient::OrgApacheJackrabbitOakSegmentSegmentNodeStoreServiceProperties

Inherits:
Object
  • Object
show all
Defined in:
lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ OrgApacheJackrabbitOakSegmentSegmentNodeStoreServiceProperties

Initializes the object

Parameters:

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

    Model attributes in the form of hash



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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
# 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

Instance Attribute Details

#blob_gc_max_age_in_secsObject

Returns the value of attribute blob_gc_max_age_in_secs.



61
62
63
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 61

def blob_gc_max_age_in_secs
  @blob_gc_max_age_in_secs
end

#blob_track_snapshot_interval_in_secsObject

Returns the value of attribute blob_track_snapshot_interval_in_secs.



63
64
65
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 63

def blob_track_snapshot_interval_in_secs
  @blob_track_snapshot_interval_in_secs
end

#compaction_disable_estimationObject

Returns the value of attribute compaction_disable_estimation.



43
44
45
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 43

def compaction_disable_estimation
  @compaction_disable_estimation
end

#compaction_force_timeoutObject

Returns the value of attribute compaction_force_timeout.



39
40
41
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 39

def compaction_force_timeout
  @compaction_force_timeout
end

#compaction_memory_thresholdObject

Returns the value of attribute compaction_memory_threshold.



47
48
49
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 47

def compaction_memory_threshold
  @compaction_memory_threshold
end

#compaction_progress_logObject

Returns the value of attribute compaction_progress_log.



49
50
51
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 49

def compaction_progress_log
  @compaction_progress_log
end

#compaction_retained_generationsObject

Returns the value of attribute compaction_retained_generations.



45
46
47
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 45

def compaction_retained_generations
  @compaction_retained_generations
end

#compaction_retry_countObject

Returns the value of attribute compaction_retry_count.



37
38
39
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 37

def compaction_retry_count
  @compaction_retry_count
end

#compaction_size_delta_estimationObject

Returns the value of attribute compaction_size_delta_estimation.



41
42
43
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 41

def compaction_size_delta_estimation
  @compaction_size_delta_estimation
end

#custom_blob_storeObject

Returns the value of attribute custom_blob_store.



53
54
55
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 53

def custom_blob_store
  @custom_blob_store
end

#custom_segment_storeObject

Returns the value of attribute custom_segment_store.



55
56
57
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 55

def custom_segment_store
  @custom_segment_store
end

#node_deduplication_cache_sizeObject

Returns the value of attribute node_deduplication_cache_size.



33
34
35
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 33

def node_deduplication_cache_size
  @node_deduplication_cache_size
end

#pause_compactionObject

Returns the value of attribute pause_compaction.



35
36
37
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 35

def pause_compaction
  @pause_compaction
end

#repository_backup_dirObject

Returns the value of attribute repository_backup_dir.



59
60
61
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 59

def repository_backup_dir
  @repository_backup_dir
end

#repository_homeObject

Returns the value of attribute repository_home.



17
18
19
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 17

def repository_home
  @repository_home
end

#segment_cache_sizeObject

Returns the value of attribute segment_cache_size.



23
24
25
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 23

def segment_cache_size
  @segment_cache_size
end

#split_persistenceObject

Returns the value of attribute split_persistence.



57
58
59
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 57

def split_persistence
  @split_persistence
end

#standbyObject

Returns the value of attribute standby.



51
52
53
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 51

def standby
  @standby
end

#string_cache_sizeObject

Returns the value of attribute string_cache_size.



25
26
27
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 25

def string_cache_size
  @string_cache_size
end

#string_deduplication_cache_sizeObject

Returns the value of attribute string_deduplication_cache_size.



29
30
31
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 29

def string_deduplication_cache_size
  @string_deduplication_cache_size
end

#tarmk_modeObject

Returns the value of attribute tarmk_mode.



19
20
21
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 19

def tarmk_mode
  @tarmk_mode
end

#tarmk_sizeObject

Returns the value of attribute tarmk_size.



21
22
23
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 21

def tarmk_size
  @tarmk_size
end

#template_cache_sizeObject

Returns the value of attribute template_cache_size.



27
28
29
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 27

def template_cache_size
  @template_cache_size
end

#template_deduplication_cache_sizeObject

Returns the value of attribute template_deduplication_cache_size.



31
32
33
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 31

def template_deduplication_cache_size
  @template_deduplication_cache_size
end

Class Method Details

.attribute_mapObject

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



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# 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

.openapi_typesObject

Attribute type mapping.



96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# 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

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
# 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) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
# 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) ⇒ Hash

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



376
377
378
379
380
381
382
383
384
385
386
387
388
# 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) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
# 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) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


276
277
278
# 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

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



282
283
284
# 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_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



232
233
234
235
# 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_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



356
357
358
# 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_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



362
363
364
365
366
367
368
369
370
# 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_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



350
351
352
# 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?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



239
240
241
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_segment_segment_node_store_service_properties.rb', line 239

def valid?
  true
end