Class: SwaggerAemOsgiClient::ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties
- Inherits:
-
Object
- Object
- SwaggerAemOsgiClient::ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties
- Defined in:
- lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb
Instance Attribute Summary collapse
-
#allowed_attachment_types ⇒ Object
Returns the value of attribute allowed_attachment_types.
-
#attachment_type_blacklist ⇒ Object
Returns the value of attribute attachment_type_blacklist.
-
#batch_size ⇒ Object
Returns the value of attribute batch_size.
-
#count_update_pool_size ⇒ Object
Returns the value of attribute count_update_pool_size.
-
#failure_message_from ⇒ Object
Returns the value of attribute failure_message_from.
-
#failure_template_path ⇒ Object
Returns the value of attribute failure_template_path.
-
#field_whitelist ⇒ Object
Returns the value of attribute field_whitelist.
-
#inbox_path ⇒ Object
Returns the value of attribute inbox_path.
-
#max_retries ⇒ Object
Returns the value of attribute max_retries.
-
#max_total_attachment_size ⇒ Object
Returns the value of attribute max_total_attachment_size.
-
#max_total_recipients ⇒ Object
Returns the value of attribute max_total_recipients.
-
#message_box_size_limit ⇒ Object
Returns the value of attribute message_box_size_limit.
-
#message_count_limit ⇒ Object
Returns the value of attribute message_count_limit.
-
#message_properties ⇒ Object
Returns the value of attribute message_properties.
-
#min_wait_between_retries ⇒ Object
Returns the value of attribute min_wait_between_retries.
-
#notify_failure ⇒ Object
Returns the value of attribute notify_failure.
-
#sentitems_path ⇒ Object
Returns the value of attribute sentitems_path.
-
#service_selector ⇒ Object
Returns the value of attribute service_selector.
-
#support_attachments ⇒ Object
Returns the value of attribute support_attachments.
-
#support_group_messaging ⇒ Object
Returns the value of attribute support_group_messaging.
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 = {}) ⇒ ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties
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 = {}) ⇒ ComAdobeCqSocialMessagingClientEndpointsImplMessagingOperationProperties
Initializes the object
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 189 190 191 192 193 194 195 196 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 111 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?(:'message.properties') self. = attributes[:'message.properties'] end if attributes.has_key?(:'messageBoxSizeLimit') self. = attributes[:'messageBoxSizeLimit'] end if attributes.has_key?(:'messageCountLimit') self. = attributes[:'messageCountLimit'] end if attributes.has_key?(:'notifyFailure') self.notify_failure = attributes[:'notifyFailure'] end if attributes.has_key?(:'failureMessageFrom') self. = attributes[:'failureMessageFrom'] end if attributes.has_key?(:'failureTemplatePath') self.failure_template_path = attributes[:'failureTemplatePath'] end if attributes.has_key?(:'maxRetries') self.max_retries = attributes[:'maxRetries'] end if attributes.has_key?(:'minWaitBetweenRetries') self.min_wait_between_retries = attributes[:'minWaitBetweenRetries'] end if attributes.has_key?(:'countUpdatePoolSize') self.count_update_pool_size = attributes[:'countUpdatePoolSize'] end if attributes.has_key?(:'inbox.path') self.inbox_path = attributes[:'inbox.path'] end if attributes.has_key?(:'sentitems.path') self.sentitems_path = attributes[:'sentitems.path'] end if attributes.has_key?(:'supportAttachments') self. = attributes[:'supportAttachments'] end if attributes.has_key?(:'supportGroupMessaging') self.support_group_messaging = attributes[:'supportGroupMessaging'] end if attributes.has_key?(:'maxTotalRecipients') self.max_total_recipients = attributes[:'maxTotalRecipients'] end if attributes.has_key?(:'batchSize') self.batch_size = attributes[:'batchSize'] end if attributes.has_key?(:'maxTotalAttachmentSize') self. = attributes[:'maxTotalAttachmentSize'] end if attributes.has_key?(:'attachmentTypeBlacklist') self. = attributes[:'attachmentTypeBlacklist'] end if attributes.has_key?(:'allowedAttachmentTypes') self. = attributes[:'allowedAttachmentTypes'] end if attributes.has_key?(:'serviceSelector') self.service_selector = attributes[:'serviceSelector'] end if attributes.has_key?(:'fieldWhitelist') self.field_whitelist = attributes[:'fieldWhitelist'] end end |
Instance Attribute Details
#allowed_attachment_types ⇒ Object
Returns the value of attribute allowed_attachment_types.
51 52 53 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 51 def @allowed_attachment_types end |
#attachment_type_blacklist ⇒ Object
Returns the value of attribute attachment_type_blacklist.
49 50 51 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 49 def @attachment_type_blacklist end |
#batch_size ⇒ Object
Returns the value of attribute batch_size.
45 46 47 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 45 def batch_size @batch_size end |
#count_update_pool_size ⇒ Object
Returns the value of attribute count_update_pool_size.
33 34 35 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 33 def count_update_pool_size @count_update_pool_size end |
#failure_message_from ⇒ Object
Returns the value of attribute failure_message_from.
25 26 27 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 25 def @failure_message_from end |
#failure_template_path ⇒ Object
Returns the value of attribute failure_template_path.
27 28 29 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 27 def failure_template_path @failure_template_path end |
#field_whitelist ⇒ Object
Returns the value of attribute field_whitelist.
55 56 57 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 55 def field_whitelist @field_whitelist end |
#inbox_path ⇒ Object
Returns the value of attribute inbox_path.
35 36 37 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 35 def inbox_path @inbox_path end |
#max_retries ⇒ Object
Returns the value of attribute max_retries.
29 30 31 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 29 def max_retries @max_retries end |
#max_total_attachment_size ⇒ Object
Returns the value of attribute max_total_attachment_size.
47 48 49 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 47 def @max_total_attachment_size end |
#max_total_recipients ⇒ Object
Returns the value of attribute max_total_recipients.
43 44 45 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 43 def max_total_recipients @max_total_recipients end |
#message_box_size_limit ⇒ Object
Returns the value of attribute message_box_size_limit.
19 20 21 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 19 def @message_box_size_limit end |
#message_count_limit ⇒ Object
Returns the value of attribute message_count_limit.
21 22 23 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 21 def @message_count_limit end |
#message_properties ⇒ Object
Returns the value of attribute message_properties.
17 18 19 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 17 def @message_properties end |
#min_wait_between_retries ⇒ Object
Returns the value of attribute min_wait_between_retries.
31 32 33 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 31 def min_wait_between_retries @min_wait_between_retries end |
#notify_failure ⇒ Object
Returns the value of attribute notify_failure.
23 24 25 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 23 def notify_failure @notify_failure end |
#sentitems_path ⇒ Object
Returns the value of attribute sentitems_path.
37 38 39 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 37 def sentitems_path @sentitems_path end |
#service_selector ⇒ Object
Returns the value of attribute service_selector.
53 54 55 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 53 def service_selector @service_selector end |
#support_attachments ⇒ Object
Returns the value of attribute support_attachments.
39 40 41 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 39 def @support_attachments end |
#support_group_messaging ⇒ Object
Returns the value of attribute support_group_messaging.
41 42 43 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 41 def support_group_messaging @support_group_messaging end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 58 def self.attribute_map { :'message_properties' => :'message.properties', :'message_box_size_limit' => :'messageBoxSizeLimit', :'message_count_limit' => :'messageCountLimit', :'notify_failure' => :'notifyFailure', :'failure_message_from' => :'failureMessageFrom', :'failure_template_path' => :'failureTemplatePath', :'max_retries' => :'maxRetries', :'min_wait_between_retries' => :'minWaitBetweenRetries', :'count_update_pool_size' => :'countUpdatePoolSize', :'inbox_path' => :'inbox.path', :'sentitems_path' => :'sentitems.path', :'support_attachments' => :'supportAttachments', :'support_group_messaging' => :'supportGroupMessaging', :'max_total_recipients' => :'maxTotalRecipients', :'batch_size' => :'batchSize', :'max_total_attachment_size' => :'maxTotalAttachmentSize', :'attachment_type_blacklist' => :'attachmentTypeBlacklist', :'allowed_attachment_types' => :'allowedAttachmentTypes', :'service_selector' => :'serviceSelector', :'field_whitelist' => :'fieldWhitelist' } end |
.openapi_types ⇒ Object
Attribute type mapping.
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 84 def self.openapi_types { :'message_properties' => :'ConfigNodePropertyArray', :'message_box_size_limit' => :'ConfigNodePropertyInteger', :'message_count_limit' => :'ConfigNodePropertyInteger', :'notify_failure' => :'ConfigNodePropertyBoolean', :'failure_message_from' => :'ConfigNodePropertyString', :'failure_template_path' => :'ConfigNodePropertyString', :'max_retries' => :'ConfigNodePropertyInteger', :'min_wait_between_retries' => :'ConfigNodePropertyInteger', :'count_update_pool_size' => :'ConfigNodePropertyInteger', :'inbox_path' => :'ConfigNodePropertyString', :'sentitems_path' => :'ConfigNodePropertyString', :'support_attachments' => :'ConfigNodePropertyBoolean', :'support_group_messaging' => :'ConfigNodePropertyBoolean', :'max_total_recipients' => :'ConfigNodePropertyInteger', :'batch_size' => :'ConfigNodePropertyInteger', :'max_total_attachment_size' => :'ConfigNodePropertyInteger', :'attachment_type_blacklist' => :'ConfigNodePropertyArray', :'allowed_attachment_types' => :'ConfigNodePropertyArray', :'service_selector' => :'ConfigNodePropertyString', :'field_whitelist' => :'ConfigNodePropertyArray' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 213 def ==(o) return true if self.equal?(o) self.class == o.class && == o. && == o. && == o. && notify_failure == o.notify_failure && == o. && failure_template_path == o.failure_template_path && max_retries == o.max_retries && min_wait_between_retries == o.min_wait_between_retries && count_update_pool_size == o.count_update_pool_size && inbox_path == o.inbox_path && sentitems_path == o.sentitems_path && == o. && support_group_messaging == o.support_group_messaging && max_total_recipients == o.max_total_recipients && batch_size == o.batch_size && == o. && == o. && == o. && service_selector == o.service_selector && field_whitelist == o.field_whitelist end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
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 302 303 304 305 306 307 308 309 310 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 274 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
340 341 342 343 344 345 346 347 348 349 350 351 352 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 340 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
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 253 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
240 241 242 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 240 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
246 247 248 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 246 def hash [, , , notify_failure, , failure_template_path, max_retries, min_wait_between_retries, count_update_pool_size, inbox_path, sentitems_path, , support_group_messaging, max_total_recipients, batch_size, , , , service_selector, field_whitelist].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
200 201 202 203 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 200 def list_invalid_properties invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
320 321 322 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 320 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
326 327 328 329 330 331 332 333 334 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 326 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
314 315 316 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 314 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
207 208 209 |
# File 'lib/swagger_aem_osgi/models/com_adobe_cq_social_messaging_client_endpoints_impl_messaging_operation_properties.rb', line 207 def valid? true end |