Class: SwaggerAemOsgiClient::ComAdobeCqScreensMqActivemqImplArtemisJMSProviderProperties

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ComAdobeCqScreensMqActivemqImplArtemisJMSProviderProperties

Initializes the object



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
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb', line 163

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?(:'service.ranking')
    self.service_ranking = attributes[:'service.ranking']
  end

  if attributes.has_key?(:'global.size')
    self.global_size = attributes[:'global.size']
  end

  if attributes.has_key?(:'max.disk.usage')
    self.max_disk_usage = attributes[:'max.disk.usage']
  end

  if attributes.has_key?(:'persistence.enabled')
    self.persistence_enabled = attributes[:'persistence.enabled']
  end

  if attributes.has_key?(:'thread.pool.max.size')
    self.thread_pool_max_size = attributes[:'thread.pool.max.size']
  end

  if attributes.has_key?(:'scheduled.thread.pool.max.size')
    self.scheduled_thread_pool_max_size = attributes[:'scheduled.thread.pool.max.size']
  end

  if attributes.has_key?(:'graceful.shutdown.timeout')
    self.graceful_shutdown_timeout = attributes[:'graceful.shutdown.timeout']
  end

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

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

  if attributes.has_key?(:'addresses.max.delivery.attempts')
    self.addresses_max_delivery_attempts = attributes[:'addresses.max.delivery.attempts']
  end

  if attributes.has_key?(:'addresses.expiry.delay')
    self.addresses_expiry_delay = attributes[:'addresses.expiry.delay']
  end

  if attributes.has_key?(:'addresses.address.full.message.policy')
    self.addresses_address_full_message_policy = attributes[:'addresses.address.full.message.policy']
  end

  if attributes.has_key?(:'addresses.max.size.bytes')
    self.addresses_max_size_bytes = attributes[:'addresses.max.size.bytes']
  end

  if attributes.has_key?(:'addresses.page.size.bytes')
    self.addresses_page_size_bytes = attributes[:'addresses.page.size.bytes']
  end

  if attributes.has_key?(:'addresses.page.cache.max.size')
    self.addresses_page_cache_max_size = attributes[:'addresses.page.cache.max.size']
  end

  if attributes.has_key?(:'cluster.user')
    self.cluster_user = attributes[:'cluster.user']
  end

  if attributes.has_key?(:'cluster.password')
    self.cluster_password = attributes[:'cluster.password']
  end

  if attributes.has_key?(:'cluster.call.timeout')
    self.cluster_call_timeout = attributes[:'cluster.call.timeout']
  end

  if attributes.has_key?(:'cluster.call.failover.timeout')
    self.cluster_call_failover_timeout = attributes[:'cluster.call.failover.timeout']
  end

  if attributes.has_key?(:'cluster.client.failure.check.period')
    self.cluster_client_failure_check_period = attributes[:'cluster.client.failure.check.period']
  end

  if attributes.has_key?(:'cluster.notification.attempts')
    self.cluster_notification_attempts = attributes[:'cluster.notification.attempts']
  end

  if attributes.has_key?(:'cluster.notification.interval')
    self.cluster_notification_interval = attributes[:'cluster.notification.interval']
  end

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

  if attributes.has_key?(:'cluster.confirmation.window.size')
    self.cluster_confirmation_window_size = attributes[:'cluster.confirmation.window.size']
  end

  if attributes.has_key?(:'cluster.connection.ttl')
    self.cluster_connection_ttl = attributes[:'cluster.connection.ttl']
  end

  if attributes.has_key?(:'cluster.duplicate.detection')
    self.cluster_duplicate_detection = attributes[:'cluster.duplicate.detection']
  end

  if attributes.has_key?(:'cluster.initial.connect.attempts')
    self.cluster_initial_connect_attempts = attributes[:'cluster.initial.connect.attempts']
  end

  if attributes.has_key?(:'cluster.max.retry.interval')
    self.cluster_max_retry_interval = attributes[:'cluster.max.retry.interval']
  end

  if attributes.has_key?(:'cluster.min.large.message.size')
    self.cluster_min_large_message_size = attributes[:'cluster.min.large.message.size']
  end

  if attributes.has_key?(:'cluster.producer.window.size')
    self.cluster_producer_window_size = attributes[:'cluster.producer.window.size']
  end

  if attributes.has_key?(:'cluster.reconnect.attempts')
    self.cluster_reconnect_attempts = attributes[:'cluster.reconnect.attempts']
  end

  if attributes.has_key?(:'cluster.retry.interval')
    self.cluster_retry_interval = attributes[:'cluster.retry.interval']
  end

  if attributes.has_key?(:'cluster.retry.interval.multiplier')
    self.cluster_retry_interval_multiplier = attributes[:'cluster.retry.interval.multiplier']
  end
end

Instance Attribute Details

#addresses_address_full_message_policyObject

Returns the value of attribute addresses_address_full_message_policy.



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

def addresses_address_full_message_policy
  @addresses_address_full_message_policy
end

#addresses_expiry_delayObject

Returns the value of attribute addresses_expiry_delay.



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

def addresses_expiry_delay
  @addresses_expiry_delay
end

#addresses_max_delivery_attemptsObject

Returns the value of attribute addresses_max_delivery_attempts.



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

def addresses_max_delivery_attempts
  @addresses_max_delivery_attempts
end

#addresses_max_size_bytesObject

Returns the value of attribute addresses_max_size_bytes.



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

def addresses_max_size_bytes
  @addresses_max_size_bytes
end

#addresses_page_cache_max_sizeObject

Returns the value of attribute addresses_page_cache_max_size.



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

def addresses_page_cache_max_size
  @addresses_page_cache_max_size
end

#addresses_page_size_bytesObject

Returns the value of attribute addresses_page_size_bytes.



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

def addresses_page_size_bytes
  @addresses_page_size_bytes
end

#cluster_call_failover_timeoutObject

Returns the value of attribute cluster_call_failover_timeout.



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

def cluster_call_failover_timeout
  @cluster_call_failover_timeout
end

#cluster_call_timeoutObject

Returns the value of attribute cluster_call_timeout.



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

def cluster_call_timeout
  @cluster_call_timeout
end

#cluster_client_failure_check_periodObject

Returns the value of attribute cluster_client_failure_check_period.



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

def cluster_client_failure_check_period
  @cluster_client_failure_check_period
end

#cluster_confirmation_window_sizeObject

Returns the value of attribute cluster_confirmation_window_size.



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

def cluster_confirmation_window_size
  @cluster_confirmation_window_size
end

#cluster_connection_ttlObject

Returns the value of attribute cluster_connection_ttl.



65
66
67
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb', line 65

def cluster_connection_ttl
  @cluster_connection_ttl
end

#cluster_duplicate_detectionObject

Returns the value of attribute cluster_duplicate_detection.



67
68
69
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb', line 67

def cluster_duplicate_detection
  @cluster_duplicate_detection
end

#cluster_initial_connect_attemptsObject

Returns the value of attribute cluster_initial_connect_attempts.



69
70
71
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb', line 69

def cluster_initial_connect_attempts
  @cluster_initial_connect_attempts
end

#cluster_max_retry_intervalObject

Returns the value of attribute cluster_max_retry_interval.



71
72
73
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb', line 71

def cluster_max_retry_interval
  @cluster_max_retry_interval
end

#cluster_min_large_message_sizeObject

Returns the value of attribute cluster_min_large_message_size.



73
74
75
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb', line 73

def cluster_min_large_message_size
  @cluster_min_large_message_size
end

#cluster_notification_attemptsObject

Returns the value of attribute cluster_notification_attempts.



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

def cluster_notification_attempts
  @cluster_notification_attempts
end

#cluster_notification_intervalObject

Returns the value of attribute cluster_notification_interval.



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

def cluster_notification_interval
  @cluster_notification_interval
end

#cluster_passwordObject

Returns the value of attribute cluster_password.



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

def cluster_password
  @cluster_password
end

#cluster_producer_window_sizeObject

Returns the value of attribute cluster_producer_window_size.



75
76
77
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb', line 75

def cluster_producer_window_size
  @cluster_producer_window_size
end

#cluster_reconnect_attemptsObject

Returns the value of attribute cluster_reconnect_attempts.



77
78
79
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb', line 77

def cluster_reconnect_attempts
  @cluster_reconnect_attempts
end

#cluster_retry_intervalObject

Returns the value of attribute cluster_retry_interval.



79
80
81
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb', line 79

def cluster_retry_interval
  @cluster_retry_interval
end

#cluster_retry_interval_multiplierObject

Returns the value of attribute cluster_retry_interval_multiplier.



81
82
83
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb', line 81

def cluster_retry_interval_multiplier
  @cluster_retry_interval_multiplier
end

#cluster_userObject

Returns the value of attribute cluster_user.



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

def cluster_user
  @cluster_user
end

#global_sizeObject

Returns the value of attribute global_size.



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

def global_size
  @global_size
end

#graceful_shutdown_timeoutObject

Returns the value of attribute graceful_shutdown_timeout.



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

def graceful_shutdown_timeout
  @graceful_shutdown_timeout
end

#id_cache_sizeObject

Returns the value of attribute id_cache_size.



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

def id_cache_size
  @id_cache_size
end

#max_disk_usageObject

Returns the value of attribute max_disk_usage.



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

def max_disk_usage
  @max_disk_usage
end

#persistence_enabledObject

Returns the value of attribute persistence_enabled.



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

def persistence_enabled
  @persistence_enabled
end

#queuesObject

Returns the value of attribute queues.



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

def queues
  @queues
end

#scheduled_thread_pool_max_sizeObject

Returns the value of attribute scheduled_thread_pool_max_size.



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

def scheduled_thread_pool_max_size
  @scheduled_thread_pool_max_size
end

#service_rankingObject

Returns the value of attribute service_ranking.



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

def service_ranking
  @service_ranking
end

#thread_pool_max_sizeObject

Returns the value of attribute thread_pool_max_size.



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

def thread_pool_max_size
  @thread_pool_max_size
end

#topicsObject

Returns the value of attribute topics.



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

def topics
  @topics
end

Class Method Details

.attribute_mapObject

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



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
112
113
114
115
116
117
118
119
120
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb', line 84

def self.attribute_map
  {
    :'service_ranking' => :'service.ranking',
    :'global_size' => :'global.size',
    :'max_disk_usage' => :'max.disk.usage',
    :'persistence_enabled' => :'persistence.enabled',
    :'thread_pool_max_size' => :'thread.pool.max.size',
    :'scheduled_thread_pool_max_size' => :'scheduled.thread.pool.max.size',
    :'graceful_shutdown_timeout' => :'graceful.shutdown.timeout',
    :'queues' => :'queues',
    :'topics' => :'topics',
    :'addresses_max_delivery_attempts' => :'addresses.max.delivery.attempts',
    :'addresses_expiry_delay' => :'addresses.expiry.delay',
    :'addresses_address_full_message_policy' => :'addresses.address.full.message.policy',
    :'addresses_max_size_bytes' => :'addresses.max.size.bytes',
    :'addresses_page_size_bytes' => :'addresses.page.size.bytes',
    :'addresses_page_cache_max_size' => :'addresses.page.cache.max.size',
    :'cluster_user' => :'cluster.user',
    :'cluster_password' => :'cluster.password',
    :'cluster_call_timeout' => :'cluster.call.timeout',
    :'cluster_call_failover_timeout' => :'cluster.call.failover.timeout',
    :'cluster_client_failure_check_period' => :'cluster.client.failure.check.period',
    :'cluster_notification_attempts' => :'cluster.notification.attempts',
    :'cluster_notification_interval' => :'cluster.notification.interval',
    :'id_cache_size' => :'id.cache.size',
    :'cluster_confirmation_window_size' => :'cluster.confirmation.window.size',
    :'cluster_connection_ttl' => :'cluster.connection.ttl',
    :'cluster_duplicate_detection' => :'cluster.duplicate.detection',
    :'cluster_initial_connect_attempts' => :'cluster.initial.connect.attempts',
    :'cluster_max_retry_interval' => :'cluster.max.retry.interval',
    :'cluster_min_large_message_size' => :'cluster.min.large.message.size',
    :'cluster_producer_window_size' => :'cluster.producer.window.size',
    :'cluster_reconnect_attempts' => :'cluster.reconnect.attempts',
    :'cluster_retry_interval' => :'cluster.retry.interval',
    :'cluster_retry_interval_multiplier' => :'cluster.retry.interval.multiplier'
  }
end

.openapi_typesObject

Attribute type mapping.



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
148
149
150
151
152
153
154
155
156
157
158
159
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb', line 123

def self.openapi_types
  {
    :'service_ranking' => :'ConfigNodePropertyInteger',
    :'global_size' => :'ConfigNodePropertyInteger',
    :'max_disk_usage' => :'ConfigNodePropertyInteger',
    :'persistence_enabled' => :'ConfigNodePropertyBoolean',
    :'thread_pool_max_size' => :'ConfigNodePropertyInteger',
    :'scheduled_thread_pool_max_size' => :'ConfigNodePropertyInteger',
    :'graceful_shutdown_timeout' => :'ConfigNodePropertyInteger',
    :'queues' => :'ConfigNodePropertyArray',
    :'topics' => :'ConfigNodePropertyArray',
    :'addresses_max_delivery_attempts' => :'ConfigNodePropertyInteger',
    :'addresses_expiry_delay' => :'ConfigNodePropertyInteger',
    :'addresses_address_full_message_policy' => :'ConfigNodePropertyDropDown',
    :'addresses_max_size_bytes' => :'ConfigNodePropertyInteger',
    :'addresses_page_size_bytes' => :'ConfigNodePropertyInteger',
    :'addresses_page_cache_max_size' => :'ConfigNodePropertyInteger',
    :'cluster_user' => :'ConfigNodePropertyString',
    :'cluster_password' => :'ConfigNodePropertyString',
    :'cluster_call_timeout' => :'ConfigNodePropertyInteger',
    :'cluster_call_failover_timeout' => :'ConfigNodePropertyInteger',
    :'cluster_client_failure_check_period' => :'ConfigNodePropertyInteger',
    :'cluster_notification_attempts' => :'ConfigNodePropertyInteger',
    :'cluster_notification_interval' => :'ConfigNodePropertyInteger',
    :'id_cache_size' => :'ConfigNodePropertyInteger',
    :'cluster_confirmation_window_size' => :'ConfigNodePropertyInteger',
    :'cluster_connection_ttl' => :'ConfigNodePropertyInteger',
    :'cluster_duplicate_detection' => :'ConfigNodePropertyBoolean',
    :'cluster_initial_connect_attempts' => :'ConfigNodePropertyInteger',
    :'cluster_max_retry_interval' => :'ConfigNodePropertyInteger',
    :'cluster_min_large_message_size' => :'ConfigNodePropertyInteger',
    :'cluster_producer_window_size' => :'ConfigNodePropertyInteger',
    :'cluster_reconnect_attempts' => :'ConfigNodePropertyInteger',
    :'cluster_retry_interval' => :'ConfigNodePropertyInteger',
    :'cluster_retry_interval_multiplier' => :'ConfigNodePropertyFloat'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.



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
347
348
349
350
351
352
353
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb', line 317

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      service_ranking == o.service_ranking &&
      global_size == o.global_size &&
      max_disk_usage == o.max_disk_usage &&
      persistence_enabled == o.persistence_enabled &&
      thread_pool_max_size == o.thread_pool_max_size &&
      scheduled_thread_pool_max_size == o.scheduled_thread_pool_max_size &&
      graceful_shutdown_timeout == o.graceful_shutdown_timeout &&
      queues == o.queues &&
      topics == o.topics &&
      addresses_max_delivery_attempts == o.addresses_max_delivery_attempts &&
      addresses_expiry_delay == o.addresses_expiry_delay &&
      addresses_address_full_message_policy == o.addresses_address_full_message_policy &&
      addresses_max_size_bytes == o.addresses_max_size_bytes &&
      addresses_page_size_bytes == o.addresses_page_size_bytes &&
      addresses_page_cache_max_size == o.addresses_page_cache_max_size &&
      cluster_user == o.cluster_user &&
      cluster_password == o.cluster_password &&
      cluster_call_timeout == o.cluster_call_timeout &&
      cluster_call_failover_timeout == o.cluster_call_failover_timeout &&
      cluster_client_failure_check_period == o.cluster_client_failure_check_period &&
      cluster_notification_attempts == o.cluster_notification_attempts &&
      cluster_notification_interval == o.cluster_notification_interval &&
      id_cache_size == o.id_cache_size &&
      cluster_confirmation_window_size == o.cluster_confirmation_window_size &&
      cluster_connection_ttl == o.cluster_connection_ttl &&
      cluster_duplicate_detection == o.cluster_duplicate_detection &&
      cluster_initial_connect_attempts == o.cluster_initial_connect_attempts &&
      cluster_max_retry_interval == o.cluster_max_retry_interval &&
      cluster_min_large_message_size == o.cluster_min_large_message_size &&
      cluster_producer_window_size == o.cluster_producer_window_size &&
      cluster_reconnect_attempts == o.cluster_reconnect_attempts &&
      cluster_retry_interval == o.cluster_retry_interval &&
      cluster_retry_interval_multiplier == o.cluster_retry_interval_multiplier
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type



391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb', line 391

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



457
458
459
460
461
462
463
464
465
466
467
468
469
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb', line 457

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



370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb', line 370

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

See Also:

  • `==` method


357
358
359
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb', line 357

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.



363
364
365
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb', line 363

def hash
  [service_ranking, global_size, max_disk_usage, persistence_enabled, thread_pool_max_size, scheduled_thread_pool_max_size, graceful_shutdown_timeout, queues, topics, addresses_max_delivery_attempts, addresses_expiry_delay, addresses_address_full_message_policy, addresses_max_size_bytes, addresses_page_size_bytes, addresses_page_cache_max_size, cluster_user, cluster_password, cluster_call_timeout, cluster_call_failover_timeout, cluster_client_failure_check_period, cluster_notification_attempts, cluster_notification_interval, id_cache_size, cluster_confirmation_window_size, cluster_connection_ttl, cluster_duplicate_detection, cluster_initial_connect_attempts, cluster_max_retry_interval, cluster_min_large_message_size, cluster_producer_window_size, cluster_reconnect_attempts, cluster_retry_interval, cluster_retry_interval_multiplier].hash
end

#list_invalid_propertiesObject

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



304
305
306
307
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb', line 304

def list_invalid_properties
  invalid_properties = Array.new
  invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)



437
438
439
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb', line 437

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash



443
444
445
446
447
448
449
450
451
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb', line 443

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



431
432
433
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb', line 431

def to_s
  to_hash.to_s
end

#valid?Boolean

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



311
312
313
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_screens_mq_activemq_impl_artemis_jms_provider_properties.rb', line 311

def valid?
  true
end