blob: b6a50a9cfe71244fc4d9427f0ee7bc73817cd9ab [file] [log] [blame]
#
#
#
# Generated by <a href="http://enunciate.webcohesion.com">Enunciate</a>.
#
require 'json'
# adding necessary json serialization methods to standard classes.
class Object
def to_jaxb_json_hash
return self
end
def self.from_json o
return o
end
end
class String
def self.from_json o
return o
end
end
class Boolean
def self.from_json o
return o
end
end
class Numeric
def self.from_json o
return o
end
end
class Time
#json time is represented as number of milliseconds since epoch
def to_jaxb_json_hash
return (to_i * 1000) + (usec / 1000)
end
def self.from_json o
if o.nil?
return nil
else
return Time.at(o / 1000, (o % 1000) * 1000)
end
end
end
class Array
def to_jaxb_json_hash
a = Array.new
each { | _item | a.push _item.to_jaxb_json_hash }
return a
end
end
class Hash
def to_jaxb_json_hash
h = Hash.new
each { | _key, _value | h[_key.to_jaxb_json_hash] = _value.to_jaxb_json_hash }
return h
end
end
module EnunciateHelpers
LAMB_CLASS_AWARE = ->(_item) do
java_clazz = _item['@class']
clazz_array_parts = java_clazz.split('.')
short_clazz = clazz_array_parts.pop
clazz_package = clazz_array_parts.map do |e| e[0] = e.first.capitalize; e end.join("::")
clazz = clazz_package + "::" + short_clazz
Object.const_get(clazz).send(:from_json, _item)
end
end
module Org
module Apache
module Archiva
module Policies
# (no documentation provided)
class PolicyOption
# (no documentation provided)
attr_accessor :id
# the json hash for this PolicyOption
def to_jaxb_json_hash
_h = {}
_h['id'] = id.to_jaxb_json_hash unless id.nil?
return _h
end
# the json (string form) for this PolicyOption
def to_json
to_jaxb_json_hash.to_json
end
#initializes this PolicyOption with a json hash
def init_jaxb_json_hash(_o)
if !_o['id'].nil?
_oa = _o['id']
if(_oa.is_a? Hash)
@id = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@id = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@id = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@id.push String.from_json(_item)
else
@id.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@id = _oa
end
end
end
# constructs a PolicyOption from a (parsed) JSON hash
def self.from_json(o)
if o.nil?
return nil
else
inst = new
inst.init_jaxb_json_hash o
return inst
end
end
end
end
end
end
end
module Org
module Apache
module Archiva
module Rest
module Api
module Model
# (no documentation provided)
class QueueEntry
# (no documentation provided)
attr_accessor :key
# (no documentation provided)
attr_accessor :entriesNumber
# the json hash for this QueueEntry
def to_jaxb_json_hash
_h = {}
_h['key'] = key.to_jaxb_json_hash unless key.nil?
_h['entriesNumber'] = entriesNumber.to_jaxb_json_hash unless entriesNumber.nil?
return _h
end
# the json (string form) for this QueueEntry
def to_json
to_jaxb_json_hash.to_json
end
#initializes this QueueEntry with a json hash
def init_jaxb_json_hash(_o)
if !_o['key'].nil?
_oa = _o['key']
if(_oa.is_a? Hash)
@key = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@key = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@key = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@key.push String.from_json(_item)
else
@key.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@key = _oa
end
end
if !_o['entriesNumber'].nil?
_oa = _o['entriesNumber']
if(_oa.is_a? Hash)
@entriesNumber = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@entriesNumber = Fixnum.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@entriesNumber = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@entriesNumber.push Fixnum.from_json(_item)
else
@entriesNumber.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@entriesNumber = _oa
end
end
end
# constructs a QueueEntry from a (parsed) JSON hash
def self.from_json(o)
if o.nil?
return nil
else
inst = new
inst.init_jaxb_json_hash o
return inst
end
end
end
end
end
end
end
end
end
module Org
module Apache
module Archiva
module Rest
module Api
module Model
# (no documentation provided)
class CacheEntry
# (no documentation provided)
attr_accessor :key
# (no documentation provided)
attr_accessor :size
# (no documentation provided)
attr_accessor :cacheHits
# (no documentation provided)
attr_accessor :cacheMiss
# (no documentation provided)
attr_accessor :cacheHitRate
# cache size in kb
attr_accessor :inMemorySize
# the json hash for this CacheEntry
def to_jaxb_json_hash
_h = {}
_h['key'] = key.to_jaxb_json_hash unless key.nil?
_h['size'] = size.to_jaxb_json_hash unless size.nil?
_h['cacheHits'] = cacheHits.to_jaxb_json_hash unless cacheHits.nil?
_h['cacheMiss'] = cacheMiss.to_jaxb_json_hash unless cacheMiss.nil?
_h['cacheHitRate'] = cacheHitRate.to_jaxb_json_hash unless cacheHitRate.nil?
_h['inMemorySize'] = inMemorySize.to_jaxb_json_hash unless inMemorySize.nil?
return _h
end
# the json (string form) for this CacheEntry
def to_json
to_jaxb_json_hash.to_json
end
#initializes this CacheEntry with a json hash
def init_jaxb_json_hash(_o)
if !_o['key'].nil?
_oa = _o['key']
if(_oa.is_a? Hash)
@key = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@key = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@key = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@key.push String.from_json(_item)
else
@key.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@key = _oa
end
end
if !_o['size'].nil?
_oa = _o['size']
if(_oa.is_a? Hash)
@size = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@size = Bignum.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@size = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@size.push Bignum.from_json(_item)
else
@size.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@size = _oa
end
end
if !_o['cacheHits'].nil?
_oa = _o['cacheHits']
if(_oa.is_a? Hash)
@cacheHits = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@cacheHits = Bignum.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@cacheHits = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@cacheHits.push Bignum.from_json(_item)
else
@cacheHits.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@cacheHits = _oa
end
end
if !_o['cacheMiss'].nil?
_oa = _o['cacheMiss']
if(_oa.is_a? Hash)
@cacheMiss = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@cacheMiss = Bignum.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@cacheMiss = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@cacheMiss.push Bignum.from_json(_item)
else
@cacheMiss.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@cacheMiss = _oa
end
end
if !_o['cacheHitRate'].nil?
_oa = _o['cacheHitRate']
if(_oa.is_a? Hash)
@cacheHitRate = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@cacheHitRate = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@cacheHitRate = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@cacheHitRate.push String.from_json(_item)
else
@cacheHitRate.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@cacheHitRate = _oa
end
end
if !_o['inMemorySize'].nil?
_oa = _o['inMemorySize']
if(_oa.is_a? Hash)
@inMemorySize = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@inMemorySize = Bignum.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@inMemorySize = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@inMemorySize.push Bignum.from_json(_item)
else
@inMemorySize.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@inMemorySize = _oa
end
end
end
# constructs a CacheEntry from a (parsed) JSON hash
def self.from_json(o)
if o.nil?
return nil
else
inst = new
inst.init_jaxb_json_hash o
return inst
end
end
end
end
end
end
end
end
end
module Org
module Apache
module Archiva
module Admin
module Model
module Beans
# (no documentation provided)
class NetworkConfiguration
# (no documentation provided)
attr_accessor :maxTotal
# (no documentation provided)
attr_accessor :maxTotalPerHost
# (no documentation provided)
attr_accessor :usePooling
# the json hash for this NetworkConfiguration
def to_jaxb_json_hash
_h = {}
_h['maxTotal'] = maxTotal.to_jaxb_json_hash unless maxTotal.nil?
_h['maxTotalPerHost'] = maxTotalPerHost.to_jaxb_json_hash unless maxTotalPerHost.nil?
_h['usePooling'] = usePooling.to_jaxb_json_hash unless usePooling.nil?
return _h
end
# the json (string form) for this NetworkConfiguration
def to_json
to_jaxb_json_hash.to_json
end
#initializes this NetworkConfiguration with a json hash
def init_jaxb_json_hash(_o)
if !_o['maxTotal'].nil?
_oa = _o['maxTotal']
if(_oa.is_a? Hash)
@maxTotal = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@maxTotal = Fixnum.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@maxTotal = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@maxTotal.push Fixnum.from_json(_item)
else
@maxTotal.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@maxTotal = _oa
end
end
if !_o['maxTotalPerHost'].nil?
_oa = _o['maxTotalPerHost']
if(_oa.is_a? Hash)
@maxTotalPerHost = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@maxTotalPerHost = Fixnum.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@maxTotalPerHost = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@maxTotalPerHost.push Fixnum.from_json(_item)
else
@maxTotalPerHost.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@maxTotalPerHost = _oa
end
end
if !_o['usePooling'].nil?
_oa = _o['usePooling']
if(_oa.is_a? Hash)
@usePooling = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@usePooling = Boolean.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@usePooling = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@usePooling.push Boolean.from_json(_item)
else
@usePooling.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@usePooling = _oa
end
end
end
# constructs a NetworkConfiguration from a (parsed) JSON hash
def self.from_json(o)
if o.nil?
return nil
else
inst = new
inst.init_jaxb_json_hash o
return inst
end
end
end
end
end
end
end
end
end
module Org
module Apache
module Archiva
module Web
module Model
# (no documentation provided)
class FileMetadata
# (no documentation provided)
attr_accessor :name
# (no documentation provided)
attr_accessor :size
# (no documentation provided)
attr_accessor :url
# (no documentation provided)
attr_accessor :deleteUrl
# (no documentation provided)
attr_accessor :deleteType
# (no documentation provided)
attr_accessor :errorKey
# (no documentation provided)
attr_accessor :classifier
# (no documentation provided)
attr_accessor :pomFile
# (no documentation provided)
attr_accessor :serverFileName
# (no documentation provided)
attr_accessor :packaging
# the json hash for this FileMetadata
def to_jaxb_json_hash
_h = {}
_h['name'] = name.to_jaxb_json_hash unless name.nil?
_h['size'] = size.to_jaxb_json_hash unless size.nil?
_h['url'] = url.to_jaxb_json_hash unless url.nil?
_h['deleteUrl'] = deleteUrl.to_jaxb_json_hash unless deleteUrl.nil?
_h['deleteType'] = deleteType.to_jaxb_json_hash unless deleteType.nil?
_h['errorKey'] = errorKey.to_jaxb_json_hash unless errorKey.nil?
_h['classifier'] = classifier.to_jaxb_json_hash unless classifier.nil?
_h['pomFile'] = pomFile.to_jaxb_json_hash unless pomFile.nil?
_h['serverFileName'] = serverFileName.to_jaxb_json_hash unless serverFileName.nil?
_h['packaging'] = packaging.to_jaxb_json_hash unless packaging.nil?
return _h
end
# the json (string form) for this FileMetadata
def to_json
to_jaxb_json_hash.to_json
end
#initializes this FileMetadata with a json hash
def init_jaxb_json_hash(_o)
if !_o['name'].nil?
_oa = _o['name']
if(_oa.is_a? Hash)
@name = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@name = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@name = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@name.push String.from_json(_item)
else
@name.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@name = _oa
end
end
if !_o['size'].nil?
_oa = _o['size']
if(_oa.is_a? Hash)
@size = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@size = Bignum.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@size = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@size.push Bignum.from_json(_item)
else
@size.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@size = _oa
end
end
if !_o['url'].nil?
_oa = _o['url']
if(_oa.is_a? Hash)
@url = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@url = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@url = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@url.push String.from_json(_item)
else
@url.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@url = _oa
end
end
if !_o['deleteUrl'].nil?
_oa = _o['deleteUrl']
if(_oa.is_a? Hash)
@deleteUrl = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@deleteUrl = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@deleteUrl = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@deleteUrl.push String.from_json(_item)
else
@deleteUrl.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@deleteUrl = _oa
end
end
if !_o['deleteType'].nil?
_oa = _o['deleteType']
if(_oa.is_a? Hash)
@deleteType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@deleteType = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@deleteType = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@deleteType.push String.from_json(_item)
else
@deleteType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@deleteType = _oa
end
end
if !_o['errorKey'].nil?
_oa = _o['errorKey']
if(_oa.is_a? Hash)
@errorKey = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@errorKey = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@errorKey = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@errorKey.push String.from_json(_item)
else
@errorKey.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@errorKey = _oa
end
end
if !_o['classifier'].nil?
_oa = _o['classifier']
if(_oa.is_a? Hash)
@classifier = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@classifier = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@classifier = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@classifier.push String.from_json(_item)
else
@classifier.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@classifier = _oa
end
end
if !_o['pomFile'].nil?
_oa = _o['pomFile']
if(_oa.is_a? Hash)
@pomFile = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@pomFile = Boolean.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@pomFile = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@pomFile.push Boolean.from_json(_item)
else
@pomFile.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@pomFile = _oa
end
end
if !_o['serverFileName'].nil?
_oa = _o['serverFileName']
if(_oa.is_a? Hash)
@serverFileName = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@serverFileName = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@serverFileName = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@serverFileName.push String.from_json(_item)
else
@serverFileName.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@serverFileName = _oa
end
end
if !_o['packaging'].nil?
_oa = _o['packaging']
if(_oa.is_a? Hash)
@packaging = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@packaging = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@packaging = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@packaging.push String.from_json(_item)
else
@packaging.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@packaging = _oa
end
end
end
# constructs a FileMetadata from a (parsed) JSON hash
def self.from_json(o)
if o.nil?
return nil
else
inst = new
inst.init_jaxb_json_hash o
return inst
end
end
end
end
end
end
end
end
module Org
module Apache
module Archiva
module Rest
module Api
module Model
# (no documentation provided)
class ConsumerScanningStatistics
# (no documentation provided)
attr_accessor :consumerKey
# (no documentation provided)
attr_accessor :count
# (no documentation provided)
attr_accessor :time
# (no documentation provided)
attr_accessor :average
# the json hash for this ConsumerScanningStatistics
def to_jaxb_json_hash
_h = {}
_h['consumerKey'] = consumerKey.to_jaxb_json_hash unless consumerKey.nil?
_h['count'] = count.to_jaxb_json_hash unless count.nil?
_h['time'] = time.to_jaxb_json_hash unless time.nil?
_h['average'] = average.to_jaxb_json_hash unless average.nil?
return _h
end
# the json (string form) for this ConsumerScanningStatistics
def to_json
to_jaxb_json_hash.to_json
end
#initializes this ConsumerScanningStatistics with a json hash
def init_jaxb_json_hash(_o)
if !_o['consumerKey'].nil?
_oa = _o['consumerKey']
if(_oa.is_a? Hash)
@consumerKey = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@consumerKey = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@consumerKey = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@consumerKey.push String.from_json(_item)
else
@consumerKey.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@consumerKey = _oa
end
end
if !_o['count'].nil?
_oa = _o['count']
if(_oa.is_a? Hash)
@count = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@count = Bignum.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@count = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@count.push Bignum.from_json(_item)
else
@count.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@count = _oa
end
end
if !_o['time'].nil?
_oa = _o['time']
if(_oa.is_a? Hash)
@time = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@time = Bignum.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@time = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@time.push Bignum.from_json(_item)
else
@time.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@time = _oa
end
end
if !_o['average'].nil?
_oa = _o['average']
if(_oa.is_a? Hash)
@average = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@average = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@average = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@average.push String.from_json(_item)
else
@average.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@average = _oa
end
end
end
# constructs a ConsumerScanningStatistics from a (parsed) JSON hash
def self.from_json(o)
if o.nil?
return nil
else
inst = new
inst.init_jaxb_json_hash o
return inst
end
end
end
end
end
end
end
end
end
module Org
module Apache
module Archiva
module Admin
module Model
module Beans
# (no documentation provided)
class CacheConfiguration
# (no documentation provided)
attr_accessor :timeToIdleSeconds
# (no documentation provided)
attr_accessor :timeToLiveSeconds
# (no documentation provided)
attr_accessor :maxElementsInMemory
# (no documentation provided)
attr_accessor :maxElementsOnDisk
# the json hash for this CacheConfiguration
def to_jaxb_json_hash
_h = {}
_h['timeToIdleSeconds'] = timeToIdleSeconds.to_jaxb_json_hash unless timeToIdleSeconds.nil?
_h['timeToLiveSeconds'] = timeToLiveSeconds.to_jaxb_json_hash unless timeToLiveSeconds.nil?
_h['maxElementsInMemory'] = maxElementsInMemory.to_jaxb_json_hash unless maxElementsInMemory.nil?
_h['maxElementsOnDisk'] = maxElementsOnDisk.to_jaxb_json_hash unless maxElementsOnDisk.nil?
return _h
end
# the json (string form) for this CacheConfiguration
def to_json
to_jaxb_json_hash.to_json
end
#initializes this CacheConfiguration with a json hash
def init_jaxb_json_hash(_o)
if !_o['timeToIdleSeconds'].nil?
_oa = _o['timeToIdleSeconds']
if(_oa.is_a? Hash)
@timeToIdleSeconds = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@timeToIdleSeconds = Fixnum.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@timeToIdleSeconds = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@timeToIdleSeconds.push Fixnum.from_json(_item)
else
@timeToIdleSeconds.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@timeToIdleSeconds = _oa
end
end
if !_o['timeToLiveSeconds'].nil?
_oa = _o['timeToLiveSeconds']
if(_oa.is_a? Hash)
@timeToLiveSeconds = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@timeToLiveSeconds = Fixnum.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@timeToLiveSeconds = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@timeToLiveSeconds.push Fixnum.from_json(_item)
else
@timeToLiveSeconds.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@timeToLiveSeconds = _oa
end
end
if !_o['maxElementsInMemory'].nil?
_oa = _o['maxElementsInMemory']
if(_oa.is_a? Hash)
@maxElementsInMemory = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@maxElementsInMemory = Fixnum.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@maxElementsInMemory = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@maxElementsInMemory.push Fixnum.from_json(_item)
else
@maxElementsInMemory.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@maxElementsInMemory = _oa
end
end
if !_o['maxElementsOnDisk'].nil?
_oa = _o['maxElementsOnDisk']
if(_oa.is_a? Hash)
@maxElementsOnDisk = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@maxElementsOnDisk = Fixnum.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@maxElementsOnDisk = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@maxElementsOnDisk.push Fixnum.from_json(_item)
else
@maxElementsOnDisk.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@maxElementsOnDisk = _oa
end
end
end
# constructs a CacheConfiguration from a (parsed) JSON hash
def self.from_json(o)
if o.nil?
return nil
else
inst = new
inst.init_jaxb_json_hash o
return inst
end
end
end
end
end
end
end
end
end
module Org
module Apache
module Archiva
module Repository
module Scanner
# (no documentation provided)
class RepositoryScanStatistics
# (no documentation provided)
attr_accessor :newFileCount
# (no documentation provided)
attr_accessor :whenGathered
# (no documentation provided)
attr_accessor :totalSize
# (no documentation provided)
attr_accessor :repositoryId
# (no documentation provided)
attr_accessor :duration
# (no documentation provided)
attr_accessor :totalFileCount
# the json hash for this RepositoryScanStatistics
def to_jaxb_json_hash
_h = {}
_h['newFileCount'] = newFileCount.to_jaxb_json_hash unless newFileCount.nil?
_h['whenGathered'] = whenGathered.to_jaxb_json_hash unless whenGathered.nil?
_h['totalSize'] = totalSize.to_jaxb_json_hash unless totalSize.nil?
_h['repositoryId'] = repositoryId.to_jaxb_json_hash unless repositoryId.nil?
_h['duration'] = duration.to_jaxb_json_hash unless duration.nil?
_h['totalFileCount'] = totalFileCount.to_jaxb_json_hash unless totalFileCount.nil?
return _h
end
# the json (string form) for this RepositoryScanStatistics
def to_json
to_jaxb_json_hash.to_json
end
#initializes this RepositoryScanStatistics with a json hash
def init_jaxb_json_hash(_o)
if !_o['newFileCount'].nil?
_oa = _o['newFileCount']
if(_oa.is_a? Hash)
@newFileCount = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@newFileCount = Bignum.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@newFileCount = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@newFileCount.push Bignum.from_json(_item)
else
@newFileCount.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@newFileCount = _oa
end
end
if !_o['whenGathered'].nil?
_oa = _o['whenGathered']
if(_oa.is_a? Hash)
@whenGathered = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@whenGathered = Time.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@whenGathered = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@whenGathered.push Time.from_json(_item)
else
@whenGathered.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@whenGathered = _oa
end
end
if !_o['totalSize'].nil?
_oa = _o['totalSize']
if(_oa.is_a? Hash)
@totalSize = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@totalSize = Bignum.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@totalSize = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@totalSize.push Bignum.from_json(_item)
else
@totalSize.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@totalSize = _oa
end
end
if !_o['repositoryId'].nil?
_oa = _o['repositoryId']
if(_oa.is_a? Hash)
@repositoryId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@repositoryId = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@repositoryId = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@repositoryId.push String.from_json(_item)
else
@repositoryId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@repositoryId = _oa
end
end
if !_o['duration'].nil?
_oa = _o['duration']
if(_oa.is_a? Hash)
@duration = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@duration = Bignum.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@duration = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@duration.push Bignum.from_json(_item)
else
@duration.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@duration = _oa
end
end
if !_o['totalFileCount'].nil?
_oa = _o['totalFileCount']
if(_oa.is_a? Hash)
@totalFileCount = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@totalFileCount = Bignum.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@totalFileCount = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@totalFileCount.push Bignum.from_json(_item)
else
@totalFileCount.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@totalFileCount = _oa
end
end
end
# constructs a RepositoryScanStatistics from a (parsed) JSON hash
def self.from_json(o)
if o.nil?
return nil
else
inst = new
inst.init_jaxb_json_hash o
return inst
end
end
end
end
end
end
end
end
module Org
module Apache
module Archiva
module Metadata
module Model
# (no documentation provided)
class CiManagement
# (no documentation provided)
attr_accessor :system
# (no documentation provided)
attr_accessor :url
# the json hash for this CiManagement
def to_jaxb_json_hash
_h = {}
_h['system'] = system.to_jaxb_json_hash unless system.nil?
_h['url'] = url.to_jaxb_json_hash unless url.nil?
return _h
end
# the json (string form) for this CiManagement
def to_json
to_jaxb_json_hash.to_json
end
#initializes this CiManagement with a json hash
def init_jaxb_json_hash(_o)
if !_o['system'].nil?
_oa = _o['system']
if(_oa.is_a? Hash)
@system = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@system = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@system = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@system.push String.from_json(_item)
else
@system.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@system = _oa
end
end
if !_o['url'].nil?
_oa = _o['url']
if(_oa.is_a? Hash)
@url = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@url = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@url = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@url.push String.from_json(_item)
else
@url.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@url = _oa
end
end
end
# constructs a CiManagement from a (parsed) JSON hash
def self.from_json(o)
if o.nil?
return nil
else
inst = new
inst.init_jaxb_json_hash o
return inst
end
end
end
end
end
end
end
end
module Org
module Apache
module Archiva
module Metadata
module Model
# (no documentation provided)
class IssueManagement
# (no documentation provided)
attr_accessor :url
# (no documentation provided)
attr_accessor :system
# the json hash for this IssueManagement
def to_jaxb_json_hash
_h = {}
_h['url'] = url.to_jaxb_json_hash unless url.nil?
_h['system'] = system.to_jaxb_json_hash unless system.nil?
return _h
end
# the json (string form) for this IssueManagement
def to_json
to_jaxb_json_hash.to_json
end
#initializes this IssueManagement with a json hash
def init_jaxb_json_hash(_o)
if !_o['url'].nil?
_oa = _o['url']
if(_oa.is_a? Hash)
@url = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@url = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@url = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@url.push String.from_json(_item)
else
@url.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@url = _oa
end
end
if !_o['system'].nil?
_oa = _o['system']
if(_oa.is_a? Hash)
@system = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@system = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@system = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@system.push String.from_json(_item)
else
@system.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@system = _oa
end
end
end
# constructs a IssueManagement from a (parsed) JSON hash
def self.from_json(o)
if o.nil?
return nil
else
inst = new
inst.init_jaxb_json_hash o
return inst
end
end
end
end
end
end
end
end
module Org
module Apache
module Archiva
module Admin
module Model
module Beans
# (no documentation provided)
class ArchivaRuntimeConfiguration
# (no documentation provided)
attr_accessor :urlFailureCacheConfiguration
# (no documentation provided)
attr_accessor :fileLockConfiguration
# the json hash for this ArchivaRuntimeConfiguration
def to_jaxb_json_hash
_h = {}
_h['urlFailureCacheConfiguration'] = urlFailureCacheConfiguration.to_jaxb_json_hash unless urlFailureCacheConfiguration.nil?
_h['fileLockConfiguration'] = fileLockConfiguration.to_jaxb_json_hash unless fileLockConfiguration.nil?
return _h
end
# the json (string form) for this ArchivaRuntimeConfiguration
def to_json
to_jaxb_json_hash.to_json
end
#initializes this ArchivaRuntimeConfiguration with a json hash
def init_jaxb_json_hash(_o)
if !_o['urlFailureCacheConfiguration'].nil?
_oa = _o['urlFailureCacheConfiguration']
if(_oa.is_a? Hash)
@urlFailureCacheConfiguration = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@urlFailureCacheConfiguration = Org::Apache::Archiva::Admin::Model::Beans::CacheConfiguration.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@urlFailureCacheConfiguration = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@urlFailureCacheConfiguration.push Org::Apache::Archiva::Admin::Model::Beans::CacheConfiguration.from_json(_item)
else
@urlFailureCacheConfiguration.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@urlFailureCacheConfiguration = _oa
end
end
if !_o['fileLockConfiguration'].nil?
_oa = _o['fileLockConfiguration']
if(_oa.is_a? Hash)
@fileLockConfiguration = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@fileLockConfiguration = Org::Apache::Archiva::Admin::Model::Beans::FileLockConfiguration.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@fileLockConfiguration = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@fileLockConfiguration.push Org::Apache::Archiva::Admin::Model::Beans::FileLockConfiguration.from_json(_item)
else
@fileLockConfiguration.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@fileLockConfiguration = _oa
end
end
end
# constructs a ArchivaRuntimeConfiguration from a (parsed) JSON hash
def self.from_json(o)
if o.nil?
return nil
else
inst = new
inst.init_jaxb_json_hash o
return inst
end
end
end
end
end
end
end
end
end
module Org
module Apache
module Archiva
module Rest
module Api
module Model
# (no documentation provided)
class PolicyInformation
# (no documentation provided)
attr_accessor :options
# (no documentation provided)
attr_accessor :defaultOption
# (no documentation provided)
attr_accessor :id
# (no documentation provided)
attr_accessor :name
# the json hash for this PolicyInformation
def to_jaxb_json_hash
_h = {}
if !options.nil?
_ha = Array.new
options.each { | _item | _ha.push _item.to_jaxb_json_hash }
_h['options'] = _ha
end
_h['defaultOption'] = defaultOption.to_jaxb_json_hash unless defaultOption.nil?
_h['id'] = id.to_jaxb_json_hash unless id.nil?
_h['name'] = name.to_jaxb_json_hash unless name.nil?
return _h
end
# the json (string form) for this PolicyInformation
def to_json
to_jaxb_json_hash.to_json
end
#initializes this PolicyInformation with a json hash
def init_jaxb_json_hash(_o)
if !_o['options'].nil?
_oa = _o['options']
if(_oa.is_a? Hash)
@options = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@options = Org::Apache::Archiva::Policies::PolicyOption.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@options = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@options.push Org::Apache::Archiva::Policies::PolicyOption.from_json(_item)
else
@options.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@options = _oa
end
end
if !_o['defaultOption'].nil?
_oa = _o['defaultOption']
if(_oa.is_a? Hash)
@defaultOption = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@defaultOption = Org::Apache::Archiva::Policies::PolicyOption.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@defaultOption = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@defaultOption.push Org::Apache::Archiva::Policies::PolicyOption.from_json(_item)
else
@defaultOption.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@defaultOption = _oa
end
end
if !_o['id'].nil?
_oa = _o['id']
if(_oa.is_a? Hash)
@id = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@id = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@id = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@id.push String.from_json(_item)
else
@id.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@id = _oa
end
end
if !_o['name'].nil?
_oa = _o['name']
if(_oa.is_a? Hash)
@name = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@name = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@name = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@name.push String.from_json(_item)
else
@name.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@name = _oa
end
end
end
# constructs a PolicyInformation from a (parsed) JSON hash
def self.from_json(o)
if o.nil?
return nil
else
inst = new
inst.init_jaxb_json_hash o
return inst
end
end
end
end
end
end
end
end
end
module Org
module Apache
module Archiva
module Maven2
module Model
# (no documentation provided)
class TreeEntry
# (no documentation provided)
attr_accessor :artifact
# (no documentation provided)
attr_accessor :childs
# the json hash for this TreeEntry
def to_jaxb_json_hash
_h = {}
_h['artifact'] = artifact.to_jaxb_json_hash unless artifact.nil?
if !childs.nil?
_ha = Array.new
childs.each { | _item | _ha.push _item.to_jaxb_json_hash }
_h['childs'] = _ha
end
return _h
end
# the json (string form) for this TreeEntry
def to_json
to_jaxb_json_hash.to_json
end
#initializes this TreeEntry with a json hash
def init_jaxb_json_hash(_o)
if !_o['artifact'].nil?
_oa = _o['artifact']
if(_oa.is_a? Hash)
@artifact = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@artifact = Org::Apache::Archiva::Maven2::Model::Artifact.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@artifact = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@artifact.push Org::Apache::Archiva::Maven2::Model::Artifact.from_json(_item)
else
@artifact.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@artifact = _oa
end
end
if !_o['childs'].nil?
_oa = _o['childs']
if(_oa.is_a? Hash)
@childs = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@childs = Org::Apache::Archiva::Maven2::Model::TreeEntry.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@childs = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@childs.push Org::Apache::Archiva::Maven2::Model::TreeEntry.from_json(_item)
else
@childs.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@childs = _oa
end
end
end
# constructs a TreeEntry from a (parsed) JSON hash
def self.from_json(o)
if o.nil?
return nil
else
inst = new
inst.init_jaxb_json_hash o
return inst
end
end
end
end
end
end
end
end
module Org
module Apache
module Archiva
module Web
module Model
# (no documentation provided)
class JavascriptLog
# (no documentation provided)
attr_accessor :loggerName
# (no documentation provided)
attr_accessor :message
# the json hash for this JavascriptLog
def to_jaxb_json_hash
_h = {}
_h['loggerName'] = loggerName.to_jaxb_json_hash unless loggerName.nil?
_h['message'] = message.to_jaxb_json_hash unless message.nil?
return _h
end
# the json (string form) for this JavascriptLog
def to_json
to_jaxb_json_hash.to_json
end
#initializes this JavascriptLog with a json hash
def init_jaxb_json_hash(_o)
if !_o['loggerName'].nil?
_oa = _o['loggerName']
if(_oa.is_a? Hash)
@loggerName = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@loggerName = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@loggerName = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@loggerName.push String.from_json(_item)
else
@loggerName.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@loggerName = _oa
end
end
if !_o['message'].nil?
_oa = _o['message']
if(_oa.is_a? Hash)
@message = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@message = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@message = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@message.push String.from_json(_item)
else
@message.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@message = _oa
end
end
end
# constructs a JavascriptLog from a (parsed) JSON hash
def self.from_json(o)
if o.nil?
return nil
else
inst = new
inst.init_jaxb_json_hash o
return inst
end
end
end
end
end
end
end
end
module Org
module Apache
module Archiva
module Admin
module Model
module Beans
# (no documentation provided)
class NetworkProxy
# (no documentation provided)
attr_accessor :id
# (no documentation provided)
attr_accessor :protocol
# (no documentation provided)
attr_accessor :host
# (no documentation provided)
attr_accessor :port
# (no documentation provided)
attr_accessor :username
# (no documentation provided)
attr_accessor :password
# (no documentation provided)
attr_accessor :useNtlm
# the json hash for this NetworkProxy
def to_jaxb_json_hash
_h = {}
_h['id'] = id.to_jaxb_json_hash unless id.nil?
_h['protocol'] = protocol.to_jaxb_json_hash unless protocol.nil?
_h['host'] = host.to_jaxb_json_hash unless host.nil?
_h['port'] = port.to_jaxb_json_hash unless port.nil?
_h['username'] = username.to_jaxb_json_hash unless username.nil?
_h['password'] = password.to_jaxb_json_hash unless password.nil?
_h['useNtlm'] = useNtlm.to_jaxb_json_hash unless useNtlm.nil?
return _h
end
# the json (string form) for this NetworkProxy
def to_json
to_jaxb_json_hash.to_json
end
#initializes this NetworkProxy with a json hash
def init_jaxb_json_hash(_o)
if !_o['id'].nil?
_oa = _o['id']
if(_oa.is_a? Hash)
@id = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@id = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@id = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@id.push String.from_json(_item)
else
@id.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@id = _oa
end
end
if !_o['protocol'].nil?
_oa = _o['protocol']
if(_oa.is_a? Hash)
@protocol = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@protocol = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@protocol = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@protocol.push String.from_json(_item)
else
@protocol.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@protocol = _oa
end
end
if !_o['host'].nil?
_oa = _o['host']
if(_oa.is_a? Hash)
@host = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@host = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@host = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@host.push String.from_json(_item)
else
@host.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@host = _oa
end
end
if !_o['port'].nil?
_oa = _o['port']
if(_oa.is_a? Hash)
@port = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@port = Fixnum.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@port = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@port.push Fixnum.from_json(_item)
else
@port.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@port = _oa
end
end
if !_o['username'].nil?
_oa = _o['username']
if(_oa.is_a? Hash)
@username = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@username = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@username = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@username.push String.from_json(_item)
else
@username.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@username = _oa
end
end
if !_o['password'].nil?
_oa = _o['password']
if(_oa.is_a? Hash)
@password = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@password = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@password = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@password.push String.from_json(_item)
else
@password.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@password = _oa
end
end
if !_o['useNtlm'].nil?
_oa = _o['useNtlm']
if(_oa.is_a? Hash)
@useNtlm = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@useNtlm = Boolean.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@useNtlm = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@useNtlm.push Boolean.from_json(_item)
else
@useNtlm.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@useNtlm = _oa
end
end
end
# constructs a NetworkProxy from a (parsed) JSON hash
def self.from_json(o)
if o.nil?
return nil
else
inst = new
inst.init_jaxb_json_hash o
return inst
end
end
end
end
end
end
end
end
end
module Org
module Apache
module Archiva
module Rest
module Api
module Model
# (no documentation provided)
class MetadataAddRequest
# (no documentation provided)
attr_accessor :groupId
# (no documentation provided)
attr_accessor :artifactId
# (no documentation provided)
attr_accessor :version
# (no documentation provided)
attr_accessor :metadatas
# the json hash for this MetadataAddRequest
def to_jaxb_json_hash
_h = {}
_h['groupId'] = groupId.to_jaxb_json_hash unless groupId.nil?
_h['artifactId'] = artifactId.to_jaxb_json_hash unless artifactId.nil?
_h['version'] = version.to_jaxb_json_hash unless version.nil?
_h['metadatas'] = metadatas.to_jaxb_json_hash unless metadatas.nil?
return _h
end
# the json (string form) for this MetadataAddRequest
def to_json
to_jaxb_json_hash.to_json
end
#initializes this MetadataAddRequest with a json hash
def init_jaxb_json_hash(_o)
if !_o['groupId'].nil?
_oa = _o['groupId']
if(_oa.is_a? Hash)
@groupId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@groupId = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@groupId = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@groupId.push String.from_json(_item)
else
@groupId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@groupId = _oa
end
end
if !_o['artifactId'].nil?
_oa = _o['artifactId']
if(_oa.is_a? Hash)
@artifactId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@artifactId = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@artifactId = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@artifactId.push String.from_json(_item)
else
@artifactId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@artifactId = _oa
end
end
if !_o['version'].nil?
_oa = _o['version']
if(_oa.is_a? Hash)
@version = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@version = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@version = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@version.push String.from_json(_item)
else
@version.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@version = _oa
end
end
if !_o['metadatas'].nil?
_oa = _o['metadatas']
if(_oa.is_a? Hash)
@metadatas = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@metadatas = Hash.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@metadatas = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@metadatas.push Hash.from_json(_item)
else
@metadatas.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@metadatas = _oa
end
end
end
# constructs a MetadataAddRequest from a (parsed) JSON hash
def self.from_json(o)
if o.nil?
return nil
else
inst = new
inst.init_jaxb_json_hash o
return inst
end
end
end
end
end
end
end
end
end
module Org
module Apache
module Archiva
module Maven2
module Model
# (no documentation provided)
class Artifact
# (no documentation provided)
attr_accessor :prefix
# (no documentation provided)
attr_accessor :repositoryId
# (no documentation provided)
attr_accessor :bundleName
# (no documentation provided)
attr_accessor :artifactId
# (no documentation provided)
attr_accessor :bundleExportPackage
# (no documentation provided)
attr_accessor :bundleDocUrl
# (no documentation provided)
attr_accessor :bundleVersion
# (no documentation provided)
attr_accessor :groupId
# (no documentation provided)
attr_accessor :bundleDescription
# (no documentation provided)
attr_accessor :scope
# (no documentation provided)
attr_accessor :type
# (no documentation provided)
attr_accessor :bundleImportPackage
# (no documentation provided)
attr_accessor :packaging
# (no documentation provided)
attr_accessor :path
# (no documentation provided)
attr_accessor :url
# (no documentation provided)
attr_accessor :context
# (no documentation provided)
attr_accessor :classifier
# (no documentation provided)
attr_accessor :bundleRequireBundle
# (no documentation provided)
attr_accessor :fileExtension
# (no documentation provided)
attr_accessor :bundleExportService
# (no documentation provided)
attr_accessor :version
# (no documentation provided)
attr_accessor :id
# (no documentation provided)
attr_accessor :size
# (no documentation provided)
attr_accessor :goals
# (no documentation provided)
attr_accessor :bundleLicense
# (no documentation provided)
attr_accessor :bundleSymbolicName
# the json hash for this Artifact
def to_jaxb_json_hash
_h = {}
_h['prefix'] = prefix.to_jaxb_json_hash unless prefix.nil?
_h['repositoryId'] = repositoryId.to_jaxb_json_hash unless repositoryId.nil?
_h['bundleName'] = bundleName.to_jaxb_json_hash unless bundleName.nil?
_h['artifactId'] = artifactId.to_jaxb_json_hash unless artifactId.nil?
_h['bundleExportPackage'] = bundleExportPackage.to_jaxb_json_hash unless bundleExportPackage.nil?
_h['bundleDocUrl'] = bundleDocUrl.to_jaxb_json_hash unless bundleDocUrl.nil?
_h['bundleVersion'] = bundleVersion.to_jaxb_json_hash unless bundleVersion.nil?
_h['groupId'] = groupId.to_jaxb_json_hash unless groupId.nil?
_h['bundleDescription'] = bundleDescription.to_jaxb_json_hash unless bundleDescription.nil?
_h['scope'] = scope.to_jaxb_json_hash unless scope.nil?
_h['type'] = type.to_jaxb_json_hash unless type.nil?
_h['bundleImportPackage'] = bundleImportPackage.to_jaxb_json_hash unless bundleImportPackage.nil?
_h['packaging'] = packaging.to_jaxb_json_hash unless packaging.nil?
_h['path'] = path.to_jaxb_json_hash unless path.nil?
_h['url'] = url.to_jaxb_json_hash unless url.nil?
_h['context'] = context.to_jaxb_json_hash unless context.nil?
_h['classifier'] = classifier.to_jaxb_json_hash unless classifier.nil?
_h['bundleRequireBundle'] = bundleRequireBundle.to_jaxb_json_hash unless bundleRequireBundle.nil?
_h['fileExtension'] = fileExtension.to_jaxb_json_hash unless fileExtension.nil?
_h['bundleExportService'] = bundleExportService.to_jaxb_json_hash unless bundleExportService.nil?
_h['version'] = version.to_jaxb_json_hash unless version.nil?
_h['id'] = id.to_jaxb_json_hash unless id.nil?
_h['size'] = size.to_jaxb_json_hash unless size.nil?
if !goals.nil?
_ha = Array.new
goals.each { | _item | _ha.push _item.to_jaxb_json_hash }
_h['goals'] = _ha
end
_h['bundleLicense'] = bundleLicense.to_jaxb_json_hash unless bundleLicense.nil?
_h['bundleSymbolicName'] = bundleSymbolicName.to_jaxb_json_hash unless bundleSymbolicName.nil?
return _h
end
# the json (string form) for this Artifact
def to_json
to_jaxb_json_hash.to_json
end
#initializes this Artifact with a json hash
def init_jaxb_json_hash(_o)
if !_o['prefix'].nil?
_oa = _o['prefix']
if(_oa.is_a? Hash)
@prefix = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@prefix = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@prefix = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@prefix.push String.from_json(_item)
else
@prefix.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@prefix = _oa
end
end
if !_o['repositoryId'].nil?
_oa = _o['repositoryId']
if(_oa.is_a? Hash)
@repositoryId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@repositoryId = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@repositoryId = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@repositoryId.push String.from_json(_item)
else
@repositoryId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@repositoryId = _oa
end
end
if !_o['bundleName'].nil?
_oa = _o['bundleName']
if(_oa.is_a? Hash)
@bundleName = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@bundleName = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@bundleName = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@bundleName.push String.from_json(_item)
else
@bundleName.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@bundleName = _oa
end
end
if !_o['artifactId'].nil?
_oa = _o['artifactId']
if(_oa.is_a? Hash)
@artifactId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@artifactId = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@artifactId = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@artifactId.push String.from_json(_item)
else
@artifactId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@artifactId = _oa
end
end
if !_o['bundleExportPackage'].nil?
_oa = _o['bundleExportPackage']
if(_oa.is_a? Hash)
@bundleExportPackage = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@bundleExportPackage = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@bundleExportPackage = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@bundleExportPackage.push String.from_json(_item)
else
@bundleExportPackage.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@bundleExportPackage = _oa
end
end
if !_o['bundleDocUrl'].nil?
_oa = _o['bundleDocUrl']
if(_oa.is_a? Hash)
@bundleDocUrl = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@bundleDocUrl = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@bundleDocUrl = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@bundleDocUrl.push String.from_json(_item)
else
@bundleDocUrl.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@bundleDocUrl = _oa
end
end
if !_o['bundleVersion'].nil?
_oa = _o['bundleVersion']
if(_oa.is_a? Hash)
@bundleVersion = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@bundleVersion = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@bundleVersion = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@bundleVersion.push String.from_json(_item)
else
@bundleVersion.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@bundleVersion = _oa
end
end
if !_o['groupId'].nil?
_oa = _o['groupId']
if(_oa.is_a? Hash)
@groupId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@groupId = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@groupId = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@groupId.push String.from_json(_item)
else
@groupId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@groupId = _oa
end
end
if !_o['bundleDescription'].nil?
_oa = _o['bundleDescription']
if(_oa.is_a? Hash)
@bundleDescription = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@bundleDescription = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@bundleDescription = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@bundleDescription.push String.from_json(_item)
else
@bundleDescription.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@bundleDescription = _oa
end
end
if !_o['scope'].nil?
_oa = _o['scope']
if(_oa.is_a? Hash)
@scope = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@scope = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@scope = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@scope.push String.from_json(_item)
else
@scope.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@scope = _oa
end
end
if !_o['type'].nil?
_oa = _o['type']
if(_oa.is_a? Hash)
@type = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@type = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@type = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@type.push String.from_json(_item)
else
@type.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@type = _oa
end
end
if !_o['bundleImportPackage'].nil?
_oa = _o['bundleImportPackage']
if(_oa.is_a? Hash)
@bundleImportPackage = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@bundleImportPackage = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@bundleImportPackage = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@bundleImportPackage.push String.from_json(_item)
else
@bundleImportPackage.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else