Modified: ranger/site/trunk/apidocs/security-admin-web.rb URL: http://svn.apache.org/viewvc/ranger/site/trunk/apidocs/security-admin-web.rb?rev=1864664&r1=1864663&r2=1864664&view=diff ============================================================================== --- ranger/site/trunk/apidocs/security-admin-web.rb (original) +++ ranger/site/trunk/apidocs/security-admin-web.rb Wed Aug 7 18:15:52 2019 @@ -89,27 +89,27 @@ module Model class RecurrenceSchedule # (no documentation provided) - attr_accessor :dayOfMonth - # (no documentation provided) - attr_accessor :year - # (no documentation provided) - attr_accessor :month - # (no documentation provided) attr_accessor :minute # (no documentation provided) attr_accessor :dayOfWeek # (no documentation provided) + attr_accessor :year + # (no documentation provided) attr_accessor :hour + # (no documentation provided) + attr_accessor :month + # (no documentation provided) + attr_accessor :dayOfMonth # the json hash for this RecurrenceSchedule def to_jaxb_json_hash _h = {} - _h['dayOfMonth'] = dayOfMonth.to_jaxb_json_hash unless dayOfMonth.nil? - _h['year'] = year.to_jaxb_json_hash unless year.nil? - _h['month'] = month.to_jaxb_json_hash unless month.nil? _h['minute'] = minute.to_jaxb_json_hash unless minute.nil? _h['dayOfWeek'] = dayOfWeek.to_jaxb_json_hash unless dayOfWeek.nil? + _h['year'] = year.to_jaxb_json_hash unless year.nil? _h['hour'] = hour.to_jaxb_json_hash unless hour.nil? + _h['month'] = month.to_jaxb_json_hash unless month.nil? + _h['dayOfMonth'] = dayOfMonth.to_jaxb_json_hash unless dayOfMonth.nil? return _h end @@ -120,118 +120,118 @@ module Model #initializes this RecurrenceSchedule with a json hash def init_jaxb_json_hash(_o) - if !_o['dayOfMonth'].nil? - _oa = _o['dayOfMonth'] + if !_o['minute'].nil? + _oa = _o['minute'] if(_oa.is_a? Hash) - @dayOfMonth = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @dayOfMonth = String.from_json(_oa) unless _oa['@class'] + @minute = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @minute = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @dayOfMonth = Array.new + @minute = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @dayOfMonth.push String.from_json(_item) + @minute.push String.from_json(_item) else - @dayOfMonth.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @minute.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @dayOfMonth = _oa + @minute = _oa end end - if !_o['year'].nil? - _oa = _o['year'] + if !_o['dayOfWeek'].nil? + _oa = _o['dayOfWeek'] if(_oa.is_a? Hash) - @year = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @year = String.from_json(_oa) unless _oa['@class'] + @dayOfWeek = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @dayOfWeek = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @year = Array.new + @dayOfWeek = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @year.push String.from_json(_item) + @dayOfWeek.push String.from_json(_item) else - @year.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @dayOfWeek.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @year = _oa + @dayOfWeek = _oa end end - if !_o['month'].nil? - _oa = _o['month'] + if !_o['year'].nil? + _oa = _o['year'] if(_oa.is_a? Hash) - @month = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @month = String.from_json(_oa) unless _oa['@class'] + @year = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @year = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @month = Array.new + @year = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @month.push String.from_json(_item) + @year.push String.from_json(_item) else - @month.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @year.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @month = _oa + @year = _oa end end - if !_o['minute'].nil? - _oa = _o['minute'] + if !_o['hour'].nil? + _oa = _o['hour'] if(_oa.is_a? Hash) - @minute = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @minute = String.from_json(_oa) unless _oa['@class'] + @hour = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @hour = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @minute = Array.new + @hour = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @minute.push String.from_json(_item) + @hour.push String.from_json(_item) else - @minute.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @hour.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @minute = _oa + @hour = _oa end end - if !_o['dayOfWeek'].nil? - _oa = _o['dayOfWeek'] + if !_o['month'].nil? + _oa = _o['month'] if(_oa.is_a? Hash) - @dayOfWeek = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @dayOfWeek = String.from_json(_oa) unless _oa['@class'] + @month = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @month = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @dayOfWeek = Array.new + @month = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @dayOfWeek.push String.from_json(_item) + @month.push String.from_json(_item) else - @dayOfWeek.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @month.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @dayOfWeek = _oa + @month = _oa end end - if !_o['hour'].nil? - _oa = _o['hour'] + if !_o['dayOfMonth'].nil? + _oa = _o['dayOfMonth'] if(_oa.is_a? Hash) - @hour = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @hour = String.from_json(_oa) unless _oa['@class'] + @dayOfMonth = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @dayOfMonth = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @hour = Array.new + @dayOfMonth = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @hour.push String.from_json(_item) + @dayOfMonth.push String.from_json(_item) else - @hour.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @dayOfMonth.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @hour = _oa + @dayOfMonth = _oa end end end @@ -272,45 +272,45 @@ module Model class RangerPolicyConditionDef # (no documentation provided) - attr_accessor :rbKeyValidationMessage - # (no documentation provided) - attr_accessor :validationRegEx + attr_accessor :rbKeyDescription # (no documentation provided) - attr_accessor :name + attr_accessor :description # (no documentation provided) - attr_accessor :label + attr_accessor :evaluator # (no documentation provided) attr_accessor :uiHint # (no documentation provided) - attr_accessor :rbKeyDescription + attr_accessor :itemId # (no documentation provided) - attr_accessor :rbKeyLabel + attr_accessor :label # (no documentation provided) - attr_accessor :validationMessage + attr_accessor :name # (no documentation provided) - attr_accessor :evaluator + attr_accessor :rbKeyLabel # (no documentation provided) - attr_accessor :description + attr_accessor :validationMessage # (no documentation provided) - attr_accessor :itemId + attr_accessor :rbKeyValidationMessage # (no documentation provided) attr_accessor :evaluatorOptions + # (no documentation provided) + attr_accessor :validationRegEx # the json hash for this RangerPolicyConditionDef def to_jaxb_json_hash _h = {} - _h['rbKeyValidationMessage'] = rbKeyValidationMessage.to_jaxb_json_hash unless rbKeyValidationMessage.nil? - _h['validationRegEx'] = validationRegEx.to_jaxb_json_hash unless validationRegEx.nil? - _h['name'] = name.to_jaxb_json_hash unless name.nil? - _h['label'] = label.to_jaxb_json_hash unless label.nil? - _h['uiHint'] = uiHint.to_jaxb_json_hash unless uiHint.nil? _h['rbKeyDescription'] = rbKeyDescription.to_jaxb_json_hash unless rbKeyDescription.nil? - _h['rbKeyLabel'] = rbKeyLabel.to_jaxb_json_hash unless rbKeyLabel.nil? - _h['validationMessage'] = validationMessage.to_jaxb_json_hash unless validationMessage.nil? - _h['evaluator'] = evaluator.to_jaxb_json_hash unless evaluator.nil? _h['description'] = description.to_jaxb_json_hash unless description.nil? + _h['evaluator'] = evaluator.to_jaxb_json_hash unless evaluator.nil? + _h['uiHint'] = uiHint.to_jaxb_json_hash unless uiHint.nil? _h['itemId'] = itemId.to_jaxb_json_hash unless itemId.nil? + _h['label'] = label.to_jaxb_json_hash unless label.nil? + _h['name'] = name.to_jaxb_json_hash unless name.nil? + _h['rbKeyLabel'] = rbKeyLabel.to_jaxb_json_hash unless rbKeyLabel.nil? + _h['validationMessage'] = validationMessage.to_jaxb_json_hash unless validationMessage.nil? + _h['rbKeyValidationMessage'] = rbKeyValidationMessage.to_jaxb_json_hash unless rbKeyValidationMessage.nil? _h['evaluatorOptions'] = evaluatorOptions.to_jaxb_json_hash unless evaluatorOptions.nil? + _h['validationRegEx'] = validationRegEx.to_jaxb_json_hash unless validationRegEx.nil? return _h end @@ -321,80 +321,61 @@ module Model #initializes this RangerPolicyConditionDef with a json hash def init_jaxb_json_hash(_o) - if !_o['rbKeyValidationMessage'].nil? - _oa = _o['rbKeyValidationMessage'] - if(_oa.is_a? Hash) - @rbKeyValidationMessage = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @rbKeyValidationMessage = String.from_json(_oa) unless _oa['@class'] - elsif (_oa.is_a? Array) - #an array(of hashes hopefully) or scalar - @rbKeyValidationMessage = Array.new - _oa.each { | _item | - if ((_item.nil? || _item['@class'].nil?)rescue true) - @rbKeyValidationMessage.push String.from_json(_item) - else - @rbKeyValidationMessage.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @rbKeyValidationMessage = _oa - end - end - if !_o['validationRegEx'].nil? - _oa = _o['validationRegEx'] + if !_o['rbKeyDescription'].nil? + _oa = _o['rbKeyDescription'] if(_oa.is_a? Hash) - @validationRegEx = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @validationRegEx = String.from_json(_oa) unless _oa['@class'] + @rbKeyDescription = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @rbKeyDescription = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @validationRegEx = Array.new + @rbKeyDescription = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @validationRegEx.push String.from_json(_item) + @rbKeyDescription.push String.from_json(_item) else - @validationRegEx.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @rbKeyDescription.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @validationRegEx = _oa + @rbKeyDescription = _oa end end - if !_o['name'].nil? - _oa = _o['name'] + if !_o['description'].nil? + _oa = _o['description'] if(_oa.is_a? Hash) - @name = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @name = String.from_json(_oa) unless _oa['@class'] + @description = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @description = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @name = Array.new + @description = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @name.push String.from_json(_item) + @description.push String.from_json(_item) else - @name.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @description.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @name = _oa + @description = _oa end end - if !_o['label'].nil? - _oa = _o['label'] + if !_o['evaluator'].nil? + _oa = _o['evaluator'] if(_oa.is_a? Hash) - @label = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @label = String.from_json(_oa) unless _oa['@class'] + @evaluator = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @evaluator = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @label = Array.new + @evaluator = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @label.push String.from_json(_item) + @evaluator.push String.from_json(_item) else - @label.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @evaluator.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @label = _oa + @evaluator = _oa end end if !_o['uiHint'].nil? @@ -416,118 +397,118 @@ module Model @uiHint = _oa end end - if !_o['rbKeyDescription'].nil? - _oa = _o['rbKeyDescription'] + if !_o['itemId'].nil? + _oa = _o['itemId'] if(_oa.is_a? Hash) - @rbKeyDescription = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @rbKeyDescription = String.from_json(_oa) unless _oa['@class'] + @itemId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @itemId = Bignum.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @rbKeyDescription = Array.new + @itemId = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @rbKeyDescription.push String.from_json(_item) + @itemId.push Bignum.from_json(_item) else - @rbKeyDescription.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @itemId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @rbKeyDescription = _oa + @itemId = _oa end end - if !_o['rbKeyLabel'].nil? - _oa = _o['rbKeyLabel'] + if !_o['label'].nil? + _oa = _o['label'] if(_oa.is_a? Hash) - @rbKeyLabel = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @rbKeyLabel = String.from_json(_oa) unless _oa['@class'] + @label = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @label = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @rbKeyLabel = Array.new + @label = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @rbKeyLabel.push String.from_json(_item) + @label.push String.from_json(_item) else - @rbKeyLabel.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @label.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @rbKeyLabel = _oa + @label = _oa end end - if !_o['validationMessage'].nil? - _oa = _o['validationMessage'] + if !_o['name'].nil? + _oa = _o['name'] if(_oa.is_a? Hash) - @validationMessage = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @validationMessage = String.from_json(_oa) unless _oa['@class'] + @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 - @validationMessage = Array.new + @name = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @validationMessage.push String.from_json(_item) + @name.push String.from_json(_item) else - @validationMessage.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @name.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @validationMessage = _oa + @name = _oa end end - if !_o['evaluator'].nil? - _oa = _o['evaluator'] + if !_o['rbKeyLabel'].nil? + _oa = _o['rbKeyLabel'] if(_oa.is_a? Hash) - @evaluator = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @evaluator = String.from_json(_oa) unless _oa['@class'] + @rbKeyLabel = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @rbKeyLabel = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @evaluator = Array.new + @rbKeyLabel = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @evaluator.push String.from_json(_item) + @rbKeyLabel.push String.from_json(_item) else - @evaluator.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @rbKeyLabel.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @evaluator = _oa + @rbKeyLabel = _oa end end - if !_o['description'].nil? - _oa = _o['description'] + if !_o['validationMessage'].nil? + _oa = _o['validationMessage'] if(_oa.is_a? Hash) - @description = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @description = String.from_json(_oa) unless _oa['@class'] + @validationMessage = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @validationMessage = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @description = Array.new + @validationMessage = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @description.push String.from_json(_item) + @validationMessage.push String.from_json(_item) else - @description.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @validationMessage.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @description = _oa + @validationMessage = _oa end end - if !_o['itemId'].nil? - _oa = _o['itemId'] + if !_o['rbKeyValidationMessage'].nil? + _oa = _o['rbKeyValidationMessage'] if(_oa.is_a? Hash) - @itemId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @itemId = Bignum.from_json(_oa) unless _oa['@class'] + @rbKeyValidationMessage = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @rbKeyValidationMessage = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @itemId = Array.new + @rbKeyValidationMessage = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @itemId.push Bignum.from_json(_item) + @rbKeyValidationMessage.push String.from_json(_item) else - @itemId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @rbKeyValidationMessage.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @itemId = _oa + @rbKeyValidationMessage = _oa end end if !_o['evaluatorOptions'].nil? @@ -549,6 +530,25 @@ module Model @evaluatorOptions = _oa end end + if !_o['validationRegEx'].nil? + _oa = _o['validationRegEx'] + if(_oa.is_a? Hash) + @validationRegEx = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @validationRegEx = String.from_json(_oa) unless _oa['@class'] + elsif (_oa.is_a? Array) + #an array(of hashes hopefully) or scalar + @validationRegEx = Array.new + _oa.each { | _item | + if ((_item.nil? || _item['@class'].nil?)rescue true) + @validationRegEx.push String.from_json(_item) + else + @validationRegEx.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + end + } + else + @validationRegEx = _oa + end + end end # constructs a RangerPolicyConditionDef from a (parsed) JSON hash @@ -584,411 +584,464 @@ module Plugin module Model # (no documentation provided) - class RangerTagAttributeDef + class RangerBaseModelObject # (no documentation provided) - attr_accessor :type + attr_accessor :updatedBy # (no documentation provided) - attr_accessor :name + attr_accessor :createdBy + # (no documentation provided) + attr_accessor :guid + # (no documentation provided) + attr_accessor :version + # (no documentation provided) + attr_accessor :createTime + # (no documentation provided) + attr_accessor :isEnabled + # (no documentation provided) + attr_accessor :updateTime + # (no documentation provided) + attr_accessor :id - # the json hash for this RangerTagAttributeDef + # the json hash for this RangerBaseModelObject def to_jaxb_json_hash _h = {} - _h['type'] = type.to_jaxb_json_hash unless type.nil? - _h['name'] = name.to_jaxb_json_hash unless name.nil? + _h['updatedBy'] = updatedBy.to_jaxb_json_hash unless updatedBy.nil? + _h['createdBy'] = createdBy.to_jaxb_json_hash unless createdBy.nil? + _h['guid'] = guid.to_jaxb_json_hash unless guid.nil? + _h['version'] = version.to_jaxb_json_hash unless version.nil? + _h['createTime'] = createTime.to_jaxb_json_hash unless createTime.nil? + _h['isEnabled'] = isEnabled.to_jaxb_json_hash unless isEnabled.nil? + _h['updateTime'] = updateTime.to_jaxb_json_hash unless updateTime.nil? + _h['id'] = id.to_jaxb_json_hash unless id.nil? return _h end - # the json (string form) for this RangerTagAttributeDef + # the json (string form) for this RangerBaseModelObject def to_json to_jaxb_json_hash.to_json end - #initializes this RangerTagAttributeDef with a json hash + #initializes this RangerBaseModelObject with a json hash def init_jaxb_json_hash(_o) - if !_o['type'].nil? - _oa = _o['type'] + if !_o['updatedBy'].nil? + _oa = _o['updatedBy'] if(_oa.is_a? Hash) - @type = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @type = String.from_json(_oa) unless _oa['@class'] + @updatedBy = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @updatedBy = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @type = Array.new + @updatedBy = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @type.push String.from_json(_item) + @updatedBy.push String.from_json(_item) else - @type.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @updatedBy.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @type = _oa + @updatedBy = _oa end end - if !_o['name'].nil? - _oa = _o['name'] + if !_o['createdBy'].nil? + _oa = _o['createdBy'] if(_oa.is_a? Hash) - @name = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @name = String.from_json(_oa) unless _oa['@class'] + @createdBy = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @createdBy = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @name = Array.new + @createdBy = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @name.push String.from_json(_item) + @createdBy.push String.from_json(_item) else - @name.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @createdBy.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @name = _oa + @createdBy = _oa end end - end - - # constructs a RangerTagAttributeDef 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 Ranger - -module Plugin - -module Model - - # (no documentation provided) - class RangerValidityRecurrence - - # (no documentation provided) - attr_accessor :schedule - # (no documentation provided) - attr_accessor :interval - - # the json hash for this RangerValidityRecurrence - def to_jaxb_json_hash - _h = {} - _h['schedule'] = schedule.to_jaxb_json_hash unless schedule.nil? - _h['interval'] = interval.to_jaxb_json_hash unless interval.nil? - return _h - end - - # the json (string form) for this RangerValidityRecurrence - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this RangerValidityRecurrence with a json hash - def init_jaxb_json_hash(_o) - if !_o['schedule'].nil? - _oa = _o['schedule'] + if !_o['guid'].nil? + _oa = _o['guid'] if(_oa.is_a? Hash) - @schedule = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @schedule = Org::Apache::Ranger::Plugin::Model::RecurrenceSchedule.from_json(_oa) unless _oa['@class'] + @guid = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @guid = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @schedule = Array.new + @guid = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @schedule.push Org::Apache::Ranger::Plugin::Model::RecurrenceSchedule.from_json(_item) + @guid.push String.from_json(_item) else - @schedule.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @guid.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @schedule = _oa + @guid = _oa end end - if !_o['interval'].nil? - _oa = _o['interval'] + if !_o['version'].nil? + _oa = _o['version'] if(_oa.is_a? Hash) - @interval = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @interval = Org::Apache::Ranger::Plugin::Model::ValidityInterval.from_json(_oa) unless _oa['@class'] + @version = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @version = Bignum.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @interval = Array.new + @version = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @interval.push Org::Apache::Ranger::Plugin::Model::ValidityInterval.from_json(_item) + @version.push Bignum.from_json(_item) else - @interval.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @version.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @interval = _oa + @version = _oa end end - end - - # constructs a RangerValidityRecurrence 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 Ranger - -module View - - # (no documentation provided) - class VXLdapSyncSourceInfo - - # (no documentation provided) - attr_accessor :ldapUrl - # (no documentation provided) - attr_accessor :userSearchFilter - # (no documentation provided) - attr_accessor :groupSearchFilter - # (no documentation provided) - attr_accessor :groupHierarchyLevel - # (no documentation provided) - attr_accessor :totalUsersSynced - # (no documentation provided) - attr_accessor :totalGroupsSynced - # (no documentation provided) - attr_accessor :groupSearchFirstEnabled - # (no documentation provided) - attr_accessor :groupSearchEnabled - # (no documentation provided) - attr_accessor :userSearchEnabled - - # the json hash for this VXLdapSyncSourceInfo - def to_jaxb_json_hash - _h = {} - _h['ldapUrl'] = ldapUrl.to_jaxb_json_hash unless ldapUrl.nil? - _h['userSearchFilter'] = userSearchFilter.to_jaxb_json_hash unless userSearchFilter.nil? - _h['groupSearchFilter'] = groupSearchFilter.to_jaxb_json_hash unless groupSearchFilter.nil? - _h['groupHierarchyLevel'] = groupHierarchyLevel.to_jaxb_json_hash unless groupHierarchyLevel.nil? - _h['totalUsersSynced'] = totalUsersSynced.to_jaxb_json_hash unless totalUsersSynced.nil? - _h['totalGroupsSynced'] = totalGroupsSynced.to_jaxb_json_hash unless totalGroupsSynced.nil? - _h['groupSearchFirstEnabled'] = groupSearchFirstEnabled.to_jaxb_json_hash unless groupSearchFirstEnabled.nil? - _h['groupSearchEnabled'] = groupSearchEnabled.to_jaxb_json_hash unless groupSearchEnabled.nil? - _h['userSearchEnabled'] = userSearchEnabled.to_jaxb_json_hash unless userSearchEnabled.nil? - return _h - end - - # the json (string form) for this VXLdapSyncSourceInfo - def to_json - to_jaxb_json_hash.to_json - end - - #initializes this VXLdapSyncSourceInfo with a json hash - def init_jaxb_json_hash(_o) - if !_o['ldapUrl'].nil? - _oa = _o['ldapUrl'] + if !_o['createTime'].nil? + _oa = _o['createTime'] if(_oa.is_a? Hash) - @ldapUrl = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @ldapUrl = String.from_json(_oa) unless _oa['@class'] + @createTime = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @createTime = Time.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @ldapUrl = Array.new + @createTime = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @ldapUrl.push String.from_json(_item) + @createTime.push Time.from_json(_item) else - @ldapUrl.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @createTime.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @ldapUrl = _oa + @createTime = _oa end end - if !_o['userSearchFilter'].nil? - _oa = _o['userSearchFilter'] + if !_o['isEnabled'].nil? + _oa = _o['isEnabled'] if(_oa.is_a? Hash) - @userSearchFilter = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @userSearchFilter = String.from_json(_oa) unless _oa['@class'] + @isEnabled = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @isEnabled = Boolean.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @userSearchFilter = Array.new + @isEnabled = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @userSearchFilter.push String.from_json(_item) + @isEnabled.push Boolean.from_json(_item) else - @userSearchFilter.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @isEnabled.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @userSearchFilter = _oa + @isEnabled = _oa end end - if !_o['groupSearchFilter'].nil? - _oa = _o['groupSearchFilter'] + if !_o['updateTime'].nil? + _oa = _o['updateTime'] if(_oa.is_a? Hash) - @groupSearchFilter = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @groupSearchFilter = String.from_json(_oa) unless _oa['@class'] + @updateTime = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @updateTime = Time.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @groupSearchFilter = Array.new + @updateTime = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @groupSearchFilter.push String.from_json(_item) + @updateTime.push Time.from_json(_item) else - @groupSearchFilter.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @updateTime.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @groupSearchFilter = _oa + @updateTime = _oa end end - if !_o['groupHierarchyLevel'].nil? - _oa = _o['groupHierarchyLevel'] + if !_o['id'].nil? + _oa = _o['id'] if(_oa.is_a? Hash) - @groupHierarchyLevel = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @groupHierarchyLevel = String.from_json(_oa) unless _oa['@class'] + @id = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @id = Bignum.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @groupHierarchyLevel = Array.new + @id = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @groupHierarchyLevel.push String.from_json(_item) + @id.push Bignum.from_json(_item) else - @groupHierarchyLevel.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @id.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @groupHierarchyLevel = _oa + @id = _oa end end - if !_o['totalUsersSynced'].nil? - _oa = _o['totalUsersSynced'] + end + + # constructs a RangerBaseModelObject 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 Ranger + +module Common + +module View + + # (no documentation provided) + class ViewBaseBean + + + # the json hash for this ViewBaseBean + def to_jaxb_json_hash + _h = {} + return _h + end + + # the json (string form) for this ViewBaseBean + def to_json + to_jaxb_json_hash.to_json + end + + #initializes this ViewBaseBean with a json hash + def init_jaxb_json_hash(_o) + end + + # constructs a ViewBaseBean 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 Ranger + +module Plugin + +module Model + + # (no documentation provided) + class RangerValidityRecurrence + + # (no documentation provided) + attr_accessor :interval + # (no documentation provided) + attr_accessor :schedule + + # the json hash for this RangerValidityRecurrence + def to_jaxb_json_hash + _h = {} + _h['interval'] = interval.to_jaxb_json_hash unless interval.nil? + _h['schedule'] = schedule.to_jaxb_json_hash unless schedule.nil? + return _h + end + + # the json (string form) for this RangerValidityRecurrence + def to_json + to_jaxb_json_hash.to_json + end + + #initializes this RangerValidityRecurrence with a json hash + def init_jaxb_json_hash(_o) + if !_o['interval'].nil? + _oa = _o['interval'] if(_oa.is_a? Hash) - @totalUsersSynced = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @totalUsersSynced = Bignum.from_json(_oa) unless _oa['@class'] + @interval = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @interval = Org::Apache::Ranger::Plugin::Model::ValidityInterval.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @totalUsersSynced = Array.new + @interval = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @totalUsersSynced.push Bignum.from_json(_item) + @interval.push Org::Apache::Ranger::Plugin::Model::ValidityInterval.from_json(_item) else - @totalUsersSynced.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @interval.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @totalUsersSynced = _oa + @interval = _oa end end - if !_o['totalGroupsSynced'].nil? - _oa = _o['totalGroupsSynced'] + if !_o['schedule'].nil? + _oa = _o['schedule'] if(_oa.is_a? Hash) - @totalGroupsSynced = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @totalGroupsSynced = Bignum.from_json(_oa) unless _oa['@class'] + @schedule = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @schedule = Org::Apache::Ranger::Plugin::Model::RecurrenceSchedule.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @totalGroupsSynced = Array.new + @schedule = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @totalGroupsSynced.push Bignum.from_json(_item) + @schedule.push Org::Apache::Ranger::Plugin::Model::RecurrenceSchedule.from_json(_item) else - @totalGroupsSynced.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @schedule.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @totalGroupsSynced = _oa + @schedule = _oa end end - if !_o['groupSearchFirstEnabled'].nil? - _oa = _o['groupSearchFirstEnabled'] + end + + # constructs a RangerValidityRecurrence 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 Ranger + +module Plugin + +module Model + + # (no documentation provided) + class ValidityInterval + + # (no documentation provided) + attr_accessor :hours + # (no documentation provided) + attr_accessor :minutes + # (no documentation provided) + attr_accessor :days + + # the json hash for this ValidityInterval + def to_jaxb_json_hash + _h = {} + _h['hours'] = hours.to_jaxb_json_hash unless hours.nil? + _h['minutes'] = minutes.to_jaxb_json_hash unless minutes.nil? + _h['days'] = days.to_jaxb_json_hash unless days.nil? + return _h + end + + # the json (string form) for this ValidityInterval + def to_json + to_jaxb_json_hash.to_json + end + + #initializes this ValidityInterval with a json hash + def init_jaxb_json_hash(_o) + if !_o['hours'].nil? + _oa = _o['hours'] if(_oa.is_a? Hash) - @groupSearchFirstEnabled = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @groupSearchFirstEnabled = String.from_json(_oa) unless _oa['@class'] + @hours = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @hours = Fixnum.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @groupSearchFirstEnabled = Array.new + @hours = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @groupSearchFirstEnabled.push String.from_json(_item) + @hours.push Fixnum.from_json(_item) else - @groupSearchFirstEnabled.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @hours.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @groupSearchFirstEnabled = _oa + @hours = _oa end end - if !_o['groupSearchEnabled'].nil? - _oa = _o['groupSearchEnabled'] + if !_o['minutes'].nil? + _oa = _o['minutes'] if(_oa.is_a? Hash) - @groupSearchEnabled = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @groupSearchEnabled = String.from_json(_oa) unless _oa['@class'] + @minutes = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @minutes = Fixnum.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @groupSearchEnabled = Array.new + @minutes = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @groupSearchEnabled.push String.from_json(_item) + @minutes.push Fixnum.from_json(_item) else - @groupSearchEnabled.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @minutes.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @groupSearchEnabled = _oa + @minutes = _oa end end - if !_o['userSearchEnabled'].nil? - _oa = _o['userSearchEnabled'] + if !_o['days'].nil? + _oa = _o['days'] if(_oa.is_a? Hash) - @userSearchEnabled = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @userSearchEnabled = String.from_json(_oa) unless _oa['@class'] + @days = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @days = Fixnum.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @userSearchEnabled = Array.new + @days = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @userSearchEnabled.push String.from_json(_item) + @days.push Fixnum.from_json(_item) else - @userSearchEnabled.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @days.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @userSearchEnabled = _oa + @days = _oa end end end - # constructs a VXLdapSyncSourceInfo from a (parsed) JSON hash + # constructs a ValidityInterval from a (parsed) JSON hash def self.from_json(o) if o.nil? return nil @@ -1008,6 +1061,8 @@ end end +end + module Org module Apache @@ -1022,68 +1077,32 @@ module Model class RangerPluginInfo # (no documentation provided) - attr_accessor :createTime - # (no documentation provided) - attr_accessor :serviceName + attr_accessor :ipAddress # (no documentation provided) - attr_accessor :tagDownloadTime + attr_accessor :info # (no documentation provided) attr_accessor :updateTime # (no documentation provided) - attr_accessor :tagActiveVersion - # (no documentation provided) - attr_accessor :lastTagUpdateTime + attr_accessor :id # (no documentation provided) - attr_accessor :policyDownloadTime + attr_accessor :serviceName # (no documentation provided) attr_accessor :appType # (no documentation provided) - attr_accessor :ipAddress - # (no documentation provided) - attr_accessor :latestTagVersion - # (no documentation provided) - attr_accessor :policyDownloadedVersion - # (no documentation provided) - attr_accessor :policyActiveVersion - # (no documentation provided) - attr_accessor :lastPolicyUpdateTime - # (no documentation provided) - attr_accessor :policyActivationTime - # (no documentation provided) - attr_accessor :latestPolicyVersion - # (no documentation provided) - attr_accessor :tagActivationTime - # (no documentation provided) - attr_accessor :info - # (no documentation provided) - attr_accessor :id - # (no documentation provided) - attr_accessor :tagDownloadedVersion + attr_accessor :createTime # (no documentation provided) attr_accessor :hostName # the json hash for this RangerPluginInfo def to_jaxb_json_hash _h = {} - _h['createTime'] = createTime.to_jaxb_json_hash unless createTime.nil? - _h['serviceName'] = serviceName.to_jaxb_json_hash unless serviceName.nil? - _h['tagDownloadTime'] = tagDownloadTime.to_jaxb_json_hash unless tagDownloadTime.nil? - _h['updateTime'] = updateTime.to_jaxb_json_hash unless updateTime.nil? - _h['tagActiveVersion'] = tagActiveVersion.to_jaxb_json_hash unless tagActiveVersion.nil? - _h['lastTagUpdateTime'] = lastTagUpdateTime.to_jaxb_json_hash unless lastTagUpdateTime.nil? - _h['policyDownloadTime'] = policyDownloadTime.to_jaxb_json_hash unless policyDownloadTime.nil? - _h['appType'] = appType.to_jaxb_json_hash unless appType.nil? _h['ipAddress'] = ipAddress.to_jaxb_json_hash unless ipAddress.nil? - _h['latestTagVersion'] = latestTagVersion.to_jaxb_json_hash unless latestTagVersion.nil? - _h['policyDownloadedVersion'] = policyDownloadedVersion.to_jaxb_json_hash unless policyDownloadedVersion.nil? - _h['policyActiveVersion'] = policyActiveVersion.to_jaxb_json_hash unless policyActiveVersion.nil? - _h['lastPolicyUpdateTime'] = lastPolicyUpdateTime.to_jaxb_json_hash unless lastPolicyUpdateTime.nil? - _h['policyActivationTime'] = policyActivationTime.to_jaxb_json_hash unless policyActivationTime.nil? - _h['latestPolicyVersion'] = latestPolicyVersion.to_jaxb_json_hash unless latestPolicyVersion.nil? - _h['tagActivationTime'] = tagActivationTime.to_jaxb_json_hash unless tagActivationTime.nil? _h['info'] = info.to_jaxb_json_hash unless info.nil? + _h['updateTime'] = updateTime.to_jaxb_json_hash unless updateTime.nil? _h['id'] = id.to_jaxb_json_hash unless id.nil? - _h['tagDownloadedVersion'] = tagDownloadedVersion.to_jaxb_json_hash unless tagDownloadedVersion.nil? + _h['serviceName'] = serviceName.to_jaxb_json_hash unless serviceName.nil? + _h['appType'] = appType.to_jaxb_json_hash unless appType.nil? + _h['createTime'] = createTime.to_jaxb_json_hash unless createTime.nil? _h['hostName'] = hostName.to_jaxb_json_hash unless hostName.nil? return _h end @@ -1095,61 +1114,42 @@ module Model #initializes this RangerPluginInfo with a json hash def init_jaxb_json_hash(_o) - if !_o['createTime'].nil? - _oa = _o['createTime'] - if(_oa.is_a? Hash) - @createTime = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @createTime = Time.from_json(_oa) unless _oa['@class'] - elsif (_oa.is_a? Array) - #an array(of hashes hopefully) or scalar - @createTime = Array.new - _oa.each { | _item | - if ((_item.nil? || _item['@class'].nil?)rescue true) - @createTime.push Time.from_json(_item) - else - @createTime.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @createTime = _oa - end - end - if !_o['serviceName'].nil? - _oa = _o['serviceName'] + if !_o['ipAddress'].nil? + _oa = _o['ipAddress'] if(_oa.is_a? Hash) - @serviceName = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @serviceName = String.from_json(_oa) unless _oa['@class'] + @ipAddress = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @ipAddress = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @serviceName = Array.new + @ipAddress = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @serviceName.push String.from_json(_item) + @ipAddress.push String.from_json(_item) else - @serviceName.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @ipAddress.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @serviceName = _oa + @ipAddress = _oa end end - if !_o['tagDownloadTime'].nil? - _oa = _o['tagDownloadTime'] + if !_o['info'].nil? + _oa = _o['info'] if(_oa.is_a? Hash) - @tagDownloadTime = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @tagDownloadTime = Bignum.from_json(_oa) unless _oa['@class'] + @info = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @info = Hash.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @tagDownloadTime = Array.new + @info = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @tagDownloadTime.push Bignum.from_json(_item) + @info.push Hash.from_json(_item) else - @tagDownloadTime.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @info.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @tagDownloadTime = _oa + @info = _oa end end if !_o['updateTime'].nil? @@ -1171,61 +1171,42 @@ module Model @updateTime = _oa end end - if !_o['tagActiveVersion'].nil? - _oa = _o['tagActiveVersion'] - if(_oa.is_a? Hash) - @tagActiveVersion = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @tagActiveVersion = Bignum.from_json(_oa) unless _oa['@class'] - elsif (_oa.is_a? Array) - #an array(of hashes hopefully) or scalar - @tagActiveVersion = Array.new - _oa.each { | _item | - if ((_item.nil? || _item['@class'].nil?)rescue true) - @tagActiveVersion.push Bignum.from_json(_item) - else - @tagActiveVersion.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @tagActiveVersion = _oa - end - end - if !_o['lastTagUpdateTime'].nil? - _oa = _o['lastTagUpdateTime'] + if !_o['id'].nil? + _oa = _o['id'] if(_oa.is_a? Hash) - @lastTagUpdateTime = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @lastTagUpdateTime = Bignum.from_json(_oa) unless _oa['@class'] + @id = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @id = Bignum.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @lastTagUpdateTime = Array.new + @id = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @lastTagUpdateTime.push Bignum.from_json(_item) + @id.push Bignum.from_json(_item) else - @lastTagUpdateTime.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @id.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @lastTagUpdateTime = _oa + @id = _oa end end - if !_o['policyDownloadTime'].nil? - _oa = _o['policyDownloadTime'] + if !_o['serviceName'].nil? + _oa = _o['serviceName'] if(_oa.is_a? Hash) - @policyDownloadTime = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @policyDownloadTime = Bignum.from_json(_oa) unless _oa['@class'] + @serviceName = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @serviceName = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @policyDownloadTime = Array.new + @serviceName = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @policyDownloadTime.push Bignum.from_json(_item) + @serviceName.push String.from_json(_item) else - @policyDownloadTime.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @serviceName.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @policyDownloadTime = _oa + @serviceName = _oa end end if !_o['appType'].nil? @@ -1247,232 +1228,42 @@ module Model @appType = _oa end end - if !_o['ipAddress'].nil? - _oa = _o['ipAddress'] - if(_oa.is_a? Hash) - @ipAddress = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @ipAddress = String.from_json(_oa) unless _oa['@class'] - elsif (_oa.is_a? Array) - #an array(of hashes hopefully) or scalar - @ipAddress = Array.new - _oa.each { | _item | - if ((_item.nil? || _item['@class'].nil?)rescue true) - @ipAddress.push String.from_json(_item) - else - @ipAddress.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @ipAddress = _oa - end - end - if !_o['latestTagVersion'].nil? - _oa = _o['latestTagVersion'] + if !_o['createTime'].nil? + _oa = _o['createTime'] if(_oa.is_a? Hash) - @latestTagVersion = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @latestTagVersion = Bignum.from_json(_oa) unless _oa['@class'] + @createTime = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @createTime = Time.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @latestTagVersion = Array.new + @createTime = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @latestTagVersion.push Bignum.from_json(_item) + @createTime.push Time.from_json(_item) else - @latestTagVersion.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @createTime.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @latestTagVersion = _oa + @createTime = _oa end end - if !_o['policyDownloadedVersion'].nil? - _oa = _o['policyDownloadedVersion'] + if !_o['hostName'].nil? + _oa = _o['hostName'] if(_oa.is_a? Hash) - @policyDownloadedVersion = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @policyDownloadedVersion = Bignum.from_json(_oa) unless _oa['@class'] + @hostName = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @hostName = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @policyDownloadedVersion = Array.new + @hostName = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @policyDownloadedVersion.push Bignum.from_json(_item) + @hostName.push String.from_json(_item) else - @policyDownloadedVersion.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @hostName.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @policyDownloadedVersion = _oa - end - end - if !_o['policyActiveVersion'].nil? - _oa = _o['policyActiveVersion'] - if(_oa.is_a? Hash) - @policyActiveVersion = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @policyActiveVersion = Bignum.from_json(_oa) unless _oa['@class'] - elsif (_oa.is_a? Array) - #an array(of hashes hopefully) or scalar - @policyActiveVersion = Array.new - _oa.each { | _item | - if ((_item.nil? || _item['@class'].nil?)rescue true) - @policyActiveVersion.push Bignum.from_json(_item) - else - @policyActiveVersion.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @policyActiveVersion = _oa - end - end - if !_o['lastPolicyUpdateTime'].nil? - _oa = _o['lastPolicyUpdateTime'] - if(_oa.is_a? Hash) - @lastPolicyUpdateTime = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @lastPolicyUpdateTime = Bignum.from_json(_oa) unless _oa['@class'] - elsif (_oa.is_a? Array) - #an array(of hashes hopefully) or scalar - @lastPolicyUpdateTime = Array.new - _oa.each { | _item | - if ((_item.nil? || _item['@class'].nil?)rescue true) - @lastPolicyUpdateTime.push Bignum.from_json(_item) - else - @lastPolicyUpdateTime.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @lastPolicyUpdateTime = _oa - end - end - if !_o['policyActivationTime'].nil? - _oa = _o['policyActivationTime'] - if(_oa.is_a? Hash) - @policyActivationTime = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @policyActivationTime = Bignum.from_json(_oa) unless _oa['@class'] - elsif (_oa.is_a? Array) - #an array(of hashes hopefully) or scalar - @policyActivationTime = Array.new - _oa.each { | _item | - if ((_item.nil? || _item['@class'].nil?)rescue true) - @policyActivationTime.push Bignum.from_json(_item) - else - @policyActivationTime.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @policyActivationTime = _oa - end - end - if !_o['latestPolicyVersion'].nil? - _oa = _o['latestPolicyVersion'] - if(_oa.is_a? Hash) - @latestPolicyVersion = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @latestPolicyVersion = Bignum.from_json(_oa) unless _oa['@class'] - elsif (_oa.is_a? Array) - #an array(of hashes hopefully) or scalar - @latestPolicyVersion = Array.new - _oa.each { | _item | - if ((_item.nil? || _item['@class'].nil?)rescue true) - @latestPolicyVersion.push Bignum.from_json(_item) - else - @latestPolicyVersion.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @latestPolicyVersion = _oa - end - end - if !_o['tagActivationTime'].nil? - _oa = _o['tagActivationTime'] - if(_oa.is_a? Hash) - @tagActivationTime = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @tagActivationTime = Bignum.from_json(_oa) unless _oa['@class'] - elsif (_oa.is_a? Array) - #an array(of hashes hopefully) or scalar - @tagActivationTime = Array.new - _oa.each { | _item | - if ((_item.nil? || _item['@class'].nil?)rescue true) - @tagActivationTime.push Bignum.from_json(_item) - else - @tagActivationTime.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @tagActivationTime = _oa - end - end - if !_o['info'].nil? - _oa = _o['info'] - if(_oa.is_a? Hash) - @info = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @info = Hash.from_json(_oa) unless _oa['@class'] - elsif (_oa.is_a? Array) - #an array(of hashes hopefully) or scalar - @info = Array.new - _oa.each { | _item | - if ((_item.nil? || _item['@class'].nil?)rescue true) - @info.push Hash.from_json(_item) - else - @info.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @info = _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 = Bignum.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 Bignum.from_json(_item) - else - @id.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @id = _oa - end - end - if !_o['tagDownloadedVersion'].nil? - _oa = _o['tagDownloadedVersion'] - if(_oa.is_a? Hash) - @tagDownloadedVersion = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @tagDownloadedVersion = Bignum.from_json(_oa) unless _oa['@class'] - elsif (_oa.is_a? Array) - #an array(of hashes hopefully) or scalar - @tagDownloadedVersion = Array.new - _oa.each { | _item | - if ((_item.nil? || _item['@class'].nil?)rescue true) - @tagDownloadedVersion.push Bignum.from_json(_item) - else - @tagDownloadedVersion.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @tagDownloadedVersion = _oa - end - end - if !_o['hostName'].nil? - _oa = _o['hostName'] - if(_oa.is_a? Hash) - @hostName = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @hostName = String.from_json(_oa) unless _oa['@class'] - elsif (_oa.is_a? Array) - #an array(of hashes hopefully) or scalar - @hostName = Array.new - _oa.each { | _item | - if ((_item.nil? || _item['@class'].nil?)rescue true) - @hostName.push String.from_json(_item) - else - @hostName.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @hostName = _oa + @hostName = _oa end end end @@ -1515,29 +1306,29 @@ module Model # (no documentation provided) attr_accessor :subType # (no documentation provided) - attr_accessor :validationRegEx + attr_accessor :defaultValue # (no documentation provided) - attr_accessor :rbKeyLabel + attr_accessor :itemId + # (no documentation provided) + attr_accessor :name + # (no documentation provided) + attr_accessor :uiHint # (no documentation provided) attr_accessor :label # (no documentation provided) - attr_accessor :itemId + attr_accessor :description # (no documentation provided) attr_accessor :rbKeyValidationMessage # (no documentation provided) - attr_accessor :name + attr_accessor :type # (no documentation provided) - attr_accessor :validationMessage + attr_accessor :validationRegEx # (no documentation provided) - attr_accessor :defaultValue + attr_accessor :rbKeyLabel # (no documentation provided) attr_accessor :rbKeyDescription # (no documentation provided) - attr_accessor :description - # (no documentation provided) - attr_accessor :type - # (no documentation provided) - attr_accessor :uiHint + attr_accessor :validationMessage # (no documentation provided) attr_accessor :mandatory @@ -1545,18 +1336,18 @@ module Model def to_jaxb_json_hash _h = {} _h['subType'] = subType.to_jaxb_json_hash unless subType.nil? - _h['validationRegEx'] = validationRegEx.to_jaxb_json_hash unless validationRegEx.nil? - _h['rbKeyLabel'] = rbKeyLabel.to_jaxb_json_hash unless rbKeyLabel.nil? - _h['label'] = label.to_jaxb_json_hash unless label.nil? + _h['defaultValue'] = defaultValue.to_jaxb_json_hash unless defaultValue.nil? _h['itemId'] = itemId.to_jaxb_json_hash unless itemId.nil? - _h['rbKeyValidationMessage'] = rbKeyValidationMessage.to_jaxb_json_hash unless rbKeyValidationMessage.nil? _h['name'] = name.to_jaxb_json_hash unless name.nil? - _h['validationMessage'] = validationMessage.to_jaxb_json_hash unless validationMessage.nil? - _h['defaultValue'] = defaultValue.to_jaxb_json_hash unless defaultValue.nil? - _h['rbKeyDescription'] = rbKeyDescription.to_jaxb_json_hash unless rbKeyDescription.nil? + _h['uiHint'] = uiHint.to_jaxb_json_hash unless uiHint.nil? + _h['label'] = label.to_jaxb_json_hash unless label.nil? _h['description'] = description.to_jaxb_json_hash unless description.nil? + _h['rbKeyValidationMessage'] = rbKeyValidationMessage.to_jaxb_json_hash unless rbKeyValidationMessage.nil? _h['type'] = type.to_jaxb_json_hash unless type.nil? - _h['uiHint'] = uiHint.to_jaxb_json_hash unless uiHint.nil? + _h['validationRegEx'] = validationRegEx.to_jaxb_json_hash unless validationRegEx.nil? + _h['rbKeyLabel'] = rbKeyLabel.to_jaxb_json_hash unless rbKeyLabel.nil? + _h['rbKeyDescription'] = rbKeyDescription.to_jaxb_json_hash unless rbKeyDescription.nil? + _h['validationMessage'] = validationMessage.to_jaxb_json_hash unless validationMessage.nil? _h['mandatory'] = mandatory.to_jaxb_json_hash unless mandatory.nil? return _h end @@ -1587,42 +1378,80 @@ module Model @subType = _oa end end - if !_o['validationRegEx'].nil? - _oa = _o['validationRegEx'] + if !_o['defaultValue'].nil? + _oa = _o['defaultValue'] if(_oa.is_a? Hash) - @validationRegEx = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @validationRegEx = String.from_json(_oa) unless _oa['@class'] + @defaultValue = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @defaultValue = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @validationRegEx = Array.new + @defaultValue = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @validationRegEx.push String.from_json(_item) + @defaultValue.push String.from_json(_item) else - @validationRegEx.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @defaultValue.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @validationRegEx = _oa + @defaultValue = _oa end end - if !_o['rbKeyLabel'].nil? - _oa = _o['rbKeyLabel'] + if !_o['itemId'].nil? + _oa = _o['itemId'] if(_oa.is_a? Hash) - @rbKeyLabel = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @rbKeyLabel = String.from_json(_oa) unless _oa['@class'] + @itemId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @itemId = Bignum.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @rbKeyLabel = Array.new + @itemId = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @rbKeyLabel.push String.from_json(_item) + @itemId.push Bignum.from_json(_item) else - @rbKeyLabel.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @itemId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @rbKeyLabel = _oa + @itemId = _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 + if !_o['uiHint'].nil? + _oa = _o['uiHint'] + if(_oa.is_a? Hash) + @uiHint = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @uiHint = String.from_json(_oa) unless _oa['@class'] + elsif (_oa.is_a? Array) + #an array(of hashes hopefully) or scalar + @uiHint = Array.new + _oa.each { | _item | + if ((_item.nil? || _item['@class'].nil?)rescue true) + @uiHint.push String.from_json(_item) + else + @uiHint.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + end + } + else + @uiHint = _oa end end if !_o['label'].nil? @@ -1644,23 +1473,23 @@ module Model @label = _oa end end - if !_o['itemId'].nil? - _oa = _o['itemId'] + if !_o['description'].nil? + _oa = _o['description'] if(_oa.is_a? Hash) - @itemId = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @itemId = Bignum.from_json(_oa) unless _oa['@class'] + @description = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @description = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @itemId = Array.new + @description = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @itemId.push Bignum.from_json(_item) + @description.push String.from_json(_item) else - @itemId.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @description.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @itemId = _oa + @description = _oa end end if !_o['rbKeyValidationMessage'].nil? @@ -1682,61 +1511,61 @@ module Model @rbKeyValidationMessage = _oa end end - if !_o['name'].nil? - _oa = _o['name'] + if !_o['type'].nil? + _oa = _o['type'] if(_oa.is_a? Hash) - @name = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @name = String.from_json(_oa) unless _oa['@class'] + @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 - @name = Array.new + @type = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @name.push String.from_json(_item) + @type.push String.from_json(_item) else - @name.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @type.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @name = _oa + @type = _oa end end - if !_o['validationMessage'].nil? - _oa = _o['validationMessage'] + if !_o['validationRegEx'].nil? + _oa = _o['validationRegEx'] if(_oa.is_a? Hash) - @validationMessage = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @validationMessage = String.from_json(_oa) unless _oa['@class'] + @validationRegEx = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @validationRegEx = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @validationMessage = Array.new + @validationRegEx = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @validationMessage.push String.from_json(_item) + @validationRegEx.push String.from_json(_item) else - @validationMessage.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @validationRegEx.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @validationMessage = _oa + @validationRegEx = _oa end end - if !_o['defaultValue'].nil? - _oa = _o['defaultValue'] + if !_o['rbKeyLabel'].nil? + _oa = _o['rbKeyLabel'] if(_oa.is_a? Hash) - @defaultValue = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @defaultValue = String.from_json(_oa) unless _oa['@class'] + @rbKeyLabel = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @rbKeyLabel = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @defaultValue = Array.new + @rbKeyLabel = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @defaultValue.push String.from_json(_item) + @rbKeyLabel.push String.from_json(_item) else - @defaultValue.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @rbKeyLabel.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @defaultValue = _oa + @rbKeyLabel = _oa end end if !_o['rbKeyDescription'].nil? @@ -1758,61 +1587,23 @@ module Model @rbKeyDescription = _oa end end - if !_o['description'].nil? - _oa = _o['description'] - if(_oa.is_a? Hash) - @description = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @description = String.from_json(_oa) unless _oa['@class'] - elsif (_oa.is_a? Array) - #an array(of hashes hopefully) or scalar - @description = Array.new - _oa.each { | _item | - if ((_item.nil? || _item['@class'].nil?)rescue true) - @description.push String.from_json(_item) - else - @description.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) - end - } - else - @description = _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['uiHint'].nil? - _oa = _o['uiHint'] + if !_o['validationMessage'].nil? + _oa = _o['validationMessage'] if(_oa.is_a? Hash) - @uiHint = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] - @uiHint = String.from_json(_oa) unless _oa['@class'] + @validationMessage = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] + @validationMessage = String.from_json(_oa) unless _oa['@class'] elsif (_oa.is_a? Array) #an array(of hashes hopefully) or scalar - @uiHint = Array.new + @validationMessage = Array.new _oa.each { | _item | if ((_item.nil? || _item['@class'].nil?)rescue true) - @uiHint.push String.from_json(_item) + @validationMessage.push String.from_json(_item) else - @uiHint.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) + @validationMessage.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) end } else - @uiHint = _oa + @validationMessage = _oa end end if !_o['mandatory'].nil? @@ -1874,28 +1665,28 @@ module Datatype class RESTResponse # (no documentation provided) - attr_accessor :httpStatusCode - # (no documentation provided) attr_accessor :statusCode # (no documentation provided) + attr_accessor :msgDesc + # (no documentation provided) attr_accessor :messageList # (no documentation provided) attr_accessor :message # (no documentation provided) - attr_accessor :msgDesc + attr_accessor :httpStatusCode # the json hash for this RESTResponse def to_jaxb_json_hash _h = {} - _h['httpStatusCode'] = httpStatusCode.to_jaxb_json_hash unless httpStatusCode.nil? _h['statusCode'] = statusCode.to_jaxb_json_hash unless statusCode.nil? + _h['msgDesc'] = msgDesc.to_jaxb_json_hash unless msgDesc.nil? if !messageList.nil? _ha = Array.new messageList.each { | _item | _ha.push _item.to_jaxb_json_hash } _h['messageList'] = _ha end _h['message'] = message.to_jaxb_json_hash unless message.nil? - _h['msgDesc'] = msgDesc.to_jaxb_json_hash unless msgDesc.nil? + _h['httpStatusCode'] = httpStatusCode.to_jaxb_json_hash unless httpStatusCode.nil? return _h end @@ -1906,42 +1697,42 @@ module Datatype #initializes this RESTResponse with a json hash def init_jaxb_json_hash(_o) - if !_o['httpStatusCode'].nil? - _oa = _o['httpStatusCode'] + if !_o['statusCode'].nil? + _oa = _o['statusCode'] if(_oa.is_a? Hash) - @httpStatusCode = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
[... 45555 lines stripped ...]
