Class: SwaggerAemOsgiClient::OrgApacheJackrabbitOakPluginsDocumentDocumentNodeStoreServiceProperties
- Inherits:
-
Object
- Object
- SwaggerAemOsgiClient::OrgApacheJackrabbitOakPluginsDocumentDocumentNodeStoreServiceProperties
- Defined in:
- lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb
Instance Attribute Summary collapse
-
#blob_cache_size ⇒ Object
Returns the value of attribute blob_cache_size.
-
#blob_gc_max_age_in_secs ⇒ Object
Returns the value of attribute blob_gc_max_age_in_secs.
-
#blob_track_snapshot_interval_in_secs ⇒ Object
Returns the value of attribute blob_track_snapshot_interval_in_secs.
-
#bundling_disabled ⇒ Object
Returns the value of attribute bundling_disabled.
-
#cache ⇒ Object
Returns the value of attribute cache.
-
#cache_segment_count ⇒ Object
Returns the value of attribute cache_segment_count.
-
#cache_stack_move_distance ⇒ Object
Returns the value of attribute cache_stack_move_distance.
-
#children_cache_percentage ⇒ Object
Returns the value of attribute children_cache_percentage.
-
#custom_blob_store ⇒ Object
Returns the value of attribute custom_blob_store.
-
#db ⇒ Object
Returns the value of attribute db.
-
#diff_cache_percentage ⇒ Object
Returns the value of attribute diff_cache_percentage.
-
#document_store_type ⇒ Object
Returns the value of attribute document_store_type.
-
#journal_cache ⇒ Object
Returns the value of attribute journal_cache.
-
#journal_gc_interval ⇒ Object
Returns the value of attribute journal_gc_interval.
-
#journal_gc_max_age ⇒ Object
Returns the value of attribute journal_gc_max_age.
-
#lease_check_mode ⇒ Object
Returns the value of attribute lease_check_mode.
-
#max_replication_lag_in_secs ⇒ Object
Returns the value of attribute max_replication_lag_in_secs.
-
#mongouri ⇒ Object
Returns the value of attribute mongouri.
-
#node_cache_percentage ⇒ Object
Returns the value of attribute node_cache_percentage.
-
#persistent_cache ⇒ Object
Returns the value of attribute persistent_cache.
-
#persistent_cache_includes ⇒ Object
Returns the value of attribute persistent_cache_includes.
-
#prefetch_external_changes ⇒ Object
Returns the value of attribute prefetch_external_changes.
-
#prev_doc_cache_percentage ⇒ Object
Returns the value of attribute prev_doc_cache_percentage.
-
#repository_home ⇒ Object
Returns the value of attribute repository_home.
-
#role ⇒ Object
Returns the value of attribute role.
-
#socket_keep_alive ⇒ Object
Returns the value of attribute socket_keep_alive.
-
#update_limit ⇒ Object
Returns the value of attribute update_limit.
-
#version_gc_expression ⇒ Object
Returns the value of attribute version_gc_expression.
-
#version_gc_max_age_in_secs ⇒ Object
Returns the value of attribute version_gc_max_age_in_secs.
-
#version_gc_time_limit_in_secs ⇒ Object
Returns the value of attribute version_gc_time_limit_in_secs.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.openapi_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ OrgApacheJackrabbitOakPluginsDocumentDocumentNodeStoreServiceProperties
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ OrgApacheJackrabbitOakPluginsDocumentDocumentNodeStoreServiceProperties
Initializes the object
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 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 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 273 274 275 276 |
# 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 |
Instance Attribute Details
#blob_cache_size ⇒ Object
Returns the value of attribute blob_cache_size.
37 38 39 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 37 def blob_cache_size @blob_cache_size end |
#blob_gc_max_age_in_secs ⇒ Object
Returns the value of attribute blob_gc_max_age_in_secs.
59 60 61 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 59 def blob_gc_max_age_in_secs @blob_gc_max_age_in_secs end |
#blob_track_snapshot_interval_in_secs ⇒ Object
Returns the value of attribute blob_track_snapshot_interval_in_secs.
61 62 63 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 61 def blob_track_snapshot_interval_in_secs @blob_track_snapshot_interval_in_secs end |
#bundling_disabled ⇒ Object
Returns the value of attribute bundling_disabled.
69 70 71 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 69 def bundling_disabled @bundling_disabled end |
#cache ⇒ Object
Returns the value of attribute cache.
23 24 25 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 23 def cache @cache end |
#cache_segment_count ⇒ Object
Returns the value of attribute cache_segment_count.
33 34 35 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 33 def cache_segment_count @cache_segment_count end |
#cache_stack_move_distance ⇒ Object
Returns the value of attribute cache_stack_move_distance.
35 36 37 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 35 def cache_stack_move_distance @cache_stack_move_distance end |
#children_cache_percentage ⇒ Object
Returns the value of attribute children_cache_percentage.
29 30 31 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 29 def children_cache_percentage @children_cache_percentage end |
#custom_blob_store ⇒ Object
Returns the value of attribute custom_blob_store.
43 44 45 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 43 def custom_blob_store @custom_blob_store end |
#db ⇒ Object
Returns the value of attribute db.
19 20 21 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 19 def db @db end |
#diff_cache_percentage ⇒ Object
Returns the value of attribute diff_cache_percentage.
31 32 33 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 31 def diff_cache_percentage @diff_cache_percentage end |
#document_store_type ⇒ Object
Returns the value of attribute document_store_type.
67 68 69 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 67 def document_store_type @document_store_type end |
#journal_cache ⇒ Object
Returns the value of attribute journal_cache.
41 42 43 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 41 def journal_cache @journal_cache end |
#journal_gc_interval ⇒ Object
Returns the value of attribute journal_gc_interval.
45 46 47 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 45 def journal_gc_interval @journal_gc_interval end |
#journal_gc_max_age ⇒ Object
Returns the value of attribute journal_gc_max_age.
47 48 49 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 47 def journal_gc_max_age @journal_gc_max_age end |
#lease_check_mode ⇒ Object
Returns the value of attribute lease_check_mode.
75 76 77 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 75 def lease_check_mode @lease_check_mode end |
#max_replication_lag_in_secs ⇒ Object
Returns the value of attribute max_replication_lag_in_secs.
65 66 67 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 65 def max_replication_lag_in_secs @max_replication_lag_in_secs end |
#mongouri ⇒ Object
Returns the value of attribute mongouri.
17 18 19 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 17 def mongouri @mongouri end |
#node_cache_percentage ⇒ Object
Returns the value of attribute node_cache_percentage.
25 26 27 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 25 def node_cache_percentage @node_cache_percentage end |
#persistent_cache ⇒ Object
Returns the value of attribute persistent_cache.
39 40 41 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 39 def persistent_cache @persistent_cache end |
#persistent_cache_includes ⇒ Object
Returns the value of attribute persistent_cache_includes.
73 74 75 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 73 def persistent_cache_includes @persistent_cache_includes end |
#prefetch_external_changes ⇒ Object
Returns the value of attribute prefetch_external_changes.
49 50 51 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 49 def prefetch_external_changes @prefetch_external_changes end |
#prev_doc_cache_percentage ⇒ Object
Returns the value of attribute prev_doc_cache_percentage.
27 28 29 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 27 def prev_doc_cache_percentage @prev_doc_cache_percentage end |
#repository_home ⇒ Object
Returns the value of attribute repository_home.
63 64 65 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 63 def repository_home @repository_home end |
#role ⇒ Object
Returns the value of attribute role.
51 52 53 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 51 def role @role end |
#socket_keep_alive ⇒ Object
Returns the value of attribute socket_keep_alive.
21 22 23 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 21 def socket_keep_alive @socket_keep_alive end |
#update_limit ⇒ Object
Returns the value of attribute update_limit.
71 72 73 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 71 def update_limit @update_limit end |
#version_gc_expression ⇒ Object
Returns the value of attribute version_gc_expression.
55 56 57 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 55 def version_gc_expression @version_gc_expression end |
#version_gc_max_age_in_secs ⇒ Object
Returns the value of attribute version_gc_max_age_in_secs.
53 54 55 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 53 def version_gc_max_age_in_secs @version_gc_max_age_in_secs end |
#version_gc_time_limit_in_secs ⇒ Object
Returns the value of attribute version_gc_time_limit_in_secs.
57 58 59 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 57 def version_gc_time_limit_in_secs @version_gc_time_limit_in_secs end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 |
# 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 |
.openapi_types ⇒ Object
Attribute type mapping.
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 |
# 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 |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 |
# 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) ⇒ Object
Deserializes the data based on type
364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 |
# 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) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
430 431 432 433 434 435 436 437 438 439 440 441 442 |
# 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) ⇒ Object
Builds the object from hash
343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 |
# 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) ⇒ Boolean
330 331 332 |
# 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 ⇒ Fixnum
Calculates hash code according to all attributes.
336 337 338 |
# 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 ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
280 281 282 283 |
# 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 ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
410 411 412 |
# 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 ⇒ Hash
Returns the object in the form of hash
416 417 418 419 420 421 422 423 424 |
# 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 ⇒ String
Returns the string representation of the object
404 405 406 |
# 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? ⇒ Boolean
Check to see if the all the properties in the model are valid
287 288 289 |
# File 'lib/swagger_aem_osgi/models/org_apache_jackrabbit_oak_plugins_document_document_node_store_service_properties.rb', line 287 def valid? true end |