Class: SwaggerAemOsgiClient::ComAdobeGraniteUiClientlibsImplHtmlLibraryManagerImplProperties

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ComAdobeGraniteUiClientlibsImplHtmlLibraryManagerImplProperties

Initializes the object

Parameters:

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

    Model attributes in the form of hash



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_granite_ui_clientlibs_impl_html_library_manager_impl_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?(:'htmllibmanager.timing')
    self.htmllibmanager_timing = attributes[:'htmllibmanager.timing']
  end

  if attributes.has_key?(:'htmllibmanager.debug.init.js')
    self.htmllibmanager_debug_init_js = attributes[:'htmllibmanager.debug.init.js']
  end

  if attributes.has_key?(:'htmllibmanager.minify')
    self.htmllibmanager_minify = attributes[:'htmllibmanager.minify']
  end

  if attributes.has_key?(:'htmllibmanager.debug')
    self.htmllibmanager_debug = attributes[:'htmllibmanager.debug']
  end

  if attributes.has_key?(:'htmllibmanager.gzip')
    self.htmllibmanager_gzip = attributes[:'htmllibmanager.gzip']
  end

  if attributes.has_key?(:'htmllibmanager.maxDataUriSize')
    self.htmllibmanager_max_data_uri_size = attributes[:'htmllibmanager.maxDataUriSize']
  end

  if attributes.has_key?(:'htmllibmanager.maxage')
    self.htmllibmanager_maxage = attributes[:'htmllibmanager.maxage']
  end

  if attributes.has_key?(:'htmllibmanager.forceCQUrlInfo')
    self.htmllibmanager_force_cq_url_info = attributes[:'htmllibmanager.forceCQUrlInfo']
  end

  if attributes.has_key?(:'htmllibmanager.defaultthemename')
    self.htmllibmanager_defaultthemename = attributes[:'htmllibmanager.defaultthemename']
  end

  if attributes.has_key?(:'htmllibmanager.defaultuserthemename')
    self.htmllibmanager_defaultuserthemename = attributes[:'htmllibmanager.defaultuserthemename']
  end

  if attributes.has_key?(:'htmllibmanager.clientmanager')
    self.htmllibmanager_clientmanager = attributes[:'htmllibmanager.clientmanager']
  end

  if attributes.has_key?(:'htmllibmanager.path.list')
    self.htmllibmanager_path_list = attributes[:'htmllibmanager.path.list']
  end

  if attributes.has_key?(:'htmllibmanager.excluded.path.list')
    self.htmllibmanager_excluded_path_list = attributes[:'htmllibmanager.excluded.path.list']
  end

  if attributes.has_key?(:'htmllibmanager.processor.js')
    self.htmllibmanager_processor_js = attributes[:'htmllibmanager.processor.js']
  end

  if attributes.has_key?(:'htmllibmanager.processor.css')
    self.htmllibmanager_processor_css = attributes[:'htmllibmanager.processor.css']
  end

  if attributes.has_key?(:'htmllibmanager.longcache.patterns')
    self.htmllibmanager_longcache_patterns = attributes[:'htmllibmanager.longcache.patterns']
  end

  if attributes.has_key?(:'htmllibmanager.longcache.format')
    self.htmllibmanager_longcache_format = attributes[:'htmllibmanager.longcache.format']
  end

  if attributes.has_key?(:'htmllibmanager.useFileSystemOutputCache')
    self.htmllibmanager_use_file_system_output_cache = attributes[:'htmllibmanager.useFileSystemOutputCache']
  end

  if attributes.has_key?(:'htmllibmanager.fileSystemOutputCacheLocation')
    self.htmllibmanager_file_system_output_cache_location = attributes[:'htmllibmanager.fileSystemOutputCacheLocation']
  end

  if attributes.has_key?(:'htmllibmanager.disable.replacement')
    self.htmllibmanager_disable_replacement = attributes[:'htmllibmanager.disable.replacement']
  end
end

Instance Attribute Details

#htmllibmanager_clientmanagerObject

Returns the value of attribute htmllibmanager_clientmanager.



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

def htmllibmanager_clientmanager
  @htmllibmanager_clientmanager
end

#htmllibmanager_debugObject

Returns the value of attribute htmllibmanager_debug.



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

def htmllibmanager_debug
  @htmllibmanager_debug
end

#htmllibmanager_debug_init_jsObject

Returns the value of attribute htmllibmanager_debug_init_js.



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

def htmllibmanager_debug_init_js
  @htmllibmanager_debug_init_js
end

#htmllibmanager_defaultthemenameObject

Returns the value of attribute htmllibmanager_defaultthemename.



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

def htmllibmanager_defaultthemename
  @htmllibmanager_defaultthemename
end

#htmllibmanager_defaultuserthemenameObject

Returns the value of attribute htmllibmanager_defaultuserthemename.



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

def htmllibmanager_defaultuserthemename
  @htmllibmanager_defaultuserthemename
end

#htmllibmanager_disable_replacementObject

Returns the value of attribute htmllibmanager_disable_replacement.



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

def htmllibmanager_disable_replacement
  @htmllibmanager_disable_replacement
end

#htmllibmanager_excluded_path_listObject

Returns the value of attribute htmllibmanager_excluded_path_list.



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

def htmllibmanager_excluded_path_list
  @htmllibmanager_excluded_path_list
end

#htmllibmanager_file_system_output_cache_locationObject

Returns the value of attribute htmllibmanager_file_system_output_cache_location.



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

def htmllibmanager_file_system_output_cache_location
  @htmllibmanager_file_system_output_cache_location
end

#htmllibmanager_force_cq_url_infoObject

Returns the value of attribute htmllibmanager_force_cq_url_info.



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

def htmllibmanager_force_cq_url_info
  @htmllibmanager_force_cq_url_info
end

#htmllibmanager_gzipObject

Returns the value of attribute htmllibmanager_gzip.



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

def htmllibmanager_gzip
  @htmllibmanager_gzip
end

#htmllibmanager_longcache_formatObject

Returns the value of attribute htmllibmanager_longcache_format.



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

def htmllibmanager_longcache_format
  @htmllibmanager_longcache_format
end

#htmllibmanager_longcache_patternsObject

Returns the value of attribute htmllibmanager_longcache_patterns.



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

def htmllibmanager_longcache_patterns
  @htmllibmanager_longcache_patterns
end

#htmllibmanager_max_data_uri_sizeObject

Returns the value of attribute htmllibmanager_max_data_uri_size.



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

def htmllibmanager_max_data_uri_size
  @htmllibmanager_max_data_uri_size
end

#htmllibmanager_maxageObject

Returns the value of attribute htmllibmanager_maxage.



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

def htmllibmanager_maxage
  @htmllibmanager_maxage
end

#htmllibmanager_minifyObject

Returns the value of attribute htmllibmanager_minify.



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

def htmllibmanager_minify
  @htmllibmanager_minify
end

#htmllibmanager_path_listObject

Returns the value of attribute htmllibmanager_path_list.



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

def htmllibmanager_path_list
  @htmllibmanager_path_list
end

#htmllibmanager_processor_cssObject

Returns the value of attribute htmllibmanager_processor_css.



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

def htmllibmanager_processor_css
  @htmllibmanager_processor_css
end

#htmllibmanager_processor_jsObject

Returns the value of attribute htmllibmanager_processor_js.



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

def htmllibmanager_processor_js
  @htmllibmanager_processor_js
end

#htmllibmanager_timingObject

Returns the value of attribute htmllibmanager_timing.



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

def htmllibmanager_timing
  @htmllibmanager_timing
end

#htmllibmanager_use_file_system_output_cacheObject

Returns the value of attribute htmllibmanager_use_file_system_output_cache.



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

def htmllibmanager_use_file_system_output_cache
  @htmllibmanager_use_file_system_output_cache
end

Class Method Details

.attribute_mapObject

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_granite_ui_clientlibs_impl_html_library_manager_impl_properties.rb', line 58

def self.attribute_map
  {
    :'htmllibmanager_timing' => :'htmllibmanager.timing',
    :'htmllibmanager_debug_init_js' => :'htmllibmanager.debug.init.js',
    :'htmllibmanager_minify' => :'htmllibmanager.minify',
    :'htmllibmanager_debug' => :'htmllibmanager.debug',
    :'htmllibmanager_gzip' => :'htmllibmanager.gzip',
    :'htmllibmanager_max_data_uri_size' => :'htmllibmanager.maxDataUriSize',
    :'htmllibmanager_maxage' => :'htmllibmanager.maxage',
    :'htmllibmanager_force_cq_url_info' => :'htmllibmanager.forceCQUrlInfo',
    :'htmllibmanager_defaultthemename' => :'htmllibmanager.defaultthemename',
    :'htmllibmanager_defaultuserthemename' => :'htmllibmanager.defaultuserthemename',
    :'htmllibmanager_clientmanager' => :'htmllibmanager.clientmanager',
    :'htmllibmanager_path_list' => :'htmllibmanager.path.list',
    :'htmllibmanager_excluded_path_list' => :'htmllibmanager.excluded.path.list',
    :'htmllibmanager_processor_js' => :'htmllibmanager.processor.js',
    :'htmllibmanager_processor_css' => :'htmllibmanager.processor.css',
    :'htmllibmanager_longcache_patterns' => :'htmllibmanager.longcache.patterns',
    :'htmllibmanager_longcache_format' => :'htmllibmanager.longcache.format',
    :'htmllibmanager_use_file_system_output_cache' => :'htmllibmanager.useFileSystemOutputCache',
    :'htmllibmanager_file_system_output_cache_location' => :'htmllibmanager.fileSystemOutputCacheLocation',
    :'htmllibmanager_disable_replacement' => :'htmllibmanager.disable.replacement'
  }
end

.openapi_typesObject

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_granite_ui_clientlibs_impl_html_library_manager_impl_properties.rb', line 84

def self.openapi_types
  {
    :'htmllibmanager_timing' => :'ConfigNodePropertyBoolean',
    :'htmllibmanager_debug_init_js' => :'ConfigNodePropertyString',
    :'htmllibmanager_minify' => :'ConfigNodePropertyBoolean',
    :'htmllibmanager_debug' => :'ConfigNodePropertyBoolean',
    :'htmllibmanager_gzip' => :'ConfigNodePropertyBoolean',
    :'htmllibmanager_max_data_uri_size' => :'ConfigNodePropertyInteger',
    :'htmllibmanager_maxage' => :'ConfigNodePropertyInteger',
    :'htmllibmanager_force_cq_url_info' => :'ConfigNodePropertyBoolean',
    :'htmllibmanager_defaultthemename' => :'ConfigNodePropertyString',
    :'htmllibmanager_defaultuserthemename' => :'ConfigNodePropertyString',
    :'htmllibmanager_clientmanager' => :'ConfigNodePropertyString',
    :'htmllibmanager_path_list' => :'ConfigNodePropertyArray',
    :'htmllibmanager_excluded_path_list' => :'ConfigNodePropertyArray',
    :'htmllibmanager_processor_js' => :'ConfigNodePropertyArray',
    :'htmllibmanager_processor_css' => :'ConfigNodePropertyArray',
    :'htmllibmanager_longcache_patterns' => :'ConfigNodePropertyArray',
    :'htmllibmanager_longcache_format' => :'ConfigNodePropertyString',
    :'htmllibmanager_use_file_system_output_cache' => :'ConfigNodePropertyBoolean',
    :'htmllibmanager_file_system_output_cache_location' => :'ConfigNodePropertyString',
    :'htmllibmanager_disable_replacement' => :'ConfigNodePropertyArray'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



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_granite_ui_clientlibs_impl_html_library_manager_impl_properties.rb', line 213

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      htmllibmanager_timing == o.htmllibmanager_timing &&
      htmllibmanager_debug_init_js == o.htmllibmanager_debug_init_js &&
      htmllibmanager_minify == o.htmllibmanager_minify &&
      htmllibmanager_debug == o.htmllibmanager_debug &&
      htmllibmanager_gzip == o.htmllibmanager_gzip &&
      htmllibmanager_max_data_uri_size == o.htmllibmanager_max_data_uri_size &&
      htmllibmanager_maxage == o.htmllibmanager_maxage &&
      htmllibmanager_force_cq_url_info == o.htmllibmanager_force_cq_url_info &&
      htmllibmanager_defaultthemename == o.htmllibmanager_defaultthemename &&
      htmllibmanager_defaultuserthemename == o.htmllibmanager_defaultuserthemename &&
      htmllibmanager_clientmanager == o.htmllibmanager_clientmanager &&
      htmllibmanager_path_list == o.htmllibmanager_path_list &&
      htmllibmanager_excluded_path_list == o.htmllibmanager_excluded_path_list &&
      htmllibmanager_processor_js == o.htmllibmanager_processor_js &&
      htmllibmanager_processor_css == o.htmllibmanager_processor_css &&
      htmllibmanager_longcache_patterns == o.htmllibmanager_longcache_patterns &&
      htmllibmanager_longcache_format == o.htmllibmanager_longcache_format &&
      htmllibmanager_use_file_system_output_cache == o.htmllibmanager_use_file_system_output_cache &&
      htmllibmanager_file_system_output_cache_location == o.htmllibmanager_file_system_output_cache_location &&
      htmllibmanager_disable_replacement == o.htmllibmanager_disable_replacement
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



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_granite_ui_clientlibs_impl_html_library_manager_impl_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

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



340
341
342
343
344
345
346
347
348
349
350
351
352
# File 'lib/swagger_aem_osgi/models/com_adobe_granite_ui_clientlibs_impl_html_library_manager_impl_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

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
# File 'lib/swagger_aem_osgi/models/com_adobe_granite_ui_clientlibs_impl_html_library_manager_impl_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

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


240
241
242
# File 'lib/swagger_aem_osgi/models/com_adobe_granite_ui_clientlibs_impl_html_library_manager_impl_properties.rb', line 240

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



246
247
248
# File 'lib/swagger_aem_osgi/models/com_adobe_granite_ui_clientlibs_impl_html_library_manager_impl_properties.rb', line 246

def hash
  [htmllibmanager_timing, htmllibmanager_debug_init_js, htmllibmanager_minify, htmllibmanager_debug, htmllibmanager_gzip, htmllibmanager_max_data_uri_size, htmllibmanager_maxage, htmllibmanager_force_cq_url_info, htmllibmanager_defaultthemename, htmllibmanager_defaultuserthemename, htmllibmanager_clientmanager, htmllibmanager_path_list, htmllibmanager_excluded_path_list, htmllibmanager_processor_js, htmllibmanager_processor_css, htmllibmanager_longcache_patterns, htmllibmanager_longcache_format, htmllibmanager_use_file_system_output_cache, htmllibmanager_file_system_output_cache_location, htmllibmanager_disable_replacement].hash
end

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



200
201
202
203
# File 'lib/swagger_aem_osgi/models/com_adobe_granite_ui_clientlibs_impl_html_library_manager_impl_properties.rb', line 200

def list_invalid_properties
  invalid_properties = Array.new
  invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



320
321
322
# File 'lib/swagger_aem_osgi/models/com_adobe_granite_ui_clientlibs_impl_html_library_manager_impl_properties.rb', line 320

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



326
327
328
329
330
331
332
333
334
# File 'lib/swagger_aem_osgi/models/com_adobe_granite_ui_clientlibs_impl_html_library_manager_impl_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_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



314
315
316
# File 'lib/swagger_aem_osgi/models/com_adobe_granite_ui_clientlibs_impl_html_library_manager_impl_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

Returns:

  • (Boolean)

    true if the model is valid



207
208
209
# File 'lib/swagger_aem_osgi/models/com_adobe_granite_ui_clientlibs_impl_html_library_manager_impl_properties.rb', line 207

def valid?
  true
end