Class: SwaggerAemOsgiClient::OrgApacheSlingDiscoveryOakConfigProperties
- Inherits:
-
Object
- Object
- SwaggerAemOsgiClient::OrgApacheSlingDiscoveryOakConfigProperties
- Defined in:
- lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb
Instance Attribute Summary collapse
-
#auto_stop_local_loop_enabled ⇒ Object
Returns the value of attribute auto_stop_local_loop_enabled.
-
#backoff_stable_factor ⇒ Object
Returns the value of attribute backoff_stable_factor.
-
#backoff_standby_factor ⇒ Object
Returns the value of attribute backoff_standby_factor.
-
#cluster_sync_service_interval ⇒ Object
Returns the value of attribute cluster_sync_service_interval.
-
#cluster_sync_service_timeout ⇒ Object
Returns the value of attribute cluster_sync_service_timeout.
-
#connector_ping_interval ⇒ Object
Returns the value of attribute connector_ping_interval.
-
#connector_ping_timeout ⇒ Object
Returns the value of attribute connector_ping_timeout.
-
#discovery_lite_check_interval ⇒ Object
Returns the value of attribute discovery_lite_check_interval.
-
#enable_encryption ⇒ Object
Returns the value of attribute enable_encryption.
-
#enable_sync_token ⇒ Object
Returns the value of attribute enable_sync_token.
-
#gzip_connector_requests_enabled ⇒ Object
Returns the value of attribute gzip_connector_requests_enabled.
-
#hmac_enabled ⇒ Object
Returns the value of attribute hmac_enabled.
-
#hmac_shared_key_ttl ⇒ Object
Returns the value of attribute hmac_shared_key_ttl.
-
#min_event_delay ⇒ Object
Returns the value of attribute min_event_delay.
-
#shared_key ⇒ Object
Returns the value of attribute shared_key.
-
#so_timeout ⇒ Object
Returns the value of attribute so_timeout.
-
#socket_connect_timeout ⇒ Object
Returns the value of attribute socket_connect_timeout.
-
#topology_connector_urls ⇒ Object
Returns the value of attribute topology_connector_urls.
-
#topology_connector_whitelist ⇒ Object
Returns the value of attribute topology_connector_whitelist.
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 = {}) ⇒ OrgApacheSlingDiscoveryOakConfigProperties
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 = {}) ⇒ OrgApacheSlingDiscoveryOakConfigProperties
Initializes the object
107 108 109 110 111 112 113 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 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 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 107 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?(:'connectorPingTimeout') self.connector_ping_timeout = attributes[:'connectorPingTimeout'] end if attributes.has_key?(:'connectorPingInterval') self.connector_ping_interval = attributes[:'connectorPingInterval'] end if attributes.has_key?(:'discoveryLiteCheckInterval') self.discovery_lite_check_interval = attributes[:'discoveryLiteCheckInterval'] end if attributes.has_key?(:'clusterSyncServiceTimeout') self.cluster_sync_service_timeout = attributes[:'clusterSyncServiceTimeout'] end if attributes.has_key?(:'clusterSyncServiceInterval') self.cluster_sync_service_interval = attributes[:'clusterSyncServiceInterval'] end if attributes.has_key?(:'enableSyncToken') self.enable_sync_token = attributes[:'enableSyncToken'] end if attributes.has_key?(:'minEventDelay') self.min_event_delay = attributes[:'minEventDelay'] end if attributes.has_key?(:'socketConnectTimeout') self.socket_connect_timeout = attributes[:'socketConnectTimeout'] end if attributes.has_key?(:'soTimeout') self.so_timeout = attributes[:'soTimeout'] end if attributes.has_key?(:'topologyConnectorUrls') self.topology_connector_urls = attributes[:'topologyConnectorUrls'] end if attributes.has_key?(:'topologyConnectorWhitelist') self.topology_connector_whitelist = attributes[:'topologyConnectorWhitelist'] end if attributes.has_key?(:'autoStopLocalLoopEnabled') self.auto_stop_local_loop_enabled = attributes[:'autoStopLocalLoopEnabled'] end if attributes.has_key?(:'gzipConnectorRequestsEnabled') self.gzip_connector_requests_enabled = attributes[:'gzipConnectorRequestsEnabled'] end if attributes.has_key?(:'hmacEnabled') self.hmac_enabled = attributes[:'hmacEnabled'] end if attributes.has_key?(:'enableEncryption') self.enable_encryption = attributes[:'enableEncryption'] end if attributes.has_key?(:'sharedKey') self.shared_key = attributes[:'sharedKey'] end if attributes.has_key?(:'hmacSharedKeyTTL') self.hmac_shared_key_ttl = attributes[:'hmacSharedKeyTTL'] end if attributes.has_key?(:'backoffStandbyFactor') self.backoff_standby_factor = attributes[:'backoffStandbyFactor'] end if attributes.has_key?(:'backoffStableFactor') self.backoff_stable_factor = attributes[:'backoffStableFactor'] end end |
Instance Attribute Details
#auto_stop_local_loop_enabled ⇒ Object
Returns the value of attribute auto_stop_local_loop_enabled.
39 40 41 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 39 def auto_stop_local_loop_enabled @auto_stop_local_loop_enabled end |
#backoff_stable_factor ⇒ Object
Returns the value of attribute backoff_stable_factor.
53 54 55 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 53 def backoff_stable_factor @backoff_stable_factor end |
#backoff_standby_factor ⇒ Object
Returns the value of attribute backoff_standby_factor.
51 52 53 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 51 def backoff_standby_factor @backoff_standby_factor end |
#cluster_sync_service_interval ⇒ Object
Returns the value of attribute cluster_sync_service_interval.
25 26 27 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 25 def cluster_sync_service_interval @cluster_sync_service_interval end |
#cluster_sync_service_timeout ⇒ Object
Returns the value of attribute cluster_sync_service_timeout.
23 24 25 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 23 def cluster_sync_service_timeout @cluster_sync_service_timeout end |
#connector_ping_interval ⇒ Object
Returns the value of attribute connector_ping_interval.
19 20 21 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 19 def connector_ping_interval @connector_ping_interval end |
#connector_ping_timeout ⇒ Object
Returns the value of attribute connector_ping_timeout.
17 18 19 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 17 def connector_ping_timeout @connector_ping_timeout end |
#discovery_lite_check_interval ⇒ Object
Returns the value of attribute discovery_lite_check_interval.
21 22 23 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 21 def discovery_lite_check_interval @discovery_lite_check_interval end |
#enable_encryption ⇒ Object
Returns the value of attribute enable_encryption.
45 46 47 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 45 def enable_encryption @enable_encryption end |
#enable_sync_token ⇒ Object
Returns the value of attribute enable_sync_token.
27 28 29 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 27 def enable_sync_token @enable_sync_token end |
#gzip_connector_requests_enabled ⇒ Object
Returns the value of attribute gzip_connector_requests_enabled.
41 42 43 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 41 def gzip_connector_requests_enabled @gzip_connector_requests_enabled end |
#hmac_enabled ⇒ Object
Returns the value of attribute hmac_enabled.
43 44 45 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 43 def hmac_enabled @hmac_enabled end |
#hmac_shared_key_ttl ⇒ Object
Returns the value of attribute hmac_shared_key_ttl.
49 50 51 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 49 def hmac_shared_key_ttl @hmac_shared_key_ttl end |
#min_event_delay ⇒ Object
Returns the value of attribute min_event_delay.
29 30 31 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 29 def min_event_delay @min_event_delay end |
#shared_key ⇒ Object
Returns the value of attribute shared_key.
47 48 49 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 47 def shared_key @shared_key end |
#so_timeout ⇒ Object
Returns the value of attribute so_timeout.
33 34 35 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 33 def so_timeout @so_timeout end |
#socket_connect_timeout ⇒ Object
Returns the value of attribute socket_connect_timeout.
31 32 33 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 31 def socket_connect_timeout @socket_connect_timeout end |
#topology_connector_urls ⇒ Object
Returns the value of attribute topology_connector_urls.
35 36 37 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 35 def topology_connector_urls @topology_connector_urls end |
#topology_connector_whitelist ⇒ Object
Returns the value of attribute topology_connector_whitelist.
37 38 39 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 37 def topology_connector_whitelist @topology_connector_whitelist end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 56 def self.attribute_map { :'connector_ping_timeout' => :'connectorPingTimeout', :'connector_ping_interval' => :'connectorPingInterval', :'discovery_lite_check_interval' => :'discoveryLiteCheckInterval', :'cluster_sync_service_timeout' => :'clusterSyncServiceTimeout', :'cluster_sync_service_interval' => :'clusterSyncServiceInterval', :'enable_sync_token' => :'enableSyncToken', :'min_event_delay' => :'minEventDelay', :'socket_connect_timeout' => :'socketConnectTimeout', :'so_timeout' => :'soTimeout', :'topology_connector_urls' => :'topologyConnectorUrls', :'topology_connector_whitelist' => :'topologyConnectorWhitelist', :'auto_stop_local_loop_enabled' => :'autoStopLocalLoopEnabled', :'gzip_connector_requests_enabled' => :'gzipConnectorRequestsEnabled', :'hmac_enabled' => :'hmacEnabled', :'enable_encryption' => :'enableEncryption', :'shared_key' => :'sharedKey', :'hmac_shared_key_ttl' => :'hmacSharedKeyTTL', :'backoff_standby_factor' => :'backoffStandbyFactor', :'backoff_stable_factor' => :'backoffStableFactor' } end |
.openapi_types ⇒ Object
Attribute type mapping.
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 81 def self.openapi_types { :'connector_ping_timeout' => :'ConfigNodePropertyInteger', :'connector_ping_interval' => :'ConfigNodePropertyInteger', :'discovery_lite_check_interval' => :'ConfigNodePropertyInteger', :'cluster_sync_service_timeout' => :'ConfigNodePropertyInteger', :'cluster_sync_service_interval' => :'ConfigNodePropertyInteger', :'enable_sync_token' => :'ConfigNodePropertyBoolean', :'min_event_delay' => :'ConfigNodePropertyInteger', :'socket_connect_timeout' => :'ConfigNodePropertyInteger', :'so_timeout' => :'ConfigNodePropertyInteger', :'topology_connector_urls' => :'ConfigNodePropertyArray', :'topology_connector_whitelist' => :'ConfigNodePropertyArray', :'auto_stop_local_loop_enabled' => :'ConfigNodePropertyBoolean', :'gzip_connector_requests_enabled' => :'ConfigNodePropertyBoolean', :'hmac_enabled' => :'ConfigNodePropertyBoolean', :'enable_encryption' => :'ConfigNodePropertyBoolean', :'shared_key' => :'ConfigNodePropertyString', :'hmac_shared_key_ttl' => :'ConfigNodePropertyInteger', :'backoff_standby_factor' => :'ConfigNodePropertyString', :'backoff_stable_factor' => :'ConfigNodePropertyString' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 205 def ==(o) return true if self.equal?(o) self.class == o.class && connector_ping_timeout == o.connector_ping_timeout && connector_ping_interval == o.connector_ping_interval && discovery_lite_check_interval == o.discovery_lite_check_interval && cluster_sync_service_timeout == o.cluster_sync_service_timeout && cluster_sync_service_interval == o.cluster_sync_service_interval && enable_sync_token == o.enable_sync_token && min_event_delay == o.min_event_delay && socket_connect_timeout == o.socket_connect_timeout && so_timeout == o.so_timeout && topology_connector_urls == o.topology_connector_urls && topology_connector_whitelist == o.topology_connector_whitelist && auto_stop_local_loop_enabled == o.auto_stop_local_loop_enabled && gzip_connector_requests_enabled == o.gzip_connector_requests_enabled && hmac_enabled == o.hmac_enabled && enable_encryption == o.enable_encryption && shared_key == o.shared_key && hmac_shared_key_ttl == o.hmac_shared_key_ttl && backoff_standby_factor == o.backoff_standby_factor && backoff_stable_factor == o.backoff_stable_factor end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
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 301 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 265 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
331 332 333 334 335 336 337 338 339 340 341 342 343 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 331 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
244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 244 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
231 232 233 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 231 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
237 238 239 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 237 def hash [connector_ping_timeout, connector_ping_interval, discovery_lite_check_interval, cluster_sync_service_timeout, cluster_sync_service_interval, enable_sync_token, min_event_delay, socket_connect_timeout, so_timeout, topology_connector_urls, topology_connector_whitelist, auto_stop_local_loop_enabled, gzip_connector_requests_enabled, hmac_enabled, enable_encryption, shared_key, hmac_shared_key_ttl, backoff_standby_factor, backoff_stable_factor].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
192 193 194 195 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 192 def list_invalid_properties invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
311 312 313 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 311 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
317 318 319 320 321 322 323 324 325 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 317 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
305 306 307 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 305 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
199 200 201 |
# File 'lib/swagger_aem_osgi/models/org_apache_sling_discovery_oak_config_properties.rb', line 199 def valid? true end |